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 mule_backup_CPPFLAGS
="$CPPFLAGS"
1942 mule_backup_CPPFLAGS
="$CPPFLAGS"
1943 case "${host_os}" in
1949 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1950 MULELDFLAGS
="-bind_at_load"
1951 touch src
/Scanner.cpp
1955 LIBS
="$LIBS -L/usr/local/lib"
1956 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1957 MULECPPFLAGS
="-D__OPENBSD__"
1959 *cygwin
* |
*mingw32
*)
1961 MULECPPFLAGS
="-DNOMINMAX"
1964 RESOLV_LIB
="-lresolv -lnsl"
1969 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1970 if test ${SYS:-unknown} != win32
; then
1972 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1973 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1974 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1976 MULELDFLAGS
="$MULELDFLAGS -pthread"
1977 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1982 MULELDFLAGS
="$MULELDFLAGS -lpthread"
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1994 mule_backup_CFLAGS
="$CFLAGS"
1995 mule_backup_CXXFLAGS
="$CXXFLAGS"
1996 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
1998 ac_cpp
='$CXXCPP $CPPFLAGS'
1999 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CXX+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$CXX"; then
2013 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir
=.
2020 for ac_exec_ext
in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 if test -n "$CXX"; then
2033 echo "$as_me:$LINENO: result: $CXX" >&5
2034 echo "${ECHO_T}$CXX" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$CXX" && break
2043 if test -z "$CXX"; then
2045 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy
$ac_prog; ac_word
=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CXX"; then
2055 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir
=.
2062 for ac_exec_ext
in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2074 if test -n "$ac_ct_CXX"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2076 echo "${ECHO_T}$ac_ct_CXX" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$ac_ct_CXX" && break
2084 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO:" \
2092 "checking for C++ compiler version" >&5
2093 ac_compiler
=`set X $ac_compile; echo $2`
2094 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2095 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2100 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2105 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2110 cat >conftest.
$ac_ext <<_ACEOF
2113 cat confdefs.h
>>conftest.
$ac_ext
2114 cat >>conftest.
$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2125 ac_clean_files_save
=$ac_clean_files
2126 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2127 # Try to create an executable without -o first, disregard a.out.
2128 # It will help us diagnose broken compilers, and finding out an intuition
2130 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2131 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2132 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2134 (eval $ac_link_default) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; then
2138 # Find the output, starting from the most likely. This scheme is
2139 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2142 # Be careful to initialize this variable, since it used to be cached.
2143 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2145 # b.out is created by i960 compilers.
2146 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2148 test -f "$ac_file" ||
continue
2150 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2153 # This is the source file.
2156 # We found the default executable, but exeext='' is most
2160 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161 # FIXME: I believe we export ac_cv_exeext for Libtool,
2162 # but it would be cool to find out if it's true. Does anybody
2163 # maintain Libtool? --akim.
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.
$ac_ext >&5
2174 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: C++ compiler cannot create executables
2177 See \`config.log' for more details." >&2;}
2178 { (exit 77); exit 77; }; }
2181 ac_exeext
=$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_file" >&5
2183 echo "${ECHO_T}$ac_file" >&6
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2188 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2189 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2190 # If not cross compiling, check that we can run a simple program.
2191 if test "$cross_compiling" != yes; then
2192 if { ac_try
='./$ac_file'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 if test "$cross_compiling" = maybe
; then
2203 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2204 If you meant to cross compile, use \`--host'.
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot run C++ compiled programs.
2207 If you meant to cross compile, use \`--host'.
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2213 echo "$as_me:$LINENO: result: yes" >&5
2214 echo "${ECHO_T}yes" >&6
2216 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2217 ac_clean_files
=$ac_clean_files_save
2218 # Check the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2222 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223 echo "${ECHO_T}$cross_compiling" >&6
2225 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2228 (eval $ac_link) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2234 # work properly (i.e., refer to `conftest.exe'), while it won't with
2236 for ac_file
in conftest.exe conftest conftest.
*; do
2237 test -f "$ac_file" ||
continue
2239 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2240 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2254 rm -f conftest
$ac_cv_exeext
2255 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256 echo "${ECHO_T}$ac_cv_exeext" >&6
2258 rm -f conftest.
$ac_ext
2259 EXEEXT
=$ac_cv_exeext
2261 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263 if test "${ac_cv_objext+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 cat >conftest.
$ac_ext <<_ACEOF
2269 cat confdefs.h
>>conftest.
$ac_ext
2270 cat >>conftest.
$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2281 rm -f conftest.o conftest.obj
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2289 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2290 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.
$ac_ext >&5
2298 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2305 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2307 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308 echo "${ECHO_T}$ac_cv_objext" >&6
2309 OBJEXT
=$ac_cv_objext
2311 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2312 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2313 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 cat >conftest.
$ac_ext <<_ACEOF
2319 cat confdefs.h
>>conftest.
$ac_ext
2320 cat >>conftest.
$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2334 rm -f conftest.
$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>conftest.er1
2338 grep -v '^ *+' conftest.er1
>conftest.err
2340 cat conftest.err
>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try
='test -z "$ac_cxx_werror_flag"
2344 || test ! -s conftest.err'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; } &&
2350 { ac_try
='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.
$ac_ext >&5
2363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2364 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2367 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2369 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2370 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2371 ac_save_CXXFLAGS
=$CXXFLAGS
2373 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2375 if test "${ac_cv_prog_cxx_g+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.
$ac_ext <<_ACEOF
2381 cat confdefs.h
>>conftest.
$ac_ext
2382 cat >>conftest.
$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 rm -f conftest.
$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1
>conftest.err
2399 cat conftest.err
>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try
='test -z "$ac_cxx_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try
='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_prog_cxx_g
=yes
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.
$ac_ext >&5
2422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2424 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2425 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2426 if test "$ac_test_CXXFLAGS" = set; then
2427 CXXFLAGS
=$ac_save_CXXFLAGS
2428 elif test $ac_cv_prog_cxx_g = yes; then
2429 if test "$GXX" = yes; then
2435 if test "$GXX" = yes; then
2441 for ac_declaration
in \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2449 cat >conftest.
$ac_ext <<_ACEOF
2452 cat confdefs.h
>>conftest.
$ac_ext
2453 cat >>conftest.
$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2465 rm -f conftest.
$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1
>conftest.err
2471 cat conftest.err
>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try
='test -z "$ac_cxx_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try
='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.
$ac_ext >&5
2494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2495 cat >conftest.
$ac_ext <<_ACEOF
2498 cat confdefs.h
>>conftest.
$ac_ext
2499 cat >>conftest.
$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.
$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2514 grep -v '^ *+' conftest.er1
>conftest.err
2516 cat conftest.err
>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try
='test -z "$ac_cxx_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try
='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2548 ac_cpp
='$CPP $CPPFLAGS'
2549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2552 DEPDIR
="${am__leading_dot}deps"
2554 ac_config_commands
="$ac_config_commands depfiles"
2557 am_make
=${MAKE-make}
2558 cat > confinc
<< 'END'
2563 # If we don't find an include directive, just comment out the code.
2564 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2569 # First try GNU make style include.
2570 echo "include confinc" > confmf
2571 # We grep out `Entering directory' and `Leaving directory'
2572 # messages which can occur if `w' ends up in MAKEFLAGS.
2573 # In particular we don't look at `^make:' because GNU make might
2574 # be invoked under some other name (usually "gmake"), in which
2575 # case it prints its new name instead of `make'.
2576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2581 # Now try BSD make style include.
2582 if test "$am__include" = "#"; then
2583 echo '.include "confinc"' > confmf
2584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2585 am__include
=.include
2592 echo "$as_me:$LINENO: result: $_am_result" >&5
2593 echo "${ECHO_T}$_am_result" >&6
2594 rm -f confinc confmf
2596 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2597 if test "${enable_dependency_tracking+set}" = set; then
2598 enableval
="$enable_dependency_tracking"
2601 if test "x$enable_dependency_tracking" != xno
; then
2602 am_depcomp
="$ac_aux_dir/depcomp"
2607 if test "x$enable_dependency_tracking" != xno; then
2618 depcc
="$CXX" am_compiler_list
=
2620 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2621 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2626 # We make a subdir and do the tests there. Otherwise we can end up
2627 # making bogus files that we don't know about and never remove. For
2628 # instance it was reported that on HP-UX the gcc test will end up
2629 # making a dummy file named `D' -- because `-MD' means `put the output
2632 # Copy depcomp to subdir because otherwise we won't find it if we're
2633 # using a relative directory.
2634 cp "$am_depcomp" conftest.dir
2636 # We will build objects and dependencies in a subdirectory because
2637 # it helps to detect inapplicable dependency modes. For instance
2638 # both Tru64's cc and ICC support -MD to output dependencies as a
2639 # side effect of compilation, but ICC will put the dependencies in
2640 # the current directory while Tru64 will put them in the object
2644 am_cv_CXX_dependencies_compiler_type
=none
2645 if test "$am_compiler_list" = ""; then
2646 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2648 for depmode
in $am_compiler_list; do
2649 # Setup a source with many dependencies, because some compilers
2650 # like to wrap large dependency lists on column 80 (with \), and
2651 # we should not choose a depcomp mode which is confused by this.
2653 # We need to recreate these files for each test, as the compiler may
2654 # overwrite some of them when testing with obscure command lines.
2655 # This happens at least with the AIX C compiler.
2657 for i
in 1 2 3 4 5 6; do
2658 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2659 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2660 # Solaris 8's {/usr,}/bin/sh.
2661 touch sub
/conftst
$i.h
2663 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2667 # after this tag, mechanisms are not by side-effect, so they'll
2668 # only be used when explicitly requested
2669 if test "x$enable_dependency_tracking" = xyes
; then
2677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2678 # mode. It turns out that the SunPro C++ compiler does not properly
2679 # handle `-M -o', and we need to detect this.
2680 if depmode
=$depmode \
2681 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2682 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2683 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2684 >/dev
/null
2>conftest.err
&&
2685 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2686 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2687 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2688 # icc doesn't choke on unknown options, it will just issue warnings
2689 # or remarks (even with -Werror). So we grep stderr for any message
2690 # that says an option was ignored or not supported.
2691 # When given -MP, icc 7.0 and 7.1 complain thusly:
2692 # icc: Command line warning: ignoring option '-M'; no argument required
2693 # The diagnosis changed in icc 8.0:
2694 # icc: Command line remark: option '-MP' not supported
2695 if (grep 'ignoring option' conftest.err ||
2696 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2697 am_cv_CXX_dependencies_compiler_type
=$depmode
2706 am_cv_CXX_dependencies_compiler_type
=none
2710 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2711 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2712 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2717 test "x$enable_dependency_tracking" != xno \
2718 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2719 am__fastdepCXX_TRUE
=
2720 am__fastdepCXX_FALSE
='#'
2722 am__fastdepCXX_TRUE
='#'
2723 am__fastdepCXX_FALSE
=
2728 ac_cpp
='$CXXCPP $CPPFLAGS'
2729 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2732 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2733 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2734 if test -z "$CXXCPP"; then
2735 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 # Double quotes because CXXCPP needs to be expanded
2739 for CXXCPP
in "$CXX -E" "/lib/cpp"
2742 for ac_cxx_preproc_warn_flag
in '' yes
2744 # Use a header file that comes with gcc, so configuring glibc
2745 # with a fresh cross-compiler works.
2746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747 # <limits.h> exists even on freestanding compilers.
2748 # On the NeXT, cc -E runs the code through the compiler's parser,
2749 # not just through cpp. "Syntax error" is here to catch this case.
2750 cat >conftest.
$ac_ext <<_ACEOF
2753 cat confdefs.h
>>conftest.
$ac_ext
2754 cat >>conftest.
$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2757 # include <limits.h>
2759 # include <assert.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1
>conftest.err
2768 cat conftest.err
>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev
/null
; then
2771 if test -s conftest.err
; then
2772 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2773 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2780 if test -z "$ac_cpp_err"; then
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.
$ac_ext >&5
2786 # Broken: fails on valid input.
2789 rm -f conftest.err conftest.
$ac_ext
2791 # OK, works on sane cases. Now check whether non-existent headers
2792 # can be detected and how.
2793 cat >conftest.
$ac_ext <<_ACEOF
2796 cat confdefs.h
>>conftest.
$ac_ext
2797 cat >>conftest.
$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <ac_nonexistent.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1
>conftest.err
2806 cat conftest.err
>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev
/null
; then
2809 if test -s conftest.err
; then
2810 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2811 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2818 if test -z "$ac_cpp_err"; then
2819 # Broken: success on invalid input.
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.
$ac_ext >&5
2825 # Passes both tests.
2829 rm -f conftest.err conftest.
$ac_ext
2832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2833 rm -f conftest.err conftest.
$ac_ext
2834 if $ac_preproc_ok; then
2839 ac_cv_prog_CXXCPP
=$CXXCPP
2842 CXXCPP
=$ac_cv_prog_CXXCPP
2844 ac_cv_prog_CXXCPP
=$CXXCPP
2846 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2847 echo "${ECHO_T}$CXXCPP" >&6
2849 for ac_cxx_preproc_warn_flag
in '' yes
2851 # Use a header file that comes with gcc, so configuring glibc
2852 # with a fresh cross-compiler works.
2853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2854 # <limits.h> exists even on freestanding compilers.
2855 # On the NeXT, cc -E runs the code through the compiler's parser,
2856 # not just through cpp. "Syntax error" is here to catch this case.
2857 cat >conftest.
$ac_ext <<_ACEOF
2860 cat confdefs.h
>>conftest.
$ac_ext
2861 cat >>conftest.
$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2864 # include <limits.h>
2866 # include <assert.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1
>conftest.err
2875 cat conftest.err
>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev
/null
; then
2878 if test -s conftest.err
; then
2879 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2880 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2887 if test -z "$ac_cpp_err"; then
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.
$ac_ext >&5
2893 # Broken: fails on valid input.
2896 rm -f conftest.err conftest.
$ac_ext
2898 # OK, works on sane cases. Now check whether non-existent headers
2899 # can be detected and how.
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #include <ac_nonexistent.h>
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1
>conftest.err
2913 cat conftest.err
>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev
/null
; then
2916 if test -s conftest.err
; then
2917 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2918 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2925 if test -z "$ac_cpp_err"; then
2926 # Broken: success on invalid input.
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.
$ac_ext >&5
2932 # Passes both tests.
2936 rm -f conftest.err conftest.
$ac_ext
2939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2940 rm -f conftest.err conftest.
$ac_ext
2941 if $ac_preproc_ok; then
2944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2952 ac_cpp
='$CPP $CPPFLAGS'
2953 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2958 ac_cpp
='$CPP $CPPFLAGS'
2959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC
="$CC" # Let the user override the test.
2973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir
=.
2978 for ac_exec_ext
in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 echo "$as_me:$LINENO: result: $CC" >&5
2992 echo "${ECHO_T}$CC" >&6
2994 echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2999 if test -z "$ac_cv_prog_CC"; then
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc
; ac_word
=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir
=.
3016 for ac_exec_ext
in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_CC
="gcc"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3030 echo "${ECHO_T}$ac_ct_CC" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3044 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC
="$CC" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 echo "$as_me:$LINENO: result: $CC" >&5
3072 echo "${ECHO_T}$CC" >&6
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3079 if test -z "$ac_cv_prog_CC"; then
3081 # Extract the first word of "cc", so it can be a program name with args.
3082 set dummy cc
; ac_word
=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_CC
="cc"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 echo "${ECHO_T}$ac_ct_CC" >&6
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc
; ac_word
=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC
="$CC" # Let the user override the test.
3134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir
=.
3139 for ac_exec_ext
in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142 ac_prog_rejected
=yes
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy
$ac_cv_prog_CC
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3161 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3167 if test -n "$CC"; then
3168 echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC
="$CC" # Let the user override the test.
3190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir
=.
3195 for ac_exec_ext
in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test -n "$CC"; then
3208 echo "$as_me:$LINENO: result: $CC" >&5
3209 echo "${ECHO_T}$CC" >&6
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 test -n "$CC" && break
3218 if test -z "$CC"; then
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy
$ac_prog; ac_word
=$2
3224 echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir
=.
3237 for ac_exec_ext
in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC
="$ac_prog"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3251 echo "${ECHO_T}$ac_ct_CC" >&6
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3257 test -n "$ac_ct_CC" && break
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO:" \
3274 "checking for C compiler version" >&5
3275 ac_compiler
=`set X $ac_compile; echo $2`
3276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3277 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3282 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3287 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.
$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3319 grep -v '^ *+' conftest.er1
>conftest.err
3321 cat conftest.err
>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try
='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try
='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.
$ac_ext >&5
3344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3345 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3350 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS
=${CFLAGS+set}
3352 ac_save_CFLAGS
=$CFLAGS
3354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_g+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 cat >conftest.
$ac_ext <<_ACEOF
3362 cat confdefs.h
>>conftest.
$ac_ext
3363 cat >>conftest.
$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3374 rm -f conftest.
$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1
>conftest.err
3380 cat conftest.err
>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try
='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try
='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.
$ac_ext >&5
3403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS
=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3416 if test "$GCC" = yes; then
3422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_prog_cc_stdc
=no
3429 cat >conftest.
$ac_ext <<_ACEOF
3432 cat confdefs.h
>>conftest.
$ac_ext
3433 cat >>conftest.
$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3453 s = g (p, va_arg (v,int));
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std1 is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std1. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467 int test (int i, double x);
3468 struct s1 {int (*f) (int a);};
3469 struct s2 {int (*f) (double a);};
3470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3481 # Don't try gcc -ansi; that turns off useful extensions and
3482 # breaks some systems' header files.
3483 # AIX -qlanglvl=ansi
3484 # Ultrix and OSF/1 -std1
3485 # HP-UX 10.20 and later -Ae
3486 # HP-UX older versions -Aa -D_HPUX_SOURCE
3487 # SVR4 -Xc -D__EXTENSIONS__
3488 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 CC
="$ac_save_CC $ac_arg"
3491 rm -f conftest.
$ac_objext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3495 grep -v '^ *+' conftest.er1
>conftest.err
3497 cat conftest.err
>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try
='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try
='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cc_stdc
=$ac_arg
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3520 rm -f conftest.err conftest.
$ac_objext
3522 rm -f conftest.
$ac_ext conftest.
$ac_objext
3527 case "x$ac_cv_prog_cc_stdc" in
3529 echo "$as_me:$LINENO: result: none needed" >&5
3530 echo "${ECHO_T}none needed" >&6 ;;
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3533 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3534 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3537 # Some people use a C++ compiler to compile C. Since we use `exit',
3538 # in C++ we need to declare it. In case someone uses the same compiler
3539 # for both compiling C and C++ we need to have the C++ compiler decide
3540 # the declaration of exit, since it's the most demanding environment.
3541 cat >conftest.
$ac_ext <<_ACEOF
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try
='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 for ac_declaration
in \
3570 'extern "C" void std::exit (int) throw (); using std::exit;' \
3571 'extern "C" void std::exit (int); using std::exit;' \
3572 'extern "C" void exit (int) throw ();' \
3573 'extern "C" void exit (int);' \
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3592 rm -f conftest.
$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1
>conftest.err
3598 cat conftest.err
>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try
='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try
='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3622 cat >conftest.
$ac_ext <<_ACEOF
3625 cat confdefs.h
>>conftest.
$ac_ext
3626 cat >>conftest.
$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3637 rm -f conftest.
$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3641 grep -v '^ *+' conftest.er1
>conftest.err
3643 cat conftest.err
>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try
='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try
='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.
$ac_ext >&5
3665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3668 if test -n "$ac_declaration"; then
3669 echo '#ifdef __cplusplus' >>confdefs.h
3670 echo $ac_declaration >>confdefs.h
3671 echo '#endif' >>confdefs.h
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.
$ac_ext >&5
3679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3681 ac_cpp
='$CPP $CPPFLAGS'
3682 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3686 depcc
="$CC" am_compiler_list
=
3688 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3689 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3694 # We make a subdir and do the tests there. Otherwise we can end up
3695 # making bogus files that we don't know about and never remove. For
3696 # instance it was reported that on HP-UX the gcc test will end up
3697 # making a dummy file named `D' -- because `-MD' means `put the output
3700 # Copy depcomp to subdir because otherwise we won't find it if we're
3701 # using a relative directory.
3702 cp "$am_depcomp" conftest.dir
3704 # We will build objects and dependencies in a subdirectory because
3705 # it helps to detect inapplicable dependency modes. For instance
3706 # both Tru64's cc and ICC support -MD to output dependencies as a
3707 # side effect of compilation, but ICC will put the dependencies in
3708 # the current directory while Tru64 will put them in the object
3712 am_cv_CC_dependencies_compiler_type
=none
3713 if test "$am_compiler_list" = ""; then
3714 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3716 for depmode
in $am_compiler_list; do
3717 # Setup a source with many dependencies, because some compilers
3718 # like to wrap large dependency lists on column 80 (with \), and
3719 # we should not choose a depcomp mode which is confused by this.
3721 # We need to recreate these files for each test, as the compiler may
3722 # overwrite some of them when testing with obscure command lines.
3723 # This happens at least with the AIX C compiler.
3725 for i
in 1 2 3 4 5 6; do
3726 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3727 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3728 # Solaris 8's {/usr,}/bin/sh.
3729 touch sub
/conftst
$i.h
3731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3735 # after this tag, mechanisms are not by side-effect, so they'll
3736 # only be used when explicitly requested
3737 if test "x$enable_dependency_tracking" = xyes
; then
3745 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3746 # mode. It turns out that the SunPro C++ compiler does not properly
3747 # handle `-M -o', and we need to detect this.
3748 if depmode
=$depmode \
3749 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3750 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3751 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3752 >/dev
/null
2>conftest.err
&&
3753 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3754 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3755 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3756 # icc doesn't choke on unknown options, it will just issue warnings
3757 # or remarks (even with -Werror). So we grep stderr for any message
3758 # that says an option was ignored or not supported.
3759 # When given -MP, icc 7.0 and 7.1 complain thusly:
3760 # icc: Command line warning: ignoring option '-M'; no argument required
3761 # The diagnosis changed in icc 8.0:
3762 # icc: Command line remark: option '-MP' not supported
3763 if (grep 'ignoring option' conftest.err ||
3764 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3765 am_cv_CC_dependencies_compiler_type
=$depmode
3774 am_cv_CC_dependencies_compiler_type
=none
3778 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3780 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3785 test "x$enable_dependency_tracking" != xno \
3786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3788 am__fastdepCC_FALSE
='#'
3790 am__fastdepCC_TRUE
='#'
3791 am__fastdepCC_FALSE
=
3796 ac_cpp
='$CPP $CPPFLAGS'
3797 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3802 # On Suns, sometimes $CPP names a directory.
3803 if test -n "$CPP" && test -d "$CPP"; then
3806 if test -z "$CPP"; then
3807 if test "${ac_cv_prog_CPP+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 # Double quotes because CPP needs to be expanded
3811 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3814 for ac_c_preproc_warn_flag
in '' yes
3816 # Use a header file that comes with gcc, so configuring glibc
3817 # with a fresh cross-compiler works.
3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819 # <limits.h> exists even on freestanding compilers.
3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3821 # not just through cpp. "Syntax error" is here to catch this case.
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 # include <limits.h>
3831 # include <assert.h>
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1
>conftest.err
3840 cat conftest.err
>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev
/null
; then
3843 if test -s conftest.err
; then
3844 ac_cpp_err
=$ac_c_preproc_warn_flag
3845 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3852 if test -z "$ac_cpp_err"; then
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.
$ac_ext >&5
3858 # Broken: fails on valid input.
3861 rm -f conftest.err conftest.
$ac_ext
3863 # OK, works on sane cases. Now check whether non-existent headers
3864 # can be detected and how.
3865 cat >conftest.
$ac_ext <<_ACEOF
3868 cat confdefs.h
>>conftest.
$ac_ext
3869 cat >>conftest.
$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <ac_nonexistent.h>
3873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3876 grep -v '^ *+' conftest.er1
>conftest.err
3878 cat conftest.err
>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } >/dev
/null
; then
3881 if test -s conftest.err
; then
3882 ac_cpp_err
=$ac_c_preproc_warn_flag
3883 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3890 if test -z "$ac_cpp_err"; then
3891 # Broken: success on invalid input.
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.
$ac_ext >&5
3897 # Passes both tests.
3901 rm -f conftest.err conftest.
$ac_ext
3904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3905 rm -f conftest.err conftest.
$ac_ext
3906 if $ac_preproc_ok; then
3918 echo "$as_me:$LINENO: result: $CPP" >&5
3919 echo "${ECHO_T}$CPP" >&6
3921 for ac_c_preproc_warn_flag
in '' yes
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3936 # include <limits.h>
3938 # include <assert.h>
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1
>conftest.err
3947 cat conftest.err
>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev
/null
; then
3950 if test -s conftest.err
; then
3951 ac_cpp_err
=$ac_c_preproc_warn_flag
3952 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3959 if test -z "$ac_cpp_err"; then
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.
$ac_ext >&5
3965 # Broken: fails on valid input.
3968 rm -f conftest.err conftest.
$ac_ext
3970 # OK, works on sane cases. Now check whether non-existent headers
3971 # can be detected and how.
3972 cat >conftest.
$ac_ext <<_ACEOF
3975 cat confdefs.h
>>conftest.
$ac_ext
3976 cat >>conftest.
$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <ac_nonexistent.h>
3980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3983 grep -v '^ *+' conftest.er1
>conftest.err
3985 cat conftest.err
>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev
/null
; then
3988 if test -s conftest.err
; then
3989 ac_cpp_err
=$ac_c_preproc_warn_flag
3990 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3997 if test -z "$ac_cpp_err"; then
3998 # Broken: success on invalid input.
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.
$ac_ext >&5
4004 # Passes both tests.
4008 rm -f conftest.err conftest.
$ac_ext
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.err conftest.
$ac_ext
4013 if $ac_preproc_ok; then
4016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4017 See \`config.log' for more details." >&5
4018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4019 See \`config.log' for more details." >&2;}
4020 { (exit 1); exit 1; }; }
4024 ac_cpp
='$CPP $CPPFLAGS'
4025 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4029 if test "$cross_compiling" = yes; then
4031 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4034 # Even if we're cross-compiling, we want a compiler here
4035 # that is not a cross-compiler.
4036 saved_cross
=$cross_compiling
4040 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4041 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4044 if test -n "$ac_build_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4046 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$BUILD_CC"; then
4053 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir
=.
4060 for ac_exec_ext
in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 BUILD_CC
=$ac_cv_prog_BUILD_CC
4072 if test -n "$BUILD_CC"; then
4073 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4074 echo "${ECHO_T}$BUILD_CC" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4081 if test -z "$ac_cv_prog_BUILD_CC"; then
4082 ac_ct_BUILD_CC
=$BUILD_CC
4083 # Extract the first word of "gcc", so it can be a program name with args.
4084 set dummy gcc
; ac_word
=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$ac_ct_BUILD_CC"; then
4091 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir
=.
4098 for ac_exec_ext
in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4110 if test -n "$ac_ct_BUILD_CC"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4112 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 BUILD_CC
=$ac_ct_BUILD_CC
4120 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4123 if test -z "$BUILD_CC"; then
4124 if test -n "$ac_build_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -n "$BUILD_CC"; then
4133 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir
=.
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 BUILD_CC
=$ac_cv_prog_BUILD_CC
4152 if test -n "$BUILD_CC"; then
4153 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4154 echo "${ECHO_T}$BUILD_CC" >&6
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4161 if test -z "$ac_cv_prog_BUILD_CC"; then
4162 ac_ct_BUILD_CC
=$BUILD_CC
4163 # Extract the first word of "cc", so it can be a program name with args.
4164 set dummy cc
; ac_word
=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if test -n "$ac_ct_BUILD_CC"; then
4171 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir
=.
4178 for ac_exec_ext
in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4190 if test -n "$ac_ct_BUILD_CC"; then
4191 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4192 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4198 BUILD_CC
=$ac_ct_BUILD_CC
4200 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4204 if test -z "$BUILD_CC"; then
4205 # Extract the first word of "cc", so it can be a program name with args.
4206 set dummy cc
; ac_word
=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test -n "$BUILD_CC"; then
4213 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir
=.
4221 for ac_exec_ext
in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4224 ac_prog_rejected
=yes
4227 ac_cv_prog_BUILD_CC
="cc"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy
$ac_cv_prog_BUILD_CC
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set BUILD_CC to just the basename; use the full file name.
4243 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4248 BUILD_CC
=$ac_cv_prog_BUILD_CC
4249 if test -n "$BUILD_CC"; then
4250 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4251 echo "${ECHO_T}$BUILD_CC" >&6
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4258 if test -z "$BUILD_CC"; then
4259 if test -n "$ac_build_prefix"; then
4262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$BUILD_CC"; then
4270 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 BUILD_CC
=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 test -n "$BUILD_CC" && break
4300 if test -z "$BUILD_CC"; then
4301 ac_ct_BUILD_CC
=$BUILD_CC
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 set dummy
$ac_prog; ac_word
=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$ac_ct_BUILD_CC"; then
4312 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir
=.
4319 for ac_exec_ext
in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4331 if test -n "$ac_ct_BUILD_CC"; then
4332 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4333 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4335 echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4339 test -n "$ac_ct_BUILD_CC" && break
4342 BUILD_CC
=$ac_ct_BUILD_CC
4348 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&5
4350 echo "$as_me: error: no acceptable C compiler found in \$PATH
4351 See \`config.log' for more details." >&2;}
4352 { (exit 1); exit 1; }; }
4354 # Provide some information about the compiler.
4355 echo "$as_me:$LINENO:" \
4356 "checking for C compiler version" >&5
4357 ac_compiler
=`set X $ac_compile; echo $2`
4358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4359 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }
4363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4364 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }
4368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4369 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }
4374 cat >conftest.
$ac_ext <<_ACEOF
4377 cat confdefs.h
>>conftest.
$ac_ext
4378 cat >>conftest.
$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4389 ac_clean_files_save
=$ac_clean_files
4390 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4391 # Try to create an executable without -o first, disregard a.out.
4392 # It will help us diagnose broken compilers, and finding out an intuition
4394 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4395 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4396 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4398 (eval $ac_link_default) 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 # Find the output, starting from the most likely. This scheme is
4403 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4406 # Be careful to initialize this variable, since it used to be cached.
4407 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4409 # b.out is created by i960 compilers.
4410 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4412 test -f "$ac_file" ||
continue
4414 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4417 # This is the source file.
4420 # We found the default executable, but exeext='' is most
4424 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4425 # FIXME: I believe we export ac_cv_exeext for Libtool,
4426 # but it would be cool to find out if it's true. Does anybody
4427 # maintain Libtool? --akim.
4428 export ac_cv_build_exeext
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.
$ac_ext >&5
4438 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&5
4440 echo "$as_me: error: C compiler cannot create executables
4441 See \`config.log' for more details." >&2;}
4442 { (exit 77); exit 77; }; }
4445 ac_build_exeext
=$ac_cv_build_exeext
4446 echo "$as_me:$LINENO: result: $ac_file" >&5
4447 echo "${ECHO_T}$ac_file" >&6
4449 # Check the compiler produces executables we can run. If not, either
4450 # the compiler is broken, or we cross compile.
4451 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4452 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4454 # If not cross compiling, check that we can run a simple program.
4455 if test "$cross_compiling" != yes; then
4456 if { ac_try
='./$ac_file'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4464 if test "$cross_compiling" = maybe
; then
4467 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details." >&5
4470 echo "$as_me: error: cannot run C compiled programs.
4471 If you meant to cross compile, use \`--host'.
4472 See \`config.log' for more details." >&2;}
4473 { (exit 1); exit 1; }; }
4477 echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4480 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4481 ac_clean_files
=$ac_clean_files_save
4482 # Check the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4485 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4486 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4487 echo "${ECHO_T}$cross_compiling" >&6
4489 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4490 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4497 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4498 # work properly (i.e., refer to `conftest.exe'), while it won't with
4500 for ac_file
in conftest.exe conftest conftest.
*; do
4501 test -f "$ac_file" ||
continue
4503 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4504 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 export ac_cv_build_exeext
4511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&5
4513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4514 See \`config.log' for more details." >&2;}
4515 { (exit 1); exit 1; }; }
4518 rm -f conftest
$ac_cv_build_exeext
4519 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4520 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4522 rm -f conftest.
$ac_ext
4523 BUILD_EXEEXT
=$ac_cv_build_exeext
4524 ac_build_exeext
=$BUILD_EXEEXT
4527 # Restore configuration environment
4528 cross_compiling
=$saved_cross
4531 ac_cpp
='$CPP $CPPFLAGS'
4532 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4537 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4540 CFLAGS
="$mule_backup_CFLAGS"
4541 CXXFLAGS
="$mule_backup_CXXFLAGS"
4542 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4543 for ac_prog
in gawk mawk nawk
awk
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy
$ac_prog; ac_word
=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_AWK+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$AWK"; then
4553 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir
=.
4560 for ac_exec_ext
in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_AWK
="$ac_prog"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$AWK"; then
4573 echo "$as_me:$LINENO: result: $AWK" >&5
4574 echo "${ECHO_T}$AWK" >&6
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4580 test -n "$AWK" && break
4583 echo "$as_me:$LINENO: checking for egrep" >&5
4584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4585 if test "${ac_cv_prog_egrep+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4589 then ac_cv_prog_egrep
='grep -E'
4590 else ac_cv_prog_egrep
='egrep'
4593 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4594 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4595 EGREP
=$ac_cv_prog_egrep
4598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4599 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4600 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 cat >conftest.
make <<\_ACEOF
4606 @
echo 'ac_maketemp="$(MAKE)"'
4608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4610 if test -n "$ac_maketemp"; then
4611 eval ac_cv_prog_make_
${ac_make}_set
=yes
4613 eval ac_cv_prog_make_
${ac_make}_set
=no
4617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 SET_MAKE
="MAKE=${MAKE-make}"
4628 for ac_prog
in flex
lex
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy
$ac_prog; ac_word
=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_prog_LEX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$LEX"; then
4638 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 for ac_exec_ext
in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_LEX
="$ac_prog"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test -n "$LEX"; then
4658 echo "$as_me:$LINENO: result: $LEX" >&5
4659 echo "${ECHO_T}$LEX" >&6
4661 echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4665 test -n "$LEX" && break
4667 test -n "$LEX" || LEX
=":"
4669 if test -z "$LEXLIB"
4671 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4672 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4673 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 ac_check_lib_save_LIBS
=$LIBS
4678 cat >conftest.
$ac_ext <<_ACEOF
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4700 rm -f conftest.
$ac_objext conftest
$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1
>conftest.err
4706 cat conftest.err
>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try
='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try
='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_lib_fl_yywrap
=yes
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.
$ac_ext >&5
4727 ac_cv_lib_fl_yywrap
=no
4729 rm -f conftest.err conftest.
$ac_objext \
4730 conftest
$ac_exeext conftest.
$ac_ext
4731 LIBS
=$ac_check_lib_save_LIBS
4733 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4734 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4735 if test $ac_cv_lib_fl_yywrap = yes; then
4738 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4739 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4740 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_check_lib_save_LIBS
=$LIBS
4745 cat >conftest.
$ac_ext <<_ACEOF
4748 cat confdefs.h
>>conftest.
$ac_ext
4749 cat >>conftest.
$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4767 rm -f conftest.
$ac_objext conftest
$ac_exeext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1
>conftest.err
4773 cat conftest.err
>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try
='test -z "$ac_c_werror_flag"
4777 || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try
='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_lib_l_yywrap
=yes
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.
$ac_ext >&5
4794 ac_cv_lib_l_yywrap
=no
4796 rm -f conftest.err conftest.
$ac_objext \
4797 conftest
$ac_exeext conftest.
$ac_ext
4798 LIBS
=$ac_check_lib_save_LIBS
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4801 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4802 if test $ac_cv_lib_l_yywrap = yes; then
4810 if test "x$LEX" != "x:"; then
4811 echo "$as_me:$LINENO: checking lex output file root" >&5
4812 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4813 if test "${ac_cv_prog_lex_root+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 # The minimal lex program is just a single line: %%. But some broken lexes
4817 # (Solaris, I think it was) want two %% lines, so accommodate them.
4818 cat >conftest.l
<<_ACEOF
4822 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4823 (eval $LEX conftest.l
) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }
4827 if test -f lex.yy.c
; then
4828 ac_cv_prog_lex_root
=lex.yy
4829 elif test -f lexyy.c
; then
4830 ac_cv_prog_lex_root
=lexyy
4832 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4833 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4834 { (exit 1); exit 1; }; }
4837 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4838 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4840 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4842 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4843 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4844 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 # POSIX says lex can declare yytext either as a pointer or an array; the
4848 # default is implementation-dependent. Figure out which it is, since
4849 # not all implementations provide the %pointer and %array declarations.
4850 ac_cv_prog_lex_yytext_pointer
=no
4851 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4853 LIBS
="$LIBS $LEXLIB"
4854 cat >conftest.
$ac_ext <<_ACEOF
4855 `cat $LEX_OUTPUT_ROOT.c`
4857 rm -f conftest.
$ac_objext conftest
$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>conftest.er1
4861 grep -v '^ *+' conftest.er1
>conftest.err
4863 cat conftest.err
>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try
='test -z "$ac_c_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try
='test -s conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 ac_cv_prog_lex_yytext_pointer
=yes
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.
$ac_ext >&5
4885 rm -f conftest.err conftest.
$ac_objext \
4886 conftest
$ac_exeext conftest.
$ac_ext
4888 rm -f "${LEX_OUTPUT_ROOT}.c"
4891 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4892 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4893 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4895 cat >>confdefs.h
<<\_ACEOF
4896 #define YYTEXT_POINTER 1
4902 # Find a good install program. We prefer a C program (faster),
4903 # so one script is as good as another. But avoid the broken or
4904 # incompatible versions:
4905 # SysV /etc/install, /usr/sbin/install
4906 # SunOS /usr/etc/install
4907 # IRIX /sbin/install
4909 # AmigaOS /C/install, which installs bootblocks on floppy discs
4910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4913 # OS/2's system install, which has a completely different semantic
4914 # ./install, which can be erroneously created by make from ./install.sh.
4915 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4916 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4917 if test -z "$INSTALL"; then
4918 if test "${ac_cv_path_install+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir
=.
4926 # Account for people who put trailing slashes in PATH elements.
4928 .
/ | .
// |
/cC
/* | \
4929 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4930 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4933 # OSF1 and SCO ODT 3.0 have their own names for install.
4934 # Don't use installbsd from OSF since it installs stuff as root
4936 for ac_prog
in ginstall scoinst
install; do
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4939 if test $ac_prog = install &&
4940 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4941 # AIX install. It has an incompatible calling convention.
4943 elif test $ac_prog = install &&
4944 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4945 # program-specific install script used by HP pwplus--don't use.
4948 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4960 if test "${ac_cv_path_install+set}" = set; then
4961 INSTALL
=$ac_cv_path_install
4963 # As a last resort, use the slow shell script. We don't cache a
4964 # path for INSTALL within a source directory, because that will
4965 # break other packages using the cache if that directory is
4966 # removed, or if the path is relative.
4967 INSTALL
=$ac_install_sh
4970 echo "$as_me:$LINENO: result: $INSTALL" >&5
4971 echo "${ECHO_T}$INSTALL" >&6
4973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4974 # It thinks the first close brace ends the variable substitution.
4975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4979 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4983 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4984 echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986 if test "${ac_cv_prog_RANLIB+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$RANLIB"; then
4990 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir
=.
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 RANLIB
=$ac_cv_prog_RANLIB
5009 if test -n "$RANLIB"; then
5010 echo "$as_me:$LINENO: result: $RANLIB" >&5
5011 echo "${ECHO_T}$RANLIB" >&6
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5018 if test -z "$ac_cv_prog_RANLIB"; then
5019 ac_ct_RANLIB
=$RANLIB
5020 # Extract the first word of "ranlib", so it can be a program name with args.
5021 set dummy ranlib
; ac_word
=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$ac_ct_RANLIB"; then
5028 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir
=.
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5047 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5048 if test -n "$ac_ct_RANLIB"; then
5049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5050 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 RANLIB
=$ac_ct_RANLIB
5058 RANLIB
="$ac_cv_prog_RANLIB"
5061 for ac_prog
in 'bison -y' byacc
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy
$ac_prog; ac_word
=$2
5065 echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5067 if test "${ac_cv_prog_YACC+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 if test -n "$YACC"; then
5071 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir
=.
5078 for ac_exec_ext
in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_YACC
="$ac_prog"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 YACC
=$ac_cv_prog_YACC
5090 if test -n "$YACC"; then
5091 echo "$as_me:$LINENO: result: $YACC" >&5
5092 echo "${ECHO_T}$YACC" >&6
5094 echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5098 test -n "$YACC" && break
5100 test -n "$YACC" || YACC
="yacc"
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5105 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5106 echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108 if test "${ac_cv_prog_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -n "$RANLIB"; then
5112 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 RANLIB
=$ac_cv_prog_RANLIB
5131 if test -n "$RANLIB"; then
5132 echo "$as_me:$LINENO: result: $RANLIB" >&5
5133 echo "${ECHO_T}$RANLIB" >&6
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5140 if test -z "$ac_cv_prog_RANLIB"; then
5141 ac_ct_RANLIB
=$RANLIB
5142 # Extract the first word of "ranlib", so it can be a program name with args.
5143 set dummy ranlib
; ac_word
=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 if test -n "$ac_ct_RANLIB"; then
5150 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir
=.
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5169 if test -n "$ac_ct_RANLIB"; then
5170 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5171 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5173 echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5177 RANLIB
=$ac_ct_RANLIB
5179 RANLIB
="$ac_cv_prog_RANLIB"
5182 if test -n "$ac_tool_prefix"; then
5183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5184 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5185 echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187 if test "${ac_cv_prog_STRIP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 if test -n "$STRIP"; then
5191 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 STRIP
=$ac_cv_prog_STRIP
5210 if test -n "$STRIP"; then
5211 echo "$as_me:$LINENO: result: $STRIP" >&5
5212 echo "${ECHO_T}$STRIP" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5219 if test -z "$ac_cv_prog_STRIP"; then
5221 # Extract the first word of "strip", so it can be a program name with args.
5222 set dummy strip
; ac_word
=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test -n "$ac_ct_STRIP"; then
5229 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir
=.
5236 for ac_exec_ext
in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_STRIP
="strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5248 if test -n "$ac_ct_STRIP"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5250 echo "${ECHO_T}$ac_ct_STRIP" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5258 STRIP
="$ac_cv_prog_STRIP"
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5263 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_AR+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -n "$AR"; then
5270 ac_cv_prog_AR
="$AR" # Let the user override the test.
5272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir
=.
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 if test -n "$AR"; then
5290 echo "$as_me:$LINENO: result: $AR" >&5
5291 echo "${ECHO_T}$AR" >&6
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5298 if test -z "$ac_cv_prog_AR"; then
5300 # Extract the first word of "ar", so it can be a program name with args.
5301 set dummy
ar; ac_word
=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test -n "$ac_ct_AR"; then
5308 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_AR
="ar"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5327 if test -n "$ac_ct_AR"; then
5328 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5329 echo "${ECHO_T}$ac_ct_AR" >&6
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5342 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_LD+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$LD"; then
5349 ac_cv_prog_LD
="$LD" # Let the user override the test.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 if test -n "$LD"; then
5369 echo "$as_me:$LINENO: result: $LD" >&5
5370 echo "${ECHO_T}$LD" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5377 if test -z "$ac_cv_prog_LD"; then
5379 # Extract the first word of "ld", so it can be a program name with args.
5380 set dummy ld
; ac_word
=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 if test -n "$ac_ct_LD"; then
5387 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_LD
="ld"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5406 if test -n "$ac_ct_LD"; then
5407 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5408 echo "${ECHO_T}$ac_ct_LD" >&6
5410 echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5420 # Check whether --enable-monolithic or --disable-monolithic was given.
5421 if test "${enable_monolithic+set}" = set; then
5422 enableval
="$enable_monolithic"
5423 MONOLITHIC
=$enableval
5428 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5429 if test "${enable_amule_daemon+set}" = set; then
5430 enableval
="$enable_amule_daemon"
5431 AMULE_DAEMON
=$enableval
5436 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5437 if test "${enable_amulecmd+set}" = set; then
5438 enableval
="$enable_amulecmd"
5444 # Check whether --enable-webserver or --disable-webserver was given.
5445 if test "${enable_webserver+set}" = set; then
5446 enableval
="$enable_webserver"
5452 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5453 if test "${enable_amule_gui+set}" = set; then
5454 enableval
="$enable_amule_gui"
5455 AMULE_GUI
=$enableval
5460 # Check whether --enable-cas or --disable-cas was given.
5461 if test "${enable_cas+set}" = set; then
5462 enableval
="$enable_cas"
5468 # Check whether --enable-wxcas or --disable-wxcas was given.
5469 if test "${enable_wxcas+set}" = set; then
5470 enableval
="$enable_wxcas"
5476 # Check whether --enable-ed2k or --disable-ed2k was given.
5477 if test "${enable_ed2k+set}" = set; then
5478 enableval
="$enable_ed2k"
5484 # Check whether --enable-alc or --disable-alc was given.
5485 if test "${enable_alc+set}" = set; then
5486 enableval
="$enable_alc"
5492 # Check whether --enable-alcc or --disable-alcc was given.
5493 if test "${enable_alcc+set}" = set; then
5494 enableval
="$enable_alcc"
5500 # Check whether --enable-monolithic or --disable-monolithic was given.
5501 if test "${enable_monolithic+set}" = set; then
5502 enableval
="$enable_monolithic"
5503 MONOLITHIC
=$enableval
5508 # Check whether --enable-upnp or --disable-upnp was given.
5509 if test "${enable_upnp+set}" = set; then
5510 enableval
="$enable_upnp"
5511 ENABLE_UPNP
=$enableval
5516 # Check whether --enable-geoip or --disable-geoip was given.
5517 if test "${enable_geoip+set}" = set; then
5518 enableval
="$enable_geoip"
5519 ENABLE_IP2COUNTRY
=$enableval
5521 ENABLE_IP2COUNTRY
=no
5525 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5526 if test "${with_geoip_headers+set}" = set; then
5527 withval
="$with_geoip_headers"
5528 GEOIP_CPPFLAGS
="-I$withval"
5532 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5533 if test "${with_geoip_lib+set}" = set; then
5534 withval
="$with_geoip_lib"
5535 GEOIP_LDFLAGS
="-L$withval"
5539 # Check whether --with-geoip-static or --without-geoip-static was given.
5540 if test "${with_geoip_static+set}" = set; then
5541 withval
="$with_geoip_static"
5542 if test "$withval" != "no"; then
5543 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5548 # Default is yes, because they're most likely compatible.
5549 # However, this is only used when cross-compiling.
5551 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5552 if test "${with_gnu_malloc+set}" = set; then
5553 withval
="$with_gnu_malloc"
5560 # Checking for libs before all other stuff to break
5561 # configure as soon as possible in case of a missing one
5562 # to avoid losing too much time
5567 # Check whether --with-zlib or --without-zlib was given.
5568 if test "${with_zlib+set}" = set; then
5569 withval
="$with_zlib"
5573 case "${with_zlib:-yes}" in
5575 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5576 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5577 { (exit 1); exit 1; }; }
5582 zlib_prefix
="$with_zlib"
5585 mule_backup_CPPFLAGS
="$CPPFLAGS"
5586 mule_backup_LDFLAGS
="$LDFLAGS"
5587 mule_backup_LIBS
="$LIBS"
5588 if test -n "$zlib_prefix"; then
5590 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5591 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5592 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5593 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5603 LIBS
="$ZLIB_LIBS $LIBS"
5605 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5606 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5607 if test "$cross_compiling" = yes; then
5611 cat >conftest.
$ac_ext <<_ACEOF
5615 cat confdefs.h
>>conftest.
$ac_ext
5616 cat >>conftest.
$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5626 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5634 rm -f conftest.
$ac_objext conftest
$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1
>conftest.err
5640 cat conftest.err
>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try
='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try
='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5657 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5658 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5659 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5660 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5661 if test "$cross_zver_max" -gt "1"; then
5663 elif test "$cross_zver_max" -eq "1"; then
5664 if test "$cross_zver_mid" -gt "1"; then
5666 elif "$cross_zver_mid" -eq "1"; then
5667 if test "$cross_zver_min" -ge "4"; then
5672 if test ${result:-no} = yes; then
5673 z_version
=" (version $ZLIB_VERSION)"
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.
$ac_ext >&5
5682 rm -f conftest.err conftest.
$ac_objext \
5683 conftest
$ac_exeext conftest.
$ac_ext
5684 echo "$as_me:$LINENO: result: $result$z_version" >&5
5685 echo "${ECHO_T}$result$z_version" >&6
5688 cat >conftest.
$ac_ext <<_ACEOF
5692 cat confdefs.h
>>conftest.
$ac_ext
5693 cat >>conftest.
$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5702 char *zver = zlibVersion();
5703 FILE *f=fopen("conftestval", "w");
5710 zver[4] >= '4'))) ? "yes" : "no");
5712 f=fopen("conftestver", "w");
5714 fprintf(f, "%s", ZLIB_VERSION);
5723 rm -f conftest
$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5735 if test -f conftestval
; then
5736 result
=`cat conftestval`
5741 if test ${result:-no} = yes; then
5743 if test -f conftestver
; then
5745 ZLIB_VERSION
=`cat conftestver`
5746 z_version
=" (version $ZLIB_VERSION)"
5755 echo "$as_me:$LINENO: result: $result$z_version" >&5
5756 echo "${ECHO_T}$result$z_version" >&6
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.
$ac_ext >&5
5766 echo "$as_me:$LINENO: result: $result" >&5
5767 echo "${ECHO_T}$result" >&6
5770 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5773 CPPFLAGS
="$mule_backup_CPPFLAGS"
5774 LDFLAGS
="$mule_backup_LDFLAGS"
5775 LIBS
="$mule_backup_LIBS"
5777 if test ${result:-no} = no
; then
5782 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5783 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5784 { (exit 1); exit 1; }; }
5791 if test x
$CAS = xyes
; then
5795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5797 if test "${ac_cv_header_stdc+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5819 rm -f conftest.
$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>conftest.er1
5823 grep -v '^ *+' conftest.er1
>conftest.err
5825 cat conftest.err
>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try
='test -z "$ac_c_werror_flag"
5829 || test ! -s conftest.err'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; } &&
5835 { ac_try
='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_cv_header_stdc
=yes
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.
$ac_ext >&5
5846 ac_cv_header_stdc
=no
5848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 if test $ac_cv_header_stdc = yes; then
5851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5852 cat >conftest.
$ac_ext <<_ACEOF
5855 cat confdefs.h
>>conftest.
$ac_ext
5856 cat >>conftest.
$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5862 $EGREP "memchr" >/dev
/null
2>&1; then
5865 ac_cv_header_stdc
=no
5871 if test $ac_cv_header_stdc = yes; then
5872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5873 cat >conftest.
$ac_ext <<_ACEOF
5876 cat confdefs.h
>>conftest.
$ac_ext
5877 cat >>conftest.
$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "free" >/dev
/null
2>&1; then
5886 ac_cv_header_stdc
=no
5892 if test $ac_cv_header_stdc = yes; then
5893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5894 if test "$cross_compiling" = yes; then
5897 cat >conftest.
$ac_ext <<_ACEOF
5900 cat confdefs.h
>>conftest.
$ac_ext
5901 cat >>conftest.
$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5927 rm -f conftest
$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: program exited with status $ac_status" >&5
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5945 ac_cv_header_stdc
=no
5947 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5953 if test $ac_cv_header_stdc = yes; then
5955 cat >>confdefs.h
<<\_ACEOF
5956 #define STDC_HEADERS 1
5961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5971 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5972 inttypes.h stdint.h unistd.h
5974 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_header" >&5
5976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >conftest.
$ac_ext <<_ACEOF
5983 cat confdefs.h
>>conftest.
$ac_ext
5984 cat >>conftest.
$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 $ac_includes_default
5988 #include <$ac_header>
5990 rm -f conftest.
$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try
='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 eval "$as_ac_Header=yes"
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6017 eval "$as_ac_Header=no"
6019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6024 cat >>confdefs.h
<<_ACEOF
6025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6036 if test "${with_gdlib_prefix+set}" = set; then
6037 withval
="$with_gdlib_prefix"
6041 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6042 if test "${with_gdlib_config+set}" = set; then
6043 withval
="$with_gdlib_config"
6049 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6050 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6051 GDLIB_CONFIG_NAME
=gdlib-config
6054 if test -n "$with_gdlib_config"; then
6055 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6059 # deal with optional prefix
6060 if test -n "$with_gdlib_prefix"; then
6061 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6065 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6066 if test -x "$GDLIB_CONFIG_NAME"; then
6068 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6069 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6070 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6071 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6072 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6075 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6076 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6077 echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 case $GDLIB_CONFIG_PATH in
6084 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6089 for as_dir
in $as_dummy
6092 test -z "$as_dir" && as_dir
=.
6093 for ac_exec_ext
in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6106 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6108 if test -n "$GDLIB_CONFIG_PATH"; then
6109 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6110 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6119 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6121 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6122 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6123 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6125 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6126 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6127 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6128 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6131 if test $gdlib_config_major_version -gt 2; then
6134 if test $gdlib_config_major_version -eq 2; then
6135 if test $gdlib_config_minor_version -gt 0; then
6138 if test $gdlib_config_minor_version -eq 0; then
6139 if test $gdlib_config_micro_version -ge 0; then
6147 if test -z "$gdlib_ver_ok"; then
6149 if test -z "$GDLIB_VERSION"; then
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6154 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6155 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6163 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6164 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6165 if test "${ac_cv_header_gd_h+set}" = set; then
6166 echo "$as_me:$LINENO: checking for gd.h" >&5
6167 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6168 if test "${ac_cv_header_gd_h+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6172 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6174 # Is the header compilable?
6175 echo "$as_me:$LINENO: checking gd.h usability" >&5
6176 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6177 cat >conftest.
$ac_ext <<_ACEOF
6180 cat confdefs.h
>>conftest.
$ac_ext
6181 cat >>conftest.
$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6186 rm -f conftest.
$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1
>conftest.err
6192 cat conftest.err
>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try
='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try
='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_header_compiler
=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.
$ac_ext >&5
6213 ac_header_compiler
=no
6215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6217 echo "${ECHO_T}$ac_header_compiler" >&6
6219 # Is the header present?
6220 echo "$as_me:$LINENO: checking gd.h presence" >&5
6221 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6222 cat >conftest.
$ac_ext <<_ACEOF
6225 cat confdefs.h
>>conftest.
$ac_ext
6226 cat >>conftest.
$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev
/null
; then
6238 if test -s conftest.err
; then
6239 ac_cpp_err
=$ac_c_preproc_warn_flag
6240 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6247 if test -z "$ac_cpp_err"; then
6248 ac_header_preproc
=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6253 ac_header_preproc
=no
6255 rm -f conftest.err conftest.
$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6262 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6265 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6266 ac_header_preproc
=yes
6269 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6270 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6272 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6274 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6276 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6280 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6283 ## ------------------------------ ##
6284 ## Report this to admin@amule.org ##
6285 ## ------------------------------ ##
6288 sed "s/^/$as_me: WARNING: /" >&2
6291 echo "$as_me:$LINENO: checking for gd.h" >&5
6292 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6293 if test "${ac_cv_header_gd_h+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 ac_cv_header_gd_h
=$ac_header_preproc
6298 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6299 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6302 if test $ac_cv_header_gd_h = yes; then
6304 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6305 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6306 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6320 if test -n "$GDLIB_VERSION"; then
6323 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6332 if test -z "$CAS_DEFS"; then
6334 { echo "$as_me:$LINENO: WARNING:
6335 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6336 Please check that gdlib-config is in your default path, check out
6337 LD_LIBRARY_PATH or equivalent variable.
6338 Or this might also be that your gdlib-config has other name.
6339 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6340 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6341 If you use compiled packages check if you have devel pack installed.
6342 To download the latest version check http://www.boutell.com/gd
6344 echo "$as_me: WARNING:
6345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6346 Please check that gdlib-config is in your default path, check out
6347 LD_LIBRARY_PATH or equivalent variable.
6348 Or this might also be that your gdlib-config has other name.
6349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6350 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6351 If you use compiled packages check if you have devel pack installed.
6352 To download the latest version check http://www.boutell.com/gd
6359 GDLIB_VERSION
="not_needed"
6364 if test x
$WEB = xyes
; then
6366 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6367 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6369 for REGEX_LIBS
in '' -lgnurx -lregex; do
6370 mule_backup_LIBS
="$LIBS"
6371 LIBS
="$REGEX_LIBS $LIBS"
6372 cat >conftest.
$ac_ext <<_ACEOF
6376 cat confdefs.h
>>conftest.
$ac_ext
6377 cat >>conftest.
$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6387 regcomp(&preg, "", REG_EXTENDED);
6389 regexec(&preg, "", 0, pmatch, 0);
6397 rm -f conftest.
$ac_objext conftest
$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1
>conftest.err
6403 cat conftest.err
>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try
='test -z "$ac_c_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try
='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6420 LIBS
="$mule_backup_LIBS"
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 LIBS
="$mule_backup_LIBS"
6430 rm -f conftest.err conftest.
$ac_objext \
6431 conftest
$ac_exeext conftest.
$ac_ext
6433 echo "$as_me:$LINENO: result: $regex_found" >&5
6434 echo "${ECHO_T}$regex_found" >&6
6435 if test $regex_found = yes; then
6444 if test x
$WEB = xyes
; then
6447 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6448 if test "${with_libpng_prefix+set}" = set; then
6449 withval
="$with_libpng_prefix"
6453 # Check whether --with-libpng-config or --without-libpng-config was given.
6454 if test "${with_libpng_config+set}" = set; then
6455 withval
="$with_libpng_config"
6461 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6462 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6463 LIBPNG_CONFIG_NAME
=libpng-config
6466 if test -n "$with_libpng_config"; then
6467 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6471 # deal with optional prefix
6472 if test -n "$with_libpng_prefix"; then
6473 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6477 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6478 if test -x "$LIBPNG_CONFIG_NAME"; then
6480 echo "$as_me:$LINENO: checking for libpng-config" >&5
6481 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6482 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6483 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6484 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6487 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6488 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 case $LIBPNG_CONFIG_PATH in
6496 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6500 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6501 for as_dir
in $as_dummy
6504 test -z "$as_dir" && as_dir
=.
6505 for ac_exec_ext
in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6518 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6520 if test -n "$LIBPNG_CONFIG_PATH"; then
6521 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6522 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6524 echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6
6531 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6533 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6534 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6536 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6538 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6539 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6540 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6541 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6544 if test $libpng_config_major_version -gt 1; then
6547 if test $libpng_config_major_version -eq 1; then
6548 if test $libpng_config_minor_version -gt 2; then
6551 if test $libpng_config_minor_version -eq 2; then
6552 if test $libpng_config_micro_version -ge 0; then
6560 if test -z "$libpng_ver_ok"; then
6562 if test -z "$LIBPNG_VERSION"; then
6563 echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6
6567 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6568 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6576 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6577 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6578 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6579 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6580 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6587 # Try hard to find a usable libpng
6588 # Some RedHat RPMs miss libpng-config, so test for
6589 # the usability with default options.
6590 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6591 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6592 mule_backup_LIBS
="$LIBS"
6593 LIBS
="-lpng -lz -lm $LIBS"
6594 if test "$cross_compiling" = yes; then
6596 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6597 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6598 if test "${ac_cv_header_png_h+set}" = set; then
6599 echo "$as_me:$LINENO: checking for png.h" >&5
6600 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6601 if test "${ac_cv_header_png_h+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6607 # Is the header compilable?
6608 echo "$as_me:$LINENO: checking png.h usability" >&5
6609 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6619 rm -f conftest.
$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try
='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_header_compiler
=yes
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.
$ac_ext >&5
6646 ac_header_compiler
=no
6648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6650 echo "${ECHO_T}$ac_header_compiler" >&6
6652 # Is the header present?
6653 echo "$as_me:$LINENO: checking png.h presence" >&5
6654 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6655 cat >conftest.
$ac_ext <<_ACEOF
6658 cat confdefs.h
>>conftest.
$ac_ext
6659 cat >>conftest.
$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6666 grep -v '^ *+' conftest.er1
>conftest.err
6668 cat conftest.err
>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev
/null
; then
6671 if test -s conftest.err
; then
6672 ac_cpp_err
=$ac_c_preproc_warn_flag
6673 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6680 if test -z "$ac_cpp_err"; then
6681 ac_header_preproc
=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.
$ac_ext >&5
6686 ac_header_preproc
=no
6688 rm -f conftest.err conftest.
$ac_ext
6689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6690 echo "${ECHO_T}$ac_header_preproc" >&6
6692 # So? What about this header?
6693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6695 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6696 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6698 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6699 ac_header_preproc
=yes
6702 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6703 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6705 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6707 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6709 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6711 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6713 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6716 ## ------------------------------ ##
6717 ## Report this to admin@amule.org ##
6718 ## ------------------------------ ##
6721 sed "s/^/$as_me: WARNING: /" >&2
6724 echo "$as_me:$LINENO: checking for png.h" >&5
6725 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6726 if test "${ac_cv_header_png_h+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 ac_cv_header_png_h
=$ac_header_preproc
6731 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6732 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6735 if test $ac_cv_header_png_h = yes; then
6737 LIBPNG_VERSION
="detected"
6738 LIBPNG_LIBS
="-lpng -lz -lm"
6745 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6756 /* Check linking to png library */
6758 png_check_sig(NULL, 0);
6764 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6765 FILE *f=fopen("conftestval", "w");
6767 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6769 f=fopen("conftestver", "w");
6771 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6780 rm -f conftest
$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6792 if test -f conftestval
; then
6793 result
=`cat conftestval`
6798 if test ${result:-no} = yes; then
6800 if test -f conftestver
; then
6802 LIBPNG_VERSION
=`cat conftestver`
6803 lib_version
=" (version $LIBPNG_VERSION)"
6808 LIBPNG_VERSION
="detected"
6815 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6816 echo "${ECHO_T}$result$lib_version" >&6
6817 LIBPNG_LIBS
="-lpng -lz -lm"
6820 echo "$as_me: program exited with status $ac_status" >&5
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6827 echo "$as_me:$LINENO: result: $result" >&5
6828 echo "${ECHO_T}$result" >&6
6831 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6833 LIBS
="$mule_backup_LIBS"
6838 if test -n "$LIBPNG_VERSION"; then
6839 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6841 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
6842 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
6849 LIBPNG_VERSION
="not_needed"
6854 # Check for perl File::Copy
6855 echo "$as_me:$LINENO: checking for File::Copy" >&5
6856 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6857 if perl
-e "require File::Copy" 2>/dev
/null
; then
6858 echo "$as_me:$LINENO: result: ok" >&5
6859 echo "${ECHO_T}ok" >&6
6861 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6862 echo "$as_me: error: File::Copy perl module is required" >&2;}
6863 { (exit 1); exit 1; }; }
6868 # Check if we need the GUI
6869 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6870 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6871 if test x
$MONOLITHIC = xyes
; then
6875 if test x
$WXCAS = xyes
; then
6879 if test x
$ALC = xyes
; then
6883 if test x
$AMULE_GUI = xyes
; then
6887 if test x
${need_gui:+set} != xset
; then
6891 echo "$as_me:$LINENO: result: $need_gui" >&5
6892 echo "${ECHO_T}$need_gui" >&6
6895 # Check for GeoIP (required for IP2Country capability)
6896 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6898 GEOIP_LIBS
="-lGeoIP"
6899 mule_backup_CPPFLAGS
="$CPPFLAGS"
6900 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6901 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6902 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6903 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6904 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6908 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6910 # Is the header compilable?
6911 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6912 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6916 cat confdefs.h
>>conftest.
$ac_ext
6917 cat >>conftest.
$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6922 rm -f conftest.
$ac_objext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>conftest.er1
6926 grep -v '^ *+' conftest.er1
>conftest.err
6928 cat conftest.err
>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try
='test -z "$ac_c_werror_flag"
6932 || test ! -s conftest.err'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try
='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_header_compiler
=yes
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.
$ac_ext >&5
6949 ac_header_compiler
=no
6951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6953 echo "${ECHO_T}$ac_header_compiler" >&6
6955 # Is the header present?
6956 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6957 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6961 cat confdefs.h
>>conftest.
$ac_ext
6962 cat >>conftest.
$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1
>conftest.err
6971 cat conftest.err
>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } >/dev
/null
; then
6974 if test -s conftest.err
; then
6975 ac_cpp_err
=$ac_c_preproc_warn_flag
6976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6983 if test -z "$ac_cpp_err"; then
6984 ac_header_preproc
=yes
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.
$ac_ext >&5
6989 ac_header_preproc
=no
6991 rm -f conftest.err conftest.
$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993 echo "${ECHO_T}$ac_header_preproc" >&6
6995 # So? What about this header?
6996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6998 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6999 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7001 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7002 ac_header_preproc
=yes
7005 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7006 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7008 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7010 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7012 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7014 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7015 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7016 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7019 ## ------------------------------ ##
7020 ## Report this to admin@amule.org ##
7021 ## ------------------------------ ##
7024 sed "s/^/$as_me: WARNING: /" >&2
7027 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7028 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7029 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 ac_cv_header_GeoIP_h
=$ac_header_preproc
7034 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7035 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7038 if test $ac_cv_header_GeoIP_h = yes; then
7041 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7042 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7043 { (exit 1); exit 1; }; }
7047 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7048 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7049 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_check_lib_save_LIBS
=$LIBS
7053 LIBS
="-lGeoIP $LIBS"
7054 cat >conftest.
$ac_ext <<_ACEOF
7057 cat confdefs.h
>>conftest.
$ac_ext
7058 cat >>conftest.
$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7061 /* Override any gcc2 internal prototype to avoid an error. */
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7076 rm -f conftest.
$ac_objext conftest
$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1
>conftest.err
7082 cat conftest.err
>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try
='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try
='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_lib_GeoIP_GeoIP_open
=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 ac_cv_lib_GeoIP_GeoIP_open
=no
7105 rm -f conftest.err conftest.
$ac_objext \
7106 conftest
$ac_exeext conftest.
$ac_ext
7107 LIBS
=$ac_check_lib_save_LIBS
7109 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7110 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7111 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7113 cat >>confdefs.h
<<\_ACEOF
7114 #define SUPPORT_GEOIP 1
7117 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7118 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7119 { (exit 1); exit 1; }; }
7122 CPPFLAGS
="$mule_backup_CPPFLAGS"
7131 # Check whether --with-wxdir or --without-wxdir was given.
7132 if test "${with_wxdir+set}" = set; then
7133 withval
="$with_wxdir"
7134 wx_config_name
="$withval/wx-config"
7135 wx_config_args
="--inplace"
7138 # Check whether --with-wx-config or --without-wx-config was given.
7139 if test "${with_wx_config+set}" = set; then
7140 withval
="$with_wx_config"
7141 wx_config_name
="$withval"
7144 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7145 if test "${with_wx_prefix+set}" = set; then
7146 withval
="$with_wx_prefix"
7147 wx_config_prefix
="$withval"
7152 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7153 if test "${with_wx_exec_prefix+set}" = set; then
7154 withval
="$with_wx_exec_prefix"
7155 wx_config_exec_prefix
="$withval"
7157 wx_config_exec_prefix
=""
7171 # Check whether --with-toolkit or --without-toolkit was given.
7172 if test "${with_toolkit+set}" = set; then
7173 withval
="$with_toolkit"
7179 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7180 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7181 if test "$withval" = "auto" ; then
7182 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7183 echo "${ECHO_T}will be automatically detected" >&6
7188 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7189 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7190 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7191 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7192 "$TOOLKIT" != "base" ; then
7193 { { echo "$as_me:$LINENO: error:
7194 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7196 echo "$as_me: error:
7197 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7199 { (exit 1); exit 1; }; }
7202 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7203 echo "${ECHO_T}$TOOLKIT" >&6
7210 # Check whether --with-wxshared or --without-wxshared was given.
7211 if test "${with_wxshared+set}" = set; then
7212 withval
="$with_wxshared"
7218 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7219 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7220 if test "$withval" = "yes" ; then
7221 echo "$as_me:$LINENO: result: yes" >&5
7222 echo "${ECHO_T}yes" >&6
7225 elif test "1" = "1" -a "$withval" = "no" ; then
7226 echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7229 elif test "$withval" = "auto" ; then
7230 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7231 echo "${ECHO_T}will be automatically detected" >&6
7234 { { echo "$as_me:$LINENO: error:
7235 Unrecognized option value (allowed values: yes, auto)
7237 echo "$as_me: error:
7238 Unrecognized option value (allowed values: yes, auto)
7240 { (exit 1); exit 1; }; }
7247 # Check whether --with-wxdebug or --without-wxdebug was given.
7248 if test "${with_wxdebug+set}" = set; then
7249 withval
="$with_wxdebug"
7255 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7256 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7257 if test "$withval" = "yes" ; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259 echo "${ECHO_T}yes" >&6
7262 elif test "1" = "1" -a "$withval" = "no" ; then
7263 echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7266 elif test "$withval" = "auto" ; then
7267 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7268 echo "${ECHO_T}will be automatically detected" >&6
7271 { { echo "$as_me:$LINENO: error:
7272 Unrecognized option value (allowed values: yes, auto)
7274 echo "$as_me: error:
7275 Unrecognized option value (allowed values: yes, auto)
7277 { (exit 1); exit 1; }; }
7284 # Check whether --with-wxversion or --without-wxversion was given.
7285 if test "${with_wxversion+set}" = set; then
7286 withval
="$with_wxversion"
7292 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7293 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7294 if test "$withval" = "auto" ; then
7295 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7296 echo "${ECHO_T}will be automatically detected" >&6
7300 wx_requested_major_version
=`echo $withval | \
7301 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7302 wx_requested_minor_version
=`echo $withval | \
7303 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7305 if test "${#wx_requested_major_version}" != "1" -o \
7306 "${#wx_requested_minor_version}" != "1" ; then
7307 { { echo "$as_me:$LINENO: error:
7308 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7310 echo "$as_me: error:
7311 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7313 { (exit 1); exit 1; }; }
7316 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7317 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7318 echo "${ECHO_T}$WX_VERSION" >&6
7322 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7323 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7324 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7325 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7326 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7327 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7330 # Force using a static wxWidgets library if the executable is to be linked statically.
7331 if test ${enable_static:-no} = yes; then
7335 # Force using a unicode build of the library
7339 if test "$WX_SHARED" = "1" ; then
7340 WXCONFIG_FLAGS
="--static=no "
7341 elif test "$WX_SHARED" = "0" ; then
7342 WXCONFIG_FLAGS
="--static=yes "
7345 if test "$WX_DEBUG" = "1" ; then
7346 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7347 elif test "$WX_DEBUG" = "0" ; then
7348 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7351 if test "$WX_UNICODE" = "1" ; then
7352 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7353 elif test "$WX_UNICODE" = "0" ; then
7354 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7357 if test "$TOOLKIT" != "auto" ; then
7358 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7361 if test "$WX_VERSION" != "auto" ; then
7362 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7365 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7367 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7368 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7372 if test x
${WX_CONFIG_NAME+set} != xset
; then
7373 WX_CONFIG_NAME
=wx-config
7376 if test "x$wx_config_name" != x
; then
7377 WX_CONFIG_NAME
="$wx_config_name"
7380 if test x
$wx_config_exec_prefix != x
; then
7381 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7382 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7384 if test x
$wx_config_prefix != x
; then
7385 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7386 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7388 if test "$cross_compiling" = "yes"; then
7389 wx_config_args
="$wx_config_args --host=$host_alias"
7392 if test -x "$WX_CONFIG_NAME" ; then
7393 echo "$as_me:$LINENO: checking for wx-config" >&5
7394 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7395 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7396 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7397 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7399 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7400 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7401 echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 case $WX_CONFIG_PATH in
7408 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7412 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7413 for as_dir
in $as_dummy
7416 test -z "$as_dir" && as_dir
=.
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7430 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7432 if test -n "$WX_CONFIG_PATH"; then
7433 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7434 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7436 echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7442 if test "$WX_CONFIG_PATH" != "no" ; then
7445 min_wx_version
=2.8.0
7446 if test -z "$WXCONFIG_FLAGS" ; then
7447 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7448 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7450 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7451 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7454 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7456 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7457 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7458 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7459 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7460 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7461 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7462 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7464 wx_requested_major_version
=`echo $min_wx_version | \
7465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7466 wx_requested_minor_version
=`echo $min_wx_version | \
7467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7468 wx_requested_micro_version
=`echo $min_wx_version | \
7469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7473 if test "x$WX_VERSION_FULL" != x
; then
7474 if test $wx_config_major_version -gt $wx_requested_major_version; then
7477 if test $wx_config_major_version -eq $wx_requested_major_version; then
7478 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7481 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7482 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7492 if test -n "$wx_ver_ok"; then
7494 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7495 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7496 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7498 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7499 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7500 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7501 if test "x$WX_LIBS_STATIC" = "x"; then
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7505 echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7510 if test $wx_config_major_version -gt 2; then
7513 if test $wx_config_major_version -eq 2; then
7514 if test $wx_config_minor_version -gt 2; then
7517 if test $wx_config_minor_version -eq 2; then
7518 if test $wx_config_micro_version -ge 6; then
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 -ge 7; then
7536 if test "x$wx_has_rescomp" = x
; then
7539 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7542 if test "x$wx_has_cppflags" = x
; then
7543 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7544 WX_CPPFLAGS
=$WX_CFLAGS
7545 WX_CXXFLAGS
=$WX_CFLAGS
7547 WX_CFLAGS_ONLY
=$WX_CFLAGS
7548 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7550 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7551 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7552 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7554 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7555 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7562 if test "x$WX_VERSION_FULL" = x
; then
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7566 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7567 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7577 if test ! -z "$WXCONFIG_FLAGS"; then
7580 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7581 build with the following settings:
7583 but such build is not available.
7585 To see the wxWidgets builds available on this system, please use
7586 'wx-config --list' command. To use the default build, returned by
7587 'wx-config --selected-config', use the options with their 'auto'
7593 The requested wxWidgets build couldn't be found.
7596 If you still get this error, then check that 'wx-config' is
7597 in path, the directory where wxWidgets libraries are installed
7598 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7599 or equivalent variable and wxWidgets version is 2.8.0 or above."
7601 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7602 echo "$as_me: error: $wx_error_message" >&2;}
7603 { (exit 1); exit 1; }; }
7629 WX_VERSION_MAJOR
="$wx_config_major_version"
7630 WX_VERSION_MINOR
="$wx_config_minor_version"
7634 if test "$wxWin" != 1; then
7635 { { echo "$as_me:$LINENO: error:
7636 wxWidgets must be installed on your system but wx-config
7637 script couldn't be found. Please check that wx-config is
7638 in path or specified by --with-wx-config=path flag, the
7639 directory where wxWidgets libraries are installed (returned
7640 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7641 equivalent variable and wxWidgets version is 2.8.0 or above.
7643 echo "$as_me: error:
7644 wxWidgets must be installed on your system but wx-config
7645 script couldn't be found. Please check that wx-config is
7646 in path or specified by --with-wx-config=path flag, the
7647 directory where wxWidgets libraries are installed (returned
7648 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7649 equivalent variable and wxWidgets version is 2.8.0 or above.
7651 { (exit 1); exit 1; }; }
7654 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7655 if test $WX_VERSION -lt 26 ; then
7657 { { echo "$as_me:$LINENO: error:
7658 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7659 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7660 version of wxWidgets.
7662 echo "$as_me: error:
7663 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7664 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7665 version of wxWidgets.
7667 { (exit 1); exit 1; }; }
7670 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7672 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7673 echo "[dbg] Using wx-config --selected-config"
7674 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7678 if test $WX_SHARED = "1"; then
7680 elif test $WX_SHARED = "0"; then
7682 elif test $WX_SHARED = "auto"; then
7687 if test "$UNICODE" = "auto" ; then
7689 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7690 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7692 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7694 if test "$WX_UNICODE" != "0"; then
7696 echo "$as_me:$LINENO: result: yes" >&5
7697 echo "${ECHO_T}yes" >&6
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7711 if test "$DEBUG" = "auto" ; then
7713 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7714 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7716 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7718 if test "$WX_DEBUG" != "0"; then
7720 echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7735 if test "$STATIC" = "auto" ; then
7737 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7738 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7740 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7742 if test "$WX_STATIC" != "0"; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7759 if test "$WX_STATIC" != "0"; then
7769 if test "$TOOLKIT" = "auto" ; then
7771 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7772 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7774 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7775 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7776 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7777 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7778 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7779 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7780 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7781 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7782 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7785 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7786 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7787 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7788 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7789 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7790 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7791 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7792 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7793 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7796 if test "$WX_PORT" = "unknown" ; then
7797 { { echo "$as_me:$LINENO: error:
7798 Cannot detect the currently installed wxWidgets port !
7799 Please check your 'wx-config --cxxflags'...
7801 echo "$as_me: error:
7802 Cannot detect the currently installed wxWidgets port !
7803 Please check your 'wx-config --cxxflags'...
7805 { (exit 1); exit 1; }; }
7808 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7809 echo "${ECHO_T}$WX_PORT" >&6
7812 if test -z "$TOOLKIT" ; then
7821 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7822 echo "[dbg] Values of all WX_* options after final detection:"
7823 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7824 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7825 echo "[dbg] WX_SHARED: $WX_SHARED"
7826 echo "[dbg] WX_VERSION: $WX_VERSION"
7827 echo "[dbg] WX_PORT: $WX_PORT"
7830 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7831 { { echo "$as_me:$LINENO: error:
7832 Cannot build shared library against a static build of wxWidgets !
7833 This error happens because the wxWidgets build which was selected
7834 has been detected as static while you asked to build $PACKAGE_NAME
7835 as shared library and this is not possible.
7836 Use the '--disable-shared' option to build $PACKAGE_NAME
7837 as static library or '--with-wxshared' to use wxWidgets as shared library.
7839 echo "$as_me: error:
7840 Cannot build shared library against a static build of wxWidgets !
7841 This error happens because the wxWidgets build which was selected
7842 has been detected as static while you asked to build $PACKAGE_NAME
7843 as shared library and this is not possible.
7844 Use the '--disable-shared' option to build $PACKAGE_NAME
7845 as static library or '--with-wxshared' to use wxWidgets as shared library.
7847 { (exit 1); exit 1; }; }
7850 if test "$DEBUG" = "auto"; then
7853 if test "$DEBUG" = "1"; then
7855 elif test "$DEBUG" = ""; then
7859 if test "$UNICODE" = "auto"; then
7862 if test "$SHARED" = "auto"; then
7865 if test "$TOOLKIT" = "auto"; then
7871 # We also need wxBase
7872 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7873 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
7874 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
7878 if test ${SYS:-unknown} = win32
; then
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7882 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7883 echo "$as_me:$LINENO: checking for $ac_word" >&5
7884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7885 if test "${ac_cv_prog_RC+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 if test -n "$RC"; then
7889 ac_cv_prog_RC
="$RC" # Let the user override the test.
7891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir
=.
7896 for ac_exec_ext
in '' $ac_executable_extensions; do
7897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_RC
="${ac_tool_prefix}windres"
7899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 if test -n "$RC"; then
7909 echo "$as_me:$LINENO: result: $RC" >&5
7910 echo "${ECHO_T}$RC" >&6
7912 echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6
7917 if test -z "$ac_cv_prog_RC"; then
7919 # Extract the first word of "windres", so it can be a program name with args.
7920 set dummy windres
; ac_word
=$2
7921 echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7923 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 if test -n "$ac_ct_RC"; then
7927 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
7929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir
=.
7934 for ac_exec_ext
in '' $ac_executable_extensions; do
7935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_RC
="windres"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
7946 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
7947 if test -n "$ac_ct_RC"; then
7948 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7949 echo "${ECHO_T}$ac_ct_RC" >&6
7951 echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7960 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7965 # Check for Crypto++
7968 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
7969 if test "${with_crypto_prefix+set}" = set; then
7970 withval
="$with_crypto_prefix"
7974 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
7975 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
7977 cryptopp_file_with_version
="cryptlib.h"
7979 CRYPTOPP_STYLE
="unknown"
7980 CRYPTOPP_LIB_NAME
="unknown"
7981 cryptopp_includedir
="unknown"
7982 CRYPTOPP_INCLUDE_PREFIX
="unknown"
7983 cryptopp_libdir
="unknown"
7985 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
7986 if test -z "$CRYPTOPP_PREFIX"; then
7991 # Find the Cryptopp header
7992 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
7993 CRYPTOPP_STYLE
="sources"
7994 CRYPTOPP_LIB_NAME
="cryptopp"
7995 cryptopp_includedir
=
7996 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
7999 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8000 CRYPTOPP_STYLE
="installed"
8001 CRYPTOPP_LIB_NAME
="cryptopp"
8002 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8003 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8004 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8006 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8007 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8008 CRYPTOPP_STYLE
="gentoo_debian"
8009 CRYPTOPP_LIB_NAME
="crypto++"
8010 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8011 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8012 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8017 if test $CRYPTOPP_STYLE = "unknown"; then
8021 # Find out the crypto++ version and check against the minimum required
8022 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8023 CRYPTOPP_VERSION_STRING
=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8024 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8025 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8027 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8030 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8031 if test -n "$cryptopp_includedir"; then
8032 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8037 if test -n "$cryptopp_libdir"; then
8039 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8040 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8045 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8051 cat >>confdefs.h
<<_ACEOF
8052 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8059 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8066 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8067 echo "${ECHO_T}$result$resultstr" >&6
8069 if test ${result:-no} = yes; then
8071 # Check for CryptoPP >= 5.5
8072 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8073 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8079 { { echo "$as_me:$LINENO: error:
8080 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8081 Please try again with --with-crypto-prefix=/my_crypto_prefix
8082 (replace /my_crypto_prefix with a valid path to your crypto++
8083 installation directory)." >&5
8084 echo "$as_me: error:
8085 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8086 Please try again with --with-crypto-prefix=/my_crypto_prefix
8087 (replace /my_crypto_prefix with a valid path to your crypto++
8088 installation directory)." >&2;}
8089 { (exit 1); exit 1; }; }
8097 ac_cpp
='$CXXCPP $CPPFLAGS'
8098 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8099 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8100 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8105 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8106 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8107 cat >conftest.
$ac_ext <<_ACEOF
8111 cat confdefs.h
>>conftest.
$ac_ext
8112 cat >>conftest.
$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8117 #error Non-GNU C++ library found.
8122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8125 grep -v '^ *+' conftest.er1
>conftest.err
8127 cat conftest.err
>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } >/dev
/null
; then
8130 if test -s conftest.err
; then
8131 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8132 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8139 if test -z "$ac_cpp_err"; then
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.
$ac_ext >&5
8147 rm -f conftest.err conftest.
$ac_ext
8148 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8149 echo "${ECHO_T}$GLIBCXX" >&6
8152 mule_backup_CPPFLAGS
="$CPPFLAGS"
8153 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8155 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8156 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8157 cat >conftest.
$ac_ext <<_ACEOF
8161 cat confdefs.h
>>conftest.
$ac_ext
8162 cat >>conftest.
$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8166 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8167 #error No LargeFile support!
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1
>conftest.err
8177 cat conftest.err
>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev
/null
; then
8180 if test -s conftest.err
; then
8181 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8182 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8189 if test -z "$ac_cpp_err"; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.
$ac_ext >&5
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201 { { echo "$as_me:$LINENO: error:
8202 Support for large files in wxWidgets is required by aMule.
8203 To continue you must recompile wxWidgets with support for
8204 large files enabled." >&5
8205 echo "$as_me: error:
8206 Support for large files in wxWidgets is required by aMule.
8207 To continue you must recompile wxWidgets with support for
8208 large files enabled." >&2;}
8209 { (exit 1); exit 1; }; }
8212 rm -f conftest.err conftest.
$ac_ext
8214 CPPFLAGS
="$mule_backup_CPPFLAGS"
8217 # Check if the compiler is broken, wrt. exceptions.
8219 echo "$as_me:$LINENO: checking for exception-handling" >&5
8220 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8221 if test "$cross_compiling" = yes; then
8223 echo "$as_me:$LINENO: result: undeterminable" >&5
8224 echo "${ECHO_T}undeterminable" >&6
8225 { echo "$as_me:$LINENO: WARNING:
8226 Cross-compilation detected, so exception handling cannot be tested.
8227 Note that broken exception handling in your compiler may lead to
8228 unexpected crashes." >&5
8229 echo "$as_me: WARNING:
8230 Cross-compilation detected, so exception handling cannot be tested.
8231 Note that broken exception handling in your compiler may lead to
8232 unexpected crashes." >&2;}
8235 cat >conftest.
$ac_ext <<_ACEOF
8239 cat confdefs.h
>>conftest.
$ac_ext
8240 cat >>conftest.
$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8259 rm -f conftest
$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8271 echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6
8275 echo "$as_me: program exited with status $ac_status" >&5
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.
$ac_ext >&5
8281 echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6
8283 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8284 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8285 { (exit 1); exit 1; }; }
8288 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8293 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8294 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8295 cat >conftest.
$ac_ext <<_ACEOF
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8310 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8311 std::type_info *ti = abi::__cxa_current_exception_type();
8318 rm -f conftest.
$ac_objext conftest
$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1
>conftest.err
8324 cat conftest.err
>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try
='test -z "$ac_cxx_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try
='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8343 cat >>confdefs.h
<<\_ACEOF
8344 #define HAVE_CXXABI 1
8347 echo "$as_me:$LINENO: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.
$ac_ext >&5
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8359 rm -f conftest.err conftest.
$ac_objext \
8360 conftest
$ac_exeext conftest.
$ac_ext
8363 ac_cpp
='$CPP $CPPFLAGS'
8364 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8369 # Check for bfd.h (to have proper backtraces without using wxExecute)
8371 echo "$as_me:$LINENO: checking for bfd" >&5
8372 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8373 mule_backup_LIBS
="$LIBS"
8374 LIBS
="-lbfd -liberty $LIBS"
8375 cat >conftest.
$ac_ext <<_ACEOF
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 #include <ansidecl.h>
8390 char *dummy = bfd_errmsg(bfd_get_error());
8397 rm -f conftest.
$ac_objext conftest
$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399 (eval $ac_link) 2>conftest.er1
8401 grep -v '^ *+' conftest.er1
>conftest.err
8403 cat conftest.err
>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try
='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try
='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8420 echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8422 BFD_CPPFLAGS
="-DHAVE_BFD"
8423 BFD_LIBS
="-lbfd -liberty"
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.
$ac_ext >&5
8430 echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8432 { echo "$as_me:$LINENO: WARNING:
8433 bfd.h not found or unusable, please install binutils development
8434 package if you are a developer or want to help testing aMule" >&5
8435 echo "$as_me: WARNING:
8436 bfd.h not found or unusable, please install binutils development
8437 package if you are a developer or want to help testing aMule" >&2;}
8440 rm -f conftest.err conftest.
$ac_objext \
8441 conftest
$ac_exeext conftest.
$ac_ext
8442 LIBS
="$mule_backup_LIBS"
8446 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8447 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8448 cat >conftest.
$ac_ext <<_ACEOF
8452 cat confdefs.h
>>conftest.
$ac_ext
8453 cat >>conftest.
$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 #include <execinfo.h>
8463 int n = backtrace(&bt, 1);
8464 const char **bt_syms = backtrace_symbols(bt, n);
8471 rm -f conftest.
$ac_objext conftest
$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1
>conftest.err
8477 cat conftest.err
>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try
='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try
='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8496 cat >>confdefs.h
<<\_ACEOF
8497 #define HAVE_EXECINFO 1
8500 echo "$as_me:$LINENO: result: yes" >&5
8501 echo "${ECHO_T}yes" >&6
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.
$ac_ext >&5
8508 echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6
8512 rm -f conftest.err conftest.
$ac_objext \
8513 conftest
$ac_exeext conftest.
$ac_ext
8516 # Ok, we have all needed libs, now checking for other stuff
8517 if test "$LEX" = "flex"; then
8519 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8520 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8522 extended_flex
=`flex --help | grep header-file`
8523 if test -n "$extended_flex"; then
8524 HAVE_FLEX_EXTENDED
=yes
8526 HAVE_FLEX_EXTENDED
=no
8529 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8530 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8532 if test $HAVE_FLEX_EXTENDED = no
; then
8533 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8534 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8539 HAVE_FLEX_EXTENDED
=no
8543 # Flush standard test results for speeding cache
8544 cat >confcache
<<\_ACEOF
8545 # This file is a shell script that caches the results of configure
8546 # tests run on this system so they can be shared between configure
8547 # scripts and configure runs, see configure's option --config-cache.
8548 # It is not useful on other systems. If it contains results you don't
8549 # want to keep, you may remove or edit it.
8551 # config.status only pays attention to the cache file if you give it
8552 # the --recheck option to rerun configure.
8554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8560 # The following way of writing the cache mishandles newlines in values,
8561 # but we know of no workaround that is simple, portable, and efficient.
8562 # So, don't put newlines in cache variables' values.
8563 # Ultrix sh set writes to stderr and can't be redirected directly,
8564 # and sets the high bit in the cache file unless we assign to the vars.
8567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8569 # `set' does not quote correctly, so add quotes (double-quote
8570 # substitution turns \\\\ into \\, and sed turns \\ into \).
8573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8576 # `set' quotes correctly as required by POSIX, so do not add quotes.
8578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8589 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8590 if test -w $cache_file; then
8591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8592 cat confcache
>$cache_file
8594 echo "not updating unwritable cache $cache_file"
8599 # Checks for header files.
8600 echo "$as_me:$LINENO: checking for X" >&5
8601 echo $ECHO_N "checking for X... $ECHO_C" >&6
8604 # Check whether --with-x or --without-x was given.
8605 if test "${with_x+set}" = set; then
8609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8610 if test "x$with_x" = xno
; then
8611 # The user explicitly disabled X.
8614 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8615 # Both variables are already set.
8618 if test "${ac_cv_have_x+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 # One or both of the vars are not set, and there is no cached value.
8622 ac_x_includes
=no ac_x_libraries
=no
8624 if mkdir conftest.dir
; then
8626 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8627 cat >Imakefile
<<'_ACEOF'
8629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8631 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8635 for ac_extension
in a so sl
; do
8636 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8637 test -f $ac_im_libdir/libX11.
$ac_extension; then
8638 ac_im_usrlibdir
=$ac_im_libdir; break
8641 # Screen out bogus values from the imake configuration. They are
8642 # bogus both because they are the default anyway, and because
8643 # using them would break gcc on systems where it needs fixed includes.
8644 case $ac_im_incroot in
8646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8648 case $ac_im_usrlibdir in
8650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8657 # Standard set of common directories for X headers.
8658 # Check X11 before X11Rn because it is often a symlink to the current release.
8670 /usr/local/X11/include
8671 /usr/local/X11R6/include
8672 /usr/local/X11R5/include
8673 /usr/local/X11R4/include
8675 /usr/local/include/X11
8676 /usr/local/include/X11R6
8677 /usr/local/include/X11R5
8678 /usr/local/include/X11R4
8682 /usr/XFree86/include/X11
8686 /usr/unsupported/include
8688 /usr/local/x11r5/include
8689 /usr/lpp/Xamples/include
8691 /usr/openwin/include
8692 /usr/openwin/share/include'
8694 if test "$ac_x_includes" = no
; then
8695 # Guess where to find include files, by looking for Intrinsic.h.
8696 # First, try using that file with no special directory specified.
8697 cat >conftest.
$ac_ext <<_ACEOF
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <X11/Intrinsic.h>
8705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8708 grep -v '^ *+' conftest.er1
>conftest.err
8710 cat conftest.err
>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } >/dev
/null
; then
8713 if test -s conftest.err
; then
8714 ac_cpp_err
=$ac_c_preproc_warn_flag
8715 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8722 if test -z "$ac_cpp_err"; then
8723 # We can compile using X headers with no special include directory.
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8729 for ac_dir
in $ac_x_header_dirs; do
8730 if test -r "$ac_dir/X11/Intrinsic.h"; then
8731 ac_x_includes
=$ac_dir
8736 rm -f conftest.err conftest.
$ac_ext
8737 fi # $ac_x_includes = no
8739 if test "$ac_x_libraries" = no
; then
8740 # Check for the libraries.
8741 # See if we find them without any special options.
8742 # Don't add to $LIBS permanently.
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 #include <X11/Intrinsic.h>
8760 rm -f conftest.
$ac_objext conftest
$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1
>conftest.err
8766 cat conftest.err
>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try
='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try
='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8783 # We can link X programs with no special library path.
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.
$ac_ext >&5
8790 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8792 # Don't even attempt the hair of trying to link an X program!
8793 for ac_extension
in a so sl
; do
8794 if test -r $ac_dir/libXt.
$ac_extension; then
8795 ac_x_libraries
=$ac_dir
8801 rm -f conftest.err conftest.
$ac_objext \
8802 conftest
$ac_exeext conftest.
$ac_ext
8803 fi # $ac_x_libraries = no
8805 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8806 # Didn't find X anywhere. Cache the known absence of X.
8807 ac_cv_have_x
="have_x=no"
8809 # Record where we found X for the cache.
8810 ac_cv_have_x
="have_x=yes \
8811 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8816 eval "$ac_cv_have_x"
8819 if test "$have_x" != yes; then
8820 echo "$as_me:$LINENO: result: $have_x" >&5
8821 echo "${ECHO_T}$have_x" >&6
8824 # If each of the values was on the command line, it overrides each guess.
8825 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8826 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8827 # Update the cache value to reflect the command line values.
8828 ac_cv_have_x
="have_x=yes \
8829 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8830 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8831 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8834 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8835 # for constant arguments. Useless!
8836 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8837 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8838 if test "${ac_cv_working_alloca_h+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.
$ac_ext <<_ACEOF
8844 cat confdefs.h
>>conftest.
$ac_ext
8845 cat >>conftest.
$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8851 char *p = (char *) alloca (2 * sizeof (int));
8856 rm -f conftest.
$ac_objext conftest
$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>conftest.er1
8860 grep -v '^ *+' conftest.er1
>conftest.err
8862 cat conftest.err
>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try
='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try
='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_working_alloca_h
=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.
$ac_ext >&5
8883 ac_cv_working_alloca_h
=no
8885 rm -f conftest.err conftest.
$ac_objext \
8886 conftest
$ac_exeext conftest.
$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8889 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8890 if test $ac_cv_working_alloca_h = yes; then
8892 cat >>confdefs.h
<<\_ACEOF
8893 #define HAVE_ALLOCA_H 1
8898 echo "$as_me:$LINENO: checking for alloca" >&5
8899 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8900 if test "${ac_cv_func_alloca_works+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 cat >conftest.
$ac_ext <<_ACEOF
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 # define alloca __builtin_alloca
8913 # include <malloc.h>
8914 # define alloca _alloca
8917 # include <alloca.h>
8922 # ifndef alloca /* predefined by HP cc +Olibcalls */
8933 char *p = (char *) alloca (1);
8938 rm -f conftest.
$ac_objext conftest
$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8942 grep -v '^ *+' conftest.er1
>conftest.err
8944 cat conftest.err
>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try
='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try
='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_func_alloca_works
=yes
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.
$ac_ext >&5
8965 ac_cv_func_alloca_works
=no
8967 rm -f conftest.err conftest.
$ac_objext \
8968 conftest
$ac_exeext conftest.
$ac_ext
8970 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8971 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8973 if test $ac_cv_func_alloca_works = yes; then
8975 cat >>confdefs.h
<<\_ACEOF
8976 #define HAVE_ALLOCA 1
8980 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8981 # that cause trouble. Some versions do not even contain alloca or
8982 # contain a buggy version. If you still want to use their alloca,
8983 # use ar to extract alloca.o from them instead of compiling alloca.c.
8985 ALLOCA
=alloca.
$ac_objext
8987 cat >>confdefs.h
<<\_ACEOF
8992 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8993 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8994 if test "${ac_cv_os_cray+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 cat >conftest.
$ac_ext <<_ACEOF
9000 cat confdefs.h
>>conftest.
$ac_ext
9001 cat >>conftest.
$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 #if defined(CRAY) && ! defined(CRAY2)
9010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9011 $EGREP "webecray" >/dev
/null
2>&1; then
9019 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9020 echo "${ECHO_T}$ac_cv_os_cray" >&6
9021 if test $ac_cv_os_cray = yes; then
9022 for ac_func
in _getb67 GETB67 getb67
; do
9023 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9024 echo "$as_me:$LINENO: checking for $ac_func" >&5
9025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9026 if eval "test \"\${$as_ac_var+set}\" = set"; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 cat >conftest.
$ac_ext <<_ACEOF
9032 cat confdefs.h
>>conftest.
$ac_ext
9033 cat >>conftest.
$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9037 #define $ac_func innocuous_$ac_func
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char $ac_func (); below.
9041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9042 <limits.h> exists even on freestanding compilers. */
9045 # include <limits.h>
9047 # include <assert.h>
9052 /* Override any gcc2 internal prototype to avoid an error. */
9057 /* We use char because int might match the return type of a gcc2
9058 builtin and then its argument prototype would still apply. */
9060 /* The GNU C library defines this for functions which it implements
9061 to always fail with ENOSYS. Some functions are actually named
9062 something starting with __ and the normal name is an alias. */
9063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9066 char (*f) () = $ac_func;
9075 return f != $ac_func;
9080 rm -f conftest.
$ac_objext conftest
$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1
>conftest.err
9086 cat conftest.err
>&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try
='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try
='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 eval "$as_ac_var=yes"
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.
$ac_ext >&5
9107 eval "$as_ac_var=no"
9109 rm -f conftest.err conftest.
$ac_objext \
9110 conftest
$ac_exeext conftest.
$ac_ext
9112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9114 if test `eval echo '${'$as_ac_var'}'` = yes; then
9116 cat >>confdefs.h
<<_ACEOF
9117 #define CRAY_STACKSEG_END $ac_func
9126 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9127 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9128 if test "${ac_cv_c_stack_direction+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 if test "$cross_compiling" = yes; then
9132 ac_cv_c_stack_direction
=0
9134 cat >conftest.
$ac_ext <<_ACEOF
9137 cat confdefs.h
>>conftest.
$ac_ext
9138 cat >>conftest.
$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 find_stack_direction ()
9143 static char *addr = 0;
9148 return find_stack_direction ();
9151 return (&dummy > addr) ? 1 : -1;
9157 exit (find_stack_direction () < 0);
9160 rm -f conftest
$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_c_stack_direction
=1
9173 echo "$as_me: program exited with status $ac_status" >&5
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.
$ac_ext >&5
9178 ac_cv_c_stack_direction
=-1
9180 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9183 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9184 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9186 cat >>confdefs.h
<<_ACEOF
9187 #define STACK_DIRECTION $ac_cv_c_stack_direction
9199 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9200 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9201 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9202 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 cat >conftest.
$ac_ext <<_ACEOF
9209 cat confdefs.h
>>conftest.
$ac_ext
9210 cat >>conftest.
$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <sys/types.h>
9224 rm -f conftest.
$ac_objext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226 (eval $ac_compile) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try
='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try
='test -s conftest.$ac_objext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_Header=yes"
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.
$ac_ext >&5
9251 eval "$as_ac_Header=no"
9253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9258 cat >>confdefs.h
<<_ACEOF
9259 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9262 ac_header_dirent
=$ac_hdr; break
9266 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9267 if test $ac_header_dirent = dirent.h
; then
9268 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9270 if test "${ac_cv_search_opendir+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_func_search_save_LIBS
=$LIBS
9274 ac_cv_search_opendir
=no
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9297 rm -f conftest.
$ac_objext conftest
$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9301 grep -v '^ *+' conftest.er1
>conftest.err
9303 cat conftest.err
>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try
='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try
='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_search_opendir
="none required"
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.
$ac_ext >&5
9325 rm -f conftest.err conftest.
$ac_objext \
9326 conftest
$ac_exeext conftest.
$ac_ext
9327 if test "$ac_cv_search_opendir" = no
; then
9328 for ac_lib
in dir
; do
9329 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any gcc2 internal prototype to avoid an error. */
9341 /* We use char because int might match the return type of a gcc2
9342 builtin and then its argument prototype would still apply. */
9352 rm -f conftest.
$ac_objext conftest
$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1
>conftest.err
9358 cat conftest.err
>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try
='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try
='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_search_opendir
="-l$ac_lib"
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.
$ac_ext >&5
9381 rm -f conftest.err conftest.
$ac_objext \
9382 conftest
$ac_exeext conftest.
$ac_ext
9385 LIBS
=$ac_func_search_save_LIBS
9387 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9388 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9389 if test "$ac_cv_search_opendir" != no
; then
9390 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9395 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9396 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9397 if test "${ac_cv_search_opendir+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 ac_func_search_save_LIBS
=$LIBS
9401 ac_cv_search_opendir
=no
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9424 rm -f conftest.
$ac_objext conftest
$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9428 grep -v '^ *+' conftest.er1
>conftest.err
9430 cat conftest.err
>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try
='test -z "$ac_c_werror_flag"
9434 || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try
='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_search_opendir
="none required"
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.
$ac_ext >&5
9452 rm -f conftest.err conftest.
$ac_objext \
9453 conftest
$ac_exeext conftest.
$ac_ext
9454 if test "$ac_cv_search_opendir" = no
; then
9456 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9457 cat >conftest.
$ac_ext <<_ACEOF
9460 cat confdefs.h
>>conftest.
$ac_ext
9461 cat >>conftest.
$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any gcc2 internal prototype to avoid an error. */
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9479 rm -f conftest.
$ac_objext conftest
$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1
>conftest.err
9485 cat conftest.err
>&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try
='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try
='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_search_opendir
="-l$ac_lib"
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.
$ac_ext >&5
9508 rm -f conftest.err conftest.
$ac_objext \
9509 conftest
$ac_exeext conftest.
$ac_ext
9512 LIBS
=$ac_func_search_save_LIBS
9514 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9515 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9516 if test "$ac_cv_search_opendir" != no
; then
9517 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9525 if test "${ac_cv_header_stdc+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 cat >conftest.
$ac_ext <<_ACEOF
9531 cat confdefs.h
>>conftest.
$ac_ext
9532 cat >>conftest.
$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9547 rm -f conftest.
$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>conftest.er1
9551 grep -v '^ *+' conftest.er1
>conftest.err
9553 cat conftest.err
>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try
='test -z "$ac_c_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try
='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_header_stdc
=yes
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.
$ac_ext >&5
9574 ac_cv_header_stdc
=no
9576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9578 if test $ac_cv_header_stdc = yes; then
9579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "memchr" >/dev
/null
2>&1; then
9593 ac_cv_header_stdc
=no
9599 if test $ac_cv_header_stdc = yes; then
9600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9601 cat >conftest.
$ac_ext <<_ACEOF
9604 cat confdefs.h
>>conftest.
$ac_ext
9605 cat >>conftest.
$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9611 $EGREP "free" >/dev
/null
2>&1; then
9614 ac_cv_header_stdc
=no
9620 if test $ac_cv_header_stdc = yes; then
9621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9622 if test "$cross_compiling" = yes; then
9625 cat >conftest.
$ac_ext <<_ACEOF
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 #if ((' ' & 0x0FF) == 0x020)
9633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9636 # define ISLOWER(c) \
9637 (('a' <= (c) && (c) <= 'i') \
9638 || ('j' <= (c) && (c) <= 'r') \
9639 || ('s' <= (c) && (c) <= 'z'))
9640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9648 for (i = 0; i < 256; i++)
9649 if (XOR (islower (i), ISLOWER (i))
9650 || toupper (i) != TOUPPER (i))
9655 rm -f conftest
$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9668 echo "$as_me: program exited with status $ac_status" >&5
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_cv_header_stdc
=no
9675 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9681 if test $ac_cv_header_stdc = yes; then
9683 cat >>confdefs.h
<<\_ACEOF
9684 #define STDC_HEADERS 1
9719 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
9721 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo "$as_me:$LINENO: checking for $ac_header" >&5
9724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9731 # Is the header compilable?
9732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9734 cat >conftest.
$ac_ext <<_ACEOF
9737 cat confdefs.h
>>conftest.
$ac_ext
9738 cat >>conftest.
$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 #include <$ac_header>
9743 rm -f conftest.
$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1
>conftest.err
9749 cat conftest.err
>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try
='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try
='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 ac_header_compiler
=no
9772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.
$ac_ext <<_ACEOF
9782 cat confdefs.h
>>conftest.
$ac_ext
9783 cat >>conftest.
$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9790 grep -v '^ *+' conftest.er1
>conftest.err
9792 cat conftest.err
>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev
/null
; then
9795 if test -s conftest.err
; then
9796 ac_cpp_err
=$ac_c_preproc_warn_flag
9797 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc
=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9810 ac_header_preproc
=no
9812 rm -f conftest.err conftest.
$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc
=yes
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9840 ## ------------------------------ ##
9841 ## Report this to admin@amule.org ##
9842 ## ------------------------------ ##
9845 sed "s/^/$as_me: WARNING: /" >&2
9848 echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 eval "$as_ac_Header=\$ac_header_preproc"
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h
<<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9869 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9870 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 cat >conftest.
$ac_ext <<_ACEOF
9876 cat confdefs.h
>>conftest.
$ac_ext
9877 cat >>conftest.
$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 #include <sys/types.h>
9880 #include <sys/wait.h>
9882 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9885 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9893 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9898 rm -f conftest.
$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1
>conftest.err
9904 cat conftest.err
>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try
='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try
='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_header_sys_wait_h
=yes
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9925 ac_cv_header_sys_wait_h
=no
9927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9930 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9931 if test $ac_cv_header_sys_wait_h = yes; then
9933 cat >>confdefs.h
<<\_ACEOF
9934 #define HAVE_SYS_WAIT_H 1
9940 # Checks for typedefs, structures, and compiler characteristics.
9941 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9942 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9943 if test "${ac_cv_header_stdbool_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.
$ac_ext <<_ACEOF
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9953 #include <stdbool.h>
9955 # error bool is not defined
9958 # error false is not defined
9961 # error false is not 0
9964 # error true is not defined
9967 # error true is not 1
9969 #ifndef __bool_true_false_are_defined
9970 # error __bool_true_false_are_defined is not defined
9973 struct s { _Bool s: 1; _Bool t; } s;
9975 char a[true == 1 ? 1 : -1];
9976 char b[false == 0 ? 1 : -1];
9977 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9978 char d[(bool) -0.5 == true ? 1 : -1];
9980 char f[(_Bool) -0.0 == false ? 1 : -1];
9982 char h[sizeof (_Bool)];
9988 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9993 rm -f conftest.
$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>conftest.er1
9997 grep -v '^ *+' conftest.er1
>conftest.err
9999 cat conftest.err
>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try
='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try
='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_header_stdbool_h
=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.
$ac_ext >&5
10020 ac_cv_header_stdbool_h
=no
10022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10025 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10026 echo "$as_me:$LINENO: checking for _Bool" >&5
10027 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10028 if test "${ac_cv_type__Bool+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.
$ac_ext <<_ACEOF
10034 cat confdefs.h
>>conftest.
$ac_ext
10035 cat >>conftest.
$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10043 if (sizeof (_Bool))
10049 rm -f conftest.
$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1
>conftest.err
10055 cat conftest.err
>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try
='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try
='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_type__Bool
=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.
$ac_ext >&5
10076 ac_cv_type__Bool
=no
10078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10080 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10081 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10082 if test $ac_cv_type__Bool = yes; then
10084 cat >>confdefs.h
<<_ACEOF
10085 #define HAVE__BOOL 1
10091 if test $ac_cv_header_stdbool_h = yes; then
10093 cat >>confdefs.h
<<\_ACEOF
10094 #define HAVE_STDBOOL_H 1
10099 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10101 if test "${ac_cv_c_const+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10107 cat confdefs.h
>>conftest.
$ac_ext
10108 cat >>conftest.
$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10114 /* FIXME: Include the comments suggested by Paul. */
10115 #ifndef __cplusplus
10116 /* Ultrix mips cc rejects this. */
10117 typedef int charset[2];
10119 /* SunOS 4.1.1 cc rejects this. */
10120 char const *const *ccp;
10122 /* NEC SVR4.0.2 mips cc rejects this. */
10123 struct point {int x, y;};
10124 static struct point const zero = {0,0};
10125 /* AIX XL C 1.02.0.0 rejects this.
10126 It does not let you subtract one const X* pointer from another in
10127 an arm of an if-expression whose if-part is not a constant
10129 const char *g = "string";
10130 ccp = &g + (g ? g-g : 0);
10131 /* HPUX 7.0 cc rejects these. */
10134 ccp = (char const *const *) p;
10135 { /* SCO 3.2v4 cc rejects this. */
10137 char const *s = 0 ? (char *) 0 : (char const *) 0;
10141 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10142 int x[] = {25, 17};
10143 const int *foo = &x[0];
10146 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10147 typedef const int *iptr;
10151 { /* AIX XL C 1.02.0.0 rejects this saying
10152 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10153 struct s { int j; const int *ap[3]; };
10154 struct s *b; b->j = 5;
10156 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10157 const int foo = 10;
10165 rm -f conftest.
$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10169 grep -v '^ *+' conftest.er1
>conftest.err
10171 cat conftest.err
>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try
='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try
='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.
$ac_ext >&5
10194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10197 echo "${ECHO_T}$ac_cv_c_const" >&6
10198 if test $ac_cv_c_const = no
; then
10200 cat >>confdefs.h
<<\_ACEOF
10206 echo "$as_me:$LINENO: checking for inline" >&5
10207 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10208 if test "${ac_cv_c_inline+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 for ac_kw
in inline __inline__ __inline
; do
10213 cat >conftest.
$ac_ext <<_ACEOF
10216 cat confdefs.h
>>conftest.
$ac_ext
10217 cat >>conftest.
$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 #ifndef __cplusplus
10221 static $ac_kw foo_t static_foo () {return 0; }
10222 $ac_kw foo_t foo () {return 0; }
10226 rm -f conftest.
$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10230 grep -v '^ *+' conftest.er1
>conftest.err
10232 cat conftest.err
>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try
='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try
='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_cv_c_inline
=$ac_kw; break
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.
$ac_ext >&5
10254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10259 echo "${ECHO_T}$ac_cv_c_inline" >&6
10262 case $ac_cv_c_inline in
10265 case $ac_cv_c_inline in
10267 *) ac_val
=$ac_cv_c_inline;;
10269 cat >>confdefs.h
<<_ACEOF
10270 #ifndef __cplusplus
10271 #define inline $ac_val
10277 echo "$as_me:$LINENO: checking for mode_t" >&5
10278 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10279 if test "${ac_cv_type_mode_t+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cat >conftest.
$ac_ext <<_ACEOF
10285 cat confdefs.h
>>conftest.
$ac_ext
10286 cat >>conftest.
$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10294 if (sizeof (mode_t))
10300 rm -f conftest.
$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10304 grep -v '^ *+' conftest.er1
>conftest.err
10306 cat conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try
='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try
='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_type_mode_t
=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.
$ac_ext >&5
10327 ac_cv_type_mode_t
=no
10329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10331 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10332 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10333 if test $ac_cv_type_mode_t = yes; then
10337 cat >>confdefs.h
<<_ACEOF
10343 echo "$as_me:$LINENO: checking for off_t" >&5
10344 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10345 if test "${ac_cv_type_off_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 cat >conftest.
$ac_ext <<_ACEOF
10351 cat confdefs.h
>>conftest.
$ac_ext
10352 cat >>conftest.
$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10360 if (sizeof (off_t))
10366 rm -f conftest.
$ac_objext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368 (eval $ac_compile) 2>conftest.er1
10370 grep -v '^ *+' conftest.er1
>conftest.err
10372 cat conftest.err
>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try
='test -z "$ac_c_werror_flag"
10376 || test ! -s conftest.err'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try
='test -s conftest.$ac_objext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_type_off_t
=yes
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10393 ac_cv_type_off_t
=no
10395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10398 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10399 if test $ac_cv_type_off_t = yes; then
10403 cat >>confdefs.h
<<_ACEOF
10409 echo "$as_me:$LINENO: checking for size_t" >&5
10410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10411 if test "${ac_cv_type_size_t+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 cat >conftest.
$ac_ext <<_ACEOF
10417 cat confdefs.h
>>conftest.
$ac_ext
10418 cat >>conftest.
$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 $ac_includes_default
10426 if (sizeof (size_t))
10432 rm -f conftest.
$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>conftest.er1
10436 grep -v '^ *+' conftest.er1
>conftest.err
10438 cat conftest.err
>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try
='test -z "$ac_c_werror_flag"
10442 || test ! -s conftest.err'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; } &&
10448 { ac_try
='test -s conftest.$ac_objext'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 ac_cv_type_size_t
=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.
$ac_ext >&5
10459 ac_cv_type_size_t
=no
10461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10464 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10465 if test $ac_cv_type_size_t = yes; then
10469 cat >>confdefs.h
<<_ACEOF
10470 #define size_t unsigned
10475 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10476 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10477 if test "${ac_cv_header_time+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 cat >conftest.
$ac_ext <<_ACEOF
10483 cat confdefs.h
>>conftest.
$ac_ext
10484 cat >>conftest.
$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <sys/types.h>
10487 #include <sys/time.h>
10493 if ((struct tm *) 0)
10499 rm -f conftest.
$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1
>conftest.err
10505 cat conftest.err
>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try
='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try
='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_header_time
=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 ac_cv_header_time
=no
10528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10531 echo "${ECHO_T}$ac_cv_header_time" >&6
10532 if test $ac_cv_header_time = yes; then
10534 cat >>confdefs.h
<<\_ACEOF
10535 #define TIME_WITH_SYS_TIME 1
10540 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10541 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10542 if test "${ac_cv_struct_tm+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <sys/types.h>
10557 struct tm *tp; tp->tm_sec;
10562 rm -f conftest.
$ac_objext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564 (eval $ac_compile) 2>conftest.er1
10566 grep -v '^ *+' conftest.er1
>conftest.err
10568 cat conftest.err
>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try
='test -z "$ac_c_werror_flag"
10572 || test ! -s conftest.err'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try
='test -s conftest.$ac_objext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_struct_tm
=time.h
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.
$ac_ext >&5
10589 ac_cv_struct_tm
=sys
/time.h
10591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10594 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10595 if test $ac_cv_struct_tm = sys
/time.h
; then
10597 cat >>confdefs.h
<<\_ACEOF
10598 #define TM_IN_SYS_TIME 1
10603 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10604 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10605 if test "${ac_cv_type_uid_t+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 cat >conftest.
$ac_ext <<_ACEOF
10611 cat confdefs.h
>>conftest.
$ac_ext
10612 cat >>conftest.
$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <sys/types.h>
10617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10618 $EGREP "uid_t" >/dev
/null
2>&1; then
10619 ac_cv_type_uid_t
=yes
10621 ac_cv_type_uid_t
=no
10626 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10627 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10628 if test $ac_cv_type_uid_t = no
; then
10630 cat >>confdefs.h
<<\_ACEOF
10635 cat >>confdefs.h
<<\_ACEOF
10641 echo "$as_me:$LINENO: checking for working volatile" >&5
10642 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10643 if test "${ac_cv_c_volatile+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.
$ac_ext <<_ACEOF
10649 cat confdefs.h
>>conftest.
$ac_ext
10650 cat >>conftest.
$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10663 rm -f conftest.
$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1
>conftest.err
10669 cat conftest.err
>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try
='test -z "$ac_c_werror_flag"
10673 || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try
='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_c_volatile
=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10690 ac_cv_c_volatile
=no
10692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10694 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10695 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10696 if test $ac_cv_c_volatile = no
; then
10698 cat >>confdefs.h
<<\_ACEOF
10704 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10705 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10706 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 cat >conftest.
$ac_ext <<_ACEOF
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10719 if ((ptrdiff_t *) 0)
10721 if (sizeof (ptrdiff_t))
10727 rm -f conftest.
$ac_objext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729 (eval $ac_compile) 2>conftest.er1
10731 grep -v '^ *+' conftest.er1
>conftest.err
10733 cat conftest.err
>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try
='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try
='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_cv_type_ptrdiff_t
=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.
$ac_ext >&5
10754 ac_cv_type_ptrdiff_t
=no
10756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10760 if test $ac_cv_type_ptrdiff_t = yes; then
10762 cat >>confdefs.h
<<_ACEOF
10763 #define HAVE_PTRDIFF_T 1
10770 # Checks for library functions.
10771 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10772 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10773 if test "${ac_cv_func_closedir_void+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 if test "$cross_compiling" = yes; then
10777 ac_cv_func_closedir_void
=yes
10779 cat >conftest.
$ac_ext <<_ACEOF
10782 cat confdefs.h
>>conftest.
$ac_ext
10783 cat >>conftest.
$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 #include <$ac_header_dirent>
10787 #ifndef __cplusplus
10794 exit (closedir (opendir (".")) != 0);
10799 rm -f conftest
$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_func_closedir_void
=no
10812 echo "$as_me: program exited with status $ac_status" >&5
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.
$ac_ext >&5
10816 ( exit $ac_status )
10817 ac_cv_func_closedir_void
=yes
10819 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10822 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10823 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10824 if test $ac_cv_func_closedir_void = yes; then
10826 cat >>confdefs.h
<<\_ACEOF
10827 #define CLOSEDIR_VOID 1
10832 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
10833 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
10834 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
10835 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 ac_check_lib_save_LIBS
=$LIBS
10840 cat >conftest.
$ac_ext <<_ACEOF
10843 cat confdefs.h
>>conftest.
$ac_ext
10844 cat >>conftest.
$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10847 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10862 rm -f conftest.
$ac_objext conftest
$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>conftest.er1
10866 grep -v '^ *+' conftest.er1
>conftest.err
10868 cat conftest.err
>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try
='test -z "$ac_c_werror_flag"
10872 || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try
='test -s conftest$ac_exeext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_lib_sun_getmntent
=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.
$ac_ext >&5
10889 ac_cv_lib_sun_getmntent
=no
10891 rm -f conftest.err conftest.
$ac_objext \
10892 conftest
$ac_exeext conftest.
$ac_ext
10893 LIBS
=$ac_check_lib_save_LIBS
10895 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
10896 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
10897 if test $ac_cv_lib_sun_getmntent = yes; then
10900 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
10901 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
10902 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 ac_check_lib_save_LIBS
=$LIBS
10907 cat >conftest.
$ac_ext <<_ACEOF
10910 cat confdefs.h
>>conftest.
$ac_ext
10911 cat >>conftest.
$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10914 /* Override any gcc2 internal prototype to avoid an error. */
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10929 rm -f conftest.
$ac_objext conftest
$ac_exeext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931 (eval $ac_link) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1
>conftest.err
10935 cat conftest.err
>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try
='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try
='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_lib_seq_getmntent
=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.
$ac_ext >&5
10956 ac_cv_lib_seq_getmntent
=no
10958 rm -f conftest.err conftest.
$ac_objext \
10959 conftest
$ac_exeext conftest.
$ac_ext
10960 LIBS
=$ac_check_lib_save_LIBS
10962 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
10963 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
10964 if test $ac_cv_lib_seq_getmntent = yes; then
10967 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
10968 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
10969 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 ac_check_lib_save_LIBS
=$LIBS
10974 cat >conftest.
$ac_ext <<_ACEOF
10977 cat confdefs.h
>>conftest.
$ac_ext
10978 cat >>conftest.
$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10981 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10996 rm -f conftest.
$ac_objext conftest
$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
11000 grep -v '^ *+' conftest.er1
>conftest.err
11002 cat conftest.err
>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try
='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try
='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_lib_gen_getmntent
=yes
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.
$ac_ext >&5
11023 ac_cv_lib_gen_getmntent
=no
11025 rm -f conftest.err conftest.
$ac_objext \
11026 conftest
$ac_exeext conftest.
$ac_ext
11027 LIBS
=$ac_check_lib_save_LIBS
11029 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11030 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11031 if test $ac_cv_lib_gen_getmntent = yes; then
11040 for ac_func
in getmntent
11042 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_var+set}\" = set"; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 cat >conftest.
$ac_ext <<_ACEOF
11051 cat confdefs.h
>>conftest.
$ac_ext
11052 cat >>conftest.
$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056 #define $ac_func innocuous_$ac_func
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11064 # include <limits.h>
11066 # include <assert.h>
11071 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085 char (*f) () = $ac_func;
11094 return f != $ac_func;
11099 rm -f conftest.
$ac_objext conftest
$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>conftest.er1
11103 grep -v '^ *+' conftest.er1
>conftest.err
11105 cat conftest.err
>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try
='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try
='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.
$ac_ext >&5
11126 eval "$as_ac_var=no"
11128 rm -f conftest.err conftest.
$ac_objext \
11129 conftest
$ac_exeext conftest.
$ac_ext
11131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11133 if test `eval echo '${'$as_ac_var'}'` = yes; then
11134 cat >>confdefs.h
<<_ACEOF
11135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11142 if test $ac_cv_c_compiler_gnu = yes; then
11143 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11144 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_pattern
="Autoconf.*'x'"
11149 cat >conftest.
$ac_ext <<_ACEOF
11152 cat confdefs.h
>>conftest.
$ac_ext
11153 cat >>conftest.
$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11159 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11160 ac_cv_prog_gcc_traditional
=yes
11162 ac_cv_prog_gcc_traditional
=no
11167 if test $ac_cv_prog_gcc_traditional = no
; then
11168 cat >conftest.
$ac_ext <<_ACEOF
11171 cat confdefs.h
>>conftest.
$ac_ext
11172 cat >>conftest.
$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <termio.h>
11177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11178 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11179 ac_cv_prog_gcc_traditional
=yes
11185 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11186 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11187 if test $ac_cv_prog_gcc_traditional = yes; then
11188 CC
="$CC -traditional"
11192 echo "$as_me:$LINENO: checking for pid_t" >&5
11193 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11194 if test "${ac_cv_type_pid_t+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 cat >conftest.
$ac_ext <<_ACEOF
11200 cat confdefs.h
>>conftest.
$ac_ext
11201 cat >>conftest.
$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 $ac_includes_default
11209 if (sizeof (pid_t))
11215 rm -f conftest.
$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11219 grep -v '^ *+' conftest.er1
>conftest.err
11221 cat conftest.err
>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try
='test -z "$ac_c_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try
='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_type_pid_t
=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11242 ac_cv_type_pid_t
=no
11244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11247 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11248 if test $ac_cv_type_pid_t = yes; then
11252 cat >>confdefs.h
<<_ACEOF
11260 for ac_header
in unistd.h vfork.h
11262 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264 echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 # Is the header compilable?
11273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11275 cat >conftest.
$ac_ext <<_ACEOF
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11284 rm -f conftest.
$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11288 grep -v '^ *+' conftest.er1
>conftest.err
11290 cat conftest.err
>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try
='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try
='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_header_compiler
=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11311 ac_header_compiler
=no
11313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6
11317 # Is the header present?
11318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11320 cat >conftest.
$ac_ext <<_ACEOF
11323 cat confdefs.h
>>conftest.
$ac_ext
11324 cat >>conftest.
$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11329 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11331 grep -v '^ *+' conftest.er1
>conftest.err
11333 cat conftest.err
>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev
/null
; then
11336 if test -s conftest.err
; then
11337 ac_cpp_err
=$ac_c_preproc_warn_flag
11338 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11345 if test -z "$ac_cpp_err"; then
11346 ac_header_preproc
=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 ac_header_preproc
=no
11353 rm -f conftest.err conftest.
$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc
=yes
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11381 ## ------------------------------ ##
11382 ## Report this to admin@amule.org ##
11383 ## ------------------------------ ##
11386 sed "s/^/$as_me: WARNING: /" >&2
11389 echo "$as_me:$LINENO: checking for $ac_header" >&5
11390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 eval "$as_ac_Header=\$ac_header_preproc"
11396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h
<<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 for ac_func
in fork vfork
11413 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414 echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11416 if eval "test \"\${$as_ac_var+set}\" = set"; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 cat >conftest.
$ac_ext <<_ACEOF
11422 cat confdefs.h
>>conftest.
$ac_ext
11423 cat >>conftest.
$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11435 # include <limits.h>
11437 # include <assert.h>
11442 /* Override any gcc2 internal prototype to avoid an error. */
11447 /* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11450 /* The GNU C library defines this for functions which it implements
11451 to always fail with ENOSYS. Some functions are actually named
11452 something starting with __ and the normal name is an alias. */
11453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 char (*f) () = $ac_func;
11465 return f != $ac_func;
11470 rm -f conftest.
$ac_objext conftest
$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>conftest.er1
11474 grep -v '^ *+' conftest.er1
>conftest.err
11476 cat conftest.err
>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try
='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try
='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.
$ac_ext >&5
11497 eval "$as_ac_var=no"
11499 rm -f conftest.err conftest.
$ac_objext \
11500 conftest
$ac_exeext conftest.
$ac_ext
11502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11504 if test `eval echo '${'$as_ac_var'}'` = yes; then
11505 cat >>confdefs.h
<<_ACEOF
11506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11512 if test "x$ac_cv_func_fork" = xyes
; then
11513 echo "$as_me:$LINENO: checking for working fork" >&5
11514 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11515 if test "${ac_cv_func_fork_works+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 if test "$cross_compiling" = yes; then
11519 ac_cv_func_fork_works
=cross
11521 cat >conftest.
$ac_ext <<_ACEOF
11522 /* By Ruediger Kuhlmann. */
11523 #include <sys/types.h>
11525 # include <unistd.h>
11527 /* Some systems only have a dummy stub for fork() */
11535 rm -f conftest
$ac_exeext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_func_fork_works
=yes
11548 echo "$as_me: program exited with status $ac_status" >&5
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11552 ( exit $ac_status )
11553 ac_cv_func_fork_works
=no
11555 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11558 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11559 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11562 ac_cv_func_fork_works
=$ac_cv_func_fork
11564 if test "x$ac_cv_func_fork_works" = xcross
; then
11566 *-*-amigaos* |
*-*-msdosdjgpp*)
11567 # Override, as these systems have only a dummy fork() stub
11568 ac_cv_func_fork_works
=no
11571 ac_cv_func_fork_works
=yes
11574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11577 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11578 if test "x$ac_cv_func_vfork" = xyes
; then
11579 echo "$as_me:$LINENO: checking for working vfork" >&5
11580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11581 if test "${ac_cv_func_vfork_works+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 if test "$cross_compiling" = yes; then
11585 ac_cv_func_vfork_works
=cross
11587 cat >conftest.
$ac_ext <<_ACEOF
11590 cat confdefs.h
>>conftest.
$ac_ext
11591 cat >>conftest.
$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 /* Thanks to Paul Eggert for this test. */
11595 #include <stdlib.h>
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 #include <sys/wait.h>
11600 # include <unistd.h>
11603 # include <vfork.h>
11605 /* On some sparc systems, changes by the child to local and incoming
11606 argument registers are propagated back to the parent. The compiler
11607 is told about this with #include <vfork.h>, but some compilers
11608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11609 static variable whose address is put into a register that is
11610 clobbered by the vfork. */
11613 sparc_address_test (int arg)
11615 sparc_address_test (arg) int arg;
11618 static pid_t child;
11636 pid_t parent = getpid ();
11639 sparc_address_test (0);
11644 /* Here is another test for sparc vfork register problems. This
11645 test uses lots of local variables, at least as many local
11646 variables as main has allocated so far including compiler
11647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11649 reuse the register of parent for one of the local variables,
11650 since it will think that parent can't possibly be used any more
11651 in this routine. Assigning to the local variable will thus
11652 munge parent in the parent process. */
11654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11656 /* Convince the compiler that p..p7 are live; otherwise, it might
11657 use the same hardware register for all 8 local variables. */
11658 if (p != p1 || p != p2 || p != p3 || p != p4
11659 || p != p5 || p != p6 || p != p7)
11662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11663 from child file descriptors. If the child closes a descriptor
11664 before it execs or exits, this munges the parent's descriptor
11665 as well. Test for this by closing stdout in the child. */
11666 _exit(close(fileno(stdout)) != 0);
11671 while (wait(&status) != child)
11674 /* Was there some problem with vforking? */
11677 /* Did the child fail? (This shouldn't happen.) */
11680 /* Did the vfork/compiler bug occur? */
11681 || parent != getpid()
11683 /* Did the file descriptor bug occur? */
11684 || fstat(fileno(stdout), &st) != 0
11689 rm -f conftest
$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_func_vfork_works
=yes
11702 echo "$as_me: program exited with status $ac_status" >&5
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.
$ac_ext >&5
11706 ( exit $ac_status )
11707 ac_cv_func_vfork_works
=no
11709 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11713 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11716 if test "x$ac_cv_func_fork_works" = xcross
; then
11717 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11718 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11719 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11722 if test "x$ac_cv_func_vfork_works" = xyes
; then
11724 cat >>confdefs.h
<<\_ACEOF
11725 #define HAVE_WORKING_VFORK 1
11730 cat >>confdefs.h
<<\_ACEOF
11735 if test "x$ac_cv_func_fork_works" = xyes
; then
11737 cat >>confdefs.h
<<\_ACEOF
11738 #define HAVE_WORKING_FORK 1
11743 if test x
$SYS != xwin32
; then
11744 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11745 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11746 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 rm -f conftest.sym conftest.
file
11750 echo >conftest.
file
11751 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11752 if test "$cross_compiling" = yes; then
11753 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11766 /* Linux will dereference the symlink and fail.
11767 That is better in the sense that it means we will not
11768 have to compile and use the lstat wrapper. */
11769 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11774 rm -f conftest
$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11787 echo "$as_me: program exited with status $ac_status" >&5
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.
$ac_ext >&5
11791 ( exit $ac_status )
11792 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11794 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11797 # If the `ln -s' command failed, then we probably don't even
11798 # have an lstat function.
11799 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11801 rm -f conftest.sym conftest.
file
11804 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11805 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11807 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11809 cat >>confdefs.h
<<_ACEOF
11810 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11814 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11816 "lstat.$ac_objext" | \
11817 *" lstat.$ac_objext" | \
11818 "lstat.$ac_objext "* | \
11819 *" lstat.$ac_objext "* ) ;;
11820 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11825 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11826 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11827 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 if test "$cross_compiling" = yes; then
11831 ac_cv_func_lstat_empty_string_bug
=yes
11833 cat >conftest.
$ac_ext <<_ACEOF
11836 cat confdefs.h
>>conftest.
$ac_ext
11837 cat >>conftest.
$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 $ac_includes_default
11844 exit (lstat ("", &sbuf) ? 1 : 0);
11849 rm -f conftest
$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_func_lstat_empty_string_bug
=yes
11862 echo "$as_me: program exited with status $ac_status" >&5
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11866 ( exit $ac_status )
11867 ac_cv_func_lstat_empty_string_bug
=no
11869 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11872 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11873 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11874 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11876 "lstat.$ac_objext" | \
11877 *" lstat.$ac_objext" | \
11878 "lstat.$ac_objext "* | \
11879 *" lstat.$ac_objext "* ) ;;
11880 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11884 cat >>confdefs.h
<<_ACEOF
11885 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11890 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11891 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11892 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 rm -f conftest.sym conftest.
file
11896 echo >conftest.
file
11897 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11898 if test "$cross_compiling" = yes; then
11899 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11901 cat >conftest.
$ac_ext <<_ACEOF
11904 cat confdefs.h
>>conftest.
$ac_ext
11905 cat >>conftest.
$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11912 /* Linux will dereference the symlink and fail.
11913 That is better in the sense that it means we will not
11914 have to compile and use the lstat wrapper. */
11915 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11920 rm -f conftest
$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11933 echo "$as_me: program exited with status $ac_status" >&5
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.
$ac_ext >&5
11937 ( exit $ac_status )
11938 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11940 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11943 # If the `ln -s' command failed, then we probably don't even
11944 # have an lstat function.
11945 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11947 rm -f conftest.sym conftest.
file
11950 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11951 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11953 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11955 cat >>confdefs.h
<<_ACEOF
11956 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11960 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11962 "lstat.$ac_objext" | \
11963 *" lstat.$ac_objext" | \
11964 "lstat.$ac_objext "* | \
11965 *" lstat.$ac_objext "* ) ;;
11966 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11974 echo "$as_me:$LINENO: checking for working memcmp" >&5
11975 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11976 if test "${ac_cv_func_memcmp_working+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 if test "$cross_compiling" = yes; then
11980 ac_cv_func_memcmp_working
=no
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11993 /* Some versions of memcmp are not 8-bit clean. */
11994 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11995 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11998 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11999 or more and with at least one buffer not starting on a 4-byte boundary.
12000 William Lewis provided this test program. */
12005 for (i = 0; i < 4; i++)
12009 strcpy (a, "--------01111111");
12010 strcpy (b, "--------10000000");
12011 if (memcmp (a, b, 16) >= 0)
12021 rm -f conftest
$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_func_memcmp_working
=yes
12034 echo "$as_me: program exited with status $ac_status" >&5
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.
$ac_ext >&5
12038 ( exit $ac_status )
12039 ac_cv_func_memcmp_working
=no
12041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12045 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12046 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12047 "memcmp.$ac_objext" | \
12048 *" memcmp.$ac_objext" | \
12049 "memcmp.$ac_objext "* | \
12050 *" memcmp.$ac_objext "* ) ;;
12051 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12057 for ac_header
in stdlib.h unistd.h
12059 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12061 echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12069 # Is the header compilable?
12070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12072 cat >conftest.
$ac_ext <<_ACEOF
12075 cat confdefs.h
>>conftest.
$ac_ext
12076 cat >>conftest.
$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 #include <$ac_header>
12081 rm -f conftest.
$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1
>conftest.err
12087 cat conftest.err
>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try
='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try
='test -s conftest.$ac_objext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_header_compiler
=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.
$ac_ext >&5
12108 ac_header_compiler
=no
12110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 echo "${ECHO_T}$ac_header_compiler" >&6
12114 # Is the header present?
12115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117 cat >conftest.
$ac_ext <<_ACEOF
12120 cat confdefs.h
>>conftest.
$ac_ext
12121 cat >>conftest.
$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 #include <$ac_header>
12125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12128 grep -v '^ *+' conftest.er1
>conftest.err
12130 cat conftest.err
>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } >/dev
/null
; then
12133 if test -s conftest.err
; then
12134 ac_cpp_err
=$ac_c_preproc_warn_flag
12135 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12142 if test -z "$ac_cpp_err"; then
12143 ac_header_preproc
=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.
$ac_ext >&5
12148 ac_header_preproc
=no
12150 rm -f conftest.err conftest.
$ac_ext
12151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 echo "${ECHO_T}$ac_header_preproc" >&6
12154 # So? What about this header?
12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12161 ac_header_preproc
=yes
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12178 ## ------------------------------ ##
12179 ## Report this to admin@amule.org ##
12180 ## ------------------------------ ##
12183 sed "s/^/$as_me: WARNING: /" >&2
12186 echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 eval "$as_ac_Header=\$ac_header_preproc"
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12198 cat >>confdefs.h
<<_ACEOF
12199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 for ac_func
in getpagesize
12209 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12223 #define $ac_func innocuous_$ac_func
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char $ac_func (); below.
12227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12228 <limits.h> exists even on freestanding compilers. */
12231 # include <limits.h>
12233 # include <assert.h>
12238 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12252 char (*f) () = $ac_func;
12261 return f != $ac_func;
12266 rm -f conftest.
$ac_objext conftest
$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12270 grep -v '^ *+' conftest.er1
>conftest.err
12272 cat conftest.err
>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try
='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try
='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 eval "$as_ac_var=yes"
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.
$ac_ext >&5
12293 eval "$as_ac_var=no"
12295 rm -f conftest.err conftest.
$ac_objext \
12296 conftest
$ac_exeext conftest.
$ac_ext
12298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12300 if test `eval echo '${'$as_ac_var'}'` = yes; then
12301 cat >>confdefs.h
<<_ACEOF
12302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12308 echo "$as_me:$LINENO: checking for working mmap" >&5
12309 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12310 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 if test "$cross_compiling" = yes; then
12314 ac_cv_func_mmap_fixed_mapped
=no
12316 cat >conftest.
$ac_ext <<_ACEOF
12319 cat confdefs.h
>>conftest.
$ac_ext
12320 cat >>conftest.
$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 $ac_includes_default
12323 /* malloc might have been renamed as rpl_malloc. */
12326 /* Thanks to Mike Haertel and Jim Avera for this test.
12327 Here is a matrix of mmap possibilities:
12328 mmap private not fixed
12329 mmap private fixed at somewhere currently unmapped
12330 mmap private fixed at somewhere already mapped
12331 mmap shared not fixed
12332 mmap shared fixed at somewhere currently unmapped
12333 mmap shared fixed at somewhere already mapped
12334 For private mappings, we should verify that changes cannot be read()
12335 back from the file, nor mmap's back from the file at a different
12336 address. (There have been systems where private was not correctly
12337 implemented like the infamous i386 svr4.0, and systems where the
12338 VM page cache was not coherent with the file system buffer cache
12339 like early versions of FreeBSD and possibly contemporary NetBSD.)
12340 For shared mappings, we should conversely verify that changes get
12341 propagated back to all the places they're supposed to be.
12343 Grep wants private fixed already mapped.
12344 The main things grep needs to know about mmap are:
12345 * does it exist and is it safe to write into the mmap'd area
12346 * how to use it (BSD variants) */
12349 #include <sys/mman.h>
12351 #if !STDC_HEADERS && !HAVE_STDLIB_H
12355 /* This mess was copied from the GNU getpagesize.h. */
12356 #if !HAVE_GETPAGESIZE
12357 /* Assume that all systems that can run configure have sys/param.h. */
12358 # if !HAVE_SYS_PARAM_H
12359 # define HAVE_SYS_PARAM_H 1
12362 # ifdef _SC_PAGESIZE
12363 # define getpagesize() sysconf(_SC_PAGESIZE)
12364 # else /* no _SC_PAGESIZE */
12365 # if HAVE_SYS_PARAM_H
12366 # include <sys/param.h>
12367 # ifdef EXEC_PAGESIZE
12368 # define getpagesize() EXEC_PAGESIZE
12369 # else /* no EXEC_PAGESIZE */
12371 # define getpagesize() NBPG * CLSIZE
12374 # endif /* no CLSIZE */
12375 # else /* no NBPG */
12377 # define getpagesize() NBPC
12378 # else /* no NBPC */
12380 # define getpagesize() PAGESIZE
12381 # endif /* PAGESIZE */
12382 # endif /* no NBPC */
12383 # endif /* no NBPG */
12384 # endif /* no EXEC_PAGESIZE */
12385 # else /* no HAVE_SYS_PARAM_H */
12386 # define getpagesize() 8192 /* punt totally */
12387 # endif /* no HAVE_SYS_PARAM_H */
12388 # endif /* no _SC_PAGESIZE */
12390 #endif /* no HAVE_GETPAGESIZE */
12395 char *data, *data2, *data3;
12399 pagesize = getpagesize ();
12401 /* First, make a file with some known garbage in it. */
12402 data = (char *) malloc (pagesize);
12405 for (i = 0; i < pagesize; ++i)
12406 *(data + i) = rand ();
12408 fd = creat ("conftest.mmap", 0600);
12411 if (write (fd, data, pagesize) != pagesize)
12415 /* Next, try to mmap the file at a fixed address which already has
12416 something else allocated at it. If we can, also make sure that
12417 we see the same garbage. */
12418 fd = open ("conftest.mmap", O_RDWR);
12421 data2 = (char *) malloc (2 * pagesize);
12424 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12425 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12426 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12428 for (i = 0; i < pagesize; ++i)
12429 if (*(data + i) != *(data2 + i))
12432 /* Finally, make sure that changes to the mapped area do not
12433 percolate back to the file as seen by read(). (This is a bug on
12434 some variants of i386 svr4.0.) */
12435 for (i = 0; i < pagesize; ++i)
12436 *(data2 + i) = *(data2 + i) + 1;
12437 data3 = (char *) malloc (pagesize);
12440 if (read (fd, data3, pagesize) != pagesize)
12442 for (i = 0; i < pagesize; ++i)
12443 if (*(data + i) != *(data3 + i))
12449 rm -f conftest
$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451 (eval $ac_link) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_func_mmap_fixed_mapped
=yes
12462 echo "$as_me: program exited with status $ac_status" >&5
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.
$ac_ext >&5
12466 ( exit $ac_status )
12467 ac_cv_func_mmap_fixed_mapped
=no
12469 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12472 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12473 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12474 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12476 cat >>confdefs.h
<<\_ACEOF
12477 #define HAVE_MMAP 1
12481 rm -f conftest.mmap
12485 for ac_header
in sys
/select.h sys
/socket.h
12487 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489 echo "$as_me:$LINENO: checking for $ac_header" >&5
12490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12497 # Is the header compilable?
12498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12500 cat >conftest.
$ac_ext <<_ACEOF
12503 cat confdefs.h
>>conftest.
$ac_ext
12504 cat >>conftest.
$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 $ac_includes_default
12507 #include <$ac_header>
12509 rm -f conftest.
$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>conftest.er1
12513 grep -v '^ *+' conftest.er1
>conftest.err
12515 cat conftest.err
>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try
='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try
='test -s conftest.$ac_objext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_header_compiler
=yes
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.
$ac_ext >&5
12536 ac_header_compiler
=no
12538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 echo "${ECHO_T}$ac_header_compiler" >&6
12542 # Is the header present?
12543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12545 cat >conftest.
$ac_ext <<_ACEOF
12548 cat confdefs.h
>>conftest.
$ac_ext
12549 cat >>conftest.
$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #include <$ac_header>
12553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12556 grep -v '^ *+' conftest.er1
>conftest.err
12558 cat conftest.err
>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } >/dev
/null
; then
12561 if test -s conftest.err
; then
12562 ac_cpp_err
=$ac_c_preproc_warn_flag
12563 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12570 if test -z "$ac_cpp_err"; then
12571 ac_header_preproc
=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.
$ac_ext >&5
12576 ac_header_preproc
=no
12578 rm -f conftest.err conftest.
$ac_ext
12579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12580 echo "${ECHO_T}$ac_header_preproc" >&6
12582 # So? What about this header?
12583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12589 ac_header_preproc
=yes
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12606 ## ------------------------------ ##
12607 ## Report this to admin@amule.org ##
12608 ## ------------------------------ ##
12611 sed "s/^/$as_me: WARNING: /" >&2
12614 echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 eval "$as_ac_Header=\$ac_header_preproc"
12621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12626 cat >>confdefs.h
<<_ACEOF
12627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12634 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12635 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12636 if test "${ac_cv_func_select_args+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12640 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12641 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12642 cat >conftest.
$ac_ext <<_ACEOF
12645 cat confdefs.h
>>conftest.
$ac_ext
12646 cat >>conftest.
$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 $ac_includes_default
12649 #if HAVE_SYS_SELECT_H
12650 # include <sys/select.h>
12652 #if HAVE_SYS_SOCKET_H
12653 # include <sys/socket.h>
12659 extern int select ($ac_arg1,
12660 $ac_arg234, $ac_arg234, $ac_arg234,
12666 rm -f conftest.
$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1
>conftest.err
12672 cat conftest.err
>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try
='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try
='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.
$ac_ext >&5
12694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12698 # Provide a safe default value.
12699 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12702 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12703 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12704 ac_save_IFS
=$IFS; IFS
=','
12705 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12709 cat >>confdefs.h
<<_ACEOF
12710 #define SELECT_TYPE_ARG1 $1
12714 cat >>confdefs.h
<<_ACEOF
12715 #define SELECT_TYPE_ARG234 ($2)
12719 cat >>confdefs.h
<<_ACEOF
12720 #define SELECT_TYPE_ARG5 ($3)
12725 echo "$as_me:$LINENO: checking for function prototypes" >&5
12726 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12727 if test "$ac_cv_prog_cc_stdc" != no
; then
12728 echo "$as_me:$LINENO: result: yes" >&5
12729 echo "${ECHO_T}yes" >&6
12731 cat >>confdefs.h
<<\_ACEOF
12732 #define PROTOTYPES 1
12736 cat >>confdefs.h
<<\_ACEOF
12737 #define __PROTOTYPES 1
12741 echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6
12745 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12746 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12747 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_cv_func_setvbuf_reversed
=no
12751 cat >conftest.
$ac_ext <<_ACEOF
12754 cat confdefs.h
>>conftest.
$ac_ext
12755 cat >>conftest.
$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12759 int (setvbuf) (FILE *, int, char *, size_t);
12764 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12769 rm -f conftest.
$ac_objext conftest
$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12773 grep -v '^ *+' conftest.er1
>conftest.err
12775 cat conftest.err
>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try
='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try
='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 cat >conftest.
$ac_ext <<_ACEOF
12794 cat confdefs.h
>>conftest.
$ac_ext
12795 cat >>conftest.
$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12799 int (setvbuf) (FILE *, int, char *, size_t);
12804 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12809 rm -f conftest.
$ac_objext conftest
$ac_exeext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12813 grep -v '^ *+' conftest.er1
>conftest.err
12815 cat conftest.err
>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try
='test -z "$ac_c_werror_flag"
12819 || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try
='test -s conftest$ac_exeext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 # It compiles and links either way, so it must not be declared
12832 # with a prototype and most likely this is a K&R C compiler.
12834 if test "$cross_compiling" = yes; then
12835 : # Assume setvbuf is not reversed when cross-compiling.
12837 cat >conftest.
$ac_ext <<_ACEOF
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12847 /* This call has the arguments reversed.
12848 A reversed system may check and see that the address of buf
12849 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12851 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12854 exit (0); /* Non-reversed systems SEGV here. */
12859 rm -f conftest
$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_func_setvbuf_reversed
=yes
12872 echo "$as_me: program exited with status $ac_status" >&5
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ( exit $ac_status )
12879 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12881 ac_cv_func_setvbuf_reversed
=yes
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.
$ac_ext >&5
12887 rm -f conftest.err conftest.
$ac_objext \
12888 conftest
$ac_exeext conftest.
$ac_ext
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.
$ac_ext >&5
12894 rm -f conftest.err conftest.
$ac_objext \
12895 conftest
$ac_exeext conftest.
$ac_ext
12897 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12898 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12899 if test $ac_cv_func_setvbuf_reversed = yes; then
12901 cat >>confdefs.h
<<\_ACEOF
12902 #define SETVBUF_REVERSED 1
12907 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12908 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12909 if test "${ac_cv_type_signal+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 cat >conftest.
$ac_ext <<_ACEOF
12915 cat confdefs.h
>>conftest.
$ac_ext
12916 cat >>conftest.
$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 #include <sys/types.h>
12919 #include <signal.h>
12924 extern "C" void (*signal (int, void (*)(int)))(int);
12926 void (*signal ()) ();
12937 rm -f conftest.
$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>conftest.er1
12941 grep -v '^ *+' conftest.er1
>conftest.err
12943 cat conftest.err
>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try
='test -z "$ac_c_werror_flag"
12947 || test ! -s conftest.err'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try
='test -s conftest.$ac_objext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_type_signal
=void
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.
$ac_ext >&5
12964 ac_cv_type_signal
=int
12966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12968 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12969 echo "${ECHO_T}$ac_cv_type_signal" >&6
12971 cat >>confdefs.h
<<_ACEOF
12972 #define RETSIGTYPE $ac_cv_type_signal
12976 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12977 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12978 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 if test "$cross_compiling" = yes; then
12982 ac_cv_func_stat_empty_string_bug
=yes
12984 cat >conftest.
$ac_ext <<_ACEOF
12987 cat confdefs.h
>>conftest.
$ac_ext
12988 cat >>conftest.
$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 $ac_includes_default
12995 exit (stat ("", &sbuf) ? 1 : 0);
13000 rm -f conftest
$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002 (eval $ac_link) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_func_stat_empty_string_bug
=yes
13013 echo "$as_me: program exited with status $ac_status" >&5
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.
$ac_ext >&5
13017 ( exit $ac_status )
13018 ac_cv_func_stat_empty_string_bug
=no
13020 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13024 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13025 if test $ac_cv_func_stat_empty_string_bug = yes; then
13027 "stat.$ac_objext" | \
13028 *" stat.$ac_objext" | \
13029 "stat.$ac_objext "* | \
13030 *" stat.$ac_objext "* ) ;;
13031 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
13035 cat >>confdefs.h
<<_ACEOF
13036 #define HAVE_STAT_EMPTY_STRING_BUG 1
13042 for ac_func
in strftime
13044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 echo "$as_me:$LINENO: checking for $ac_func" >&5
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13047 if eval "test \"\${$as_ac_var+set}\" = set"; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058 #define $ac_func innocuous_$ac_func
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below.
13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 <limits.h> exists even on freestanding compilers. */
13066 # include <limits.h>
13068 # include <assert.h>
13073 /* Override any gcc2 internal prototype to avoid an error. */
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13087 char (*f) () = $ac_func;
13096 return f != $ac_func;
13101 rm -f conftest.
$ac_objext conftest
$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>conftest.er1
13105 grep -v '^ *+' conftest.er1
>conftest.err
13107 cat conftest.err
>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try
='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try
='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 eval "$as_ac_var=yes"
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.
$ac_ext >&5
13128 eval "$as_ac_var=no"
13130 rm -f conftest.err conftest.
$ac_objext \
13131 conftest
$ac_exeext conftest.
$ac_ext
13133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13135 if test `eval echo '${'$as_ac_var'}'` = yes; then
13136 cat >>confdefs.h
<<_ACEOF
13137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13141 # strftime is in -lintl on SCO UNIX.
13142 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13143 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13144 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 ac_check_lib_save_LIBS
=$LIBS
13148 LIBS
="-lintl $LIBS"
13149 cat >conftest.
$ac_ext <<_ACEOF
13152 cat confdefs.h
>>conftest.
$ac_ext
13153 cat >>conftest.
$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13156 /* Override any gcc2 internal prototype to avoid an error. */
13160 /* We use char because int might match the return type of a gcc2
13161 builtin and then its argument prototype would still apply. */
13171 rm -f conftest.
$ac_objext conftest
$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>conftest.er1
13175 grep -v '^ *+' conftest.er1
>conftest.err
13177 cat conftest.err
>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try
='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try
='test -s conftest$ac_exeext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_lib_intl_strftime
=yes
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.
$ac_ext >&5
13198 ac_cv_lib_intl_strftime
=no
13200 rm -f conftest.err conftest.
$ac_objext \
13201 conftest
$ac_exeext conftest.
$ac_ext
13202 LIBS
=$ac_check_lib_save_LIBS
13204 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13205 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13206 if test $ac_cv_lib_intl_strftime = yes; then
13207 cat >>confdefs.h
<<\_ACEOF
13208 #define HAVE_STRFTIME 1
13211 LIBS
="-lintl $LIBS"
13217 echo "$as_me:$LINENO: checking for working strtod" >&5
13218 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13219 if test "${ac_cv_func_strtod+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 if test "$cross_compiling" = yes; then
13223 ac_cv_func_strtod
=no
13225 cat >conftest.
$ac_ext <<_ACEOF
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13237 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13238 char *string = " +69";
13241 value = strtod (string, &term);
13242 if (value != 69 || term != (string + 4))
13247 /* Under Solaris 2.4, strtod returns the wrong value for the
13248 terminating character under some conditions. */
13249 char *string = "NaN";
13251 strtod (string, &term);
13252 if (term != string && *(term - 1) == 0)
13259 rm -f conftest
$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_func_strtod
=yes
13272 echo "$as_me: program exited with status $ac_status" >&5
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.
$ac_ext >&5
13276 ( exit $ac_status )
13277 ac_cv_func_strtod
=no
13279 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13283 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13284 if test $ac_cv_func_strtod = no
; then
13286 "strtod.$ac_objext" | \
13287 *" strtod.$ac_objext" | \
13288 "strtod.$ac_objext "* | \
13289 *" strtod.$ac_objext "* ) ;;
13290 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13293 echo "$as_me:$LINENO: checking for pow" >&5
13294 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13295 if test "${ac_cv_func_pow+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 cat >conftest.
$ac_ext <<_ACEOF
13301 cat confdefs.h
>>conftest.
$ac_ext
13302 cat >>conftest.
$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13306 #define pow innocuous_pow
13308 /* System header to define __stub macros and hopefully few prototypes,
13309 which can conflict with char pow (); below.
13310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13311 <limits.h> exists even on freestanding compilers. */
13314 # include <limits.h>
13316 # include <assert.h>
13321 /* Override any gcc2 internal prototype to avoid an error. */
13326 /* We use char because int might match the return type of a gcc2
13327 builtin and then its argument prototype would still apply. */
13329 /* The GNU C library defines this for functions which it implements
13330 to always fail with ENOSYS. Some functions are actually named
13331 something starting with __ and the normal name is an alias. */
13332 #if defined (__stub_pow) || defined (__stub___pow)
13335 char (*f) () = pow;
13349 rm -f conftest.
$ac_objext conftest
$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>conftest.er1
13353 grep -v '^ *+' conftest.er1
>conftest.err
13355 cat conftest.err
>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try
='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try
='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.
$ac_ext >&5
13378 rm -f conftest.err conftest.
$ac_objext \
13379 conftest
$ac_exeext conftest.
$ac_ext
13381 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13382 echo "${ECHO_T}$ac_cv_func_pow" >&6
13384 if test $ac_cv_func_pow = no
; then
13385 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13386 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13387 if test "${ac_cv_lib_m_pow+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_check_lib_save_LIBS
=$LIBS
13392 cat >conftest.
$ac_ext <<_ACEOF
13395 cat confdefs.h
>>conftest.
$ac_ext
13396 cat >>conftest.
$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13414 rm -f conftest.
$ac_objext conftest
$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13418 grep -v '^ *+' conftest.er1
>conftest.err
13420 cat conftest.err
>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try
='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try
='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_lib_m_pow
=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.
$ac_ext >&5
13443 rm -f conftest.err conftest.
$ac_objext \
13444 conftest
$ac_exeext conftest.
$ac_ext
13445 LIBS
=$ac_check_lib_save_LIBS
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13448 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13449 if test $ac_cv_lib_m_pow = yes; then
13452 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13453 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13461 for ac_func
in vprintf
13463 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13464 echo "$as_me:$LINENO: checking for $ac_func" >&5
13465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13466 if eval "test \"\${$as_ac_var+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 cat >conftest.
$ac_ext <<_ACEOF
13472 cat confdefs.h
>>conftest.
$ac_ext
13473 cat >>conftest.
$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13477 #define $ac_func innocuous_$ac_func
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char $ac_func (); below.
13481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13482 <limits.h> exists even on freestanding compilers. */
13485 # include <limits.h>
13487 # include <assert.h>
13492 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13500 /* The GNU C library defines this for functions which it implements
13501 to always fail with ENOSYS. Some functions are actually named
13502 something starting with __ and the normal name is an alias. */
13503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13506 char (*f) () = $ac_func;
13515 return f != $ac_func;
13520 rm -f conftest.
$ac_objext conftest
$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1
>conftest.err
13526 cat conftest.err
>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try
='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try
='test -s conftest$ac_exeext'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 eval "$as_ac_var=yes"
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.
$ac_ext >&5
13547 eval "$as_ac_var=no"
13549 rm -f conftest.err conftest.
$ac_objext \
13550 conftest
$ac_exeext conftest.
$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h
<<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559 echo "$as_me:$LINENO: checking for _doprnt" >&5
13560 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13561 if test "${ac_cv_func__doprnt+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 cat >conftest.
$ac_ext <<_ACEOF
13567 cat confdefs.h
>>conftest.
$ac_ext
13568 cat >>conftest.
$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13572 #define _doprnt innocuous__doprnt
13574 /* System header to define __stub macros and hopefully few prototypes,
13575 which can conflict with char _doprnt (); below.
13576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13577 <limits.h> exists even on freestanding compilers. */
13580 # include <limits.h>
13582 # include <assert.h>
13587 /* Override any gcc2 internal prototype to avoid an error. */
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13601 char (*f) () = _doprnt;
13610 return f != _doprnt;
13615 rm -f conftest.
$ac_objext conftest
$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>conftest.er1
13619 grep -v '^ *+' conftest.er1
>conftest.err
13621 cat conftest.err
>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try
='test -z "$ac_c_werror_flag"
13625 || test ! -s conftest.err'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try
='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 ac_cv_func__doprnt
=yes
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.
$ac_ext >&5
13642 ac_cv_func__doprnt
=no
13644 rm -f conftest.err conftest.
$ac_objext \
13645 conftest
$ac_exeext conftest.
$ac_ext
13647 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13648 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13649 if test $ac_cv_func__doprnt = yes; then
13651 cat >>confdefs.h
<<\_ACEOF
13652 #define HAVE_DOPRNT 1
13661 if test $cross_compiling = yes -a $gnumalloc = yes; then
13663 { echo "$as_me:$LINENO: WARNING:
13664 configure cannot check whether malloc() and realloc() are GNU libc
13665 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13666 run configure with the --without-gnu-malloc switch." >&5
13667 echo "$as_me: WARNING:
13668 configure cannot check whether malloc() and realloc() are GNU libc
13669 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13670 run configure with the --without-gnu-malloc switch." >&2;}
13671 ac_cv_func_malloc_0_nonnull
=yes
13672 ac_cv_func_realloc_0_nonnull
=yes
13677 for ac_header
in stdlib.h
13679 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13681 echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13689 # Is the header compilable?
13690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13692 cat >conftest.
$ac_ext <<_ACEOF
13695 cat confdefs.h
>>conftest.
$ac_ext
13696 cat >>conftest.
$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13699 #include <$ac_header>
13701 rm -f conftest.
$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>conftest.er1
13705 grep -v '^ *+' conftest.er1
>conftest.err
13707 cat conftest.err
>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try
='test -z "$ac_c_werror_flag"
13711 || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try
='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_header_compiler
=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.
$ac_ext >&5
13728 ac_header_compiler
=no
13730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13732 echo "${ECHO_T}$ac_header_compiler" >&6
13734 # Is the header present?
13735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13737 cat >conftest.
$ac_ext <<_ACEOF
13740 cat confdefs.h
>>conftest.
$ac_ext
13741 cat >>conftest.
$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 #include <$ac_header>
13745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13748 grep -v '^ *+' conftest.er1
>conftest.err
13750 cat conftest.err
>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } >/dev
/null
; then
13753 if test -s conftest.err
; then
13754 ac_cpp_err
=$ac_c_preproc_warn_flag
13755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13762 if test -z "$ac_cpp_err"; then
13763 ac_header_preproc
=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13768 ac_header_preproc
=no
13770 rm -f conftest.err conftest.
$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13781 ac_header_preproc
=yes
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13798 ## ------------------------------ ##
13799 ## Report this to admin@amule.org ##
13800 ## ------------------------------ ##
13803 sed "s/^/$as_me: WARNING: /" >&2
13806 echo "$as_me:$LINENO: checking for $ac_header" >&5
13807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 eval "$as_ac_Header=\$ac_header_preproc"
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13818 cat >>confdefs.h
<<_ACEOF
13819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13826 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13827 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13828 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 if test "$cross_compiling" = yes; then
13832 ac_cv_func_malloc_0_nonnull
=no
13834 cat >conftest.
$ac_ext <<_ACEOF
13837 cat confdefs.h
>>conftest.
$ac_ext
13838 cat >>conftest.
$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 #if STDC_HEADERS || HAVE_STDLIB_H
13841 # include <stdlib.h>
13849 exit (malloc (0) ? 0 : 1);
13854 rm -f conftest
$ac_exeext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13856 (eval $ac_link) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_func_malloc_0_nonnull
=yes
13867 echo "$as_me: program exited with status $ac_status" >&5
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.
$ac_ext >&5
13871 ( exit $ac_status )
13872 ac_cv_func_malloc_0_nonnull
=no
13874 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13878 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13879 if test $ac_cv_func_malloc_0_nonnull = yes; then
13881 cat >>confdefs.h
<<\_ACEOF
13882 #define HAVE_MALLOC 1
13886 cat >>confdefs.h
<<\_ACEOF
13887 #define HAVE_MALLOC 0
13891 "malloc.$ac_objext" | \
13892 *" malloc.$ac_objext" | \
13893 "malloc.$ac_objext "* | \
13894 *" malloc.$ac_objext "* ) ;;
13895 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13899 cat >>confdefs.h
<<\_ACEOF
13900 #define malloc rpl_malloc
13908 for ac_header
in stdlib.h
13910 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo "$as_me:$LINENO: checking for $ac_header" >&5
13913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13920 # Is the header compilable?
13921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13923 cat >conftest.
$ac_ext <<_ACEOF
13926 cat confdefs.h
>>conftest.
$ac_ext
13927 cat >>conftest.
$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <$ac_header>
13932 rm -f conftest.
$ac_objext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>conftest.er1
13936 grep -v '^ *+' conftest.er1
>conftest.err
13938 cat conftest.err
>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try
='test -z "$ac_c_werror_flag"
13942 || test ! -s conftest.err'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try
='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_header_compiler
=yes
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.
$ac_ext >&5
13959 ac_header_compiler
=no
13961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13963 echo "${ECHO_T}$ac_header_compiler" >&6
13965 # Is the header present?
13966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13968 cat >conftest.
$ac_ext <<_ACEOF
13971 cat confdefs.h
>>conftest.
$ac_ext
13972 cat >>conftest.
$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <$ac_header>
13976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13979 grep -v '^ *+' conftest.er1
>conftest.err
13981 cat conftest.err
>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } >/dev
/null
; then
13984 if test -s conftest.err
; then
13985 ac_cpp_err
=$ac_c_preproc_warn_flag
13986 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13993 if test -z "$ac_cpp_err"; then
13994 ac_header_preproc
=yes
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.
$ac_ext >&5
13999 ac_header_preproc
=no
14001 rm -f conftest.err conftest.
$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc
=yes
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14029 ## ------------------------------ ##
14030 ## Report this to admin@amule.org ##
14031 ## ------------------------------ ##
14034 sed "s/^/$as_me: WARNING: /" >&2
14037 echo "$as_me:$LINENO: checking for $ac_header" >&5
14038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 eval "$as_ac_Header=\$ac_header_preproc"
14044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14049 cat >>confdefs.h
<<_ACEOF
14050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14058 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14059 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 if test "$cross_compiling" = yes; then
14063 ac_cv_func_realloc_0_nonnull
=no
14065 cat >conftest.
$ac_ext <<_ACEOF
14068 cat confdefs.h
>>conftest.
$ac_ext
14069 cat >>conftest.
$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 #if STDC_HEADERS || HAVE_STDLIB_H
14072 # include <stdlib.h>
14080 exit (realloc (0, 0) ? 0 : 1);
14085 rm -f conftest
$ac_exeext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14087 (eval $ac_link) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_func_realloc_0_nonnull
=yes
14098 echo "$as_me: program exited with status $ac_status" >&5
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.
$ac_ext >&5
14102 ( exit $ac_status )
14103 ac_cv_func_realloc_0_nonnull
=no
14105 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14108 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14109 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14110 if test $ac_cv_func_realloc_0_nonnull = yes; then
14112 cat >>confdefs.h
<<\_ACEOF
14113 #define HAVE_REALLOC 1
14117 cat >>confdefs.h
<<\_ACEOF
14118 #define HAVE_REALLOC 0
14122 "realloc.$ac_objext" | \
14123 *" realloc.$ac_objext" | \
14124 "realloc.$ac_objext "* | \
14125 *" realloc.$ac_objext "* ) ;;
14126 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
14130 cat >>confdefs.h
<<\_ACEOF
14131 #define realloc rpl_realloc
14171 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
14173 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 echo "$as_me:$LINENO: checking for $ac_func" >&5
14175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14176 if eval "test \"\${$as_ac_var+set}\" = set"; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 cat >conftest.
$ac_ext <<_ACEOF
14182 cat confdefs.h
>>conftest.
$ac_ext
14183 cat >>conftest.
$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14187 #define $ac_func innocuous_$ac_func
14189 /* System header to define __stub macros and hopefully few prototypes,
14190 which can conflict with char $ac_func (); below.
14191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14192 <limits.h> exists even on freestanding compilers. */
14195 # include <limits.h>
14197 # include <assert.h>
14202 /* Override any gcc2 internal prototype to avoid an error. */
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14210 /* The GNU C library defines this for functions which it implements
14211 to always fail with ENOSYS. Some functions are actually named
14212 something starting with __ and the normal name is an alias. */
14213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14216 char (*f) () = $ac_func;
14225 return f != $ac_func;
14230 rm -f conftest.
$ac_objext conftest
$ac_exeext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1
>conftest.err
14236 cat conftest.err
>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try
='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try
='test -s conftest$ac_exeext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 eval "$as_ac_var=yes"
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.
$ac_ext >&5
14257 eval "$as_ac_var=no"
14259 rm -f conftest.err conftest.
$ac_objext \
14260 conftest
$ac_exeext conftest.
$ac_ext
14262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14264 if test `eval echo '${'$as_ac_var'}'` = yes; then
14265 cat >>confdefs.h
<<_ACEOF
14266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14272 #-------------------------------------------------------------------------------
14273 # End of autoscan stuff
14274 #-------------------------------------------------------------------------------
14279 for ac_func
in mkdir getrlimit setrlimit
14281 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_func" >&5
14283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_var+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.
$ac_ext <<_ACEOF
14290 cat confdefs.h
>>conftest.
$ac_ext
14291 cat >>conftest.
$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14295 #define $ac_func innocuous_$ac_func
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char $ac_func (); below.
14299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14300 <limits.h> exists even on freestanding compilers. */
14303 # include <limits.h>
14305 # include <assert.h>
14310 /* Override any gcc2 internal prototype to avoid an error. */
14315 /* We use char because int might match the return type of a gcc2
14316 builtin and then its argument prototype would still apply. */
14318 /* The GNU C library defines this for functions which it implements
14319 to always fail with ENOSYS. Some functions are actually named
14320 something starting with __ and the normal name is an alias. */
14321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14324 char (*f) () = $ac_func;
14333 return f != $ac_func;
14338 rm -f conftest.
$ac_objext conftest
$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14342 grep -v '^ *+' conftest.er1
>conftest.err
14344 cat conftest.err
>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try
='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try
='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_var=yes"
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.
$ac_ext >&5
14365 eval "$as_ac_var=no"
14367 rm -f conftest.err conftest.
$ac_objext \
14368 conftest
$ac_exeext conftest.
$ac_ext
14370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14372 if test `eval echo '${'$as_ac_var'}'` = yes; then
14373 cat >>confdefs.h
<<_ACEOF
14374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14381 mule_backup_CPPFLAGS
="$CPPFLAGS"
14382 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14383 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14384 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14385 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 cat >conftest.
$ac_ext <<_ACEOF
14391 cat confdefs.h
>>conftest.
$ac_ext
14392 cat >>conftest.
$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14394 $ac_includes_default
14399 char *p = (char *) strerror_r;
14406 rm -f conftest.
$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1
>conftest.err
14412 cat conftest.err
>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try
='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try
='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_have_decl_strerror_r
=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.
$ac_ext >&5
14433 ac_cv_have_decl_strerror_r
=no
14435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14437 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14438 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14439 if test $ac_cv_have_decl_strerror_r = yes; then
14441 cat >>confdefs.h
<<_ACEOF
14442 #define HAVE_DECL_STRERROR_R 1
14447 cat >>confdefs.h
<<_ACEOF
14448 #define HAVE_DECL_STRERROR_R 0
14456 for ac_func
in strerror_r
14458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_var+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.
$ac_ext <<_ACEOF
14467 cat confdefs.h
>>conftest.
$ac_ext
14468 cat >>conftest.
$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14472 #define $ac_func innocuous_$ac_func
14474 /* System header to define __stub macros and hopefully few prototypes,
14475 which can conflict with char $ac_func (); below.
14476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477 <limits.h> exists even on freestanding compilers. */
14480 # include <limits.h>
14482 # include <assert.h>
14487 /* Override any gcc2 internal prototype to avoid an error. */
14492 /* We use char because int might match the return type of a gcc2
14493 builtin and then its argument prototype would still apply. */
14495 /* The GNU C library defines this for functions which it implements
14496 to always fail with ENOSYS. Some functions are actually named
14497 something starting with __ and the normal name is an alias. */
14498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14501 char (*f) () = $ac_func;
14510 return f != $ac_func;
14515 rm -f conftest.
$ac_objext conftest
$ac_exeext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>conftest.er1
14519 grep -v '^ *+' conftest.er1
>conftest.err
14521 cat conftest.err
>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try
='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try
='test -s conftest$ac_exeext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 eval "$as_ac_var=yes"
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14542 eval "$as_ac_var=no"
14544 rm -f conftest.err conftest.
$ac_objext \
14545 conftest
$ac_exeext conftest.
$ac_ext
14547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14549 if test `eval echo '${'$as_ac_var'}'` = yes; then
14550 cat >>confdefs.h
<<_ACEOF
14551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14558 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14559 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 ac_cv_func_strerror_r_char_p
=no
14564 if test $ac_cv_have_decl_strerror_r = yes; then
14565 cat >conftest.
$ac_ext <<_ACEOF
14568 cat confdefs.h
>>conftest.
$ac_ext
14569 cat >>conftest.
$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 $ac_includes_default
14577 char x = *strerror_r (0, buf, sizeof buf);
14578 char *p = strerror_r (0, buf, sizeof buf);
14584 rm -f conftest.
$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>conftest.er1
14588 grep -v '^ *+' conftest.er1
>conftest.err
14590 cat conftest.err
>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try
='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try
='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_func_strerror_r_char_p
=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.
$ac_ext >&5
14612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14614 # strerror_r is not declared. Choose between
14615 # systems that have relatively inaccessible declarations for the
14616 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14617 # former has a strerror_r that returns char*, while the latter
14618 # has a strerror_r that returns `int'.
14619 # This test should segfault on the DEC system.
14620 if test "$cross_compiling" = yes; then
14623 cat >conftest.
$ac_ext <<_ACEOF
14626 cat confdefs.h
>>conftest.
$ac_ext
14627 cat >>conftest.
$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 $ac_includes_default
14630 extern char *strerror_r ();
14635 char x = *strerror_r (0, buf, sizeof buf);
14636 exit (!isalpha (x));
14641 rm -f conftest
$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_strerror_r_char_p
=yes
14654 echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.
$ac_ext >&5
14659 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14665 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14666 if test $ac_cv_func_strerror_r_char_p = yes; then
14668 cat >>confdefs.h
<<\_ACEOF
14669 #define STRERROR_R_CHAR_P 1
14674 CPPFLAGS
="$mule_backup_CPPFLAGS"
14676 # Look for a way to preallocate disk space for files.
14678 echo "$as_me:$LINENO: checking for fallocate" >&5
14679 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14684 cat confdefs.h
>>conftest.
$ac_ext
14685 cat >>conftest.
$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14688 #include <linux/falloc.h>
14694 fallocate(0, 0, 0, 0);
14701 rm -f conftest.
$ac_objext conftest
$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703 (eval $ac_link) 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try
='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try
='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14726 cat >>confdefs.h
<<\_ACEOF
14727 #define HAVE_FALLOCATE 1
14730 echo "$as_me:$LINENO: result: yes" >&5
14731 echo "${ECHO_T}yes" >&6
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.
$ac_ext >&5
14738 echo "$as_me:$LINENO: result: no" >&5
14739 echo "${ECHO_T}no" >&6
14742 rm -f conftest.err conftest.
$ac_objext \
14743 conftest
$ac_exeext conftest.
$ac_ext
14746 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14747 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14748 cat >conftest.
$ac_ext <<_ACEOF
14752 cat confdefs.h
>>conftest.
$ac_ext
14753 cat >>conftest.
$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 #include <sys/sycall.h>
14757 #include <sys/types.h>
14758 #include <unistd.h>
14764 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14771 rm -f conftest.
$ac_objext conftest
$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>conftest.er1
14775 grep -v '^ *+' conftest.er1
>conftest.err
14777 cat conftest.err
>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try
='test -z "$ac_c_werror_flag"
14781 || test ! -s conftest.err'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try
='test -s conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14796 cat >>confdefs.h
<<\_ACEOF
14797 #define HAVE_SYS_FALLOCATE 1
14800 echo "$as_me:$LINENO: result: yes" >&5
14801 echo "${ECHO_T}yes" >&6
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.
$ac_ext >&5
14808 echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14812 rm -f conftest.err conftest.
$ac_objext \
14813 conftest
$ac_exeext conftest.
$ac_ext
14815 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
14816 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
14817 cat >conftest.
$ac_ext <<_ACEOF
14821 cat confdefs.h
>>conftest.
$ac_ext
14822 cat >>conftest.
$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 #define _XOPEN_SOURCE 600
14826 #include <stdlib.h>
14827 #ifdef HAVE_FCNTL_H
14828 # include <fcntl.h>
14835 posix_fallocate(0, 0, 0);
14842 rm -f conftest.
$ac_objext conftest
$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844 (eval $ac_link) 2>conftest.er1
14846 grep -v '^ *+' conftest.er1
>conftest.err
14848 cat conftest.err
>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
14851 { ac_try
='test -z "$ac_c_werror_flag"
14852 || test ! -s conftest.err'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try
='test -s conftest$ac_exeext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14867 cat >>confdefs.h
<<\_ACEOF
14868 #define HAVE_POSIX_FALLOCATE 1
14871 echo "$as_me:$LINENO: result: yes" >&5
14872 echo "${ECHO_T}yes" >&6
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.
$ac_ext >&5
14879 echo "$as_me:$LINENO: result: no" >&5
14880 echo "${ECHO_T}no" >&6
14883 rm -f conftest.err conftest.
$ac_objext \
14884 conftest
$ac_exeext conftest.
$ac_ext
14887 # Checking Native Language Support
14891 if test -n "$ac_aux_dir"; then
14892 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
14894 if test -z "$MKINSTALLDIRS"; then
14895 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
14902 # Extract the first word of "msgfmt", so it can be a program name with args.
14903 set dummy msgfmt
; ac_word
=$2
14904 echo "$as_me:$LINENO: checking for $ac_word" >&5
14905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14906 if test "${ac_cv_path_MSGFMT+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
14914 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
14915 for ac_dir
in $PATH; do
14916 test -z "$ac_dir" && ac_dir
=.
14917 if test -f $ac_dir/$ac_word; then
14918 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
14919 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
14920 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
14926 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
14930 MSGFMT
="$ac_cv_path_MSGFMT"
14931 if test "$MSGFMT" != ":"; then
14932 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14933 echo "${ECHO_T}$MSGFMT" >&6
14935 echo "$as_me:$LINENO: result: no" >&5
14936 echo "${ECHO_T}no" >&6
14939 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14940 set dummy gmsgfmt
; ac_word
=$2
14941 echo "$as_me:$LINENO: checking for $ac_word" >&5
14942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14943 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
14951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14952 for as_dir
in $PATH
14955 test -z "$as_dir" && as_dir
=.
14956 for ac_exec_ext
in '' $ac_executable_extensions; do
14957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14958 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
14959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
14969 GMSGFMT
=$ac_cv_path_GMSGFMT
14971 if test -n "$GMSGFMT"; then
14972 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14973 echo "${ECHO_T}$GMSGFMT" >&6
14975 echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14980 # Extract the first word of "xgettext", so it can be a program name with args.
14981 set dummy xgettext
; ac_word
=$2
14982 echo "$as_me:$LINENO: checking for $ac_word" >&5
14983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14984 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 case "$XGETTEXT" in
14989 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
14992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
14993 for ac_dir
in $PATH; do
14994 test -z "$ac_dir" && ac_dir
=.
14995 if test -f $ac_dir/$ac_word; then
14996 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
14997 (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
14998 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15004 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15008 XGETTEXT
="$ac_cv_path_XGETTEXT"
15009 if test "$XGETTEXT" != ":"; then
15010 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15011 echo "${ECHO_T}$XGETTEXT" >&6
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15019 # Extract the first word of "msgmerge", so it can be a program name with args.
15020 set dummy msgmerge
; ac_word
=$2
15021 echo "$as_me:$LINENO: checking for $ac_word" >&5
15022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15023 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 case "$MSGMERGE" in
15028 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15032 for ac_dir
in $PATH; do
15033 test -z "$ac_dir" && ac_dir
=.
15034 if test -f $ac_dir/$ac_word; then
15035 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15036 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15042 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15046 MSGMERGE
="$ac_cv_path_MSGMERGE"
15047 if test "$MSGMERGE" != ":"; then
15048 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15049 echo "${ECHO_T}$MSGMERGE" >&6
15051 echo "$as_me:$LINENO: result: no" >&5
15052 echo "${ECHO_T}no" >&6
15056 if test "$GMSGFMT" != ":"; then
15057 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15058 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15061 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15062 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15063 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15068 if test "$XGETTEXT" != ":"; then
15069 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15070 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15073 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15074 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15080 ac_config_commands
="$ac_config_commands default-1"
15083 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15084 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15085 if test "${ac_cv_search_strerror+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 ac_func_search_save_LIBS
=$LIBS
15089 ac_cv_search_strerror
=no
15090 cat >conftest.
$ac_ext <<_ACEOF
15093 cat confdefs.h
>>conftest.
$ac_ext
15094 cat >>conftest.
$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any gcc2 internal prototype to avoid an error. */
15101 /* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15112 rm -f conftest.
$ac_objext conftest
$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>conftest.er1
15116 grep -v '^ *+' conftest.er1
>conftest.err
15118 cat conftest.err
>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try
='test -z "$ac_c_werror_flag"
15122 || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try
='test -s conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_search_strerror
="none required"
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.
$ac_ext >&5
15140 rm -f conftest.err conftest.
$ac_objext \
15141 conftest
$ac_exeext conftest.
$ac_ext
15142 if test "$ac_cv_search_strerror" = no
; then
15143 for ac_lib
in cposix
; do
15144 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15145 cat >conftest.
$ac_ext <<_ACEOF
15148 cat confdefs.h
>>conftest.
$ac_ext
15149 cat >>conftest.
$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15152 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15167 rm -f conftest.
$ac_objext conftest
$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15171 grep -v '^ *+' conftest.er1
>conftest.err
15173 cat conftest.err
>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try
='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try
='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_search_strerror
="-l$ac_lib"
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.
$ac_ext >&5
15196 rm -f conftest.err conftest.
$ac_objext \
15197 conftest
$ac_exeext conftest.
$ac_ext
15200 LIBS
=$ac_func_search_save_LIBS
15202 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15203 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15204 if test "$ac_cv_search_strerror" != no
; then
15205 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15210 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 cat >conftest.
$ac_ext <<_ACEOF
15218 cat confdefs.h
>>conftest.
$ac_ext
15219 cat >>conftest.
$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 #include <features.h>
15223 #ifdef __GNU_LIBRARY__
15224 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15231 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15232 ac_cv_gnu_library_2_1
=yes
15234 ac_cv_gnu_library_2_1
=no
15241 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15244 GLIBC21
="$ac_cv_gnu_library_2_1"
15249 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 if test "$cross_compiling" = yes; then
15257 # Guess based on the CPU.
15258 case "$host_cpu" in
15259 alpha
* | i3456786 | m68k | s390
*)
15260 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15262 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15266 cat >conftest.
$ac_ext <<_ACEOF
15269 cat confdefs.h
>>conftest.
$ac_ext
15270 cat >>conftest.
$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15273 #include <stdlib.h>
15274 #include <signal.h>
15278 sigfpe_handler (int sig)
15280 sigfpe_handler (sig) int sig;
15283 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15284 exit (sig != SIGFPE);
15294 signal (SIGFPE, sigfpe_handler);
15295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15297 signal (SIGTRAP, sigfpe_handler);
15299 /* Linux/SPARC yields signal SIGILL. */
15300 #if defined (__sparc__) && defined (__linux__)
15301 signal (SIGILL, sigfpe_handler);
15310 rm -f conftest
$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 gt_cv_int_divbyzero_sigfpe
=yes
15323 echo "$as_me: program exited with status $ac_status" >&5
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.
$ac_ext >&5
15327 ( exit $ac_status )
15328 gt_cv_int_divbyzero_sigfpe
=no
15330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15334 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15335 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15336 case "$gt_cv_int_divbyzero_sigfpe" in
15341 cat >>confdefs.h
<<_ACEOF
15342 #define INTDIV0_RAISES_SIGFPE $value
15347 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15348 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15349 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.
$ac_ext <<_ACEOF
15355 cat confdefs.h
>>conftest.
$ac_ext
15356 cat >>conftest.
$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #include <inttypes.h>
15363 uintmax_t i = (uintmax_t) -1;
15368 rm -f conftest.
$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>conftest.er1
15372 grep -v '^ *+' conftest.er1
>conftest.err
15374 cat conftest.err
>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try
='test -z "$ac_c_werror_flag"
15378 || test ! -s conftest.err'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try
='test -s conftest.$ac_objext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 jm_ac_cv_header_inttypes_h
=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.
$ac_ext >&5
15395 jm_ac_cv_header_inttypes_h
=no
15397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15399 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15400 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15401 if test $jm_ac_cv_header_inttypes_h = yes; then
15403 cat >>confdefs.h
<<_ACEOF
15404 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15410 echo "$as_me:$LINENO: checking for stdint.h" >&5
15411 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15412 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 cat >conftest.
$ac_ext <<_ACEOF
15418 cat confdefs.h
>>conftest.
$ac_ext
15419 cat >>conftest.
$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15422 #include <stdint.h>
15426 uintmax_t i = (uintmax_t) -1;
15431 rm -f conftest.
$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433 (eval $ac_compile) 2>conftest.er1
15435 grep -v '^ *+' conftest.er1
>conftest.err
15437 cat conftest.err
>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try
='test -z "$ac_c_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try
='test -s conftest.$ac_objext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 jm_ac_cv_header_stdint_h
=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.
$ac_ext >&5
15458 jm_ac_cv_header_stdint_h
=no
15460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15462 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15463 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15464 if test $jm_ac_cv_header_stdint_h = yes; then
15466 cat >>confdefs.h
<<_ACEOF
15467 #define HAVE_STDINT_H_WITH_UINTMAX 1
15473 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15474 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15475 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 cat >conftest.
$ac_ext <<_ACEOF
15481 cat confdefs.h
>>conftest.
$ac_ext
15482 cat >>conftest.
$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 unsigned long long ull = 1; int i = 63;
15488 unsigned long long ullmax = (unsigned long long) -1;
15489 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15494 rm -f conftest.
$ac_objext conftest
$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15498 grep -v '^ *+' conftest.er1
>conftest.err
15500 cat conftest.err
>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try
='test -z "$ac_c_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try
='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_type_unsigned_long_long
=yes
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.
$ac_ext >&5
15521 ac_cv_type_unsigned_long_long
=no
15523 rm -f conftest.err conftest.
$ac_objext \
15524 conftest
$ac_exeext conftest.
$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15527 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15528 if test $ac_cv_type_unsigned_long_long = yes; then
15530 cat >>confdefs.h
<<\_ACEOF
15531 #define HAVE_UNSIGNED_LONG_LONG 1
15539 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15541 test $ac_cv_type_unsigned_long_long = yes \
15542 && ac_type
='unsigned long long' \
15543 || ac_type
='unsigned long'
15545 cat >>confdefs.h
<<_ACEOF
15546 #define uintmax_t $ac_type
15552 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15553 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15554 if test "${gt_cv_header_inttypes_h+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.
$ac_ext <<_ACEOF
15561 cat confdefs.h
>>conftest.
$ac_ext
15562 cat >>conftest.
$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <sys/types.h>
15565 #include <inttypes.h>
15574 rm -f conftest.
$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>conftest.er1
15578 grep -v '^ *+' conftest.er1
>conftest.err
15580 cat conftest.err
>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try
='test -z "$ac_c_werror_flag"
15584 || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try
='test -s conftest.$ac_objext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 gt_cv_header_inttypes_h
=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.
$ac_ext >&5
15601 gt_cv_header_inttypes_h
=no
15603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15606 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15607 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15608 if test $gt_cv_header_inttypes_h = yes; then
15610 cat >>confdefs.h
<<_ACEOF
15611 #define HAVE_INTTYPES_H 1
15618 if test $gt_cv_header_inttypes_h = yes; then
15619 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15620 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15621 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cat >conftest.
$ac_ext <<_ACEOF
15628 cat confdefs.h
>>conftest.
$ac_ext
15629 cat >>conftest.
$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <inttypes.h>
15644 rm -f conftest.
$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>conftest.er1
15648 grep -v '^ *+' conftest.er1
>conftest.err
15650 cat conftest.err
>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try
='test -z "$ac_c_werror_flag"
15654 || test ! -s conftest.err'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try
='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 gt_cv_inttypes_pri_broken
=no
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.
$ac_ext >&5
15671 gt_cv_inttypes_pri_broken
=yes
15673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15676 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15677 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15679 if test "$gt_cv_inttypes_pri_broken" = yes; then
15681 cat >>confdefs.h
<<_ACEOF
15682 #define PRI_MACROS_BROKEN 1
15688 if test "X$prefix" = "XNONE"; then
15689 acl_final_prefix
="$ac_default_prefix"
15691 acl_final_prefix
="$prefix"
15693 if test "X$exec_prefix" = "XNONE"; then
15694 acl_final_exec_prefix
='${prefix}'
15696 acl_final_exec_prefix
="$exec_prefix"
15698 acl_save_prefix
="$prefix"
15699 prefix
="$acl_final_prefix"
15700 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
15701 prefix
="$acl_save_prefix"
15704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15705 if test "${with_gnu_ld+set}" = set; then
15706 withval
="$with_gnu_ld"
15707 test "$withval" = no || with_gnu_ld
=yes
15712 if test "$GCC" = yes; then
15713 # Check if gcc -print-prog-name=ld gives a path.
15714 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15715 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15718 # gcc leaves a trailing carriage return which upsets mingw
15719 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15721 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15724 # Accept absolute paths.
15725 [\\/]* |
[A-Za-z
]:[\\/]*)
15726 re_direlt
='/[^/][^/]*/\.\./'
15727 # Canonicalize the path of ld
15728 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
15729 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
15730 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
15732 test -z "$LD" && LD
="$ac_prog"
15735 # If it fails, then pretend we aren't using GCC.
15739 # If it is relative, then search for the first ld in PATH.
15740 with_gnu_ld
=unknown
15743 elif test "$with_gnu_ld" = yes; then
15744 echo "$as_me:$LINENO: checking for GNU ld" >&5
15745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15747 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15750 if test "${acl_cv_path_LD+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 if test -z "$LD"; then
15754 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15755 for ac_dir
in $PATH; do
15756 test -z "$ac_dir" && ac_dir
=.
15757 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15758 acl_cv_path_LD
="$ac_dir/$ac_prog"
15759 # Check to see if the program is GNU ld. I'd rather use --version,
15760 # but apparently some GNU ld's only accept -v.
15761 # Break only if it was the GNU/non-GNU ld that we prefer.
15762 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
15763 test "$with_gnu_ld" != no
&& break
15765 test "$with_gnu_ld" != yes && break
15771 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
15775 LD
="$acl_cv_path_LD"
15776 if test -n "$LD"; then
15777 echo "$as_me:$LINENO: result: $LD" >&5
15778 echo "${ECHO_T}$LD" >&6
15780 echo "$as_me:$LINENO: result: no" >&5
15781 echo "${ECHO_T}no" >&6
15783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15785 { (exit 1); exit 1; }; }
15786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15788 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15792 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
15793 acl_cv_prog_gnu_ld
=yes
15795 acl_cv_prog_gnu_ld
=no
15798 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15799 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15800 with_gnu_ld
=$acl_cv_prog_gnu_ld
15804 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15805 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15806 if test "${acl_cv_rpath+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
15811 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15813 rm -f .
/conftest.sh
15817 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15818 echo "${ECHO_T}$acl_cv_rpath" >&6
15820 libext
="$acl_cv_libext"
15821 shlibext
="$acl_cv_shlibext"
15822 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
15823 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
15824 hardcode_direct
="$acl_cv_hardcode_direct"
15825 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
15826 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
15827 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
15828 # Check whether --enable-rpath or --disable-rpath was given.
15829 if test "${enable_rpath+set}" = set; then
15830 enableval
="$enable_rpath"
15844 acl_save_prefix
="$prefix"
15845 prefix
="$acl_final_prefix"
15846 acl_save_exec_prefix
="$exec_prefix"
15847 exec_prefix
="$acl_final_exec_prefix"
15849 eval additional_includedir
=\"$includedir\"
15850 eval additional_libdir
=\"$libdir\"
15852 exec_prefix
="$acl_save_exec_prefix"
15853 prefix
="$acl_save_prefix"
15856 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15857 if test "${with_libiconv_prefix+set}" = set; then
15858 withval
="$with_libiconv_prefix"
15860 if test "X$withval" = "Xno"; then
15863 if test "X$withval" = "X"; then
15865 acl_save_prefix
="$prefix"
15866 prefix
="$acl_final_prefix"
15867 acl_save_exec_prefix
="$exec_prefix"
15868 exec_prefix
="$acl_final_exec_prefix"
15870 eval additional_includedir
=\"$includedir\"
15871 eval additional_libdir
=\"$libdir\"
15873 exec_prefix
="$acl_save_exec_prefix"
15874 prefix
="$acl_save_prefix"
15877 additional_includedir
="$withval/include"
15878 additional_libdir
="$withval/lib"
15888 names_already_handled
=
15889 names_next_round
='iconv '
15890 while test -n "$names_next_round"; do
15891 names_this_round
="$names_next_round"
15893 for name
in $names_this_round; do
15895 for n
in $names_already_handled; do
15896 if test "$n" = "$name"; then
15897 already_handled
=yes
15901 if test -z "$already_handled"; then
15902 names_already_handled
="$names_already_handled $name"
15903 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15904 eval value
=\"\
$HAVE_LIB$uppername\"
15905 if test -n "$value"; then
15906 if test "$value" = yes; then
15907 eval value
=\"\
$LIB$uppername\"
15908 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
15909 eval value
=\"\
$LTLIB$uppername\"
15910 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
15919 if test $use_additional = yes; then
15920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15921 found_dir
="$additional_libdir"
15922 found_so
="$additional_libdir/lib$name.$shlibext"
15923 if test -f "$additional_libdir/lib$name.la"; then
15924 found_la
="$additional_libdir/lib$name.la"
15927 if test -f "$additional_libdir/lib$name.$libext"; then
15928 found_dir
="$additional_libdir"
15929 found_a
="$additional_libdir/lib$name.$libext"
15930 if test -f "$additional_libdir/lib$name.la"; then
15931 found_la
="$additional_libdir/lib$name.la"
15936 if test "X$found_dir" = "X"; then
15937 for x
in $LDFLAGS $LTLIBICONV; do
15939 acl_save_prefix
="$prefix"
15940 prefix
="$acl_final_prefix"
15941 acl_save_exec_prefix
="$exec_prefix"
15942 exec_prefix
="$acl_final_exec_prefix"
15944 exec_prefix
="$acl_save_exec_prefix"
15945 prefix
="$acl_save_prefix"
15949 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15952 found_so
="$dir/lib$name.$shlibext"
15953 if test -f "$dir/lib$name.la"; then
15954 found_la
="$dir/lib$name.la"
15957 if test -f "$dir/lib$name.$libext"; then
15959 found_a
="$dir/lib$name.$libext"
15960 if test -f "$dir/lib$name.la"; then
15961 found_la
="$dir/lib$name.la"
15967 if test "X$found_dir" != "X"; then
15972 if test "X$found_dir" != "X"; then
15973 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15974 if test "X$found_so" != "X"; then
15975 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15976 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
15979 for x
in $ltrpathdirs; do
15980 if test "X$x" = "X$found_dir"; then
15985 if test -z "$haveit"; then
15986 ltrpathdirs
="$ltrpathdirs $found_dir"
15988 if test "$hardcode_direct" = yes; then
15989 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
15991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15992 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
15994 for x
in $rpathdirs; do
15995 if test "X$x" = "X$found_dir"; then
16000 if test -z "$haveit"; then
16001 rpathdirs
="$rpathdirs $found_dir"
16005 for x
in $LDFLAGS $LIBICONV; do
16007 acl_save_prefix
="$prefix"
16008 prefix
="$acl_final_prefix"
16009 acl_save_exec_prefix
="$exec_prefix"
16010 exec_prefix
="$acl_final_exec_prefix"
16012 exec_prefix
="$acl_save_exec_prefix"
16013 prefix
="$acl_save_prefix"
16015 if test "X$x" = "X-L$found_dir"; then
16020 if test -z "$haveit"; then
16021 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16023 if test "$hardcode_minus_L" != no
; then
16024 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16026 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16032 if test "X$found_a" != "X"; then
16033 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16035 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16038 additional_includedir
=
16039 case "$found_dir" in
16041 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16042 additional_includedir
="$basedir/include"
16045 if test "X$additional_includedir" != "X"; then
16046 if test "X$additional_includedir" != "X/usr/include"; then
16048 if test "X$additional_includedir" = "X/usr/local/include"; then
16049 if test -n "$GCC"; then
16051 linux
*) haveit
=yes;;
16055 if test -z "$haveit"; then
16056 for x
in $CPPFLAGS $INCICONV; do
16058 acl_save_prefix
="$prefix"
16059 prefix
="$acl_final_prefix"
16060 acl_save_exec_prefix
="$exec_prefix"
16061 exec_prefix
="$acl_final_exec_prefix"
16063 exec_prefix
="$acl_save_exec_prefix"
16064 prefix
="$acl_save_prefix"
16066 if test "X$x" = "X-I$additional_includedir"; then
16071 if test -z "$haveit"; then
16072 if test -d "$additional_includedir"; then
16073 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16079 if test -n "$found_la"; then
16080 save_libdir
="$libdir"
16081 case "$found_la" in
16082 */* |
*\\*) .
"$found_la" ;;
16083 *) .
"./$found_la" ;;
16085 libdir
="$save_libdir"
16086 for dep
in $dependency_libs; do
16089 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16090 if test "X$additional_libdir" != "X/usr/lib"; then
16092 if test "X$additional_libdir" = "X/usr/local/lib"; then
16093 if test -n "$GCC"; then
16095 linux
*) haveit
=yes;;
16099 if test -z "$haveit"; then
16101 for x
in $LDFLAGS $LIBICONV; do
16103 acl_save_prefix
="$prefix"
16104 prefix
="$acl_final_prefix"
16105 acl_save_exec_prefix
="$exec_prefix"
16106 exec_prefix
="$acl_final_exec_prefix"
16108 exec_prefix
="$acl_save_exec_prefix"
16109 prefix
="$acl_save_prefix"
16111 if test "X$x" = "X-L$additional_libdir"; then
16116 if test -z "$haveit"; then
16117 if test -d "$additional_libdir"; then
16118 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16122 for x
in $LDFLAGS $LTLIBICONV; do
16124 acl_save_prefix
="$prefix"
16125 prefix
="$acl_final_prefix"
16126 acl_save_exec_prefix
="$exec_prefix"
16127 exec_prefix
="$acl_final_exec_prefix"
16129 exec_prefix
="$acl_save_exec_prefix"
16130 prefix
="$acl_save_prefix"
16132 if test "X$x" = "X-L$additional_libdir"; then
16137 if test -z "$haveit"; then
16138 if test -d "$additional_libdir"; then
16139 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16146 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16147 if test "$enable_rpath" != no
; then
16149 for x
in $rpathdirs; do
16150 if test "X$x" = "X$dir"; then
16155 if test -z "$haveit"; then
16156 rpathdirs
="$rpathdirs $dir"
16159 for x
in $ltrpathdirs; do
16160 if test "X$x" = "X$dir"; then
16165 if test -z "$haveit"; then
16166 ltrpathdirs
="$ltrpathdirs $dir"
16171 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16174 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16177 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16178 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16184 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16185 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16191 if test "X$rpathdirs" != "X"; then
16192 if test -n "$hardcode_libdir_separator"; then
16194 for found_dir
in $rpathdirs; do
16195 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16197 acl_save_libdir
="$libdir"
16199 eval flag
=\"$hardcode_libdir_flag_spec\"
16200 libdir
="$acl_save_libdir"
16201 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16203 for found_dir
in $rpathdirs; do
16204 acl_save_libdir
="$libdir"
16205 libdir
="$found_dir"
16206 eval flag
=\"$hardcode_libdir_flag_spec\"
16207 libdir
="$acl_save_libdir"
16208 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16212 if test "X$ltrpathdirs" != "X"; then
16213 for found_dir
in $ltrpathdirs; do
16214 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16231 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16232 stdlib.h string.h unistd.h sys
/param.h
16234 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16236 echo "$as_me:$LINENO: checking for $ac_header" >&5
16237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16244 # Is the header compilable?
16245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16247 cat >conftest.
$ac_ext <<_ACEOF
16250 cat confdefs.h
>>conftest.
$ac_ext
16251 cat >>conftest.
$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #include <$ac_header>
16256 rm -f conftest.
$ac_objext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16258 (eval $ac_compile) 2>conftest.er1
16260 grep -v '^ *+' conftest.er1
>conftest.err
16262 cat conftest.err
>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try
='test -z "$ac_c_werror_flag"
16266 || test ! -s conftest.err'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; } &&
16272 { ac_try
='test -s conftest.$ac_objext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 ac_header_compiler
=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.
$ac_ext >&5
16283 ac_header_compiler
=no
16285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16287 echo "${ECHO_T}$ac_header_compiler" >&6
16289 # Is the header present?
16290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16292 cat >conftest.
$ac_ext <<_ACEOF
16295 cat confdefs.h
>>conftest.
$ac_ext
16296 cat >>conftest.
$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16303 grep -v '^ *+' conftest.er1
>conftest.err
16305 cat conftest.err
>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev
/null
; then
16308 if test -s conftest.err
; then
16309 ac_cpp_err
=$ac_c_preproc_warn_flag
16310 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16317 if test -z "$ac_cpp_err"; then
16318 ac_header_preproc
=yes
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.
$ac_ext >&5
16323 ac_header_preproc
=no
16325 rm -f conftest.err conftest.
$ac_ext
16326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16327 echo "${ECHO_T}$ac_header_preproc" >&6
16329 # So? What about this header?
16330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16336 ac_header_preproc
=yes
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16353 ## ------------------------------ ##
16354 ## Report this to admin@amule.org ##
16355 ## ------------------------------ ##
16358 sed "s/^/$as_me: WARNING: /" >&2
16361 echo "$as_me:$LINENO: checking for $ac_header" >&5
16362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 eval "$as_ac_Header=\$ac_header_preproc"
16368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16373 cat >>confdefs.h
<<_ACEOF
16374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16403 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16404 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16409 if eval "test \"\${$as_ac_var+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.
$ac_ext <<_ACEOF
16415 cat confdefs.h
>>conftest.
$ac_ext
16416 cat >>conftest.
$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16428 # include <limits.h>
16430 # include <assert.h>
16435 /* Override any gcc2 internal prototype to avoid an error. */
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16449 char (*f) () = $ac_func;
16458 return f != $ac_func;
16463 rm -f conftest.
$ac_objext conftest
$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>conftest.er1
16467 grep -v '^ *+' conftest.er1
>conftest.err
16469 cat conftest.err
>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try
='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try
='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 eval "$as_ac_var=yes"
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.
$ac_ext >&5
16490 eval "$as_ac_var=no"
16492 rm -f conftest.err conftest.
$ac_objext \
16493 conftest
$ac_exeext conftest.
$ac_ext
16495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498 cat >>confdefs.h
<<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16511 am_save_CPPFLAGS
="$CPPFLAGS"
16513 for element
in $INCICONV; do
16515 for x
in $CPPFLAGS; do
16517 acl_save_prefix
="$prefix"
16518 prefix
="$acl_final_prefix"
16519 acl_save_exec_prefix
="$exec_prefix"
16520 exec_prefix
="$acl_final_exec_prefix"
16522 exec_prefix
="$acl_save_exec_prefix"
16523 prefix
="$acl_save_prefix"
16525 if test "X$x" = "X$element"; then
16530 if test -z "$haveit"; then
16531 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16536 echo "$as_me:$LINENO: checking for iconv" >&5
16537 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16538 if test "${am_cv_func_iconv+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 am_cv_func_iconv
="no, consider installing GNU libiconv"
16544 cat >conftest.
$ac_ext <<_ACEOF
16547 cat confdefs.h
>>conftest.
$ac_ext
16548 cat >>conftest.
$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 #include <stdlib.h>
16555 iconv_t cd = iconv_open("","");
16556 iconv(cd,NULL,NULL,NULL,NULL);
16562 rm -f conftest.
$ac_objext conftest
$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564 (eval $ac_link) 2>conftest.er1
16566 grep -v '^ *+' conftest.er1
>conftest.err
16568 cat conftest.err
>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try
='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try
='test -s conftest$ac_exeext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 am_cv_func_iconv
=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16590 rm -f conftest.err conftest.
$ac_objext \
16591 conftest
$ac_exeext conftest.
$ac_ext
16592 if test "$am_cv_func_iconv" != yes; then
16593 am_save_LIBS
="$LIBS"
16594 LIBS
="$LIBS $LIBICONV"
16595 cat >conftest.
$ac_ext <<_ACEOF
16598 cat confdefs.h
>>conftest.
$ac_ext
16599 cat >>conftest.
$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <stdlib.h>
16606 iconv_t cd = iconv_open("","");
16607 iconv(cd,NULL,NULL,NULL,NULL);
16613 rm -f conftest.
$ac_objext conftest
$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1
>conftest.err
16619 cat conftest.err
>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try
='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try
='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 am_cv_lib_iconv
=yes
16636 am_cv_func_iconv
=yes
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.
$ac_ext >&5
16642 rm -f conftest.err conftest.
$ac_objext \
16643 conftest
$ac_exeext conftest.
$ac_ext
16644 LIBS
="$am_save_LIBS"
16648 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16649 echo "${ECHO_T}$am_cv_func_iconv" >&6
16650 if test "$am_cv_func_iconv" = yes; then
16652 cat >>confdefs.h
<<\_ACEOF
16653 #define HAVE_ICONV 1
16657 if test "$am_cv_lib_iconv" = yes; then
16658 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16659 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16660 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16661 echo "${ECHO_T}$LIBICONV" >&6
16663 CPPFLAGS
="$am_save_CPPFLAGS"
16670 if test "$am_cv_func_iconv" = yes; then
16671 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16672 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16673 if test "${am_cv_proto_iconv+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 cat >conftest.
$ac_ext <<_ACEOF
16680 cat confdefs.h
>>conftest.
$ac_ext
16681 cat >>conftest.
$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16684 #include <stdlib.h>
16690 #if defined(__STDC__) || defined(__cplusplus)
16691 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16704 rm -f conftest.
$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16708 grep -v '^ *+' conftest.er1
>conftest.err
16710 cat conftest.err
>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try
='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try
='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 am_cv_proto_iconv_arg1
=""
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.
$ac_ext >&5
16731 am_cv_proto_iconv_arg1
="const"
16733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16734 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);"
16737 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16738 echo "$as_me:$LINENO: result: ${ac_t:-
16739 }$am_cv_proto_iconv" >&5
16740 echo "${ECHO_T}${ac_t:-
16741 }$am_cv_proto_iconv" >&6
16743 cat >>confdefs.h
<<_ACEOF
16744 #define ICONV_CONST $am_cv_proto_iconv_arg1
16750 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16751 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16752 if test "${am_cv_langinfo_codeset+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 cat >conftest.
$ac_ext <<_ACEOF
16758 cat confdefs.h
>>conftest.
$ac_ext
16759 cat >>conftest.
$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <langinfo.h>
16765 char* cs = nl_langinfo(CODESET);
16770 rm -f conftest.
$ac_objext conftest
$ac_exeext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16772 (eval $ac_link) 2>conftest.er1
16774 grep -v '^ *+' conftest.er1
>conftest.err
16776 cat conftest.err
>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try
='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try
='test -s conftest$ac_exeext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 am_cv_langinfo_codeset
=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.
$ac_ext >&5
16797 am_cv_langinfo_codeset
=no
16799 rm -f conftest.err conftest.
$ac_objext \
16800 conftest
$ac_exeext conftest.
$ac_ext
16803 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16804 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16805 if test $am_cv_langinfo_codeset = yes; then
16807 cat >>confdefs.h
<<\_ACEOF
16808 #define HAVE_LANGINFO_CODESET 1
16813 if test $ac_cv_header_locale_h = yes; then
16815 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
16816 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16817 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 cat >conftest.
$ac_ext <<_ACEOF
16823 cat confdefs.h
>>conftest.
$ac_ext
16824 cat >>conftest.
$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 #include <locale.h>
16835 rm -f conftest.
$ac_objext conftest
$ac_exeext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1
>conftest.err
16841 cat conftest.err
>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try
='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try
='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 am_cv_val_LC_MESSAGES
=yes
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.
$ac_ext >&5
16862 am_cv_val_LC_MESSAGES
=no
16864 rm -f conftest.err conftest.
$ac_objext \
16865 conftest
$ac_exeext conftest.
$ac_ext
16867 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
16868 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16869 if test $am_cv_val_LC_MESSAGES = yes; then
16871 cat >>confdefs.h
<<\_ACEOF
16872 #define HAVE_LC_MESSAGES 1
16879 for ac_prog
in bison
16881 # Extract the first word of "$ac_prog", so it can be a program name with args.
16882 set dummy
$ac_prog; ac_word
=$2
16883 echo "$as_me:$LINENO: checking for $ac_word" >&5
16884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16885 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 if test -n "$INTLBISON"; then
16889 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
16891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16892 for as_dir
in $PATH
16895 test -z "$as_dir" && as_dir
=.
16896 for ac_exec_ext
in '' $ac_executable_extensions; do
16897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_prog_INTLBISON
="$ac_prog"
16899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16907 INTLBISON
=$ac_cv_prog_INTLBISON
16908 if test -n "$INTLBISON"; then
16909 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16910 echo "${ECHO_T}$INTLBISON" >&6
16912 echo "$as_me:$LINENO: result: no" >&5
16913 echo "${ECHO_T}no" >&6
16916 test -n "$INTLBISON" && break
16919 if test -z "$INTLBISON"; then
16922 echo "$as_me:$LINENO: checking version of bison" >&5
16923 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16924 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16925 case $ac_prog_version in
16926 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
16927 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
16928 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
16929 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
16931 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16932 echo "${ECHO_T}$ac_prog_version" >&6
16934 if test $ac_verc_fail = yes; then
16940 # Check whether --with-language or --without-language was given.
16941 if test "${with_language+set}" = set; then
16942 withval
="$with_language"
16943 if test "$withval" = "all"; then
16946 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
16965 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16966 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16967 # Check whether --enable-nls or --disable-nls was given.
16968 if test "${enable_nls+set}" = set; then
16969 enableval
="$enable_nls"
16974 echo "$as_me:$LINENO: result: $USE_NLS" >&5
16975 echo "${ECHO_T}$USE_NLS" >&6
16979 BUILD_INCLUDED_LIBINTL
=no
16980 USE_INCLUDED_LIBINTL
=no
16986 if test "$USE_NLS" = "yes"; then
16987 gt_use_preinstalled_gnugettext
=no
16989 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
16990 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16992 # Check whether --with-included-gettext or --without-included-gettext was given.
16993 if test "${with_included_gettext+set}" = set; then
16994 withval
="$with_included_gettext"
16995 nls_cv_force_use_gnu_gettext
=$withval
16997 nls_cv_force_use_gnu_gettext
=no
16999 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17000 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17002 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17003 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17010 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17011 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17012 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 cat >conftest.
$ac_ext <<_ACEOF
17018 cat confdefs.h
>>conftest.
$ac_ext
17019 cat >>conftest.
$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 #include <libintl.h>
17022 extern int _nl_msg_cat_cntr;
17023 extern int *_nl_domain_bindings;
17027 bindtextdomain ("", "");
17028 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17033 rm -f conftest.
$ac_objext conftest
$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17037 grep -v '^ *+' conftest.er1
>conftest.err
17039 cat conftest.err
>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try
='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try
='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 gt_cv_func_gnugettext2_libc
=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.
$ac_ext >&5
17060 gt_cv_func_gnugettext2_libc
=no
17062 rm -f conftest.err conftest.
$ac_objext \
17063 conftest
$ac_exeext conftest.
$ac_ext
17065 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17066 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17068 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17074 acl_save_prefix
="$prefix"
17075 prefix
="$acl_final_prefix"
17076 acl_save_exec_prefix
="$exec_prefix"
17077 exec_prefix
="$acl_final_exec_prefix"
17079 eval additional_includedir
=\"$includedir\"
17080 eval additional_libdir
=\"$libdir\"
17082 exec_prefix
="$acl_save_exec_prefix"
17083 prefix
="$acl_save_prefix"
17086 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17087 if test "${with_libintl_prefix+set}" = set; then
17088 withval
="$with_libintl_prefix"
17090 if test "X$withval" = "Xno"; then
17093 if test "X$withval" = "X"; then
17095 acl_save_prefix
="$prefix"
17096 prefix
="$acl_final_prefix"
17097 acl_save_exec_prefix
="$exec_prefix"
17098 exec_prefix
="$acl_final_exec_prefix"
17100 eval additional_includedir
=\"$includedir\"
17101 eval additional_libdir
=\"$libdir\"
17103 exec_prefix
="$acl_save_exec_prefix"
17104 prefix
="$acl_save_prefix"
17107 additional_includedir
="$withval/include"
17108 additional_libdir
="$withval/lib"
17118 names_already_handled
=
17119 names_next_round
='intl '
17120 while test -n "$names_next_round"; do
17121 names_this_round
="$names_next_round"
17123 for name
in $names_this_round; do
17125 for n
in $names_already_handled; do
17126 if test "$n" = "$name"; then
17127 already_handled
=yes
17131 if test -z "$already_handled"; then
17132 names_already_handled
="$names_already_handled $name"
17133 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17134 eval value
=\"\
$HAVE_LIB$uppername\"
17135 if test -n "$value"; then
17136 if test "$value" = yes; then
17137 eval value
=\"\
$LIB$uppername\"
17138 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17139 eval value
=\"\
$LTLIB$uppername\"
17140 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17149 if test $use_additional = yes; then
17150 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17151 found_dir
="$additional_libdir"
17152 found_so
="$additional_libdir/lib$name.$shlibext"
17153 if test -f "$additional_libdir/lib$name.la"; then
17154 found_la
="$additional_libdir/lib$name.la"
17157 if test -f "$additional_libdir/lib$name.$libext"; then
17158 found_dir
="$additional_libdir"
17159 found_a
="$additional_libdir/lib$name.$libext"
17160 if test -f "$additional_libdir/lib$name.la"; then
17161 found_la
="$additional_libdir/lib$name.la"
17166 if test "X$found_dir" = "X"; then
17167 for x
in $LDFLAGS $LTLIBINTL; do
17169 acl_save_prefix
="$prefix"
17170 prefix
="$acl_final_prefix"
17171 acl_save_exec_prefix
="$exec_prefix"
17172 exec_prefix
="$acl_final_exec_prefix"
17174 exec_prefix
="$acl_save_exec_prefix"
17175 prefix
="$acl_save_prefix"
17179 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17180 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17182 found_so
="$dir/lib$name.$shlibext"
17183 if test -f "$dir/lib$name.la"; then
17184 found_la
="$dir/lib$name.la"
17187 if test -f "$dir/lib$name.$libext"; then
17189 found_a
="$dir/lib$name.$libext"
17190 if test -f "$dir/lib$name.la"; then
17191 found_la
="$dir/lib$name.la"
17197 if test "X$found_dir" != "X"; then
17202 if test "X$found_dir" != "X"; then
17203 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17204 if test "X$found_so" != "X"; then
17205 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17206 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17209 for x
in $ltrpathdirs; do
17210 if test "X$x" = "X$found_dir"; then
17215 if test -z "$haveit"; then
17216 ltrpathdirs
="$ltrpathdirs $found_dir"
17218 if test "$hardcode_direct" = yes; then
17219 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17221 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17222 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17224 for x
in $rpathdirs; do
17225 if test "X$x" = "X$found_dir"; then
17230 if test -z "$haveit"; then
17231 rpathdirs
="$rpathdirs $found_dir"
17235 for x
in $LDFLAGS $LIBINTL; do
17237 acl_save_prefix
="$prefix"
17238 prefix
="$acl_final_prefix"
17239 acl_save_exec_prefix
="$exec_prefix"
17240 exec_prefix
="$acl_final_exec_prefix"
17242 exec_prefix
="$acl_save_exec_prefix"
17243 prefix
="$acl_save_prefix"
17245 if test "X$x" = "X-L$found_dir"; then
17250 if test -z "$haveit"; then
17251 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17253 if test "$hardcode_minus_L" != no
; then
17254 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17256 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17262 if test "X$found_a" != "X"; then
17263 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17265 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17268 additional_includedir
=
17269 case "$found_dir" in
17271 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17272 additional_includedir
="$basedir/include"
17275 if test "X$additional_includedir" != "X"; then
17276 if test "X$additional_includedir" != "X/usr/include"; then
17278 if test "X$additional_includedir" = "X/usr/local/include"; then
17279 if test -n "$GCC"; then
17281 linux
*) haveit
=yes;;
17285 if test -z "$haveit"; then
17286 for x
in $CPPFLAGS $INCINTL; do
17288 acl_save_prefix
="$prefix"
17289 prefix
="$acl_final_prefix"
17290 acl_save_exec_prefix
="$exec_prefix"
17291 exec_prefix
="$acl_final_exec_prefix"
17293 exec_prefix
="$acl_save_exec_prefix"
17294 prefix
="$acl_save_prefix"
17296 if test "X$x" = "X-I$additional_includedir"; then
17301 if test -z "$haveit"; then
17302 if test -d "$additional_includedir"; then
17303 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17309 if test -n "$found_la"; then
17310 save_libdir
="$libdir"
17311 case "$found_la" in
17312 */* |
*\\*) .
"$found_la" ;;
17313 *) .
"./$found_la" ;;
17315 libdir
="$save_libdir"
17316 for dep
in $dependency_libs; do
17319 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17320 if test "X$additional_libdir" != "X/usr/lib"; then
17322 if test "X$additional_libdir" = "X/usr/local/lib"; then
17323 if test -n "$GCC"; then
17325 linux
*) haveit
=yes;;
17329 if test -z "$haveit"; then
17331 for x
in $LDFLAGS $LIBINTL; do
17333 acl_save_prefix
="$prefix"
17334 prefix
="$acl_final_prefix"
17335 acl_save_exec_prefix
="$exec_prefix"
17336 exec_prefix
="$acl_final_exec_prefix"
17338 exec_prefix
="$acl_save_exec_prefix"
17339 prefix
="$acl_save_prefix"
17341 if test "X$x" = "X-L$additional_libdir"; then
17346 if test -z "$haveit"; then
17347 if test -d "$additional_libdir"; then
17348 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17352 for x
in $LDFLAGS $LTLIBINTL; do
17354 acl_save_prefix
="$prefix"
17355 prefix
="$acl_final_prefix"
17356 acl_save_exec_prefix
="$exec_prefix"
17357 exec_prefix
="$acl_final_exec_prefix"
17359 exec_prefix
="$acl_save_exec_prefix"
17360 prefix
="$acl_save_prefix"
17362 if test "X$x" = "X-L$additional_libdir"; then
17367 if test -z "$haveit"; then
17368 if test -d "$additional_libdir"; then
17369 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17376 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17377 if test "$enable_rpath" != no
; then
17379 for x
in $rpathdirs; do
17380 if test "X$x" = "X$dir"; then
17385 if test -z "$haveit"; then
17386 rpathdirs
="$rpathdirs $dir"
17389 for x
in $ltrpathdirs; do
17390 if test "X$x" = "X$dir"; then
17395 if test -z "$haveit"; then
17396 ltrpathdirs
="$ltrpathdirs $dir"
17401 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17404 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17407 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17408 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17414 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17415 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17421 if test "X$rpathdirs" != "X"; then
17422 if test -n "$hardcode_libdir_separator"; then
17424 for found_dir
in $rpathdirs; do
17425 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17427 acl_save_libdir
="$libdir"
17429 eval flag
=\"$hardcode_libdir_flag_spec\"
17430 libdir
="$acl_save_libdir"
17431 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17433 for found_dir
in $rpathdirs; do
17434 acl_save_libdir
="$libdir"
17435 libdir
="$found_dir"
17436 eval flag
=\"$hardcode_libdir_flag_spec\"
17437 libdir
="$acl_save_libdir"
17438 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17442 if test "X$ltrpathdirs" != "X"; then
17443 for found_dir
in $ltrpathdirs; do
17444 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17448 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17449 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17450 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 gt_save_CPPFLAGS
="$CPPFLAGS"
17454 CPPFLAGS
="$CPPFLAGS $INCINTL"
17455 gt_save_LIBS
="$LIBS"
17456 LIBS
="$LIBS $LIBINTL"
17457 cat >conftest.
$ac_ext <<_ACEOF
17460 cat confdefs.h
>>conftest.
$ac_ext
17461 cat >>conftest.
$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <libintl.h>
17464 extern int _nl_msg_cat_cntr;
17469 const char *_nl_expand_alias ();
17473 bindtextdomain ("", "");
17474 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17479 rm -f conftest.
$ac_objext conftest
$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>conftest.er1
17483 grep -v '^ *+' conftest.er1
>conftest.err
17485 cat conftest.err
>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try
='test -z "$ac_c_werror_flag"
17489 || test ! -s conftest.err'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try
='test -s conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 gt_cv_func_gnugettext2_libintl
=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.
$ac_ext >&5
17506 gt_cv_func_gnugettext2_libintl
=no
17508 rm -f conftest.err conftest.
$ac_objext \
17509 conftest
$ac_exeext conftest.
$ac_ext
17510 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17511 LIBS
="$LIBS $LIBICONV"
17512 cat >conftest.
$ac_ext <<_ACEOF
17515 cat confdefs.h
>>conftest.
$ac_ext
17516 cat >>conftest.
$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17518 #include <libintl.h>
17519 extern int _nl_msg_cat_cntr;
17524 const char *_nl_expand_alias ();
17528 bindtextdomain ("", "");
17529 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17534 rm -f conftest.
$ac_objext conftest
$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>conftest.er1
17538 grep -v '^ *+' conftest.er1
>conftest.err
17540 cat conftest.err
>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try
='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try
='test -s conftest$ac_exeext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 LIBINTL
="$LIBINTL $LIBICONV"
17557 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17558 gt_cv_func_gnugettext2_libintl
=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.
$ac_ext >&5
17565 rm -f conftest.err conftest.
$ac_objext \
17566 conftest
$ac_exeext conftest.
$ac_ext
17568 CPPFLAGS
="$gt_save_CPPFLAGS"
17569 LIBS
="$gt_save_LIBS"
17571 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17572 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17575 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17576 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17577 && test "$PACKAGE" != gettext; }; then
17578 gt_use_preinstalled_gnugettext
=yes
17586 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17587 nls_cv_use_gnu_gettext
=yes
17591 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17592 INTLOBJS
="\$(GETTOBJS)"
17593 BUILD_INCLUDED_LIBINTL
=yes
17594 USE_INCLUDED_LIBINTL
=yes
17595 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17596 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17597 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17600 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17601 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17606 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17607 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17609 cat >>confdefs.h
<<\_ACEOF
17610 #define ENABLE_NLS 1
17618 if test "$USE_NLS" = "yes"; then
17620 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17621 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17622 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17623 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17624 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17625 echo "${ECHO_T}$LIBINTL" >&6
17627 for element
in $INCINTL; do
17629 for x
in $CPPFLAGS; do
17631 acl_save_prefix
="$prefix"
17632 prefix
="$acl_final_prefix"
17633 acl_save_exec_prefix
="$exec_prefix"
17634 exec_prefix
="$acl_final_exec_prefix"
17636 exec_prefix
="$acl_save_exec_prefix"
17637 prefix
="$acl_save_prefix"
17639 if test "X$x" = "X$element"; then
17644 if test -z "$haveit"; then
17645 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17652 cat >>confdefs.h
<<\_ACEOF
17653 #define HAVE_GETTEXT 1
17657 cat >>confdefs.h
<<\_ACEOF
17658 #define HAVE_DCGETTEXT 1
17667 if test "$PACKAGE" = gettext; then
17668 BUILD_INCLUDED_LIBINTL
=yes
17676 nls_cv_header_intl
=
17677 nls_cv_header_libgt
=
17688 INTL_LIBTOOL_SUFFIX_PREFIX
=
17692 INTLLIBS
="$LIBINTL"
17699 if test $USE_INCLUDED_LIBINTL = yes; then
17700 INCINTL
=-I\
${top_builddir}/intl
17704 if test x
$USE_NLS = xyes
; then
17706 echo "$as_me:$LINENO: checking for autopoint" >&5
17707 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17708 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17709 if test -n "$autopoint_version"; then
17711 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17712 echo "${ECHO_T}yes ($autopoint_version)" >&6
17717 echo "$as_me:$LINENO: result: no" >&5
17718 echo "${ECHO_T}no" >&6
17726 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
17727 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
17728 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
17732 if test ${USE_NLS:-no} = yes; then
17734 echo "$as_me:$LINENO: checking for requested languages" >&5
17735 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17736 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17738 if test "$AMULE_DAEMON" == "yes"; then
17740 if test -z "$LINGUAS"; then
17741 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17744 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17745 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17749 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17752 AMULE_DAEMON_MANPAGES
=
17758 if test "$AMULECMD" == "yes"; then
17760 if test -z "$LINGUAS"; then
17761 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17764 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17765 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17769 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17778 if test "$WEB" == "yes"; then
17780 if test -z "$LINGUAS"; then
17781 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17784 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17785 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17789 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
17798 if test "$AMULE_GUI" == "yes"; then
17800 if test -z "$LINGUAS"; then
17801 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17804 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17805 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17809 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17812 AMULE_GUI_MANPAGES
=
17818 if test "$CAS" == "yes"; then
17820 if test -z "$LINGUAS"; then
17821 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17824 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17825 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17829 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
17838 if test "$WXCAS" == "yes"; then
17840 if test -z "$LINGUAS"; then
17841 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17844 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17845 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17849 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
17858 if test "$ED2K" == "yes"; then
17860 if test -z "$LINGUAS"; then
17861 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17864 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17865 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17869 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
17878 if test "$ALC" == "yes"; then
17880 if test -z "$LINGUAS"; then
17881 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17884 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17885 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17889 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
17898 if test "$ALCC" == "yes"; then
17900 if test -z "$LINGUAS"; then
17901 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17904 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17905 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17909 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
17918 if test "$MONOLITHIC" == "yes"; then
17920 if test -z "$LINGUAS"; then
17921 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17924 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17925 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17929 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17932 MONOLITHIC_MANPAGES
=
17937 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17938 echo "${ECHO_T}${LINGUAS:-all}" >&6
17945 # Flush standard test results for speeding cache
17946 cat >confcache
<<\_ACEOF
17947 # This file is a shell script that caches the results of configure
17948 # tests run on this system so they can be shared between configure
17949 # scripts and configure runs, see configure's option --config-cache.
17950 # It is not useful on other systems. If it contains results you don't
17951 # want to keep, you may remove or edit it.
17953 # config.status only pays attention to the cache file if you give it
17954 # the --recheck option to rerun configure.
17956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17958 # following values.
17962 # The following way of writing the cache mishandles newlines in values,
17963 # but we know of no workaround that is simple, portable, and efficient.
17964 # So, don't put newlines in cache variables' values.
17965 # Ultrix sh set writes to stderr and can't be redirected directly,
17966 # and sets the high bit in the cache file unless we assign to the vars.
17969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17971 # `set' does not quote correctly, so add quotes (double-quote
17972 # substitution turns \\\\ into \\, and sed turns \\ into \).
17975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17978 # `set' quotes correctly as required by POSIX, so do not add quotes.
17980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17991 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17992 if test -w $cache_file; then
17993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17994 cat confcache
>$cache_file
17996 echo "not updating unwritable cache $cache_file"
18005 # Check whether --enable-debug or --disable-debug was given.
18006 if test "${enable_debug+set}" = set; then
18007 enableval
="$enable_debug"
18008 USE_DEBUG
=${enableval:-yes}
18013 if test $USE_DEBUG = yes; then
18015 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18017 MULECFLAGS
="$MULECFLAGS -g"
18018 MULECXXFLAGS
="$MULECXXFLAGS -g"
18020 if test ${GLIBCXX:-no} = yes; then
18021 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18024 if test ${GCC:-no} = yes; then
18026 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18027 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18031 if test ${SYS:-unknown} = win32
; then
18032 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18038 if test ${GCC:-no} = yes; then
18040 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18041 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18050 # Check whether --enable-optimize or --disable-optimize was given.
18051 if test "${enable_optimize+set}" = set; then
18052 enableval
="$enable_optimize"
18053 USE_OPTIMIZE
=${enableval:-no}
18058 if test $USE_OPTIMIZE = yes; then
18060 MULECFLAGS
="$MULECFLAGS -O2"
18061 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18067 # Check whether --enable-profile or --disable-profile was given.
18068 if test "${enable_profile+set}" = set; then
18069 enableval
="$enable_profile"
18070 USE_PROFILE
=${enableval:-no}
18075 if test $USE_PROFILE = yes; then
18078 MULECFLAGS
="$MULECFLAGS -pg"
18079 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18081 MULELDFLAGS
="$MULELDFLAGS -pg"
18087 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18088 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18089 # Check whether --enable-static or --disable-static was given.
18090 if test "${enable_static+set}" = set; then
18091 enableval
="$enable_static"
18092 if test ${enableval:-no} = yes; then
18093 MULELDFLAGS
="$MULELDFLAGS -static"
18097 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18098 echo "${ECHO_T}${enableval:-no}" >&6
18100 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18103 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18104 echo "$as_me:$LINENO: checking for docdir" >&5
18105 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18106 if test -z "$docdir"; then
18107 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18110 echo "$as_me:$LINENO: result: $docdir" >&5
18111 echo "${ECHO_T}$docdir" >&6
18113 # Try to set the SVN checkout-date
18114 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18115 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18116 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18118 svndate
=`cat $srcdir/SVNDATE`
18119 elif test -d $srcdir/.svn
# SVNDATE for svn
18121 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18123 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18124 echo "${ECHO_T}${svndate:-None required}" >&6
18125 if test -n "$svndate"; then
18128 cat >>confdefs.h
<<_ACEOF
18129 #define SVNDATE "$svndate"
18132 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18140 # Check whether --with-denoise-level or --without-denoise-level was given.
18141 if test "${with_denoise_level+set}" = set; then
18142 withval
="$with_denoise_level"
18146 echo "$as_me:$LINENO: checking denoising level" >&5
18147 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18148 if test ${with_denoise_level:-5} = yes; then
18149 with_denoise_level
=5
18152 if test ${with_denoise_level:-5} = no
; then
18153 with_denoise_level
=0
18156 if test ${with_denoise_level:-5} -gt 4; then
18157 if test "${svndate:+set}" = "set"; then
18158 with_denoise_level
=0
18160 with_denoise_level
=4
18165 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18166 echo "${ECHO_T}$with_denoise_level" >&6
18168 ac_config_commands
="$ac_config_commands denoiser"
18174 if test x
$WEB = xyes
; then
18184 if test x
$ED2K = xyes
; then
18194 if test x
$CAS = xyes
; then
18204 if test x
$WXCAS = xyes
; then
18214 if test x
$ALC = xyes
; then
18224 if test x
$ALCC = xyes
; then
18234 if test x
$AMULE_GUI = xyes
; then
18236 AMULE_GUI_FALSE
='#'
18244 if test x
$AMULE_DAEMON = xyes
; then
18246 AMULE_DAEMON_FALSE
='#'
18248 AMULE_DAEMON_TRUE
='#'
18249 AMULE_DAEMON_FALSE
=
18254 if test x
$AMULECMD = xyes
; then
18256 COMPILE_CMD_FALSE
='#'
18258 COMPILE_CMD_TRUE
='#'
18264 if test x
$MONOLITHIC = xyes
; then
18266 MONOLITHIC_FALSE
='#'
18268 MONOLITHIC_TRUE
='#'
18274 if test x
$ENABLE_UPNP = xyes
-a x
$SYS != xwin32
; then
18276 ENABLE_UPNP_FALSE
='#'
18278 ENABLE_UPNP_TRUE
='#'
18284 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18285 ENABLE_IP2COUNTRY_TRUE
=
18286 ENABLE_IP2COUNTRY_FALSE
='#'
18288 ENABLE_IP2COUNTRY_TRUE
='#'
18289 ENABLE_IP2COUNTRY_FALSE
=
18294 if test x
$SYS = xwin32
; then
18296 SYS_WIN32_FALSE
='#'
18304 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18314 if test x
$SYS = xdarwin
; then
18315 NEED_CORESERVICES_TRUE
=
18316 NEED_CORESERVICES_FALSE
='#'
18318 NEED_CORESERVICES_TRUE
='#'
18319 NEED_CORESERVICES_FALSE
=
18324 if test x
$USE_NLS = xyes
; then
18326 COMPILE_NLS_FALSE
='#'
18328 COMPILE_NLS_TRUE
='#'
18334 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18335 GENERATE_FLEX_HEADER_TRUE
=
18336 GENERATE_FLEX_HEADER_FALSE
='#'
18338 GENERATE_FLEX_HEADER_TRUE
='#'
18339 GENERATE_FLEX_HEADER_FALSE
=
18343 # Check for readline library
18344 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18346 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18347 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18348 if test "${vl_cv_lib_readline+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 for readline_lib
in readline edit editline
; do
18354 for termcap_lib
in "" termcap curses ncurses
; do
18355 if test -z "$termcap_lib"; then
18356 TRY_LIB
="-l$readline_lib"
18358 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18360 LIBS
="$ORIG_LIBS $TRY_LIB"
18361 cat >conftest.
$ac_ext <<_ACEOF
18364 cat confdefs.h
>>conftest.
$ac_ext
18365 cat >>conftest.
$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 /* Override any gcc2 internal prototype to avoid an error. */
18372 /* We use char because int might match the return type of a gcc2
18373 builtin and then its argument prototype would still apply. */
18383 rm -f conftest.
$ac_objext conftest
$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385 (eval $ac_link) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1
>conftest.err
18389 cat conftest.err
>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try
='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try
='test -s conftest$ac_exeext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 vl_cv_lib_readline
="$TRY_LIB"
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.
$ac_ext >&5
18411 rm -f conftest.err conftest.
$ac_objext \
18412 conftest
$ac_exeext conftest.
$ac_ext
18413 if test -n "$vl_cv_lib_readline"; then
18417 if test -n "$vl_cv_lib_readline"; then
18421 if test -z "$vl_cv_lib_readline"; then
18422 vl_cv_lib_readline
="no"
18426 READLINE_LIBS
="$vl_cv_lib_readline"
18430 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18431 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18433 if test "$vl_cv_lib_readline" != "no"; then
18435 cat >>confdefs.h
<<\_ACEOF
18436 #define HAVE_LIBREADLINE 1
18441 for ac_header
in readline.h readline
/readline.h
18443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18445 echo "$as_me:$LINENO: checking for $ac_header" >&5
18446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18453 # Is the header compilable?
18454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18456 cat >conftest.
$ac_ext <<_ACEOF
18459 cat confdefs.h
>>conftest.
$ac_ext
18460 cat >>conftest.
$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 $ac_includes_default
18463 #include <$ac_header>
18465 rm -f conftest.
$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1
>conftest.err
18471 cat conftest.err
>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try
='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try
='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_header_compiler
=yes
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.
$ac_ext >&5
18492 ac_header_compiler
=no
18494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18496 echo "${ECHO_T}$ac_header_compiler" >&6
18498 # Is the header present?
18499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18501 cat >conftest.
$ac_ext <<_ACEOF
18504 cat confdefs.h
>>conftest.
$ac_ext
18505 cat >>conftest.
$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <$ac_header>
18509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18512 grep -v '^ *+' conftest.er1
>conftest.err
18514 cat conftest.err
>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } >/dev
/null
; then
18517 if test -s conftest.err
; then
18518 ac_cpp_err
=$ac_c_preproc_warn_flag
18519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18526 if test -z "$ac_cpp_err"; then
18527 ac_header_preproc
=yes
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.
$ac_ext >&5
18532 ac_header_preproc
=no
18534 rm -f conftest.err conftest.
$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18536 echo "${ECHO_T}$ac_header_preproc" >&6
18538 # So? What about this header?
18539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18545 ac_header_preproc
=yes
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18562 ## ------------------------------ ##
18563 ## Report this to admin@amule.org ##
18564 ## ------------------------------ ##
18567 sed "s/^/$as_me: WARNING: /" >&2
18570 echo "$as_me:$LINENO: checking for $ac_header" >&5
18571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 eval "$as_ac_Header=\$ac_header_preproc"
18577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18582 cat >>confdefs.h
<<_ACEOF
18583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18590 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18591 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18592 if test "${vl_cv_lib_readline_history+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 vl_cv_lib_readline_history
="no"
18597 cat >conftest.
$ac_ext <<_ACEOF
18600 cat confdefs.h
>>conftest.
$ac_ext
18601 cat >>conftest.
$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any gcc2 internal prototype to avoid an error. */
18608 /* We use char because int might match the return type of a gcc2
18609 builtin and then its argument prototype would still apply. */
18610 char add_history ();
18619 rm -f conftest.
$ac_objext conftest
$ac_exeext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621 (eval $ac_link) 2>conftest.er1
18623 grep -v '^ *+' conftest.er1
>conftest.err
18625 cat conftest.err
>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
18628 { ac_try
='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try
='test -s conftest$ac_exeext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 vl_cv_lib_readline_history
="yes"
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.
$ac_ext >&5
18647 rm -f conftest.err conftest.
$ac_objext \
18648 conftest
$ac_exeext conftest.
$ac_ext
18651 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18652 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18653 if test "$vl_cv_lib_readline_history" = "yes"; then
18655 cat >>confdefs.h
<<\_ACEOF
18656 #define HAVE_READLINE_HISTORY 1
18661 for ac_header
in history.h readline
/history.h
18663 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18665 echo "$as_me:$LINENO: checking for $ac_header" >&5
18666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18673 # Is the header compilable?
18674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18676 cat >conftest.
$ac_ext <<_ACEOF
18679 cat confdefs.h
>>conftest.
$ac_ext
18680 cat >>conftest.
$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18683 #include <$ac_header>
18685 rm -f conftest.
$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687 (eval $ac_compile) 2>conftest.er1
18689 grep -v '^ *+' conftest.er1
>conftest.err
18691 cat conftest.err
>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try
='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try
='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_header_compiler
=yes
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.
$ac_ext >&5
18712 ac_header_compiler
=no
18714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18716 echo "${ECHO_T}$ac_header_compiler" >&6
18718 # Is the header present?
18719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18721 cat >conftest.
$ac_ext <<_ACEOF
18724 cat confdefs.h
>>conftest.
$ac_ext
18725 cat >>conftest.
$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <$ac_header>
18729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18732 grep -v '^ *+' conftest.er1
>conftest.err
18734 cat conftest.err
>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } >/dev
/null
; then
18737 if test -s conftest.err
; then
18738 ac_cpp_err
=$ac_c_preproc_warn_flag
18739 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18746 if test -z "$ac_cpp_err"; then
18747 ac_header_preproc
=yes
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.
$ac_ext >&5
18752 ac_header_preproc
=no
18754 rm -f conftest.err conftest.
$ac_ext
18755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18756 echo "${ECHO_T}$ac_header_preproc" >&6
18758 # So? What about this header?
18759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18765 ac_header_preproc
=yes
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18782 ## ------------------------------ ##
18783 ## Report this to admin@amule.org ##
18784 ## ------------------------------ ##
18787 sed "s/^/$as_me: WARNING: /" >&2
18790 echo "$as_me:$LINENO: checking for $ac_header" >&5
18791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 eval "$as_ac_Header=\$ac_header_preproc"
18797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18802 cat >>confdefs.h
<<_ACEOF
18803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18817 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18820 # Check whether --enable-ccache or --disable-ccache was given.
18821 if test "${enable_ccache+set}" = set; then
18822 enableval
="$enable_ccache"
18827 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18828 if test "${with_ccache_prefix+set}" = set; then
18829 withval
="$with_ccache_prefix"
18833 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18834 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18835 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
18836 echo "${ECHO_T}${enable_ccache:-no}" >&6
18838 if test ${enable_ccache:-no} = yes; then
18840 echo "$as_me:$LINENO: checking for ccache presence" >&5
18841 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18842 if test -z "$with_ccache_prefix"; then
18844 ccache_full
=`which ccache`
18845 with_ccache_prefix
=`dirname ${ccache_full}`
18849 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
18851 echo "$as_me:$LINENO: result: yes" >&5
18852 echo "${ECHO_T}yes" >&6
18853 CC
="$with_ccache_prefix/ccache $CC"
18854 CXX
="$with_ccache_prefix/ccache $CXX"
18855 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
18859 echo "$as_me:$LINENO: result: no" >&5
18860 echo "${ECHO_T}no" >&6
18869 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"
18871 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
18873 if test x
$SYS = xwin32
; then
18874 ac_config_files
="$ac_config_files version.rc"
18878 cat >confcache
<<\_ACEOF
18879 # This file is a shell script that caches the results of configure
18880 # tests run on this system so they can be shared between configure
18881 # scripts and configure runs, see configure's option --config-cache.
18882 # It is not useful on other systems. If it contains results you don't
18883 # want to keep, you may remove or edit it.
18885 # config.status only pays attention to the cache file if you give it
18886 # the --recheck option to rerun configure.
18888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18890 # following values.
18894 # The following way of writing the cache mishandles newlines in values,
18895 # but we know of no workaround that is simple, portable, and efficient.
18896 # So, don't put newlines in cache variables' values.
18897 # Ultrix sh set writes to stderr and can't be redirected directly,
18898 # and sets the high bit in the cache file unless we assign to the vars.
18901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18903 # `set' does not quote correctly, so add quotes (double-quote
18904 # substitution turns \\\\ into \\, and sed turns \\ into \).
18907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18910 # `set' quotes correctly as required by POSIX, so do not add quotes.
18912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18923 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18924 if test -w $cache_file; then
18925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18926 cat confcache
>$cache_file
18928 echo "not updating unwritable cache $cache_file"
18933 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18934 # Let make expand exec_prefix.
18935 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18939 # trailing colons and then remove the whole line if VPATH becomes empty
18940 # (actually we leave an empty line to preserve line numbers).
18941 if test "x$srcdir" = x.
; then
18942 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18943 s/:*\$(srcdir):*/:/;
18944 s/:*\${srcdir}:*/:/;
18946 s/^\([^=]*=[ ]*\):*/\1/;
18952 DEFS
=-DHAVE_CONFIG_H
18956 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18957 # 1. Remove the extension, and $U if already installed.
18958 ac_i
=`echo "$ac_i" |
18959 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18961 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18962 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18964 LIBOBJS
=$ac_libobjs
18966 LTLIBOBJS
=$ac_ltlibobjs
18969 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18970 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&5
18972 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18973 Usually this means the macro was only invoked conditionally." >&2;}
18974 { (exit 1); exit 1; }; }
18976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18977 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&5
18979 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18980 Usually this means the macro was only invoked conditionally." >&2;}
18981 { (exit 1); exit 1; }; }
18983 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18984 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&5
18986 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18987 Usually this means the macro was only invoked conditionally." >&2;}
18988 { (exit 1); exit 1; }; }
18990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18991 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&5
18993 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18994 Usually this means the macro was only invoked conditionally." >&2;}
18995 { (exit 1); exit 1; }; }
18997 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18998 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&5
19000 echo "$as_me: error: conditional \"WEB\" was never defined.
19001 Usually this means the macro was only invoked conditionally." >&2;}
19002 { (exit 1); exit 1; }; }
19004 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19005 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&5
19007 echo "$as_me: error: conditional \"ED2K\" was never defined.
19008 Usually this means the macro was only invoked conditionally." >&2;}
19009 { (exit 1); exit 1; }; }
19011 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19012 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&5
19014 echo "$as_me: error: conditional \"CAS\" was never defined.
19015 Usually this means the macro was only invoked conditionally." >&2;}
19016 { (exit 1); exit 1; }; }
19018 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19019 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&5
19021 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19022 Usually this means the macro was only invoked conditionally." >&2;}
19023 { (exit 1); exit 1; }; }
19025 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19026 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&5
19028 echo "$as_me: error: conditional \"ALC\" was never defined.
19029 Usually this means the macro was only invoked conditionally." >&2;}
19030 { (exit 1); exit 1; }; }
19032 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19033 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&5
19035 echo "$as_me: error: conditional \"ALCC\" was never defined.
19036 Usually this means the macro was only invoked conditionally." >&2;}
19037 { (exit 1); exit 1; }; }
19039 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19040 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&5
19042 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19043 Usually this means the macro was only invoked conditionally." >&2;}
19044 { (exit 1); exit 1; }; }
19046 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19047 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&5
19049 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19050 Usually this means the macro was only invoked conditionally." >&2;}
19051 { (exit 1); exit 1; }; }
19053 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19054 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&5
19056 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19057 Usually this means the macro was only invoked conditionally." >&2;}
19058 { (exit 1); exit 1; }; }
19060 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19061 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&5
19063 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19064 Usually this means the macro was only invoked conditionally." >&2;}
19065 { (exit 1); exit 1; }; }
19067 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19068 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&5
19070 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19071 Usually this means the macro was only invoked conditionally." >&2;}
19072 { (exit 1); exit 1; }; }
19074 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19075 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&5
19077 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19078 Usually this means the macro was only invoked conditionally." >&2;}
19079 { (exit 1); exit 1; }; }
19081 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19082 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&5
19084 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19085 Usually this means the macro was only invoked conditionally." >&2;}
19086 { (exit 1); exit 1; }; }
19088 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19089 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&5
19091 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19092 Usually this means the macro was only invoked conditionally." >&2;}
19093 { (exit 1); exit 1; }; }
19095 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19096 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&5
19098 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19099 Usually this means the macro was only invoked conditionally." >&2;}
19100 { (exit 1); exit 1; }; }
19102 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19103 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&5
19105 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19106 Usually this means the macro was only invoked conditionally." >&2;}
19107 { (exit 1); exit 1; }; }
19109 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19110 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&5
19112 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19113 Usually this means the macro was only invoked conditionally." >&2;}
19114 { (exit 1); exit 1; }; }
19117 : ${CONFIG_STATUS=./config.status}
19118 ac_clean_files_save
=$ac_clean_files
19119 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19122 cat >$CONFIG_STATUS <<_ACEOF
19124 # Generated by $as_me.
19125 # Run this file to recreate the current configuration.
19126 # Compiler output produced by configure, useful for debugging
19127 # configure, is in config.log if it exists.
19130 ac_cs_recheck=false
19132 SHELL=\${CONFIG_SHELL-$SHELL}
19135 cat >>$CONFIG_STATUS <<\_ACEOF
19136 ## --------------------- ##
19137 ## M4sh Initialization. ##
19138 ## --------------------- ##
19140 # Be Bourne compatible
19141 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19145 # is contrary to our usage. Disable this feature.
19146 alias -g '${1+"$@"}'='"$@"'
19147 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19150 DUALCASE
=1; export DUALCASE
# for MKS sh
19152 # Support unset when possible.
19153 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19160 # Work around bugs in pre-3.0 UWIN ksh.
19161 $as_unset ENV MAIL MAILPATH
19168 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19169 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19170 LC_TELEPHONE LC_TIME
19172 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19173 eval $as_var=C
; export $as_var
19179 # Required to use basename.
19180 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19186 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19187 as_basename
=basename
19193 # Name of the executable.
19194 as_me
=`$as_basename "$0" ||
19195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19196 X"$0" : 'X\(//\)$' \| \
19197 X"$0" : 'X\(/\)$' \| \
19198 . : '\(.\)' 2>/dev/null ||
19200 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19201 /^X\/\(\/\/\)$/{ s//\1/; q; }
19202 /^X\/\(\/\).*/{ s//\1/; q; }
19206 # PATH needs CR, and LINENO needs CR and PATH.
19207 # Avoid depending upon Character Ranges.
19208 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19209 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19210 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19211 as_cr_digits
='0123456789'
19212 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19214 # The user is always right.
19215 if test "${PATH_SEPARATOR+set}" != set; then
19216 echo "#! /bin/sh" >conf$$.sh
19217 echo "exit 0" >>conf$$.sh
19219 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19228 as_lineno_1
=$LINENO
19229 as_lineno_2
=$LINENO
19230 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19231 test "x$as_lineno_1" != "x$as_lineno_2" &&
19232 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19233 # Find who we are. Look in the path if we contain no path at all
19236 *[\\/]* ) as_myself
=$0 ;;
19237 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19238 for as_dir
in $PATH
19241 test -z "$as_dir" && as_dir
=.
19242 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19247 # We did not find ourselves, most probably we were run as `sh COMMAND'
19248 # in which case we are not to be found in the path.
19249 if test "x$as_myself" = x
; then
19252 if test ! -f "$as_myself"; then
19253 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19254 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19255 { (exit 1); exit 1; }; }
19257 case $CONFIG_SHELL in
19259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19260 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19263 test -z "$as_dir" && as_dir
=.
19264 for as_base
in sh bash ksh sh5
; do
19267 if ("$as_dir/$as_base" -c '
19268 as_lineno_1=$LINENO
19269 as_lineno_2=$LINENO
19270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19271 test "x$as_lineno_1" != "x$as_lineno_2" &&
19272 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19273 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19274 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19275 CONFIG_SHELL
=$as_dir/$as_base
19276 export CONFIG_SHELL
19277 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19285 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19286 # uniformly replaced by the line number. The first 'sed' inserts a
19287 # line-number line before each line; the second 'sed' does the real
19288 # work. The second script uses 'N' to pair each line-number line
19289 # with the numbered line, and appends trailing '-' during
19290 # substitution so that $LINENO is not a special case at line end.
19291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19292 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19293 sed '=' <$as_myself |
19298 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19301 s,^['$as_cr_digits']*\n,,
19302 ' >$as_me.lineno
&&
19303 chmod +x
$as_me.lineno ||
19304 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19305 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19306 { (exit 1); exit 1; }; }
19308 # Don't try to exec as it changes $[0], causing all sort of problems
19309 # (the dirname of $[0] is not the place where we might find the
19310 # original and so on. Autoconf is especially sensible to this).
19312 # Exit status is that of the last command.
19317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19318 *c
*,-n*) ECHO_N
= ECHO_C
='
19320 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19321 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19324 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19330 rm -f conf$$ conf$$.exe conf$$.
file
19332 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19333 # We could just check for DJGPP; but this test a) works b) is more generic
19334 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19335 if test -f conf$$.exe
; then
19336 # Don't use ln at all; we don't have any links
19341 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19346 rm -f conf$$ conf$$.exe conf$$.
file
19348 if mkdir
-p .
2>/dev
/null
; then
19351 test -d .
/-p && rmdir .
/-p
19355 as_executable_p
="test -f"
19357 # Sed expression to map a string onto a valid CPP name.
19358 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19360 # Sed expression to map a string onto a valid variable name.
19361 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19365 # We need space, tab and new line, in precisely that order.
19375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19376 # report actual input values of CONFIG_FILES etc. instead of their
19377 # values after options handling. Logging --version etc. is OK.
19381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19382 ## Running $as_me. ##
19387 This file was extended by aMule $as_me SVN, which was
19388 generated by GNU Autoconf 2.59. Invocation command line was
19390 CONFIG_FILES = $CONFIG_FILES
19391 CONFIG_HEADERS = $CONFIG_HEADERS
19392 CONFIG_LINKS = $CONFIG_LINKS
19393 CONFIG_COMMANDS = $CONFIG_COMMANDS
19397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19401 # Files that config.status was made for.
19402 if test -n "$ac_config_files"; then
19403 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19406 if test -n "$ac_config_headers"; then
19407 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19410 if test -n "$ac_config_links"; then
19411 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19414 if test -n "$ac_config_commands"; then
19415 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19418 cat >>$CONFIG_STATUS <<\_ACEOF
19421 \`$as_me' instantiates files from templates according to the
19422 current configuration.
19424 Usage: $0 [OPTIONS] [FILE]...
19426 -h, --help print this help, then exit
19427 -V, --version print version number, then exit
19428 -q, --quiet do not print progress messages
19429 -d, --debug don't remove temporary files
19430 --recheck update $as_me by reconfiguring in the same conditions
19431 --file=FILE[:TEMPLATE]
19432 instantiate the configuration file FILE
19433 --header=FILE[:TEMPLATE]
19434 instantiate the configuration header FILE
19436 Configuration files:
19439 Configuration headers:
19442 Configuration commands:
19445 Report bugs to <bug-autoconf@gnu.org>."
19448 cat >>$CONFIG_STATUS <<_ACEOF
19450 aMule config.status SVN
19451 configured by $0, generated by GNU Autoconf 2.59,
19452 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19454 Copyright (C) 2003 Free Software Foundation, Inc.
19455 This config.status script is free software; the Free Software Foundation
19456 gives unlimited permission to copy, distribute and modify it."
19461 cat >>$CONFIG_STATUS <<\_ACEOF
19462 # If no file are specified by the user, then we need to provide default
19463 # value. By we need to know if files were specified by the user.
19469 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19470 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19478 *) # This is not an option, so the user has probably given explicit
19481 ac_need_defaults
=false
;;
19485 # Handling of the options.
19487 cat >>$CONFIG_STATUS <<\_ACEOF
19488 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19490 --version |
--vers* |
-V )
19491 echo "$ac_cs_version"; exit 0 ;;
19493 # Conflict between --help and --header
19494 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19495 Try \`$0 --help' for more information." >&5
19496 echo "$as_me: error: ambiguous option: $1
19497 Try \`$0 --help' for more information." >&2;}
19498 { (exit 1); exit 1; }; };;
19499 --help |
--hel |
-h )
19500 echo "$ac_cs_usage"; exit 0 ;;
19501 --debug |
--d* |
-d )
19503 --file |
--fil |
--fi |
--f )
19505 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19506 ac_need_defaults
=false
;;
19507 --header |
--heade |
--head |
--hea )
19509 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19510 ac_need_defaults
=false
;;
19511 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19512 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19515 # This is an error.
19516 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19517 Try \`$0 --help' for more information." >&5
19518 echo "$as_me: error: unrecognized option: $1
19519 Try \`$0 --help' for more information." >&2;}
19520 { (exit 1); exit 1; }; } ;;
19522 *) ac_config_targets
="$ac_config_targets $1" ;;
19528 ac_configure_extra_args
=
19530 if $ac_cs_silent; then
19532 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19536 cat >>$CONFIG_STATUS <<_ACEOF
19537 if \$ac_cs_recheck; then
19538 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19539 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19544 cat >>$CONFIG_STATUS <<_ACEOF
19546 # INIT-COMMANDS section.
19549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19550 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19551 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19553 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19554 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19555 LINGUAS="${LINGUAS-%UNSET%}"
19557 denoiserlevel=$with_denoise_level
19563 cat >>$CONFIG_STATUS <<\_ACEOF
19564 for ac_config_target
in $ac_config_targets
19566 case "$ac_config_target" in
19567 # Handling of arguments.
19568 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19569 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19570 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19571 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19572 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19573 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19574 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19575 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19576 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19577 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19578 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19579 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19580 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19581 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19582 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19583 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19584 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19585 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19586 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19587 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19588 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19589 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19590 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19591 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19592 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
19593 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
19594 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
19595 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
19596 "src/webserver/php-default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19597 "src/webserver/chicane/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19598 "src/webserver/litoral/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19599 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
19600 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19601 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
19602 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
19603 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
19604 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
19605 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19606 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
19607 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
19608 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19609 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19611 { (exit 1); exit 1; }; };;
19615 # If the user did not use the arguments to specify the items to instantiate,
19616 # then the envvar interface is used. Set only those that are not.
19617 # We use the long form for the default assignment because of an extremely
19618 # bizarre bug on SunOS 4.1.3.
19619 if $ac_need_defaults; then
19620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19625 # Have a temporary directory for convenience. Make it in the build tree
19626 # simply because there is no reason to put it here, and in addition,
19627 # creating and moving files from /tmp can sometimes cause problems.
19628 # Create a temporary directory, and hook for its removal unless debugging.
19631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19632 trap '{ (exit 1); exit 1; }' 1 2 13 15
19635 # Create a (secure) tmp directory for tmp files.
19638 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19639 test -n "$tmp" && test -d "$tmp"
19642 tmp
=.
/confstat$$
-$RANDOM
19643 (umask 077 && mkdir
$tmp)
19646 echo "$me: cannot create a temporary directory in ." >&2
19647 { (exit 1); exit 1; }
19652 cat >>$CONFIG_STATUS <<_ACEOF
19655 # CONFIG_FILES section.
19658 # No need to generate the scripts if there are no CONFIG_FILES.
19659 # This happens for instance when ./config.status config.h
19660 if test -n "\$CONFIG_FILES"; then
19661 # Protect against being on the right side of a sed subst in config.status.
19662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19664 s,@SHELL@,$SHELL,;t t
19665 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19666 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19667 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19668 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19669 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19670 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19671 s,@exec_prefix@,$exec_prefix,;t t
19672 s,@prefix@,$prefix,;t t
19673 s,@program_transform_name@,$program_transform_name,;t t
19674 s,@bindir@,$bindir,;t t
19675 s,@sbindir@,$sbindir,;t t
19676 s,@libexecdir@,$libexecdir,;t t
19677 s,@datadir@,$datadir,;t t
19678 s,@sysconfdir@,$sysconfdir,;t t
19679 s,@sharedstatedir@,$sharedstatedir,;t t
19680 s,@localstatedir@,$localstatedir,;t t
19681 s,@libdir@,$libdir,;t t
19682 s,@includedir@,$includedir,;t t
19683 s,@oldincludedir@,$oldincludedir,;t t
19684 s,@infodir@,$infodir,;t t
19685 s,@mandir@,$mandir,;t t
19686 s,@build_alias@,$build_alias,;t t
19687 s,@host_alias@,$host_alias,;t t
19688 s,@target_alias@,$target_alias,;t t
19689 s,@DEFS@,$DEFS,;t t
19690 s,@ECHO_C@,$ECHO_C,;t t
19691 s,@ECHO_N@,$ECHO_N,;t t
19692 s,@ECHO_T@,$ECHO_T,;t t
19693 s,@LIBS@,$LIBS,;t t
19694 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19695 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19696 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19697 s,@CYGPATH_W@,$CYGPATH_W,;t t
19698 s,@PACKAGE@,$PACKAGE,;t t
19699 s,@VERSION@,$VERSION,;t t
19700 s,@ACLOCAL@,$ACLOCAL,;t t
19701 s,@AUTOCONF@,$AUTOCONF,;t t
19702 s,@AUTOMAKE@,$AUTOMAKE,;t t
19703 s,@AUTOHEADER@,$AUTOHEADER,;t t
19704 s,@MAKEINFO@,$MAKEINFO,;t t
19705 s,@install_sh@,$install_sh,;t t
19706 s,@STRIP@,$STRIP,;t t
19707 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19708 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19709 s,@mkdir_p@,$mkdir_p,;t t
19711 s,@SET_MAKE@,$SET_MAKE,;t t
19712 s,@am__leading_dot@,$am__leading_dot,;t t
19713 s,@AMTAR@,$AMTAR,;t t
19714 s,@am__tar@,$am__tar,;t t
19715 s,@am__untar@,$am__untar,;t t
19716 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19717 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19718 s,@MAINT@,$MAINT,;t t
19719 s,@build@,$build,;t t
19720 s,@build_cpu@,$build_cpu,;t t
19721 s,@build_vendor@,$build_vendor,;t t
19722 s,@build_os@,$build_os,;t t
19723 s,@host@,$host,;t t
19724 s,@host_cpu@,$host_cpu,;t t
19725 s,@host_vendor@,$host_vendor,;t t
19726 s,@host_os@,$host_os,;t t
19727 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19728 s,@X11LIBS@,$X11LIBS,;t t
19729 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
19730 s,@MULECFLAGS@,$MULECFLAGS,;t t
19731 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
19732 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
19733 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
19735 s,@CXXFLAGS@,$CXXFLAGS,;t t
19736 s,@LDFLAGS@,$LDFLAGS,;t t
19737 s,@CPPFLAGS@,$CPPFLAGS,;t t
19738 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19739 s,@EXEEXT@,$EXEEXT,;t t
19740 s,@OBJEXT@,$OBJEXT,;t t
19741 s,@DEPDIR@,$DEPDIR,;t t
19742 s,@am__include@,$am__include,;t t
19743 s,@am__quote@,$am__quote,;t t
19744 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19745 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19746 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19747 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19748 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19749 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19750 s,@CXXCPP@,$CXXCPP,;t t
19752 s,@CFLAGS@,$CFLAGS,;t t
19753 s,@ac_ct_CC@,$ac_ct_CC,;t t
19754 s,@CCDEPMODE@,$CCDEPMODE,;t t
19755 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19756 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19758 s,@BUILD_CC@,$BUILD_CC,;t t
19759 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19760 s,@EXEEXT@,$EXEEXT,;t t
19761 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19762 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19763 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19764 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19765 s,@EGREP@,$EGREP,;t t
19767 s,@LEXLIB@,$LEXLIB,;t t
19768 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19769 s,@RANLIB@,$RANLIB,;t t
19770 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19771 s,@YACC@,$YACC,;t t
19773 s,@ac_ct_AR@,$ac_ct_AR,;t t
19775 s,@ac_ct_LD@,$ac_ct_LD,;t t
19776 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
19777 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
19778 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
19779 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19780 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19781 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19782 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19783 s,@CAS_DEFS@,$CAS_DEFS,;t t
19784 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
19785 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19786 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19787 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19788 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19789 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19790 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19791 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19792 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19793 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19794 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19795 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19796 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19797 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19798 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19799 s,@WX_LIBS@,$WX_LIBS,;t t
19800 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19801 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19802 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19803 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19804 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19805 s,@WX_UNICODE@,$WX_UNICODE,;t t
19806 s,@WX_DEBUG@,$WX_DEBUG,;t t
19807 s,@WX_SHARED@,$WX_SHARED,;t t
19808 s,@WX_PORT@,$WX_PORT,;t t
19809 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19810 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
19812 s,@RCFLAGS@,$RCFLAGS,;t t
19813 s,@ac_ct_RC@,$ac_ct_RC,;t t
19814 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
19815 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
19816 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
19817 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
19818 s,@BFD_LIBS@,$BFD_LIBS,;t t
19819 s,@ALLOCA@,$ALLOCA,;t t
19820 s,@LIBOBJS@,$LIBOBJS,;t t
19821 s,@POW_LIB@,$POW_LIB,;t t
19822 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19823 s,@MSGFMT@,$MSGFMT,;t t
19824 s,@GMSGFMT@,$GMSGFMT,;t t
19825 s,@XGETTEXT@,$XGETTEXT,;t t
19826 s,@MSGMERGE@,$MSGMERGE,;t t
19827 s,@GLIBC21@,$GLIBC21,;t t
19828 s,@LIBICONV@,$LIBICONV,;t t
19829 s,@LTLIBICONV@,$LTLIBICONV,;t t
19830 s,@INTLBISON@,$INTLBISON,;t t
19831 s,@USE_NLS@,$USE_NLS,;t t
19832 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19833 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19834 s,@CATOBJEXT@,$CATOBJEXT,;t t
19835 s,@INTLOBJS@,$INTLOBJS,;t t
19836 s,@DATADIRNAME@,$DATADIRNAME,;t t
19837 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19838 s,@GENCAT@,$GENCAT,;t t
19839 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19840 s,@INTLLIBS@,$INTLLIBS,;t t
19841 s,@LIBINTL@,$LIBINTL,;t t
19842 s,@LTLIBINTL@,$LTLIBINTL,;t t
19843 s,@POSUB@,$POSUB,;t t
19844 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19845 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19846 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19847 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19848 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19849 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19850 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19851 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19852 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19853 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19854 s,@INCINTL@,$INCINTL,;t t
19855 s,@docdir@,$docdir,;t t
19856 s,@SVNDATE@,$SVNDATE,;t t
19857 s,@WEB_TRUE@,$WEB_TRUE,;t t
19858 s,@WEB_FALSE@,$WEB_FALSE,;t t
19859 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19860 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19861 s,@CAS_TRUE@,$CAS_TRUE,;t t
19862 s,@CAS_FALSE@,$CAS_FALSE,;t t
19863 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19864 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19865 s,@ALC_TRUE@,$ALC_TRUE,;t t
19866 s,@ALC_FALSE@,$ALC_FALSE,;t t
19867 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19868 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19869 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19870 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19871 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19872 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19873 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19874 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19875 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19876 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19877 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19878 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19879 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19880 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19881 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19882 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19883 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19884 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19885 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19886 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19887 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19888 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19889 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19890 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19891 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19892 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19897 cat >>$CONFIG_STATUS <<\_ACEOF
19898 # Split the substitutions into bite-sized pieces for seds with
19899 # small command number limits, like on Digital OSF/1 and HP-UX.
19900 ac_max_sed_lines
=48
19901 ac_sed_frag
=1 # Number of current file.
19902 ac_beg
=1 # First line for current file.
19903 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19906 while $ac_more_lines; do
19907 if test $ac_beg -gt 1; then
19908 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19910 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19912 if test ! -s $tmp/subs.frag
; then
19913 ac_more_lines
=false
19915 # The purpose of the label and of the branching condition is to
19916 # speed up the sed processing (if there are no `@' at all, there
19917 # is no need to browse any of the substitutions).
19918 # These are the two extra sed commands mentioned above.
19920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19921 if test -z "$ac_sed_cmds"; then
19922 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19924 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19926 ac_sed_frag
=`expr $ac_sed_frag + 1`
19928 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19931 if test -z "$ac_sed_cmds"; then
19934 fi # test -n "$CONFIG_FILES"
19937 cat >>$CONFIG_STATUS <<\_ACEOF
19938 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19941 - |
*:- |
*:-:* ) # input from stdin
19943 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19944 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19945 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19946 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19947 * ) ac_file_in
=$ac_file.
in ;;
19950 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19951 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19953 X"$ac_file" : 'X\(//\)[^/]' \| \
19954 X"$ac_file" : 'X\(//\)$' \| \
19955 X"$ac_file" : 'X\(/\)' \| \
19956 . : '\(.\)' 2>/dev/null ||
19958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19960 /^X\(\/\/\)$/{ s//\1/; q; }
19961 /^X\(\/\).*/{ s//\1/; q; }
19963 { if $as_mkdir_p; then
19968 while test ! -d "$as_dir"; do
19969 as_dirs
="$as_dir $as_dirs"
19970 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972 X"$as_dir" : 'X\(//\)[^/]' \| \
19973 X"$as_dir" : 'X\(//\)$' \| \
19974 X"$as_dir" : 'X\(/\)' \| \
19975 . : '\(.\)' 2>/dev/null ||
19977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19979 /^X\(\/\/\)$/{ s//\1/; q; }
19980 /^X\(\/\).*/{ s//\1/; q; }
19983 test ! -n "$as_dirs" || mkdir
$as_dirs
19984 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19986 { (exit 1); exit 1; }; }; }
19990 if test "$ac_dir" != .
; then
19991 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19992 # A "../" for each directory in $ac_dir_suffix.
19993 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19995 ac_dir_suffix
= ac_top_builddir
=
19999 .
) # No --srcdir option. We are building in place.
20001 if test -z "$ac_top_builddir"; then
20004 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20006 [\\/]* | ?
:[\\/]* ) # Absolute path.
20007 ac_srcdir
=$srcdir$ac_dir_suffix;
20008 ac_top_srcdir
=$srcdir ;;
20009 *) # Relative path.
20010 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20011 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20014 # Do not use `cd foo && pwd` to compute absolute paths, because
20015 # the directories may not exist.
20017 .
) ac_abs_builddir
="$ac_dir";;
20020 .
) ac_abs_builddir
=`pwd`;;
20021 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20022 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20025 case $ac_abs_builddir in
20026 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20028 case ${ac_top_builddir}.
in
20029 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20030 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20031 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20034 case $ac_abs_builddir in
20035 .
) ac_abs_srcdir
=$ac_srcdir;;
20038 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20039 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20040 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20043 case $ac_abs_builddir in
20044 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20046 case $ac_top_srcdir in
20047 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20048 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20049 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20055 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20056 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20059 if test x
"$ac_file" != x-
; then
20060 { echo "$as_me:$LINENO: creating $ac_file" >&5
20061 echo "$as_me: creating $ac_file" >&6;}
20064 # Let's still pretend it is `configure' which instantiates (i.e., don't
20065 # use $as_me), people would be surprised to read:
20066 # /* config.h. Generated by config.status. */
20067 if test x
"$ac_file" = x-
; then
20070 configure_input
="$ac_file. "
20072 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20073 sed 's,.*/,,'` by configure."
20075 # First look for the input files in the build tree, otherwise in the
20077 ac_file_inputs
=`IFS=:
20078 for f in $ac_file_in; do
20080 -) echo $tmp/stdin ;;
20082 # Absolute (can't be DOS-style, as IFS=:)
20083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20084 echo "$as_me: error: cannot find input file: $f" >&2;}
20085 { (exit 1); exit 1; }; }
20088 if test -f "$f"; then
20091 elif test -f "$srcdir/$f"; then
20096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20097 echo "$as_me: error: cannot find input file: $f" >&2;}
20098 { (exit 1); exit 1; }; }
20101 done` ||
{ (exit 1); exit 1; }
20103 cat >>$CONFIG_STATUS <<_ACEOF
20107 cat >>$CONFIG_STATUS <<\_ACEOF
20109 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20110 s
,@configure_input@
,$configure_input,;t t
20111 s
,@srcdir@
,$ac_srcdir,;t t
20112 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20113 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20114 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20115 s
,@builddir@
,$ac_builddir,;t t
20116 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20117 s
,@top_builddir@
,$ac_top_builddir,;t t
20118 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20119 s
,@INSTALL@
,$ac_INSTALL,;t t
20120 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20122 if test x"$ac_file" != x-; then
20123 mv $tmp/out $ac_file
20131 cat >>$CONFIG_STATUS <<\_ACEOF
20134 # CONFIG_HEADER section.
20137 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20138 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20140 # ac_d sets the value in "#define NAME VALUE" lines.
20141 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20142 ac_dB
='[ ].*$,\1#\2'
20145 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20146 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20147 ac_uB
='$,\1#\2define\3'
20151 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20154 - |
*:- |
*:-:* ) # input from stdin
20156 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20157 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20158 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20159 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20160 * ) ac_file_in
=$ac_file.
in ;;
20163 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20164 echo "$as_me: creating $ac_file" >&6;}
20166 # First look for the input files in the build tree, otherwise in the
20168 ac_file_inputs
=`IFS=:
20169 for f in $ac_file_in; do
20171 -) echo $tmp/stdin ;;
20173 # Absolute (can't be DOS-style, as IFS=:)
20174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20175 echo "$as_me: error: cannot find input file: $f" >&2;}
20176 { (exit 1); exit 1; }; }
20177 # Do quote $f, to prevent DOS paths from being IFS'd.
20180 if test -f "$f"; then
20183 elif test -f "$srcdir/$f"; then
20188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20189 echo "$as_me: error: cannot find input file: $f" >&2;}
20190 { (exit 1); exit 1; }; }
20193 done` ||
{ (exit 1); exit 1; }
20194 # Remove the trailing spaces.
20195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20199 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20200 # `conftest.undefs', that substitutes the proper values into
20201 # config.h.in to produce config.h. The first handles `#define'
20202 # templates, and the second `#undef' templates.
20203 # And first: Protect against being on the right side of a sed subst in
20204 # config.status. Protect against being in an unquoted here document
20205 # in config.status.
20206 rm -f conftest.defines conftest.undefs
20207 # Using a here document instead of a string reduces the quoting nightmare.
20208 # Putting comments in sed scripts is not portable.
20210 # `end' is used to avoid that the second main sed command (meant for
20211 # 0-ary CPP macros) applies to n-ary macro definitions.
20212 # See the Autoconf documentation for `clear'.
20213 cat >confdef2sed.
sed <<\_ACEOF
20218 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20220 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20223 # If some macros were called several times there might be several times
20224 # the same #defines, which is useless. Nevertheless, we may not want to
20225 # sort them, since we want the *last* AC-DEFINE to be honored.
20226 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20227 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20228 rm -f confdef2sed.sed
20230 # This sed command replaces #undef with comments. This is necessary, for
20231 # example, in the case of _POSIX_SOURCE, which is predefined and required
20232 # on some systems where configure will not decide to define it.
20233 cat >>conftest.undefs <<\_ACEOF
20234 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20237 # Break up conftest.defines because some shells have a limit on the size
20238 # of here documents, and old seds have small limits too (100 cmds).
20239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20240 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20242 echo ' :' >>$CONFIG_STATUS
20243 rm -f conftest.tail
20244 while grep . conftest.defines >/dev/null
20246 # Write a limited-size here document to $tmp/defines.sed.
20247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20248 # Speed up: don't consider the non `#define' lines.
20249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20250 # Work around the forget-to-reset-the-flag bug.
20251 echo 't clr' >>$CONFIG_STATUS
20252 echo ': clr' >>$CONFIG_STATUS
20253 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20257 mv $tmp/out $tmp/in
20259 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20260 rm -f conftest.defines
20261 mv conftest.
tail conftest.defines
20263 rm -f conftest.defines
20264 echo ' fi # grep' >>$CONFIG_STATUS
20265 echo >>$CONFIG_STATUS
20267 # Break up conftest.undefs because some shells have a limit on the size
20268 # of here documents, and old seds have small limits too (100 cmds).
20269 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20270 rm -f conftest.
tail
20271 while grep . conftest.undefs
>/dev
/null
20273 # Write a limited-size here document to $tmp/undefs.sed.
20274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20275 # Speed up: don't consider the non
`#undef'
20276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20277 # Work around the forget-to-reset-the-flag bug.
20278 echo 't clr' >>$CONFIG_STATUS
20279 echo ': clr' >>$CONFIG_STATUS
20280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20284 mv $tmp/out $tmp/in
20286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20287 rm -f conftest.undefs
20288 mv conftest.tail conftest.undefs
20290 rm -f conftest.undefs
20292 cat >>$CONFIG_STATUS <<\_ACEOF
20293 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20294 # use $as_me), people would be surprised to read:
20295 # /* config.h. Generated by config.status. */
20296 if test x
"$ac_file" = x-
; then
20297 echo "/* Generated by configure. */" >$tmp/config.h
20299 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20301 cat $tmp/in >>$tmp/config.h
20303 if test x
"$ac_file" != x-
; then
20304 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20306 echo "$as_me: $ac_file is unchanged" >&6;}
20308 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20310 X"$ac_file" : 'X\(//\)[^/]' \| \
20311 X"$ac_file" : 'X\(//\)$' \| \
20312 X"$ac_file" : 'X\(/\)' \| \
20313 . : '\(.\)' 2>/dev/null ||
20315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20317 /^X\(\/\/\)$/{ s//\1/; q; }
20318 /^X\(\/\).*/{ s//\1/; q; }
20320 { if $as_mkdir_p; then
20325 while test ! -d "$as_dir"; do
20326 as_dirs
="$as_dir $as_dirs"
20327 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329 X"$as_dir" : 'X\(//\)[^/]' \| \
20330 X"$as_dir" : 'X\(//\)$' \| \
20331 X"$as_dir" : 'X\(/\)' \| \
20332 . : '\(.\)' 2>/dev/null ||
20334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20336 /^X\(\/\/\)$/{ s//\1/; q; }
20337 /^X\(\/\).*/{ s//\1/; q; }
20340 test ! -n "$as_dirs" || mkdir
$as_dirs
20341 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20343 { (exit 1); exit 1; }; }; }
20346 mv $tmp/config.h
$ac_file
20350 rm -f $tmp/config.h
20352 # Compute $ac_file's index in $config_headers.
20354 for _am_header
in $config_headers :; do
20355 case $_am_header in
20356 $ac_file |
$ac_file:* )
20359 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20362 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20363 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364 X$ac_file : 'X\(//\)[^/]' \| \
20365 X$ac_file : 'X\(//\)$' \| \
20366 X$ac_file : 'X\(/\)' \| \
20367 . : '\(.\)' 2>/dev/null ||
20369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20371 /^X\(\/\/\)$/{ s//\1/; q; }
20372 /^X\(\/\).*/{ s//\1/; q; }
20373 s/.*/./; q'`/stamp-h
$_am_stamp_count
20376 cat >>$CONFIG_STATUS <<\_ACEOF
20379 # CONFIG_COMMANDS section.
20381 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20382 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20383 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20384 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20385 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20386 X"$ac_dest" : 'X\(//\)[^/]' \| \
20387 X"$ac_dest" : 'X\(//\)$' \| \
20388 X"$ac_dest" : 'X\(/\)' \| \
20389 . : '\(.\)' 2>/dev/null ||
20391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20393 /^X\(\/\/\)$/{ s//\1/; q; }
20394 /^X\(\/\).*/{ s//\1/; q; }
20396 { if $as_mkdir_p; then
20401 while test ! -d "$as_dir"; do
20402 as_dirs
="$as_dir $as_dirs"
20403 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20405 X"$as_dir" : 'X\(//\)[^/]' \| \
20406 X"$as_dir" : 'X\(//\)$' \| \
20407 X"$as_dir" : 'X\(/\)' \| \
20408 . : '\(.\)' 2>/dev/null ||
20410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20412 /^X\(\/\/\)$/{ s//\1/; q; }
20413 /^X\(\/\).*/{ s//\1/; q; }
20416 test ! -n "$as_dirs" || mkdir
$as_dirs
20417 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20419 { (exit 1); exit 1; }; }; }
20423 if test "$ac_dir" != .
; then
20424 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20425 # A "../" for each directory in $ac_dir_suffix.
20426 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20428 ac_dir_suffix
= ac_top_builddir
=
20432 .
) # No --srcdir option. We are building in place.
20434 if test -z "$ac_top_builddir"; then
20437 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20439 [\\/]* | ?
:[\\/]* ) # Absolute path.
20440 ac_srcdir
=$srcdir$ac_dir_suffix;
20441 ac_top_srcdir
=$srcdir ;;
20442 *) # Relative path.
20443 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20444 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20447 # Do not use `cd foo && pwd` to compute absolute paths, because
20448 # the directories may not exist.
20450 .
) ac_abs_builddir
="$ac_dir";;
20453 .
) ac_abs_builddir
=`pwd`;;
20454 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20455 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20458 case $ac_abs_builddir in
20459 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20461 case ${ac_top_builddir}.
in
20462 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20463 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20464 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20467 case $ac_abs_builddir in
20468 .
) ac_abs_srcdir
=$ac_srcdir;;
20471 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20472 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20473 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20476 case $ac_abs_builddir in
20477 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20479 case $ac_top_srcdir in
20480 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20481 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20482 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20487 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20488 echo "$as_me: executing $ac_dest commands" >&6;}
20490 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20491 # Strip MF so we end up with the name of the file.
20492 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20493 # Check whether this is an Automake generated Makefile or not.
20494 # We used to match only the files named `Makefile.in', but
20495 # some people rename them; so instead we look at the file content.
20496 # Grep'ing the first line is not enough: some people post-process
20497 # each Makefile.in and add a new line on top of each file to say so.
20498 # So let's grep whole file.
20499 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20500 dirpart
=`(dirname "$mf") 2>/dev/null ||
20501 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20502 X"$mf" : 'X\(//\)[^/]' \| \
20503 X"$mf" : 'X\(//\)$' \| \
20504 X"$mf" : 'X\(/\)' \| \
20505 . : '\(.\)' 2>/dev/null ||
20507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20509 /^X\(\/\/\)$/{ s//\1/; q; }
20510 /^X\(\/\).*/{ s//\1/; q; }
20515 # Extract the definition of DEPDIR, am__include, and am__quote
20516 # from the Makefile without running `make'.
20517 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20518 test -z "$DEPDIR" && continue
20519 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20520 test -z "am__include" && continue
20521 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20522 # When using ansi2knr, U may be empty or an underscore; expand it
20523 U
=`sed -n 's/^U = //p' < "$mf"`
20524 # Find all dependency output files, they are included files with
20525 # $(DEPDIR) in their names. We invoke sed twice because it is the
20526 # simplest approach to changing $(DEPDIR) to its actual value in the
20528 for file in `sed -n "
20529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20531 # Make sure the directory exists.
20532 test -f "$dirpart/$file" && continue
20533 fdir
=`(dirname "$file") 2>/dev/null ||
20534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$file" : 'X\(//\)[^/]' \| \
20536 X"$file" : 'X\(//\)$' \| \
20537 X"$file" : 'X\(/\)' \| \
20538 . : '\(.\)' 2>/dev/null ||
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20542 /^X\(\/\/\)$/{ s//\1/; q; }
20543 /^X\(\/\).*/{ s//\1/; q; }
20545 { if $as_mkdir_p; then
20546 mkdir
-p $dirpart/$fdir
20548 as_dir
=$dirpart/$fdir
20550 while test ! -d "$as_dir"; do
20551 as_dirs
="$as_dir $as_dirs"
20552 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| \
20557 . : '\(.\)' 2>/dev/null ||
20559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20561 /^X\(\/\/\)$/{ s//\1/; q; }
20562 /^X\(\/\).*/{ s//\1/; q; }
20565 test ! -n "$as_dirs" || mkdir
$as_dirs
20566 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20567 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20568 { (exit 1); exit 1; }; }; }
20570 # echo "creating $dirpart/$file"
20571 echo '# dummy' > "$dirpart/$file"
20576 for ac_file
in $CONFIG_FILES; do
20577 # Support "outfile[:infile[:infile...]]"
20579 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20581 # PO directories have a Makefile.in generated from Makefile.in.in.
20582 case "$ac_file" in */Makefile.
in)
20583 # Adjust a relative srcdir.
20584 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20585 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
20586 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20587 # In autoconf-2.13 it is called $ac_given_srcdir.
20588 # In autoconf-2.50 it is called $srcdir.
20589 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20590 case "$ac_given_srcdir" in
20591 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20592 /*) top_srcdir
="$ac_given_srcdir" ;;
20593 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
20595 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20596 rm -f "$ac_dir/POTFILES"
20597 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
20598 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20599 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20600 # on $ac_dir but don't depend on user-specified configuration
20602 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20603 # The LINGUAS file contains the set of available languages.
20604 if test -n "$ALL_LINGUAS"; then
20605 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
20607 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20608 # Hide the ALL_LINGUAS assigment from automake.
20609 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20611 case "$ac_given_srcdir" in
20613 *) srcdirpre
='$(srcdir)/' ;;
20619 for lang
in $ALL_LINGUAS; do
20620 POFILES
="$POFILES $srcdirpre$lang.po"
20621 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20622 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
20623 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
20625 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20626 # environment variable.
20628 if test -n "$ALL_LINGUAS"; then
20629 for presentlang
in $ALL_LINGUAS; do
20631 if test "%UNSET%" != "$LINGUAS"; then
20632 desiredlanguages
="$LINGUAS"
20634 desiredlanguages
="$ALL_LINGUAS"
20636 for desiredlang
in $desiredlanguages; do
20637 # Use the presentlang catalog if desiredlang is
20638 # a. equal to presentlang, or
20639 # b. a variant of presentlang (because in this case,
20640 # presentlang can be used as a fallback for messages
20641 # which are not translated in the desiredlang catalog).
20642 case "$desiredlang" in
20643 "$presentlang"*) useit
=yes;;
20646 if test $useit = yes; then
20647 INST_LINGUAS
="$INST_LINGUAS $presentlang"
20652 if test -n "$INST_LINGUAS"; then
20653 for lang
in $INST_LINGUAS; do
20654 CATALOGS
="$CATALOGS $lang.gmo"
20657 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
20658 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"
20659 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
20660 if test -f "$f"; then
20662 *.orig |
*.bak |
*~
) ;;
20663 *) cat "$f" >> "$ac_dir/Makefile" ;;
20671 denoiser
) if test $denoiserlevel -gt 0; then
20672 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
20673 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" \
20674 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
20675 for i
in `find . -name 'Makefile' -print`; do
20676 if test -n "`head -n 1 $i | grep '^#'`"; then
20677 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20687 { (exit 0); exit 0; }
20689 chmod +x
$CONFIG_STATUS
20690 ac_clean_files
=$ac_clean_files_save
20693 # configure is writing to config.log, and then calls config.status.
20694 # config.status does its own redirection, appending to config.log.
20695 # Unfortunately, on DOS this fails, as config.log is still kept open
20696 # by configure, so config.status won't be able to write to it; its
20697 # output is simply discarded. So we exec the FD to /dev/null,
20698 # effectively closing config.log, so it can be properly (re)opened and
20699 # appended to by config.status. When coming back to configure, we
20700 # need to make the FD available again.
20701 if test "$no_create" != yes; then
20703 ac_config_status_args
=
20704 test "$silent" = yes &&
20705 ac_config_status_args
="$ac_config_status_args --quiet"
20707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20710 # would make configure fail if this is the last instruction.
20711 $ac_cs_success ||
{ (exit 1); exit 1; }
20717 echo " Configure script has finished system check."
20719 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20721 echo " aMule enabled options:"
20723 echo " **** aMule Core ****"
20724 echo " Prefix where aMule should be installed? ${prefix:-none}"
20725 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
20726 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20727 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20728 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20729 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20730 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20731 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20732 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20733 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20734 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
20737 echo " **** aMule TextClient ****"
20738 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20740 echo " **** aMule WebServer ****"
20741 echo " Should aMule WebServer be built? ${WEB:-no}"
20743 echo " **** aMule ED2K Links Handler ****"
20744 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20746 echo " **** aMuleLinkCreator ****"
20747 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20748 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20750 echo " **** aMule Statistics ****"
20751 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20752 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20755 echo " **** General Libraries and Tools ****"
20756 echo " Should ccache support be enabled? ${ccache:-no}"
20757 echo " Libraries aMule will use to build:"
20759 if test $WX_DEBUG -eq 1; then
20760 wxinfo
="$wxinfo,debug"
20763 if test $WX_SHARED -eq 1; then
20764 wxinfo
="$wxinfo,shared"
20766 wxinfo
="$wxinfo,static"
20769 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20770 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
20771 if test x
${WEB:-no} != xno
; then
20772 if test $regex_found = no
; then
20773 regex_found
="Not detected"
20775 if test -z "$REGEX_LIB"; then
20778 regex_found
="standalone (in $REGEX_LIB)"
20783 echo " regex $regex_found"
20785 if test ${enable_nls:-yes} = yes; then
20786 if test x
$USE_NLS = xno
; then
20787 libintl_found
="Not detected"
20789 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
20790 libintl_found
="included"
20792 libintl_found
="system"
20797 echo " libintl $libintl_found"
20799 if test x
$LIBPNG_VERSION != xnot_needed
; then
20800 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20802 if test x
$GDLIB_VERSION != xnot_needed
; then
20803 echo " libgd ${GDLIB_VERSION:-Not detected}"
20805 echo " zlib ${ZLIB_VERSION:-Not detected}"
20806 if test x
$WEB = xdisabled
; then
20809 echo "WARNING! amuleweb has been disabled because configure could not find"
20810 echo "a POSIX compliant regex library."
20813 if test -z "$LIBPNG_VERSION"; then
20816 echo " WARNING! libpng >= 1.2.0 not found."
20817 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."