2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB 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 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 PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS 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 XAS_TRUE XAS_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 INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --x-includes=DIR X include files are
in DIR
867 --x-libraries=DIR X library files are
in DIR
870 --build=BUILD configure
for building on BUILD
[guessed
]
871 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive
) echo "Configuration of aMule SVN:";;
882 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
883 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing
) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule
command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don
't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc
/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib
in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed
(optional
)
918 --with-gdlib-config=CONFIG
919 gdlib-config
script to use
(optional
)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed
(optional
)
922 --with-libpng-config=CONFIG
923 libpng-config
script to use
(optional
)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
929 --with-wx-config=CONFIG wx-config
script to use
(optional
)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed
(optional
)
933 --with-toolkit Build against a specific wxWidgets toolkit
(default
935 --with-wxshared Force building against a shared build of wxWidgets
,
936 even
if --disable-shared is given
(default is auto
)
937 --with-wxdebug Force building against a debug build of wxWidgets
,
938 even
if --disable-debug is given
(default is auto
)
939 --with-wxversion Build against a specific version of wxWidgets
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto
++ is installed
945 --with-x use the X Window System
946 --with-language=<langs
> Specify a comma-separated list of languages you want
947 to have installed. See po
/LINGUAS
for available
949 --with-gnu-ld assume the C compiler uses GNU ld default
=no
950 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
951 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search
for libintl
in includedir and libdir
955 --with-denoise-level=<level
>
956 Specifies denoising level
(0-4):
958 4 - Suppress all normal output
959 (for more information see
960 src
/utils
/scripts
/denoiser.rules
)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables
:
966 CXX C
++ compiler
command
967 CXXFLAGS C
++ compiler flags
968 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
969 nonstandard directory
<lib dir
>
970 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
971 headers
in a nonstandard directory
<include dir
>
972 CXXCPP C
++ preprocessor
973 CC C compiler
command
974 CFLAGS C compiler flags
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by
`configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
999 ac_dir_suffix= ac_top_builddir=
1003 .) # No --srcdir option. We are building in place.
1005 if test -z "$ac_top_builddir"; then
1008 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1018 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1019 # the directories may not exist.
1021 .) ac_abs_builddir="$ac_dir";;
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1068 $ac_configure --help
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1105 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1106 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1107 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1108 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1109 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1111 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1112 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1114 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1115 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1116 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1117 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1118 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1119 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1120 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_must_keep_next=false
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1182 -* ) ac_must_keep_next=true ;;
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close
' the trap.
1200 trap 'exit_status
=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var
in $ac_subst_vars
1236 eval ac_val
=$
`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var
in $ac_subst_files
1250 eval ac_val
=$
`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h
; then
1263 sed "/^$/d" confdefs.h |
sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core
*.core
&&
1271 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's
/^
/|
/' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1359 ac_cache_corrupted=: ;;
1361 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1368 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1393 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1400 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 elif test -f $ac_dir/install.sh; then
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 elif test -f $ac_dir/shtool; then
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 # Account for people who put trailing slashes in PATH elements.
1481 .
/ | .
// |
/cC
/* | \
1482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1483 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1489 for ac_prog
in ginstall scoinst
install; do
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1501 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL
=$ac_cv_path_install
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL
=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538 echo timestamp
> conftest.
file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1545 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1548 set X
`ls -t $srcdir/configure conftest.file`
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.
file
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE
&&
1580 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE
&&
1583 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF
>conftest.
sed
1587 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1589 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir
=`cd $ac_aux_dir && pwd`
1595 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run
="$MISSING --run "
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p
='mkdir -p --'
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1626 for d
in .
/-p .
/--version;
1628 test -d $d && rmdir $d
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p
='$(mkinstalldirs)'
1634 mkdir_p
='$(install_sh) -d'
1638 for ac_prog
in gawk mawk nawk
awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir
=.
1655 for ac_exec_ext
in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK
="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 cat >conftest.
make <<\_ACEOF
1686 @
echo 'ac_maketemp="$(MAKE)"'
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_
${ac_make}_set
=yes
1693 eval ac_cv_prog_make_
${ac_make}_set
=no
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE
="MAKE=${MAKE-make}"
1707 rm -rf .tst
2>/dev
/null
1708 mkdir .tst
2>/dev
/null
1709 if test -d .tst
; then
1714 rmdir .tst
2>/dev
/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status
; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1727 CYGPATH_W
='cygpath -w'
1734 # Define the identity of the package.
1739 cat >>confdefs.h
<<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1744 cat >>confdefs.h
<<_ACEOF
1745 #define VERSION "$VERSION"
1748 # Some tools Automake needs.
1750 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no
; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 STRIP
=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP
="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1848 STRIP
="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1860 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1868 ac_config_headers
="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval
="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE
=$enableval
1877 USE_MAINTAINER_MODE
=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE
=
1885 MAINTAINER_MODE_FALSE
='#'
1887 MAINTAINER_MODE_TRUE
='#'
1888 MAINTAINER_MODE_FALSE
=
1891 MAINT
=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 ac_cv_build_alias
=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias
=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1922 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_cv_host_alias
=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias
=$ac_cv_build_alias
1935 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1944 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1953 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS
="-bind_at_load"
1955 touch src
/Scanner.cpp
1959 LIBS
="$LIBS -L/usr/local/lib"
1960 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS
="-D__OPENBSD__"
1963 *cygwin
* |
*mingw32
*)
1965 MULECPPFLAGS
="-DNOMINMAX"
1969 RESOLV_LIB
="-lresolv -lnsl"
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1983 MULECPPFLAGS
="-D__IRIX__"
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32
; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS
="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2003 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS
="$CFLAGS"
2016 mule_backup_CXXFLAGS
="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2019 ac_cpp
='$CXXCPP $CPPFLAGS'
2020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2064 if test -z "$CXX"; then
2066 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy
$ac_prog; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2105 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler
=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save
=$ac_clean_files
2147 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2169 test -f "$ac_file" ||
continue
2171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.
$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext
=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try
='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe
; then
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2238 ac_clean_files
=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file
in conftest.exe conftest conftest.
*; do
2258 test -f "$ac_file" ||
continue
2260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest
$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.
$ac_ext
2280 EXEEXT
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2311 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT
=$ac_cv_objext
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS
=$CXXFLAGS
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.
$ac_ext <<_ACEOF
2402 cat confdefs.h
>>conftest.
$ac_ext
2403 cat >>conftest.
$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1
>conftest.err
2420 cat conftest.err
>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try
='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g
=yes
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS
=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2456 if test "$GXX" = yes; then
2462 for ac_declaration
in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1
>conftest.err
2537 cat conftest.err
>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try
='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 DEPDIR
="${am__leading_dot}deps"
2575 ac_config_commands
="$ac_config_commands depfiles"
2578 am_make
=${MAKE-make}
2579 cat > confinc
<< 'END'
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include
=.include
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval
="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno
; then
2623 am_depcomp
="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2639 depcc
="$CXX" am_compiler_list
=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2665 am_cv_CXX_dependencies_compiler_type
=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode
in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2678 for i
in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub
/conftst
$i.h
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes
; then
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode
=$depmode \
2702 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2703 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2704 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2705 >/dev
/null
2>conftest.err
&&
2706 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2708 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type
=$depmode
2727 am_cv_CXX_dependencies_compiler_type
=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2740 am__fastdepCXX_TRUE
=
2741 am__fastdepCXX_FALSE
='#'
2743 am__fastdepCXX_TRUE
='#'
2744 am__fastdepCXX_FALSE
=
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP
in "$CXX -E" "/lib/cpp"
2763 for ac_cxx_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2863 CXXCPP
=$ac_cv_prog_CXXCPP
2865 ac_cv_prog_CXXCPP
=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2870 for ac_cxx_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 ac_cpp
='$CPP $CPPFLAGS'
2980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC
="$CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC
="$CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc
; ac_word
=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC
="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy
$ac_cv_prog_CC
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3182 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3239 if test -z "$CC"; then
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler
=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS
=${CFLAGS+set}
3373 ac_save_CFLAGS
=$CFLAGS
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS
=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_prog_cc_stdc
=no
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3474 s = g (p, va_arg (v,int));
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC
="$ac_save_CC $ac_arg"
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc
=$ac_arg
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f conftest.err conftest.
$ac_objext
3543 rm -f conftest.
$ac_ext conftest.
$ac_objext
3548 case "x$ac_cv_prog_cc_stdc" in
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.
$ac_ext <<_ACEOF
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try
='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration
in \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try
='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cpp
='$CPP $CPPFLAGS'
3703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3707 depcc
="$CC" am_compiler_list
=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3733 am_cv_CC_dependencies_compiler_type
=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode
in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i
in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes
; then
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode
=$depmode \
3770 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3771 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3772 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3773 >/dev
/null
2>conftest.err
&&
3774 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3776 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type
=$depmode
3795 am_cv_CC_dependencies_compiler_type
=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3809 am__fastdepCC_FALSE
='#'
3811 am__fastdepCC_TRUE
='#'
3812 am__fastdepCC_FALSE
=
3817 ac_cpp
='$CPP $CPPFLAGS'
3818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Double quotes because CPP needs to be expanded
3832 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3942 for ac_c_preproc_warn_flag
in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev
/null
; then
3971 if test -s conftest.err
; then
3972 ac_cpp_err
=$ac_c_preproc_warn_flag
3973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3980 if test -z "$ac_cpp_err"; then
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev
/null
; then
4009 if test -s conftest.err
; then
4010 ac_cpp_err
=$ac_c_preproc_warn_flag
4011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 # Passes both tests.
4029 rm -f conftest.err conftest.
$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.
$ac_ext
4034 if $ac_preproc_ok; then
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4052 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross
=$cross_compiling
4061 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4062 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 BUILD_CC
=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC
=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC
=$ac_ct_BUILD_CC
4141 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 BUILD_CC
=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC
=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC
=$ac_ct_BUILD_CC
4221 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4248 ac_cv_prog_BUILD_CC
="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy
$ac_cv_prog_BUILD_CC
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4264 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC
=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC
=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC
=$BUILD_CC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy
$ac_prog; ac_word
=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4363 BUILD_CC
=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler
=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.
$ac_ext <<_ACEOF
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 ac_clean_files_save
=$ac_clean_files
4411 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 # b.out is created by i960 compilers.
4431 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4433 test -f "$ac_file" ||
continue
4435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4438 # This is the source file.
4441 # We found the default executable, but exeext='' is most
4445 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext
=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try
='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 if test "$cross_compiling" = maybe
; then
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file
in conftest.exe conftest conftest.
*; do
4522 test -f "$ac_file" ||
continue
4524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4525 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest
$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.
$ac_ext
4544 BUILD_EXEEXT
=$ac_cv_build_exeext
4545 ac_build_exeext
=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling
=$saved_cross
4552 ac_cpp
='$CPP $CPPFLAGS'
4553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4561 CFLAGS
="$mule_backup_CFLAGS"
4562 CXXFLAGS
="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog
in gawk mawk nawk
awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK
="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4610 then ac_cv_prog_egrep
='grep -E'
4611 else ac_cv_prog_egrep
='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP
=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
make <<\_ACEOF
4627 @
echo 'ac_maketemp="$(MAKE)"'
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_
${ac_make}_set
=yes
4634 eval ac_cv_prog_make_
${ac_make}_set
=no
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE
="MAKE=${MAKE-make}"
4649 for ac_prog
in flex
lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX
="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4688 test -n "$LEX" || LEX
=":"
4690 if test -z "$LEXLIB"
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS
=$LIBS
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4721 rm -f conftest.
$ac_objext conftest
$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1
>conftest.err
4727 cat conftest.err
>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try
='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try
='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_lib_fl_yywrap
=no
4750 rm -f conftest.err conftest.
$ac_objext \
4751 conftest
$ac_exeext conftest.
$ac_ext
4752 LIBS
=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4788 rm -f conftest.
$ac_objext conftest
$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_cv_lib_l_yywrap
=no
4817 rm -f conftest.err conftest.
$ac_objext \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l
<<_ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l
) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c
; then
4849 ac_cv_prog_lex_root
=lex.yy
4850 elif test -f lexyy.c
; then
4851 ac_cv_prog_lex_root
=lexyy
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer
=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 LIBS
="$LIBS $LEXLIB"
4875 cat >conftest.
$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4878 rm -f conftest.
$ac_objext conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext \
4907 conftest
$ac_exeext conftest.
$ac_ext
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h
<<\_ACEOF
4917 #define YYTEXT_POINTER 1
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL
=$ac_cv_path_install
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL
=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB
=$ac_ct_RANLIB
5079 RANLIB
="$ac_cv_prog_RANLIB"
5082 for ac_prog
in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy
$ac_prog; ac_word
=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir
=.
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC
="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC
=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5121 test -n "$YACC" || YACC
="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB
=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib
; ac_word
=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB
=$ac_ct_RANLIB
5200 RANLIB
="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 STRIP
=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP
="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5279 STRIP
="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR
="$AR" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD
="$LD" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld
; ac_word
=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD
="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval
="$enable_monolithic"
5444 MONOLITHIC
=$enableval
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval
="$enable_amule_daemon"
5452 AMULE_DAEMON
=$enableval
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval
="$enable_amulecmd"
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval
="$enable_webserver"
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval
="$enable_amule_gui"
5476 AMULE_GUI
=$enableval
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval
="$enable_cas"
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval
="$enable_wxcas"
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval
="$enable_ed2k"
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval
="$enable_alc"
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval
="$enable_alcc"
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval
="$enable_monolithic"
5524 MONOLITHIC
=$enableval
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval
="$enable_upnp"
5532 ENABLE_UPNP
=$enableval
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval
="$enable_xas"
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval
="$with_gnu_malloc"
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval
="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5579 zlib_prefix
="$with_zlib"
5582 mule_backup_CPPFLAGS
="$CPPFLAGS"
5583 mule_backup_LDFLAGS
="$LDFLAGS"
5584 mule_backup_LIBS
="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5589 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5600 LIBS
="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5608 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5631 rm -f conftest.
$ac_objext conftest
$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try
='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5674 if test ${result:-no} = yes; then
5675 z_version
=" (version $ZLIB_VERSION)"
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f conftest.err conftest.
$ac_objext \
5685 conftest
$ac_exeext conftest.
$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5712 zver[4] >= '4'))) ? "yes" : "no");
5714 f=fopen("conftestver", "w");
5716 fprintf(f, "%s", ZLIB_VERSION);
5725 rm -f conftest
$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval
; then
5738 result
=`cat conftestval`
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver
; then
5747 ZLIB_VERSION
=`cat conftestver`
5748 z_version
=" (version $ZLIB_VERSION)"
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.
$ac_ext >&5
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5775 CPPFLAGS
="$mule_backup_CPPFLAGS"
5776 LDFLAGS
="$mule_backup_LDFLAGS"
5777 LIBS
="$mule_backup_LIBS"
5779 if test ${result:-no} = no
; then
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x
$CAS = xyes
; then
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_header_stdc
=no
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.
$ac_ext <<_ACEOF
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev
/null
2>&1; then
5867 ac_cv_header_stdc
=no
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev
/null
2>&1; then
5888 ac_cv_header_stdc
=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 rm -f conftest
$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5947 ac_cv_header_stdc
=no
5949 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h
<<\_ACEOF
5958 #define STDC_HEADERS 1
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5992 rm -f conftest.
$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try
='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try
='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h
<<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval
="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval
="$with_gdlib_config"
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6053 GDLIB_CONFIG_NAME
=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 case $GDLIB_CONFIG_PATH in
6086 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir
in $as_dummy
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6108 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6133 if test $gdlib_config_major_version -gt 2; then
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS
="$CFLAGS"
6172 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_header_compiler
=no
6223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev
/null
; then
6246 if test -s conftest.err
; then
6247 ac_cpp_err
=$ac_c_preproc_warn_flag
6248 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc
=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6261 ac_header_preproc
=no
6263 rm -f conftest.err conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc
=yes
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6296 sed "s/^/$as_me: WARNING: /" >&2
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_header_gd_h
=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6317 CFLAGS
="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6328 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6361 _mule_has_warnings
=yes
6367 GDLIB_VERSION
="not_needed"
6372 if test x
$WEB = xyes
; then
6375 for ac_header
in sys
/types.h
6377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6399 rm -f conftest.
$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try
='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try
='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler
=yes
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6426 ac_header_compiler
=no
6428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6446 grep -v '^ *+' conftest.er1
>conftest.err
6448 cat conftest.err
>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev
/null
; then
6451 if test -s conftest.err
; then
6452 ac_cpp_err
=$ac_c_preproc_warn_flag
6453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6460 if test -z "$ac_cpp_err"; then
6461 ac_header_preproc
=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.
$ac_ext >&5
6466 ac_header_preproc
=no
6468 rm -f conftest.err conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc
=yes
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6496 ## ------------------------------ ##
6497 ## Report this to admin@amule.org ##
6498 ## ------------------------------ ##
6501 sed "s/^/$as_me: WARNING: /" >&2
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 eval "$as_ac_Header=\$ac_header_preproc"
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h
<<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6525 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6527 for REGEX_LIBS
in '' -lgnurx -lregex; do
6528 mule_backup_LIBS
="$LIBS"
6529 LIBS
="$REGEX_LIBS $LIBS"
6530 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6538 #ifdef HAVE_SYS_TYPES_H
6539 # include <sys/types.h>
6548 regcomp(&preg, "", REG_EXTENDED);
6550 regexec(&preg, "", 0, pmatch, 0);
6558 rm -f conftest.
$ac_objext conftest
$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6562 grep -v '^ *+' conftest.er1
>conftest.err
6564 cat conftest.err
>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try
='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try
='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6581 LIBS
="$mule_backup_LIBS"
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.
$ac_ext >&5
6589 LIBS
="$mule_backup_LIBS"
6591 rm -f conftest.err conftest.
$ac_objext \
6592 conftest
$ac_exeext conftest.
$ac_ext
6594 echo "$as_me:$LINENO: result: $regex_found" >&5
6595 echo "${ECHO_T}$regex_found" >&6
6596 if test $regex_found = yes; then
6601 { echo "$as_me:$LINENO: WARNING:
6602 amuleweb has been disabled because configure could not find a POSIX
6603 compliant regex library." >&5
6604 echo "$as_me: WARNING:
6605 amuleweb has been disabled because configure could not find a POSIX
6606 compliant regex library." >&2;}
6608 _mule_has_warnings
=yes
6617 if test x
$WEB = xyes
; then
6620 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6621 if test "${with_libpng_prefix+set}" = set; then
6622 withval
="$with_libpng_prefix"
6626 # Check whether --with-libpng-config or --without-libpng-config was given.
6627 if test "${with_libpng_config+set}" = set; then
6628 withval
="$with_libpng_config"
6634 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6635 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6636 LIBPNG_CONFIG_NAME
=libpng-config
6639 if test -n "$with_libpng_config"; then
6640 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6644 # deal with optional prefix
6645 if test -n "$with_libpng_prefix"; then
6646 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6650 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6651 if test -x "$LIBPNG_CONFIG_NAME"; then
6653 echo "$as_me:$LINENO: checking for libpng-config" >&5
6654 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6655 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6656 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6657 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6660 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6661 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 case $LIBPNG_CONFIG_PATH in
6669 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6673 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6674 for as_dir
in $as_dummy
6677 test -z "$as_dir" && as_dir
=.
6678 for ac_exec_ext
in '' $ac_executable_extensions; do
6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6691 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6693 if test -n "$LIBPNG_CONFIG_PATH"; then
6694 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6695 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6704 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6706 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6707 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6709 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6711 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6712 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6713 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6714 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6717 if test $libpng_config_major_version -gt 1; then
6719 elif test $libpng_config_major_version -eq 1; then
6721 if test $libpng_config_minor_version -gt 2; then
6723 elif test $libpng_config_minor_version -eq 2; then
6724 if test $libpng_config_micro_version -ge 0; then
6734 if test -z "$libpng_ver_ok"; then
6736 if test -z "$LIBPNG_VERSION"; then
6737 echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6741 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6742 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6750 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6751 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6752 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6753 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6754 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6762 if test -n "$LIBPNG_VERSION"; then
6763 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6766 { echo "$as_me:$LINENO: WARNING:
6767 libpng >= 1.2.0 not found.
6768 amuleweb will be compiled but file download progress bar images will
6769 NOT be generated." >&5
6770 echo "$as_me: WARNING:
6771 libpng >= 1.2.0 not found.
6772 amuleweb will be compiled but file download progress bar images will
6773 NOT be generated." >&2;}
6775 _mule_has_warnings
=yes
6785 LIBPNG_VERSION
="not_needed"
6790 # Check for perl File::Copy
6791 echo "$as_me:$LINENO: checking for File::Copy" >&5
6792 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6793 if perl
-e "require File::Copy" 2>/dev
/null
; then
6794 echo "$as_me:$LINENO: result: ok" >&5
6795 echo "${ECHO_T}ok" >&6
6797 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6798 echo "$as_me: error: File::Copy perl module is required" >&2;}
6799 { (exit 1); exit 1; }; }
6804 # Check if we need the GUI
6805 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6806 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6807 if test x
$MONOLITHIC = xyes
; then
6811 if test x
$WXCAS = xyes
; then
6815 if test x
$ALC = xyes
; then
6819 if test x
$AMULE_GUI = xyes
; then
6823 if test x
${need_gui:+set} != xset
; then
6827 echo "$as_me:$LINENO: result: $need_gui" >&5
6828 echo "${ECHO_T}$need_gui" >&6
6830 # Check if we need to install skins
6831 if test x
$MONOLITHIC = xyes
; then
6835 if test x
$AMULE_GUI = xyes
; then
6839 if test x
${INSTALL_SKINS:+set} != xset
; then
6844 # Check for GeoIP (required for IP2Country capability)
6846 # Check whether --enable-geoip or --disable-geoip was given.
6847 if test "${enable_geoip+set}" = set; then
6848 enableval
="$enable_geoip"
6849 ENABLE_IP2COUNTRY
=$enableval
6851 ENABLE_IP2COUNTRY
=no
6854 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6857 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6858 if test "${with_geoip_headers+set}" = set; then
6859 withval
="$with_geoip_headers"
6860 GEOIP_CPPFLAGS
="-I$withval"
6863 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6864 if test "${with_geoip_lib+set}" = set; then
6865 withval
="$with_geoip_lib"
6866 GEOIP_LDFLAGS
="-L$withval"
6869 mule_backup_CPPFLAGS
="$CPPFLAGS"
6870 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6871 mule_backup_LDFLAGS
="$LDFLAGS"
6872 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6874 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6875 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6876 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6877 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6881 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6883 # Is the header compilable?
6884 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6885 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6895 rm -f conftest.
$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_header_compiler
=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_header_compiler
=no
6924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6926 echo "${ECHO_T}$ac_header_compiler" >&6
6928 # Is the header present?
6929 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6930 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6931 cat >conftest.
$ac_ext <<_ACEOF
6934 cat confdefs.h
>>conftest.
$ac_ext
6935 cat >>conftest.
$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1
>conftest.err
6944 cat conftest.err
>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev
/null
; then
6947 if test -s conftest.err
; then
6948 ac_cpp_err
=$ac_c_preproc_warn_flag
6949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6956 if test -z "$ac_cpp_err"; then
6957 ac_header_preproc
=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_header_preproc
=no
6964 rm -f conftest.err conftest.
$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc
=yes
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6992 ## ------------------------------ ##
6993 ## Report this to admin@amule.org ##
6994 ## ------------------------------ ##
6997 sed "s/^/$as_me: WARNING: /" >&2
7000 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7001 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7002 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_header_GeoIP_h
=$ac_header_preproc
7007 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7011 if test $ac_cv_header_GeoIP_h = yes; then
7013 if test x
$SYS = xwin32
; then
7015 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
7016 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
7017 # Actually, we might not need any if GeoIP is linked as a .dll
7018 # - but that's even harder to check for
7019 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 I do know it's not the best approach, but at least works with MinGW stock headers.
7030 (tested with w32api-3.12)
7042 rm -f conftest.
$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try
='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try
='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7065 GEOIP_WINSOCK_LIB
="-lwsock32"
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.
$ac_ext >&5
7072 GEOIP_WINSOCK_LIB
="-lws2_32"
7075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
7077 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
7081 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7082 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7083 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_check_lib_save_LIBS
=$LIBS
7087 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7110 rm -f conftest.
$ac_objext conftest
$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try
='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_GeoIP_GeoIP_open
=yes
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7137 ac_cv_lib_GeoIP_GeoIP_open
=no
7139 rm -f conftest.err conftest.
$ac_objext \
7140 conftest
$ac_exeext conftest.
$ac_ext
7141 LIBS
=$ac_check_lib_save_LIBS
7143 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7144 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7145 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7148 cat >>confdefs.h
<<\_ACEOF
7149 #define SUPPORT_GEOIP 1
7152 GEOIP_LIBS
="-lGeoIP"
7153 if test x
$SYS = xwin32
; then
7154 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7157 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7159 # Check whether --with-geoip-static or --without-geoip-static was given.
7160 if test "${with_geoip_static+set}" = set; then
7161 withval
="$with_geoip_static"
7163 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
7165 mule_backup_LIBS
="$LIBS"
7166 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7167 cat >conftest.
$ac_ext <<_ACEOF
7171 cat confdefs.h
>>conftest.
$ac_ext
7172 cat >>conftest.
$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7181 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7188 rm -f conftest.
$ac_objext conftest
$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try
='test -s conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7211 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.
$ac_ext >&5
7218 { echo "$as_me:$LINENO: WARNING:
7219 Cannot link GeoIP statically, because your linker ($LD) does not
7221 echo "$as_me: WARNING:
7222 Cannot link GeoIP statically, because your linker ($LD) does not
7225 _mule_has_warnings
=yes
7229 rm -f conftest.err conftest.
$ac_objext \
7230 conftest
$ac_exeext conftest.
$ac_ext
7231 LIBS
="$mule_backup_LIBS"
7240 ENABLE_IP2COUNTRY
=disabled
7241 { echo "$as_me:$LINENO: WARNING:
7242 GeoIP support has been disabled because the GeoIP libraries were not
7244 echo "$as_me: WARNING:
7245 GeoIP support has been disabled because the GeoIP libraries were not
7248 _mule_has_warnings
=yes
7256 ENABLE_IP2COUNTRY
=disabled
7257 { echo "$as_me:$LINENO: WARNING:
7258 GeoIP support has been disabled because the GeoIP header files were
7260 echo "$as_me: WARNING:
7261 GeoIP support has been disabled because the GeoIP header files were
7264 _mule_has_warnings
=yes
7271 CPPFLAGS
="$mule_backup_CPPFLAGS"
7272 LDFLAGS
="$mule_backup_LDFLAGS"
7281 # Check whether --with-wxdir or --without-wxdir was given.
7282 if test "${with_wxdir+set}" = set; then
7283 withval
="$with_wxdir"
7284 wx_config_name
="$withval/wx-config"
7285 wx_config_args
="--inplace"
7288 # Check whether --with-wx-config or --without-wx-config was given.
7289 if test "${with_wx_config+set}" = set; then
7290 withval
="$with_wx_config"
7291 wx_config_name
="$withval"
7294 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7295 if test "${with_wx_prefix+set}" = set; then
7296 withval
="$with_wx_prefix"
7297 wx_config_prefix
="$withval"
7302 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7303 if test "${with_wx_exec_prefix+set}" = set; then
7304 withval
="$with_wx_exec_prefix"
7305 wx_config_exec_prefix
="$withval"
7307 wx_config_exec_prefix
=""
7321 # Check whether --with-toolkit or --without-toolkit was given.
7322 if test "${with_toolkit+set}" = set; then
7323 withval
="$with_toolkit"
7329 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7330 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7331 if test "$withval" = "auto" ; then
7332 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7333 echo "${ECHO_T}will be automatically detected" >&6
7338 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7339 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7340 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7341 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7342 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7343 { { echo "$as_me:$LINENO: error:
7344 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7346 echo "$as_me: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7349 { (exit 1); exit 1; }; }
7352 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7353 echo "${ECHO_T}$TOOLKIT" >&6
7360 # Check whether --with-wxshared or --without-wxshared was given.
7361 if test "${with_wxshared+set}" = set; then
7362 withval
="$with_wxshared"
7368 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7369 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7370 if test "$withval" = "yes" ; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372 echo "${ECHO_T}yes" >&6
7375 elif test "1" = "1" -a "$withval" = "no" ; then
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7379 elif test "$withval" = "auto" ; then
7380 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7381 echo "${ECHO_T}will be automatically detected" >&6
7384 { { echo "$as_me:$LINENO: error:
7385 Unrecognized option value (allowed values: yes, auto)
7387 echo "$as_me: error:
7388 Unrecognized option value (allowed values: yes, auto)
7390 { (exit 1); exit 1; }; }
7397 # Check whether --with-wxdebug or --without-wxdebug was given.
7398 if test "${with_wxdebug+set}" = set; then
7399 withval
="$with_wxdebug"
7405 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7406 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7407 if test "$withval" = "yes" ; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7412 elif test "1" = "1" -a "$withval" = "no" ; then
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7416 elif test "$withval" = "auto" ; then
7417 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7418 echo "${ECHO_T}will be automatically detected" >&6
7421 { { echo "$as_me:$LINENO: error:
7422 Unrecognized option value (allowed values: yes, auto)
7424 echo "$as_me: error:
7425 Unrecognized option value (allowed values: yes, auto)
7427 { (exit 1); exit 1; }; }
7434 # Check whether --with-wxversion or --without-wxversion was given.
7435 if test "${with_wxversion+set}" = set; then
7436 withval
="$with_wxversion"
7442 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7443 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7444 if test "$withval" = "auto" ; then
7445 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7446 echo "${ECHO_T}will be automatically detected" >&6
7450 wx_requested_major_version
=`echo $withval | \
7451 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7452 wx_requested_minor_version
=`echo $withval | \
7453 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7455 if test "${#wx_requested_major_version}" != "1" -o \
7456 "${#wx_requested_minor_version}" != "1" ; then
7457 { { echo "$as_me:$LINENO: error:
7458 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7460 echo "$as_me: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7463 { (exit 1); exit 1; }; }
7466 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7467 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7468 echo "${ECHO_T}$WX_VERSION" >&6
7472 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7473 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7474 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7475 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7476 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7477 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7480 # Force using a static wxWidgets library if the executable is to be linked statically.
7481 if test ${enable_static:-no} = yes; then
7485 # Force using a unicode build of the library
7489 if test "$WX_SHARED" = "1" ; then
7490 WXCONFIG_FLAGS
="--static=no "
7491 elif test "$WX_SHARED" = "0" ; then
7492 WXCONFIG_FLAGS
="--static=yes "
7495 if test "$WX_DEBUG" = "1" ; then
7496 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7497 elif test "$WX_DEBUG" = "0" ; then
7498 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7501 if test "$WX_UNICODE" = "1" ; then
7502 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7503 elif test "$WX_UNICODE" = "0" ; then
7504 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7507 if test "$TOOLKIT" != "auto" ; then
7508 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7511 if test "$WX_VERSION" != "auto" ; then
7512 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7515 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7522 if test x
${WX_CONFIG_NAME+set} != xset
; then
7523 WX_CONFIG_NAME
=wx-config
7526 if test "x$wx_config_name" != x
; then
7527 WX_CONFIG_NAME
="$wx_config_name"
7530 if test x
$wx_config_exec_prefix != x
; then
7531 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7532 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7534 if test x
$wx_config_prefix != x
; then
7535 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7536 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7538 if test "$cross_compiling" = "yes"; then
7539 wx_config_args
="$wx_config_args --host=$host_alias"
7542 if test -x "$WX_CONFIG_NAME" ; then
7543 echo "$as_me:$LINENO: checking for wx-config" >&5
7544 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7545 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7546 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7547 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7549 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7550 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 case $WX_CONFIG_PATH in
7558 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7562 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7563 for as_dir
in $as_dummy
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7580 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7582 if test -n "$WX_CONFIG_PATH"; then
7583 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7584 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7592 if test "$WX_CONFIG_PATH" != "no" ; then
7595 min_wx_version
=2.8.0
7596 if test -z "$WXCONFIG_FLAGS" ; then
7597 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7598 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7604 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7606 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7607 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7609 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7611 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7614 wx_requested_major_version
=`echo $min_wx_version | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7616 wx_requested_minor_version
=`echo $min_wx_version | \
7617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7618 wx_requested_micro_version
=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7623 if test "x$WX_VERSION_FULL" != x
; then
7624 if test $wx_config_major_version -gt $wx_requested_major_version; then
7627 if test $wx_config_major_version -eq $wx_requested_major_version; then
7628 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7631 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7632 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7642 if test -n "$wx_ver_ok"; then
7644 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7645 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7646 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7648 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7649 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7650 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7651 if test "x$WX_LIBS_STATIC" = "x"; then
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7660 if test $wx_config_major_version -gt 2; then
7663 if test $wx_config_major_version -eq 2; then
7664 if test $wx_config_minor_version -gt 2; then
7667 if test $wx_config_minor_version -eq 2; then
7668 if test $wx_config_micro_version -ge 6; then
7677 if test $wx_config_major_version -gt 2; then
7680 if test $wx_config_major_version -eq 2; then
7681 if test $wx_config_minor_version -ge 7; then
7686 if test "x$wx_has_rescomp" = x
; then
7689 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7692 if test "x$wx_has_cppflags" = x
; then
7693 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7694 WX_CPPFLAGS
=$WX_CFLAGS
7695 WX_CXXFLAGS
=$WX_CFLAGS
7697 WX_CFLAGS_ONLY
=$WX_CFLAGS
7698 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7700 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7701 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7702 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7704 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7705 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7712 if test "x$WX_VERSION_FULL" = x
; then
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7716 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7717 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7727 if test ! -z "$WXCONFIG_FLAGS"; then
7730 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7731 build with the following settings:
7733 but such build is not available.
7735 To see the wxWidgets builds available on this system, please use
7736 'wx-config --list' command. To use the default build, returned by
7737 'wx-config --selected-config', use the options with their 'auto'
7743 The requested wxWidgets build couldn't be found.
7746 If you still get this error, then check that 'wx-config' is
7747 in path, the directory where wxWidgets libraries are installed
7748 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7749 or equivalent variable and wxWidgets version is 2.8.0 or above."
7751 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7752 echo "$as_me: error: $wx_error_message" >&2;}
7753 { (exit 1); exit 1; }; }
7779 WX_VERSION_MAJOR
="$wx_config_major_version"
7780 WX_VERSION_MINOR
="$wx_config_minor_version"
7784 if test "$wxWin" != 1; then
7785 { { echo "$as_me:$LINENO: error:
7786 wxWidgets must be installed on your system but wx-config
7787 script couldn't be found. Please check that wx-config is
7788 in path or specified by --with-wx-config=path flag, the
7789 directory where wxWidgets libraries are installed (returned
7790 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7791 equivalent variable and wxWidgets version is 2.8.0 or above.
7793 echo "$as_me: error:
7794 wxWidgets must be installed on your system but wx-config
7795 script couldn't be found. Please check that wx-config is
7796 in path or specified by --with-wx-config=path flag, the
7797 directory where wxWidgets libraries are installed (returned
7798 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7799 equivalent variable and wxWidgets version is 2.8.0 or above.
7801 { (exit 1); exit 1; }; }
7804 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7805 if test $WX_VERSION -lt 26 ; then
7807 { { echo "$as_me:$LINENO: error:
7808 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7809 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7810 version of wxWidgets.
7812 echo "$as_me: error:
7813 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7814 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7815 version of wxWidgets.
7817 { (exit 1); exit 1; }; }
7820 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7822 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7823 echo "[dbg] Using wx-config --selected-config"
7824 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7828 if test $WX_SHARED = "1"; then
7830 elif test $WX_SHARED = "0"; then
7832 elif test $WX_SHARED = "auto"; then
7837 if test "$UNICODE" = "auto" ; then
7839 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7840 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7842 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7844 if test "$WX_UNICODE" != "0"; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7861 if test "$DEBUG" = "auto" ; then
7863 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7864 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7866 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7868 if test "$WX_DEBUG" != "0"; then
7870 echo "$as_me:$LINENO: result: yes" >&5
7871 echo "${ECHO_T}yes" >&6
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7885 if test "$STATIC" = "auto" ; then
7887 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7888 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7890 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7892 if test "$WX_STATIC" != "0"; then
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7909 if test "$WX_STATIC" != "0"; then
7919 if test "$TOOLKIT" = "auto" ; then
7921 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7922 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7924 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7925 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7926 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7927 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7928 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7929 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7930 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7931 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7932 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7933 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7936 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7937 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7938 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7939 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7940 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7941 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7942 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7943 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7944 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7945 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7948 if test "$WX_PORT" = "unknown" ; then
7949 { { echo "$as_me:$LINENO: error:
7950 Cannot detect the currently installed wxWidgets port !
7951 Please check your 'wx-config --cxxflags'...
7953 echo "$as_me: error:
7954 Cannot detect the currently installed wxWidgets port !
7955 Please check your 'wx-config --cxxflags'...
7957 { (exit 1); exit 1; }; }
7960 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7961 echo "${ECHO_T}$WX_PORT" >&6
7964 if test -z "$TOOLKIT" ; then
7973 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7974 echo "[dbg] Values of all WX_* options after final detection:"
7975 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7976 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7977 echo "[dbg] WX_SHARED: $WX_SHARED"
7978 echo "[dbg] WX_VERSION: $WX_VERSION"
7979 echo "[dbg] WX_PORT: $WX_PORT"
7982 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7983 { { echo "$as_me:$LINENO: error:
7984 Cannot build shared library against a static build of wxWidgets !
7985 This error happens because the wxWidgets build which was selected
7986 has been detected as static while you asked to build $PACKAGE_NAME
7987 as shared library and this is not possible.
7988 Use the '--disable-shared' option to build $PACKAGE_NAME
7989 as static library or '--with-wxshared' to use wxWidgets as shared library.
7991 echo "$as_me: error:
7992 Cannot build shared library against a static build of wxWidgets !
7993 This error happens because the wxWidgets build which was selected
7994 has been detected as static while you asked to build $PACKAGE_NAME
7995 as shared library and this is not possible.
7996 Use the '--disable-shared' option to build $PACKAGE_NAME
7997 as static library or '--with-wxshared' to use wxWidgets as shared library.
7999 { (exit 1); exit 1; }; }
8002 if test "$DEBUG" = "auto"; then
8005 if test "$DEBUG" = "1"; then
8007 elif test "$DEBUG" = ""; then
8011 if test "$UNICODE" = "auto"; then
8014 if test "$SHARED" = "auto"; then
8017 if test "$TOOLKIT" = "auto"; then
8023 # We also need wxBase
8024 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8025 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
8026 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
8030 if test ${SYS:-unknown} = win32
; then
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8034 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8035 echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_prog_RC+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 if test -n "$RC"; then
8041 ac_cv_prog_RC
="$RC" # Let the user override the test.
8043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir
=.
8048 for ac_exec_ext
in '' $ac_executable_extensions; do
8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 if test -n "$RC"; then
8061 echo "$as_me:$LINENO: result: $RC" >&5
8062 echo "${ECHO_T}$RC" >&6
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8069 if test -z "$ac_cv_prog_RC"; then
8071 # Extract the first word of "windres", so it can be a program name with args.
8072 set dummy windres
; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 if test -n "$ac_ct_RC"; then
8079 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir
=.
8086 for ac_exec_ext
in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_RC
="windres"
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8098 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8099 if test -n "$ac_ct_RC"; then
8100 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8101 echo "${ECHO_T}$ac_ct_RC" >&6
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8112 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8119 if test "${ENABLE_UPNP:-yes}" = yes; then
8123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8126 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir
=.
8142 for ac_exec_ext
in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8156 if test -n "$PKG_CONFIG"; then
8157 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8158 echo "${ECHO_T}$PKG_CONFIG" >&6
8160 echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8165 if test -z "$ac_cv_path_PKG_CONFIG"; then
8166 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8167 # Extract the first word of "pkg-config", so it can be a program name with args.
8168 set dummy pkg-config
; ac_word
=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 case $ac_pt_PKG_CONFIG in
8176 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir
=.
8184 for ac_exec_ext
in '' $ac_executable_extensions; do
8185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8198 if test -n "$ac_pt_PKG_CONFIG"; then
8199 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8200 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8208 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8212 if test -n "$PKG_CONFIG"; then
8213 _pkg_min_version
=0.9.0
8214 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8215 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8228 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8229 if test "${with_libupnp_prefix+set}" = set; then
8230 withval
="$with_libupnp_prefix"
8231 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8234 if test $cross_compiling = no
; then
8235 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8236 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8237 if test -n "$PKG_CONFIG"; then
8238 if $PKG_CONFIG libupnp
--exists; then
8239 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8240 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8242 resultstr
=" (version $LIBUPNP_VERSION)"
8243 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8244 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8245 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8246 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8247 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8251 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8257 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8263 resultstr
=" (pkg-config not found)"
8266 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8267 echo "${ECHO_T}$result$resultstr" >&6
8268 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8272 libupnp_error
="cross compiling"
8276 if test ${result:-no} = yes; then
8277 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8279 ENABLE_UPNP
=disabled
8280 { echo "$as_me:$LINENO: WARNING:
8281 UPnP code has been disabled because ${libupnp_error}." >&5
8282 echo "$as_me: WARNING:
8283 UPnP code has been disabled because ${libupnp_error}." >&2;}
8285 _mule_has_warnings
=yes
8296 # Check for Crypto++
8299 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8300 if test "${with_crypto_prefix+set}" = set; then
8301 withval
="$with_crypto_prefix"
8305 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8306 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8308 cryptopp_file_with_version
="cryptlib.h"
8310 CRYPTOPP_STYLE
="unknown"
8311 CRYPTOPP_LIB_NAME
="unknown"
8312 cryptopp_includedir
="unknown"
8313 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8314 cryptopp_libdir
="unknown"
8316 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8317 if test -z "$CRYPTOPP_PREFIX"; then
8322 # Find the Cryptopp header
8323 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8325 CRYPTOPP_STYLE
="sources"
8326 CRYPTOPP_LIB_NAME
="cryptopp"
8327 cryptopp_includedir
=
8328 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8332 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8334 CRYPTOPP_STYLE
="installed"
8335 CRYPTOPP_LIB_NAME
="cryptopp"
8336 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8337 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8338 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8341 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8343 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8344 CRYPTOPP_STYLE
="gentoo_debian"
8345 CRYPTOPP_LIB_NAME
="crypto++"
8346 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8347 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8348 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8355 if test $CRYPTOPP_STYLE = "unknown"; then
8356 result
=no
; resultstr
=""
8359 # Find out the crypto++ version and check against the minimum required
8360 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8361 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8362 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8363 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8365 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8368 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8369 if test -n "$cryptopp_includedir"; then
8370 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8375 if test -n "$cryptopp_libdir"; then
8377 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8378 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8383 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8389 cat >>confdefs.h
<<_ACEOF
8390 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8397 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8405 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8406 echo "${ECHO_T}$result$resultstr" >&6
8408 if test ${result:-no} = yes; then
8410 # Check for CryptoPP >= 5.5
8411 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8412 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8418 { { echo "$as_me:$LINENO: error:
8419 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8420 Please try again with --with-crypto-prefix=/my_crypto_prefix
8421 (replace /my_crypto_prefix with a valid path to your crypto++
8422 installation directory)." >&5
8423 echo "$as_me: error:
8424 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8425 Please try again with --with-crypto-prefix=/my_crypto_prefix
8426 (replace /my_crypto_prefix with a valid path to your crypto++
8427 installation directory)." >&2;}
8428 { (exit 1); exit 1; }; }
8436 ac_cpp
='$CXXCPP $CPPFLAGS'
8437 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8444 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8445 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8446 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8456 #error Non-GNU C++ library found.
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev
/null
; then
8469 if test -s conftest.err
; then
8470 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8471 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8478 if test -z "$ac_cpp_err"; then
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8486 rm -f conftest.err conftest.
$ac_ext
8487 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8488 echo "${ECHO_T}$GLIBCXX" >&6
8491 mule_backup_CPPFLAGS
="$CPPFLAGS"
8492 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8494 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8495 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8500 cat confdefs.h
>>conftest.
$ac_ext
8501 cat >>conftest.
$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8505 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !wxCHECK_VERSION(2, 9, 0) && !defined(__WXMSW__)
8506 #error No LargeFile support!
8511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8512 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8514 grep -v '^ *+' conftest.er1
>conftest.err
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev
/null
; then
8519 if test -s conftest.err
; then
8520 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8521 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8528 if test -z "$ac_cpp_err"; then
8530 echo "$as_me:$LINENO: result: yes" >&5
8531 echo "${ECHO_T}yes" >&6
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8540 { { echo "$as_me:$LINENO: error:
8541 Support for large files in wxWidgets is required by aMule.
8542 To continue you must recompile wxWidgets with support for
8543 large files enabled." >&5
8544 echo "$as_me: error:
8545 Support for large files in wxWidgets is required by aMule.
8546 To continue you must recompile wxWidgets with support for
8547 large files enabled." >&2;}
8548 { (exit 1); exit 1; }; }
8551 rm -f conftest.err conftest.
$ac_ext
8553 CPPFLAGS
="$mule_backup_CPPFLAGS"
8556 # Check if the compiler is broken, wrt. exceptions.
8558 echo "$as_me:$LINENO: checking for exception-handling" >&5
8559 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8560 if test "$cross_compiling" = yes; then
8562 echo "$as_me:$LINENO: result: undeterminable" >&5
8563 echo "${ECHO_T}undeterminable" >&6
8564 { echo "$as_me:$LINENO: WARNING:
8565 Cross-compilation detected, so exception handling cannot be tested.
8566 Note that broken exception handling in your compiler may lead to
8567 unexpected crashes." >&5
8568 echo "$as_me: WARNING:
8569 Cross-compilation detected, so exception handling cannot be tested.
8570 Note that broken exception handling in your compiler may lead to
8571 unexpected crashes." >&2;}
8573 _mule_has_warnings
=yes
8577 cat >conftest.
$ac_ext <<_ACEOF
8581 cat confdefs.h
>>conftest.
$ac_ext
8582 cat >>conftest.
$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8601 rm -f conftest
$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6
8617 echo "$as_me: program exited with status $ac_status" >&5
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.
$ac_ext >&5
8623 echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8625 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8626 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8627 { (exit 1); exit 1; }; }
8630 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8635 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8636 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8637 cat >conftest.
$ac_ext <<_ACEOF
8641 cat confdefs.h
>>conftest.
$ac_ext
8642 cat >>conftest.
$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8652 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8653 std::type_info *ti = abi::__cxa_current_exception_type();
8660 rm -f conftest.
$ac_objext conftest
$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>conftest.er1
8664 grep -v '^ *+' conftest.er1
>conftest.err
8666 cat conftest.err
>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try
='test -z "$ac_cxx_werror_flag"
8670 || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try
='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8685 cat >>confdefs.h
<<\_ACEOF
8686 #define HAVE_CXXABI 1
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.
$ac_ext >&5
8697 echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8701 rm -f conftest.err conftest.
$ac_objext \
8702 conftest
$ac_exeext conftest.
$ac_ext
8705 ac_cpp
='$CPP $CPPFLAGS'
8706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8711 # Ok, we have all needed libs, now checking for other stuff
8712 if test "$LEX" = "flex"; then
8714 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8715 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8717 extended_flex
=`flex --help | grep header-file`
8718 if test -n "$extended_flex"; then
8719 HAVE_FLEX_EXTENDED
=yes
8721 HAVE_FLEX_EXTENDED
=no
8724 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8725 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8727 if test $HAVE_FLEX_EXTENDED = no
; then
8728 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8729 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8734 HAVE_FLEX_EXTENDED
=no
8738 # Flush standard test results for speeding cache
8739 cat >confcache
<<\_ACEOF
8740 # This file is a shell script that caches the results of configure
8741 # tests run on this system so they can be shared between configure
8742 # scripts and configure runs, see configure's option --config-cache.
8743 # It is not useful on other systems. If it contains results you don't
8744 # want to keep, you may remove or edit it.
8746 # config.status only pays attention to the cache file if you give it
8747 # the --recheck option to rerun configure.
8749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8755 # The following way of writing the cache mishandles newlines in values,
8756 # but we know of no workaround that is simple, portable, and efficient.
8757 # So, don't put newlines in cache variables' values.
8758 # Ultrix sh set writes to stderr and can't be redirected directly,
8759 # and sets the high bit in the cache file unless we assign to the vars.
8762 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8764 # `set' does not quote correctly, so add quotes (double-quote
8765 # substitution turns \\\\ into \\, and sed turns \\ into \).
8768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8771 # `set' quotes correctly as required by POSIX, so do not add quotes.
8773 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8780 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8782 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8784 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8785 if test -w $cache_file; then
8786 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8787 cat confcache
>$cache_file
8789 echo "not updating unwritable cache $cache_file"
8794 # Checks for header files.
8795 echo "$as_me:$LINENO: checking for X" >&5
8796 echo $ECHO_N "checking for X... $ECHO_C" >&6
8799 # Check whether --with-x or --without-x was given.
8800 if test "${with_x+set}" = set; then
8804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8805 if test "x$with_x" = xno
; then
8806 # The user explicitly disabled X.
8809 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8810 # Both variables are already set.
8813 if test "${ac_cv_have_x+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 # One or both of the vars are not set, and there is no cached value.
8817 ac_x_includes
=no ac_x_libraries
=no
8819 if mkdir conftest.dir
; then
8821 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8822 cat >Imakefile
<<'_ACEOF'
8824 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8826 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8828 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8830 for ac_extension
in a so sl
; do
8831 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8832 test -f $ac_im_libdir/libX11.
$ac_extension; then
8833 ac_im_usrlibdir
=$ac_im_libdir; break
8836 # Screen out bogus values from the imake configuration. They are
8837 # bogus both because they are the default anyway, and because
8838 # using them would break gcc on systems where it needs fixed includes.
8839 case $ac_im_incroot in
8841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8843 case $ac_im_usrlibdir in
8845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8852 # Standard set of common directories for X headers.
8853 # Check X11 before X11Rn because it is often a symlink to the current release.
8865 /usr/local/X11/include
8866 /usr/local/X11R6/include
8867 /usr/local/X11R5/include
8868 /usr/local/X11R4/include
8870 /usr/local/include/X11
8871 /usr/local/include/X11R6
8872 /usr/local/include/X11R5
8873 /usr/local/include/X11R4
8877 /usr/XFree86/include/X11
8881 /usr/unsupported/include
8883 /usr/local/x11r5/include
8884 /usr/lpp/Xamples/include
8886 /usr/openwin/include
8887 /usr/openwin/share/include'
8889 if test "$ac_x_includes" = no
; then
8890 # Guess where to find include files, by looking for Intrinsic.h.
8891 # First, try using that file with no special directory specified.
8892 cat >conftest.
$ac_ext <<_ACEOF
8895 cat confdefs.h
>>conftest.
$ac_ext
8896 cat >>conftest.
$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <X11/Intrinsic.h>
8900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8903 grep -v '^ *+' conftest.er1
>conftest.err
8905 cat conftest.err
>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } >/dev
/null
; then
8908 if test -s conftest.err
; then
8909 ac_cpp_err
=$ac_c_preproc_warn_flag
8910 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8917 if test -z "$ac_cpp_err"; then
8918 # We can compile using X headers with no special include directory.
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.
$ac_ext >&5
8924 for ac_dir
in $ac_x_header_dirs; do
8925 if test -r "$ac_dir/X11/Intrinsic.h"; then
8926 ac_x_includes
=$ac_dir
8931 rm -f conftest.err conftest.
$ac_ext
8932 fi # $ac_x_includes = no
8934 if test "$ac_x_libraries" = no
; then
8935 # Check for the libraries.
8936 # See if we find them without any special options.
8937 # Don't add to $LIBS permanently.
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 #include <X11/Intrinsic.h>
8955 rm -f conftest.
$ac_objext conftest
$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1
>conftest.err
8961 cat conftest.err
>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try
='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try
='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8978 # We can link X programs with no special library path.
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.
$ac_ext >&5
8985 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8987 # Don't even attempt the hair of trying to link an X program!
8988 for ac_extension
in a so sl
; do
8989 if test -r $ac_dir/libXt.
$ac_extension; then
8990 ac_x_libraries
=$ac_dir
8996 rm -f conftest.err conftest.
$ac_objext \
8997 conftest
$ac_exeext conftest.
$ac_ext
8998 fi # $ac_x_libraries = no
9000 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9001 # Didn't find X anywhere. Cache the known absence of X.
9002 ac_cv_have_x
="have_x=no"
9004 # Record where we found X for the cache.
9005 ac_cv_have_x
="have_x=yes \
9006 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9011 eval "$ac_cv_have_x"
9014 if test "$have_x" != yes; then
9015 echo "$as_me:$LINENO: result: $have_x" >&5
9016 echo "${ECHO_T}$have_x" >&6
9019 # If each of the values was on the command line, it overrides each guess.
9020 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9021 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9022 # Update the cache value to reflect the command line values.
9023 ac_cv_have_x
="have_x=yes \
9024 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9025 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9026 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9030 # for constant arguments. Useless!
9031 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9033 if test "${ac_cv_working_alloca_h+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 cat >conftest.
$ac_ext <<_ACEOF
9039 cat confdefs.h
>>conftest.
$ac_ext
9040 cat >>conftest.
$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9046 char *p = (char *) alloca (2 * sizeof (int));
9051 rm -f conftest.
$ac_objext conftest
$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9055 grep -v '^ *+' conftest.er1
>conftest.err
9057 cat conftest.err
>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try
='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try
='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_working_alloca_h
=yes
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.
$ac_ext >&5
9078 ac_cv_working_alloca_h
=no
9080 rm -f conftest.err conftest.
$ac_objext \
9081 conftest
$ac_exeext conftest.
$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9084 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9085 if test $ac_cv_working_alloca_h = yes; then
9087 cat >>confdefs.h
<<\_ACEOF
9088 #define HAVE_ALLOCA_H 1
9093 echo "$as_me:$LINENO: checking for alloca" >&5
9094 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9095 if test "${ac_cv_func_alloca_works+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9105 # define alloca __builtin_alloca
9108 # include <malloc.h>
9109 # define alloca _alloca
9112 # include <alloca.h>
9117 # ifndef alloca /* predefined by HP cc +Olibcalls */
9128 char *p = (char *) alloca (1);
9133 rm -f conftest.
$ac_objext conftest
$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1
>conftest.err
9139 cat conftest.err
>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try
='test -z "$ac_c_werror_flag"
9143 || test ! -s conftest.err'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; } &&
9149 { ac_try
='test -s conftest$ac_exeext'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; }; then
9155 ac_cv_func_alloca_works
=yes
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.
$ac_ext >&5
9160 ac_cv_func_alloca_works
=no
9162 rm -f conftest.err conftest.
$ac_objext \
9163 conftest
$ac_exeext conftest.
$ac_ext
9165 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9166 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9168 if test $ac_cv_func_alloca_works = yes; then
9170 cat >>confdefs.h
<<\_ACEOF
9171 #define HAVE_ALLOCA 1
9175 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9176 # that cause trouble. Some versions do not even contain alloca or
9177 # contain a buggy version. If you still want to use their alloca,
9178 # use ar to extract alloca.o from them instead of compiling alloca.c.
9180 ALLOCA
=alloca.
$ac_objext
9182 cat >>confdefs.h
<<\_ACEOF
9187 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9188 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9189 if test "${ac_cv_os_cray+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #if defined(CRAY) && ! defined(CRAY2)
9205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9206 $EGREP "webecray" >/dev
/null
2>&1; then
9214 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9215 echo "${ECHO_T}$ac_cv_os_cray" >&6
9216 if test $ac_cv_os_cray = yes; then
9217 for ac_func
in _getb67 GETB67 getb67
; do
9218 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9219 echo "$as_me:$LINENO: checking for $ac_func" >&5
9220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9221 if eval "test \"\${$as_ac_var+set}\" = set"; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.
$ac_ext <<_ACEOF
9227 cat confdefs.h
>>conftest.
$ac_ext
9228 cat >>conftest.
$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9232 #define $ac_func innocuous_$ac_func
9234 /* System header to define __stub macros and hopefully few prototypes,
9235 which can conflict with char $ac_func (); below.
9236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9237 <limits.h> exists even on freestanding compilers. */
9240 # include <limits.h>
9242 # include <assert.h>
9247 /* Override any gcc2 internal prototype to avoid an error. */
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9255 /* The GNU C library defines this for functions which it implements
9256 to always fail with ENOSYS. Some functions are actually named
9257 something starting with __ and the normal name is an alias. */
9258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261 char (*f) () = $ac_func;
9270 return f != $ac_func;
9275 rm -f conftest.
$ac_objext conftest
$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1
>conftest.err
9281 cat conftest.err
>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try
='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try
='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 eval "$as_ac_var=yes"
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.
$ac_ext >&5
9302 eval "$as_ac_var=no"
9304 rm -f conftest.err conftest.
$ac_objext \
9305 conftest
$ac_exeext conftest.
$ac_ext
9307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9309 if test `eval echo '${'$as_ac_var'}'` = yes; then
9311 cat >>confdefs.h
<<_ACEOF
9312 #define CRAY_STACKSEG_END $ac_func
9321 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9322 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9323 if test "${ac_cv_c_stack_direction+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 if test "$cross_compiling" = yes; then
9327 ac_cv_c_stack_direction
=0
9329 cat >conftest.
$ac_ext <<_ACEOF
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9336 find_stack_direction ()
9338 static char *addr = 0;
9343 return find_stack_direction ();
9346 return (&dummy > addr) ? 1 : -1;
9352 exit (find_stack_direction () < 0);
9355 rm -f conftest
$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_c_stack_direction
=1
9368 echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.
$ac_ext >&5
9373 ac_cv_c_stack_direction
=-1
9375 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9379 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9381 cat >>confdefs.h
<<_ACEOF
9382 #define STACK_DIRECTION $ac_cv_c_stack_direction
9394 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9395 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9397 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9419 rm -f conftest.
$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1
>conftest.err
9425 cat conftest.err
>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try
='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try
='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 eval "$as_ac_Header=yes"
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.
$ac_ext >&5
9446 eval "$as_ac_Header=no"
9448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9453 cat >>confdefs.h
<<_ACEOF
9454 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9457 ac_header_dirent
=$ac_hdr; break
9461 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9462 if test $ac_header_dirent = dirent.h
; then
9463 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9465 if test "${ac_cv_search_opendir+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 ac_func_search_save_LIBS
=$LIBS
9469 ac_cv_search_opendir
=no
9470 cat >conftest.
$ac_ext <<_ACEOF
9473 cat confdefs.h
>>conftest.
$ac_ext
9474 cat >>conftest.
$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9477 /* Override any gcc2 internal prototype to avoid an error. */
9481 /* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9492 rm -f conftest.
$ac_objext conftest
$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try
='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try
='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_search_opendir
="none required"
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9520 rm -f conftest.err conftest.
$ac_objext \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 if test "$ac_cv_search_opendir" = no
; then
9523 for ac_lib
in dir
; do
9524 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9532 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9547 rm -f conftest.
$ac_objext conftest
$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 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_exeext'
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_search_opendir
="-l$ac_lib"
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.
$ac_ext >&5
9576 rm -f conftest.err conftest.
$ac_objext \
9577 conftest
$ac_exeext conftest.
$ac_ext
9580 LIBS
=$ac_func_search_save_LIBS
9582 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9583 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9584 if test "$ac_cv_search_opendir" != no
; then
9585 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9590 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9591 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9592 if test "${ac_cv_search_opendir+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_func_search_save_LIBS
=$LIBS
9596 ac_cv_search_opendir
=no
9597 cat >conftest.
$ac_ext <<_ACEOF
9600 cat confdefs.h
>>conftest.
$ac_ext
9601 cat >>conftest.
$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9619 rm -f conftest.
$ac_objext conftest
$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>conftest.er1
9623 grep -v '^ *+' conftest.er1
>conftest.err
9625 cat conftest.err
>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try
='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try
='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_search_opendir
="none required"
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.
$ac_ext >&5
9647 rm -f conftest.err conftest.
$ac_objext \
9648 conftest
$ac_exeext conftest.
$ac_ext
9649 if test "$ac_cv_search_opendir" = no
; then
9651 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9652 cat >conftest.
$ac_ext <<_ACEOF
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9659 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9674 rm -f conftest.
$ac_objext conftest
$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9678 grep -v '^ *+' conftest.er1
>conftest.err
9680 cat conftest.err
>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try
='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try
='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_search_opendir
="-l$ac_lib"
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.
$ac_ext >&5
9703 rm -f conftest.err conftest.
$ac_objext \
9704 conftest
$ac_exeext conftest.
$ac_ext
9707 LIBS
=$ac_func_search_save_LIBS
9709 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9710 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9711 if test "$ac_cv_search_opendir" != no
; then
9712 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9718 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9720 if test "${ac_cv_header_stdc+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.
$ac_ext <<_ACEOF
9726 cat confdefs.h
>>conftest.
$ac_ext
9727 cat >>conftest.
$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9742 rm -f conftest.
$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>conftest.er1
9746 grep -v '^ *+' conftest.er1
>conftest.err
9748 cat conftest.err
>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try
='test -z "$ac_c_werror_flag"
9752 || test ! -s conftest.err'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try
='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_header_stdc
=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.
$ac_ext >&5
9769 ac_cv_header_stdc
=no
9771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9773 if test $ac_cv_header_stdc = yes; then
9774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9775 cat >conftest.
$ac_ext <<_ACEOF
9778 cat confdefs.h
>>conftest.
$ac_ext
9779 cat >>conftest.
$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9785 $EGREP "memchr" >/dev
/null
2>&1; then
9788 ac_cv_header_stdc
=no
9794 if test $ac_cv_header_stdc = yes; then
9795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9796 cat >conftest.
$ac_ext <<_ACEOF
9799 cat confdefs.h
>>conftest.
$ac_ext
9800 cat >>conftest.
$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806 $EGREP "free" >/dev
/null
2>&1; then
9809 ac_cv_header_stdc
=no
9815 if test $ac_cv_header_stdc = yes; then
9816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9817 if test "$cross_compiling" = yes; then
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 #if ((' ' & 0x0FF) == 0x020)
9828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9831 # define ISLOWER(c) \
9832 (('a' <= (c) && (c) <= 'i') \
9833 || ('j' <= (c) && (c) <= 'r') \
9834 || ('s' <= (c) && (c) <= 'z'))
9835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9843 for (i = 0; i < 256; i++)
9844 if (XOR (islower (i), ISLOWER (i))
9845 || toupper (i) != TOUPPER (i))
9850 rm -f conftest
$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9863 echo "$as_me: program exited with status $ac_status" >&5
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.
$ac_ext >&5
9868 ac_cv_header_stdc
=no
9870 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9875 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9876 if test $ac_cv_header_stdc = yes; then
9878 cat >>confdefs.h
<<\_ACEOF
9879 #define STDC_HEADERS 1
9918 for ac_header
in argz.h arpa
/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h errno.h signal.h
9920 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930 # Is the header compilable?
9931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9940 #include <$ac_header>
9942 rm -f conftest.
$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try
='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try
='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_header_compiler
=yes
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.
$ac_ext >&5
9969 ac_header_compiler
=no
9971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9973 echo "${ECHO_T}$ac_header_compiler" >&6
9975 # Is the header present?
9976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <$ac_header>
9986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1
>conftest.err
9991 cat conftest.err
>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } >/dev
/null
; then
9994 if test -s conftest.err
; then
9995 ac_cpp_err
=$ac_c_preproc_warn_flag
9996 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10003 if test -z "$ac_cpp_err"; then
10004 ac_header_preproc
=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.
$ac_ext >&5
10009 ac_header_preproc
=no
10011 rm -f conftest.err conftest.
$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10013 echo "${ECHO_T}$ac_header_preproc" >&6
10015 # So? What about this header?
10016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10022 ac_header_preproc
=yes
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039 ## ------------------------------ ##
10040 ## Report this to admin@amule.org ##
10041 ## ------------------------------ ##
10044 sed "s/^/$as_me: WARNING: /" >&2
10047 echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10059 cat >>confdefs.h
<<_ACEOF
10060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10068 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10069 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.
$ac_ext <<_ACEOF
10075 cat confdefs.h
>>conftest.
$ac_ext
10076 cat >>conftest.
$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 #include <sys/types.h>
10079 #include <sys/wait.h>
10080 #ifndef WEXITSTATUS
10081 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10097 rm -f conftest.
$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>conftest.er1
10101 grep -v '^ *+' conftest.er1
>conftest.err
10103 cat conftest.err
>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try
='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try
='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_header_sys_wait_h
=yes
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.
$ac_ext >&5
10124 ac_cv_header_sys_wait_h
=no
10126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10130 if test $ac_cv_header_sys_wait_h = yes; then
10132 cat >>confdefs.h
<<\_ACEOF
10133 #define HAVE_SYS_WAIT_H 1
10139 # Checks for typedefs, structures, and compiler characteristics.
10140 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10141 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10142 if test "${ac_cv_header_stdbool_h+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 #include <stdbool.h>
10154 # error bool is not defined
10157 # error false is not defined
10160 # error false is not 0
10163 # error true is not defined
10166 # error true is not 1
10168 #ifndef __bool_true_false_are_defined
10169 # error __bool_true_false_are_defined is not defined
10172 struct s { _Bool s: 1; _Bool t; } s;
10174 char a[true == 1 ? 1 : -1];
10175 char b[false == 0 ? 1 : -1];
10176 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10177 char d[(bool) -0.5 == true ? 1 : -1];
10179 char f[(_Bool) -0.0 == false ? 1 : -1];
10181 char h[sizeof (_Bool)];
10182 char i[sizeof s.t];
10187 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10192 rm -f conftest.
$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1
>conftest.err
10198 cat conftest.err
>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try
='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try
='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_header_stdbool_h
=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.
$ac_ext >&5
10219 ac_cv_header_stdbool_h
=no
10221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10224 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10225 echo "$as_me:$LINENO: checking for _Bool" >&5
10226 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10227 if test "${ac_cv_type__Bool+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.
$ac_ext <<_ACEOF
10233 cat confdefs.h
>>conftest.
$ac_ext
10234 cat >>conftest.
$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10242 if (sizeof (_Bool))
10248 rm -f conftest.
$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1
>conftest.err
10254 cat conftest.err
>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try
='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try
='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_type__Bool
=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.
$ac_ext >&5
10275 ac_cv_type__Bool
=no
10277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10280 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10281 if test $ac_cv_type__Bool = yes; then
10283 cat >>confdefs.h
<<_ACEOF
10284 #define HAVE__BOOL 1
10290 if test $ac_cv_header_stdbool_h = yes; then
10292 cat >>confdefs.h
<<\_ACEOF
10293 #define HAVE_STDBOOL_H 1
10298 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10299 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10300 if test "${ac_cv_c_const+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 cat >conftest.
$ac_ext <<_ACEOF
10306 cat confdefs.h
>>conftest.
$ac_ext
10307 cat >>conftest.
$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10313 /* FIXME: Include the comments suggested by Paul. */
10314 #ifndef __cplusplus
10315 /* Ultrix mips cc rejects this. */
10316 typedef int charset[2];
10318 /* SunOS 4.1.1 cc rejects this. */
10319 char const *const *ccp;
10321 /* NEC SVR4.0.2 mips cc rejects this. */
10322 struct point {int x, y;};
10323 static struct point const zero = {0,0};
10324 /* AIX XL C 1.02.0.0 rejects this.
10325 It does not let you subtract one const X* pointer from another in
10326 an arm of an if-expression whose if-part is not a constant
10328 const char *g = "string";
10329 ccp = &g + (g ? g-g : 0);
10330 /* HPUX 7.0 cc rejects these. */
10333 ccp = (char const *const *) p;
10334 { /* SCO 3.2v4 cc rejects this. */
10336 char const *s = 0 ? (char *) 0 : (char const *) 0;
10340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10341 int x[] = {25, 17};
10342 const int *foo = &x[0];
10345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10346 typedef const int *iptr;
10350 { /* AIX XL C 1.02.0.0 rejects this saying
10351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10352 struct s { int j; const int *ap[3]; };
10353 struct s *b; b->j = 5;
10355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10356 const int foo = 10;
10364 rm -f conftest.
$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>conftest.er1
10368 grep -v '^ *+' conftest.er1
>conftest.err
10370 cat conftest.err
>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try
='test -z "$ac_c_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try
='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.
$ac_ext >&5
10393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10396 echo "${ECHO_T}$ac_cv_c_const" >&6
10397 if test $ac_cv_c_const = no
; then
10399 cat >>confdefs.h
<<\_ACEOF
10405 echo "$as_me:$LINENO: checking for inline" >&5
10406 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10407 if test "${ac_cv_c_inline+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 for ac_kw
in inline __inline__ __inline
; do
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #ifndef __cplusplus
10420 static $ac_kw foo_t static_foo () {return 0; }
10421 $ac_kw foo_t foo () {return 0; }
10425 rm -f conftest.
$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10429 grep -v '^ *+' conftest.er1
>conftest.err
10431 cat conftest.err
>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try
='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try
='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_c_inline
=$ac_kw; break
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.
$ac_ext >&5
10453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10457 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10458 echo "${ECHO_T}$ac_cv_c_inline" >&6
10461 case $ac_cv_c_inline in
10464 case $ac_cv_c_inline in
10466 *) ac_val
=$ac_cv_c_inline;;
10468 cat >>confdefs.h
<<_ACEOF
10469 #ifndef __cplusplus
10470 #define inline $ac_val
10476 echo "$as_me:$LINENO: checking for mode_t" >&5
10477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10478 if test "${ac_cv_type_mode_t+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.
$ac_ext <<_ACEOF
10484 cat confdefs.h
>>conftest.
$ac_ext
10485 cat >>conftest.
$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10493 if (sizeof (mode_t))
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_type_mode_t
=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 ac_cv_type_mode_t
=no
10528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10531 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10532 if test $ac_cv_type_mode_t = yes; then
10536 cat >>confdefs.h
<<_ACEOF
10542 echo "$as_me:$LINENO: checking for off_t" >&5
10543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10544 if test "${ac_cv_type_off_t+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 cat >conftest.
$ac_ext <<_ACEOF
10550 cat confdefs.h
>>conftest.
$ac_ext
10551 cat >>conftest.
$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10559 if (sizeof (off_t))
10565 rm -f conftest.
$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1
>conftest.err
10571 cat conftest.err
>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try
='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try
='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_type_off_t
=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.
$ac_ext >&5
10592 ac_cv_type_off_t
=no
10594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10597 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10598 if test $ac_cv_type_off_t = yes; then
10602 cat >>confdefs.h
<<_ACEOF
10608 echo "$as_me:$LINENO: checking for size_t" >&5
10609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10610 if test "${ac_cv_type_size_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.
$ac_ext <<_ACEOF
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 $ac_includes_default
10625 if (sizeof (size_t))
10631 rm -f conftest.
$ac_objext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633 (eval $ac_compile) 2>conftest.er1
10635 grep -v '^ *+' conftest.er1
>conftest.err
10637 cat conftest.err
>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try
='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try
='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_type_size_t
=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.
$ac_ext >&5
10658 ac_cv_type_size_t
=no
10660 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10663 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10664 if test $ac_cv_type_size_t = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define size_t unsigned
10674 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10676 if test "${ac_cv_header_time+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 cat >conftest.
$ac_ext <<_ACEOF
10682 cat confdefs.h
>>conftest.
$ac_ext
10683 cat >>conftest.
$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #include <sys/types.h>
10686 #include <sys/time.h>
10692 if ((struct tm *) 0)
10698 rm -f conftest.
$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1
>conftest.err
10704 cat conftest.err
>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try
='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try
='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_header_time
=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.
$ac_ext >&5
10725 ac_cv_header_time
=no
10727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10730 echo "${ECHO_T}$ac_cv_header_time" >&6
10731 if test $ac_cv_header_time = yes; then
10733 cat >>confdefs.h
<<\_ACEOF
10734 #define TIME_WITH_SYS_TIME 1
10739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10741 if test "${ac_cv_struct_tm+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 cat >conftest.
$ac_ext <<_ACEOF
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <sys/types.h>
10756 struct tm *tp; tp->tm_sec;
10761 rm -f conftest.
$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1
>conftest.err
10767 cat conftest.err
>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try
='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try
='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_struct_tm
=time.h
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.
$ac_ext >&5
10788 ac_cv_struct_tm
=sys
/time.h
10790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10793 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10794 if test $ac_cv_struct_tm = sys
/time.h
; then
10796 cat >>confdefs.h
<<\_ACEOF
10797 #define TM_IN_SYS_TIME 1
10802 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10803 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10804 if test "${ac_cv_type_uid_t+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <sys/types.h>
10816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10817 $EGREP "uid_t" >/dev
/null
2>&1; then
10818 ac_cv_type_uid_t
=yes
10820 ac_cv_type_uid_t
=no
10825 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10826 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10827 if test $ac_cv_type_uid_t = no
; then
10829 cat >>confdefs.h
<<\_ACEOF
10834 cat >>confdefs.h
<<\_ACEOF
10840 echo "$as_me:$LINENO: checking for working volatile" >&5
10841 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10842 if test "${ac_cv_c_volatile+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.
$ac_ext <<_ACEOF
10848 cat confdefs.h
>>conftest.
$ac_ext
10849 cat >>conftest.
$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10862 rm -f conftest.
$ac_objext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 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_objext'
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_c_volatile
=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.
$ac_ext >&5
10889 ac_cv_c_volatile
=no
10891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10893 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10894 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10895 if test $ac_cv_c_volatile = no
; then
10897 cat >>confdefs.h
<<\_ACEOF
10903 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10904 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10905 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10918 if ((ptrdiff_t *) 0)
10920 if (sizeof (ptrdiff_t))
10926 rm -f conftest.
$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>conftest.er1
10930 grep -v '^ *+' conftest.er1
>conftest.err
10932 cat conftest.err
>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try
='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try
='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_type_ptrdiff_t
=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.
$ac_ext >&5
10953 ac_cv_type_ptrdiff_t
=no
10955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10958 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10959 if test $ac_cv_type_ptrdiff_t = yes; then
10961 cat >>confdefs.h
<<_ACEOF
10962 #define HAVE_PTRDIFF_T 1
10969 # Checks for library functions.
10970 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10971 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10972 if test "${ac_cv_func_closedir_void+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 if test "$cross_compiling" = yes; then
10976 ac_cv_func_closedir_void
=yes
10978 cat >conftest.
$ac_ext <<_ACEOF
10981 cat confdefs.h
>>conftest.
$ac_ext
10982 cat >>conftest.
$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #include <$ac_header_dirent>
10986 #ifndef __cplusplus
10993 exit (closedir (opendir (".")) != 0);
10998 rm -f conftest
$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_func_closedir_void
=no
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11015 ( exit $ac_status )
11016 ac_cv_func_closedir_void
=yes
11018 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11022 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11023 if test $ac_cv_func_closedir_void = yes; then
11025 cat >>confdefs.h
<<\_ACEOF
11026 #define CLOSEDIR_VOID 1
11031 if test $ac_cv_c_compiler_gnu = yes; then
11032 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11033 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11034 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_pattern
="Autoconf.*'x'"
11038 cat >conftest.
$ac_ext <<_ACEOF
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11048 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11049 ac_cv_prog_gcc_traditional
=yes
11051 ac_cv_prog_gcc_traditional
=no
11056 if test $ac_cv_prog_gcc_traditional = no
; then
11057 cat >conftest.
$ac_ext <<_ACEOF
11060 cat confdefs.h
>>conftest.
$ac_ext
11061 cat >>conftest.
$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <termio.h>
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11068 ac_cv_prog_gcc_traditional
=yes
11074 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11075 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11076 if test $ac_cv_prog_gcc_traditional = yes; then
11077 CC
="$CC -traditional"
11081 echo "$as_me:$LINENO: checking for pid_t" >&5
11082 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11083 if test "${ac_cv_type_pid_t+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.
$ac_ext <<_ACEOF
11089 cat confdefs.h
>>conftest.
$ac_ext
11090 cat >>conftest.
$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11098 if (sizeof (pid_t))
11104 rm -f conftest.
$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>conftest.er1
11108 grep -v '^ *+' conftest.er1
>conftest.err
11110 cat conftest.err
>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try
='test -z "$ac_c_werror_flag"
11114 || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try
='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_type_pid_t
=yes
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.
$ac_ext >&5
11131 ac_cv_type_pid_t
=no
11133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11135 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11136 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11137 if test $ac_cv_type_pid_t = yes; then
11141 cat >>confdefs.h
<<_ACEOF
11149 for ac_header
in unistd.h vfork.h
11151 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11153 echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11161 # Is the header compilable?
11162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11164 cat >conftest.
$ac_ext <<_ACEOF
11167 cat confdefs.h
>>conftest.
$ac_ext
11168 cat >>conftest.
$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11173 rm -f conftest.
$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11177 grep -v '^ *+' conftest.er1
>conftest.err
11179 cat conftest.err
>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try
='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try
='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler
=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.
$ac_ext >&5
11200 ac_header_compiler
=no
11202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204 echo "${ECHO_T}$ac_header_compiler" >&6
11206 # Is the header present?
11207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11209 cat >conftest.
$ac_ext <<_ACEOF
11212 cat confdefs.h
>>conftest.
$ac_ext
11213 cat >>conftest.
$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <$ac_header>
11217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11220 grep -v '^ *+' conftest.er1
>conftest.err
11222 cat conftest.err
>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } >/dev
/null
; then
11225 if test -s conftest.err
; then
11226 ac_cpp_err
=$ac_c_preproc_warn_flag
11227 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11234 if test -z "$ac_cpp_err"; then
11235 ac_header_preproc
=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.
$ac_ext >&5
11240 ac_header_preproc
=no
11242 rm -f conftest.err conftest.
$ac_ext
11243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11244 echo "${ECHO_T}$ac_header_preproc" >&6
11246 # So? What about this header?
11247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11253 ac_header_preproc
=yes
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 ## ------------------------------ ##
11271 ## Report this to admin@amule.org ##
11272 ## ------------------------------ ##
11275 sed "s/^/$as_me: WARNING: /" >&2
11278 echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 eval "$as_ac_Header=\$ac_header_preproc"
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290 cat >>confdefs.h
<<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 for ac_func
in fork vfork
11302 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_var+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 char (*f) () = $ac_func;
11354 return f != $ac_func;
11359 rm -f conftest.
$ac_objext conftest
$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11363 grep -v '^ *+' conftest.er1
>conftest.err
11365 cat conftest.err
>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try
='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try
='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.
$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.
$ac_objext \
11389 conftest
$ac_exeext conftest.
$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h
<<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11401 if test "x$ac_cv_func_fork" = xyes
; then
11402 echo "$as_me:$LINENO: checking for working fork" >&5
11403 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11404 if test "${ac_cv_func_fork_works+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 if test "$cross_compiling" = yes; then
11408 ac_cv_func_fork_works
=cross
11410 cat >conftest.
$ac_ext <<_ACEOF
11411 /* By Ruediger Kuhlmann. */
11412 #include <sys/types.h>
11414 # include <unistd.h>
11416 /* Some systems only have a dummy stub for fork() */
11424 rm -f conftest
$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_func_fork_works
=yes
11437 echo "$as_me: program exited with status $ac_status" >&5
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 ( exit $ac_status )
11442 ac_cv_func_fork_works
=no
11444 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11447 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11451 ac_cv_func_fork_works
=$ac_cv_func_fork
11453 if test "x$ac_cv_func_fork_works" = xcross
; then
11455 *-*-amigaos* |
*-*-msdosdjgpp*)
11456 # Override, as these systems have only a dummy fork() stub
11457 ac_cv_func_fork_works
=no
11460 ac_cv_func_fork_works
=yes
11463 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11464 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11466 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11467 if test "x$ac_cv_func_vfork" = xyes
; then
11468 echo "$as_me:$LINENO: checking for working vfork" >&5
11469 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11470 if test "${ac_cv_func_vfork_works+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 if test "$cross_compiling" = yes; then
11474 ac_cv_func_vfork_works
=cross
11476 cat >conftest.
$ac_ext <<_ACEOF
11479 cat confdefs.h
>>conftest.
$ac_ext
11480 cat >>conftest.
$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 /* Thanks to Paul Eggert for this test. */
11484 #include <stdlib.h>
11485 #include <sys/types.h>
11486 #include <sys/stat.h>
11487 #include <sys/wait.h>
11489 # include <unistd.h>
11492 # include <vfork.h>
11494 /* On some sparc systems, changes by the child to local and incoming
11495 argument registers are propagated back to the parent. The compiler
11496 is told about this with #include <vfork.h>, but some compilers
11497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11498 static variable whose address is put into a register that is
11499 clobbered by the vfork. */
11502 sparc_address_test (int arg)
11504 sparc_address_test (arg) int arg;
11507 static pid_t child;
11525 pid_t parent = getpid ();
11528 sparc_address_test (0);
11533 /* Here is another test for sparc vfork register problems. This
11534 test uses lots of local variables, at least as many local
11535 variables as main has allocated so far including compiler
11536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11538 reuse the register of parent for one of the local variables,
11539 since it will think that parent can't possibly be used any more
11540 in this routine. Assigning to the local variable will thus
11541 munge parent in the parent process. */
11543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11545 /* Convince the compiler that p..p7 are live; otherwise, it might
11546 use the same hardware register for all 8 local variables. */
11547 if (p != p1 || p != p2 || p != p3 || p != p4
11548 || p != p5 || p != p6 || p != p7)
11551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11552 from child file descriptors. If the child closes a descriptor
11553 before it execs or exits, this munges the parent's descriptor
11554 as well. Test for this by closing stdout in the child. */
11555 _exit(close(fileno(stdout)) != 0);
11560 while (wait(&status) != child)
11563 /* Was there some problem with vforking? */
11566 /* Did the child fail? (This shouldn't happen.) */
11569 /* Did the vfork/compiler bug occur? */
11570 || parent != getpid()
11572 /* Did the file descriptor bug occur? */
11573 || fstat(fileno(stdout), &st) != 0
11578 rm -f conftest
$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_cv_func_vfork_works
=yes
11591 echo "$as_me: program exited with status $ac_status" >&5
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.
$ac_ext >&5
11595 ( exit $ac_status )
11596 ac_cv_func_vfork_works
=no
11598 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11602 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11605 if test "x$ac_cv_func_fork_works" = xcross
; then
11606 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11607 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11608 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11611 if test "x$ac_cv_func_vfork_works" = xyes
; then
11613 cat >>confdefs.h
<<\_ACEOF
11614 #define HAVE_WORKING_VFORK 1
11619 cat >>confdefs.h
<<\_ACEOF
11624 if test "x$ac_cv_func_fork_works" = xyes
; then
11626 cat >>confdefs.h
<<\_ACEOF
11627 #define HAVE_WORKING_FORK 1
11632 if test x
$SYS != xwin32
; then
11634 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11635 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11636 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11637 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 ac_check_lib_save_LIBS
=$LIBS
11642 cat >conftest.
$ac_ext <<_ACEOF
11645 cat confdefs.h
>>conftest.
$ac_ext
11646 cat >>conftest.
$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 /* Override any gcc2 internal prototype to avoid an error. */
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11664 rm -f conftest.
$ac_objext conftest
$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1
>conftest.err
11670 cat conftest.err
>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try
='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try
='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_sun_getmntent
=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 ac_cv_lib_sun_getmntent
=no
11693 rm -f conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 LIBS
=$ac_check_lib_save_LIBS
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11698 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11699 if test $ac_cv_lib_sun_getmntent = yes; then
11702 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11703 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11704 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 ac_check_lib_save_LIBS
=$LIBS
11709 cat >conftest.
$ac_ext <<_ACEOF
11712 cat confdefs.h
>>conftest.
$ac_ext
11713 cat >>conftest.
$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11716 /* Override any gcc2 internal prototype to avoid an error. */
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try
='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try
='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_lib_seq_getmntent
=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11758 ac_cv_lib_seq_getmntent
=no
11760 rm -f conftest.err conftest.
$ac_objext \
11761 conftest
$ac_exeext conftest.
$ac_ext
11762 LIBS
=$ac_check_lib_save_LIBS
11764 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11765 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11766 if test $ac_cv_lib_seq_getmntent = yes; then
11769 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11770 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11771 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 ac_check_lib_save_LIBS
=$LIBS
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11798 rm -f conftest.
$ac_objext conftest
$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1
>conftest.err
11804 cat conftest.err
>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try
='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try
='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_lib_gen_getmntent
=yes
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.
$ac_ext >&5
11825 ac_cv_lib_gen_getmntent
=no
11827 rm -f conftest.err conftest.
$ac_objext \
11828 conftest
$ac_exeext conftest.
$ac_ext
11829 LIBS
=$ac_check_lib_save_LIBS
11831 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11832 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11833 if test $ac_cv_lib_gen_getmntent = yes; then
11842 for ac_func
in getmntent
11844 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845 echo "$as_me:$LINENO: checking for $ac_func" >&5
11846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11847 if eval "test \"\${$as_ac_var+set}\" = set"; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 cat >conftest.
$ac_ext <<_ACEOF
11853 cat confdefs.h
>>conftest.
$ac_ext
11854 cat >>conftest.
$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858 #define $ac_func innocuous_$ac_func
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11866 # include <limits.h>
11868 # include <assert.h>
11873 /* Override any gcc2 internal prototype to avoid an error. */
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11887 char (*f) () = $ac_func;
11896 return f != $ac_func;
11901 rm -f conftest.
$ac_objext conftest
$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try
='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try
='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 eval "$as_ac_var=yes"
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.
$ac_ext >&5
11928 eval "$as_ac_var=no"
11930 rm -f conftest.err conftest.
$ac_objext \
11931 conftest
$ac_exeext conftest.
$ac_ext
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936 cat >>confdefs.h
<<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11944 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11945 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11946 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 rm -f conftest.sym conftest.
file
11950 echo >conftest.
file
11951 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11952 if test "$cross_compiling" = yes; then
11953 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11966 /* Linux will dereference the symlink and fail.
11967 That is better in the sense that it means we will not
11968 have to compile and use the lstat wrapper. */
11969 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11974 rm -f conftest
$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11987 echo "$as_me: program exited with status $ac_status" >&5
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 ( exit $ac_status )
11992 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11994 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11997 # If the `ln -s' command failed, then we probably don't even
11998 # have an lstat function.
11999 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12001 rm -f conftest.sym conftest.
file
12004 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12005 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12007 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12009 cat >>confdefs.h
<<_ACEOF
12010 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12014 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12016 "lstat.$ac_objext" | \
12017 *" lstat.$ac_objext" | \
12018 "lstat.$ac_objext "* | \
12019 *" lstat.$ac_objext "* ) ;;
12020 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12025 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12026 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12027 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 if test "$cross_compiling" = yes; then
12031 ac_cv_func_lstat_empty_string_bug
=yes
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12044 exit (lstat ("", &sbuf) ? 1 : 0);
12049 rm -f conftest
$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_func_lstat_empty_string_bug
=yes
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.
$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_func_lstat_empty_string_bug
=no
12069 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12073 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12074 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12076 "lstat.$ac_objext" | \
12077 *" lstat.$ac_objext" | \
12078 "lstat.$ac_objext "* | \
12079 *" lstat.$ac_objext "* ) ;;
12080 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12084 cat >>confdefs.h
<<_ACEOF
12085 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12090 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12091 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12092 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 rm -f conftest.sym conftest.
file
12096 echo >conftest.
file
12097 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12098 if test "$cross_compiling" = yes; then
12099 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12101 cat >conftest.
$ac_ext <<_ACEOF
12104 cat confdefs.h
>>conftest.
$ac_ext
12105 cat >>conftest.
$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12112 /* Linux will dereference the symlink and fail.
12113 That is better in the sense that it means we will not
12114 have to compile and use the lstat wrapper. */
12115 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12120 rm -f conftest
$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.
$ac_ext >&5
12137 ( exit $ac_status )
12138 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12143 # If the `ln -s' command failed, then we probably don't even
12144 # have an lstat function.
12145 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12147 rm -f conftest.sym conftest.
file
12150 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12151 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12153 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12155 cat >>confdefs.h
<<_ACEOF
12156 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12160 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12162 "lstat.$ac_objext" | \
12163 *" lstat.$ac_objext" | \
12164 "lstat.$ac_objext "* | \
12165 *" lstat.$ac_objext "* ) ;;
12166 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12174 echo "$as_me:$LINENO: checking for working memcmp" >&5
12175 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12176 if test "${ac_cv_func_memcmp_working+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 if test "$cross_compiling" = yes; then
12180 ac_cv_func_memcmp_working
=no
12182 cat >conftest.
$ac_ext <<_ACEOF
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12193 /* Some versions of memcmp are not 8-bit clean. */
12194 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12195 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12198 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12199 or more and with at least one buffer not starting on a 4-byte boundary.
12200 William Lewis provided this test program. */
12205 for (i = 0; i < 4; i++)
12209 strcpy (a, "--------01111111");
12210 strcpy (b, "--------10000000");
12211 if (memcmp (a, b, 16) >= 0)
12221 rm -f conftest
$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_memcmp_working
=yes
12234 echo "$as_me: program exited with status $ac_status" >&5
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.
$ac_ext >&5
12238 ( exit $ac_status )
12239 ac_cv_func_memcmp_working
=no
12241 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12244 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12245 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12246 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12247 "memcmp.$ac_objext" | \
12248 *" memcmp.$ac_objext" | \
12249 "memcmp.$ac_objext "* | \
12250 *" memcmp.$ac_objext "* ) ;;
12251 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12257 for ac_header
in sys
/select.h sys
/socket.h
12259 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12269 # Is the header compilable?
12270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12272 cat >conftest.
$ac_ext <<_ACEOF
12275 cat confdefs.h
>>conftest.
$ac_ext
12276 cat >>conftest.
$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <$ac_header>
12281 rm -f conftest.
$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1
>conftest.err
12287 cat conftest.err
>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try
='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try
='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_header_compiler
=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 ac_header_compiler
=no
12310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12312 echo "${ECHO_T}$ac_header_compiler" >&6
12314 # Is the header present?
12315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <$ac_header>
12325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12326 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1
>conftest.err
12330 cat conftest.err
>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } >/dev
/null
; then
12333 if test -s conftest.err
; then
12334 ac_cpp_err
=$ac_c_preproc_warn_flag
12335 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12342 if test -z "$ac_cpp_err"; then
12343 ac_header_preproc
=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.
$ac_ext >&5
12348 ac_header_preproc
=no
12350 rm -f conftest.err conftest.
$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6
12354 # So? What about this header?
12355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12361 ac_header_preproc
=yes
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12378 ## ------------------------------ ##
12379 ## Report this to admin@amule.org ##
12380 ## ------------------------------ ##
12383 sed "s/^/$as_me: WARNING: /" >&2
12386 echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 eval "$as_ac_Header=\$ac_header_preproc"
12393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12398 cat >>confdefs.h
<<_ACEOF
12399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12406 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12407 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12408 if test "${ac_cv_func_select_args+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12412 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12413 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12414 cat >conftest.
$ac_ext <<_ACEOF
12417 cat confdefs.h
>>conftest.
$ac_ext
12418 cat >>conftest.
$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 $ac_includes_default
12421 #if HAVE_SYS_SELECT_H
12422 # include <sys/select.h>
12424 #if HAVE_SYS_SOCKET_H
12425 # include <sys/socket.h>
12431 extern int select ($ac_arg1,
12432 $ac_arg234, $ac_arg234, $ac_arg234,
12438 rm -f conftest.
$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12442 grep -v '^ *+' conftest.er1
>conftest.err
12444 cat conftest.err
>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try
='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try
='test -s conftest.$ac_objext'
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_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.
$ac_ext >&5
12466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12470 # Provide a safe default value.
12471 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12474 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12475 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12476 ac_save_IFS
=$IFS; IFS
=','
12477 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12481 cat >>confdefs.h
<<_ACEOF
12482 #define SELECT_TYPE_ARG1 $1
12486 cat >>confdefs.h
<<_ACEOF
12487 #define SELECT_TYPE_ARG234 ($2)
12491 cat >>confdefs.h
<<_ACEOF
12492 #define SELECT_TYPE_ARG5 ($3)
12497 echo "$as_me:$LINENO: checking for function prototypes" >&5
12498 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12499 if test "$ac_cv_prog_cc_stdc" != no
; then
12500 echo "$as_me:$LINENO: result: yes" >&5
12501 echo "${ECHO_T}yes" >&6
12503 cat >>confdefs.h
<<\_ACEOF
12504 #define PROTOTYPES 1
12508 cat >>confdefs.h
<<\_ACEOF
12509 #define __PROTOTYPES 1
12513 echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6
12517 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12518 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12519 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 ac_cv_func_setvbuf_reversed
=no
12523 cat >conftest.
$ac_ext <<_ACEOF
12526 cat confdefs.h
>>conftest.
$ac_ext
12527 cat >>conftest.
$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12531 int (setvbuf) (FILE *, int, char *, size_t);
12536 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12541 rm -f conftest.
$ac_objext conftest
$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try
='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try
='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 cat >conftest.
$ac_ext <<_ACEOF
12566 cat confdefs.h
>>conftest.
$ac_ext
12567 cat >>conftest.
$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12571 int (setvbuf) (FILE *, int, char *, size_t);
12576 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12581 rm -f conftest.
$ac_objext conftest
$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1
>conftest.err
12587 cat conftest.err
>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try
='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try
='test -s conftest$ac_exeext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 # It compiles and links either way, so it must not be declared
12604 # with a prototype and most likely this is a K&R C compiler.
12606 if test "$cross_compiling" = yes; then
12607 : # Assume setvbuf is not reversed when cross-compiling.
12609 cat >conftest.
$ac_ext <<_ACEOF
12612 cat confdefs.h
>>conftest.
$ac_ext
12613 cat >>conftest.
$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12619 /* This call has the arguments reversed.
12620 A reversed system may check and see that the address of buf
12621 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12623 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12626 exit (0); /* Non-reversed systems SEGV here. */
12631 rm -f conftest
$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_func_setvbuf_reversed
=yes
12644 echo "$as_me: program exited with status $ac_status" >&5
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 ( exit $ac_status )
12651 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12653 ac_cv_func_setvbuf_reversed
=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12659 rm -f conftest.err conftest.
$ac_objext \
12660 conftest
$ac_exeext conftest.
$ac_ext
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.
$ac_ext >&5
12666 rm -f conftest.err conftest.
$ac_objext \
12667 conftest
$ac_exeext conftest.
$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12670 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12671 if test $ac_cv_func_setvbuf_reversed = yes; then
12673 cat >>confdefs.h
<<\_ACEOF
12674 #define SETVBUF_REVERSED 1
12679 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12680 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12681 if test "${ac_cv_type_signal+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 cat >conftest.
$ac_ext <<_ACEOF
12687 cat confdefs.h
>>conftest.
$ac_ext
12688 cat >>conftest.
$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 #include <sys/types.h>
12691 #include <signal.h>
12696 extern "C" void (*signal (int, void (*)(int)))(int);
12698 void (*signal ()) ();
12709 rm -f conftest.
$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try
='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_cv_type_signal
=void
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12736 ac_cv_type_signal
=int
12738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12741 echo "${ECHO_T}$ac_cv_type_signal" >&6
12743 cat >>confdefs.h
<<_ACEOF
12744 #define RETSIGTYPE $ac_cv_type_signal
12748 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12749 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12750 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 if test "$cross_compiling" = yes; then
12754 ac_cv_func_stat_empty_string_bug
=yes
12756 cat >conftest.
$ac_ext <<_ACEOF
12759 cat confdefs.h
>>conftest.
$ac_ext
12760 cat >>conftest.
$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 $ac_includes_default
12767 exit (stat ("", &sbuf) ? 1 : 0);
12772 rm -f conftest
$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_cv_func_stat_empty_string_bug
=yes
12785 echo "$as_me: program exited with status $ac_status" >&5
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.
$ac_ext >&5
12789 ( exit $ac_status )
12790 ac_cv_func_stat_empty_string_bug
=no
12792 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12795 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12796 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12797 if test $ac_cv_func_stat_empty_string_bug = yes; then
12799 "stat.$ac_objext" | \
12800 *" stat.$ac_objext" | \
12801 "stat.$ac_objext "* | \
12802 *" stat.$ac_objext "* ) ;;
12803 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
12807 cat >>confdefs.h
<<_ACEOF
12808 #define HAVE_STAT_EMPTY_STRING_BUG 1
12814 for ac_func
in strftime
12816 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_var+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 cat >conftest.
$ac_ext <<_ACEOF
12825 cat confdefs.h
>>conftest.
$ac_ext
12826 cat >>conftest.
$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12830 #define $ac_func innocuous_$ac_func
12832 /* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func (); below.
12834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12835 <limits.h> exists even on freestanding compilers. */
12838 # include <limits.h>
12840 # include <assert.h>
12845 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12853 /* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859 char (*f) () = $ac_func;
12868 return f != $ac_func;
12873 rm -f conftest.
$ac_objext conftest
$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1
>conftest.err
12879 cat conftest.err
>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try
='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try
='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 eval "$as_ac_var=yes"
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.
$ac_ext >&5
12900 eval "$as_ac_var=no"
12902 rm -f conftest.err conftest.
$ac_objext \
12903 conftest
$ac_exeext conftest.
$ac_ext
12905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12907 if test `eval echo '${'$as_ac_var'}'` = yes; then
12908 cat >>confdefs.h
<<_ACEOF
12909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12913 # strftime is in -lintl on SCO UNIX.
12914 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12915 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12916 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 ac_check_lib_save_LIBS
=$LIBS
12920 LIBS
="-lintl $LIBS"
12921 cat >conftest.
$ac_ext <<_ACEOF
12924 cat confdefs.h
>>conftest.
$ac_ext
12925 cat >>conftest.
$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12928 /* Override any gcc2 internal prototype to avoid an error. */
12932 /* We use char because int might match the return type of a gcc2
12933 builtin and then its argument prototype would still apply. */
12943 rm -f conftest.
$ac_objext conftest
$ac_exeext
12944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12945 (eval $ac_link) 2>conftest.er1
12947 grep -v '^ *+' conftest.er1
>conftest.err
12949 cat conftest.err
>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try
='test -z "$ac_c_werror_flag"
12953 || test ! -s conftest.err'
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); }; } &&
12959 { ac_try
='test -s conftest$ac_exeext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_lib_intl_strftime
=yes
12967 echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.
$ac_ext >&5
12970 ac_cv_lib_intl_strftime
=no
12972 rm -f conftest.err conftest.
$ac_objext \
12973 conftest
$ac_exeext conftest.
$ac_ext
12974 LIBS
=$ac_check_lib_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12977 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12978 if test $ac_cv_lib_intl_strftime = yes; then
12979 cat >>confdefs.h
<<\_ACEOF
12980 #define HAVE_STRFTIME 1
12983 LIBS
="-lintl $LIBS"
12989 echo "$as_me:$LINENO: checking for working strtod" >&5
12990 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12991 if test "${ac_cv_func_strtod+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 if test "$cross_compiling" = yes; then
12995 ac_cv_func_strtod
=no
12997 cat >conftest.
$ac_ext <<_ACEOF
13000 cat confdefs.h
>>conftest.
$ac_ext
13001 cat >>conftest.
$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13009 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13010 char *string = " +69";
13013 value = strtod (string, &term);
13014 if (value != 69 || term != (string + 4))
13019 /* Under Solaris 2.4, strtod returns the wrong value for the
13020 terminating character under some conditions. */
13021 char *string = "NaN";
13023 strtod (string, &term);
13024 if (term != string && *(term - 1) == 0)
13031 rm -f conftest
$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_func_strtod
=yes
13044 echo "$as_me: program exited with status $ac_status" >&5
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.
$ac_ext >&5
13048 ( exit $ac_status )
13049 ac_cv_func_strtod
=no
13051 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13054 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13055 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13056 if test $ac_cv_func_strtod = no
; then
13058 "strtod.$ac_objext" | \
13059 *" strtod.$ac_objext" | \
13060 "strtod.$ac_objext "* | \
13061 *" strtod.$ac_objext "* ) ;;
13062 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13065 echo "$as_me:$LINENO: checking for pow" >&5
13066 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13067 if test "${ac_cv_func_pow+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.
$ac_ext <<_ACEOF
13073 cat confdefs.h
>>conftest.
$ac_ext
13074 cat >>conftest.
$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13078 #define pow innocuous_pow
13080 /* System header to define __stub macros and hopefully few prototypes,
13081 which can conflict with char pow (); below.
13082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13083 <limits.h> exists even on freestanding compilers. */
13086 # include <limits.h>
13088 # include <assert.h>
13093 /* Override any gcc2 internal prototype to avoid an error. */
13098 /* We use char because int might match the return type of a gcc2
13099 builtin and then its argument prototype would still apply. */
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_pow) || defined (__stub___pow)
13107 char (*f) () = pow;
13121 rm -f conftest.
$ac_objext conftest
$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13125 grep -v '^ *+' conftest.er1
>conftest.err
13127 cat conftest.err
>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try
='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try
='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.
$ac_ext >&5
13150 rm -f conftest.err conftest.
$ac_objext \
13151 conftest
$ac_exeext conftest.
$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13154 echo "${ECHO_T}$ac_cv_func_pow" >&6
13156 if test $ac_cv_func_pow = no
; then
13157 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13158 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13159 if test "${ac_cv_lib_m_pow+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 ac_check_lib_save_LIBS
=$LIBS
13164 cat >conftest.
$ac_ext <<_ACEOF
13167 cat confdefs.h
>>conftest.
$ac_ext
13168 cat >>conftest.
$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13171 /* Override any gcc2 internal prototype to avoid an error. */
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13186 rm -f conftest.
$ac_objext conftest
$ac_exeext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188 (eval $ac_link) 2>conftest.er1
13190 grep -v '^ *+' conftest.er1
>conftest.err
13192 cat conftest.err
>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try
='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try
='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_m_pow
=yes
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.
$ac_ext >&5
13215 rm -f conftest.err conftest.
$ac_objext \
13216 conftest
$ac_exeext conftest.
$ac_ext
13217 LIBS
=$ac_check_lib_save_LIBS
13219 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13220 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13221 if test $ac_cv_lib_m_pow = yes; then
13224 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13225 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13233 for ac_func
in vprintf
13235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236 echo "$as_me:$LINENO: checking for $ac_func" >&5
13237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_var+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 cat >conftest.
$ac_ext <<_ACEOF
13244 cat confdefs.h
>>conftest.
$ac_ext
13245 cat >>conftest.
$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13249 #define $ac_func innocuous_$ac_func
13251 /* System header to define __stub macros and hopefully few prototypes,
13252 which can conflict with char $ac_func (); below.
13253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254 <limits.h> exists even on freestanding compilers. */
13257 # include <limits.h>
13259 # include <assert.h>
13264 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13278 char (*f) () = $ac_func;
13287 return f != $ac_func;
13292 rm -f conftest.
$ac_objext conftest
$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1
>conftest.err
13298 cat conftest.err
>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try
='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try
='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 eval "$as_ac_var=yes"
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.
$ac_ext >&5
13319 eval "$as_ac_var=no"
13321 rm -f conftest.err conftest.
$ac_objext \
13322 conftest
$ac_exeext conftest.
$ac_ext
13324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13326 if test `eval echo '${'$as_ac_var'}'` = yes; then
13327 cat >>confdefs.h
<<_ACEOF
13328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13331 echo "$as_me:$LINENO: checking for _doprnt" >&5
13332 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13333 if test "${ac_cv_func__doprnt+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 cat >conftest.
$ac_ext <<_ACEOF
13339 cat confdefs.h
>>conftest.
$ac_ext
13340 cat >>conftest.
$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13344 #define _doprnt innocuous__doprnt
13346 /* System header to define __stub macros and hopefully few prototypes,
13347 which can conflict with char _doprnt (); below.
13348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13349 <limits.h> exists even on freestanding compilers. */
13352 # include <limits.h>
13354 # include <assert.h>
13359 /* Override any gcc2 internal prototype to avoid an error. */
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13367 /* The GNU C library defines this for functions which it implements
13368 to always fail with ENOSYS. Some functions are actually named
13369 something starting with __ and the normal name is an alias. */
13370 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13373 char (*f) () = _doprnt;
13382 return f != _doprnt;
13387 rm -f conftest.
$ac_objext conftest
$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13391 grep -v '^ *+' conftest.er1
>conftest.err
13393 cat conftest.err
>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try
='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try
='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_func__doprnt
=yes
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.
$ac_ext >&5
13414 ac_cv_func__doprnt
=no
13416 rm -f conftest.err conftest.
$ac_objext \
13417 conftest
$ac_exeext conftest.
$ac_ext
13419 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13420 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13421 if test $ac_cv_func__doprnt = yes; then
13423 cat >>confdefs.h
<<\_ACEOF
13424 #define HAVE_DOPRNT 1
13433 if test $cross_compiling = yes -a $gnumalloc = yes; then
13435 { echo "$as_me:$LINENO: WARNING:
13436 configure cannot check whether malloc() and realloc() are GNU libc
13437 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13438 run configure with the --without-gnu-malloc switch." >&5
13439 echo "$as_me: WARNING:
13440 configure cannot check whether malloc() and realloc() are GNU libc
13441 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13442 run configure with the --without-gnu-malloc switch." >&2;}
13443 _mule_warning_8
=yes
13444 _mule_has_warnings
=yes
13446 ac_cv_func_malloc_0_nonnull
=yes
13447 ac_cv_func_realloc_0_nonnull
=yes
13452 for ac_header
in stdlib.h
13454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13464 # Is the header compilable?
13465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13467 cat >conftest.
$ac_ext <<_ACEOF
13470 cat confdefs.h
>>conftest.
$ac_ext
13471 cat >>conftest.
$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 $ac_includes_default
13474 #include <$ac_header>
13476 rm -f conftest.
$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1
>conftest.err
13482 cat conftest.err
>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try
='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try
='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler
=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13503 ac_header_compiler
=no
13505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.
$ac_ext <<_ACEOF
13515 cat confdefs.h
>>conftest.
$ac_ext
13516 cat >>conftest.
$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <$ac_header>
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13523 grep -v '^ *+' conftest.er1
>conftest.err
13525 cat conftest.err
>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev
/null
; then
13528 if test -s conftest.err
; then
13529 ac_cpp_err
=$ac_c_preproc_warn_flag
13530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc
=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.
$ac_ext >&5
13543 ac_header_preproc
=no
13545 rm -f conftest.err conftest.
$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc
=yes
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13573 ## ------------------------------ ##
13574 ## Report this to admin@amule.org ##
13575 ## ------------------------------ ##
13578 sed "s/^/$as_me: WARNING: /" >&2
13581 echo "$as_me:$LINENO: checking for $ac_header" >&5
13582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 eval "$as_ac_Header=\$ac_header_preproc"
13588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h
<<_ACEOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13601 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13602 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13603 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 if test "$cross_compiling" = yes; then
13607 ac_cv_func_malloc_0_nonnull
=no
13609 cat >conftest.
$ac_ext <<_ACEOF
13612 cat confdefs.h
>>conftest.
$ac_ext
13613 cat >>conftest.
$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 #if STDC_HEADERS || HAVE_STDLIB_H
13616 # include <stdlib.h>
13624 exit (malloc (0) ? 0 : 1);
13629 rm -f conftest
$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_func_malloc_0_nonnull
=yes
13642 echo "$as_me: program exited with status $ac_status" >&5
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.
$ac_ext >&5
13646 ( exit $ac_status )
13647 ac_cv_func_malloc_0_nonnull
=no
13649 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13652 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13653 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13654 if test $ac_cv_func_malloc_0_nonnull = yes; then
13656 cat >>confdefs.h
<<\_ACEOF
13657 #define HAVE_MALLOC 1
13661 cat >>confdefs.h
<<\_ACEOF
13662 #define HAVE_MALLOC 0
13666 "malloc.$ac_objext" | \
13667 *" malloc.$ac_objext" | \
13668 "malloc.$ac_objext "* | \
13669 *" malloc.$ac_objext "* ) ;;
13670 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13674 cat >>confdefs.h
<<\_ACEOF
13675 #define malloc rpl_malloc
13683 for ac_header
in stdlib.h
13685 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13687 echo "$as_me:$LINENO: checking for $ac_header" >&5
13688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13695 # Is the header compilable?
13696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13698 cat >conftest.
$ac_ext <<_ACEOF
13701 cat confdefs.h
>>conftest.
$ac_ext
13702 cat >>conftest.
$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 #include <$ac_header>
13707 rm -f conftest.
$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>conftest.er1
13711 grep -v '^ *+' conftest.er1
>conftest.err
13713 cat conftest.err
>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try
='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
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); }; } &&
13723 { ac_try
='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_header_compiler
=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.
$ac_ext >&5
13734 ac_header_compiler
=no
13736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6
13740 # Is the header present?
13741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13743 cat >conftest.
$ac_ext <<_ACEOF
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #include <$ac_header>
13751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13754 grep -v '^ *+' conftest.er1
>conftest.err
13756 cat conftest.err
>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev
/null
; then
13759 if test -s conftest.err
; then
13760 ac_cpp_err
=$ac_c_preproc_warn_flag
13761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13768 if test -z "$ac_cpp_err"; then
13769 ac_header_preproc
=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.
$ac_ext >&5
13774 ac_header_preproc
=no
13776 rm -f conftest.err conftest.
$ac_ext
13777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13778 echo "${ECHO_T}$ac_header_preproc" >&6
13780 # So? What about this header?
13781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13787 ac_header_preproc
=yes
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13804 ## ------------------------------ ##
13805 ## Report this to admin@amule.org ##
13806 ## ------------------------------ ##
13809 sed "s/^/$as_me: WARNING: /" >&2
13812 echo "$as_me:$LINENO: checking for $ac_header" >&5
13813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 eval "$as_ac_Header=\$ac_header_preproc"
13819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13824 cat >>confdefs.h
<<_ACEOF
13825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13833 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13834 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 if test "$cross_compiling" = yes; then
13838 ac_cv_func_realloc_0_nonnull
=no
13840 cat >conftest.
$ac_ext <<_ACEOF
13843 cat confdefs.h
>>conftest.
$ac_ext
13844 cat >>conftest.
$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #if STDC_HEADERS || HAVE_STDLIB_H
13847 # include <stdlib.h>
13855 exit (realloc (0, 0) ? 0 : 1);
13860 rm -f conftest
$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_func_realloc_0_nonnull
=yes
13873 echo "$as_me: program exited with status $ac_status" >&5
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.
$ac_ext >&5
13877 ( exit $ac_status )
13878 ac_cv_func_realloc_0_nonnull
=no
13880 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13884 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13885 if test $ac_cv_func_realloc_0_nonnull = yes; then
13887 cat >>confdefs.h
<<\_ACEOF
13888 #define HAVE_REALLOC 1
13892 cat >>confdefs.h
<<\_ACEOF
13893 #define HAVE_REALLOC 0
13897 "realloc.$ac_objext" | \
13898 *" realloc.$ac_objext" | \
13899 "realloc.$ac_objext "* | \
13900 *" realloc.$ac_objext "* ) ;;
13901 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
13905 cat >>confdefs.h
<<\_ACEOF
13906 #define realloc rpl_realloc
13946 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13948 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13949 echo "$as_me:$LINENO: checking for $ac_func" >&5
13950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13951 if eval "test \"\${$as_ac_var+set}\" = set"; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.
$ac_ext <<_ACEOF
13957 cat confdefs.h
>>conftest.
$ac_ext
13958 cat >>conftest.
$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13962 #define $ac_func innocuous_$ac_func
13964 /* System header to define __stub macros and hopefully few prototypes,
13965 which can conflict with char $ac_func (); below.
13966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13967 <limits.h> exists even on freestanding compilers. */
13970 # include <limits.h>
13972 # include <assert.h>
13977 /* Override any gcc2 internal prototype to avoid an error. */
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13985 /* The GNU C library defines this for functions which it implements
13986 to always fail with ENOSYS. Some functions are actually named
13987 something starting with __ and the normal name is an alias. */
13988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 char (*f) () = $ac_func;
14000 return f != $ac_func;
14005 rm -f conftest.
$ac_objext conftest
$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007 (eval $ac_link) 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try
='test -z "$ac_c_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try
='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 eval "$as_ac_var=yes"
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.
$ac_ext >&5
14032 eval "$as_ac_var=no"
14034 rm -f conftest.err conftest.
$ac_objext \
14035 conftest
$ac_exeext conftest.
$ac_ext
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14039 if test `eval echo '${'$as_ac_var'}'` = yes; then
14040 cat >>confdefs.h
<<_ACEOF
14041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14047 #-------------------------------------------------------------------------------
14048 # End of autoscan stuff
14049 #-------------------------------------------------------------------------------
14055 for ac_func
in mkdir getrlimit setrlimit getopt_long
14057 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14058 echo "$as_me:$LINENO: checking for $ac_func" >&5
14059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14060 if eval "test \"\${$as_ac_var+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 cat >conftest.
$ac_ext <<_ACEOF
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14071 #define $ac_func innocuous_$ac_func
14073 /* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char $ac_func (); below.
14075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14076 <limits.h> exists even on freestanding compilers. */
14079 # include <limits.h>
14081 # include <assert.h>
14086 /* Override any gcc2 internal prototype to avoid an error. */
14091 /* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14094 /* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14100 char (*f) () = $ac_func;
14109 return f != $ac_func;
14114 rm -f conftest.
$ac_objext conftest
$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>conftest.er1
14118 grep -v '^ *+' conftest.er1
>conftest.err
14120 cat conftest.err
>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try
='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try
='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 eval "$as_ac_var=yes"
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.
$ac_ext >&5
14141 eval "$as_ac_var=no"
14143 rm -f conftest.err conftest.
$ac_objext \
14144 conftest
$ac_exeext conftest.
$ac_ext
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14148 if test `eval echo '${'$as_ac_var'}'` = yes; then
14149 cat >>confdefs.h
<<_ACEOF
14150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14157 # Check whether --enable-mmap or --disable-mmap was given.
14158 if test "${enable_mmap+set}" = set; then
14159 enableval
="$enable_mmap"
14163 if test ${enable_mmap:-no} = yes; then
14166 for ac_header
in sys
/mman.h
14168 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170 echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14178 # Is the header compilable?
14179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14181 cat >conftest.
$ac_ext <<_ACEOF
14184 cat confdefs.h
>>conftest.
$ac_ext
14185 cat >>conftest.
$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14188 #include <$ac_header>
14190 rm -f conftest.
$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try
='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try
='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_header_compiler
=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.
$ac_ext >&5
14217 ac_header_compiler
=no
14219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14221 echo "${ECHO_T}$ac_header_compiler" >&6
14223 # Is the header present?
14224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14226 cat >conftest.
$ac_ext <<_ACEOF
14229 cat confdefs.h
>>conftest.
$ac_ext
14230 cat >>conftest.
$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <$ac_header>
14234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1
>conftest.err
14239 cat conftest.err
>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } >/dev
/null
; then
14242 if test -s conftest.err
; then
14243 ac_cpp_err
=$ac_c_preproc_warn_flag
14244 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14251 if test -z "$ac_cpp_err"; then
14252 ac_header_preproc
=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.
$ac_ext >&5
14257 ac_header_preproc
=no
14259 rm -f conftest.err conftest.
$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14261 echo "${ECHO_T}$ac_header_preproc" >&6
14263 # So? What about this header?
14264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14270 ac_header_preproc
=yes
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14287 ## ------------------------------ ##
14288 ## Report this to admin@amule.org ##
14289 ## ------------------------------ ##
14292 sed "s/^/$as_me: WARNING: /" >&2
14295 echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 eval "$as_ac_Header=\$ac_header_preproc"
14302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307 cat >>confdefs.h
<<_ACEOF
14308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14317 for ac_header
in stdlib.h unistd.h
14319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321 echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14329 # Is the header compilable?
14330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14332 cat >conftest.
$ac_ext <<_ACEOF
14335 cat confdefs.h
>>conftest.
$ac_ext
14336 cat >>conftest.
$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 #include <$ac_header>
14341 rm -f conftest.
$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14345 grep -v '^ *+' conftest.er1
>conftest.err
14347 cat conftest.err
>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try
='test -z "$ac_c_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try
='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_header_compiler
=yes
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.
$ac_ext >&5
14368 ac_header_compiler
=no
14370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14372 echo "${ECHO_T}$ac_header_compiler" >&6
14374 # Is the header present?
14375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14377 cat >conftest.
$ac_ext <<_ACEOF
14380 cat confdefs.h
>>conftest.
$ac_ext
14381 cat >>conftest.
$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <$ac_header>
14385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14388 grep -v '^ *+' conftest.er1
>conftest.err
14390 cat conftest.err
>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } >/dev
/null
; then
14393 if test -s conftest.err
; then
14394 ac_cpp_err
=$ac_c_preproc_warn_flag
14395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14402 if test -z "$ac_cpp_err"; then
14403 ac_header_preproc
=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.
$ac_ext >&5
14408 ac_header_preproc
=no
14410 rm -f conftest.err conftest.
$ac_ext
14411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14412 echo "${ECHO_T}$ac_header_preproc" >&6
14414 # So? What about this header?
14415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14421 ac_header_preproc
=yes
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14438 ## ------------------------------ ##
14439 ## Report this to admin@amule.org ##
14440 ## ------------------------------ ##
14443 sed "s/^/$as_me: WARNING: /" >&2
14446 echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 eval "$as_ac_Header=\$ac_header_preproc"
14453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14458 cat >>confdefs.h
<<_ACEOF
14459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14467 for ac_func
in getpagesize
14469 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 echo "$as_me:$LINENO: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_var+set}\" = set"; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 cat >conftest.
$ac_ext <<_ACEOF
14478 cat confdefs.h
>>conftest.
$ac_ext
14479 cat >>conftest.
$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14491 # include <limits.h>
14493 # include <assert.h>
14498 /* Override any gcc2 internal prototype to avoid an error. */
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14512 char (*f) () = $ac_func;
14521 return f != $ac_func;
14526 rm -f conftest.
$ac_objext conftest
$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14530 grep -v '^ *+' conftest.er1
>conftest.err
14532 cat conftest.err
>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try
='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try
='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 eval "$as_ac_var=yes"
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 eval "$as_ac_var=no"
14555 rm -f conftest.err conftest.
$ac_objext \
14556 conftest
$ac_exeext conftest.
$ac_ext
14558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14560 if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 cat >>confdefs.h
<<_ACEOF
14562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14568 echo "$as_me:$LINENO: checking for working mmap" >&5
14569 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14570 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 if test "$cross_compiling" = yes; then
14574 ac_cv_func_mmap_fixed_mapped
=no
14576 cat >conftest.
$ac_ext <<_ACEOF
14579 cat confdefs.h
>>conftest.
$ac_ext
14580 cat >>conftest.
$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 $ac_includes_default
14583 /* malloc might have been renamed as rpl_malloc. */
14586 /* Thanks to Mike Haertel and Jim Avera for this test.
14587 Here is a matrix of mmap possibilities:
14588 mmap private not fixed
14589 mmap private fixed at somewhere currently unmapped
14590 mmap private fixed at somewhere already mapped
14591 mmap shared not fixed
14592 mmap shared fixed at somewhere currently unmapped
14593 mmap shared fixed at somewhere already mapped
14594 For private mappings, we should verify that changes cannot be read()
14595 back from the file, nor mmap's back from the file at a different
14596 address. (There have been systems where private was not correctly
14597 implemented like the infamous i386 svr4.0, and systems where the
14598 VM page cache was not coherent with the file system buffer cache
14599 like early versions of FreeBSD and possibly contemporary NetBSD.)
14600 For shared mappings, we should conversely verify that changes get
14601 propagated back to all the places they're supposed to be.
14603 Grep wants private fixed already mapped.
14604 The main things grep needs to know about mmap are:
14605 * does it exist and is it safe to write into the mmap'd area
14606 * how to use it (BSD variants) */
14609 #include <sys/mman.h>
14611 #if !STDC_HEADERS && !HAVE_STDLIB_H
14615 /* This mess was copied from the GNU getpagesize.h. */
14616 #if !HAVE_GETPAGESIZE
14617 /* Assume that all systems that can run configure have sys/param.h. */
14618 # if !HAVE_SYS_PARAM_H
14619 # define HAVE_SYS_PARAM_H 1
14622 # ifdef _SC_PAGESIZE
14623 # define getpagesize() sysconf(_SC_PAGESIZE)
14624 # else /* no _SC_PAGESIZE */
14625 # if HAVE_SYS_PARAM_H
14626 # include <sys/param.h>
14627 # ifdef EXEC_PAGESIZE
14628 # define getpagesize() EXEC_PAGESIZE
14629 # else /* no EXEC_PAGESIZE */
14631 # define getpagesize() NBPG * CLSIZE
14634 # endif /* no CLSIZE */
14635 # else /* no NBPG */
14637 # define getpagesize() NBPC
14638 # else /* no NBPC */
14640 # define getpagesize() PAGESIZE
14641 # endif /* PAGESIZE */
14642 # endif /* no NBPC */
14643 # endif /* no NBPG */
14644 # endif /* no EXEC_PAGESIZE */
14645 # else /* no HAVE_SYS_PARAM_H */
14646 # define getpagesize() 8192 /* punt totally */
14647 # endif /* no HAVE_SYS_PARAM_H */
14648 # endif /* no _SC_PAGESIZE */
14650 #endif /* no HAVE_GETPAGESIZE */
14655 char *data, *data2, *data3;
14659 pagesize = getpagesize ();
14661 /* First, make a file with some known garbage in it. */
14662 data = (char *) malloc (pagesize);
14665 for (i = 0; i < pagesize; ++i)
14666 *(data + i) = rand ();
14668 fd = creat ("conftest.mmap", 0600);
14671 if (write (fd, data, pagesize) != pagesize)
14675 /* Next, try to mmap the file at a fixed address which already has
14676 something else allocated at it. If we can, also make sure that
14677 we see the same garbage. */
14678 fd = open ("conftest.mmap", O_RDWR);
14681 data2 = (char *) malloc (2 * pagesize);
14684 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14685 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14686 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14688 for (i = 0; i < pagesize; ++i)
14689 if (*(data + i) != *(data2 + i))
14692 /* Finally, make sure that changes to the mapped area do not
14693 percolate back to the file as seen by read(). (This is a bug on
14694 some variants of i386 svr4.0.) */
14695 for (i = 0; i < pagesize; ++i)
14696 *(data2 + i) = *(data2 + i) + 1;
14697 data3 = (char *) malloc (pagesize);
14700 if (read (fd, data3, pagesize) != pagesize)
14702 for (i = 0; i < pagesize; ++i)
14703 if (*(data + i) != *(data3 + i))
14709 rm -f conftest
$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_func_mmap_fixed_mapped
=yes
14722 echo "$as_me: program exited with status $ac_status" >&5
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.
$ac_ext >&5
14726 ( exit $ac_status )
14727 ac_cv_func_mmap_fixed_mapped
=no
14729 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14732 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14733 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14736 cat >>confdefs.h
<<\_ACEOF
14737 #define HAVE_MMAP 1
14741 rm -f conftest.mmap
14744 for ac_func
in munmap
14746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 echo "$as_me:$LINENO: checking for $ac_func" >&5
14748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_var+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14760 #define $ac_func innocuous_$ac_func
14762 /* System header to define __stub macros and hopefully few prototypes,
14763 which can conflict with char $ac_func (); below.
14764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14765 <limits.h> exists even on freestanding compilers. */
14768 # include <limits.h>
14770 # include <assert.h>
14775 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14783 /* The GNU C library defines this for functions which it implements
14784 to always fail with ENOSYS. Some functions are actually named
14785 something starting with __ and the normal name is an alias. */
14786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14789 char (*f) () = $ac_func;
14798 return f != $ac_func;
14803 rm -f conftest.
$ac_objext conftest
$ac_exeext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14805 (eval $ac_link) 2>conftest.er1
14807 grep -v '^ *+' conftest.er1
>conftest.err
14809 cat conftest.err
>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try
='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try
='test -s conftest$ac_exeext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 eval "$as_ac_var=yes"
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.
$ac_ext >&5
14830 eval "$as_ac_var=no"
14832 rm -f conftest.err conftest.
$ac_objext \
14833 conftest
$ac_exeext conftest.
$ac_ext
14835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h
<<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14848 # fake the result of the test for munmap() for the gettext macros
14849 ac_cv_func_munmap
=no
14855 mule_backup_CPPFLAGS
="$CPPFLAGS"
14856 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14857 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14858 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14859 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 cat >conftest.
$ac_ext <<_ACEOF
14865 cat confdefs.h
>>conftest.
$ac_ext
14866 cat >>conftest.
$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14873 char *p = (char *) strerror_r;
14880 rm -f conftest.
$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>conftest.er1
14884 grep -v '^ *+' conftest.er1
>conftest.err
14886 cat conftest.err
>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try
='test -z "$ac_c_werror_flag"
14890 || test ! -s conftest.err'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try
='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_cv_have_decl_strerror_r
=yes
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.
$ac_ext >&5
14907 ac_cv_have_decl_strerror_r
=no
14909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14911 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14912 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14913 if test $ac_cv_have_decl_strerror_r = yes; then
14915 cat >>confdefs.h
<<_ACEOF
14916 #define HAVE_DECL_STRERROR_R 1
14921 cat >>confdefs.h
<<_ACEOF
14922 #define HAVE_DECL_STRERROR_R 0
14930 for ac_func
in strerror_r
14932 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14933 echo "$as_me:$LINENO: checking for $ac_func" >&5
14934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14935 if eval "test \"\${$as_ac_var+set}\" = set"; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 cat >conftest.
$ac_ext <<_ACEOF
14941 cat confdefs.h
>>conftest.
$ac_ext
14942 cat >>conftest.
$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14946 #define $ac_func innocuous_$ac_func
14948 /* System header to define __stub macros and hopefully few prototypes,
14949 which can conflict with char $ac_func (); below.
14950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14951 <limits.h> exists even on freestanding compilers. */
14954 # include <limits.h>
14956 # include <assert.h>
14961 /* Override any gcc2 internal prototype to avoid an error. */
14966 /* We use char because int might match the return type of a gcc2
14967 builtin and then its argument prototype would still apply. */
14969 /* The GNU C library defines this for functions which it implements
14970 to always fail with ENOSYS. Some functions are actually named
14971 something starting with __ and the normal name is an alias. */
14972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14975 char (*f) () = $ac_func;
14984 return f != $ac_func;
14989 rm -f conftest.
$ac_objext conftest
$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14993 grep -v '^ *+' conftest.er1
>conftest.err
14995 cat conftest.err
>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try
='test -z "$ac_c_werror_flag"
14999 || test ! -s conftest.err'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try
='test -s conftest$ac_exeext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 eval "$as_ac_var=yes"
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.
$ac_ext >&5
15016 eval "$as_ac_var=no"
15018 rm -f conftest.err conftest.
$ac_objext \
15019 conftest
$ac_exeext conftest.
$ac_ext
15021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15023 if test `eval echo '${'$as_ac_var'}'` = yes; then
15024 cat >>confdefs.h
<<_ACEOF
15025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15031 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15032 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15033 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 ac_cv_func_strerror_r_char_p
=no
15038 if test $ac_cv_have_decl_strerror_r = yes; then
15039 cat >conftest.
$ac_ext <<_ACEOF
15042 cat confdefs.h
>>conftest.
$ac_ext
15043 cat >>conftest.
$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 $ac_includes_default
15051 char x = *strerror_r (0, buf, sizeof buf);
15052 char *p = strerror_r (0, buf, sizeof buf);
15058 rm -f conftest.
$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15062 grep -v '^ *+' conftest.er1
>conftest.err
15064 cat conftest.err
>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try
='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try
='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_cv_func_strerror_r_char_p
=yes
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.
$ac_ext >&5
15086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15088 # strerror_r is not declared. Choose between
15089 # systems that have relatively inaccessible declarations for the
15090 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15091 # former has a strerror_r that returns char*, while the latter
15092 # has a strerror_r that returns `int'.
15093 # This test should segfault on the DEC system.
15094 if test "$cross_compiling" = yes; then
15097 cat >conftest.
$ac_ext <<_ACEOF
15100 cat confdefs.h
>>conftest.
$ac_ext
15101 cat >>conftest.
$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 $ac_includes_default
15104 extern char *strerror_r ();
15109 char x = *strerror_r (0, buf, sizeof buf);
15110 exit (!isalpha (x));
15115 rm -f conftest
$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_cv_func_strerror_r_char_p
=yes
15128 echo "$as_me: program exited with status $ac_status" >&5
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.
$ac_ext >&5
15133 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15138 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15139 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15140 if test $ac_cv_func_strerror_r_char_p = yes; then
15142 cat >>confdefs.h
<<\_ACEOF
15143 #define STRERROR_R_CHAR_P 1
15148 CPPFLAGS
="$mule_backup_CPPFLAGS"
15150 # Look for a way to preallocate disk space for files.
15152 echo "$as_me:$LINENO: checking for fallocate" >&5
15153 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15154 cat >conftest.
$ac_ext <<_ACEOF
15158 cat confdefs.h
>>conftest.
$ac_ext
15159 cat >>conftest.
$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15162 #include <linux/falloc.h>
15168 fallocate(0, 0, 0, 0);
15175 rm -f conftest.
$ac_objext conftest
$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>conftest.er1
15179 grep -v '^ *+' conftest.er1
>conftest.err
15181 cat conftest.err
>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try
='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try
='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15200 cat >>confdefs.h
<<\_ACEOF
15201 #define HAVE_FALLOCATE 1
15204 echo "$as_me:$LINENO: result: yes" >&5
15205 echo "${ECHO_T}yes" >&6
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.
$ac_ext >&5
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15216 rm -f conftest.err conftest.
$ac_objext \
15217 conftest
$ac_exeext conftest.
$ac_ext
15220 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15221 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15222 cat >conftest.
$ac_ext <<_ACEOF
15226 cat confdefs.h
>>conftest.
$ac_ext
15227 cat >>conftest.
$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 #include <sys/sycall.h>
15231 #include <sys/types.h>
15232 #include <unistd.h>
15238 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15245 rm -f conftest.
$ac_objext conftest
$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1
>conftest.err
15251 cat conftest.err
>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try
='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try
='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15270 cat >>confdefs.h
<<\_ACEOF
15271 #define HAVE_SYS_FALLOCATE 1
15274 echo "$as_me:$LINENO: result: yes" >&5
15275 echo "${ECHO_T}yes" >&6
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.
$ac_ext >&5
15282 echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15286 rm -f conftest.err conftest.
$ac_objext \
15287 conftest
$ac_exeext conftest.
$ac_ext
15289 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15290 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15291 cat >conftest.
$ac_ext <<_ACEOF
15295 cat confdefs.h
>>conftest.
$ac_ext
15296 cat >>conftest.
$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 #define _XOPEN_SOURCE 600
15300 #include <stdlib.h>
15301 #ifdef HAVE_FCNTL_H
15302 # include <fcntl.h>
15309 posix_fallocate(0, 0, 0);
15316 rm -f conftest.
$ac_objext conftest
$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>conftest.er1
15320 grep -v '^ *+' conftest.er1
>conftest.err
15322 cat conftest.err
>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try
='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try
='test -s conftest$ac_exeext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15341 cat >>confdefs.h
<<\_ACEOF
15342 #define HAVE_POSIX_FALLOCATE 1
15345 echo "$as_me:$LINENO: result: yes" >&5
15346 echo "${ECHO_T}yes" >&6
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.
$ac_ext >&5
15353 echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6
15357 rm -f conftest.err conftest.
$ac_objext \
15358 conftest
$ac_exeext conftest.
$ac_ext
15361 # Checking Native Language Support
15365 if test -n "$ac_aux_dir"; then
15366 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15368 if test -z "$MKINSTALLDIRS"; then
15369 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15376 # Extract the first word of "msgfmt", so it can be a program name with args.
15377 set dummy msgfmt
; ac_word
=$2
15378 echo "$as_me:$LINENO: checking for $ac_word" >&5
15379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15380 if test "${ac_cv_path_MSGFMT+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15389 for ac_dir
in $PATH; do
15390 test -z "$ac_dir" && ac_dir
=.
15391 if test -f $ac_dir/$ac_word; then
15392 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15393 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15394 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15400 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15404 MSGFMT
="$ac_cv_path_MSGFMT"
15405 if test "$MSGFMT" != ":"; then
15406 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15407 echo "${ECHO_T}$MSGFMT" >&6
15409 echo "$as_me:$LINENO: result: no" >&5
15410 echo "${ECHO_T}no" >&6
15413 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15414 set dummy gmsgfmt
; ac_word
=$2
15415 echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15417 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15426 for as_dir
in $PATH
15429 test -z "$as_dir" && as_dir
=.
15430 for ac_exec_ext
in '' $ac_executable_extensions; do
15431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15443 GMSGFMT
=$ac_cv_path_GMSGFMT
15445 if test -n "$GMSGFMT"; then
15446 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15447 echo "${ECHO_T}$GMSGFMT" >&6
15449 echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6
15454 # Extract the first word of "xgettext", so it can be a program name with args.
15455 set dummy xgettext
; ac_word
=$2
15456 echo "$as_me:$LINENO: checking for $ac_word" >&5
15457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15458 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 case "$XGETTEXT" in
15463 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15467 for ac_dir
in $PATH; do
15468 test -z "$ac_dir" && ac_dir
=.
15469 if test -f $ac_dir/$ac_word; then
15470 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15471 (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
15472 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15482 XGETTEXT
="$ac_cv_path_XGETTEXT"
15483 if test "$XGETTEXT" != ":"; then
15484 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15485 echo "${ECHO_T}$XGETTEXT" >&6
15487 echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15493 # Extract the first word of "msgmerge", so it can be a program name with args.
15494 set dummy msgmerge
; ac_word
=$2
15495 echo "$as_me:$LINENO: checking for $ac_word" >&5
15496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15497 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 case "$MSGMERGE" in
15502 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15505 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15506 for ac_dir
in $PATH; do
15507 test -z "$ac_dir" && ac_dir
=.
15508 if test -f $ac_dir/$ac_word; then
15509 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15510 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15520 MSGMERGE
="$ac_cv_path_MSGMERGE"
15521 if test "$MSGMERGE" != ":"; then
15522 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15523 echo "${ECHO_T}$MSGMERGE" >&6
15525 echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6
15530 if test "$GMSGFMT" != ":"; then
15531 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15532 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15535 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15536 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15537 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15542 if test "$XGETTEXT" != ":"; then
15543 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15544 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15547 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15548 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15554 ac_config_commands
="$ac_config_commands default-1"
15557 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15558 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15559 if test "${ac_cv_search_strerror+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 ac_func_search_save_LIBS
=$LIBS
15563 ac_cv_search_strerror
=no
15564 cat >conftest.
$ac_ext <<_ACEOF
15567 cat confdefs.h
>>conftest.
$ac_ext
15568 cat >>conftest.
$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15571 /* Override any gcc2 internal prototype to avoid an error. */
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15586 rm -f conftest.
$ac_objext conftest
$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1
>conftest.err
15592 cat conftest.err
>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try
='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_search_strerror
="none required"
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15614 rm -f conftest.err conftest.
$ac_objext \
15615 conftest
$ac_exeext conftest.
$ac_ext
15616 if test "$ac_cv_search_strerror" = no
; then
15617 for ac_lib
in cposix
; do
15618 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15619 cat >conftest.
$ac_ext <<_ACEOF
15622 cat confdefs.h
>>conftest.
$ac_ext
15623 cat >>conftest.
$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 /* Override any gcc2 internal prototype to avoid an error. */
15630 /* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15641 rm -f conftest.
$ac_objext conftest
$ac_exeext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15643 (eval $ac_link) 2>conftest.er1
15645 grep -v '^ *+' conftest.er1
>conftest.err
15647 cat conftest.err
>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try
='test -z "$ac_c_werror_flag"
15651 || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try
='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_search_strerror
="-l$ac_lib"
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.
$ac_ext >&5
15670 rm -f conftest.err conftest.
$ac_objext \
15671 conftest
$ac_exeext conftest.
$ac_ext
15674 LIBS
=$ac_func_search_save_LIBS
15676 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15677 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15678 if test "$ac_cv_search_strerror" != no
; then
15679 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15684 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15685 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15686 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 cat >conftest.
$ac_ext <<_ACEOF
15692 cat confdefs.h
>>conftest.
$ac_ext
15693 cat >>conftest.
$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15696 #include <features.h>
15697 #ifdef __GNU_LIBRARY__
15698 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15705 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15706 ac_cv_gnu_library_2_1
=yes
15708 ac_cv_gnu_library_2_1
=no
15715 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15716 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15718 GLIBC21
="$ac_cv_gnu_library_2_1"
15723 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15724 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15725 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 if test "$cross_compiling" = yes; then
15731 # Guess based on the CPU.
15732 case "$host_cpu" in
15733 alpha
* | i3456786 | m68k | s390
*)
15734 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15736 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15740 cat >conftest.
$ac_ext <<_ACEOF
15743 cat confdefs.h
>>conftest.
$ac_ext
15744 cat >>conftest.
$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15747 #include <stdlib.h>
15748 #include <signal.h>
15752 sigfpe_handler (int sig)
15754 sigfpe_handler (sig) int sig;
15757 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15758 exit (sig != SIGFPE);
15768 signal (SIGFPE, sigfpe_handler);
15769 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15770 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15771 signal (SIGTRAP, sigfpe_handler);
15773 /* Linux/SPARC yields signal SIGILL. */
15774 #if defined (__sparc__) && defined (__linux__)
15775 signal (SIGILL, sigfpe_handler);
15784 rm -f conftest
$ac_exeext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 gt_cv_int_divbyzero_sigfpe
=yes
15797 echo "$as_me: program exited with status $ac_status" >&5
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.
$ac_ext >&5
15801 ( exit $ac_status )
15802 gt_cv_int_divbyzero_sigfpe
=no
15804 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15808 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15809 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15810 case "$gt_cv_int_divbyzero_sigfpe" in
15815 cat >>confdefs.h
<<_ACEOF
15816 #define INTDIV0_RAISES_SIGFPE $value
15821 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15822 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15823 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 cat >conftest.
$ac_ext <<_ACEOF
15829 cat confdefs.h
>>conftest.
$ac_ext
15830 cat >>conftest.
$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <sys/types.h>
15833 #include <inttypes.h>
15837 uintmax_t i = (uintmax_t) -1;
15842 rm -f conftest.
$ac_objext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844 (eval $ac_compile) 2>conftest.er1
15846 grep -v '^ *+' conftest.er1
>conftest.err
15848 cat conftest.err
>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try
='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try
='test -s conftest.$ac_objext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 jm_ac_cv_header_inttypes_h
=yes
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.
$ac_ext >&5
15869 jm_ac_cv_header_inttypes_h
=no
15871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15873 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15874 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15875 if test $jm_ac_cv_header_inttypes_h = yes; then
15877 cat >>confdefs.h
<<_ACEOF
15878 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15884 echo "$as_me:$LINENO: checking for stdint.h" >&5
15885 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15886 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 cat >conftest.
$ac_ext <<_ACEOF
15892 cat confdefs.h
>>conftest.
$ac_ext
15893 cat >>conftest.
$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <sys/types.h>
15896 #include <stdint.h>
15900 uintmax_t i = (uintmax_t) -1;
15905 rm -f conftest.
$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15909 grep -v '^ *+' conftest.er1
>conftest.err
15911 cat conftest.err
>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try
='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try
='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 jm_ac_cv_header_stdint_h
=yes
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.
$ac_ext >&5
15932 jm_ac_cv_header_stdint_h
=no
15934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15936 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15937 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15938 if test $jm_ac_cv_header_stdint_h = yes; then
15940 cat >>confdefs.h
<<_ACEOF
15941 #define HAVE_STDINT_H_WITH_UINTMAX 1
15947 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15948 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15949 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.
$ac_ext <<_ACEOF
15955 cat confdefs.h
>>conftest.
$ac_ext
15956 cat >>conftest.
$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 unsigned long long ull = 1; int i = 63;
15962 unsigned long long ullmax = (unsigned long long) -1;
15963 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15968 rm -f conftest.
$ac_objext conftest
$ac_exeext
15969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970 (eval $ac_link) 2>conftest.er1
15972 grep -v '^ *+' conftest.er1
>conftest.err
15974 cat conftest.err
>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try
='test -z "$ac_c_werror_flag"
15978 || test ! -s conftest.err'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try
='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_type_unsigned_long_long
=yes
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.
$ac_ext >&5
15995 ac_cv_type_unsigned_long_long
=no
15997 rm -f conftest.err conftest.
$ac_objext \
15998 conftest
$ac_exeext conftest.
$ac_ext
16000 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16001 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16002 if test $ac_cv_type_unsigned_long_long = yes; then
16004 cat >>confdefs.h
<<\_ACEOF
16005 #define HAVE_UNSIGNED_LONG_LONG 1
16013 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
16015 test $ac_cv_type_unsigned_long_long = yes \
16016 && ac_type
='unsigned long long' \
16017 || ac_type
='unsigned long'
16019 cat >>confdefs.h
<<_ACEOF
16020 #define uintmax_t $ac_type
16026 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16027 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16028 if test "${gt_cv_header_inttypes_h+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 cat >conftest.
$ac_ext <<_ACEOF
16035 cat confdefs.h
>>conftest.
$ac_ext
16036 cat >>conftest.
$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 #include <sys/types.h>
16039 #include <inttypes.h>
16048 rm -f conftest.
$ac_objext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050 (eval $ac_compile) 2>conftest.er1
16052 grep -v '^ *+' conftest.er1
>conftest.err
16054 cat conftest.err
>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try
='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try
='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 gt_cv_header_inttypes_h
=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.
$ac_ext >&5
16075 gt_cv_header_inttypes_h
=no
16077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16080 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16081 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16082 if test $gt_cv_header_inttypes_h = yes; then
16084 cat >>confdefs.h
<<_ACEOF
16085 #define HAVE_INTTYPES_H 1
16092 if test $gt_cv_header_inttypes_h = yes; then
16093 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16094 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16095 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 cat >conftest.
$ac_ext <<_ACEOF
16102 cat confdefs.h
>>conftest.
$ac_ext
16103 cat >>conftest.
$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #include <inttypes.h>
16118 rm -f conftest.
$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120 (eval $ac_compile) 2>conftest.er1
16122 grep -v '^ *+' conftest.er1
>conftest.err
16124 cat conftest.err
>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try
='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try
='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 gt_cv_inttypes_pri_broken
=no
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.
$ac_ext >&5
16145 gt_cv_inttypes_pri_broken
=yes
16147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16150 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16151 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16153 if test "$gt_cv_inttypes_pri_broken" = yes; then
16155 cat >>confdefs.h
<<_ACEOF
16156 #define PRI_MACROS_BROKEN 1
16162 if test "X$prefix" = "XNONE"; then
16163 acl_final_prefix
="$ac_default_prefix"
16165 acl_final_prefix
="$prefix"
16167 if test "X$exec_prefix" = "XNONE"; then
16168 acl_final_exec_prefix
='${prefix}'
16170 acl_final_exec_prefix
="$exec_prefix"
16172 acl_save_prefix
="$prefix"
16173 prefix
="$acl_final_prefix"
16174 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16175 prefix
="$acl_save_prefix"
16178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16179 if test "${with_gnu_ld+set}" = set; then
16180 withval
="$with_gnu_ld"
16181 test "$withval" = no || with_gnu_ld
=yes
16186 if test "$GCC" = yes; then
16187 # Check if gcc -print-prog-name=ld gives a path.
16188 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16189 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16192 # gcc leaves a trailing carriage return which upsets mingw
16193 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16195 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16198 # Accept absolute paths.
16199 [\\/]* |
[A-Za-z
]:[\\/]*)
16200 re_direlt
='/[^/][^/]*/\.\./'
16201 # Canonicalize the path of ld
16202 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16203 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16204 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16206 test -z "$LD" && LD
="$ac_prog"
16209 # If it fails, then pretend we aren't using GCC.
16213 # If it is relative, then search for the first ld in PATH.
16214 with_gnu_ld
=unknown
16217 elif test "$with_gnu_ld" = yes; then
16218 echo "$as_me:$LINENO: checking for GNU ld" >&5
16219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16221 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16224 if test "${acl_cv_path_LD+set}" = set; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 if test -z "$LD"; then
16228 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16229 for ac_dir
in $PATH; do
16230 test -z "$ac_dir" && ac_dir
=.
16231 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16232 acl_cv_path_LD
="$ac_dir/$ac_prog"
16233 # Check to see if the program is GNU ld. I'd rather use --version,
16234 # but apparently some GNU ld's only accept -v.
16235 # Break only if it was the GNU/non-GNU ld that we prefer.
16236 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16237 test "$with_gnu_ld" != no
&& break
16239 test "$with_gnu_ld" != yes && break
16245 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16249 LD
="$acl_cv_path_LD"
16250 if test -n "$LD"; then
16251 echo "$as_me:$LINENO: result: $LD" >&5
16252 echo "${ECHO_T}$LD" >&6
16254 echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6
16257 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16258 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16259 { (exit 1); exit 1; }; }
16260 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16261 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16262 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16266 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16267 acl_cv_prog_gnu_ld
=yes
16269 acl_cv_prog_gnu_ld
=no
16272 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16273 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16274 with_gnu_ld
=$acl_cv_prog_gnu_ld
16278 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16279 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16280 if test "${acl_cv_rpath+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16285 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16287 rm -f .
/conftest.sh
16291 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16292 echo "${ECHO_T}$acl_cv_rpath" >&6
16294 libext
="$acl_cv_libext"
16295 shlibext
="$acl_cv_shlibext"
16296 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16297 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16298 hardcode_direct
="$acl_cv_hardcode_direct"
16299 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16300 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16301 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16302 # Check whether --enable-rpath or --disable-rpath was given.
16303 if test "${enable_rpath+set}" = set; then
16304 enableval
="$enable_rpath"
16318 acl_save_prefix
="$prefix"
16319 prefix
="$acl_final_prefix"
16320 acl_save_exec_prefix
="$exec_prefix"
16321 exec_prefix
="$acl_final_exec_prefix"
16323 eval additional_includedir
=\"$includedir\"
16324 eval additional_libdir
=\"$libdir\"
16326 exec_prefix
="$acl_save_exec_prefix"
16327 prefix
="$acl_save_prefix"
16330 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16331 if test "${with_libiconv_prefix+set}" = set; then
16332 withval
="$with_libiconv_prefix"
16334 if test "X$withval" = "Xno"; then
16337 if test "X$withval" = "X"; then
16339 acl_save_prefix
="$prefix"
16340 prefix
="$acl_final_prefix"
16341 acl_save_exec_prefix
="$exec_prefix"
16342 exec_prefix
="$acl_final_exec_prefix"
16344 eval additional_includedir
=\"$includedir\"
16345 eval additional_libdir
=\"$libdir\"
16347 exec_prefix
="$acl_save_exec_prefix"
16348 prefix
="$acl_save_prefix"
16351 additional_includedir
="$withval/include"
16352 additional_libdir
="$withval/lib"
16362 names_already_handled
=
16363 names_next_round
='iconv '
16364 while test -n "$names_next_round"; do
16365 names_this_round
="$names_next_round"
16367 for name
in $names_this_round; do
16369 for n
in $names_already_handled; do
16370 if test "$n" = "$name"; then
16371 already_handled
=yes
16375 if test -z "$already_handled"; then
16376 names_already_handled
="$names_already_handled $name"
16377 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16378 eval value
=\"\
$HAVE_LIB$uppername\"
16379 if test -n "$value"; then
16380 if test "$value" = yes; then
16381 eval value
=\"\
$LIB$uppername\"
16382 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16383 eval value
=\"\
$LTLIB$uppername\"
16384 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16393 if test $use_additional = yes; then
16394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16395 found_dir
="$additional_libdir"
16396 found_so
="$additional_libdir/lib$name.$shlibext"
16397 if test -f "$additional_libdir/lib$name.la"; then
16398 found_la
="$additional_libdir/lib$name.la"
16401 if test -f "$additional_libdir/lib$name.$libext"; then
16402 found_dir
="$additional_libdir"
16403 found_a
="$additional_libdir/lib$name.$libext"
16404 if test -f "$additional_libdir/lib$name.la"; then
16405 found_la
="$additional_libdir/lib$name.la"
16410 if test "X$found_dir" = "X"; then
16411 for x
in $LDFLAGS $LTLIBICONV; do
16413 acl_save_prefix
="$prefix"
16414 prefix
="$acl_final_prefix"
16415 acl_save_exec_prefix
="$exec_prefix"
16416 exec_prefix
="$acl_final_exec_prefix"
16418 exec_prefix
="$acl_save_exec_prefix"
16419 prefix
="$acl_save_prefix"
16423 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16426 found_so
="$dir/lib$name.$shlibext"
16427 if test -f "$dir/lib$name.la"; then
16428 found_la
="$dir/lib$name.la"
16431 if test -f "$dir/lib$name.$libext"; then
16433 found_a
="$dir/lib$name.$libext"
16434 if test -f "$dir/lib$name.la"; then
16435 found_la
="$dir/lib$name.la"
16441 if test "X$found_dir" != "X"; then
16446 if test "X$found_dir" != "X"; then
16447 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16448 if test "X$found_so" != "X"; then
16449 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16450 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16453 for x
in $ltrpathdirs; do
16454 if test "X$x" = "X$found_dir"; then
16459 if test -z "$haveit"; then
16460 ltrpathdirs
="$ltrpathdirs $found_dir"
16462 if test "$hardcode_direct" = yes; then
16463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16466 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16468 for x
in $rpathdirs; do
16469 if test "X$x" = "X$found_dir"; then
16474 if test -z "$haveit"; then
16475 rpathdirs
="$rpathdirs $found_dir"
16479 for x
in $LDFLAGS $LIBICONV; do
16481 acl_save_prefix
="$prefix"
16482 prefix
="$acl_final_prefix"
16483 acl_save_exec_prefix
="$exec_prefix"
16484 exec_prefix
="$acl_final_exec_prefix"
16486 exec_prefix
="$acl_save_exec_prefix"
16487 prefix
="$acl_save_prefix"
16489 if test "X$x" = "X-L$found_dir"; then
16494 if test -z "$haveit"; then
16495 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16497 if test "$hardcode_minus_L" != no
; then
16498 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16500 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16506 if test "X$found_a" != "X"; then
16507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16509 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16512 additional_includedir
=
16513 case "$found_dir" in
16515 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16516 additional_includedir
="$basedir/include"
16519 if test "X$additional_includedir" != "X"; then
16520 if test "X$additional_includedir" != "X/usr/include"; then
16522 if test "X$additional_includedir" = "X/usr/local/include"; then
16523 if test -n "$GCC"; then
16525 linux
*) haveit
=yes;;
16529 if test -z "$haveit"; then
16530 for x
in $CPPFLAGS $INCICONV; do
16532 acl_save_prefix
="$prefix"
16533 prefix
="$acl_final_prefix"
16534 acl_save_exec_prefix
="$exec_prefix"
16535 exec_prefix
="$acl_final_exec_prefix"
16537 exec_prefix
="$acl_save_exec_prefix"
16538 prefix
="$acl_save_prefix"
16540 if test "X$x" = "X-I$additional_includedir"; then
16545 if test -z "$haveit"; then
16546 if test -d "$additional_includedir"; then
16547 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16553 if test -n "$found_la"; then
16554 save_libdir
="$libdir"
16555 case "$found_la" in
16556 */* |
*\\*) .
"$found_la" ;;
16557 *) .
"./$found_la" ;;
16559 libdir
="$save_libdir"
16560 for dep
in $dependency_libs; do
16563 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16564 if test "X$additional_libdir" != "X/usr/lib"; then
16566 if test "X$additional_libdir" = "X/usr/local/lib"; then
16567 if test -n "$GCC"; then
16569 linux
*) haveit
=yes;;
16573 if test -z "$haveit"; then
16575 for x
in $LDFLAGS $LIBICONV; do
16577 acl_save_prefix
="$prefix"
16578 prefix
="$acl_final_prefix"
16579 acl_save_exec_prefix
="$exec_prefix"
16580 exec_prefix
="$acl_final_exec_prefix"
16582 exec_prefix
="$acl_save_exec_prefix"
16583 prefix
="$acl_save_prefix"
16585 if test "X$x" = "X-L$additional_libdir"; then
16590 if test -z "$haveit"; then
16591 if test -d "$additional_libdir"; then
16592 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16596 for x
in $LDFLAGS $LTLIBICONV; do
16598 acl_save_prefix
="$prefix"
16599 prefix
="$acl_final_prefix"
16600 acl_save_exec_prefix
="$exec_prefix"
16601 exec_prefix
="$acl_final_exec_prefix"
16603 exec_prefix
="$acl_save_exec_prefix"
16604 prefix
="$acl_save_prefix"
16606 if test "X$x" = "X-L$additional_libdir"; then
16611 if test -z "$haveit"; then
16612 if test -d "$additional_libdir"; then
16613 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16620 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16621 if test "$enable_rpath" != no
; then
16623 for x
in $rpathdirs; do
16624 if test "X$x" = "X$dir"; then
16629 if test -z "$haveit"; then
16630 rpathdirs
="$rpathdirs $dir"
16633 for x
in $ltrpathdirs; do
16634 if test "X$x" = "X$dir"; then
16639 if test -z "$haveit"; then
16640 ltrpathdirs
="$ltrpathdirs $dir"
16645 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16648 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16651 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16658 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16659 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16665 if test "X$rpathdirs" != "X"; then
16666 if test -n "$hardcode_libdir_separator"; then
16668 for found_dir
in $rpathdirs; do
16669 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16671 acl_save_libdir
="$libdir"
16673 eval flag
=\"$hardcode_libdir_flag_spec\"
16674 libdir
="$acl_save_libdir"
16675 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16677 for found_dir
in $rpathdirs; do
16678 acl_save_libdir
="$libdir"
16679 libdir
="$found_dir"
16680 eval flag
=\"$hardcode_libdir_flag_spec\"
16681 libdir
="$acl_save_libdir"
16682 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16686 if test "X$ltrpathdirs" != "X"; then
16687 for found_dir
in $ltrpathdirs; do
16688 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16705 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16706 stdlib.h string.h unistd.h sys
/param.h
16708 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16710 echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16718 # Is the header compilable?
16719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16721 cat >conftest.
$ac_ext <<_ACEOF
16724 cat confdefs.h
>>conftest.
$ac_ext
16725 cat >>conftest.
$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $ac_includes_default
16728 #include <$ac_header>
16730 rm -f conftest.
$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>conftest.er1
16734 grep -v '^ *+' conftest.er1
>conftest.err
16736 cat conftest.err
>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try
='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try
='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_header_compiler
=yes
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.
$ac_ext >&5
16757 ac_header_compiler
=no
16759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16761 echo "${ECHO_T}$ac_header_compiler" >&6
16763 # Is the header present?
16764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16766 cat >conftest.
$ac_ext <<_ACEOF
16769 cat confdefs.h
>>conftest.
$ac_ext
16770 cat >>conftest.
$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 #include <$ac_header>
16774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16775 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16777 grep -v '^ *+' conftest.er1
>conftest.err
16779 cat conftest.err
>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } >/dev
/null
; then
16782 if test -s conftest.err
; then
16783 ac_cpp_err
=$ac_c_preproc_warn_flag
16784 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16791 if test -z "$ac_cpp_err"; then
16792 ac_header_preproc
=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.
$ac_ext >&5
16797 ac_header_preproc
=no
16799 rm -f conftest.err conftest.
$ac_ext
16800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16801 echo "${ECHO_T}$ac_header_preproc" >&6
16803 # So? What about this header?
16804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16810 ac_header_preproc
=yes
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16827 ## ------------------------------ ##
16828 ## Report this to admin@amule.org ##
16829 ## ------------------------------ ##
16832 sed "s/^/$as_me: WARNING: /" >&2
16835 echo "$as_me:$LINENO: checking for $ac_header" >&5
16836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 eval "$as_ac_Header=\$ac_header_preproc"
16842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16847 cat >>confdefs.h
<<_ACEOF
16848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16876 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16877 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16878 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.
$ac_ext <<_ACEOF
16889 cat confdefs.h
>>conftest.
$ac_ext
16890 cat >>conftest.
$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16909 /* Override any gcc2 internal prototype to avoid an error. */
16914 /* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16923 char (*f) () = $ac_func;
16932 return f != $ac_func;
16937 rm -f conftest.
$ac_objext conftest
$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16941 grep -v '^ *+' conftest.er1
>conftest.err
16943 cat conftest.err
>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try
='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try
='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.
$ac_ext >&5
16964 eval "$as_ac_var=no"
16966 rm -f conftest.err conftest.
$ac_objext \
16967 conftest
$ac_exeext conftest.
$ac_ext
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h
<<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16985 am_save_CPPFLAGS
="$CPPFLAGS"
16987 for element
in $INCICONV; do
16989 for x
in $CPPFLAGS; do
16991 acl_save_prefix
="$prefix"
16992 prefix
="$acl_final_prefix"
16993 acl_save_exec_prefix
="$exec_prefix"
16994 exec_prefix
="$acl_final_exec_prefix"
16996 exec_prefix
="$acl_save_exec_prefix"
16997 prefix
="$acl_save_prefix"
16999 if test "X$x" = "X$element"; then
17004 if test -z "$haveit"; then
17005 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17010 echo "$as_me:$LINENO: checking for iconv" >&5
17011 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17012 if test "${am_cv_func_iconv+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 am_cv_func_iconv
="no, consider installing GNU libiconv"
17018 cat >conftest.
$ac_ext <<_ACEOF
17021 cat confdefs.h
>>conftest.
$ac_ext
17022 cat >>conftest.
$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 #include <stdlib.h>
17029 iconv_t cd = iconv_open("","");
17030 iconv(cd,NULL,NULL,NULL,NULL);
17036 rm -f conftest.
$ac_objext conftest
$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>conftest.er1
17040 grep -v '^ *+' conftest.er1
>conftest.err
17042 cat conftest.err
>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try
='test -z "$ac_c_werror_flag"
17046 || test ! -s conftest.err'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try
='test -s conftest$ac_exeext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 am_cv_func_iconv
=yes
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.
$ac_ext >&5
17064 rm -f conftest.err conftest.
$ac_objext \
17065 conftest
$ac_exeext conftest.
$ac_ext
17066 if test "$am_cv_func_iconv" != yes; then
17067 am_save_LIBS
="$LIBS"
17068 LIBS
="$LIBS $LIBICONV"
17069 cat >conftest.
$ac_ext <<_ACEOF
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <stdlib.h>
17080 iconv_t cd = iconv_open("","");
17081 iconv(cd,NULL,NULL,NULL,NULL);
17087 rm -f conftest.
$ac_objext conftest
$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089 (eval $ac_link) 2>conftest.er1
17091 grep -v '^ *+' conftest.er1
>conftest.err
17093 cat conftest.err
>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try
='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try
='test -s conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 am_cv_lib_iconv
=yes
17110 am_cv_func_iconv
=yes
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.
$ac_ext >&5
17116 rm -f conftest.err conftest.
$ac_objext \
17117 conftest
$ac_exeext conftest.
$ac_ext
17118 LIBS
="$am_save_LIBS"
17122 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17123 echo "${ECHO_T}$am_cv_func_iconv" >&6
17124 if test "$am_cv_func_iconv" = yes; then
17126 cat >>confdefs.h
<<\_ACEOF
17127 #define HAVE_ICONV 1
17131 if test "$am_cv_lib_iconv" = yes; then
17132 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17133 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17134 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17135 echo "${ECHO_T}$LIBICONV" >&6
17137 CPPFLAGS
="$am_save_CPPFLAGS"
17144 if test "$am_cv_func_iconv" = yes; then
17145 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17146 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17147 if test "${am_cv_proto_iconv+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.
$ac_ext <<_ACEOF
17154 cat confdefs.h
>>conftest.
$ac_ext
17155 cat >>conftest.
$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 #include <stdlib.h>
17164 #if defined(__STDC__) || defined(__cplusplus)
17165 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17178 rm -f conftest.
$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>conftest.er1
17182 grep -v '^ *+' conftest.er1
>conftest.err
17184 cat conftest.err
>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try
='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try
='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 am_cv_proto_iconv_arg1
=""
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.
$ac_ext >&5
17205 am_cv_proto_iconv_arg1
="const"
17207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17208 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);"
17211 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17212 echo "$as_me:$LINENO: result: ${ac_t:-
17213 }$am_cv_proto_iconv" >&5
17214 echo "${ECHO_T}${ac_t:-
17215 }$am_cv_proto_iconv" >&6
17217 cat >>confdefs.h
<<_ACEOF
17218 #define ICONV_CONST $am_cv_proto_iconv_arg1
17224 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17225 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17226 if test "${am_cv_langinfo_codeset+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 cat >conftest.
$ac_ext <<_ACEOF
17232 cat confdefs.h
>>conftest.
$ac_ext
17233 cat >>conftest.
$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <langinfo.h>
17239 char* cs = nl_langinfo(CODESET);
17244 rm -f conftest.
$ac_objext conftest
$ac_exeext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17246 (eval $ac_link) 2>conftest.er1
17248 grep -v '^ *+' conftest.er1
>conftest.err
17250 cat conftest.err
>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try
='test -z "$ac_c_werror_flag"
17254 || test ! -s conftest.err'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try
='test -s conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 am_cv_langinfo_codeset
=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.
$ac_ext >&5
17271 am_cv_langinfo_codeset
=no
17273 rm -f conftest.err conftest.
$ac_objext \
17274 conftest
$ac_exeext conftest.
$ac_ext
17277 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17278 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17279 if test $am_cv_langinfo_codeset = yes; then
17281 cat >>confdefs.h
<<\_ACEOF
17282 #define HAVE_LANGINFO_CODESET 1
17287 if test $ac_cv_header_locale_h = yes; then
17289 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17290 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17291 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 cat >conftest.
$ac_ext <<_ACEOF
17297 cat confdefs.h
>>conftest.
$ac_ext
17298 cat >>conftest.
$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #include <locale.h>
17309 rm -f conftest.
$ac_objext conftest
$ac_exeext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311 (eval $ac_link) 2>conftest.er1
17313 grep -v '^ *+' conftest.er1
>conftest.err
17315 cat conftest.err
>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try
='test -z "$ac_c_werror_flag"
17319 || test ! -s conftest.err'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try
='test -s conftest$ac_exeext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 am_cv_val_LC_MESSAGES
=yes
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.
$ac_ext >&5
17336 am_cv_val_LC_MESSAGES
=no
17338 rm -f conftest.err conftest.
$ac_objext \
17339 conftest
$ac_exeext conftest.
$ac_ext
17341 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17342 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17343 if test $am_cv_val_LC_MESSAGES = yes; then
17345 cat >>confdefs.h
<<\_ACEOF
17346 #define HAVE_LC_MESSAGES 1
17353 for ac_prog
in bison
17355 # Extract the first word of "$ac_prog", so it can be a program name with args.
17356 set dummy
$ac_prog; ac_word
=$2
17357 echo "$as_me:$LINENO: checking for $ac_word" >&5
17358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17359 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 if test -n "$INTLBISON"; then
17363 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17366 for as_dir
in $PATH
17369 test -z "$as_dir" && as_dir
=.
17370 for ac_exec_ext
in '' $ac_executable_extensions; do
17371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17372 ac_cv_prog_INTLBISON
="$ac_prog"
17373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17381 INTLBISON
=$ac_cv_prog_INTLBISON
17382 if test -n "$INTLBISON"; then
17383 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17384 echo "${ECHO_T}$INTLBISON" >&6
17386 echo "$as_me:$LINENO: result: no" >&5
17387 echo "${ECHO_T}no" >&6
17390 test -n "$INTLBISON" && break
17393 if test -z "$INTLBISON"; then
17396 echo "$as_me:$LINENO: checking version of bison" >&5
17397 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17398 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17399 case $ac_prog_version in
17400 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17401 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17402 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17403 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17405 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17406 echo "${ECHO_T}$ac_prog_version" >&6
17408 if test $ac_verc_fail = yes; then
17414 # Check whether --with-language or --without-language was given.
17415 if test "${with_language+set}" = set; then
17416 withval
="$with_language"
17417 if test "$withval" = "all"; then
17420 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17439 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17440 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17441 # Check whether --enable-nls or --disable-nls was given.
17442 if test "${enable_nls+set}" = set; then
17443 enableval
="$enable_nls"
17448 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17449 echo "${ECHO_T}$USE_NLS" >&6
17453 BUILD_INCLUDED_LIBINTL
=no
17454 USE_INCLUDED_LIBINTL
=no
17460 if test "$USE_NLS" = "yes"; then
17461 gt_use_preinstalled_gnugettext
=no
17463 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17464 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17466 # Check whether --with-included-gettext or --without-included-gettext was given.
17467 if test "${with_included_gettext+set}" = set; then
17468 withval
="$with_included_gettext"
17469 nls_cv_force_use_gnu_gettext
=$withval
17471 nls_cv_force_use_gnu_gettext
=no
17473 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17474 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17476 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17477 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17484 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17485 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17486 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 cat >conftest.
$ac_ext <<_ACEOF
17492 cat confdefs.h
>>conftest.
$ac_ext
17493 cat >>conftest.
$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <libintl.h>
17496 extern int _nl_msg_cat_cntr;
17497 extern int *_nl_domain_bindings;
17501 bindtextdomain ("", "");
17502 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17507 rm -f conftest.
$ac_objext conftest
$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17511 grep -v '^ *+' conftest.er1
>conftest.err
17513 cat conftest.err
>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try
='test -z "$ac_c_werror_flag"
17517 || test ! -s conftest.err'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try
='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 gt_cv_func_gnugettext2_libc
=yes
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.
$ac_ext >&5
17534 gt_cv_func_gnugettext2_libc
=no
17536 rm -f conftest.err conftest.
$ac_objext \
17537 conftest
$ac_exeext conftest.
$ac_ext
17539 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17540 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17542 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17548 acl_save_prefix
="$prefix"
17549 prefix
="$acl_final_prefix"
17550 acl_save_exec_prefix
="$exec_prefix"
17551 exec_prefix
="$acl_final_exec_prefix"
17553 eval additional_includedir
=\"$includedir\"
17554 eval additional_libdir
=\"$libdir\"
17556 exec_prefix
="$acl_save_exec_prefix"
17557 prefix
="$acl_save_prefix"
17560 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17561 if test "${with_libintl_prefix+set}" = set; then
17562 withval
="$with_libintl_prefix"
17564 if test "X$withval" = "Xno"; then
17567 if test "X$withval" = "X"; then
17569 acl_save_prefix
="$prefix"
17570 prefix
="$acl_final_prefix"
17571 acl_save_exec_prefix
="$exec_prefix"
17572 exec_prefix
="$acl_final_exec_prefix"
17574 eval additional_includedir
=\"$includedir\"
17575 eval additional_libdir
=\"$libdir\"
17577 exec_prefix
="$acl_save_exec_prefix"
17578 prefix
="$acl_save_prefix"
17581 additional_includedir
="$withval/include"
17582 additional_libdir
="$withval/lib"
17592 names_already_handled
=
17593 names_next_round
='intl '
17594 while test -n "$names_next_round"; do
17595 names_this_round
="$names_next_round"
17597 for name
in $names_this_round; do
17599 for n
in $names_already_handled; do
17600 if test "$n" = "$name"; then
17601 already_handled
=yes
17605 if test -z "$already_handled"; then
17606 names_already_handled
="$names_already_handled $name"
17607 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17608 eval value
=\"\
$HAVE_LIB$uppername\"
17609 if test -n "$value"; then
17610 if test "$value" = yes; then
17611 eval value
=\"\
$LIB$uppername\"
17612 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17613 eval value
=\"\
$LTLIB$uppername\"
17614 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17623 if test $use_additional = yes; then
17624 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17625 found_dir
="$additional_libdir"
17626 found_so
="$additional_libdir/lib$name.$shlibext"
17627 if test -f "$additional_libdir/lib$name.la"; then
17628 found_la
="$additional_libdir/lib$name.la"
17631 if test -f "$additional_libdir/lib$name.$libext"; then
17632 found_dir
="$additional_libdir"
17633 found_a
="$additional_libdir/lib$name.$libext"
17634 if test -f "$additional_libdir/lib$name.la"; then
17635 found_la
="$additional_libdir/lib$name.la"
17640 if test "X$found_dir" = "X"; then
17641 for x
in $LDFLAGS $LTLIBINTL; do
17643 acl_save_prefix
="$prefix"
17644 prefix
="$acl_final_prefix"
17645 acl_save_exec_prefix
="$exec_prefix"
17646 exec_prefix
="$acl_final_exec_prefix"
17648 exec_prefix
="$acl_save_exec_prefix"
17649 prefix
="$acl_save_prefix"
17653 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17654 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17656 found_so
="$dir/lib$name.$shlibext"
17657 if test -f "$dir/lib$name.la"; then
17658 found_la
="$dir/lib$name.la"
17661 if test -f "$dir/lib$name.$libext"; then
17663 found_a
="$dir/lib$name.$libext"
17664 if test -f "$dir/lib$name.la"; then
17665 found_la
="$dir/lib$name.la"
17671 if test "X$found_dir" != "X"; then
17676 if test "X$found_dir" != "X"; then
17677 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17678 if test "X$found_so" != "X"; then
17679 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17680 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17683 for x
in $ltrpathdirs; do
17684 if test "X$x" = "X$found_dir"; then
17689 if test -z "$haveit"; then
17690 ltrpathdirs
="$ltrpathdirs $found_dir"
17692 if test "$hardcode_direct" = yes; then
17693 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17695 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17696 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17698 for x
in $rpathdirs; do
17699 if test "X$x" = "X$found_dir"; then
17704 if test -z "$haveit"; then
17705 rpathdirs
="$rpathdirs $found_dir"
17709 for x
in $LDFLAGS $LIBINTL; do
17711 acl_save_prefix
="$prefix"
17712 prefix
="$acl_final_prefix"
17713 acl_save_exec_prefix
="$exec_prefix"
17714 exec_prefix
="$acl_final_exec_prefix"
17716 exec_prefix
="$acl_save_exec_prefix"
17717 prefix
="$acl_save_prefix"
17719 if test "X$x" = "X-L$found_dir"; then
17724 if test -z "$haveit"; then
17725 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17727 if test "$hardcode_minus_L" != no
; then
17728 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17730 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17736 if test "X$found_a" != "X"; then
17737 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17739 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17742 additional_includedir
=
17743 case "$found_dir" in
17745 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17746 additional_includedir
="$basedir/include"
17749 if test "X$additional_includedir" != "X"; then
17750 if test "X$additional_includedir" != "X/usr/include"; then
17752 if test "X$additional_includedir" = "X/usr/local/include"; then
17753 if test -n "$GCC"; then
17755 linux
*) haveit
=yes;;
17759 if test -z "$haveit"; then
17760 for x
in $CPPFLAGS $INCINTL; do
17762 acl_save_prefix
="$prefix"
17763 prefix
="$acl_final_prefix"
17764 acl_save_exec_prefix
="$exec_prefix"
17765 exec_prefix
="$acl_final_exec_prefix"
17767 exec_prefix
="$acl_save_exec_prefix"
17768 prefix
="$acl_save_prefix"
17770 if test "X$x" = "X-I$additional_includedir"; then
17775 if test -z "$haveit"; then
17776 if test -d "$additional_includedir"; then
17777 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17783 if test -n "$found_la"; then
17784 save_libdir
="$libdir"
17785 case "$found_la" in
17786 */* |
*\\*) .
"$found_la" ;;
17787 *) .
"./$found_la" ;;
17789 libdir
="$save_libdir"
17790 for dep
in $dependency_libs; do
17793 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17794 if test "X$additional_libdir" != "X/usr/lib"; then
17796 if test "X$additional_libdir" = "X/usr/local/lib"; then
17797 if test -n "$GCC"; then
17799 linux
*) haveit
=yes;;
17803 if test -z "$haveit"; then
17805 for x
in $LDFLAGS $LIBINTL; do
17807 acl_save_prefix
="$prefix"
17808 prefix
="$acl_final_prefix"
17809 acl_save_exec_prefix
="$exec_prefix"
17810 exec_prefix
="$acl_final_exec_prefix"
17812 exec_prefix
="$acl_save_exec_prefix"
17813 prefix
="$acl_save_prefix"
17815 if test "X$x" = "X-L$additional_libdir"; then
17820 if test -z "$haveit"; then
17821 if test -d "$additional_libdir"; then
17822 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17826 for x
in $LDFLAGS $LTLIBINTL; do
17828 acl_save_prefix
="$prefix"
17829 prefix
="$acl_final_prefix"
17830 acl_save_exec_prefix
="$exec_prefix"
17831 exec_prefix
="$acl_final_exec_prefix"
17833 exec_prefix
="$acl_save_exec_prefix"
17834 prefix
="$acl_save_prefix"
17836 if test "X$x" = "X-L$additional_libdir"; then
17841 if test -z "$haveit"; then
17842 if test -d "$additional_libdir"; then
17843 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17850 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17851 if test "$enable_rpath" != no
; then
17853 for x
in $rpathdirs; do
17854 if test "X$x" = "X$dir"; then
17859 if test -z "$haveit"; then
17860 rpathdirs
="$rpathdirs $dir"
17863 for x
in $ltrpathdirs; do
17864 if test "X$x" = "X$dir"; then
17869 if test -z "$haveit"; then
17870 ltrpathdirs
="$ltrpathdirs $dir"
17875 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17878 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17881 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17882 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17888 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17889 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17895 if test "X$rpathdirs" != "X"; then
17896 if test -n "$hardcode_libdir_separator"; then
17898 for found_dir
in $rpathdirs; do
17899 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17901 acl_save_libdir
="$libdir"
17903 eval flag
=\"$hardcode_libdir_flag_spec\"
17904 libdir
="$acl_save_libdir"
17905 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17907 for found_dir
in $rpathdirs; do
17908 acl_save_libdir
="$libdir"
17909 libdir
="$found_dir"
17910 eval flag
=\"$hardcode_libdir_flag_spec\"
17911 libdir
="$acl_save_libdir"
17912 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17916 if test "X$ltrpathdirs" != "X"; then
17917 for found_dir
in $ltrpathdirs; do
17918 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17922 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17923 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17924 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 gt_save_CPPFLAGS
="$CPPFLAGS"
17928 CPPFLAGS
="$CPPFLAGS $INCINTL"
17929 gt_save_LIBS
="$LIBS"
17930 LIBS
="$LIBS $LIBINTL"
17931 cat >conftest.
$ac_ext <<_ACEOF
17934 cat confdefs.h
>>conftest.
$ac_ext
17935 cat >>conftest.
$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 #include <libintl.h>
17938 extern int _nl_msg_cat_cntr;
17943 const char *_nl_expand_alias ();
17947 bindtextdomain ("", "");
17948 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17953 rm -f conftest.
$ac_objext conftest
$ac_exeext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17955 (eval $ac_link) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1
>conftest.err
17959 cat conftest.err
>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try
='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try
='test -s conftest$ac_exeext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 gt_cv_func_gnugettext2_libintl
=yes
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.
$ac_ext >&5
17980 gt_cv_func_gnugettext2_libintl
=no
17982 rm -f conftest.err conftest.
$ac_objext \
17983 conftest
$ac_exeext conftest.
$ac_ext
17984 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17985 LIBS
="$LIBS $LIBICONV"
17986 cat >conftest.
$ac_ext <<_ACEOF
17989 cat confdefs.h
>>conftest.
$ac_ext
17990 cat >>conftest.
$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 #include <libintl.h>
17993 extern int _nl_msg_cat_cntr;
17998 const char *_nl_expand_alias ();
18002 bindtextdomain ("", "");
18003 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18008 rm -f conftest.
$ac_objext conftest
$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 (eval $ac_link) 2>conftest.er1
18012 grep -v '^ *+' conftest.er1
>conftest.err
18014 cat conftest.err
>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try
='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try
='test -s conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 LIBINTL
="$LIBINTL $LIBICONV"
18031 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
18032 gt_cv_func_gnugettext2_libintl
=yes
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.
$ac_ext >&5
18039 rm -f conftest.err conftest.
$ac_objext \
18040 conftest
$ac_exeext conftest.
$ac_ext
18042 CPPFLAGS
="$gt_save_CPPFLAGS"
18043 LIBS
="$gt_save_LIBS"
18045 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18046 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18049 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18050 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18051 && test "$PACKAGE" != gettext; }; then
18052 gt_use_preinstalled_gnugettext
=yes
18060 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18061 nls_cv_use_gnu_gettext
=yes
18065 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18066 INTLOBJS
="\$(GETTOBJS)"
18067 BUILD_INCLUDED_LIBINTL
=yes
18068 USE_INCLUDED_LIBINTL
=yes
18069 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
18070 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18071 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18074 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18075 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18080 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18081 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18083 cat >>confdefs.h
<<\_ACEOF
18084 #define ENABLE_NLS 1
18092 if test "$USE_NLS" = "yes"; then
18094 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18095 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18096 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18097 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18098 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18099 echo "${ECHO_T}$LIBINTL" >&6
18101 for element
in $INCINTL; do
18103 for x
in $CPPFLAGS; do
18105 acl_save_prefix
="$prefix"
18106 prefix
="$acl_final_prefix"
18107 acl_save_exec_prefix
="$exec_prefix"
18108 exec_prefix
="$acl_final_exec_prefix"
18110 exec_prefix
="$acl_save_exec_prefix"
18111 prefix
="$acl_save_prefix"
18113 if test "X$x" = "X$element"; then
18118 if test -z "$haveit"; then
18119 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18126 cat >>confdefs.h
<<\_ACEOF
18127 #define HAVE_GETTEXT 1
18131 cat >>confdefs.h
<<\_ACEOF
18132 #define HAVE_DCGETTEXT 1
18141 if test "$PACKAGE" = gettext; then
18142 BUILD_INCLUDED_LIBINTL
=yes
18150 nls_cv_header_intl
=
18151 nls_cv_header_libgt
=
18162 INTL_LIBTOOL_SUFFIX_PREFIX
=
18166 INTLLIBS
="$LIBINTL"
18173 if test $USE_INCLUDED_LIBINTL = yes; then
18174 INCINTL
=-I\
${top_builddir}/intl
18178 if test x
$USE_NLS = xyes
; then
18180 echo "$as_me:$LINENO: checking for autopoint" >&5
18181 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18182 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18183 if test -n "$autopoint_version"; then
18185 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18186 echo "${ECHO_T}yes ($autopoint_version)" >&6
18191 echo "$as_me:$LINENO: result: no" >&5
18192 echo "${ECHO_T}no" >&6
18200 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18201 { echo "$as_me:$LINENO: WARNING:
18202 You need to install GNU gettext/gettext-tools to compile aMule with
18204 echo "$as_me: WARNING:
18205 You need to install GNU gettext/gettext-tools to compile aMule with
18206 i18n support." >&2;}
18207 _mule_warning_9
=yes
18208 _mule_has_warnings
=yes
18213 if test ${USE_NLS:-no} = yes; then
18215 echo "$as_me:$LINENO: checking for requested languages" >&5
18216 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18217 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18219 if test "$AMULE_DAEMON" = "yes"; then
18221 if test -z "$LINGUAS"; then
18222 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18225 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18226 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18230 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18233 AMULE_DAEMON_MANPAGES
=
18239 if test "$AMULECMD" = "yes"; then
18241 if test -z "$LINGUAS"; then
18242 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18245 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18246 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18250 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18259 if test "$WEB" = "yes"; then
18261 if test -z "$LINGUAS"; then
18262 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18265 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18266 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18270 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18279 if test "$AMULE_GUI" = "yes"; then
18281 if test -z "$LINGUAS"; then
18282 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18285 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18286 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18290 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18293 AMULE_GUI_MANPAGES
=
18299 if test "$CAS" = "yes"; then
18301 if test -z "$LINGUAS"; then
18302 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18305 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18306 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18310 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18319 if test "$WXCAS" = "yes"; then
18321 if test -z "$LINGUAS"; then
18322 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18325 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18326 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18330 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18339 if test "$ED2K" = "yes"; then
18341 if test -z "$LINGUAS"; then
18342 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18345 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18346 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18350 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18359 if test "$ALC" = "yes"; then
18361 if test -z "$LINGUAS"; then
18362 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18365 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18366 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18370 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18379 if test "$ALCC" = "yes"; then
18381 if test -z "$LINGUAS"; then
18382 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18385 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18386 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18390 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18399 if test "$MONOLITHIC" = "yes"; then
18401 if test -z "$LINGUAS"; then
18402 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18405 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18406 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18410 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18413 MONOLITHIC_MANPAGES
=
18418 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18419 echo "${ECHO_T}${LINGUAS:-all}" >&6
18426 # Check for bfd.h (to have proper backtraces without using wxExecute)
18428 echo "$as_me:$LINENO: checking for bfd" >&5
18429 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18431 for bfd_ldadd
in "" "${LIBINTL}"; do
18432 mule_backup_LIBS
="$LIBS"
18433 mule_backup_LDFLAGS
="$LDFLAGS"
18434 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18435 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18436 cat >conftest.
$ac_ext <<_ACEOF
18440 cat confdefs.h
>>conftest.
$ac_ext
18441 cat >>conftest.
$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18444 #include <ansidecl.h>
18451 char *dummy = bfd_errmsg(bfd_get_error());
18458 rm -f conftest.
$ac_objext conftest
$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>conftest.er1
18462 grep -v '^ *+' conftest.er1
>conftest.err
18464 cat conftest.err
>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try
='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try
='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18482 BFD_CPPFLAGS
="-DHAVE_BFD"
18483 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18484 LIBS
="$mule_backup_LIBS"
18485 LDFLAGS
="$mule_backup_LDFLAGS"
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.
$ac_ext >&5
18493 rm -f conftest.err conftest.
$ac_objext \
18494 conftest
$ac_exeext conftest.
$ac_ext
18495 LIBS
="$mule_backup_LIBS"
18496 LDFLAGS
="$mule_backup_LDFLAGS"
18499 echo "$as_me:$LINENO: result: $result" >&5
18500 echo "${ECHO_T}$result" >&6
18502 if test $result = no
; then
18503 { echo "$as_me:$LINENO: WARNING:
18504 bfd.h not found or unusable, please install binutils development
18505 package if you are a developer or want to help testing aMule" >&5
18506 echo "$as_me: WARNING:
18507 bfd.h not found or unusable, please install binutils development
18508 package if you are a developer or want to help testing aMule" >&2;}
18509 _mule_warning_10
=yes
18510 _mule_has_warnings
=yes
18517 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18518 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18519 cat >conftest.
$ac_ext <<_ACEOF
18523 cat confdefs.h
>>conftest.
$ac_ext
18524 cat >>conftest.
$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 #include <execinfo.h>
18534 int n = backtrace(&bt, 1);
18535 const char **bt_syms = backtrace_symbols(bt, n);
18542 rm -f conftest.
$ac_objext conftest
$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try
='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try
='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18567 cat >>confdefs.h
<<\_ACEOF
18568 #define HAVE_EXECINFO 1
18571 echo "$as_me:$LINENO: result: yes" >&5
18572 echo "${ECHO_T}yes" >&6
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.
$ac_ext >&5
18579 echo "$as_me:$LINENO: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18583 rm -f conftest.err conftest.
$ac_objext \
18584 conftest
$ac_exeext conftest.
$ac_ext
18587 # Flush standard test results for speeding cache
18588 cat >confcache
<<\_ACEOF
18589 # This file is a shell script that caches the results of configure
18590 # tests run on this system so they can be shared between configure
18591 # scripts and configure runs, see configure's option --config-cache.
18592 # It is not useful on other systems. If it contains results you don't
18593 # want to keep, you may remove or edit it.
18595 # config.status only pays attention to the cache file if you give it
18596 # the --recheck option to rerun configure.
18598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18600 # following values.
18604 # The following way of writing the cache mishandles newlines in values,
18605 # but we know of no workaround that is simple, portable, and efficient.
18606 # So, don't put newlines in cache variables' values.
18607 # Ultrix sh set writes to stderr and can't be redirected directly,
18608 # and sets the high bit in the cache file unless we assign to the vars.
18611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18613 # `set' does not quote correctly, so add quotes (double-quote
18614 # substitution turns \\\\ into \\, and sed turns \\ into \).
18617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18620 # `set' quotes correctly as required by POSIX, so do not add quotes.
18622 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18631 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18633 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18634 if test -w $cache_file; then
18635 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18636 cat confcache
>$cache_file
18638 echo "not updating unwritable cache $cache_file"
18647 # Check whether --enable-debug or --disable-debug was given.
18648 if test "${enable_debug+set}" = set; then
18649 enableval
="$enable_debug"
18650 USE_DEBUG
=${enableval:-yes}
18655 if test $USE_DEBUG = yes; then
18657 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18659 MULECFLAGS
="$MULECFLAGS -g"
18660 MULECXXFLAGS
="$MULECXXFLAGS -g"
18662 if test ${GLIBCXX:-no} = yes; then
18663 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18666 if test ${GCC:-no} = yes; then
18668 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18669 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18673 if test ${SYS:-unknown} = win32
; then
18674 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18680 if test ${GCC:-no} = yes; then
18682 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18683 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18692 # Check whether --enable-optimize or --disable-optimize was given.
18693 if test "${enable_optimize+set}" = set; then
18694 enableval
="$enable_optimize"
18695 USE_OPTIMIZE
=${enableval:-no}
18700 if test $USE_OPTIMIZE = yes; then
18702 MULECFLAGS
="$MULECFLAGS -O2"
18703 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18709 # Check whether --enable-profile or --disable-profile was given.
18710 if test "${enable_profile+set}" = set; then
18711 enableval
="$enable_profile"
18712 USE_PROFILE
=${enableval:-no}
18717 if test $USE_PROFILE = yes; then
18720 MULECFLAGS
="$MULECFLAGS -pg"
18721 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18723 MULELDFLAGS
="$MULELDFLAGS -pg"
18729 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18730 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18731 # Check whether --enable-static or --disable-static was given.
18732 if test "${enable_static+set}" = set; then
18733 enableval
="$enable_static"
18734 if test ${enableval:-no} = yes; then
18735 MULELDFLAGS
="$MULELDFLAGS -static"
18739 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18740 echo "${ECHO_T}${enableval:-no}" >&6
18742 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18745 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18746 echo "$as_me:$LINENO: checking for docdir" >&5
18747 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18748 if test -z "$docdir"; then
18749 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18752 echo "$as_me:$LINENO: result: $docdir" >&5
18753 echo "${ECHO_T}$docdir" >&6
18755 # Try to set the SVN checkout-date
18756 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18757 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18758 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18760 svndate
="rev. `cat $srcdir/.svn-revision`"
18761 elif test -d $srcdir/.svn
# SVNDATE for svn
18763 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18765 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18766 echo "${ECHO_T}${svndate:-None required}" >&6
18767 if test -n "$svndate"; then
18770 cat >>confdefs.h
<<_ACEOF
18771 #define SVNDATE "$svndate"
18774 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18782 # Check whether --with-denoise-level or --without-denoise-level was given.
18783 if test "${with_denoise_level+set}" = set; then
18784 withval
="$with_denoise_level"
18788 echo "$as_me:$LINENO: checking denoising level" >&5
18789 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18790 if test ${with_denoise_level:-5} = yes; then
18791 with_denoise_level
=5
18794 if test ${with_denoise_level:-5} = no
; then
18795 with_denoise_level
=0
18798 if test ${with_denoise_level:-5} -gt 4; then
18799 if test "${svndate:+set}" = "set"; then
18800 with_denoise_level
=0
18802 with_denoise_level
=4
18807 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18808 echo "${ECHO_T}$with_denoise_level" >&6
18810 ac_config_commands
="$ac_config_commands denoiser"
18816 if test x
$WEB = xyes
; then
18826 if test x
$ED2K = xyes
; then
18836 if test x
$CAS = xyes
; then
18846 if test x
$WXCAS = xyes
; then
18856 if test x
$ALC = xyes
; then
18866 if test x
$ALCC = xyes
; then
18876 if test x
$AMULE_GUI = xyes
; then
18878 AMULE_GUI_FALSE
='#'
18886 if test x
$AMULE_DAEMON = xyes
; then
18888 AMULE_DAEMON_FALSE
='#'
18890 AMULE_DAEMON_TRUE
='#'
18891 AMULE_DAEMON_FALSE
=
18896 if test x
$AMULECMD = xyes
; then
18898 COMPILE_CMD_FALSE
='#'
18900 COMPILE_CMD_TRUE
='#'
18906 if test x
$MONOLITHIC = xyes
; then
18908 MONOLITHIC_FALSE
='#'
18910 MONOLITHIC_TRUE
='#'
18916 if test x
$XAS = xyes
; then
18926 if test x
$ENABLE_UPNP = xyes
; then
18928 ENABLE_UPNP_FALSE
='#'
18930 ENABLE_UPNP_TRUE
='#'
18936 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18937 ENABLE_IP2COUNTRY_TRUE
=
18938 ENABLE_IP2COUNTRY_FALSE
='#'
18940 ENABLE_IP2COUNTRY_TRUE
='#'
18941 ENABLE_IP2COUNTRY_FALSE
=
18946 if test x
$SYS = xwin32
; then
18948 SYS_WIN32_FALSE
='#'
18956 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18966 if test x
$SYS = xdarwin
; then
18967 NEED_CORESERVICES_TRUE
=
18968 NEED_CORESERVICES_FALSE
='#'
18970 NEED_CORESERVICES_TRUE
='#'
18971 NEED_CORESERVICES_FALSE
=
18976 if test x
$USE_NLS = xyes
; then
18978 COMPILE_NLS_FALSE
='#'
18980 COMPILE_NLS_TRUE
='#'
18986 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18987 GENERATE_FLEX_HEADER_TRUE
=
18988 GENERATE_FLEX_HEADER_FALSE
='#'
18990 GENERATE_FLEX_HEADER_TRUE
='#'
18991 GENERATE_FLEX_HEADER_FALSE
=
18996 if test x
$INSTALL_SKINS = xyes
; then
18997 INSTALL_SKINS_TRUE
=
18998 INSTALL_SKINS_FALSE
='#'
19000 INSTALL_SKINS_TRUE
='#'
19001 INSTALL_SKINS_FALSE
=
19005 # Check for readline library
19006 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
19008 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19009 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19010 if test "${vl_cv_lib_readline+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 for readline_lib
in readline edit editline
; do
19016 for termcap_lib
in "" termcap curses ncurses
; do
19017 if test -z "$termcap_lib"; then
19018 TRY_LIB
="-l$readline_lib"
19020 TRY_LIB
="-l$readline_lib -l$termcap_lib"
19022 LIBS
="$ORIG_LIBS $TRY_LIB"
19023 cat >conftest.
$ac_ext <<_ACEOF
19026 cat confdefs.h
>>conftest.
$ac_ext
19027 cat >>conftest.
$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any gcc2 internal prototype to avoid an error. */
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19045 rm -f conftest.
$ac_objext conftest
$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1
>conftest.err
19051 cat conftest.err
>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try
='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try
='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 vl_cv_lib_readline
="$TRY_LIB"
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.
$ac_ext >&5
19073 rm -f conftest.err conftest.
$ac_objext \
19074 conftest
$ac_exeext conftest.
$ac_ext
19075 if test -n "$vl_cv_lib_readline"; then
19079 if test -n "$vl_cv_lib_readline"; then
19083 if test -z "$vl_cv_lib_readline"; then
19084 vl_cv_lib_readline
="no"
19088 READLINE_LIBS
="$vl_cv_lib_readline"
19092 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19093 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19095 if test "$vl_cv_lib_readline" != "no"; then
19097 cat >>confdefs.h
<<\_ACEOF
19098 #define HAVE_LIBREADLINE 1
19103 for ac_header
in readline.h readline
/readline.h
19105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19107 echo "$as_me:$LINENO: checking for $ac_header" >&5
19108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19115 # Is the header compilable?
19116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19118 cat >conftest.
$ac_ext <<_ACEOF
19121 cat confdefs.h
>>conftest.
$ac_ext
19122 cat >>conftest.
$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19127 rm -f conftest.
$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19131 grep -v '^ *+' conftest.er1
>conftest.err
19133 cat conftest.err
>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try
='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try
='test -s conftest.$ac_objext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_header_compiler
=yes
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.
$ac_ext >&5
19154 ac_header_compiler
=no
19156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19158 echo "${ECHO_T}$ac_header_compiler" >&6
19160 # Is the header present?
19161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19163 cat >conftest.
$ac_ext <<_ACEOF
19166 cat confdefs.h
>>conftest.
$ac_ext
19167 cat >>conftest.
$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include <$ac_header>
19171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1
>conftest.err
19176 cat conftest.err
>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } >/dev
/null
; then
19179 if test -s conftest.err
; then
19180 ac_cpp_err
=$ac_c_preproc_warn_flag
19181 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19188 if test -z "$ac_cpp_err"; then
19189 ac_header_preproc
=yes
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.
$ac_ext >&5
19194 ac_header_preproc
=no
19196 rm -f conftest.err conftest.
$ac_ext
19197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19198 echo "${ECHO_T}$ac_header_preproc" >&6
19200 # So? What about this header?
19201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19207 ac_header_preproc
=yes
19210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19224 ## ------------------------------ ##
19225 ## Report this to admin@amule.org ##
19226 ## ------------------------------ ##
19229 sed "s/^/$as_me: WARNING: /" >&2
19232 echo "$as_me:$LINENO: checking for $ac_header" >&5
19233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 eval "$as_ac_Header=\$ac_header_preproc"
19239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19244 cat >>confdefs.h
<<_ACEOF
19245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19253 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19254 if test "${vl_cv_lib_readline_history+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 vl_cv_lib_readline_history
="no"
19259 cat >conftest.
$ac_ext <<_ACEOF
19262 cat confdefs.h
>>conftest.
$ac_ext
19263 cat >>conftest.
$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 /* Override any gcc2 internal prototype to avoid an error. */
19270 /* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272 char add_history ();
19281 rm -f conftest.
$ac_objext conftest
$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>conftest.er1
19285 grep -v '^ *+' conftest.er1
>conftest.err
19287 cat conftest.err
>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try
='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try
='test -s conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 vl_cv_lib_readline_history
="yes"
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.
$ac_ext >&5
19309 rm -f conftest.err conftest.
$ac_objext \
19310 conftest
$ac_exeext conftest.
$ac_ext
19313 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19314 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19315 if test "$vl_cv_lib_readline_history" = "yes"; then
19317 cat >>confdefs.h
<<\_ACEOF
19318 #define HAVE_READLINE_HISTORY 1
19323 for ac_header
in history.h readline
/history.h
19325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19327 echo "$as_me:$LINENO: checking for $ac_header" >&5
19328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19335 # Is the header compilable?
19336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19338 cat >conftest.
$ac_ext <<_ACEOF
19341 cat confdefs.h
>>conftest.
$ac_ext
19342 cat >>conftest.
$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 $ac_includes_default
19345 #include <$ac_header>
19347 rm -f conftest.
$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1
>conftest.err
19353 cat conftest.err
>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try
='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try
='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_header_compiler
=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.
$ac_ext >&5
19374 ac_header_compiler
=no
19376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19378 echo "${ECHO_T}$ac_header_compiler" >&6
19380 # Is the header present?
19381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19383 cat >conftest.
$ac_ext <<_ACEOF
19386 cat confdefs.h
>>conftest.
$ac_ext
19387 cat >>conftest.
$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 #include <$ac_header>
19391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1
>conftest.err
19396 cat conftest.err
>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } >/dev
/null
; then
19399 if test -s conftest.err
; then
19400 ac_cpp_err
=$ac_c_preproc_warn_flag
19401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19408 if test -z "$ac_cpp_err"; then
19409 ac_header_preproc
=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.
$ac_ext >&5
19414 ac_header_preproc
=no
19416 rm -f conftest.err conftest.
$ac_ext
19417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19418 echo "${ECHO_T}$ac_header_preproc" >&6
19420 # So? What about this header?
19421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19427 ac_header_preproc
=yes
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19444 ## ------------------------------ ##
19445 ## Report this to admin@amule.org ##
19446 ## ------------------------------ ##
19449 sed "s/^/$as_me: WARNING: /" >&2
19452 echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 eval "$as_ac_Header=\$ac_header_preproc"
19459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19464 cat >>confdefs.h
<<_ACEOF
19465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19479 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19482 # Check whether --enable-ccache or --disable-ccache was given.
19483 if test "${enable_ccache+set}" = set; then
19484 enableval
="$enable_ccache"
19489 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19490 if test "${with_ccache_prefix+set}" = set; then
19491 withval
="$with_ccache_prefix"
19495 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19496 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19497 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19498 echo "${ECHO_T}${enable_ccache:-no}" >&6
19500 if test ${enable_ccache:-no} = yes; then
19502 echo "$as_me:$LINENO: checking for ccache presence" >&5
19503 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19504 if test -z "$with_ccache_prefix"; then
19506 ccache_full
=`which ccache`
19507 with_ccache_prefix
=`dirname ${ccache_full}`
19511 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19513 echo "$as_me:$LINENO: result: yes" >&5
19514 echo "${ECHO_T}yes" >&6
19515 CC
="$with_ccache_prefix/ccache $CC"
19516 CXX
="$with_ccache_prefix/ccache $CXX"
19517 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19522 echo "$as_me:$LINENO: result: no" >&5
19523 echo "${ECHO_T}no" >&6
19532 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 unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19534 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19536 if test x
$SYS = xwin32
; then
19537 ac_config_files
="$ac_config_files version.rc"
19541 cat >confcache
<<\_ACEOF
19542 # This file is a shell script that caches the results of configure
19543 # tests run on this system so they can be shared between configure
19544 # scripts and configure runs, see configure's option --config-cache.
19545 # It is not useful on other systems. If it contains results you don't
19546 # want to keep, you may remove or edit it.
19548 # config.status only pays attention to the cache file if you give it
19549 # the --recheck option to rerun configure.
19551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19553 # following values.
19557 # The following way of writing the cache mishandles newlines in values,
19558 # but we know of no workaround that is simple, portable, and efficient.
19559 # So, don't put newlines in cache variables' values.
19560 # Ultrix sh set writes to stderr and can't be redirected directly,
19561 # and sets the high bit in the cache file unless we assign to the vars.
19564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19566 # `set' does not quote correctly, so add quotes (double-quote
19567 # substitution turns \\\\ into \\, and sed turns \\ into \).
19570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19573 # `set' quotes correctly as required by POSIX, so do not add quotes.
19575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19586 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19587 if test -w $cache_file; then
19588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19589 cat confcache
>$cache_file
19591 echo "not updating unwritable cache $cache_file"
19596 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19597 # Let make expand exec_prefix.
19598 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19602 # trailing colons and then remove the whole line if VPATH becomes empty
19603 # (actually we leave an empty line to preserve line numbers).
19604 if test "x$srcdir" = x.
; then
19605 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19606 s/:*\$(srcdir):*/:/;
19607 s/:*\${srcdir}:*/:/;
19609 s/^\([^=]*=[ ]*\):*/\1/;
19615 DEFS
=-DHAVE_CONFIG_H
19619 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19620 # 1. Remove the extension, and $U if already installed.
19621 ac_i
=`echo "$ac_i" |
19622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19624 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19625 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19627 LIBOBJS
=$ac_libobjs
19629 LTLIBOBJS
=$ac_ltlibobjs
19632 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19633 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19634 Usually this means the macro was only invoked conditionally." >&5
19635 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&2;}
19637 { (exit 1); exit 1; }; }
19639 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19640 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19641 Usually this means the macro was only invoked conditionally." >&5
19642 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19643 Usually this means the macro was only invoked conditionally." >&2;}
19644 { (exit 1); exit 1; }; }
19646 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19648 Usually this means the macro was only invoked conditionally." >&5
19649 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19650 Usually this means the macro was only invoked conditionally." >&2;}
19651 { (exit 1); exit 1; }; }
19653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19655 Usually this means the macro was only invoked conditionally." >&5
19656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19657 Usually this means the macro was only invoked conditionally." >&2;}
19658 { (exit 1); exit 1; }; }
19660 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19661 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19662 Usually this means the macro was only invoked conditionally." >&5
19663 echo "$as_me: error: conditional \"WEB\" was never defined.
19664 Usually this means the macro was only invoked conditionally." >&2;}
19665 { (exit 1); exit 1; }; }
19667 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19668 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19669 Usually this means the macro was only invoked conditionally." >&5
19670 echo "$as_me: error: conditional \"ED2K\" was never defined.
19671 Usually this means the macro was only invoked conditionally." >&2;}
19672 { (exit 1); exit 1; }; }
19674 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19675 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&5
19677 echo "$as_me: error: conditional \"CAS\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&2;}
19679 { (exit 1); exit 1; }; }
19681 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19682 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&5
19684 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&2;}
19686 { (exit 1); exit 1; }; }
19688 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19689 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&5
19691 echo "$as_me: error: conditional \"ALC\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&2;}
19693 { (exit 1); exit 1; }; }
19695 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19696 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&5
19698 echo "$as_me: error: conditional \"ALCC\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&2;}
19700 { (exit 1); exit 1; }; }
19702 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19703 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&5
19705 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&2;}
19707 { (exit 1); exit 1; }; }
19709 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19710 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&5
19712 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&2;}
19714 { (exit 1); exit 1; }; }
19716 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19717 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19718 Usually this means the macro was only invoked conditionally." >&5
19719 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&2;}
19721 { (exit 1); exit 1; }; }
19723 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19724 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19725 Usually this means the macro was only invoked conditionally." >&5
19726 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&2;}
19728 { (exit 1); exit 1; }; }
19730 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19731 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19732 Usually this means the macro was only invoked conditionally." >&5
19733 echo "$as_me: error: conditional \"XAS\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&2;}
19735 { (exit 1); exit 1; }; }
19737 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19738 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19739 Usually this means the macro was only invoked conditionally." >&5
19740 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&2;}
19742 { (exit 1); exit 1; }; }
19744 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19745 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19746 Usually this means the macro was only invoked conditionally." >&5
19747 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19748 Usually this means the macro was only invoked conditionally." >&2;}
19749 { (exit 1); exit 1; }; }
19751 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19752 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19753 Usually this means the macro was only invoked conditionally." >&5
19754 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19755 Usually this means the macro was only invoked conditionally." >&2;}
19756 { (exit 1); exit 1; }; }
19758 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19759 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19760 Usually this means the macro was only invoked conditionally." >&5
19761 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19762 Usually this means the macro was only invoked conditionally." >&2;}
19763 { (exit 1); exit 1; }; }
19765 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19766 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19767 Usually this means the macro was only invoked conditionally." >&5
19768 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19769 Usually this means the macro was only invoked conditionally." >&2;}
19770 { (exit 1); exit 1; }; }
19772 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19773 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&5
19775 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19776 Usually this means the macro was only invoked conditionally." >&2;}
19777 { (exit 1); exit 1; }; }
19779 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19780 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&5
19782 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19783 Usually this means the macro was only invoked conditionally." >&2;}
19784 { (exit 1); exit 1; }; }
19786 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19787 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&5
19789 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19790 Usually this means the macro was only invoked conditionally." >&2;}
19791 { (exit 1); exit 1; }; }
19794 : ${CONFIG_STATUS=./config.status}
19795 ac_clean_files_save
=$ac_clean_files
19796 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19797 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19798 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19799 cat >$CONFIG_STATUS <<_ACEOF
19801 # Generated by $as_me.
19802 # Run this file to recreate the current configuration.
19803 # Compiler output produced by configure, useful for debugging
19804 # configure, is in config.log if it exists.
19807 ac_cs_recheck=false
19809 SHELL=\${CONFIG_SHELL-$SHELL}
19812 cat >>$CONFIG_STATUS <<\_ACEOF
19813 ## --------------------- ##
19814 ## M4sh Initialization. ##
19815 ## --------------------- ##
19817 # Be Bourne compatible
19818 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19821 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19822 # is contrary to our usage. Disable this feature.
19823 alias -g '${1+"$@"}'='"$@"'
19824 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19827 DUALCASE
=1; export DUALCASE
# for MKS sh
19829 # Support unset when possible.
19830 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19837 # Work around bugs in pre-3.0 UWIN ksh.
19838 $as_unset ENV MAIL MAILPATH
19845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19847 LC_TELEPHONE LC_TIME
19849 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19850 eval $as_var=C
; export $as_var
19856 # Required to use basename.
19857 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19863 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19864 as_basename
=basename
19870 # Name of the executable.
19871 as_me
=`$as_basename "$0" ||
19872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19873 X"$0" : 'X\(//\)$' \| \
19874 X"$0" : 'X\(/\)$' \| \
19875 . : '\(.\)' 2>/dev/null ||
19877 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19878 /^X\/\(\/\/\)$/{ s//\1/; q; }
19879 /^X\/\(\/\).*/{ s//\1/; q; }
19883 # PATH needs CR, and LINENO needs CR and PATH.
19884 # Avoid depending upon Character Ranges.
19885 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19886 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19887 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19888 as_cr_digits
='0123456789'
19889 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19891 # The user is always right.
19892 if test "${PATH_SEPARATOR+set}" != set; then
19893 echo "#! /bin/sh" >conf$$.sh
19894 echo "exit 0" >>conf$$.sh
19896 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19905 as_lineno_1
=$LINENO
19906 as_lineno_2
=$LINENO
19907 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19908 test "x$as_lineno_1" != "x$as_lineno_2" &&
19909 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19910 # Find who we are. Look in the path if we contain no path at all
19913 *[\\/]* ) as_myself
=$0 ;;
19914 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19915 for as_dir
in $PATH
19918 test -z "$as_dir" && as_dir
=.
19919 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19924 # We did not find ourselves, most probably we were run as `sh COMMAND'
19925 # in which case we are not to be found in the path.
19926 if test "x$as_myself" = x
; then
19929 if test ! -f "$as_myself"; then
19930 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19931 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19932 { (exit 1); exit 1; }; }
19934 case $CONFIG_SHELL in
19936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19937 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19940 test -z "$as_dir" && as_dir
=.
19941 for as_base
in sh bash ksh sh5
; do
19944 if ("$as_dir/$as_base" -c '
19945 as_lineno_1=$LINENO
19946 as_lineno_2=$LINENO
19947 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19948 test "x$as_lineno_1" != "x$as_lineno_2" &&
19949 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19950 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19951 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19952 CONFIG_SHELL
=$as_dir/$as_base
19953 export CONFIG_SHELL
19954 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19962 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19963 # uniformly replaced by the line number. The first 'sed' inserts a
19964 # line-number line before each line; the second 'sed' does the real
19965 # work. The second script uses 'N' to pair each line-number line
19966 # with the numbered line, and appends trailing '-' during
19967 # substitution so that $LINENO is not a special case at line end.
19968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19969 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19970 sed '=' <$as_myself |
19975 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19978 s,^['$as_cr_digits']*\n,,
19979 ' >$as_me.lineno
&&
19980 chmod +x
$as_me.lineno ||
19981 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19982 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19983 { (exit 1); exit 1; }; }
19985 # Don't try to exec as it changes $[0], causing all sort of problems
19986 # (the dirname of $[0] is not the place where we might find the
19987 # original and so on. Autoconf is especially sensible to this).
19989 # Exit status is that of the last command.
19994 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19995 *c
*,-n*) ECHO_N
= ECHO_C
='
19997 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19998 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20001 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20007 rm -f conf$$ conf$$.exe conf$$.
file
20009 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20010 # We could just check for DJGPP; but this test a) works b) is more generic
20011 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20012 if test -f conf$$.exe
; then
20013 # Don't use ln at all; we don't have any links
20018 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20023 rm -f conf$$ conf$$.exe conf$$.
file
20025 if mkdir
-p .
2>/dev
/null
; then
20028 test -d .
/-p && rmdir .
/-p
20032 as_executable_p
="test -f"
20034 # Sed expression to map a string onto a valid CPP name.
20035 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20037 # Sed expression to map a string onto a valid variable name.
20038 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20042 # We need space, tab and new line, in precisely that order.
20052 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20053 # report actual input values of CONFIG_FILES etc. instead of their
20054 # values after options handling. Logging --version etc. is OK.
20058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20059 ## Running $as_me. ##
20064 This file was extended by aMule $as_me SVN, which was
20065 generated by GNU Autoconf 2.59. Invocation command line was
20067 CONFIG_FILES = $CONFIG_FILES
20068 CONFIG_HEADERS = $CONFIG_HEADERS
20069 CONFIG_LINKS = $CONFIG_LINKS
20070 CONFIG_COMMANDS = $CONFIG_COMMANDS
20074 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20078 # Files that config.status was made for.
20079 if test -n "$ac_config_files"; then
20080 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20083 if test -n "$ac_config_headers"; then
20084 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20087 if test -n "$ac_config_links"; then
20088 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20091 if test -n "$ac_config_commands"; then
20092 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20095 cat >>$CONFIG_STATUS <<\_ACEOF
20098 \`$as_me' instantiates files from templates according to the
20099 current configuration.
20101 Usage: $0 [OPTIONS] [FILE]...
20103 -h, --help print this help, then exit
20104 -V, --version print version number, then exit
20105 -q, --quiet do not print progress messages
20106 -d, --debug don't remove temporary files
20107 --recheck update $as_me by reconfiguring in the same conditions
20108 --file=FILE[:TEMPLATE]
20109 instantiate the configuration file FILE
20110 --header=FILE[:TEMPLATE]
20111 instantiate the configuration header FILE
20113 Configuration files:
20116 Configuration headers:
20119 Configuration commands:
20122 Report bugs to <bug-autoconf@gnu.org>."
20125 cat >>$CONFIG_STATUS <<_ACEOF
20127 aMule config.status SVN
20128 configured by $0, generated by GNU Autoconf 2.59,
20129 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20131 Copyright (C) 2003 Free Software Foundation, Inc.
20132 This config.status script is free software; the Free Software Foundation
20133 gives unlimited permission to copy, distribute and modify it."
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 # If no file are specified by the user, then we need to provide default
20140 # value. By we need to know if files were specified by the user.
20146 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20147 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20155 *) # This is not an option, so the user has probably given explicit
20158 ac_need_defaults
=false
;;
20162 # Handling of the options.
20164 cat >>$CONFIG_STATUS <<\_ACEOF
20165 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20167 --version |
--vers* |
-V )
20168 echo "$ac_cs_version"; exit 0 ;;
20170 # Conflict between --help and --header
20171 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20172 Try \`$0 --help' for more information." >&5
20173 echo "$as_me: error: ambiguous option: $1
20174 Try \`$0 --help' for more information." >&2;}
20175 { (exit 1); exit 1; }; };;
20176 --help |
--hel |
-h )
20177 echo "$ac_cs_usage"; exit 0 ;;
20178 --debug |
--d* |
-d )
20180 --file |
--fil |
--fi |
--f )
20182 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20183 ac_need_defaults
=false
;;
20184 --header |
--heade |
--head |
--hea )
20186 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20187 ac_need_defaults
=false
;;
20188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20189 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20192 # This is an error.
20193 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20194 Try \`$0 --help' for more information." >&5
20195 echo "$as_me: error: unrecognized option: $1
20196 Try \`$0 --help' for more information." >&2;}
20197 { (exit 1); exit 1; }; } ;;
20199 *) ac_config_targets
="$ac_config_targets $1" ;;
20205 ac_configure_extra_args
=
20207 if $ac_cs_silent; then
20209 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20213 cat >>$CONFIG_STATUS <<_ACEOF
20214 if \$ac_cs_recheck; then
20215 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20216 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20221 cat >>$CONFIG_STATUS <<_ACEOF
20223 # INIT-COMMANDS section.
20226 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20227 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20228 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20230 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20231 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20232 LINGUAS="${LINGUAS-%UNSET%}"
20234 denoiserlevel=$with_denoise_level
20240 cat >>$CONFIG_STATUS <<\_ACEOF
20241 for ac_config_target
in $ac_config_targets
20243 case "$ac_config_target" in
20244 # Handling of arguments.
20245 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20246 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20247 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20248 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20249 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20250 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20251 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20252 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20253 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20254 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20255 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20256 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20257 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20258 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20259 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20260 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20261 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20262 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20263 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20264 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20265 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20266 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20267 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20268 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20269 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20270 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20271 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20272 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20273 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20274 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20275 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20276 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20277 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20278 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20279 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20280 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20281 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20282 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20283 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20284 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20285 { (exit 1); exit 1; }; };;
20289 # If the user did not use the arguments to specify the items to instantiate,
20290 # then the envvar interface is used. Set only those that are not.
20291 # We use the long form for the default assignment because of an extremely
20292 # bizarre bug on SunOS 4.1.3.
20293 if $ac_need_defaults; then
20294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20299 # Have a temporary directory for convenience. Make it in the build tree
20300 # simply because there is no reason to put it here, and in addition,
20301 # creating and moving files from /tmp can sometimes cause problems.
20302 # Create a temporary directory, and hook for its removal unless debugging.
20305 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20306 trap '{ (exit 1); exit 1; }' 1 2 13 15
20309 # Create a (secure) tmp directory for tmp files.
20312 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20313 test -n "$tmp" && test -d "$tmp"
20316 tmp
=.
/confstat$$
-$RANDOM
20317 (umask 077 && mkdir
$tmp)
20320 echo "$me: cannot create a temporary directory in ." >&2
20321 { (exit 1); exit 1; }
20326 cat >>$CONFIG_STATUS <<_ACEOF
20329 # CONFIG_FILES section.
20332 # No need to generate the scripts if there are no CONFIG_FILES.
20333 # This happens for instance when ./config.status config.h
20334 if test -n "\$CONFIG_FILES"; then
20335 # Protect against being on the right side of a sed subst in config.status.
20336 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20337 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20338 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20339 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20340 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20341 s,@SHELL@,$SHELL,;t t
20342 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20343 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20344 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20345 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20346 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20347 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20348 s,@exec_prefix@,$exec_prefix,;t t
20349 s,@prefix@,$prefix,;t t
20350 s,@program_transform_name@,$program_transform_name,;t t
20351 s,@bindir@,$bindir,;t t
20352 s,@sbindir@,$sbindir,;t t
20353 s,@libexecdir@,$libexecdir,;t t
20354 s,@datadir@,$datadir,;t t
20355 s,@sysconfdir@,$sysconfdir,;t t
20356 s,@sharedstatedir@,$sharedstatedir,;t t
20357 s,@localstatedir@,$localstatedir,;t t
20358 s,@libdir@,$libdir,;t t
20359 s,@includedir@,$includedir,;t t
20360 s,@oldincludedir@,$oldincludedir,;t t
20361 s,@infodir@,$infodir,;t t
20362 s,@mandir@,$mandir,;t t
20363 s,@build_alias@,$build_alias,;t t
20364 s,@host_alias@,$host_alias,;t t
20365 s,@target_alias@,$target_alias,;t t
20366 s,@DEFS@,$DEFS,;t t
20367 s,@ECHO_C@,$ECHO_C,;t t
20368 s,@ECHO_N@,$ECHO_N,;t t
20369 s,@ECHO_T@,$ECHO_T,;t t
20370 s,@LIBS@,$LIBS,;t t
20371 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20372 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20373 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20374 s,@CYGPATH_W@,$CYGPATH_W,;t t
20375 s,@PACKAGE@,$PACKAGE,;t t
20376 s,@VERSION@,$VERSION,;t t
20377 s,@ACLOCAL@,$ACLOCAL,;t t
20378 s,@AUTOCONF@,$AUTOCONF,;t t
20379 s,@AUTOMAKE@,$AUTOMAKE,;t t
20380 s,@AUTOHEADER@,$AUTOHEADER,;t t
20381 s,@MAKEINFO@,$MAKEINFO,;t t
20382 s,@install_sh@,$install_sh,;t t
20383 s,@STRIP@,$STRIP,;t t
20384 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20385 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20386 s,@mkdir_p@,$mkdir_p,;t t
20388 s,@SET_MAKE@,$SET_MAKE,;t t
20389 s,@am__leading_dot@,$am__leading_dot,;t t
20390 s,@AMTAR@,$AMTAR,;t t
20391 s,@am__tar@,$am__tar,;t t
20392 s,@am__untar@,$am__untar,;t t
20393 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20394 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20395 s,@MAINT@,$MAINT,;t t
20396 s,@build@,$build,;t t
20397 s,@build_cpu@,$build_cpu,;t t
20398 s,@build_vendor@,$build_vendor,;t t
20399 s,@build_os@,$build_os,;t t
20400 s,@host@,$host,;t t
20401 s,@host_cpu@,$host_cpu,;t t
20402 s,@host_vendor@,$host_vendor,;t t
20403 s,@host_os@,$host_os,;t t
20404 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20405 s,@X11LIBS@,$X11LIBS,;t t
20406 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20407 s,@MULECFLAGS@,$MULECFLAGS,;t t
20408 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20409 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20410 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20412 s,@CXXFLAGS@,$CXXFLAGS,;t t
20413 s,@LDFLAGS@,$LDFLAGS,;t t
20414 s,@CPPFLAGS@,$CPPFLAGS,;t t
20415 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20416 s,@EXEEXT@,$EXEEXT,;t t
20417 s,@OBJEXT@,$OBJEXT,;t t
20418 s,@DEPDIR@,$DEPDIR,;t t
20419 s,@am__include@,$am__include,;t t
20420 s,@am__quote@,$am__quote,;t t
20421 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20422 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20423 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20424 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20425 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20426 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20427 s,@CXXCPP@,$CXXCPP,;t t
20429 s,@CFLAGS@,$CFLAGS,;t t
20430 s,@ac_ct_CC@,$ac_ct_CC,;t t
20431 s,@CCDEPMODE@,$CCDEPMODE,;t t
20432 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20433 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20435 s,@BUILD_CC@,$BUILD_CC,;t t
20436 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20439 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20440 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20441 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20442 s,@EGREP@,$EGREP,;t t
20444 s,@LEXLIB@,$LEXLIB,;t t
20445 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20446 s,@RANLIB@,$RANLIB,;t t
20447 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20448 s,@YACC@,$YACC,;t t
20450 s,@ac_ct_AR@,$ac_ct_AR,;t t
20452 s,@ac_ct_LD@,$ac_ct_LD,;t t
20453 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20454 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20455 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20456 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20457 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20458 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20459 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20460 s,@CAS_DEFS@,$CAS_DEFS,;t t
20461 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20462 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20463 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20464 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20465 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20466 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20467 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20468 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20469 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20470 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20471 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20472 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20473 s,@WX_LIBS@,$WX_LIBS,;t t
20474 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20475 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20476 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20477 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20478 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20479 s,@WX_UNICODE@,$WX_UNICODE,;t t
20480 s,@WX_DEBUG@,$WX_DEBUG,;t t
20481 s,@WX_SHARED@,$WX_SHARED,;t t
20482 s,@WX_PORT@,$WX_PORT,;t t
20483 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20484 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20486 s,@RCFLAGS@,$RCFLAGS,;t t
20487 s,@ac_ct_RC@,$ac_ct_RC,;t t
20488 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20489 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20490 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20491 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20492 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20493 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20494 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20495 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20496 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20497 s,@ALLOCA@,$ALLOCA,;t t
20498 s,@LIBOBJS@,$LIBOBJS,;t t
20499 s,@POW_LIB@,$POW_LIB,;t t
20500 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20501 s,@MSGFMT@,$MSGFMT,;t t
20502 s,@GMSGFMT@,$GMSGFMT,;t t
20503 s,@XGETTEXT@,$XGETTEXT,;t t
20504 s,@MSGMERGE@,$MSGMERGE,;t t
20505 s,@GLIBC21@,$GLIBC21,;t t
20506 s,@LIBICONV@,$LIBICONV,;t t
20507 s,@LTLIBICONV@,$LTLIBICONV,;t t
20508 s,@INTLBISON@,$INTLBISON,;t t
20509 s,@USE_NLS@,$USE_NLS,;t t
20510 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20511 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20512 s,@CATOBJEXT@,$CATOBJEXT,;t t
20513 s,@INTLOBJS@,$INTLOBJS,;t t
20514 s,@DATADIRNAME@,$DATADIRNAME,;t t
20515 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20516 s,@GENCAT@,$GENCAT,;t t
20517 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20518 s,@INTLLIBS@,$INTLLIBS,;t t
20519 s,@LIBINTL@,$LIBINTL,;t t
20520 s,@LTLIBINTL@,$LTLIBINTL,;t t
20521 s,@POSUB@,$POSUB,;t t
20522 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20523 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20524 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20525 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20526 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20527 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20528 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20529 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20530 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20531 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20532 s,@INCINTL@,$INCINTL,;t t
20533 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20534 s,@BFD_LIBS@,$BFD_LIBS,;t t
20535 s,@docdir@,$docdir,;t t
20536 s,@SVNDATE@,$SVNDATE,;t t
20537 s,@WEB_TRUE@,$WEB_TRUE,;t t
20538 s,@WEB_FALSE@,$WEB_FALSE,;t t
20539 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20540 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20541 s,@CAS_TRUE@,$CAS_TRUE,;t t
20542 s,@CAS_FALSE@,$CAS_FALSE,;t t
20543 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20544 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20545 s,@ALC_TRUE@,$ALC_TRUE,;t t
20546 s,@ALC_FALSE@,$ALC_FALSE,;t t
20547 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20548 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20549 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20550 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20551 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20552 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20553 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20554 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20555 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20556 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20557 s,@XAS_TRUE@,$XAS_TRUE,;t t
20558 s,@XAS_FALSE@,$XAS_FALSE,;t t
20559 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20560 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20561 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20562 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20563 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20564 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20565 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20566 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20567 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20568 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20569 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20570 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20571 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20572 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20573 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20574 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20575 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20576 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20581 cat >>$CONFIG_STATUS <<\_ACEOF
20582 # Split the substitutions into bite-sized pieces for seds with
20583 # small command number limits, like on Digital OSF/1 and HP-UX.
20584 ac_max_sed_lines
=48
20585 ac_sed_frag
=1 # Number of current file.
20586 ac_beg
=1 # First line for current file.
20587 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20590 while $ac_more_lines; do
20591 if test $ac_beg -gt 1; then
20592 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20594 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20596 if test ! -s $tmp/subs.frag
; then
20597 ac_more_lines
=false
20599 # The purpose of the label and of the branching condition is to
20600 # speed up the sed processing (if there are no `@' at all, there
20601 # is no need to browse any of the substitutions).
20602 # These are the two extra sed commands mentioned above.
20604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20605 if test -z "$ac_sed_cmds"; then
20606 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20608 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20610 ac_sed_frag
=`expr $ac_sed_frag + 1`
20612 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20615 if test -z "$ac_sed_cmds"; then
20618 fi # test -n "$CONFIG_FILES"
20621 cat >>$CONFIG_STATUS <<\_ACEOF
20622 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20625 - |
*:- |
*:-:* ) # input from stdin
20627 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20628 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20629 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20630 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20631 * ) ac_file_in
=$ac_file.
in ;;
20634 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20635 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20637 X"$ac_file" : 'X\(//\)[^/]' \| \
20638 X"$ac_file" : 'X\(//\)$' \| \
20639 X"$ac_file" : 'X\(/\)' \| \
20640 . : '\(.\)' 2>/dev/null ||
20642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20644 /^X\(\/\/\)$/{ s//\1/; q; }
20645 /^X\(\/\).*/{ s//\1/; q; }
20647 { if $as_mkdir_p; then
20652 while test ! -d "$as_dir"; do
20653 as_dirs
="$as_dir $as_dirs"
20654 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20656 X"$as_dir" : 'X\(//\)[^/]' \| \
20657 X"$as_dir" : 'X\(//\)$' \| \
20658 X"$as_dir" : 'X\(/\)' \| \
20659 . : '\(.\)' 2>/dev/null ||
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20663 /^X\(\/\/\)$/{ s//\1/; q; }
20664 /^X\(\/\).*/{ s//\1/; q; }
20667 test ! -n "$as_dirs" || mkdir
$as_dirs
20668 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20670 { (exit 1); exit 1; }; }; }
20674 if test "$ac_dir" != .
; then
20675 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20676 # A "../" for each directory in $ac_dir_suffix.
20677 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20679 ac_dir_suffix
= ac_top_builddir
=
20683 .
) # No --srcdir option. We are building in place.
20685 if test -z "$ac_top_builddir"; then
20688 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20690 [\\/]* | ?
:[\\/]* ) # Absolute path.
20691 ac_srcdir
=$srcdir$ac_dir_suffix;
20692 ac_top_srcdir
=$srcdir ;;
20693 *) # Relative path.
20694 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20695 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20698 # Do not use `cd foo && pwd` to compute absolute paths, because
20699 # the directories may not exist.
20701 .
) ac_abs_builddir
="$ac_dir";;
20704 .
) ac_abs_builddir
=`pwd`;;
20705 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20706 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20709 case $ac_abs_builddir in
20710 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20712 case ${ac_top_builddir}.
in
20713 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20714 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20715 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20718 case $ac_abs_builddir in
20719 .
) ac_abs_srcdir
=$ac_srcdir;;
20722 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20723 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20724 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20727 case $ac_abs_builddir in
20728 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20730 case $ac_top_srcdir in
20731 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20732 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20733 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20739 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20740 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20743 if test x
"$ac_file" != x-
; then
20744 { echo "$as_me:$LINENO: creating $ac_file" >&5
20745 echo "$as_me: creating $ac_file" >&6;}
20748 # Let's still pretend it is `configure' which instantiates (i.e., don't
20749 # use $as_me), people would be surprised to read:
20750 # /* config.h. Generated by config.status. */
20751 if test x
"$ac_file" = x-
; then
20754 configure_input
="$ac_file. "
20756 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20757 sed 's,.*/,,'` by configure."
20759 # First look for the input files in the build tree, otherwise in the
20761 ac_file_inputs
=`IFS=:
20762 for f in $ac_file_in; do
20764 -) echo $tmp/stdin ;;
20766 # Absolute (can't be DOS-style, as IFS=:)
20767 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20768 echo "$as_me: error: cannot find input file: $f" >&2;}
20769 { (exit 1); exit 1; }; }
20772 if test -f "$f"; then
20775 elif test -f "$srcdir/$f"; then
20780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20781 echo "$as_me: error: cannot find input file: $f" >&2;}
20782 { (exit 1); exit 1; }; }
20785 done` ||
{ (exit 1); exit 1; }
20787 cat >>$CONFIG_STATUS <<_ACEOF
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20793 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20794 s
,@configure_input@
,$configure_input,;t t
20795 s
,@srcdir@
,$ac_srcdir,;t t
20796 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20797 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20798 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20799 s
,@builddir@
,$ac_builddir,;t t
20800 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20801 s
,@top_builddir@
,$ac_top_builddir,;t t
20802 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20803 s
,@INSTALL@
,$ac_INSTALL,;t t
20804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20806 if test x"$ac_file" != x-; then
20807 mv $tmp/out $ac_file
20815 cat >>$CONFIG_STATUS <<\_ACEOF
20818 # CONFIG_HEADER section.
20821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20824 # ac_d sets the value in "#define NAME VALUE" lines.
20825 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20826 ac_dB
='[ ].*$,\1#\2'
20829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20830 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20831 ac_uB
='$,\1#\2define\3'
20835 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20838 - |
*:- |
*:-:* ) # input from stdin
20840 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20841 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20842 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20843 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20844 * ) ac_file_in
=$ac_file.
in ;;
20847 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20848 echo "$as_me: creating $ac_file" >&6;}
20850 # First look for the input files in the build tree, otherwise in the
20852 ac_file_inputs
=`IFS=:
20853 for f in $ac_file_in; do
20855 -) echo $tmp/stdin ;;
20857 # Absolute (can't be DOS-style, as IFS=:)
20858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20859 echo "$as_me: error: cannot find input file: $f" >&2;}
20860 { (exit 1); exit 1; }; }
20861 # Do quote $f, to prevent DOS paths from being IFS'd.
20864 if test -f "$f"; then
20867 elif test -f "$srcdir/$f"; then
20872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20873 echo "$as_me: error: cannot find input file: $f" >&2;}
20874 { (exit 1); exit 1; }; }
20877 done` ||
{ (exit 1); exit 1; }
20878 # Remove the trailing spaces.
20879 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20884 # `conftest.undefs', that substitutes the proper values into
20885 # config.h.in to produce config.h. The first handles `#define'
20886 # templates, and the second `#undef' templates.
20887 # And first: Protect against being on the right side of a sed subst in
20888 # config.status. Protect against being in an unquoted here document
20889 # in config.status.
20890 rm -f conftest.defines conftest.undefs
20891 # Using a here document instead of a string reduces the quoting nightmare.
20892 # Putting comments in sed scripts is not portable.
20894 # `end' is used to avoid that the second main sed command (meant for
20895 # 0-ary CPP macros) applies to n-ary macro definitions.
20896 # See the Autoconf documentation for `clear'.
20897 cat >confdef2sed.
sed <<\_ACEOF
20902 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20904 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20907 # If some macros were called several times there might be several times
20908 # the same #defines, which is useless. Nevertheless, we may not want to
20909 # sort them, since we want the *last* AC-DEFINE to be honored.
20910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20912 rm -f confdef2sed.sed
20914 # This sed command replaces #undef with comments. This is necessary, for
20915 # example, in the case of _POSIX_SOURCE, which is predefined and required
20916 # on some systems where configure will not decide to define it.
20917 cat >>conftest.undefs <<\_ACEOF
20918 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20921 # Break up conftest.defines because some shells have a limit on the size
20922 # of here documents, and old seds have small limits too (100 cmds).
20923 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20924 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20925 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20926 echo ' :' >>$CONFIG_STATUS
20927 rm -f conftest.tail
20928 while grep . conftest.defines >/dev/null
20930 # Write a limited-size here document to $tmp/defines.sed.
20931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20932 # Speed up: don't consider the non `#define' lines.
20933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20934 # Work around the forget-to-reset-the-flag bug.
20935 echo 't clr' >>$CONFIG_STATUS
20936 echo ': clr' >>$CONFIG_STATUS
20937 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20939 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20941 mv $tmp/out $tmp/in
20943 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20944 rm -f conftest.defines
20945 mv conftest.
tail conftest.defines
20947 rm -f conftest.defines
20948 echo ' fi # grep' >>$CONFIG_STATUS
20949 echo >>$CONFIG_STATUS
20951 # Break up conftest.undefs because some shells have a limit on the size
20952 # of here documents, and old seds have small limits too (100 cmds).
20953 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20954 rm -f conftest.
tail
20955 while grep . conftest.undefs
>/dev
/null
20957 # Write a limited-size here document to $tmp/undefs.sed.
20958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20959 # Speed up: don't consider the non
`#undef'
20960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20961 # Work around the forget-to-reset-the-flag bug.
20962 echo 't clr' >>$CONFIG_STATUS
20963 echo ': clr' >>$CONFIG_STATUS
20964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20968 mv $tmp/out $tmp/in
20970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20971 rm -f conftest.undefs
20972 mv conftest.tail conftest.undefs
20974 rm -f conftest.undefs
20976 cat >>$CONFIG_STATUS <<\_ACEOF
20977 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20978 # use $as_me), people would be surprised to read:
20979 # /* config.h. Generated by config.status. */
20980 if test x
"$ac_file" = x-
; then
20981 echo "/* Generated by configure. */" >$tmp/config.h
20983 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20985 cat $tmp/in >>$tmp/config.h
20987 if test x
"$ac_file" != x-
; then
20988 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20990 echo "$as_me: $ac_file is unchanged" >&6;}
20992 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994 X"$ac_file" : 'X\(//\)[^/]' \| \
20995 X"$ac_file" : 'X\(//\)$' \| \
20996 X"$ac_file" : 'X\(/\)' \| \
20997 . : '\(.\)' 2>/dev/null ||
20999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21001 /^X\(\/\/\)$/{ s//\1/; q; }
21002 /^X\(\/\).*/{ s//\1/; q; }
21004 { if $as_mkdir_p; then
21009 while test ! -d "$as_dir"; do
21010 as_dirs
="$as_dir $as_dirs"
21011 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21013 X"$as_dir" : 'X\(//\)[^/]' \| \
21014 X"$as_dir" : 'X\(//\)$' \| \
21015 X"$as_dir" : 'X\(/\)' \| \
21016 . : '\(.\)' 2>/dev/null ||
21018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21020 /^X\(\/\/\)$/{ s//\1/; q; }
21021 /^X\(\/\).*/{ s//\1/; q; }
21024 test ! -n "$as_dirs" || mkdir
$as_dirs
21025 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21027 { (exit 1); exit 1; }; }; }
21030 mv $tmp/config.h
$ac_file
21034 rm -f $tmp/config.h
21036 # Compute $ac_file's index in $config_headers.
21038 for _am_header
in $config_headers :; do
21039 case $_am_header in
21040 $ac_file |
$ac_file:* )
21043 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21046 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21047 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X$ac_file : 'X\(//\)[^/]' \| \
21049 X$ac_file : 'X\(//\)$' \| \
21050 X$ac_file : 'X\(/\)' \| \
21051 . : '\(.\)' 2>/dev/null ||
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055 /^X\(\/\/\)$/{ s//\1/; q; }
21056 /^X\(\/\).*/{ s//\1/; q; }
21057 s/.*/./; q'`/stamp-h
$_am_stamp_count
21060 cat >>$CONFIG_STATUS <<\_ACEOF
21063 # CONFIG_COMMANDS section.
21065 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21066 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21067 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21068 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21069 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21070 X"$ac_dest" : 'X\(//\)[^/]' \| \
21071 X"$ac_dest" : 'X\(//\)$' \| \
21072 X"$ac_dest" : 'X\(/\)' \| \
21073 . : '\(.\)' 2>/dev/null ||
21075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21077 /^X\(\/\/\)$/{ s//\1/; q; }
21078 /^X\(\/\).*/{ s//\1/; q; }
21080 { if $as_mkdir_p; then
21085 while test ! -d "$as_dir"; do
21086 as_dirs
="$as_dir $as_dirs"
21087 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21089 X"$as_dir" : 'X\(//\)[^/]' \| \
21090 X"$as_dir" : 'X\(//\)$' \| \
21091 X"$as_dir" : 'X\(/\)' \| \
21092 . : '\(.\)' 2>/dev/null ||
21094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21096 /^X\(\/\/\)$/{ s//\1/; q; }
21097 /^X\(\/\).*/{ s//\1/; q; }
21100 test ! -n "$as_dirs" || mkdir
$as_dirs
21101 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21103 { (exit 1); exit 1; }; }; }
21107 if test "$ac_dir" != .
; then
21108 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21109 # A "../" for each directory in $ac_dir_suffix.
21110 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21112 ac_dir_suffix
= ac_top_builddir
=
21116 .
) # No --srcdir option. We are building in place.
21118 if test -z "$ac_top_builddir"; then
21121 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21123 [\\/]* | ?
:[\\/]* ) # Absolute path.
21124 ac_srcdir
=$srcdir$ac_dir_suffix;
21125 ac_top_srcdir
=$srcdir ;;
21126 *) # Relative path.
21127 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21128 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21131 # Do not use `cd foo && pwd` to compute absolute paths, because
21132 # the directories may not exist.
21134 .
) ac_abs_builddir
="$ac_dir";;
21137 .
) ac_abs_builddir
=`pwd`;;
21138 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21139 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21142 case $ac_abs_builddir in
21143 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21145 case ${ac_top_builddir}.
in
21146 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21147 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21148 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21151 case $ac_abs_builddir in
21152 .
) ac_abs_srcdir
=$ac_srcdir;;
21155 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21156 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21157 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21160 case $ac_abs_builddir in
21161 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21163 case $ac_top_srcdir in
21164 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21165 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21166 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21171 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21172 echo "$as_me: executing $ac_dest commands" >&6;}
21174 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21175 # Strip MF so we end up with the name of the file.
21176 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21177 # Check whether this is an Automake generated Makefile or not.
21178 # We used to match only the files named `Makefile.in', but
21179 # some people rename them; so instead we look at the file content.
21180 # Grep'ing the first line is not enough: some people post-process
21181 # each Makefile.in and add a new line on top of each file to say so.
21182 # So let's grep whole file.
21183 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21184 dirpart
=`(dirname "$mf") 2>/dev/null ||
21185 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186 X"$mf" : 'X\(//\)[^/]' \| \
21187 X"$mf" : 'X\(//\)$' \| \
21188 X"$mf" : 'X\(/\)' \| \
21189 . : '\(.\)' 2>/dev/null ||
21191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21193 /^X\(\/\/\)$/{ s//\1/; q; }
21194 /^X\(\/\).*/{ s//\1/; q; }
21199 # Extract the definition of DEPDIR, am__include, and am__quote
21200 # from the Makefile without running `make'.
21201 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21202 test -z "$DEPDIR" && continue
21203 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21204 test -z "am__include" && continue
21205 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21206 # When using ansi2knr, U may be empty or an underscore; expand it
21207 U
=`sed -n 's/^U = //p' < "$mf"`
21208 # Find all dependency output files, they are included files with
21209 # $(DEPDIR) in their names. We invoke sed twice because it is the
21210 # simplest approach to changing $(DEPDIR) to its actual value in the
21212 for file in `sed -n "
21213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21215 # Make sure the directory exists.
21216 test -f "$dirpart/$file" && continue
21217 fdir
=`(dirname "$file") 2>/dev/null ||
21218 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X"$file" : 'X\(//\)[^/]' \| \
21220 X"$file" : 'X\(//\)$' \| \
21221 X"$file" : 'X\(/\)' \| \
21222 . : '\(.\)' 2>/dev/null ||
21224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21226 /^X\(\/\/\)$/{ s//\1/; q; }
21227 /^X\(\/\).*/{ s//\1/; q; }
21229 { if $as_mkdir_p; then
21230 mkdir
-p $dirpart/$fdir
21232 as_dir
=$dirpart/$fdir
21234 while test ! -d "$as_dir"; do
21235 as_dirs
="$as_dir $as_dirs"
21236 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$as_dir" : 'X\(//\)[^/]' \| \
21239 X"$as_dir" : 'X\(//\)$' \| \
21240 X"$as_dir" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21249 test ! -n "$as_dirs" || mkdir
$as_dirs
21250 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21251 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21252 { (exit 1); exit 1; }; }; }
21254 # echo "creating $dirpart/$file"
21255 echo '# dummy' > "$dirpart/$file"
21260 for ac_file
in $CONFIG_FILES; do
21261 # Support "outfile[:infile[:infile...]]"
21263 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21265 # PO directories have a Makefile.in generated from Makefile.in.in.
21266 case "$ac_file" in */Makefile.
in)
21267 # Adjust a relative srcdir.
21268 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21269 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21270 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21271 # In autoconf-2.13 it is called $ac_given_srcdir.
21272 # In autoconf-2.50 it is called $srcdir.
21273 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21274 case "$ac_given_srcdir" in
21275 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21276 /*) top_srcdir
="$ac_given_srcdir" ;;
21277 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21279 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21280 rm -f "$ac_dir/POTFILES"
21281 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21282 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21283 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21284 # on $ac_dir but don't depend on user-specified configuration
21286 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21287 # The LINGUAS file contains the set of available languages.
21288 if test -n "$ALL_LINGUAS"; then
21289 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21291 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21292 # Hide the ALL_LINGUAS assigment from automake.
21293 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21295 case "$ac_given_srcdir" in
21297 *) srcdirpre
='$(srcdir)/' ;;
21303 for lang
in $ALL_LINGUAS; do
21304 POFILES
="$POFILES $srcdirpre$lang.po"
21305 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21306 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21307 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21309 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21310 # environment variable.
21312 if test -n "$ALL_LINGUAS"; then
21313 for presentlang
in $ALL_LINGUAS; do
21315 if test "%UNSET%" != "$LINGUAS"; then
21316 desiredlanguages
="$LINGUAS"
21318 desiredlanguages
="$ALL_LINGUAS"
21320 for desiredlang
in $desiredlanguages; do
21321 # Use the presentlang catalog if desiredlang is
21322 # a. equal to presentlang, or
21323 # b. a variant of presentlang (because in this case,
21324 # presentlang can be used as a fallback for messages
21325 # which are not translated in the desiredlang catalog).
21326 case "$desiredlang" in
21327 "$presentlang"*) useit
=yes;;
21330 if test $useit = yes; then
21331 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21336 if test -n "$INST_LINGUAS"; then
21337 for lang
in $INST_LINGUAS; do
21338 CATALOGS
="$CATALOGS $lang.gmo"
21341 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21342 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"
21343 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21344 if test -f "$f"; then
21346 *.orig |
*.bak |
*~
) ;;
21347 *) cat "$f" >> "$ac_dir/Makefile" ;;
21355 denoiser
) if test $denoiserlevel -gt 0; then
21356 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21357 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" \
21358 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21359 for i
in `find . -name 'Makefile' -print`; do
21360 if test -n "`head -n 1 $i | grep '^#'`"; then
21361 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21369 cat >>$CONFIG_STATUS <<\_ACEOF
21371 { (exit 0); exit 0; }
21373 chmod +x
$CONFIG_STATUS
21374 ac_clean_files
=$ac_clean_files_save
21377 # configure is writing to config.log, and then calls config.status.
21378 # config.status does its own redirection, appending to config.log.
21379 # Unfortunately, on DOS this fails, as config.log is still kept open
21380 # by configure, so config.status won't be able to write to it; its
21381 # output is simply discarded. So we exec the FD to /dev/null,
21382 # effectively closing config.log, so it can be properly (re)opened and
21383 # appended to by config.status. When coming back to configure, we
21384 # need to make the FD available again.
21385 if test "$no_create" != yes; then
21387 ac_config_status_args
=
21388 test "$silent" = yes &&
21389 ac_config_status_args
="$ac_config_status_args --quiet"
21391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21394 # would make configure fail if this is the last instruction.
21395 $ac_cs_success ||
{ (exit 1); exit 1; }
21399 if test -n "$svndate"; then
21400 SVN_REVISION
=" ($svndate)"
21408 echo " Configure script has finished system check."
21410 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21412 echo " aMule enabled options:"
21414 echo " **** aMule Core ****"
21415 echo " Prefix where aMule should be installed? ${prefix:-none}"
21416 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21417 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21418 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21419 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21420 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21421 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21422 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21423 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21424 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21425 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21428 echo " **** aMule TextClient ****"
21429 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21431 echo " **** aMule WebServer ****"
21432 echo " Should aMule WebServer be built? ${WEB:-no}"
21434 echo " **** aMule ED2K Links Handler ****"
21435 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21437 echo " **** aMuleLinkCreator ****"
21438 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21439 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21441 echo " **** aMule Statistics ****"
21442 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21443 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21444 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21447 echo " **** General Libraries and Tools ****"
21448 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21449 echo " Libraries aMule will use to build:"
21451 if test $WX_DEBUG -eq 1; then
21452 wxinfo
="$wxinfo,debug"
21455 if test $WX_SHARED -eq 1; then
21456 wxinfo
="$wxinfo,shared"
21458 wxinfo
="$wxinfo,static"
21461 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21462 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21463 if test -n "$with_libupnp_prefix"; then
21464 libupnp_place
=" (in $with_libupnp_prefix)"
21467 if test x
${ENABLE_UPNP} = xyes
; then
21468 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21471 if test x
${WEB:-no} != xno
; then
21472 if test $regex_found = no
; then
21473 regex_found
="Not detected"
21475 if test -z "$REGEX_LIB"; then
21478 regex_found
="standalone (in $REGEX_LIB)"
21483 echo " regex $regex_found"
21485 if test ${enable_nls:-yes} = yes; then
21486 if test x
$USE_NLS = xno
; then
21487 libintl_found
="Not detected"
21489 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21490 libintl_found
="included"
21492 libintl_found
="system"
21497 echo " libintl $libintl_found"
21499 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21505 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21506 echo " libGeoIP ${geoip_style}"
21509 if test x
$LIBPNG_VERSION != xnot_needed
; then
21510 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21512 if test x
$GDLIB_VERSION != xnot_needed
; then
21513 echo " libgd ${GDLIB_VERSION:-Not detected}"
21515 echo " zlib ${ZLIB_VERSION:-Not detected}"
21516 if test ${_mule_has_warnings:-no} = yes; then
21519 echo " *** Warnings during configuration ***"
21521 if test ${_mule_warning_0:-no} = yes; then
21524 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21525 Please check that gdlib-config is in your default path, check out
21526 LD_LIBRARY_PATH or equivalent variable.
21527 Or this might also be that your gdlib-config has other name.
21528 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21529 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21530 If you use compiled packages check if you have devel pack installed.
21531 To download the latest version check http://www.boutell.com/gd for sources.
21534 if test ${_mule_warning_1:-no} = yes; then
21537 * amuleweb has been disabled because configure could not find a POSIX
21538 compliant regex library.
21541 if test ${_mule_warning_2:-no} = yes; then
21544 * libpng >= 1.2.0 not found.
21545 amuleweb will be compiled but file download progress bar images will NOT be
21549 if test ${_mule_warning_3:-no} = yes; then
21552 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21555 if test ${_mule_warning_4:-no} = yes; then
21558 * GeoIP support has been disabled because the GeoIP libraries were not found
21561 if test ${_mule_warning_5:-no} = yes; then
21564 * GeoIP support has been disabled because the GeoIP header files were not
21568 if test ${_mule_warning_6:-no} = yes; then
21571 * UPnP code has been disabled because ${libupnp_error}.
21574 if test ${_mule_warning_7:-no} = yes; then
21577 * Cross-compilation detected, so exception handling cannot be tested.
21578 Note that broken exception handling in your compiler may lead to unexpected
21582 if test ${_mule_warning_8:-no} = yes; then
21585 * configure cannot check whether malloc() and realloc() are GNU libc
21586 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21587 configure with the --without-gnu-malloc switch.
21590 if test ${_mule_warning_9:-no} = yes; then
21593 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21597 if test ${_mule_warning_10:-no} = yes; then
21600 * bfd.h not found or unusable, please install binutils development package if
21601 you are a developer or want to help testing aMule