2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS BFD_CPPFLAGS BFD_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE 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 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 --disable-xas do not install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-geoip-headers=DIR
913 GeoIP include files location
914 --with-geoip-lib=DIR GeoIP library location
915 --with-geoip-static Explicitly link GeoIP statically (default=no)
916 --without-gnu-malloc Don't assume that we use GNU libc compatible
917 malloc
/realloc when cross-compiling
918 --with-zlib=PREFIX use zlib
in PREFIX
919 --with-gdlib-prefix=PREFIX
920 prefix where gdlib is installed
(optional
)
921 --with-gdlib-config=CONFIG
922 gdlib-config
script to use
(optional
)
923 --with-libpng-prefix=PREFIX
924 prefix where libpng is installed
(optional
)
925 --with-libpng-config=CONFIG
926 libpng-config
script to use
(optional
)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
928 --with-wx-config=CONFIG wx-config
script to use
(optional
)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed
(optional
)
932 --with-toolkit Build against a specific wxWidgets toolkit
(default
934 --with-wxshared Force building against a shared build of wxWidgets
,
935 even
if --disable-shared is given
(default is auto
)
936 --with-wxdebug Force building against a debug build of wxWidgets
,
937 even
if --disable-debug is given
(default is auto
)
938 --with-wxversion Build against a specific version of wxWidgets
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto
++ is installed
944 --with-x use the X Window System
945 --with-language=<langs
> Specify a comma-separated list of languages you want
946 to have installed. See po
/LINGUAS
for available
948 --with-gnu-ld assume the C compiler uses GNU ld default
=no
949 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
950 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search
for libintl
in includedir and libdir
954 --with-denoise-level=<level
>
955 Specifies denoising level
(0-4):
957 4 - Suppress all normal output
958 (for more information see
959 src
/utils
/scripts
/denoiser.rules
)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables
:
965 CXX C
++ compiler
command
966 CXXFLAGS C
++ compiler flags
967 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
968 nonstandard directory
<lib dir
>
969 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
970 headers
in a nonstandard directory
<include dir
>
971 CXXCPP C
++ preprocessor
972 CC C compiler
command
973 CFLAGS C compiler flags
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by
`configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
998 ac_dir_suffix= ac_top_builddir=
1002 .) # No --srcdir option. We are building in place.
1004 if test -z "$ac_top_builddir"; then
1007 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1017 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1018 # the directories may not exist.
1020 .) ac_abs_builddir="$ac_dir";;
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1067 $ac_configure --help
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1104 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1105 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1106 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1107 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1108 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1110 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1111 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1113 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1114 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1115 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1116 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1117 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1118 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1119 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1152 ac_must_keep_next=false
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1181 -* ) ac_must_keep_next=true ;;
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close
' the trap.
1199 trap 'exit_status
=$?
1200 # Save into config.log some information that might help in debugging.
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1210 # The following way of writing the cache mishandles newlines in values,
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1233 for ac_var
in $ac_subst_vars
1235 eval ac_val
=$
`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1240 if test -n "$ac_subst_files"; then
1247 for ac_var
in $ac_subst_files
1249 eval ac_val
=$
`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1255 if test -s confdefs.h
; then
1262 sed "/^$/d" confdefs.h |
sort
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1269 rm -f core
*.core
&&
1270 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's
/^
/|
/' "$ac_site_file" >&5
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1345 # Check that the precious variables saved in the cache have kept the same
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1358 ac_cache_corrupted=: ;;
1360 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1367 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1392 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1399 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 elif test -f $ac_dir/install.sh; then
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 elif test -f $ac_dir/shtool; then
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 # Account for people who put trailing slashes in PATH elements.
1480 .
/ | .
// |
/cC
/* | \
1481 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1482 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1488 for ac_prog
in ginstall scoinst
install; do
1489 for ac_exec_ext
in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1500 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL
=$ac_cv_path_install
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL
=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537 echo timestamp
> conftest.
file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1544 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1547 set X
`ls -t $srcdir/configure conftest.file`
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.
file
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE
&&
1579 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE
&&
1582 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF
>conftest.
sed
1586 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1588 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir
=`cd $ac_aux_dir && pwd`
1594 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run
="$MISSING --run "
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p
='mkdir -p --'
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1625 for d
in .
/-p .
/--version;
1627 test -d $d && rmdir $d
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p
='$(mkinstalldirs)'
1633 mkdir_p
='$(install_sh) -d'
1637 for ac_prog
in gawk mawk nawk
awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy
$ac_prog; ac_word
=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir
=.
1654 for ac_exec_ext
in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK
="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 cat >conftest.
make <<\_ACEOF
1685 @
echo 'ac_maketemp="$(MAKE)"'
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_
${ac_make}_set
=yes
1692 eval ac_cv_prog_make_
${ac_make}_set
=no
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE
="MAKE=${MAKE-make}"
1706 rm -rf .tst
2>/dev
/null
1707 mkdir .tst
2>/dev
/null
1708 if test -d .tst
; then
1713 rmdir .tst
2>/dev
/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status
; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1726 CYGPATH_W
='cygpath -w'
1733 # Define the identity of the package.
1738 cat >>confdefs.h
<<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1743 cat >>confdefs.h
<<_ACEOF
1744 #define VERSION "$VERSION"
1747 # Some tools Automake needs.
1749 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no
; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir
=.
1786 for ac_exec_ext
in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 STRIP
=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip
; ac_word
=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir
=.
1824 for ac_exec_ext
in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP
="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1836 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1847 STRIP
="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1859 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1867 ac_config_headers
="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval
="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE
=$enableval
1876 USE_MAINTAINER_MODE
=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE
=
1884 MAINTAINER_MODE_FALSE
='#'
1886 MAINTAINER_MODE_TRUE
='#'
1887 MAINTAINER_MODE_FALSE
=
1890 MAINT
=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 ac_cv_build_alias
=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias
=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1921 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 ac_cv_host_alias
=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias
=$ac_cv_build_alias
1934 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1943 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1952 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS
="-bind_at_load"
1954 touch src
/Scanner.cpp
1958 LIBS
="$LIBS -L/usr/local/lib"
1959 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS
="-D__OPENBSD__"
1962 *cygwin
* |
*mingw32
*)
1964 MULECPPFLAGS
="-DNOMINMAX"
1968 RESOLV_LIB
="-lresolv -lnsl"
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1985 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1986 if test ${SYS:-unknown} != win32
; then
1988 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1989 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1990 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1992 MULELDFLAGS
="$MULELDFLAGS -pthread"
1993 echo "$as_me:$LINENO: result: yes" >&5
1994 echo "${ECHO_T}yes" >&6
1998 MULELDFLAGS
="$MULELDFLAGS -lpthread"
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2010 mule_backup_CFLAGS
="$CFLAGS"
2011 mule_backup_CXXFLAGS
="$CXXFLAGS"
2012 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2014 ac_cpp
='$CXXCPP $CPPFLAGS'
2015 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CXX+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$CXX"; then
2029 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir
=.
2036 for ac_exec_ext
in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 if test -n "$CXX"; then
2049 echo "$as_me:$LINENO: result: $CXX" >&5
2050 echo "${ECHO_T}$CXX" >&6
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$CXX" && break
2059 if test -z "$CXX"; then
2061 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy
$ac_prog; ac_word
=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$ac_ct_CXX"; then
2071 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir
=.
2078 for ac_exec_ext
in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2090 if test -n "$ac_ct_CXX"; then
2091 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2092 echo "${ECHO_T}$ac_ct_CXX" >&6
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2098 test -n "$ac_ct_CXX" && break
2100 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO:" \
2108 "checking for C++ compiler version" >&5
2109 ac_compiler
=`set X $ac_compile; echo $2`
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2111 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2116 (eval $ac_compiler -v </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); }
2126 cat >conftest.
$ac_ext <<_ACEOF
2129 cat confdefs.h
>>conftest.
$ac_ext
2130 cat >>conftest.
$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save
=$ac_clean_files
2142 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2147 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2148 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161 # b.out is created by i960 compilers.
2162 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2164 test -f "$ac_file" ||
continue
2166 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2169 # This is the source file.
2172 # We found the default executable, but exeext='' is most
2176 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.
$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C++ compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext
=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2204 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try
='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 if test "$cross_compiling" = maybe
; then
2219 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C++ compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2233 ac_clean_files
=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2252 for ac_file
in conftest.exe conftest conftest.
*; do
2253 test -f "$ac_file" ||
continue
2255 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2256 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest
$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.
$ac_ext
2275 EXEEXT
=$ac_cv_exeext
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.
$ac_ext <<_ACEOF
2285 cat confdefs.h
>>conftest.
$ac_ext
2286 cat >>conftest.
$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2306 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.
$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT
=$ac_cv_objext
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.
$ac_ext <<_ACEOF
2335 cat confdefs.h
>>conftest.
$ac_ext
2336 cat >>conftest.
$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2350 rm -f conftest.
$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1
>conftest.err
2356 cat conftest.err
>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try
='test -z "$ac_cxx_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try
='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.
$ac_ext >&5
2379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2380 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2383 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2385 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2387 ac_save_CXXFLAGS
=$CXXFLAGS
2389 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2390 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cxx_g+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.
$ac_ext <<_ACEOF
2397 cat confdefs.h
>>conftest.
$ac_ext
2398 cat >>conftest.
$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2409 rm -f conftest.
$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2413 grep -v '^ *+' conftest.er1
>conftest.err
2415 cat conftest.err
>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try
='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try
='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cxx_g
=yes
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.
$ac_ext >&5
2438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2442 if test "$ac_test_CXXFLAGS" = set; then
2443 CXXFLAGS
=$ac_save_CXXFLAGS
2444 elif test $ac_cv_prog_cxx_g = yes; then
2445 if test "$GXX" = yes; then
2451 if test "$GXX" = yes; then
2457 for ac_declaration
in \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2465 cat >conftest.
$ac_ext <<_ACEOF
2468 cat confdefs.h
>>conftest.
$ac_ext
2469 cat >>conftest.
$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2481 rm -f conftest.
$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2485 grep -v '^ *+' conftest.er1
>conftest.err
2487 cat conftest.err
>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try
='test -z "$ac_cxx_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try
='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.
$ac_ext >&5
2510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2511 cat >conftest.
$ac_ext <<_ACEOF
2514 cat confdefs.h
>>conftest.
$ac_ext
2515 cat >>conftest.
$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 rm -f conftest.
$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1
>conftest.err
2532 cat conftest.err
>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try
='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try
='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.
$ac_ext >&5
2554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2557 if test -n "$ac_declaration"; then
2558 echo '#ifdef __cplusplus' >>confdefs.h
2559 echo $ac_declaration >>confdefs.h
2560 echo '#endif' >>confdefs.h
2564 ac_cpp
='$CPP $CPPFLAGS'
2565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2568 DEPDIR
="${am__leading_dot}deps"
2570 ac_config_commands
="$ac_config_commands depfiles"
2573 am_make
=${MAKE-make}
2574 cat > confinc
<< 'END'
2579 # If we don't find an include directive, just comment out the code.
2580 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2581 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2585 # First try GNU make style include.
2586 echo "include confinc" > confmf
2587 # We grep out `Entering directory' and `Leaving directory'
2588 # messages which can occur if `w' ends up in MAKEFLAGS.
2589 # In particular we don't look at `^make:' because GNU make might
2590 # be invoked under some other name (usually "gmake"), in which
2591 # case it prints its new name instead of `make'.
2592 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2597 # Now try BSD make style include.
2598 if test "$am__include" = "#"; then
2599 echo '.include "confinc"' > confmf
2600 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2601 am__include
=.include
2608 echo "$as_me:$LINENO: result: $_am_result" >&5
2609 echo "${ECHO_T}$_am_result" >&6
2610 rm -f confinc confmf
2612 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2613 if test "${enable_dependency_tracking+set}" = set; then
2614 enableval
="$enable_dependency_tracking"
2617 if test "x$enable_dependency_tracking" != xno
; then
2618 am_depcomp
="$ac_aux_dir/depcomp"
2623 if test "x$enable_dependency_tracking" != xno; then
2634 depcc
="$CXX" am_compiler_list
=
2636 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2637 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2638 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2642 # We make a subdir and do the tests there. Otherwise we can end up
2643 # making bogus files that we don't know about and never remove. For
2644 # instance it was reported that on HP-UX the gcc test will end up
2645 # making a dummy file named `D' -- because `-MD' means `put the output
2648 # Copy depcomp to subdir because otherwise we won't find it if we're
2649 # using a relative directory.
2650 cp "$am_depcomp" conftest.dir
2652 # We will build objects and dependencies in a subdirectory because
2653 # it helps to detect inapplicable dependency modes. For instance
2654 # both Tru64's cc and ICC support -MD to output dependencies as a
2655 # side effect of compilation, but ICC will put the dependencies in
2656 # the current directory while Tru64 will put them in the object
2660 am_cv_CXX_dependencies_compiler_type
=none
2661 if test "$am_compiler_list" = ""; then
2662 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2664 for depmode
in $am_compiler_list; do
2665 # Setup a source with many dependencies, because some compilers
2666 # like to wrap large dependency lists on column 80 (with \), and
2667 # we should not choose a depcomp mode which is confused by this.
2669 # We need to recreate these files for each test, as the compiler may
2670 # overwrite some of them when testing with obscure command lines.
2671 # This happens at least with the AIX C compiler.
2673 for i
in 1 2 3 4 5 6; do
2674 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2676 # Solaris 8's {/usr,}/bin/sh.
2677 touch sub
/conftst
$i.h
2679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2683 # after this tag, mechanisms are not by side-effect, so they'll
2684 # only be used when explicitly requested
2685 if test "x$enable_dependency_tracking" = xyes
; then
2693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2694 # mode. It turns out that the SunPro C++ compiler does not properly
2695 # handle `-M -o', and we need to detect this.
2696 if depmode
=$depmode \
2697 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2698 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2699 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2700 >/dev
/null
2>conftest.err
&&
2701 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2702 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2703 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2704 # icc doesn't choke on unknown options, it will just issue warnings
2705 # or remarks (even with -Werror). So we grep stderr for any message
2706 # that says an option was ignored or not supported.
2707 # When given -MP, icc 7.0 and 7.1 complain thusly:
2708 # icc: Command line warning: ignoring option '-M'; no argument required
2709 # The diagnosis changed in icc 8.0:
2710 # icc: Command line remark: option '-MP' not supported
2711 if (grep 'ignoring option' conftest.err ||
2712 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2713 am_cv_CXX_dependencies_compiler_type
=$depmode
2722 am_cv_CXX_dependencies_compiler_type
=none
2726 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2727 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2728 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2733 test "x$enable_dependency_tracking" != xno \
2734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2735 am__fastdepCXX_TRUE
=
2736 am__fastdepCXX_FALSE
='#'
2738 am__fastdepCXX_TRUE
='#'
2739 am__fastdepCXX_FALSE
=
2744 ac_cpp
='$CXXCPP $CPPFLAGS'
2745 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2748 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2749 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2750 if test -z "$CXXCPP"; then
2751 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 # Double quotes because CXXCPP needs to be expanded
2755 for CXXCPP
in "$CXX -E" "/lib/cpp"
2758 for ac_cxx_preproc_warn_flag
in '' yes
2760 # Use a header file that comes with gcc, so configuring glibc
2761 # with a fresh cross-compiler works.
2762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 # <limits.h> exists even on freestanding compilers.
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp. "Syntax error" is here to catch this case.
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2773 # include <limits.h>
2775 # include <assert.h>
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev
/null
; then
2787 if test -s conftest.err
; then
2788 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2789 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2796 if test -z "$ac_cpp_err"; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.
$ac_ext >&5
2802 # Broken: fails on valid input.
2805 rm -f conftest.err conftest.
$ac_ext
2807 # OK, works on sane cases. Now check whether non-existent headers
2808 # can be detected and how.
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #include <ac_nonexistent.h>
2817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2820 grep -v '^ *+' conftest.er1
>conftest.err
2822 cat conftest.err
>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } >/dev
/null
; then
2825 if test -s conftest.err
; then
2826 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2827 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2834 if test -z "$ac_cpp_err"; then
2835 # Broken: success on invalid input.
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2841 # Passes both tests.
2845 rm -f conftest.err conftest.
$ac_ext
2848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2849 rm -f conftest.err conftest.
$ac_ext
2850 if $ac_preproc_ok; then
2855 ac_cv_prog_CXXCPP
=$CXXCPP
2858 CXXCPP
=$ac_cv_prog_CXXCPP
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2862 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2863 echo "${ECHO_T}$CXXCPP" >&6
2865 for ac_cxx_preproc_warn_flag
in '' yes
2867 # Use a header file that comes with gcc, so configuring glibc
2868 # with a fresh cross-compiler works.
2869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 # <limits.h> exists even on freestanding compilers.
2871 # On the NeXT, cc -E runs the code through the compiler's parser,
2872 # not just through cpp. "Syntax error" is here to catch this case.
2873 cat >conftest.
$ac_ext <<_ACEOF
2876 cat confdefs.h
>>conftest.
$ac_ext
2877 cat >>conftest.
$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2880 # include <limits.h>
2882 # include <assert.h>
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1
>conftest.err
2891 cat conftest.err
>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev
/null
; then
2894 if test -s conftest.err
; then
2895 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2896 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2903 if test -z "$ac_cpp_err"; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.
$ac_ext >&5
2909 # Broken: fails on valid input.
2912 rm -f conftest.err conftest.
$ac_ext
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >conftest.
$ac_ext <<_ACEOF
2919 cat confdefs.h
>>conftest.
$ac_ext
2920 cat >>conftest.
$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev
/null
; then
2932 if test -s conftest.err
; then
2933 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2934 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 # Passes both tests.
2952 rm -f conftest.err conftest.
$ac_ext
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.
$ac_ext
2957 if $ac_preproc_ok; then
2960 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2968 ac_cpp
='$CPP $CPPFLAGS'
2969 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2974 ac_cpp
='$CPP $CPPFLAGS'
2975 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC
="$CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 if test -n "$CC"; then
3007 echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 if test -z "$ac_cv_prog_CC"; then
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018 set dummy gcc
; ac_word
=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir
=.
3032 for ac_exec_ext
in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC
="gcc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 echo "${ECHO_T}$ac_ct_CC" >&6
3048 echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC
="$CC" # Let the user override the test.
3069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir
=.
3074 for ac_exec_ext
in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc
; ac_word
=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir
=.
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC
="cc"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 echo "${ECHO_T}$ac_ct_CC" >&6
3128 echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3138 if test -z "$CC"; then
3139 # Extract the first word of "cc", so it can be a program name with args.
3140 set dummy cc
; ac_word
=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC
="$CC" # Let the user override the test.
3150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir
=.
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected
=yes
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy
$ac_cv_prog_CC
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3177 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3183 if test -n "$CC"; then
3184 echo "$as_me:$LINENO: result: $CC" >&5
3185 echo "${ECHO_T}$CC" >&6
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC
="$CC" # Let the user override the test.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3231 test -n "$CC" && break
3234 if test -z "$CC"; then
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy
$ac_prog; ac_word
=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_CC
="$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 test -n "$ac_ct_CC" && break
3282 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details." >&5
3284 echo "$as_me: error: no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3288 # Provide some information about the compiler.
3289 echo "$as_me:$LINENO:" \
3290 "checking for C compiler version" >&5
3291 ac_compiler
=`set X $ac_compile; echo $2`
3292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3293 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3298 (eval $ac_compiler -v </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); }
3308 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >conftest.
$ac_ext <<_ACEOF
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3361 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3364 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3366 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS
=${CFLAGS+set}
3368 ac_save_CFLAGS
=$CFLAGS
3370 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.
$ac_ext <<_ACEOF
3378 cat confdefs.h
>>conftest.
$ac_ext
3379 cat >>conftest.
$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3390 rm -f conftest.
$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3394 grep -v '^ *+' conftest.er1
>conftest.err
3396 cat conftest.err
>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try
='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try
='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.
$ac_ext >&5
3419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS
=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3432 if test "$GCC" = yes; then
3438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 ac_cv_prog_cc_stdc
=no
3445 cat >conftest.
$ac_ext <<_ACEOF
3448 cat confdefs.h
>>conftest.
$ac_ext
3449 cat >>conftest.
$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3469 s = g (p, va_arg (v,int));
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std1 is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std1. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3497 # Don't try gcc -ansi; that turns off useful extensions and
3498 # breaks some systems' header files.
3499 # AIX -qlanglvl=ansi
3500 # Ultrix and OSF/1 -std1
3501 # HP-UX 10.20 and later -Ae
3502 # HP-UX older versions -Aa -D_HPUX_SOURCE
3503 # SVR4 -Xc -D__EXTENSIONS__
3504 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC
="$ac_save_CC $ac_arg"
3507 rm -f conftest.
$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try
='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try
='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_cc_stdc
=$ac_arg
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.
$ac_ext >&5
3536 rm -f conftest.err conftest.
$ac_objext
3538 rm -f conftest.
$ac_ext conftest.
$ac_objext
3543 case "x$ac_cv_prog_cc_stdc" in
3545 echo "$as_me:$LINENO: result: none needed" >&5
3546 echo "${ECHO_T}none needed" >&6 ;;
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3550 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3553 # Some people use a C++ compiler to compile C. Since we use `exit',
3554 # in C++ we need to declare it. In case someone uses the same compiler
3555 # for both compiling C and C++ we need to have the C++ compiler decide
3556 # the declaration of exit, since it's the most demanding environment.
3557 cat >conftest.
$ac_ext <<_ACEOF
3562 rm -f conftest.
$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3566 grep -v '^ *+' conftest.er1
>conftest.err
3568 cat conftest.err
>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try
='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try
='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 for ac_declaration
in \
3586 'extern "C" void std::exit (int) throw (); using std::exit;' \
3587 'extern "C" void std::exit (int); using std::exit;' \
3588 'extern "C" void exit (int) throw ();' \
3589 'extern "C" void exit (int);' \
3592 cat >conftest.
$ac_ext <<_ACEOF
3595 cat confdefs.h
>>conftest.
$ac_ext
3596 cat >>conftest.
$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3608 rm -f conftest.
$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try
='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try
='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 cat >conftest.
$ac_ext <<_ACEOF
3641 cat confdefs.h
>>conftest.
$ac_ext
3642 cat >>conftest.
$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.
$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1
>conftest.err
3659 cat conftest.err
>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try
='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try
='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.
$ac_ext >&5
3681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3684 if test -n "$ac_declaration"; then
3685 echo '#ifdef __cplusplus' >>confdefs.h
3686 echo $ac_declaration >>confdefs.h
3687 echo '#endif' >>confdefs.h
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.
$ac_ext >&5
3695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3697 ac_cpp
='$CPP $CPPFLAGS'
3698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3702 depcc
="$CC" am_compiler_list
=
3704 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3706 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named `D' -- because `-MD' means `put the output
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3728 am_cv_CC_dependencies_compiler_type
=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 for depmode
in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3741 for i
in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3744 # Solaris 8's {/usr,}/bin/sh.
3745 touch sub
/conftst
$i.h
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3751 # after this tag, mechanisms are not by side-effect, so they'll
3752 # only be used when explicitly requested
3753 if test "x$enable_dependency_tracking" = xyes
; then
3761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3762 # mode. It turns out that the SunPro C++ compiler does not properly
3763 # handle `-M -o', and we need to detect this.
3764 if depmode
=$depmode \
3765 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3766 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3767 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3768 >/dev
/null
2>conftest.err
&&
3769 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3770 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3771 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3772 # icc doesn't choke on unknown options, it will just issue warnings
3773 # or remarks (even with -Werror). So we grep stderr for any message
3774 # that says an option was ignored or not supported.
3775 # When given -MP, icc 7.0 and 7.1 complain thusly:
3776 # icc: Command line warning: ignoring option '-M'; no argument required
3777 # The diagnosis changed in icc 8.0:
3778 # icc: Command line remark: option '-MP' not supported
3779 if (grep 'ignoring option' conftest.err ||
3780 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3781 am_cv_CC_dependencies_compiler_type
=$depmode
3790 am_cv_CC_dependencies_compiler_type
=none
3794 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3796 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3804 am__fastdepCC_FALSE
='#'
3806 am__fastdepCC_TRUE
='#'
3807 am__fastdepCC_FALSE
=
3812 ac_cpp
='$CPP $CPPFLAGS'
3813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3816 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 # Double quotes because CPP needs to be expanded
3827 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 for ac_c_preproc_warn_flag
in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3845 # include <limits.h>
3847 # include <assert.h>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1
>conftest.err
3856 cat conftest.err
>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev
/null
; then
3859 if test -s conftest.err
; then
3860 ac_cpp_err
=$ac_c_preproc_warn_flag
3861 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3868 if test -z "$ac_cpp_err"; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 # Broken: fails on valid input.
3877 rm -f conftest.err conftest.
$ac_ext
3879 # OK, works on sane cases. Now check whether non-existent headers
3880 # can be detected and how.
3881 cat >conftest.
$ac_ext <<_ACEOF
3884 cat confdefs.h
>>conftest.
$ac_ext
3885 cat >>conftest.
$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3892 grep -v '^ *+' conftest.er1
>conftest.err
3894 cat conftest.err
>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev
/null
; then
3897 if test -s conftest.err
; then
3898 ac_cpp_err
=$ac_c_preproc_warn_flag
3899 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3906 if test -z "$ac_cpp_err"; then
3907 # Broken: success on invalid input.
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 # Passes both tests.
3917 rm -f conftest.err conftest.
$ac_ext
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.
$ac_ext
3922 if $ac_preproc_ok; then
3934 echo "$as_me:$LINENO: result: $CPP" >&5
3935 echo "${ECHO_T}$CPP" >&6
3937 for ac_c_preproc_warn_flag
in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.
$ac_ext <<_ACEOF
3948 cat confdefs.h
>>conftest.
$ac_ext
3949 cat >>conftest.
$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3952 # include <limits.h>
3954 # include <assert.h>
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1
>conftest.err
3963 cat conftest.err
>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev
/null
; then
3966 if test -s conftest.err
; then
3967 ac_cpp_err
=$ac_c_preproc_warn_flag
3968 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3975 if test -z "$ac_cpp_err"; then
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.
$ac_ext >&5
3981 # Broken: fails on valid input.
3984 rm -f conftest.err conftest.
$ac_ext
3986 # OK, works on sane cases. Now check whether non-existent headers
3987 # can be detected and how.
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3999 grep -v '^ *+' conftest.er1
>conftest.err
4001 cat conftest.err
>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev
/null
; then
4004 if test -s conftest.err
; then
4005 ac_cpp_err
=$ac_c_preproc_warn_flag
4006 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4013 if test -z "$ac_cpp_err"; then
4014 # Broken: success on invalid input.
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.
$ac_ext >&5
4020 # Passes both tests.
4024 rm -f conftest.err conftest.
$ac_ext
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.
$ac_ext
4029 if $ac_preproc_ok; then
4032 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4033 See \`config.log' for more details." >&5
4034 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&2;}
4036 { (exit 1); exit 1; }; }
4040 ac_cpp
='$CPP $CPPFLAGS'
4041 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 if test "$cross_compiling" = yes; then
4047 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4050 # Even if we're cross-compiling, we want a compiler here
4051 # that is not a cross-compiler.
4052 saved_cross
=$cross_compiling
4056 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4057 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4060 if test -n "$ac_build_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4063 echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4065 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 if test -n "$BUILD_CC"; then
4069 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir
=.
4076 for ac_exec_ext
in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 BUILD_CC
=$ac_cv_prog_BUILD_CC
4088 if test -n "$BUILD_CC"; then
4089 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4090 echo "${ECHO_T}$BUILD_CC" >&6
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4097 if test -z "$ac_cv_prog_BUILD_CC"; then
4098 ac_ct_BUILD_CC
=$BUILD_CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc
; ac_word
=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 if test -n "$ac_ct_BUILD_CC"; then
4107 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir
=.
4114 for ac_exec_ext
in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4126 if test -n "$ac_ct_BUILD_CC"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4128 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 BUILD_CC
=$ac_ct_BUILD_CC
4136 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4139 if test -z "$BUILD_CC"; then
4140 if test -n "$ac_build_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4142 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$BUILD_CC"; then
4149 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_exec_ext
in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 BUILD_CC
=$ac_cv_prog_BUILD_CC
4168 if test -n "$BUILD_CC"; then
4169 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4170 echo "${ECHO_T}$BUILD_CC" >&6
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4177 if test -z "$ac_cv_prog_BUILD_CC"; then
4178 ac_ct_BUILD_CC
=$BUILD_CC
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc
; ac_word
=$2
4181 echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 if test -n "$ac_ct_BUILD_CC"; then
4187 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4206 if test -n "$ac_ct_BUILD_CC"; then
4207 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4208 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4214 BUILD_CC
=$ac_ct_BUILD_CC
4216 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4220 if test -z "$BUILD_CC"; then
4221 # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc
; ac_word
=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 if test -n "$BUILD_CC"; then
4229 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir
=.
4237 for ac_exec_ext
in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4240 ac_prog_rejected
=yes
4243 ac_cv_prog_BUILD_CC
="cc"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test $ac_prog_rejected = yes; then
4251 # We found a bogon in the path, so make sure we never use it.
4252 set dummy
$ac_cv_prog_BUILD_CC
4254 if test $# != 0; then
4255 # We chose a different compiler from the bogus one.
4256 # However, it has the same basename, so the bogon will be chosen
4257 # first if we set BUILD_CC to just the basename; use the full file name.
4259 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4264 BUILD_CC
=$ac_cv_prog_BUILD_CC
4265 if test -n "$BUILD_CC"; then
4266 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4267 echo "${ECHO_T}$BUILD_CC" >&6
4269 echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4274 if test -z "$BUILD_CC"; then
4275 if test -n "$ac_build_prefix"; then
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_exec_ext
in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 BUILD_CC
=$ac_cv_prog_BUILD_CC
4305 if test -n "$BUILD_CC"; then
4306 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4307 echo "${ECHO_T}$BUILD_CC" >&6
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4313 test -n "$BUILD_CC" && break
4316 if test -z "$BUILD_CC"; then
4317 ac_ct_BUILD_CC
=$BUILD_CC
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy
$ac_prog; ac_word
=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test -n "$ac_ct_BUILD_CC"; then
4328 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir
=.
4335 for ac_exec_ext
in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4347 if test -n "$ac_ct_BUILD_CC"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4349 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 test -n "$ac_ct_BUILD_CC" && break
4358 BUILD_CC
=$ac_ct_BUILD_CC
4364 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details." >&5
4366 echo "$as_me: error: no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Provide some information about the compiler.
4371 echo "$as_me:$LINENO:" \
4372 "checking for C compiler version" >&5
4373 ac_compiler
=`set X $ac_compile; echo $2`
4374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4375 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4380 (eval $ac_compiler -v </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); }
4390 cat >conftest.
$ac_ext <<_ACEOF
4393 cat confdefs.h
>>conftest.
$ac_ext
4394 cat >>conftest.
$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4405 ac_clean_files_save
=$ac_clean_files
4406 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4407 # Try to create an executable without -o first, disregard a.out.
4408 # It will help us diagnose broken compilers, and finding out an intuition
4410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4412 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4414 (eval $ac_link_default) 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; then
4418 # Find the output, starting from the most likely. This scheme is
4419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4422 # Be careful to initialize this variable, since it used to be cached.
4423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4425 # b.out is created by i960 compilers.
4426 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4428 test -f "$ac_file" ||
continue
4430 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4433 # This is the source file.
4436 # We found the default executable, but exeext='' is most
4440 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 # FIXME: I believe we export ac_cv_exeext for Libtool,
4442 # but it would be cool to find out if it's true. Does anybody
4443 # maintain Libtool? --akim.
4444 export ac_cv_build_exeext
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.
$ac_ext >&5
4454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&2;}
4458 { (exit 77); exit 77; }; }
4461 ac_build_exeext
=$ac_cv_build_exeext
4462 echo "$as_me:$LINENO: result: $ac_file" >&5
4463 echo "${ECHO_T}$ac_file" >&6
4465 # Check the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472 if { ac_try
='./$ac_file'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4480 if test "$cross_compiling" = maybe
; then
4483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6
4496 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4497 ac_clean_files
=$ac_clean_files_save
4498 # Check the compiler produces executables we can run. If not, either
4499 # the compiler is broken, or we cross compile.
4500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6
4505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4514 # work properly (i.e., refer to `conftest.exe'), while it won't with
4516 for ac_file
in conftest.exe conftest conftest.
*; do
4517 test -f "$ac_file" ||
continue
4519 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4520 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4521 export ac_cv_build_exeext
4527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4530 See \`config.log' for more details." >&2;}
4531 { (exit 1); exit 1; }; }
4534 rm -f conftest
$ac_cv_build_exeext
4535 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4536 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4538 rm -f conftest.
$ac_ext
4539 BUILD_EXEEXT
=$ac_cv_build_exeext
4540 ac_build_exeext
=$BUILD_EXEEXT
4543 # Restore configuration environment
4544 cross_compiling
=$saved_cross
4547 ac_cpp
='$CPP $CPPFLAGS'
4548 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4553 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4556 CFLAGS
="$mule_backup_CFLAGS"
4557 CXXFLAGS
="$mule_backup_CXXFLAGS"
4558 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4559 for ac_prog
in gawk mawk nawk
awk
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy
$ac_prog; ac_word
=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_AWK+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$AWK"; then
4569 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir
=.
4576 for ac_exec_ext
in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_AWK
="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 if test -n "$AWK"; then
4589 echo "$as_me:$LINENO: result: $AWK" >&5
4590 echo "${ECHO_T}$AWK" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$AWK" && break
4599 echo "$as_me:$LINENO: checking for egrep" >&5
4600 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4601 if test "${ac_cv_prog_egrep+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4605 then ac_cv_prog_egrep
='grep -E'
4606 else ac_cv_prog_egrep
='egrep'
4609 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4610 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4611 EGREP
=$ac_cv_prog_egrep
4614 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4616 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4617 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 cat >conftest.
make <<\_ACEOF
4622 @
echo 'ac_maketemp="$(MAKE)"'
4624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4625 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4626 if test -n "$ac_maketemp"; then
4627 eval ac_cv_prog_make_
${ac_make}_set
=yes
4629 eval ac_cv_prog_make_
${ac_make}_set
=no
4633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 SET_MAKE
="MAKE=${MAKE-make}"
4644 for ac_prog
in flex
lex
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy
$ac_prog; ac_word
=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_LEX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$LEX"; then
4654 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir
=.
4661 for ac_exec_ext
in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_LEX
="$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 if test -n "$LEX"; then
4674 echo "$as_me:$LINENO: result: $LEX" >&5
4675 echo "${ECHO_T}$LEX" >&6
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4681 test -n "$LEX" && break
4683 test -n "$LEX" || LEX
=":"
4685 if test -z "$LEXLIB"
4687 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4688 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4689 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 ac_check_lib_save_LIBS
=$LIBS
4694 cat >conftest.
$ac_ext <<_ACEOF
4697 cat confdefs.h
>>conftest.
$ac_ext
4698 cat >>conftest.
$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4716 rm -f conftest.
$ac_objext conftest
$ac_exeext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718 (eval $ac_link) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1
>conftest.err
4722 cat conftest.err
>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try
='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try
='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_fl_yywrap
=yes
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.
$ac_ext >&5
4743 ac_cv_lib_fl_yywrap
=no
4745 rm -f conftest.err conftest.
$ac_objext \
4746 conftest
$ac_exeext conftest.
$ac_ext
4747 LIBS
=$ac_check_lib_save_LIBS
4749 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4750 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4751 if test $ac_cv_lib_fl_yywrap = yes; then
4754 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4755 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4756 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_check_lib_save_LIBS
=$LIBS
4761 cat >conftest.
$ac_ext <<_ACEOF
4764 cat confdefs.h
>>conftest.
$ac_ext
4765 cat >>conftest.
$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4783 rm -f conftest.
$ac_objext conftest
$ac_exeext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785 (eval $ac_link) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1
>conftest.err
4789 cat conftest.err
>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try
='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try
='test -s conftest$ac_exeext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_lib_l_yywrap
=yes
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.
$ac_ext >&5
4810 ac_cv_lib_l_yywrap
=no
4812 rm -f conftest.err conftest.
$ac_objext \
4813 conftest
$ac_exeext conftest.
$ac_ext
4814 LIBS
=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4817 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4818 if test $ac_cv_lib_l_yywrap = yes; then
4826 if test "x$LEX" != "x:"; then
4827 echo "$as_me:$LINENO: checking lex output file root" >&5
4828 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4829 if test "${ac_cv_prog_lex_root+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 # The minimal lex program is just a single line: %%. But some broken lexes
4833 # (Solaris, I think it was) want two %% lines, so accommodate them.
4834 cat >conftest.l
<<_ACEOF
4838 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4839 (eval $LEX conftest.l
) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }
4843 if test -f lex.yy.c
; then
4844 ac_cv_prog_lex_root
=lex.yy
4845 elif test -f lexyy.c
; then
4846 ac_cv_prog_lex_root
=lexyy
4848 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4849 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4850 { (exit 1); exit 1; }; }
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4854 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4856 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4858 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4859 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4860 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 # POSIX says lex can declare yytext either as a pointer or an array; the
4864 # default is implementation-dependent. Figure out which it is, since
4865 # not all implementations provide the %pointer and %array declarations.
4866 ac_cv_prog_lex_yytext_pointer
=no
4867 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4869 LIBS
="$LIBS $LEXLIB"
4870 cat >conftest.
$ac_ext <<_ACEOF
4871 `cat $LEX_OUTPUT_ROOT.c`
4873 rm -f conftest.
$ac_objext conftest
$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1
>conftest.err
4879 cat conftest.err
>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try
='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_prog_lex_yytext_pointer
=yes
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4901 rm -f conftest.err conftest.
$ac_objext \
4902 conftest
$ac_exeext conftest.
$ac_ext
4904 rm -f "${LEX_OUTPUT_ROOT}.c"
4907 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4908 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4909 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4911 cat >>confdefs.h
<<\_ACEOF
4912 #define YYTEXT_POINTER 1
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir
=.
4942 # Account for people who put trailing slashes in PATH elements.
4944 .
/ | .
// |
/cC
/* | \
4945 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4946 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4952 for ac_prog
in ginstall scoinst
install; do
4953 for ac_exec_ext
in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4955 if test $ac_prog = install &&
4956 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4964 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL
=$ac_cv_path_install
4979 # As a last resort, use the slow shell script. We don't cache a
4980 # path for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the path is relative.
4983 INSTALL
=$ac_install_sh
4986 echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 RANLIB
=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB
=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib
; ac_word
=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5063 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB
=$ac_ct_RANLIB
5074 RANLIB
="$ac_cv_prog_RANLIB"
5077 for ac_prog
in 'bison -y' byacc
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy
$ac_prog; ac_word
=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_YACC+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 if test -n "$YACC"; then
5087 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir
=.
5094 for ac_exec_ext
in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_YACC
="$ac_prog"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 YACC
=$ac_cv_prog_YACC
5106 if test -n "$YACC"; then
5107 echo "$as_me:$LINENO: result: $YACC" >&5
5108 echo "${ECHO_T}$YACC" >&6
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 test -n "$YACC" && break
5116 test -n "$YACC" || YACC
="yacc"
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5121 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_RANLIB+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 if test -n "$RANLIB"; then
5128 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir
=.
5135 for ac_exec_ext
in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 RANLIB
=$ac_cv_prog_RANLIB
5147 if test -n "$RANLIB"; then
5148 echo "$as_me:$LINENO: result: $RANLIB" >&5
5149 echo "${ECHO_T}$RANLIB" >&6
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5156 if test -z "$ac_cv_prog_RANLIB"; then
5157 ac_ct_RANLIB
=$RANLIB
5158 # Extract the first word of "ranlib", so it can be a program name with args.
5159 set dummy ranlib
; ac_word
=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$ac_ct_RANLIB"; then
5166 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir
=.
5173 for ac_exec_ext
in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB
=$ac_ct_RANLIB
5195 RANLIB
="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir
=.
5214 for ac_exec_ext
in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 STRIP
=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip
; ac_word
=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir
=.
5252 for ac_exec_ext
in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP
="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5264 if test -n "$ac_ct_STRIP"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5266 echo "${ECHO_T}$ac_ct_STRIP" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5274 STRIP
="$ac_cv_prog_STRIP"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5279 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_AR+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$AR"; then
5286 ac_cv_prog_AR
="$AR" # Let the user override the test.
5288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir
=.
5293 for ac_exec_ext
in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 if test -n "$AR"; then
5306 echo "$as_me:$LINENO: result: $AR" >&5
5307 echo "${ECHO_T}$AR" >&6
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_AR"; then
5316 # Extract the first word of "ar", so it can be a program name with args.
5317 set dummy
ar; ac_word
=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$ac_ct_AR"; then
5324 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir
=.
5331 for ac_exec_ext
in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_AR
="ar"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5343 if test -n "$ac_ct_AR"; then
5344 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5345 echo "${ECHO_T}$ac_ct_AR" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5358 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_LD+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 if test -n "$LD"; then
5365 ac_cv_prog_LD
="$LD" # Let the user override the test.
5367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir
=.
5372 for ac_exec_ext
in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 if test -n "$LD"; then
5385 echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5393 if test -z "$ac_cv_prog_LD"; then
5395 # Extract the first word of "ld", so it can be a program name with args.
5396 set dummy ld
; ac_word
=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test -n "$ac_ct_LD"; then
5403 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_ac_ct_LD
="ld"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5422 if test -n "$ac_ct_LD"; then
5423 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5424 echo "${ECHO_T}$ac_ct_LD" >&6
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5436 # Check whether --enable-monolithic or --disable-monolithic was given.
5437 if test "${enable_monolithic+set}" = set; then
5438 enableval
="$enable_monolithic"
5439 MONOLITHIC
=$enableval
5444 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5445 if test "${enable_amule_daemon+set}" = set; then
5446 enableval
="$enable_amule_daemon"
5447 AMULE_DAEMON
=$enableval
5452 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5453 if test "${enable_amulecmd+set}" = set; then
5454 enableval
="$enable_amulecmd"
5460 # Check whether --enable-webserver or --disable-webserver was given.
5461 if test "${enable_webserver+set}" = set; then
5462 enableval
="$enable_webserver"
5468 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5469 if test "${enable_amule_gui+set}" = set; then
5470 enableval
="$enable_amule_gui"
5471 AMULE_GUI
=$enableval
5476 # Check whether --enable-cas or --disable-cas was given.
5477 if test "${enable_cas+set}" = set; then
5478 enableval
="$enable_cas"
5484 # Check whether --enable-wxcas or --disable-wxcas was given.
5485 if test "${enable_wxcas+set}" = set; then
5486 enableval
="$enable_wxcas"
5492 # Check whether --enable-ed2k or --disable-ed2k was given.
5493 if test "${enable_ed2k+set}" = set; then
5494 enableval
="$enable_ed2k"
5500 # Check whether --enable-alc or --disable-alc was given.
5501 if test "${enable_alc+set}" = set; then
5502 enableval
="$enable_alc"
5508 # Check whether --enable-alcc or --disable-alcc was given.
5509 if test "${enable_alcc+set}" = set; then
5510 enableval
="$enable_alcc"
5516 # Check whether --enable-monolithic or --disable-monolithic was given.
5517 if test "${enable_monolithic+set}" = set; then
5518 enableval
="$enable_monolithic"
5519 MONOLITHIC
=$enableval
5524 # Check whether --enable-upnp or --disable-upnp was given.
5525 if test "${enable_upnp+set}" = set; then
5526 enableval
="$enable_upnp"
5527 ENABLE_UPNP
=$enableval
5532 # Check whether --enable-xas or --disable-xas was given.
5533 if test "${enable_xas+set}" = set; then
5534 enableval
="$enable_xas"
5540 # Check whether --enable-geoip or --disable-geoip was given.
5541 if test "${enable_geoip+set}" = set; then
5542 enableval
="$enable_geoip"
5543 ENABLE_IP2COUNTRY
=$enableval
5545 ENABLE_IP2COUNTRY
=no
5548 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
5549 GEOIP_LIBS
="-lGeoIP"
5554 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5555 if test "${with_geoip_headers+set}" = set; then
5556 withval
="$with_geoip_headers"
5557 GEOIP_CPPFLAGS
="-I$withval"
5561 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5562 if test "${with_geoip_lib+set}" = set; then
5563 withval
="$with_geoip_lib"
5564 GEOIP_LDFLAGS
="-L$withval"
5568 # Check whether --with-geoip-static or --without-geoip-static was given.
5569 if test "${with_geoip_static+set}" = set; then
5570 withval
="$with_geoip_static"
5571 if test "$withval" != "no"; then
5572 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5577 # Default is yes, because they're most likely compatible.
5578 # However, this is only used when cross-compiling.
5580 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5581 if test "${with_gnu_malloc+set}" = set; then
5582 withval
="$with_gnu_malloc"
5589 # Checking for libs before all other stuff to break
5590 # configure as soon as possible in case of a missing one
5591 # to avoid losing too much time
5596 # Check whether --with-zlib or --without-zlib was given.
5597 if test "${with_zlib+set}" = set; then
5598 withval
="$with_zlib"
5602 case "${with_zlib:-yes}" in
5604 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5605 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5606 { (exit 1); exit 1; }; }
5611 zlib_prefix
="$with_zlib"
5614 mule_backup_CPPFLAGS
="$CPPFLAGS"
5615 mule_backup_LDFLAGS
="$LDFLAGS"
5616 mule_backup_LIBS
="$LIBS"
5617 if test -n "$zlib_prefix"; then
5619 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5620 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5621 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5622 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5632 LIBS
="$ZLIB_LIBS $LIBS"
5634 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5635 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5636 if test "$cross_compiling" = yes; then
5640 cat >conftest.
$ac_ext <<_ACEOF
5644 cat confdefs.h
>>conftest.
$ac_ext
5645 cat >>conftest.
$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5655 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5663 rm -f conftest.
$ac_objext conftest
$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1
>conftest.err
5669 cat conftest.err
>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try
='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try
='test -s conftest$ac_exeext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5686 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5687 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5688 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5689 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5690 if test "$cross_zver_max" -gt "1"; then
5692 elif test "$cross_zver_max" -eq "1"; then
5694 if test "$cross_zver_mid" -gt "1"; then
5696 elif test "$cross_zver_mid" -eq "1"; then
5697 if test "$cross_zver_min" -ge "4"; then
5706 if test ${result:-no} = yes; then
5707 z_version
=" (version $ZLIB_VERSION)"
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.
$ac_ext >&5
5716 rm -f conftest.err conftest.
$ac_objext \
5717 conftest
$ac_exeext conftest.
$ac_ext
5718 echo "$as_me:$LINENO: result: $result$z_version" >&5
5719 echo "${ECHO_T}$result$z_version" >&6
5722 cat >conftest.
$ac_ext <<_ACEOF
5726 cat confdefs.h
>>conftest.
$ac_ext
5727 cat >>conftest.
$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5736 char *zver = zlibVersion();
5737 FILE *f=fopen("conftestval", "w");
5744 zver[4] >= '4'))) ? "yes" : "no");
5746 f=fopen("conftestver", "w");
5748 fprintf(f, "%s", ZLIB_VERSION);
5757 rm -f conftest
$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5769 if test -f conftestval
; then
5770 result
=`cat conftestval`
5775 if test ${result:-no} = yes; then
5777 if test -f conftestver
; then
5779 ZLIB_VERSION
=`cat conftestver`
5780 z_version
=" (version $ZLIB_VERSION)"
5789 echo "$as_me:$LINENO: result: $result$z_version" >&5
5790 echo "${ECHO_T}$result$z_version" >&6
5793 echo "$as_me: program exited with status $ac_status" >&5
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5800 echo "$as_me:$LINENO: result: $result" >&5
5801 echo "${ECHO_T}$result" >&6
5804 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5807 CPPFLAGS
="$mule_backup_CPPFLAGS"
5808 LDFLAGS
="$mule_backup_LDFLAGS"
5809 LIBS
="$mule_backup_LIBS"
5811 if test ${result:-no} = no
; then
5816 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5817 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5818 { (exit 1); exit 1; }; }
5825 if test x
$CAS = xyes
; then
5829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdc+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5853 rm -f conftest.
$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try
='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_header_stdc
=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 ac_cv_header_stdc
=no
5882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "memchr" >/dev
/null
2>&1; then
5899 ac_cv_header_stdc
=no
5905 if test $ac_cv_header_stdc = yes; then
5906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "free" >/dev
/null
2>&1; then
5920 ac_cv_header_stdc
=no
5926 if test $ac_cv_header_stdc = yes; then
5927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928 if test "$cross_compiling" = yes; then
5931 cat >conftest.
$ac_ext <<_ACEOF
5934 cat confdefs.h
>>conftest.
$ac_ext
5935 cat >>conftest.
$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5942 # define ISLOWER(c) \
5943 (('a' <= (c) && (c) <= 'i') \
5944 || ('j' <= (c) && (c) <= 'r') \
5945 || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5954 for (i = 0; i < 256; i++)
5955 if (XOR (islower (i), ISLOWER (i))
5956 || toupper (i) != TOUPPER (i))
5961 rm -f conftest
$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5974 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.
$ac_ext >&5
5979 ac_cv_header_stdc
=no
5981 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5989 cat >>confdefs.h
<<\_ACEOF
5990 #define STDC_HEADERS 1
5995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6005 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6006 inttypes.h stdint.h unistd.h
6008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.
$ac_ext <<_ACEOF
6017 cat confdefs.h
>>conftest.
$ac_ext
6018 cat >>conftest.
$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6022 #include <$ac_header>
6024 rm -f conftest.
$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6028 grep -v '^ *+' conftest.er1
>conftest.err
6030 cat conftest.err
>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try
='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try
='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 eval "$as_ac_Header=yes"
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.
$ac_ext >&5
6051 eval "$as_ac_Header=no"
6053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6058 cat >>confdefs.h
<<_ACEOF
6059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6070 if test "${with_gdlib_prefix+set}" = set; then
6071 withval
="$with_gdlib_prefix"
6075 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6076 if test "${with_gdlib_config+set}" = set; then
6077 withval
="$with_gdlib_config"
6083 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6084 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6085 GDLIB_CONFIG_NAME
=gdlib-config
6088 if test -n "$with_gdlib_config"; then
6089 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6093 # deal with optional prefix
6094 if test -n "$with_gdlib_prefix"; then
6095 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6099 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6100 if test -x "$GDLIB_CONFIG_NAME"; then
6102 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6103 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6104 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6105 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6106 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6109 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6110 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6111 echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 case $GDLIB_CONFIG_PATH in
6118 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6122 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6123 for as_dir
in $as_dummy
6126 test -z "$as_dir" && as_dir
=.
6127 for ac_exec_ext
in '' $ac_executable_extensions; do
6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6140 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6142 if test -n "$GDLIB_CONFIG_PATH"; then
6143 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6144 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6146 echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6153 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6155 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6156 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6157 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6159 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6160 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6161 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6162 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6165 if test $gdlib_config_major_version -gt 2; then
6167 elif test $gdlib_config_major_version -eq 2; then
6169 if test $gdlib_config_minor_version -gt 0; then
6171 elif test $gdlib_config_minor_version -eq 0; then
6172 if test $gdlib_config_micro_version -ge 0; then
6182 if test -z "$gdlib_ver_ok"; then
6184 if test -z "$GDLIB_VERSION"; then
6185 echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6189 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6190 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6198 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6199 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6200 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6201 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6202 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6203 mule_backup_CFLAGS
="$CFLAGS"
6204 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6205 if test "${ac_cv_header_gd_h+set}" = set; then
6206 echo "$as_me:$LINENO: checking for gd.h" >&5
6207 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6208 if test "${ac_cv_header_gd_h+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6212 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6214 # Is the header compilable?
6215 echo "$as_me:$LINENO: checking gd.h usability" >&5
6216 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6217 cat >conftest.
$ac_ext <<_ACEOF
6220 cat confdefs.h
>>conftest.
$ac_ext
6221 cat >>conftest.
$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6226 rm -f conftest.
$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1
>conftest.err
6232 cat conftest.err
>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try
='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try
='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_header_compiler
=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6253 ac_header_compiler
=no
6255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6257 echo "${ECHO_T}$ac_header_compiler" >&6
6259 # Is the header present?
6260 echo "$as_me:$LINENO: checking gd.h presence" >&5
6261 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6262 cat >conftest.
$ac_ext <<_ACEOF
6265 cat confdefs.h
>>conftest.
$ac_ext
6266 cat >>conftest.
$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6271 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6273 grep -v '^ *+' conftest.er1
>conftest.err
6275 cat conftest.err
>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev
/null
; then
6278 if test -s conftest.err
; then
6279 ac_cpp_err
=$ac_c_preproc_warn_flag
6280 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6287 if test -z "$ac_cpp_err"; then
6288 ac_header_preproc
=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.
$ac_ext >&5
6293 ac_header_preproc
=no
6295 rm -f conftest.err conftest.
$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6297 echo "${ECHO_T}$ac_header_preproc" >&6
6299 # So? What about this header?
6300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6302 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6303 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6305 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6306 ac_header_preproc
=yes
6309 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6310 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6312 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6314 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6316 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6318 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6320 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6323 ## ------------------------------ ##
6324 ## Report this to admin@amule.org ##
6325 ## ------------------------------ ##
6328 sed "s/^/$as_me: WARNING: /" >&2
6331 echo "$as_me:$LINENO: checking for gd.h" >&5
6332 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6333 if test "${ac_cv_header_gd_h+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 ac_cv_header_gd_h
=$ac_header_preproc
6338 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6339 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6342 if test $ac_cv_header_gd_h = yes; then
6349 CFLAGS
="$mule_backup_CFLAGS"
6357 if test -n "$GDLIB_VERSION"; then
6360 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6369 if test -z "$CAS_DEFS"; then
6371 { echo "$as_me:$LINENO: WARNING:
6372 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6373 Please check that gdlib-config is in your default path, check out
6374 LD_LIBRARY_PATH or equivalent variable.
6375 Or this might also be that your gdlib-config has other name.
6376 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6377 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6378 If you use compiled packages check if you have devel pack installed.
6379 To download the latest version check http://www.boutell.com/gd
6381 echo "$as_me: WARNING:
6382 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6383 Please check that gdlib-config is in your default path, check out
6384 LD_LIBRARY_PATH or equivalent variable.
6385 Or this might also be that your gdlib-config has other name.
6386 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6387 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6388 If you use compiled packages check if you have devel pack installed.
6389 To download the latest version check http://www.boutell.com/gd
6396 GDLIB_VERSION
="not_needed"
6401 if test x
$WEB = xyes
; then
6404 for ac_header
in sys
/types.h
6406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.
$ac_ext <<_ACEOF
6422 cat confdefs.h
>>conftest.
$ac_ext
6423 cat >>conftest.
$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <$ac_header>
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try
='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try
='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler
=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_header_compiler
=no
6457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <$ac_header>
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1
>conftest.err
6477 cat conftest.err
>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev
/null
; then
6480 if test -s conftest.err
; then
6481 ac_cpp_err
=$ac_c_preproc_warn_flag
6482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc
=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.
$ac_ext >&5
6495 ac_header_preproc
=no
6497 rm -f conftest.err conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc
=yes
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525 ## ------------------------------ ##
6526 ## Report this to admin@amule.org ##
6527 ## ------------------------------ ##
6530 sed "s/^/$as_me: WARNING: /" >&2
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 eval "$as_ac_Header=\$ac_header_preproc"
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h
<<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6554 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6556 for REGEX_LIBS
in '' -lgnurx -lregex; do
6557 mule_backup_LIBS
="$LIBS"
6558 LIBS
="$REGEX_LIBS $LIBS"
6559 cat >conftest.
$ac_ext <<_ACEOF
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 #ifdef HAVE_SYS_TYPES_H
6568 # include <sys/types.h>
6577 regcomp(&preg, "", REG_EXTENDED);
6579 regexec(&preg, "", 0, pmatch, 0);
6587 rm -f conftest.
$ac_objext conftest
$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1
>conftest.err
6593 cat conftest.err
>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try
='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try
='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6610 LIBS
="$mule_backup_LIBS"
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6618 LIBS
="$mule_backup_LIBS"
6620 rm -f conftest.err conftest.
$ac_objext \
6621 conftest
$ac_exeext conftest.
$ac_ext
6623 echo "$as_me:$LINENO: result: $regex_found" >&5
6624 echo "${ECHO_T}$regex_found" >&6
6625 if test $regex_found = yes; then
6634 if test x
$WEB = xyes
; then
6637 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6638 if test "${with_libpng_prefix+set}" = set; then
6639 withval
="$with_libpng_prefix"
6643 # Check whether --with-libpng-config or --without-libpng-config was given.
6644 if test "${with_libpng_config+set}" = set; then
6645 withval
="$with_libpng_config"
6651 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6652 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6653 LIBPNG_CONFIG_NAME
=libpng-config
6656 if test -n "$with_libpng_config"; then
6657 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6661 # deal with optional prefix
6662 if test -n "$with_libpng_prefix"; then
6663 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6667 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6668 if test -x "$LIBPNG_CONFIG_NAME"; then
6670 echo "$as_me:$LINENO: checking for libpng-config" >&5
6671 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6672 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6673 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6674 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6677 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6678 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6679 echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6681 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 case $LIBPNG_CONFIG_PATH in
6686 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6690 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6691 for as_dir
in $as_dummy
6694 test -z "$as_dir" && as_dir
=.
6695 for ac_exec_ext
in '' $ac_executable_extensions; do
6696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6708 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6710 if test -n "$LIBPNG_CONFIG_PATH"; then
6711 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6712 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6714 echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6
6721 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6723 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6724 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6726 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6728 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6729 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6730 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6731 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6734 if test $libpng_config_major_version -gt 1; then
6736 elif test $libpng_config_major_version -eq 1; then
6738 if test $libpng_config_minor_version -gt 2; then
6740 elif test $libpng_config_minor_version -eq 2; then
6741 if test $libpng_config_micro_version -ge 0; then
6751 if test -z "$libpng_ver_ok"; then
6753 if test -z "$LIBPNG_VERSION"; then
6754 echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6
6758 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6759 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6767 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6768 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6769 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6770 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6771 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6778 # Try hard to find a usable libpng
6779 # Some RedHat RPMs miss libpng-config, so test for
6780 # the usability with default options.
6781 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6782 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6783 mule_backup_LIBS
="$LIBS"
6784 LIBS
="-lpng -lz -lm $LIBS"
6785 if test "$cross_compiling" = yes; then
6787 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6788 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6789 if test "${ac_cv_header_png_h+set}" = set; then
6790 echo "$as_me:$LINENO: checking for png.h" >&5
6791 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6792 if test "${ac_cv_header_png_h+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6796 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6798 # Is the header compilable?
6799 echo "$as_me:$LINENO: checking png.h usability" >&5
6800 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6810 rm -f conftest.
$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6814 grep -v '^ *+' conftest.er1
>conftest.err
6816 cat conftest.err
>&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try
='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try
='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_header_compiler
=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.
$ac_ext >&5
6837 ac_header_compiler
=no
6839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6841 echo "${ECHO_T}$ac_header_compiler" >&6
6843 # Is the header present?
6844 echo "$as_me:$LINENO: checking png.h presence" >&5
6845 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6846 cat >conftest.
$ac_ext <<_ACEOF
6849 cat confdefs.h
>>conftest.
$ac_ext
6850 cat >>conftest.
$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6857 grep -v '^ *+' conftest.er1
>conftest.err
6859 cat conftest.err
>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } >/dev
/null
; then
6862 if test -s conftest.err
; then
6863 ac_cpp_err
=$ac_c_preproc_warn_flag
6864 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6871 if test -z "$ac_cpp_err"; then
6872 ac_header_preproc
=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 ac_header_preproc
=no
6879 rm -f conftest.err conftest.
$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6886 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc
=yes
6893 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6907 ## ------------------------------ ##
6908 ## Report this to admin@amule.org ##
6909 ## ------------------------------ ##
6912 sed "s/^/$as_me: WARNING: /" >&2
6915 echo "$as_me:$LINENO: checking for png.h" >&5
6916 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6917 if test "${ac_cv_header_png_h+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_header_png_h
=$ac_header_preproc
6922 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6923 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6926 if test $ac_cv_header_png_h = yes; then
6928 LIBPNG_VERSION
="detected"
6929 LIBPNG_LIBS
="-lpng -lz -lm"
6936 cat >conftest.
$ac_ext <<_ACEOF
6940 cat confdefs.h
>>conftest.
$ac_ext
6941 cat >>conftest.
$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6947 /* Check linking to png library */
6949 png_check_sig(NULL, 0);
6955 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6956 FILE *f=fopen("conftestval", "w");
6958 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6960 f=fopen("conftestver", "w");
6962 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6971 rm -f conftest
$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6983 if test -f conftestval
; then
6984 result
=`cat conftestval`
6989 if test ${result:-no} = yes; then
6991 if test -f conftestver
; then
6993 LIBPNG_VERSION
=`cat conftestver`
6994 lib_version
=" (version $LIBPNG_VERSION)"
6999 LIBPNG_VERSION
="detected"
7006 echo "$as_me:$LINENO: result: $result$lib_version" >&5
7007 echo "${ECHO_T}$result$lib_version" >&6
7008 LIBPNG_LIBS
="-lpng -lz -lm"
7011 echo "$as_me: program exited with status $ac_status" >&5
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.
$ac_ext >&5
7018 echo "$as_me:$LINENO: result: $result" >&5
7019 echo "${ECHO_T}$result" >&6
7022 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7024 LIBS
="$mule_backup_LIBS"
7029 if test -n "$LIBPNG_VERSION"; then
7030 AMULEWEB_DEFS
="-DWITH_LIBPNG"
7032 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
7033 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
7040 LIBPNG_VERSION
="not_needed"
7045 # Check for perl File::Copy
7046 echo "$as_me:$LINENO: checking for File::Copy" >&5
7047 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
7048 if perl
-e "require File::Copy" 2>/dev
/null
; then
7049 echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7052 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
7053 echo "$as_me: error: File::Copy perl module is required" >&2;}
7054 { (exit 1); exit 1; }; }
7059 # Check if we need the GUI
7060 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
7061 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
7062 if test x
$MONOLITHIC = xyes
; then
7066 if test x
$WXCAS = xyes
; then
7070 if test x
$ALC = xyes
; then
7074 if test x
$AMULE_GUI = xyes
; then
7078 if test x
${need_gui:+set} != xset
; then
7082 echo "$as_me:$LINENO: result: $need_gui" >&5
7083 echo "${ECHO_T}$need_gui" >&6
7086 # Check for GeoIP (required for IP2Country capability)
7087 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
7089 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7090 mule_backup_CPPFLAGS
="$CPPFLAGS"
7091 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
7092 mule_backup_LDFLAGS
="$LDFLAGS"
7093 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
7094 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7095 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7096 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7097 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7101 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7103 # Is the header compilable?
7104 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
7105 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7115 rm -f conftest.
$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1
>conftest.err
7121 cat conftest.err
>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try
='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try
='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_header_compiler
=yes
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.
$ac_ext >&5
7142 ac_header_compiler
=no
7144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146 echo "${ECHO_T}$ac_header_compiler" >&6
7148 # Is the header present?
7149 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7150 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7160 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7162 grep -v '^ *+' conftest.er1
>conftest.err
7164 cat conftest.err
>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } >/dev
/null
; then
7167 if test -s conftest.err
; then
7168 ac_cpp_err
=$ac_c_preproc_warn_flag
7169 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7176 if test -z "$ac_cpp_err"; then
7177 ac_header_preproc
=yes
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.
$ac_ext >&5
7182 ac_header_preproc
=no
7184 rm -f conftest.err conftest.
$ac_ext
7185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186 echo "${ECHO_T}$ac_header_preproc" >&6
7188 # So? What about this header?
7189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7191 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7192 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7194 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7195 ac_header_preproc
=yes
7198 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7199 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7201 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7203 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7205 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7207 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7209 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7212 ## ------------------------------ ##
7213 ## Report this to admin@amule.org ##
7214 ## ------------------------------ ##
7217 sed "s/^/$as_me: WARNING: /" >&2
7220 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7221 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7222 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_header_GeoIP_h
=$ac_header_preproc
7227 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7228 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7231 if test $ac_cv_header_GeoIP_h = yes; then
7234 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7235 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7236 { (exit 1); exit 1; }; }
7240 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7241 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7242 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_check_lib_save_LIBS
=$LIBS
7246 LIBS
="-lGeoIP $LIBS"
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7269 rm -f conftest.
$ac_objext conftest
$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271 (eval $ac_link) 2>conftest.er1
7273 grep -v '^ *+' conftest.er1
>conftest.err
7275 cat conftest.err
>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try
='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try
='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_lib_GeoIP_GeoIP_open
=yes
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7296 ac_cv_lib_GeoIP_GeoIP_open
=no
7298 rm -f conftest.err conftest.
$ac_objext \
7299 conftest
$ac_exeext conftest.
$ac_ext
7300 LIBS
=$ac_check_lib_save_LIBS
7302 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7303 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7304 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7306 cat >>confdefs.h
<<\_ACEOF
7307 #define SUPPORT_GEOIP 1
7311 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7312 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7313 { (exit 1); exit 1; }; }
7316 CPPFLAGS
="$mule_backup_CPPFLAGS"
7317 LDFLAGS
="$mule_backup_LDFLAGS"
7326 # Check whether --with-wxdir or --without-wxdir was given.
7327 if test "${with_wxdir+set}" = set; then
7328 withval
="$with_wxdir"
7329 wx_config_name
="$withval/wx-config"
7330 wx_config_args
="--inplace"
7333 # Check whether --with-wx-config or --without-wx-config was given.
7334 if test "${with_wx_config+set}" = set; then
7335 withval
="$with_wx_config"
7336 wx_config_name
="$withval"
7339 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7340 if test "${with_wx_prefix+set}" = set; then
7341 withval
="$with_wx_prefix"
7342 wx_config_prefix
="$withval"
7347 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7348 if test "${with_wx_exec_prefix+set}" = set; then
7349 withval
="$with_wx_exec_prefix"
7350 wx_config_exec_prefix
="$withval"
7352 wx_config_exec_prefix
=""
7366 # Check whether --with-toolkit or --without-toolkit was given.
7367 if test "${with_toolkit+set}" = set; then
7368 withval
="$with_toolkit"
7374 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7375 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7376 if test "$withval" = "auto" ; then
7377 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7378 echo "${ECHO_T}will be automatically detected" >&6
7383 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7384 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7385 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7386 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7387 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7388 { { echo "$as_me:$LINENO: error:
7389 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7391 echo "$as_me: error:
7392 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7394 { (exit 1); exit 1; }; }
7397 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7398 echo "${ECHO_T}$TOOLKIT" >&6
7405 # Check whether --with-wxshared or --without-wxshared was given.
7406 if test "${with_wxshared+set}" = set; then
7407 withval
="$with_wxshared"
7413 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7414 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7415 if test "$withval" = "yes" ; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7420 elif test "1" = "1" -a "$withval" = "no" ; then
7421 echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7424 elif test "$withval" = "auto" ; then
7425 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7426 echo "${ECHO_T}will be automatically detected" >&6
7429 { { echo "$as_me:$LINENO: error:
7430 Unrecognized option value (allowed values: yes, auto)
7432 echo "$as_me: error:
7433 Unrecognized option value (allowed values: yes, auto)
7435 { (exit 1); exit 1; }; }
7442 # Check whether --with-wxdebug or --without-wxdebug was given.
7443 if test "${with_wxdebug+set}" = set; then
7444 withval
="$with_wxdebug"
7450 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7451 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7452 if test "$withval" = "yes" ; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454 echo "${ECHO_T}yes" >&6
7457 elif test "1" = "1" -a "$withval" = "no" ; then
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7461 elif test "$withval" = "auto" ; then
7462 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7463 echo "${ECHO_T}will be automatically detected" >&6
7466 { { echo "$as_me:$LINENO: error:
7467 Unrecognized option value (allowed values: yes, auto)
7469 echo "$as_me: error:
7470 Unrecognized option value (allowed values: yes, auto)
7472 { (exit 1); exit 1; }; }
7479 # Check whether --with-wxversion or --without-wxversion was given.
7480 if test "${with_wxversion+set}" = set; then
7481 withval
="$with_wxversion"
7487 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7488 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7489 if test "$withval" = "auto" ; then
7490 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7491 echo "${ECHO_T}will be automatically detected" >&6
7495 wx_requested_major_version
=`echo $withval | \
7496 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7497 wx_requested_minor_version
=`echo $withval | \
7498 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7500 if test "${#wx_requested_major_version}" != "1" -o \
7501 "${#wx_requested_minor_version}" != "1" ; then
7502 { { echo "$as_me:$LINENO: error:
7503 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7505 echo "$as_me: error:
7506 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7508 { (exit 1); exit 1; }; }
7511 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7512 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7513 echo "${ECHO_T}$WX_VERSION" >&6
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7519 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7520 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7521 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7522 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7525 # Force using a static wxWidgets library if the executable is to be linked statically.
7526 if test ${enable_static:-no} = yes; then
7530 # Force using a unicode build of the library
7534 if test "$WX_SHARED" = "1" ; then
7535 WXCONFIG_FLAGS
="--static=no "
7536 elif test "$WX_SHARED" = "0" ; then
7537 WXCONFIG_FLAGS
="--static=yes "
7540 if test "$WX_DEBUG" = "1" ; then
7541 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7542 elif test "$WX_DEBUG" = "0" ; then
7543 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7546 if test "$WX_UNICODE" = "1" ; then
7547 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7548 elif test "$WX_UNICODE" = "0" ; then
7549 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7552 if test "$TOOLKIT" != "auto" ; then
7553 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7556 if test "$WX_VERSION" != "auto" ; then
7557 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7560 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7562 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7563 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7567 if test x
${WX_CONFIG_NAME+set} != xset
; then
7568 WX_CONFIG_NAME
=wx-config
7571 if test "x$wx_config_name" != x
; then
7572 WX_CONFIG_NAME
="$wx_config_name"
7575 if test x
$wx_config_exec_prefix != x
; then
7576 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7577 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7579 if test x
$wx_config_prefix != x
; then
7580 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7581 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7583 if test "$cross_compiling" = "yes"; then
7584 wx_config_args
="$wx_config_args --host=$host_alias"
7587 if test -x "$WX_CONFIG_NAME" ; then
7588 echo "$as_me:$LINENO: checking for wx-config" >&5
7589 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7590 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7591 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7592 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7594 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7595 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7596 echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 case $WX_CONFIG_PATH in
7603 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7607 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7608 for as_dir
in $as_dummy
7611 test -z "$as_dir" && as_dir
=.
7612 for ac_exec_ext
in '' $ac_executable_extensions; do
7613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7625 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7627 if test -n "$WX_CONFIG_PATH"; then
7628 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7629 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7637 if test "$WX_CONFIG_PATH" != "no" ; then
7640 min_wx_version
=2.8.0
7641 if test -z "$WXCONFIG_FLAGS" ; then
7642 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7643 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7645 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7646 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7649 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7651 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7652 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7653 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7654 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7655 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7656 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7657 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7659 wx_requested_major_version
=`echo $min_wx_version | \
7660 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7661 wx_requested_minor_version
=`echo $min_wx_version | \
7662 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7663 wx_requested_micro_version
=`echo $min_wx_version | \
7664 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7668 if test "x$WX_VERSION_FULL" != x
; then
7669 if test $wx_config_major_version -gt $wx_requested_major_version; then
7672 if test $wx_config_major_version -eq $wx_requested_major_version; then
7673 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7676 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7677 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7687 if test -n "$wx_ver_ok"; then
7689 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7690 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7691 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7693 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7694 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7695 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7696 if test "x$WX_LIBS_STATIC" = "x"; then
7697 echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6
7700 echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7705 if test $wx_config_major_version -gt 2; then
7708 if test $wx_config_major_version -eq 2; then
7709 if test $wx_config_minor_version -gt 2; then
7712 if test $wx_config_minor_version -eq 2; then
7713 if test $wx_config_micro_version -ge 6; then
7722 if test $wx_config_major_version -gt 2; then
7725 if test $wx_config_major_version -eq 2; then
7726 if test $wx_config_minor_version -ge 7; then
7731 if test "x$wx_has_rescomp" = x
; then
7734 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7737 if test "x$wx_has_cppflags" = x
; then
7738 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7739 WX_CPPFLAGS
=$WX_CFLAGS
7740 WX_CXXFLAGS
=$WX_CFLAGS
7742 WX_CFLAGS_ONLY
=$WX_CFLAGS
7743 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7745 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7746 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7747 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7749 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7750 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7757 if test "x$WX_VERSION_FULL" = x
; then
7758 echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7761 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7762 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7772 if test ! -z "$WXCONFIG_FLAGS"; then
7775 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7776 build with the following settings:
7778 but such build is not available.
7780 To see the wxWidgets builds available on this system, please use
7781 'wx-config --list' command. To use the default build, returned by
7782 'wx-config --selected-config', use the options with their 'auto'
7788 The requested wxWidgets build couldn't be found.
7791 If you still get this error, then check that 'wx-config' is
7792 in path, the directory where wxWidgets libraries are installed
7793 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7794 or equivalent variable and wxWidgets version is 2.8.0 or above."
7796 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7797 echo "$as_me: error: $wx_error_message" >&2;}
7798 { (exit 1); exit 1; }; }
7824 WX_VERSION_MAJOR
="$wx_config_major_version"
7825 WX_VERSION_MINOR
="$wx_config_minor_version"
7829 if test "$wxWin" != 1; then
7830 { { echo "$as_me:$LINENO: error:
7831 wxWidgets must be installed on your system but wx-config
7832 script couldn't be found. Please check that wx-config is
7833 in path or specified by --with-wx-config=path flag, the
7834 directory where wxWidgets libraries are installed (returned
7835 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7836 equivalent variable and wxWidgets version is 2.8.0 or above.
7838 echo "$as_me: error:
7839 wxWidgets must be installed on your system but wx-config
7840 script couldn't be found. Please check that wx-config is
7841 in path or specified by --with-wx-config=path flag, the
7842 directory where wxWidgets libraries are installed (returned
7843 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7844 equivalent variable and wxWidgets version is 2.8.0 or above.
7846 { (exit 1); exit 1; }; }
7849 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7850 if test $WX_VERSION -lt 26 ; then
7852 { { echo "$as_me:$LINENO: error:
7853 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7854 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7855 version of wxWidgets.
7857 echo "$as_me: error:
7858 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7859 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7860 version of wxWidgets.
7862 { (exit 1); exit 1; }; }
7865 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7867 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7868 echo "[dbg] Using wx-config --selected-config"
7869 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7873 if test $WX_SHARED = "1"; then
7875 elif test $WX_SHARED = "0"; then
7877 elif test $WX_SHARED = "auto"; then
7882 if test "$UNICODE" = "auto" ; then
7884 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7885 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7887 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7889 if test "$WX_UNICODE" != "0"; then
7891 echo "$as_me:$LINENO: result: yes" >&5
7892 echo "${ECHO_T}yes" >&6
7896 echo "$as_me:$LINENO: result: no" >&5
7897 echo "${ECHO_T}no" >&6
7906 if test "$DEBUG" = "auto" ; then
7908 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7909 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7911 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7913 if test "$WX_DEBUG" != "0"; then
7915 echo "$as_me:$LINENO: result: yes" >&5
7916 echo "${ECHO_T}yes" >&6
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7930 if test "$STATIC" = "auto" ; then
7932 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7933 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7935 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7937 if test "$WX_STATIC" != "0"; then
7939 echo "$as_me:$LINENO: result: yes" >&5
7940 echo "${ECHO_T}yes" >&6
7944 echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6
7954 if test "$WX_STATIC" != "0"; then
7964 if test "$TOOLKIT" = "auto" ; then
7966 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7967 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7969 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7970 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7971 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7972 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7973 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7974 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7975 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7976 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7977 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7978 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7981 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7982 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7983 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7984 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7985 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7986 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7987 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7988 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7989 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7990 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7993 if test "$WX_PORT" = "unknown" ; then
7994 { { echo "$as_me:$LINENO: error:
7995 Cannot detect the currently installed wxWidgets port !
7996 Please check your 'wx-config --cxxflags'...
7998 echo "$as_me: error:
7999 Cannot detect the currently installed wxWidgets port !
8000 Please check your 'wx-config --cxxflags'...
8002 { (exit 1); exit 1; }; }
8005 echo "$as_me:$LINENO: result: $WX_PORT" >&5
8006 echo "${ECHO_T}$WX_PORT" >&6
8009 if test -z "$TOOLKIT" ; then
8018 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8019 echo "[dbg] Values of all WX_* options after final detection:"
8020 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8021 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8022 echo "[dbg] WX_SHARED: $WX_SHARED"
8023 echo "[dbg] WX_VERSION: $WX_VERSION"
8024 echo "[dbg] WX_PORT: $WX_PORT"
8027 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8028 { { echo "$as_me:$LINENO: error:
8029 Cannot build shared library against a static build of wxWidgets !
8030 This error happens because the wxWidgets build which was selected
8031 has been detected as static while you asked to build $PACKAGE_NAME
8032 as shared library and this is not possible.
8033 Use the '--disable-shared' option to build $PACKAGE_NAME
8034 as static library or '--with-wxshared' to use wxWidgets as shared library.
8036 echo "$as_me: error:
8037 Cannot build shared library against a static build of wxWidgets !
8038 This error happens because the wxWidgets build which was selected
8039 has been detected as static while you asked to build $PACKAGE_NAME
8040 as shared library and this is not possible.
8041 Use the '--disable-shared' option to build $PACKAGE_NAME
8042 as static library or '--with-wxshared' to use wxWidgets as shared library.
8044 { (exit 1); exit 1; }; }
8047 if test "$DEBUG" = "auto"; then
8050 if test "$DEBUG" = "1"; then
8052 elif test "$DEBUG" = ""; then
8056 if test "$UNICODE" = "auto"; then
8059 if test "$SHARED" = "auto"; then
8062 if test "$TOOLKIT" = "auto"; then
8068 # We also need wxBase
8069 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8070 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
8071 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
8075 if test ${SYS:-unknown} = win32
; then
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8079 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8080 echo "$as_me:$LINENO: checking for $ac_word" >&5
8081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8082 if test "${ac_cv_prog_RC+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 if test -n "$RC"; then
8086 ac_cv_prog_RC
="$RC" # Let the user override the test.
8088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8092 test -z "$as_dir" && as_dir
=.
8093 for ac_exec_ext
in '' $ac_executable_extensions; do
8094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 if test -n "$RC"; then
8106 echo "$as_me:$LINENO: result: $RC" >&5
8107 echo "${ECHO_T}$RC" >&6
8109 echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8114 if test -z "$ac_cv_prog_RC"; then
8116 # Extract the first word of "windres", so it can be a program name with args.
8117 set dummy windres
; ac_word
=$2
8118 echo "$as_me:$LINENO: checking for $ac_word" >&5
8119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 if test -n "$ac_ct_RC"; then
8124 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir
=.
8131 for ac_exec_ext
in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_ac_ct_RC
="windres"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8143 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8144 if test -n "$ac_ct_RC"; then
8145 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8146 echo "${ECHO_T}$ac_ct_RC" >&6
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8157 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8164 if test "${ENABLE_UPNP:-yes}" = yes; then
8168 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8171 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir
=.
8187 for ac_exec_ext
in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8201 if test -n "$PKG_CONFIG"; then
8202 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8203 echo "${ECHO_T}$PKG_CONFIG" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8210 if test -z "$ac_cv_path_PKG_CONFIG"; then
8211 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8212 # Extract the first word of "pkg-config", so it can be a program name with args.
8213 set dummy pkg-config
; ac_word
=$2
8214 echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8216 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 case $ac_pt_PKG_CONFIG in
8221 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8243 if test -n "$ac_pt_PKG_CONFIG"; then
8244 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8245 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8247 echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6
8251 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8253 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8257 if test -n "$PKG_CONFIG"; then
8258 _pkg_min_version
=0.9.0
8259 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8260 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8261 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8273 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8274 if test "${with_libupnp_prefix+set}" = set; then
8275 withval
="$with_libupnp_prefix"
8276 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8279 if test $cross_compiling = no
; then
8280 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8281 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8282 if test -n "$PKG_CONFIG"; then
8283 if $PKG_CONFIG libupnp
--exists; then
8284 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8285 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8287 resultstr
=" (version $LIBUPNP_VERSION)"
8288 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8289 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8290 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8291 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8292 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8296 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8302 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8308 resultstr
=" (pkg-config not found)"
8311 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8312 echo "${ECHO_T}$result$resultstr" >&6
8313 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8317 libupnp_error
="cross compiling"
8321 if test ${result:-no} = yes; then
8322 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8324 ENABLE_UPNP
=disabled
8334 # Check for Crypto++
8337 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8338 if test "${with_crypto_prefix+set}" = set; then
8339 withval
="$with_crypto_prefix"
8343 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8344 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8346 cryptopp_file_with_version
="cryptlib.h"
8348 CRYPTOPP_STYLE
="unknown"
8349 CRYPTOPP_LIB_NAME
="unknown"
8350 cryptopp_includedir
="unknown"
8351 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8352 cryptopp_libdir
="unknown"
8354 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8355 if test -z "$CRYPTOPP_PREFIX"; then
8360 # Find the Cryptopp header
8361 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8363 CRYPTOPP_STYLE
="sources"
8364 CRYPTOPP_LIB_NAME
="cryptopp"
8365 cryptopp_includedir
=
8366 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8370 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8372 CRYPTOPP_STYLE
="installed"
8373 CRYPTOPP_LIB_NAME
="cryptopp"
8374 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8375 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8376 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8379 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8381 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8382 CRYPTOPP_STYLE
="gentoo_debian"
8383 CRYPTOPP_LIB_NAME
="crypto++"
8384 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8385 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8386 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8393 if test $CRYPTOPP_STYLE = "unknown"; then
8394 result
=no
; resultstr
=""
8397 # Find out the crypto++ version and check against the minimum required
8398 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8399 CRYPTOPP_VERSION_STRING
=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8400 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8401 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8403 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8406 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8407 if test -n "$cryptopp_includedir"; then
8408 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8413 if test -n "$cryptopp_libdir"; then
8415 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8416 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8421 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8427 cat >>confdefs.h
<<_ACEOF
8428 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8435 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8443 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8444 echo "${ECHO_T}$result$resultstr" >&6
8446 if test ${result:-no} = yes; then
8448 # Check for CryptoPP >= 5.5
8449 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8450 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8456 { { echo "$as_me:$LINENO: error:
8457 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8458 Please try again with --with-crypto-prefix=/my_crypto_prefix
8459 (replace /my_crypto_prefix with a valid path to your crypto++
8460 installation directory)." >&5
8461 echo "$as_me: error:
8462 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8463 Please try again with --with-crypto-prefix=/my_crypto_prefix
8464 (replace /my_crypto_prefix with a valid path to your crypto++
8465 installation directory)." >&2;}
8466 { (exit 1); exit 1; }; }
8474 ac_cpp
='$CXXCPP $CPPFLAGS'
8475 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8482 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8483 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8484 cat >conftest.
$ac_ext <<_ACEOF
8488 cat confdefs.h
>>conftest.
$ac_ext
8489 cat >>conftest.
$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8494 #error Non-GNU C++ library found.
8499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8500 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8502 grep -v '^ *+' conftest.er1
>conftest.err
8504 cat conftest.err
>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev
/null
; then
8507 if test -s conftest.err
; then
8508 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8509 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8516 if test -z "$ac_cpp_err"; then
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.
$ac_ext >&5
8524 rm -f conftest.err conftest.
$ac_ext
8525 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8526 echo "${ECHO_T}$GLIBCXX" >&6
8529 mule_backup_CPPFLAGS
="$CPPFLAGS"
8530 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8532 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8533 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8534 cat >conftest.
$ac_ext <<_ACEOF
8538 cat confdefs.h
>>conftest.
$ac_ext
8539 cat >>conftest.
$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8543 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8544 #error No LargeFile support!
8549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1
>conftest.err
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } >/dev
/null
; then
8557 if test -s conftest.err
; then
8558 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8559 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8566 if test -z "$ac_cpp_err"; then
8568 echo "$as_me:$LINENO: result: yes" >&5
8569 echo "${ECHO_T}yes" >&6
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.
$ac_ext >&5
8576 echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578 { { echo "$as_me:$LINENO: error:
8579 Support for large files in wxWidgets is required by aMule.
8580 To continue you must recompile wxWidgets with support for
8581 large files enabled." >&5
8582 echo "$as_me: error:
8583 Support for large files in wxWidgets is required by aMule.
8584 To continue you must recompile wxWidgets with support for
8585 large files enabled." >&2;}
8586 { (exit 1); exit 1; }; }
8589 rm -f conftest.err conftest.
$ac_ext
8591 CPPFLAGS
="$mule_backup_CPPFLAGS"
8594 # Check if the compiler is broken, wrt. exceptions.
8596 echo "$as_me:$LINENO: checking for exception-handling" >&5
8597 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8598 if test "$cross_compiling" = yes; then
8600 echo "$as_me:$LINENO: result: undeterminable" >&5
8601 echo "${ECHO_T}undeterminable" >&6
8602 { echo "$as_me:$LINENO: WARNING:
8603 Cross-compilation detected, so exception handling cannot be tested.
8604 Note that broken exception handling in your compiler may lead to
8605 unexpected crashes." >&5
8606 echo "$as_me: WARNING:
8607 Cross-compilation detected, so exception handling cannot be tested.
8608 Note that broken exception handling in your compiler may lead to
8609 unexpected crashes." >&2;}
8612 cat >conftest.
$ac_ext <<_ACEOF
8616 cat confdefs.h
>>conftest.
$ac_ext
8617 cat >>conftest.
$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8636 rm -f conftest
$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649 echo "${ECHO_T}yes" >&6
8652 echo "$as_me: program exited with status $ac_status" >&5
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8658 echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8661 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8662 { (exit 1); exit 1; }; }
8665 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8670 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8671 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8672 cat >conftest.
$ac_ext <<_ACEOF
8676 cat confdefs.h
>>conftest.
$ac_ext
8677 cat >>conftest.
$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8687 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8688 std::type_info *ti = abi::__cxa_current_exception_type();
8695 rm -f conftest.
$ac_objext conftest
$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1
>conftest.err
8701 cat conftest.err
>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try
='test -z "$ac_cxx_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try
='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8720 cat >>confdefs.h
<<\_ACEOF
8721 #define HAVE_CXXABI 1
8724 echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.
$ac_ext >&5
8732 echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8736 rm -f conftest.err conftest.
$ac_objext \
8737 conftest
$ac_exeext conftest.
$ac_ext
8740 ac_cpp
='$CPP $CPPFLAGS'
8741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8746 # Check for bfd.h (to have proper backtraces without using wxExecute)
8748 echo "$as_me:$LINENO: checking for bfd" >&5
8749 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8750 mule_backup_LIBS
="$LIBS"
8751 LIBS
="-lbfd -liberty $LIBS"
8752 cat >conftest.
$ac_ext <<_ACEOF
8756 cat confdefs.h
>>conftest.
$ac_ext
8757 cat >>conftest.
$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8760 #include <ansidecl.h>
8767 char *dummy = bfd_errmsg(bfd_get_error());
8774 rm -f conftest.
$ac_objext conftest
$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1
>conftest.err
8780 cat conftest.err
>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try
='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try
='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8797 echo "$as_me:$LINENO: result: yes" >&5
8798 echo "${ECHO_T}yes" >&6
8799 BFD_CPPFLAGS
="-DHAVE_BFD"
8800 BFD_LIBS
="-lbfd -liberty"
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.
$ac_ext >&5
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 { echo "$as_me:$LINENO: WARNING:
8810 bfd.h not found or unusable, please install binutils development
8811 package if you are a developer or want to help testing aMule" >&5
8812 echo "$as_me: WARNING:
8813 bfd.h not found or unusable, please install binutils development
8814 package if you are a developer or want to help testing aMule" >&2;}
8817 rm -f conftest.err conftest.
$ac_objext \
8818 conftest
$ac_exeext conftest.
$ac_ext
8819 LIBS
="$mule_backup_LIBS"
8823 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8824 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8825 cat >conftest.
$ac_ext <<_ACEOF
8829 cat confdefs.h
>>conftest.
$ac_ext
8830 cat >>conftest.
$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 #include <execinfo.h>
8840 int n = backtrace(&bt, 1);
8841 const char **bt_syms = backtrace_symbols(bt, n);
8848 rm -f conftest.
$ac_objext conftest
$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8852 grep -v '^ *+' conftest.er1
>conftest.err
8854 cat conftest.err
>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try
='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try
='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8873 cat >>confdefs.h
<<\_ACEOF
8874 #define HAVE_EXECINFO 1
8877 echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8885 echo "$as_me:$LINENO: result: no" >&5
8886 echo "${ECHO_T}no" >&6
8889 rm -f conftest.err conftest.
$ac_objext \
8890 conftest
$ac_exeext conftest.
$ac_ext
8893 # Ok, we have all needed libs, now checking for other stuff
8894 if test "$LEX" = "flex"; then
8896 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8897 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8899 extended_flex
=`flex --help | grep header-file`
8900 if test -n "$extended_flex"; then
8901 HAVE_FLEX_EXTENDED
=yes
8903 HAVE_FLEX_EXTENDED
=no
8906 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8907 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8909 if test $HAVE_FLEX_EXTENDED = no
; then
8910 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8911 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8916 HAVE_FLEX_EXTENDED
=no
8920 # Flush standard test results for speeding cache
8921 cat >confcache
<<\_ACEOF
8922 # This file is a shell script that caches the results of configure
8923 # tests run on this system so they can be shared between configure
8924 # scripts and configure runs, see configure's option --config-cache.
8925 # It is not useful on other systems. If it contains results you don't
8926 # want to keep, you may remove or edit it.
8928 # config.status only pays attention to the cache file if you give it
8929 # the --recheck option to rerun configure.
8931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8937 # The following way of writing the cache mishandles newlines in values,
8938 # but we know of no workaround that is simple, portable, and efficient.
8939 # So, don't put newlines in cache variables' values.
8940 # Ultrix sh set writes to stderr and can't be redirected directly,
8941 # and sets the high bit in the cache file unless we assign to the vars.
8944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8946 # `set' does not quote correctly, so add quotes (double-quote
8947 # substitution turns \\\\ into \\, and sed turns \\ into \).
8950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8953 # `set' quotes correctly as required by POSIX, so do not add quotes.
8955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8966 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8967 if test -w $cache_file; then
8968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8969 cat confcache
>$cache_file
8971 echo "not updating unwritable cache $cache_file"
8976 # Checks for header files.
8977 echo "$as_me:$LINENO: checking for X" >&5
8978 echo $ECHO_N "checking for X... $ECHO_C" >&6
8981 # Check whether --with-x or --without-x was given.
8982 if test "${with_x+set}" = set; then
8986 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8987 if test "x$with_x" = xno
; then
8988 # The user explicitly disabled X.
8991 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8992 # Both variables are already set.
8995 if test "${ac_cv_have_x+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 # One or both of the vars are not set, and there is no cached value.
8999 ac_x_includes
=no ac_x_libraries
=no
9001 if mkdir conftest.dir
; then
9003 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9004 cat >Imakefile
<<'_ACEOF'
9006 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9008 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9010 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9011 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9012 for ac_extension
in a so sl
; do
9013 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9014 test -f $ac_im_libdir/libX11.
$ac_extension; then
9015 ac_im_usrlibdir
=$ac_im_libdir; break
9018 # Screen out bogus values from the imake configuration. They are
9019 # bogus both because they are the default anyway, and because
9020 # using them would break gcc on systems where it needs fixed includes.
9021 case $ac_im_incroot in
9023 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9025 case $ac_im_usrlibdir in
9027 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9034 # Standard set of common directories for X headers.
9035 # Check X11 before X11Rn because it is often a symlink to the current release.
9047 /usr/local/X11/include
9048 /usr/local/X11R6/include
9049 /usr/local/X11R5/include
9050 /usr/local/X11R4/include
9052 /usr/local/include/X11
9053 /usr/local/include/X11R6
9054 /usr/local/include/X11R5
9055 /usr/local/include/X11R4
9059 /usr/XFree86/include/X11
9063 /usr/unsupported/include
9065 /usr/local/x11r5/include
9066 /usr/lpp/Xamples/include
9068 /usr/openwin/include
9069 /usr/openwin/share/include'
9071 if test "$ac_x_includes" = no
; then
9072 # Guess where to find include files, by looking for Intrinsic.h.
9073 # First, try using that file with no special directory specified.
9074 cat >conftest.
$ac_ext <<_ACEOF
9077 cat confdefs.h
>>conftest.
$ac_ext
9078 cat >>conftest.
$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 #include <X11/Intrinsic.h>
9082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9085 grep -v '^ *+' conftest.er1
>conftest.err
9087 cat conftest.err
>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } >/dev
/null
; then
9090 if test -s conftest.err
; then
9091 ac_cpp_err
=$ac_c_preproc_warn_flag
9092 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9099 if test -z "$ac_cpp_err"; then
9100 # We can compile using X headers with no special include directory.
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.
$ac_ext >&5
9106 for ac_dir
in $ac_x_header_dirs; do
9107 if test -r "$ac_dir/X11/Intrinsic.h"; then
9108 ac_x_includes
=$ac_dir
9113 rm -f conftest.err conftest.
$ac_ext
9114 fi # $ac_x_includes = no
9116 if test "$ac_x_libraries" = no
; then
9117 # Check for the libraries.
9118 # See if we find them without any special options.
9119 # Don't add to $LIBS permanently.
9122 cat >conftest.
$ac_ext <<_ACEOF
9125 cat confdefs.h
>>conftest.
$ac_ext
9126 cat >>conftest.
$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <X11/Intrinsic.h>
9137 rm -f conftest.
$ac_objext conftest
$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>conftest.er1
9141 grep -v '^ *+' conftest.er1
>conftest.err
9143 cat conftest.err
>&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try
='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try
='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9160 # We can link X programs with no special library path.
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.
$ac_ext >&5
9167 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9169 # Don't even attempt the hair of trying to link an X program!
9170 for ac_extension
in a so sl
; do
9171 if test -r $ac_dir/libXt.
$ac_extension; then
9172 ac_x_libraries
=$ac_dir
9178 rm -f conftest.err conftest.
$ac_objext \
9179 conftest
$ac_exeext conftest.
$ac_ext
9180 fi # $ac_x_libraries = no
9182 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9183 # Didn't find X anywhere. Cache the known absence of X.
9184 ac_cv_have_x
="have_x=no"
9186 # Record where we found X for the cache.
9187 ac_cv_have_x
="have_x=yes \
9188 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9193 eval "$ac_cv_have_x"
9196 if test "$have_x" != yes; then
9197 echo "$as_me:$LINENO: result: $have_x" >&5
9198 echo "${ECHO_T}$have_x" >&6
9201 # If each of the values was on the command line, it overrides each guess.
9202 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9203 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9204 # Update the cache value to reflect the command line values.
9205 ac_cv_have_x
="have_x=yes \
9206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9207 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9208 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9211 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9212 # for constant arguments. Useless!
9213 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9214 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9215 if test "${ac_cv_working_alloca_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 cat >conftest.
$ac_ext <<_ACEOF
9221 cat confdefs.h
>>conftest.
$ac_ext
9222 cat >>conftest.
$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9228 char *p = (char *) alloca (2 * sizeof (int));
9233 rm -f conftest.
$ac_objext conftest
$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9237 grep -v '^ *+' conftest.er1
>conftest.err
9239 cat conftest.err
>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try
='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try
='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_working_alloca_h
=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.
$ac_ext >&5
9260 ac_cv_working_alloca_h
=no
9262 rm -f conftest.err conftest.
$ac_objext \
9263 conftest
$ac_exeext conftest.
$ac_ext
9265 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9266 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9267 if test $ac_cv_working_alloca_h = yes; then
9269 cat >>confdefs.h
<<\_ACEOF
9270 #define HAVE_ALLOCA_H 1
9275 echo "$as_me:$LINENO: checking for alloca" >&5
9276 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9277 if test "${ac_cv_func_alloca_works+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 cat >conftest.
$ac_ext <<_ACEOF
9283 cat confdefs.h
>>conftest.
$ac_ext
9284 cat >>conftest.
$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 # define alloca __builtin_alloca
9290 # include <malloc.h>
9291 # define alloca _alloca
9294 # include <alloca.h>
9299 # ifndef alloca /* predefined by HP cc +Olibcalls */
9310 char *p = (char *) alloca (1);
9315 rm -f conftest.
$ac_objext conftest
$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try
='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try
='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_func_alloca_works
=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9342 ac_cv_func_alloca_works
=no
9344 rm -f conftest.err conftest.
$ac_objext \
9345 conftest
$ac_exeext conftest.
$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9348 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9350 if test $ac_cv_func_alloca_works = yes; then
9352 cat >>confdefs.h
<<\_ACEOF
9353 #define HAVE_ALLOCA 1
9357 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9358 # that cause trouble. Some versions do not even contain alloca or
9359 # contain a buggy version. If you still want to use their alloca,
9360 # use ar to extract alloca.o from them instead of compiling alloca.c.
9362 ALLOCA
=alloca.
$ac_objext
9364 cat >>confdefs.h
<<\_ACEOF
9369 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9370 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9371 if test "${ac_cv_os_cray+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 cat >conftest.
$ac_ext <<_ACEOF
9377 cat confdefs.h
>>conftest.
$ac_ext
9378 cat >>conftest.
$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #if defined(CRAY) && ! defined(CRAY2)
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "webecray" >/dev
/null
2>&1; then
9396 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9397 echo "${ECHO_T}$ac_cv_os_cray" >&6
9398 if test $ac_cv_os_cray = yes; then
9399 for ac_func
in _getb67 GETB67 getb67
; do
9400 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9401 echo "$as_me:$LINENO: checking for $ac_func" >&5
9402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9403 if eval "test \"\${$as_ac_var+set}\" = set"; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define $ac_func innocuous_$ac_func
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char $ac_func (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9422 # include <limits.h>
9424 # include <assert.h>
9429 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9443 char (*f) () = $ac_func;
9452 return f != $ac_func;
9457 rm -f conftest.
$ac_objext conftest
$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try
='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try
='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 eval "$as_ac_var=yes"
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.
$ac_ext >&5
9484 eval "$as_ac_var=no"
9486 rm -f conftest.err conftest.
$ac_objext \
9487 conftest
$ac_exeext conftest.
$ac_ext
9489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9491 if test `eval echo '${'$as_ac_var'}'` = yes; then
9493 cat >>confdefs.h
<<_ACEOF
9494 #define CRAY_STACKSEG_END $ac_func
9503 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9504 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9505 if test "${ac_cv_c_stack_direction+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test "$cross_compiling" = yes; then
9509 ac_cv_c_stack_direction
=0
9511 cat >conftest.
$ac_ext <<_ACEOF
9514 cat confdefs.h
>>conftest.
$ac_ext
9515 cat >>conftest.
$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 find_stack_direction ()
9520 static char *addr = 0;
9525 return find_stack_direction ();
9528 return (&dummy > addr) ? 1 : -1;
9534 exit (find_stack_direction () < 0);
9537 rm -f conftest
$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_c_stack_direction
=1
9550 echo "$as_me: program exited with status $ac_status" >&5
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.
$ac_ext >&5
9555 ac_cv_c_stack_direction
=-1
9557 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9561 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9563 cat >>confdefs.h
<<_ACEOF
9564 #define STACK_DIRECTION $ac_cv_c_stack_direction
9576 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9577 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9578 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.
$ac_ext <<_ACEOF
9586 cat confdefs.h
>>conftest.
$ac_ext
9587 cat >>conftest.
$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <sys/types.h>
9601 rm -f conftest.
$ac_objext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9603 (eval $ac_compile) 2>conftest.er1
9605 grep -v '^ *+' conftest.er1
>conftest.err
9607 cat conftest.err
>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try
='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try
='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 eval "$as_ac_Header=yes"
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.
$ac_ext >&5
9628 eval "$as_ac_Header=no"
9630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9635 cat >>confdefs.h
<<_ACEOF
9636 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9639 ac_header_dirent
=$ac_hdr; break
9643 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9644 if test $ac_header_dirent = dirent.h
; then
9645 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9647 if test "${ac_cv_search_opendir+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_func_search_save_LIBS
=$LIBS
9651 ac_cv_search_opendir
=no
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
="none required"
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.
$ac_ext >&5
9702 rm -f conftest.err conftest.
$ac_objext \
9703 conftest
$ac_exeext conftest.
$ac_ext
9704 if test "$ac_cv_search_opendir" = no
; then
9705 for ac_lib
in dir
; do
9706 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9707 cat >conftest.
$ac_ext <<_ACEOF
9710 cat confdefs.h
>>conftest.
$ac_ext
9711 cat >>conftest.
$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 /* Override any gcc2 internal prototype to avoid an error. */
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9729 rm -f conftest.
$ac_objext conftest
$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>conftest.er1
9733 grep -v '^ *+' conftest.er1
>conftest.err
9735 cat conftest.err
>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try
='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try
='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_search_opendir
="-l$ac_lib"
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.
$ac_ext >&5
9758 rm -f conftest.err conftest.
$ac_objext \
9759 conftest
$ac_exeext conftest.
$ac_ext
9762 LIBS
=$ac_func_search_save_LIBS
9764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9766 if test "$ac_cv_search_opendir" != no
; then
9767 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9774 if test "${ac_cv_search_opendir+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 ac_func_search_save_LIBS
=$LIBS
9778 ac_cv_search_opendir
=no
9779 cat >conftest.
$ac_ext <<_ACEOF
9782 cat confdefs.h
>>conftest.
$ac_ext
9783 cat >>conftest.
$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any gcc2 internal prototype to avoid an error. */
9790 /* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9801 rm -f conftest.
$ac_objext conftest
$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1
>conftest.err
9807 cat conftest.err
>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try
='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try
='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_search_opendir
="none required"
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.
$ac_ext >&5
9829 rm -f conftest.err conftest.
$ac_objext \
9830 conftest
$ac_exeext conftest.
$ac_ext
9831 if test "$ac_cv_search_opendir" = no
; then
9833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9834 cat >conftest.
$ac_ext <<_ACEOF
9837 cat confdefs.h
>>conftest.
$ac_ext
9838 cat >>conftest.
$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9841 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9856 rm -f conftest.
$ac_objext conftest
$ac_exeext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858 (eval $ac_link) 2>conftest.er1
9860 grep -v '^ *+' conftest.er1
>conftest.err
9862 cat conftest.err
>&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try
='test -z "$ac_c_werror_flag"
9866 || test ! -s conftest.err'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try
='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_search_opendir
="-l$ac_lib"
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9885 rm -f conftest.err conftest.
$ac_objext \
9886 conftest
$ac_exeext conftest.
$ac_ext
9889 LIBS
=$ac_func_search_save_LIBS
9891 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9892 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9893 if test "$ac_cv_search_opendir" != no
; then
9894 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9902 if test "${ac_cv_header_stdc+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.
$ac_ext <<_ACEOF
9908 cat confdefs.h
>>conftest.
$ac_ext
9909 cat >>conftest.
$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9924 rm -f conftest.
$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1
>conftest.err
9930 cat conftest.err
>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try
='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try
='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_header_stdc
=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.
$ac_ext >&5
9951 ac_cv_header_stdc
=no
9953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9955 if test $ac_cv_header_stdc = yes; then
9956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967 $EGREP "memchr" >/dev
/null
2>&1; then
9970 ac_cv_header_stdc
=no
9976 if test $ac_cv_header_stdc = yes; then
9977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9988 $EGREP "free" >/dev
/null
2>&1; then
9991 ac_cv_header_stdc
=no
9997 if test $ac_cv_header_stdc = yes; then
9998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9999 if test "$cross_compiling" = yes; then
10002 cat >conftest.
$ac_ext <<_ACEOF
10005 cat confdefs.h
>>conftest.
$ac_ext
10006 cat >>conftest.
$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10009 #if ((' ' & 0x0FF) == 0x020)
10010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10013 # define ISLOWER(c) \
10014 (('a' <= (c) && (c) <= 'i') \
10015 || ('j' <= (c) && (c) <= 'r') \
10016 || ('s' <= (c) && (c) <= 'z'))
10017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10025 for (i = 0; i < 256; i++)
10026 if (XOR (islower (i), ISLOWER (i))
10027 || toupper (i) != TOUPPER (i))
10032 rm -f conftest
$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10045 echo "$as_me: program exited with status $ac_status" >&5
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.
$ac_ext >&5
10049 ( exit $ac_status )
10050 ac_cv_header_stdc
=no
10052 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10056 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10057 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10058 if test $ac_cv_header_stdc = yes; then
10060 cat >>confdefs.h
<<\_ACEOF
10061 #define STDC_HEADERS 1
10098 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
10100 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10110 # Is the header compilable?
10111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10113 cat >conftest.
$ac_ext <<_ACEOF
10116 cat confdefs.h
>>conftest.
$ac_ext
10117 cat >>conftest.
$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 #include <$ac_header>
10122 rm -f conftest.
$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1
>conftest.err
10128 cat conftest.err
>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try
='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try
='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_header_compiler
=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.
$ac_ext >&5
10149 ac_header_compiler
=no
10151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10153 echo "${ECHO_T}$ac_header_compiler" >&6
10155 # Is the header present?
10156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10158 cat >conftest.
$ac_ext <<_ACEOF
10161 cat confdefs.h
>>conftest.
$ac_ext
10162 cat >>conftest.
$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <$ac_header>
10166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10169 grep -v '^ *+' conftest.er1
>conftest.err
10171 cat conftest.err
>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } >/dev
/null
; then
10174 if test -s conftest.err
; then
10175 ac_cpp_err
=$ac_c_preproc_warn_flag
10176 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10183 if test -z "$ac_cpp_err"; then
10184 ac_header_preproc
=yes
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.
$ac_ext >&5
10189 ac_header_preproc
=no
10191 rm -f conftest.err conftest.
$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 echo "${ECHO_T}$ac_header_preproc" >&6
10195 # So? What about this header?
10196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc
=yes
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10219 ## ------------------------------ ##
10220 ## Report this to admin@amule.org ##
10221 ## ------------------------------ ##
10224 sed "s/^/$as_me: WARNING: /" >&2
10227 echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10239 cat >>confdefs.h
<<_ACEOF
10240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10247 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10248 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10249 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.
$ac_ext <<_ACEOF
10255 cat confdefs.h
>>conftest.
$ac_ext
10256 cat >>conftest.
$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <sys/types.h>
10259 #include <sys/wait.h>
10260 #ifndef WEXITSTATUS
10261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10277 rm -f conftest.
$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>conftest.er1
10281 grep -v '^ *+' conftest.er1
>conftest.err
10283 cat conftest.err
>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try
='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try
='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_header_sys_wait_h
=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.
$ac_ext >&5
10304 ac_cv_header_sys_wait_h
=no
10306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10309 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10310 if test $ac_cv_header_sys_wait_h = yes; then
10312 cat >>confdefs.h
<<\_ACEOF
10313 #define HAVE_SYS_WAIT_H 1
10319 # Checks for typedefs, structures, and compiler characteristics.
10320 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10321 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10322 if test "${ac_cv_header_stdbool_h+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.
$ac_ext <<_ACEOF
10328 cat confdefs.h
>>conftest.
$ac_ext
10329 cat >>conftest.
$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10332 #include <stdbool.h>
10334 # error bool is not defined
10337 # error false is not defined
10340 # error false is not 0
10343 # error true is not defined
10346 # error true is not 1
10348 #ifndef __bool_true_false_are_defined
10349 # error __bool_true_false_are_defined is not defined
10352 struct s { _Bool s: 1; _Bool t; } s;
10354 char a[true == 1 ? 1 : -1];
10355 char b[false == 0 ? 1 : -1];
10356 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10357 char d[(bool) -0.5 == true ? 1 : -1];
10359 char f[(_Bool) -0.0 == false ? 1 : -1];
10361 char h[sizeof (_Bool)];
10362 char i[sizeof s.t];
10367 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10372 rm -f conftest.
$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10376 grep -v '^ *+' conftest.er1
>conftest.err
10378 cat conftest.err
>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try
='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try
='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_header_stdbool_h
=yes
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.
$ac_ext >&5
10399 ac_cv_header_stdbool_h
=no
10401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10404 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10405 echo "$as_me:$LINENO: checking for _Bool" >&5
10406 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10407 if test "${ac_cv_type__Bool+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 cat >conftest.
$ac_ext <<_ACEOF
10413 cat confdefs.h
>>conftest.
$ac_ext
10414 cat >>conftest.
$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 $ac_includes_default
10422 if (sizeof (_Bool))
10428 rm -f conftest.
$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try
='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_type__Bool
=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 ac_cv_type__Bool
=no
10457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10460 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10461 if test $ac_cv_type__Bool = yes; then
10463 cat >>confdefs.h
<<_ACEOF
10464 #define HAVE__BOOL 1
10470 if test $ac_cv_header_stdbool_h = yes; then
10472 cat >>confdefs.h
<<\_ACEOF
10473 #define HAVE_STDBOOL_H 1
10478 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10479 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10480 if test "${ac_cv_c_const+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.
$ac_ext <<_ACEOF
10486 cat confdefs.h
>>conftest.
$ac_ext
10487 cat >>conftest.
$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10493 /* FIXME: Include the comments suggested by Paul. */
10494 #ifndef __cplusplus
10495 /* Ultrix mips cc rejects this. */
10496 typedef int charset[2];
10498 /* SunOS 4.1.1 cc rejects this. */
10499 char const *const *ccp;
10501 /* NEC SVR4.0.2 mips cc rejects this. */
10502 struct point {int x, y;};
10503 static struct point const zero = {0,0};
10504 /* AIX XL C 1.02.0.0 rejects this.
10505 It does not let you subtract one const X* pointer from another in
10506 an arm of an if-expression whose if-part is not a constant
10508 const char *g = "string";
10509 ccp = &g + (g ? g-g : 0);
10510 /* HPUX 7.0 cc rejects these. */
10513 ccp = (char const *const *) p;
10514 { /* SCO 3.2v4 cc rejects this. */
10516 char const *s = 0 ? (char *) 0 : (char const *) 0;
10520 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10521 int x[] = {25, 17};
10522 const int *foo = &x[0];
10525 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10526 typedef const int *iptr;
10530 { /* AIX XL C 1.02.0.0 rejects this saying
10531 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10532 struct s { int j; const int *ap[3]; };
10533 struct s *b; b->j = 5;
10535 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10536 const int foo = 10;
10544 rm -f conftest.
$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1
>conftest.err
10550 cat conftest.err
>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try
='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try
='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.
$ac_ext >&5
10573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10576 echo "${ECHO_T}$ac_cv_c_const" >&6
10577 if test $ac_cv_c_const = no
; then
10579 cat >>confdefs.h
<<\_ACEOF
10585 echo "$as_me:$LINENO: checking for inline" >&5
10586 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10587 if test "${ac_cv_c_inline+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 for ac_kw
in inline __inline__ __inline
; do
10592 cat >conftest.
$ac_ext <<_ACEOF
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 #ifndef __cplusplus
10600 static $ac_kw foo_t static_foo () {return 0; }
10601 $ac_kw foo_t foo () {return 0; }
10605 rm -f conftest.
$ac_objext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10607 (eval $ac_compile) 2>conftest.er1
10609 grep -v '^ *+' conftest.er1
>conftest.err
10611 cat conftest.err
>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try
='test -z "$ac_c_werror_flag"
10615 || test ! -s conftest.err'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try
='test -s conftest.$ac_objext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_c_inline
=$ac_kw; break
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10638 echo "${ECHO_T}$ac_cv_c_inline" >&6
10641 case $ac_cv_c_inline in
10644 case $ac_cv_c_inline in
10646 *) ac_val
=$ac_cv_c_inline;;
10648 cat >>confdefs.h
<<_ACEOF
10649 #ifndef __cplusplus
10650 #define inline $ac_val
10656 echo "$as_me:$LINENO: checking for mode_t" >&5
10657 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10658 if test "${ac_cv_type_mode_t+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.
$ac_ext <<_ACEOF
10664 cat confdefs.h
>>conftest.
$ac_ext
10665 cat >>conftest.
$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10673 if (sizeof (mode_t))
10679 rm -f conftest.
$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>conftest.er1
10683 grep -v '^ *+' conftest.er1
>conftest.err
10685 cat conftest.err
>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try
='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try
='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_type_mode_t
=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.
$ac_ext >&5
10706 ac_cv_type_mode_t
=no
10708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10710 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10711 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10712 if test $ac_cv_type_mode_t = yes; then
10716 cat >>confdefs.h
<<_ACEOF
10722 echo "$as_me:$LINENO: checking for off_t" >&5
10723 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10724 if test "${ac_cv_type_off_t+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 cat >conftest.
$ac_ext <<_ACEOF
10730 cat confdefs.h
>>conftest.
$ac_ext
10731 cat >>conftest.
$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10739 if (sizeof (off_t))
10745 rm -f conftest.
$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>conftest.er1
10749 grep -v '^ *+' conftest.er1
>conftest.err
10751 cat conftest.err
>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try
='test -z "$ac_c_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try
='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_off_t
=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.
$ac_ext >&5
10772 ac_cv_type_off_t
=no
10774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10777 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10778 if test $ac_cv_type_off_t = yes; then
10782 cat >>confdefs.h
<<_ACEOF
10788 echo "$as_me:$LINENO: checking for size_t" >&5
10789 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10790 if test "${ac_cv_type_size_t+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 cat >conftest.
$ac_ext <<_ACEOF
10796 cat confdefs.h
>>conftest.
$ac_ext
10797 cat >>conftest.
$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10805 if (sizeof (size_t))
10811 rm -f conftest.
$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>conftest.er1
10815 grep -v '^ *+' conftest.er1
>conftest.err
10817 cat conftest.err
>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try
='test -z "$ac_c_werror_flag"
10821 || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try
='test -s conftest.$ac_objext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_type_size_t
=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.
$ac_ext >&5
10838 ac_cv_type_size_t
=no
10840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10843 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10844 if test $ac_cv_type_size_t = yes; then
10848 cat >>confdefs.h
<<_ACEOF
10849 #define size_t unsigned
10854 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10855 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10856 if test "${ac_cv_header_time+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 cat >conftest.
$ac_ext <<_ACEOF
10862 cat confdefs.h
>>conftest.
$ac_ext
10863 cat >>conftest.
$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 #include <sys/types.h>
10866 #include <sys/time.h>
10872 if ((struct tm *) 0)
10878 rm -f conftest.
$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>conftest.er1
10882 grep -v '^ *+' conftest.er1
>conftest.err
10884 cat conftest.err
>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try
='test -z "$ac_c_werror_flag"
10888 || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try
='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_header_time
=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 ac_cv_header_time
=no
10907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10910 echo "${ECHO_T}$ac_cv_header_time" >&6
10911 if test $ac_cv_header_time = yes; then
10913 cat >>confdefs.h
<<\_ACEOF
10914 #define TIME_WITH_SYS_TIME 1
10919 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10920 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10921 if test "${ac_cv_struct_tm+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 #include <sys/types.h>
10936 struct tm *tp; tp->tm_sec;
10941 rm -f conftest.
$ac_objext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943 (eval $ac_compile) 2>conftest.er1
10945 grep -v '^ *+' conftest.er1
>conftest.err
10947 cat conftest.err
>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try
='test -z "$ac_c_werror_flag"
10951 || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try
='test -s conftest.$ac_objext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_struct_tm
=time.h
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.
$ac_ext >&5
10968 ac_cv_struct_tm
=sys
/time.h
10970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10973 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10974 if test $ac_cv_struct_tm = sys
/time.h
; then
10976 cat >>confdefs.h
<<\_ACEOF
10977 #define TM_IN_SYS_TIME 1
10982 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10983 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10984 if test "${ac_cv_type_uid_t+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.
$ac_ext <<_ACEOF
10990 cat confdefs.h
>>conftest.
$ac_ext
10991 cat >>conftest.
$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 #include <sys/types.h>
10996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10997 $EGREP "uid_t" >/dev
/null
2>&1; then
10998 ac_cv_type_uid_t
=yes
11000 ac_cv_type_uid_t
=no
11005 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11006 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11007 if test $ac_cv_type_uid_t = no
; then
11009 cat >>confdefs.h
<<\_ACEOF
11014 cat >>confdefs.h
<<\_ACEOF
11020 echo "$as_me:$LINENO: checking for working volatile" >&5
11021 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11022 if test "${ac_cv_c_volatile+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.
$ac_ext <<_ACEOF
11028 cat confdefs.h
>>conftest.
$ac_ext
11029 cat >>conftest.
$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11042 rm -f conftest.
$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11046 grep -v '^ *+' conftest.er1
>conftest.err
11048 cat conftest.err
>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try
='test -z "$ac_c_werror_flag"
11052 || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try
='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_c_volatile
=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.
$ac_ext >&5
11069 ac_cv_c_volatile
=no
11071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11074 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11075 if test $ac_cv_c_volatile = no
; then
11077 cat >>confdefs.h
<<\_ACEOF
11083 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11084 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11085 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.
$ac_ext <<_ACEOF
11091 cat confdefs.h
>>conftest.
$ac_ext
11092 cat >>conftest.
$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 $ac_includes_default
11098 if ((ptrdiff_t *) 0)
11100 if (sizeof (ptrdiff_t))
11106 rm -f conftest.
$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>conftest.er1
11110 grep -v '^ *+' conftest.er1
>conftest.err
11112 cat conftest.err
>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try
='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try
='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_cv_type_ptrdiff_t
=yes
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11133 ac_cv_type_ptrdiff_t
=no
11135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11138 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11139 if test $ac_cv_type_ptrdiff_t = yes; then
11141 cat >>confdefs.h
<<_ACEOF
11142 #define HAVE_PTRDIFF_T 1
11149 # Checks for library functions.
11150 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11151 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11152 if test "${ac_cv_func_closedir_void+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 if test "$cross_compiling" = yes; then
11156 ac_cv_func_closedir_void
=yes
11158 cat >conftest.
$ac_ext <<_ACEOF
11161 cat confdefs.h
>>conftest.
$ac_ext
11162 cat >>conftest.
$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 $ac_includes_default
11165 #include <$ac_header_dirent>
11166 #ifndef __cplusplus
11173 exit (closedir (opendir (".")) != 0);
11178 rm -f conftest
$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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); }; }; then
11189 ac_cv_func_closedir_void
=no
11191 echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.
$ac_ext >&5
11195 ( exit $ac_status )
11196 ac_cv_func_closedir_void
=yes
11198 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11201 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11202 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11203 if test $ac_cv_func_closedir_void = yes; then
11205 cat >>confdefs.h
<<\_ACEOF
11206 #define CLOSEDIR_VOID 1
11211 if test $ac_cv_c_compiler_gnu = yes; then
11212 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11213 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11214 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_pattern
="Autoconf.*'x'"
11218 cat >conftest.
$ac_ext <<_ACEOF
11221 cat confdefs.h
>>conftest.
$ac_ext
11222 cat >>conftest.
$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11229 ac_cv_prog_gcc_traditional
=yes
11231 ac_cv_prog_gcc_traditional
=no
11236 if test $ac_cv_prog_gcc_traditional = no
; then
11237 cat >conftest.
$ac_ext <<_ACEOF
11240 cat confdefs.h
>>conftest.
$ac_ext
11241 cat >>conftest.
$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <termio.h>
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11248 ac_cv_prog_gcc_traditional
=yes
11254 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11255 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11256 if test $ac_cv_prog_gcc_traditional = yes; then
11257 CC
="$CC -traditional"
11261 echo "$as_me:$LINENO: checking for pid_t" >&5
11262 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11263 if test "${ac_cv_type_pid_t+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.
$ac_ext <<_ACEOF
11269 cat confdefs.h
>>conftest.
$ac_ext
11270 cat >>conftest.
$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11278 if (sizeof (pid_t))
11284 rm -f conftest.
$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11288 grep -v '^ *+' conftest.er1
>conftest.err
11290 cat conftest.err
>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try
='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try
='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_type_pid_t
=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11311 ac_cv_type_pid_t
=no
11313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11315 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11316 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11317 if test $ac_cv_type_pid_t = yes; then
11321 cat >>confdefs.h
<<_ACEOF
11329 for ac_header
in unistd.h vfork.h
11331 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333 echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11341 # Is the header compilable?
11342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11344 cat >conftest.
$ac_ext <<_ACEOF
11347 cat confdefs.h
>>conftest.
$ac_ext
11348 cat >>conftest.
$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11351 #include <$ac_header>
11353 rm -f conftest.
$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try
='test -z "$ac_c_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
11375 ac_header_compiler
=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 ac_header_compiler
=no
11382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6
11386 # Is the header present?
11387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11389 cat >conftest.
$ac_ext <<_ACEOF
11392 cat confdefs.h
>>conftest.
$ac_ext
11393 cat >>conftest.
$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev
/null
; then
11405 if test -s conftest.err
; then
11406 ac_cpp_err
=$ac_c_preproc_warn_flag
11407 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc
=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.
$ac_ext >&5
11420 ac_header_preproc
=no
11422 rm -f conftest.err conftest.
$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 echo "${ECHO_T}$ac_header_preproc" >&6
11426 # So? What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc
=yes
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ## ------------------------------ ##
11451 ## Report this to admin@amule.org ##
11452 ## ------------------------------ ##
11455 sed "s/^/$as_me: WARNING: /" >&2
11458 echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 eval "$as_ac_Header=\$ac_header_preproc"
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h
<<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 for ac_func
in fork vfork
11482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11483 echo "$as_me:$LINENO: checking for $ac_func" >&5
11484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_var+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11496 #define $ac_func innocuous_$ac_func
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11504 # include <limits.h>
11506 # include <assert.h>
11511 /* Override any gcc2 internal prototype to avoid an error. */
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11525 char (*f) () = $ac_func;
11534 return f != $ac_func;
11539 rm -f conftest.
$ac_objext conftest
$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>conftest.er1
11543 grep -v '^ *+' conftest.er1
>conftest.err
11545 cat conftest.err
>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try
='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try
='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 eval "$as_ac_var=yes"
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.
$ac_ext >&5
11566 eval "$as_ac_var=no"
11568 rm -f conftest.err conftest.
$ac_objext \
11569 conftest
$ac_exeext conftest.
$ac_ext
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11573 if test `eval echo '${'$as_ac_var'}'` = yes; then
11574 cat >>confdefs.h
<<_ACEOF
11575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11581 if test "x$ac_cv_func_fork" = xyes
; then
11582 echo "$as_me:$LINENO: checking for working fork" >&5
11583 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11584 if test "${ac_cv_func_fork_works+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 if test "$cross_compiling" = yes; then
11588 ac_cv_func_fork_works
=cross
11590 cat >conftest.
$ac_ext <<_ACEOF
11591 /* By Ruediger Kuhlmann. */
11592 #include <sys/types.h>
11594 # include <unistd.h>
11596 /* Some systems only have a dummy stub for fork() */
11604 rm -f conftest
$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_func_fork_works
=yes
11617 echo "$as_me: program exited with status $ac_status" >&5
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.
$ac_ext >&5
11621 ( exit $ac_status )
11622 ac_cv_func_fork_works
=no
11624 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11627 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11628 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11631 ac_cv_func_fork_works
=$ac_cv_func_fork
11633 if test "x$ac_cv_func_fork_works" = xcross
; then
11635 *-*-amigaos* |
*-*-msdosdjgpp*)
11636 # Override, as these systems have only a dummy fork() stub
11637 ac_cv_func_fork_works
=no
11640 ac_cv_func_fork_works
=yes
11643 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11644 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11646 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11647 if test "x$ac_cv_func_vfork" = xyes
; then
11648 echo "$as_me:$LINENO: checking for working vfork" >&5
11649 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11650 if test "${ac_cv_func_vfork_works+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 if test "$cross_compiling" = yes; then
11654 ac_cv_func_vfork_works
=cross
11656 cat >conftest.
$ac_ext <<_ACEOF
11659 cat confdefs.h
>>conftest.
$ac_ext
11660 cat >>conftest.
$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 /* Thanks to Paul Eggert for this test. */
11664 #include <stdlib.h>
11665 #include <sys/types.h>
11666 #include <sys/stat.h>
11667 #include <sys/wait.h>
11669 # include <unistd.h>
11672 # include <vfork.h>
11674 /* On some sparc systems, changes by the child to local and incoming
11675 argument registers are propagated back to the parent. The compiler
11676 is told about this with #include <vfork.h>, but some compilers
11677 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11678 static variable whose address is put into a register that is
11679 clobbered by the vfork. */
11682 sparc_address_test (int arg)
11684 sparc_address_test (arg) int arg;
11687 static pid_t child;
11705 pid_t parent = getpid ();
11708 sparc_address_test (0);
11713 /* Here is another test for sparc vfork register problems. This
11714 test uses lots of local variables, at least as many local
11715 variables as main has allocated so far including compiler
11716 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11717 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11718 reuse the register of parent for one of the local variables,
11719 since it will think that parent can't possibly be used any more
11720 in this routine. Assigning to the local variable will thus
11721 munge parent in the parent process. */
11723 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11724 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11725 /* Convince the compiler that p..p7 are live; otherwise, it might
11726 use the same hardware register for all 8 local variables. */
11727 if (p != p1 || p != p2 || p != p3 || p != p4
11728 || p != p5 || p != p6 || p != p7)
11731 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11732 from child file descriptors. If the child closes a descriptor
11733 before it execs or exits, this munges the parent's descriptor
11734 as well. Test for this by closing stdout in the child. */
11735 _exit(close(fileno(stdout)) != 0);
11740 while (wait(&status) != child)
11743 /* Was there some problem with vforking? */
11746 /* Did the child fail? (This shouldn't happen.) */
11749 /* Did the vfork/compiler bug occur? */
11750 || parent != getpid()
11752 /* Did the file descriptor bug occur? */
11753 || fstat(fileno(stdout), &st) != 0
11758 rm -f conftest
$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_func_vfork_works
=yes
11771 echo "$as_me: program exited with status $ac_status" >&5
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.
$ac_ext >&5
11775 ( exit $ac_status )
11776 ac_cv_func_vfork_works
=no
11778 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11781 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11782 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11785 if test "x$ac_cv_func_fork_works" = xcross
; then
11786 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11787 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11788 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11791 if test "x$ac_cv_func_vfork_works" = xyes
; then
11793 cat >>confdefs.h
<<\_ACEOF
11794 #define HAVE_WORKING_VFORK 1
11799 cat >>confdefs.h
<<\_ACEOF
11804 if test "x$ac_cv_func_fork_works" = xyes
; then
11806 cat >>confdefs.h
<<\_ACEOF
11807 #define HAVE_WORKING_FORK 1
11812 if test x
$SYS != xwin32
; then
11814 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11815 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11816 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11817 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 ac_check_lib_save_LIBS
=$LIBS
11822 cat >conftest.
$ac_ext <<_ACEOF
11825 cat confdefs.h
>>conftest.
$ac_ext
11826 cat >>conftest.
$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11829 /* Override any gcc2 internal prototype to avoid an error. */
11833 /* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11844 rm -f conftest.
$ac_objext conftest
$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11848 grep -v '^ *+' conftest.er1
>conftest.err
11850 cat conftest.err
>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try
='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try
='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_lib_sun_getmntent
=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.
$ac_ext >&5
11871 ac_cv_lib_sun_getmntent
=no
11873 rm -f conftest.err conftest.
$ac_objext \
11874 conftest
$ac_exeext conftest.
$ac_ext
11875 LIBS
=$ac_check_lib_save_LIBS
11877 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11878 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11879 if test $ac_cv_lib_sun_getmntent = yes; then
11882 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11883 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11884 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 ac_check_lib_save_LIBS
=$LIBS
11889 cat >conftest.
$ac_ext <<_ACEOF
11892 cat confdefs.h
>>conftest.
$ac_ext
11893 cat >>conftest.
$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11896 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11911 rm -f conftest.
$ac_objext conftest
$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>conftest.er1
11915 grep -v '^ *+' conftest.er1
>conftest.err
11917 cat conftest.err
>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try
='test -z "$ac_c_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try
='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_seq_getmntent
=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.
$ac_ext >&5
11938 ac_cv_lib_seq_getmntent
=no
11940 rm -f conftest.err conftest.
$ac_objext \
11941 conftest
$ac_exeext conftest.
$ac_ext
11942 LIBS
=$ac_check_lib_save_LIBS
11944 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11945 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11946 if test $ac_cv_lib_seq_getmntent = yes; then
11949 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11950 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11951 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 ac_check_lib_save_LIBS
=$LIBS
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11978 rm -f conftest.
$ac_objext conftest
$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>conftest.er1
11982 grep -v '^ *+' conftest.er1
>conftest.err
11984 cat conftest.err
>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try
='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try
='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_lib_gen_getmntent
=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.
$ac_ext >&5
12005 ac_cv_lib_gen_getmntent
=no
12007 rm -f conftest.err conftest.
$ac_objext \
12008 conftest
$ac_exeext conftest.
$ac_ext
12009 LIBS
=$ac_check_lib_save_LIBS
12011 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
12012 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
12013 if test $ac_cv_lib_gen_getmntent = yes; then
12022 for ac_func
in getmntent
12024 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 echo "$as_me:$LINENO: checking for $ac_func" >&5
12026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12027 if eval "test \"\${$as_ac_var+set}\" = set"; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 cat >conftest.
$ac_ext <<_ACEOF
12033 cat confdefs.h
>>conftest.
$ac_ext
12034 cat >>conftest.
$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12038 #define $ac_func innocuous_$ac_func
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func (); below.
12042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 <limits.h> exists even on freestanding compilers. */
12046 # include <limits.h>
12048 # include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 char (*f) () = $ac_func;
12076 return f != $ac_func;
12081 rm -f conftest.
$ac_objext conftest
$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1
>conftest.err
12087 cat conftest.err
>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try
='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try
='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.
$ac_ext >&5
12108 eval "$as_ac_var=no"
12110 rm -f conftest.err conftest.
$ac_objext \
12111 conftest
$ac_exeext conftest.
$ac_ext
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h
<<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12124 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12125 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12126 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 rm -f conftest.sym conftest.
file
12130 echo >conftest.
file
12131 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12132 if test "$cross_compiling" = yes; then
12133 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12135 cat >conftest.
$ac_ext <<_ACEOF
12138 cat confdefs.h
>>conftest.
$ac_ext
12139 cat >>conftest.
$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12146 /* Linux will dereference the symlink and fail.
12147 That is better in the sense that it means we will not
12148 have to compile and use the lstat wrapper. */
12149 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12154 rm -f conftest
$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12167 echo "$as_me: program exited with status $ac_status" >&5
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 ( exit $ac_status )
12172 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12174 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12177 # If the `ln -s' command failed, then we probably don't even
12178 # have an lstat function.
12179 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12181 rm -f conftest.sym conftest.
file
12184 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12185 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12187 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12189 cat >>confdefs.h
<<_ACEOF
12190 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12194 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12196 "lstat.$ac_objext" | \
12197 *" lstat.$ac_objext" | \
12198 "lstat.$ac_objext "* | \
12199 *" lstat.$ac_objext "* ) ;;
12200 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12205 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12206 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12207 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 if test "$cross_compiling" = yes; then
12211 ac_cv_func_lstat_empty_string_bug
=yes
12213 cat >conftest.
$ac_ext <<_ACEOF
12216 cat confdefs.h
>>conftest.
$ac_ext
12217 cat >>conftest.
$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12224 exit (lstat ("", &sbuf) ? 1 : 0);
12229 rm -f conftest
$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_func_lstat_empty_string_bug
=yes
12242 echo "$as_me: program exited with status $ac_status" >&5
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.
$ac_ext >&5
12246 ( exit $ac_status )
12247 ac_cv_func_lstat_empty_string_bug
=no
12249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12252 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12253 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12254 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12256 "lstat.$ac_objext" | \
12257 *" lstat.$ac_objext" | \
12258 "lstat.$ac_objext "* | \
12259 *" lstat.$ac_objext "* ) ;;
12260 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12264 cat >>confdefs.h
<<_ACEOF
12265 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12270 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12271 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12272 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 rm -f conftest.sym conftest.
file
12276 echo >conftest.
file
12277 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12278 if test "$cross_compiling" = yes; then
12279 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12281 cat >conftest.
$ac_ext <<_ACEOF
12284 cat confdefs.h
>>conftest.
$ac_ext
12285 cat >>conftest.
$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12292 /* Linux will dereference the symlink and fail.
12293 That is better in the sense that it means we will not
12294 have to compile and use the lstat wrapper. */
12295 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12300 rm -f conftest
$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12313 echo "$as_me: program exited with status $ac_status" >&5
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.
$ac_ext >&5
12317 ( exit $ac_status )
12318 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12320 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12323 # If the `ln -s' command failed, then we probably don't even
12324 # have an lstat function.
12325 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12327 rm -f conftest.sym conftest.
file
12330 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12331 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12333 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12335 cat >>confdefs.h
<<_ACEOF
12336 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12340 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12342 "lstat.$ac_objext" | \
12343 *" lstat.$ac_objext" | \
12344 "lstat.$ac_objext "* | \
12345 *" lstat.$ac_objext "* ) ;;
12346 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12354 echo "$as_me:$LINENO: checking for working memcmp" >&5
12355 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12356 if test "${ac_cv_func_memcmp_working+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 if test "$cross_compiling" = yes; then
12360 ac_cv_func_memcmp_working
=no
12362 cat >conftest.
$ac_ext <<_ACEOF
12365 cat confdefs.h
>>conftest.
$ac_ext
12366 cat >>conftest.
$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12373 /* Some versions of memcmp are not 8-bit clean. */
12374 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12375 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12378 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12379 or more and with at least one buffer not starting on a 4-byte boundary.
12380 William Lewis provided this test program. */
12385 for (i = 0; i < 4; i++)
12389 strcpy (a, "--------01111111");
12390 strcpy (b, "--------10000000");
12391 if (memcmp (a, b, 16) >= 0)
12401 rm -f conftest
$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_func_memcmp_working
=yes
12414 echo "$as_me: program exited with status $ac_status" >&5
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.
$ac_ext >&5
12418 ( exit $ac_status )
12419 ac_cv_func_memcmp_working
=no
12421 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12424 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12425 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12426 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12427 "memcmp.$ac_objext" | \
12428 *" memcmp.$ac_objext" | \
12429 "memcmp.$ac_objext "* | \
12430 *" memcmp.$ac_objext "* ) ;;
12431 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12437 for ac_header
in stdlib.h unistd.h
12439 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12441 echo "$as_me:$LINENO: checking for $ac_header" >&5
12442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12449 # Is the header compilable?
12450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12452 cat >conftest.
$ac_ext <<_ACEOF
12455 cat confdefs.h
>>conftest.
$ac_ext
12456 cat >>conftest.
$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 $ac_includes_default
12459 #include <$ac_header>
12461 rm -f conftest.
$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12465 grep -v '^ *+' conftest.er1
>conftest.err
12467 cat conftest.err
>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try
='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try
='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_header_compiler
=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.
$ac_ext >&5
12488 ac_header_compiler
=no
12490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12492 echo "${ECHO_T}$ac_header_compiler" >&6
12494 # Is the header present?
12495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12497 cat >conftest.
$ac_ext <<_ACEOF
12500 cat confdefs.h
>>conftest.
$ac_ext
12501 cat >>conftest.
$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <$ac_header>
12505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12508 grep -v '^ *+' conftest.er1
>conftest.err
12510 cat conftest.err
>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } >/dev
/null
; then
12513 if test -s conftest.err
; then
12514 ac_cpp_err
=$ac_c_preproc_warn_flag
12515 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12522 if test -z "$ac_cpp_err"; then
12523 ac_header_preproc
=yes
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.
$ac_ext >&5
12528 ac_header_preproc
=no
12530 rm -f conftest.err conftest.
$ac_ext
12531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12532 echo "${ECHO_T}$ac_header_preproc" >&6
12534 # So? What about this header?
12535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12541 ac_header_preproc
=yes
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12558 ## ------------------------------ ##
12559 ## Report this to admin@amule.org ##
12560 ## ------------------------------ ##
12563 sed "s/^/$as_me: WARNING: /" >&2
12566 echo "$as_me:$LINENO: checking for $ac_header" >&5
12567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 eval "$as_ac_Header=\$ac_header_preproc"
12573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12578 cat >>confdefs.h
<<_ACEOF
12579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12587 for ac_func
in getpagesize
12589 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_var+set}\" = set"; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603 #define $ac_func innocuous_$ac_func
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12611 # include <limits.h>
12613 # include <assert.h>
12618 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12626 /* The GNU C library defines this for functions which it implements
12627 to always fail with ENOSYS. Some functions are actually named
12628 something starting with __ and the normal name is an alias. */
12629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12632 char (*f) () = $ac_func;
12641 return f != $ac_func;
12646 rm -f conftest.
$ac_objext conftest
$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12650 grep -v '^ *+' conftest.er1
>conftest.err
12652 cat conftest.err
>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try
='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try
='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 eval "$as_ac_var=yes"
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.
$ac_ext >&5
12673 eval "$as_ac_var=no"
12675 rm -f conftest.err conftest.
$ac_objext \
12676 conftest
$ac_exeext conftest.
$ac_ext
12678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12680 if test `eval echo '${'$as_ac_var'}'` = yes; then
12681 cat >>confdefs.h
<<_ACEOF
12682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12688 echo "$as_me:$LINENO: checking for working mmap" >&5
12689 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12690 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 if test "$cross_compiling" = yes; then
12694 ac_cv_func_mmap_fixed_mapped
=no
12696 cat >conftest.
$ac_ext <<_ACEOF
12699 cat confdefs.h
>>conftest.
$ac_ext
12700 cat >>conftest.
$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 $ac_includes_default
12703 /* malloc might have been renamed as rpl_malloc. */
12706 /* Thanks to Mike Haertel and Jim Avera for this test.
12707 Here is a matrix of mmap possibilities:
12708 mmap private not fixed
12709 mmap private fixed at somewhere currently unmapped
12710 mmap private fixed at somewhere already mapped
12711 mmap shared not fixed
12712 mmap shared fixed at somewhere currently unmapped
12713 mmap shared fixed at somewhere already mapped
12714 For private mappings, we should verify that changes cannot be read()
12715 back from the file, nor mmap's back from the file at a different
12716 address. (There have been systems where private was not correctly
12717 implemented like the infamous i386 svr4.0, and systems where the
12718 VM page cache was not coherent with the file system buffer cache
12719 like early versions of FreeBSD and possibly contemporary NetBSD.)
12720 For shared mappings, we should conversely verify that changes get
12721 propagated back to all the places they're supposed to be.
12723 Grep wants private fixed already mapped.
12724 The main things grep needs to know about mmap are:
12725 * does it exist and is it safe to write into the mmap'd area
12726 * how to use it (BSD variants) */
12729 #include <sys/mman.h>
12731 #if !STDC_HEADERS && !HAVE_STDLIB_H
12735 /* This mess was copied from the GNU getpagesize.h. */
12736 #if !HAVE_GETPAGESIZE
12737 /* Assume that all systems that can run configure have sys/param.h. */
12738 # if !HAVE_SYS_PARAM_H
12739 # define HAVE_SYS_PARAM_H 1
12742 # ifdef _SC_PAGESIZE
12743 # define getpagesize() sysconf(_SC_PAGESIZE)
12744 # else /* no _SC_PAGESIZE */
12745 # if HAVE_SYS_PARAM_H
12746 # include <sys/param.h>
12747 # ifdef EXEC_PAGESIZE
12748 # define getpagesize() EXEC_PAGESIZE
12749 # else /* no EXEC_PAGESIZE */
12751 # define getpagesize() NBPG * CLSIZE
12754 # endif /* no CLSIZE */
12755 # else /* no NBPG */
12757 # define getpagesize() NBPC
12758 # else /* no NBPC */
12760 # define getpagesize() PAGESIZE
12761 # endif /* PAGESIZE */
12762 # endif /* no NBPC */
12763 # endif /* no NBPG */
12764 # endif /* no EXEC_PAGESIZE */
12765 # else /* no HAVE_SYS_PARAM_H */
12766 # define getpagesize() 8192 /* punt totally */
12767 # endif /* no HAVE_SYS_PARAM_H */
12768 # endif /* no _SC_PAGESIZE */
12770 #endif /* no HAVE_GETPAGESIZE */
12775 char *data, *data2, *data3;
12779 pagesize = getpagesize ();
12781 /* First, make a file with some known garbage in it. */
12782 data = (char *) malloc (pagesize);
12785 for (i = 0; i < pagesize; ++i)
12786 *(data + i) = rand ();
12788 fd = creat ("conftest.mmap", 0600);
12791 if (write (fd, data, pagesize) != pagesize)
12795 /* Next, try to mmap the file at a fixed address which already has
12796 something else allocated at it. If we can, also make sure that
12797 we see the same garbage. */
12798 fd = open ("conftest.mmap", O_RDWR);
12801 data2 = (char *) malloc (2 * pagesize);
12804 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12806 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12808 for (i = 0; i < pagesize; ++i)
12809 if (*(data + i) != *(data2 + i))
12812 /* Finally, make sure that changes to the mapped area do not
12813 percolate back to the file as seen by read(). (This is a bug on
12814 some variants of i386 svr4.0.) */
12815 for (i = 0; i < pagesize; ++i)
12816 *(data2 + i) = *(data2 + i) + 1;
12817 data3 = (char *) malloc (pagesize);
12820 if (read (fd, data3, pagesize) != pagesize)
12822 for (i = 0; i < pagesize; ++i)
12823 if (*(data + i) != *(data3 + i))
12829 rm -f conftest
$ac_exeext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831 (eval $ac_link) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_func_mmap_fixed_mapped
=yes
12842 echo "$as_me: program exited with status $ac_status" >&5
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.
$ac_ext >&5
12846 ( exit $ac_status )
12847 ac_cv_func_mmap_fixed_mapped
=no
12849 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12852 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12853 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12854 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12856 cat >>confdefs.h
<<\_ACEOF
12857 #define HAVE_MMAP 1
12861 rm -f conftest.mmap
12865 for ac_header
in sys
/select.h sys
/socket.h
12867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12869 echo "$as_me:$LINENO: checking for $ac_header" >&5
12870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12877 # Is the header compilable?
12878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12880 cat >conftest.
$ac_ext <<_ACEOF
12883 cat confdefs.h
>>conftest.
$ac_ext
12884 cat >>conftest.
$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <$ac_header>
12889 rm -f conftest.
$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12893 grep -v '^ *+' conftest.er1
>conftest.err
12895 cat conftest.err
>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try
='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try
='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_header_compiler
=yes
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.
$ac_ext >&5
12916 ac_header_compiler
=no
12918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920 echo "${ECHO_T}$ac_header_compiler" >&6
12922 # Is the header present?
12923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12925 cat >conftest.
$ac_ext <<_ACEOF
12928 cat confdefs.h
>>conftest.
$ac_ext
12929 cat >>conftest.
$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <$ac_header>
12933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1
>conftest.err
12938 cat conftest.err
>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev
/null
; then
12941 if test -s conftest.err
; then
12942 ac_cpp_err
=$ac_c_preproc_warn_flag
12943 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12950 if test -z "$ac_cpp_err"; then
12951 ac_header_preproc
=yes
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.
$ac_ext >&5
12956 ac_header_preproc
=no
12958 rm -f conftest.err conftest.
$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 echo "${ECHO_T}$ac_header_preproc" >&6
12962 # So? What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc
=yes
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12986 ## ------------------------------ ##
12987 ## Report this to admin@amule.org ##
12988 ## ------------------------------ ##
12991 sed "s/^/$as_me: WARNING: /" >&2
12994 echo "$as_me:$LINENO: checking for $ac_header" >&5
12995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 eval "$as_ac_Header=\$ac_header_preproc"
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13006 cat >>confdefs.h
<<_ACEOF
13007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014 echo "$as_me:$LINENO: checking types of arguments for select" >&5
13015 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
13016 if test "${ac_cv_func_select_args+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
13020 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
13021 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
13022 cat >conftest.
$ac_ext <<_ACEOF
13025 cat confdefs.h
>>conftest.
$ac_ext
13026 cat >>conftest.
$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 #if HAVE_SYS_SELECT_H
13030 # include <sys/select.h>
13032 #if HAVE_SYS_SOCKET_H
13033 # include <sys/socket.h>
13039 extern int select ($ac_arg1,
13040 $ac_arg234, $ac_arg234, $ac_arg234,
13046 rm -f conftest.
$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13050 grep -v '^ *+' conftest.er1
>conftest.err
13052 cat conftest.err
>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try
='test -z "$ac_c_werror_flag"
13056 || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try
='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.
$ac_ext >&5
13074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13078 # Provide a safe default value.
13079 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13082 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13083 echo "${ECHO_T}$ac_cv_func_select_args" >&6
13084 ac_save_IFS
=$IFS; IFS
=','
13085 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13089 cat >>confdefs.h
<<_ACEOF
13090 #define SELECT_TYPE_ARG1 $1
13094 cat >>confdefs.h
<<_ACEOF
13095 #define SELECT_TYPE_ARG234 ($2)
13099 cat >>confdefs.h
<<_ACEOF
13100 #define SELECT_TYPE_ARG5 ($3)
13105 echo "$as_me:$LINENO: checking for function prototypes" >&5
13106 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13107 if test "$ac_cv_prog_cc_stdc" != no
; then
13108 echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6
13111 cat >>confdefs.h
<<\_ACEOF
13112 #define PROTOTYPES 1
13116 cat >>confdefs.h
<<\_ACEOF
13117 #define __PROTOTYPES 1
13121 echo "$as_me:$LINENO: result: no" >&5
13122 echo "${ECHO_T}no" >&6
13125 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13126 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13127 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 ac_cv_func_setvbuf_reversed
=no
13131 cat >conftest.
$ac_ext <<_ACEOF
13134 cat confdefs.h
>>conftest.
$ac_ext
13135 cat >>conftest.
$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13139 int (setvbuf) (FILE *, int, char *, size_t);
13144 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13149 rm -f conftest.
$ac_objext conftest
$ac_exeext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13151 (eval $ac_link) 2>conftest.er1
13153 grep -v '^ *+' conftest.er1
>conftest.err
13155 cat conftest.err
>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try
='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try
='test -s conftest$ac_exeext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 cat >conftest.
$ac_ext <<_ACEOF
13174 cat confdefs.h
>>conftest.
$ac_ext
13175 cat >>conftest.
$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13179 int (setvbuf) (FILE *, int, char *, size_t);
13184 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13189 rm -f conftest.
$ac_objext conftest
$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191 (eval $ac_link) 2>conftest.er1
13193 grep -v '^ *+' conftest.er1
>conftest.err
13195 cat conftest.err
>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try
='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try
='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 # It compiles and links either way, so it must not be declared
13212 # with a prototype and most likely this is a K&R C compiler.
13214 if test "$cross_compiling" = yes; then
13215 : # Assume setvbuf is not reversed when cross-compiling.
13217 cat >conftest.
$ac_ext <<_ACEOF
13220 cat confdefs.h
>>conftest.
$ac_ext
13221 cat >>conftest.
$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13227 /* This call has the arguments reversed.
13228 A reversed system may check and see that the address of buf
13229 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13231 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13234 exit (0); /* Non-reversed systems SEGV here. */
13239 rm -f conftest
$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_cv_func_setvbuf_reversed
=yes
13252 echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.
$ac_ext >&5
13256 ( exit $ac_status )
13259 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13261 ac_cv_func_setvbuf_reversed
=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.
$ac_ext >&5
13267 rm -f conftest.err conftest.
$ac_objext \
13268 conftest
$ac_exeext conftest.
$ac_ext
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.
$ac_ext >&5
13274 rm -f conftest.err conftest.
$ac_objext \
13275 conftest
$ac_exeext conftest.
$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13278 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13279 if test $ac_cv_func_setvbuf_reversed = yes; then
13281 cat >>confdefs.h
<<\_ACEOF
13282 #define SETVBUF_REVERSED 1
13287 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13288 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13289 if test "${ac_cv_type_signal+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 cat >conftest.
$ac_ext <<_ACEOF
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <sys/types.h>
13299 #include <signal.h>
13304 extern "C" void (*signal (int, void (*)(int)))(int);
13306 void (*signal ()) ();
13317 rm -f conftest.
$ac_objext
13318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13321 grep -v '^ *+' conftest.er1
>conftest.err
13323 cat conftest.err
>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try
='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try
='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_type_signal
=void
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.
$ac_ext >&5
13344 ac_cv_type_signal
=int
13346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13348 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13349 echo "${ECHO_T}$ac_cv_type_signal" >&6
13351 cat >>confdefs.h
<<_ACEOF
13352 #define RETSIGTYPE $ac_cv_type_signal
13356 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13357 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13358 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 if test "$cross_compiling" = yes; then
13362 ac_cv_func_stat_empty_string_bug
=yes
13364 cat >conftest.
$ac_ext <<_ACEOF
13367 cat confdefs.h
>>conftest.
$ac_ext
13368 cat >>conftest.
$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 $ac_includes_default
13375 exit (stat ("", &sbuf) ? 1 : 0);
13380 rm -f conftest
$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_stat_empty_string_bug
=yes
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.
$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_stat_empty_string_bug
=no
13400 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13403 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13404 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13405 if test $ac_cv_func_stat_empty_string_bug = yes; then
13407 "stat.$ac_objext" | \
13408 *" stat.$ac_objext" | \
13409 "stat.$ac_objext "* | \
13410 *" stat.$ac_objext "* ) ;;
13411 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
13415 cat >>confdefs.h
<<_ACEOF
13416 #define HAVE_STAT_EMPTY_STRING_BUG 1
13422 for ac_func
in strftime
13424 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_func" >&5
13426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_var+set}\" = set"; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.
$ac_ext <<_ACEOF
13433 cat confdefs.h
>>conftest.
$ac_ext
13434 cat >>conftest.
$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13438 #define $ac_func innocuous_$ac_func
13440 /* System header to define __stub macros and hopefully few prototypes,
13441 which can conflict with char $ac_func (); below.
13442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13443 <limits.h> exists even on freestanding compilers. */
13446 # include <limits.h>
13448 # include <assert.h>
13453 /* Override any gcc2 internal prototype to avoid an error. */
13458 /* We use char because int might match the return type of a gcc2
13459 builtin and then its argument prototype would still apply. */
13461 /* The GNU C library defines this for functions which it implements
13462 to always fail with ENOSYS. Some functions are actually named
13463 something starting with __ and the normal name is an alias. */
13464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13467 char (*f) () = $ac_func;
13476 return f != $ac_func;
13481 rm -f conftest.
$ac_objext conftest
$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 (eval $ac_link) 2>conftest.er1
13485 grep -v '^ *+' conftest.er1
>conftest.err
13487 cat conftest.err
>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try
='test -z "$ac_c_werror_flag"
13491 || test ! -s conftest.err'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try
='test -s conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 eval "$as_ac_var=yes"
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.
$ac_ext >&5
13508 eval "$as_ac_var=no"
13510 rm -f conftest.err conftest.
$ac_objext \
13511 conftest
$ac_exeext conftest.
$ac_ext
13513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13515 if test `eval echo '${'$as_ac_var'}'` = yes; then
13516 cat >>confdefs.h
<<_ACEOF
13517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13521 # strftime is in -lintl on SCO UNIX.
13522 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13523 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13524 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 ac_check_lib_save_LIBS
=$LIBS
13528 LIBS
="-lintl $LIBS"
13529 cat >conftest.
$ac_ext <<_ACEOF
13532 cat confdefs.h
>>conftest.
$ac_ext
13533 cat >>conftest.
$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13551 rm -f conftest.
$ac_objext conftest
$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1
>conftest.err
13557 cat conftest.err
>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try
='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try
='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_intl_strftime
=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.
$ac_ext >&5
13578 ac_cv_lib_intl_strftime
=no
13580 rm -f conftest.err conftest.
$ac_objext \
13581 conftest
$ac_exeext conftest.
$ac_ext
13582 LIBS
=$ac_check_lib_save_LIBS
13584 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13585 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13586 if test $ac_cv_lib_intl_strftime = yes; then
13587 cat >>confdefs.h
<<\_ACEOF
13588 #define HAVE_STRFTIME 1
13591 LIBS
="-lintl $LIBS"
13597 echo "$as_me:$LINENO: checking for working strtod" >&5
13598 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13599 if test "${ac_cv_func_strtod+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 if test "$cross_compiling" = yes; then
13603 ac_cv_func_strtod
=no
13605 cat >conftest.
$ac_ext <<_ACEOF
13608 cat confdefs.h
>>conftest.
$ac_ext
13609 cat >>conftest.
$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13617 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13618 char *string = " +69";
13621 value = strtod (string, &term);
13622 if (value != 69 || term != (string + 4))
13627 /* Under Solaris 2.4, strtod returns the wrong value for the
13628 terminating character under some conditions. */
13629 char *string = "NaN";
13631 strtod (string, &term);
13632 if (term != string && *(term - 1) == 0)
13639 rm -f conftest
$ac_exeext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_func_strtod
=yes
13652 echo "$as_me: program exited with status $ac_status" >&5
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.
$ac_ext >&5
13656 ( exit $ac_status )
13657 ac_cv_func_strtod
=no
13659 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13662 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13663 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13664 if test $ac_cv_func_strtod = no
; then
13666 "strtod.$ac_objext" | \
13667 *" strtod.$ac_objext" | \
13668 "strtod.$ac_objext "* | \
13669 *" strtod.$ac_objext "* ) ;;
13670 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13673 echo "$as_me:$LINENO: checking for pow" >&5
13674 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13675 if test "${ac_cv_func_pow+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >conftest.
$ac_ext <<_ACEOF
13681 cat confdefs.h
>>conftest.
$ac_ext
13682 cat >>conftest.
$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13686 #define pow innocuous_pow
13688 /* System header to define __stub macros and hopefully few prototypes,
13689 which can conflict with char pow (); below.
13690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13691 <limits.h> exists even on freestanding compilers. */
13694 # include <limits.h>
13696 # include <assert.h>
13701 /* Override any gcc2 internal prototype to avoid an error. */
13706 /* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13709 /* The GNU C library defines this for functions which it implements
13710 to always fail with ENOSYS. Some functions are actually named
13711 something starting with __ and the normal name is an alias. */
13712 #if defined (__stub_pow) || defined (__stub___pow)
13715 char (*f) () = pow;
13729 rm -f conftest.
$ac_objext conftest
$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 (eval $ac_link) 2>conftest.er1
13733 grep -v '^ *+' conftest.er1
>conftest.err
13735 cat conftest.err
>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try
='test -z "$ac_c_werror_flag"
13739 || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try
='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13758 rm -f conftest.err conftest.
$ac_objext \
13759 conftest
$ac_exeext conftest.
$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13762 echo "${ECHO_T}$ac_cv_func_pow" >&6
13764 if test $ac_cv_func_pow = no
; then
13765 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13766 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13767 if test "${ac_cv_lib_m_pow+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 ac_check_lib_save_LIBS
=$LIBS
13772 cat >conftest.
$ac_ext <<_ACEOF
13775 cat confdefs.h
>>conftest.
$ac_ext
13776 cat >>conftest.
$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any gcc2 internal prototype to avoid an error. */
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13794 rm -f conftest.
$ac_objext conftest
$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796 (eval $ac_link) 2>conftest.er1
13798 grep -v '^ *+' conftest.er1
>conftest.err
13800 cat conftest.err
>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try
='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try
='test -s conftest$ac_exeext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_lib_m_pow
=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.
$ac_ext >&5
13823 rm -f conftest.err conftest.
$ac_objext \
13824 conftest
$ac_exeext conftest.
$ac_ext
13825 LIBS
=$ac_check_lib_save_LIBS
13827 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13828 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13829 if test $ac_cv_lib_m_pow = yes; then
13832 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13833 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13841 for ac_func
in vprintf
13843 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13844 echo "$as_me:$LINENO: checking for $ac_func" >&5
13845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13846 if eval "test \"\${$as_ac_var+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 cat >conftest.
$ac_ext <<_ACEOF
13852 cat confdefs.h
>>conftest.
$ac_ext
13853 cat >>conftest.
$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13857 #define $ac_func innocuous_$ac_func
13859 /* System header to define __stub macros and hopefully few prototypes,
13860 which can conflict with char $ac_func (); below.
13861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13862 <limits.h> exists even on freestanding compilers. */
13865 # include <limits.h>
13867 # include <assert.h>
13872 /* Override any gcc2 internal prototype to avoid an error. */
13877 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13886 char (*f) () = $ac_func;
13895 return f != $ac_func;
13900 rm -f conftest.
$ac_objext conftest
$ac_exeext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13902 (eval $ac_link) 2>conftest.er1
13904 grep -v '^ *+' conftest.er1
>conftest.err
13906 cat conftest.err
>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try
='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try
='test -s conftest$ac_exeext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 eval "$as_ac_var=yes"
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 eval "$as_ac_var=no"
13929 rm -f conftest.err conftest.
$ac_objext \
13930 conftest
$ac_exeext conftest.
$ac_ext
13932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13934 if test `eval echo '${'$as_ac_var'}'` = yes; then
13935 cat >>confdefs.h
<<_ACEOF
13936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13939 echo "$as_me:$LINENO: checking for _doprnt" >&5
13940 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13941 if test "${ac_cv_func__doprnt+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.
$ac_ext <<_ACEOF
13947 cat confdefs.h
>>conftest.
$ac_ext
13948 cat >>conftest.
$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13952 #define _doprnt innocuous__doprnt
13954 /* System header to define __stub macros and hopefully few prototypes,
13955 which can conflict with char _doprnt (); below.
13956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13957 <limits.h> exists even on freestanding compilers. */
13960 # include <limits.h>
13962 # include <assert.h>
13967 /* Override any gcc2 internal prototype to avoid an error. */
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13975 /* The GNU C library defines this for functions which it implements
13976 to always fail with ENOSYS. Some functions are actually named
13977 something starting with __ and the normal name is an alias. */
13978 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13981 char (*f) () = _doprnt;
13990 return f != _doprnt;
13995 rm -f conftest.
$ac_objext conftest
$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997 (eval $ac_link) 2>conftest.er1
13999 grep -v '^ *+' conftest.er1
>conftest.err
14001 cat conftest.err
>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try
='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try
='test -s conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_func__doprnt
=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.
$ac_ext >&5
14022 ac_cv_func__doprnt
=no
14024 rm -f conftest.err conftest.
$ac_objext \
14025 conftest
$ac_exeext conftest.
$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14028 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14029 if test $ac_cv_func__doprnt = yes; then
14031 cat >>confdefs.h
<<\_ACEOF
14032 #define HAVE_DOPRNT 1
14041 if test $cross_compiling = yes -a $gnumalloc = yes; then
14043 { echo "$as_me:$LINENO: WARNING:
14044 configure cannot check whether malloc() and realloc() are GNU libc
14045 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14046 run configure with the --without-gnu-malloc switch." >&5
14047 echo "$as_me: WARNING:
14048 configure cannot check whether malloc() and realloc() are GNU libc
14049 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14050 run configure with the --without-gnu-malloc switch." >&2;}
14051 ac_cv_func_malloc_0_nonnull
=yes
14052 ac_cv_func_realloc_0_nonnull
=yes
14057 for ac_header
in stdlib.h
14059 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo "$as_me:$LINENO: checking for $ac_header" >&5
14062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14069 # Is the header compilable?
14070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14072 cat >conftest.
$ac_ext <<_ACEOF
14075 cat confdefs.h
>>conftest.
$ac_ext
14076 cat >>conftest.
$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 $ac_includes_default
14079 #include <$ac_header>
14081 rm -f conftest.
$ac_objext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>conftest.er1
14085 grep -v '^ *+' conftest.er1
>conftest.err
14087 cat conftest.err
>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try
='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try
='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_header_compiler
=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.
$ac_ext >&5
14108 ac_header_compiler
=no
14110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14112 echo "${ECHO_T}$ac_header_compiler" >&6
14114 # Is the header present?
14115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14117 cat >conftest.
$ac_ext <<_ACEOF
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 #include <$ac_header>
14125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14128 grep -v '^ *+' conftest.er1
>conftest.err
14130 cat conftest.err
>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } >/dev
/null
; then
14133 if test -s conftest.err
; then
14134 ac_cpp_err
=$ac_c_preproc_warn_flag
14135 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14142 if test -z "$ac_cpp_err"; then
14143 ac_header_preproc
=yes
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.
$ac_ext >&5
14148 ac_header_preproc
=no
14150 rm -f conftest.err conftest.
$ac_ext
14151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14152 echo "${ECHO_T}$ac_header_preproc" >&6
14154 # So? What about this header?
14155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14161 ac_header_preproc
=yes
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14178 ## ------------------------------ ##
14179 ## Report this to admin@amule.org ##
14180 ## ------------------------------ ##
14183 sed "s/^/$as_me: WARNING: /" >&2
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 eval "$as_ac_Header=\$ac_header_preproc"
14193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198 cat >>confdefs.h
<<_ACEOF
14199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14207 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14208 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 if test "$cross_compiling" = yes; then
14212 ac_cv_func_malloc_0_nonnull
=no
14214 cat >conftest.
$ac_ext <<_ACEOF
14217 cat confdefs.h
>>conftest.
$ac_ext
14218 cat >>conftest.
$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #if STDC_HEADERS || HAVE_STDLIB_H
14221 # include <stdlib.h>
14229 exit (malloc (0) ? 0 : 1);
14234 rm -f conftest
$ac_exeext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236 (eval $ac_link) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_func_malloc_0_nonnull
=yes
14247 echo "$as_me: program exited with status $ac_status" >&5
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.
$ac_ext >&5
14251 ( exit $ac_status )
14252 ac_cv_func_malloc_0_nonnull
=no
14254 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14257 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14258 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14259 if test $ac_cv_func_malloc_0_nonnull = yes; then
14261 cat >>confdefs.h
<<\_ACEOF
14262 #define HAVE_MALLOC 1
14266 cat >>confdefs.h
<<\_ACEOF
14267 #define HAVE_MALLOC 0
14271 "malloc.$ac_objext" | \
14272 *" malloc.$ac_objext" | \
14273 "malloc.$ac_objext "* | \
14274 *" malloc.$ac_objext "* ) ;;
14275 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
14279 cat >>confdefs.h
<<\_ACEOF
14280 #define malloc rpl_malloc
14288 for ac_header
in stdlib.h
14290 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14300 # Is the header compilable?
14301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14303 cat >conftest.
$ac_ext <<_ACEOF
14306 cat confdefs.h
>>conftest.
$ac_ext
14307 cat >>conftest.
$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14310 #include <$ac_header>
14312 rm -f conftest.
$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14316 grep -v '^ *+' conftest.er1
>conftest.err
14318 cat conftest.err
>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try
='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try
='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_header_compiler
=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 ac_header_compiler
=no
14341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6
14345 # Is the header present?
14346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14348 cat >conftest.
$ac_ext <<_ACEOF
14351 cat confdefs.h
>>conftest.
$ac_ext
14352 cat >>conftest.
$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <$ac_header>
14356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14357 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } >/dev
/null
; then
14364 if test -s conftest.err
; then
14365 ac_cpp_err
=$ac_c_preproc_warn_flag
14366 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14373 if test -z "$ac_cpp_err"; then
14374 ac_header_preproc
=yes
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.
$ac_ext >&5
14379 ac_header_preproc
=no
14381 rm -f conftest.err conftest.
$ac_ext
14382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 echo "${ECHO_T}$ac_header_preproc" >&6
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14392 ac_header_preproc
=yes
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14409 ## ------------------------------ ##
14410 ## Report this to admin@amule.org ##
14411 ## ------------------------------ ##
14414 sed "s/^/$as_me: WARNING: /" >&2
14417 echo "$as_me:$LINENO: checking for $ac_header" >&5
14418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 eval "$as_ac_Header=\$ac_header_preproc"
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14429 cat >>confdefs.h
<<_ACEOF
14430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14437 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14438 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14439 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 if test "$cross_compiling" = yes; then
14443 ac_cv_func_realloc_0_nonnull
=no
14445 cat >conftest.
$ac_ext <<_ACEOF
14448 cat confdefs.h
>>conftest.
$ac_ext
14449 cat >>conftest.
$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #if STDC_HEADERS || HAVE_STDLIB_H
14452 # include <stdlib.h>
14460 exit (realloc (0, 0) ? 0 : 1);
14465 rm -f conftest
$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_func_realloc_0_nonnull
=yes
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.
$ac_ext >&5
14482 ( exit $ac_status )
14483 ac_cv_func_realloc_0_nonnull
=no
14485 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14489 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14490 if test $ac_cv_func_realloc_0_nonnull = yes; then
14492 cat >>confdefs.h
<<\_ACEOF
14493 #define HAVE_REALLOC 1
14497 cat >>confdefs.h
<<\_ACEOF
14498 #define HAVE_REALLOC 0
14502 "realloc.$ac_objext" | \
14503 *" realloc.$ac_objext" | \
14504 "realloc.$ac_objext "* | \
14505 *" realloc.$ac_objext "* ) ;;
14506 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
14510 cat >>confdefs.h
<<\_ACEOF
14511 #define realloc rpl_realloc
14551 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
14553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14554 echo "$as_me:$LINENO: checking for $ac_func" >&5
14555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_var+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 cat >conftest.
$ac_ext <<_ACEOF
14562 cat confdefs.h
>>conftest.
$ac_ext
14563 cat >>conftest.
$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14567 #define $ac_func innocuous_$ac_func
14569 /* System header to define __stub macros and hopefully few prototypes,
14570 which can conflict with char $ac_func (); below.
14571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14572 <limits.h> exists even on freestanding compilers. */
14575 # include <limits.h>
14577 # include <assert.h>
14582 /* Override any gcc2 internal prototype to avoid an error. */
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14590 /* The GNU C library defines this for functions which it implements
14591 to always fail with ENOSYS. Some functions are actually named
14592 something starting with __ and the normal name is an alias. */
14593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14596 char (*f) () = $ac_func;
14605 return f != $ac_func;
14610 rm -f conftest.
$ac_objext conftest
$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612 (eval $ac_link) 2>conftest.er1
14614 grep -v '^ *+' conftest.er1
>conftest.err
14616 cat conftest.err
>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try
='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try
='test -s conftest$ac_exeext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 eval "$as_ac_var=yes"
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.
$ac_ext >&5
14637 eval "$as_ac_var=no"
14639 rm -f conftest.err conftest.
$ac_objext \
14640 conftest
$ac_exeext conftest.
$ac_ext
14642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14644 if test `eval echo '${'$as_ac_var'}'` = yes; then
14645 cat >>confdefs.h
<<_ACEOF
14646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14652 #-------------------------------------------------------------------------------
14653 # End of autoscan stuff
14654 #-------------------------------------------------------------------------------
14660 for ac_func
in mkdir getrlimit setrlimit getopt_long
14662 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14663 echo "$as_me:$LINENO: checking for $ac_func" >&5
14664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14665 if eval "test \"\${$as_ac_var+set}\" = set"; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 cat >conftest.
$ac_ext <<_ACEOF
14671 cat confdefs.h
>>conftest.
$ac_ext
14672 cat >>conftest.
$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14676 #define $ac_func innocuous_$ac_func
14678 /* System header to define __stub macros and hopefully few prototypes,
14679 which can conflict with char $ac_func (); below.
14680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14681 <limits.h> exists even on freestanding compilers. */
14684 # include <limits.h>
14686 # include <assert.h>
14691 /* Override any gcc2 internal prototype to avoid an error. */
14696 /* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14699 /* The GNU C library defines this for functions which it implements
14700 to always fail with ENOSYS. Some functions are actually named
14701 something starting with __ and the normal name is an alias. */
14702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14705 char (*f) () = $ac_func;
14714 return f != $ac_func;
14719 rm -f conftest.
$ac_objext conftest
$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721 (eval $ac_link) 2>conftest.er1
14723 grep -v '^ *+' conftest.er1
>conftest.err
14725 cat conftest.err
>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try
='test -z "$ac_c_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try
='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 eval "$as_ac_var=yes"
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.
$ac_ext >&5
14746 eval "$as_ac_var=no"
14748 rm -f conftest.err conftest.
$ac_objext \
14749 conftest
$ac_exeext conftest.
$ac_ext
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h
<<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14762 mule_backup_CPPFLAGS
="$CPPFLAGS"
14763 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14764 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14765 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14766 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 cat >conftest.
$ac_ext <<_ACEOF
14772 cat confdefs.h
>>conftest.
$ac_ext
14773 cat >>conftest.
$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14780 char *p = (char *) strerror_r;
14787 rm -f conftest.
$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>conftest.er1
14791 grep -v '^ *+' conftest.er1
>conftest.err
14793 cat conftest.err
>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try
='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try
='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_have_decl_strerror_r
=yes
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.
$ac_ext >&5
14814 ac_cv_have_decl_strerror_r
=no
14816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14819 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14820 if test $ac_cv_have_decl_strerror_r = yes; then
14822 cat >>confdefs.h
<<_ACEOF
14823 #define HAVE_DECL_STRERROR_R 1
14828 cat >>confdefs.h
<<_ACEOF
14829 #define HAVE_DECL_STRERROR_R 0
14837 for ac_func
in strerror_r
14839 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14840 echo "$as_me:$LINENO: checking for $ac_func" >&5
14841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14842 if eval "test \"\${$as_ac_var+set}\" = set"; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14853 #define $ac_func innocuous_$ac_func
14855 /* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char $ac_func (); below.
14857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14858 <limits.h> exists even on freestanding compilers. */
14861 # include <limits.h>
14863 # include <assert.h>
14868 /* Override any gcc2 internal prototype to avoid an error. */
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14876 /* The GNU C library defines this for functions which it implements
14877 to always fail with ENOSYS. Some functions are actually named
14878 something starting with __ and the normal name is an alias. */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14882 char (*f) () = $ac_func;
14891 return f != $ac_func;
14896 rm -f conftest.
$ac_objext conftest
$ac_exeext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>conftest.er1
14900 grep -v '^ *+' conftest.er1
>conftest.err
14902 cat conftest.err
>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try
='test -z "$ac_c_werror_flag"
14906 || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try
='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 eval "$as_ac_var=yes"
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 eval "$as_ac_var=no"
14925 rm -f conftest.err conftest.
$ac_objext \
14926 conftest
$ac_exeext conftest.
$ac_ext
14928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14930 if test `eval echo '${'$as_ac_var'}'` = yes; then
14931 cat >>confdefs.h
<<_ACEOF
14932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14938 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14939 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14940 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 ac_cv_func_strerror_r_char_p
=no
14945 if test $ac_cv_have_decl_strerror_r = yes; then
14946 cat >conftest.
$ac_ext <<_ACEOF
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14958 char x = *strerror_r (0, buf, sizeof buf);
14959 char *p = strerror_r (0, buf, sizeof buf);
14965 rm -f conftest.
$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14969 grep -v '^ *+' conftest.er1
>conftest.err
14971 cat conftest.err
>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try
='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try
='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_func_strerror_r_char_p
=yes
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.
$ac_ext >&5
14993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14995 # strerror_r is not declared. Choose between
14996 # systems that have relatively inaccessible declarations for the
14997 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14998 # former has a strerror_r that returns char*, while the latter
14999 # has a strerror_r that returns `int'.
15000 # This test should segfault on the DEC system.
15001 if test "$cross_compiling" = yes; then
15004 cat >conftest.
$ac_ext <<_ACEOF
15007 cat confdefs.h
>>conftest.
$ac_ext
15008 cat >>conftest.
$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 $ac_includes_default
15011 extern char *strerror_r ();
15016 char x = *strerror_r (0, buf, sizeof buf);
15017 exit (!isalpha (x));
15022 rm -f conftest
$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_func_strerror_r_char_p
=yes
15035 echo "$as_me: program exited with status $ac_status" >&5
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.
$ac_ext >&5
15040 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15045 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15046 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15047 if test $ac_cv_func_strerror_r_char_p = yes; then
15049 cat >>confdefs.h
<<\_ACEOF
15050 #define STRERROR_R_CHAR_P 1
15055 CPPFLAGS
="$mule_backup_CPPFLAGS"
15057 # Look for a way to preallocate disk space for files.
15059 echo "$as_me:$LINENO: checking for fallocate" >&5
15060 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15061 cat >conftest.
$ac_ext <<_ACEOF
15065 cat confdefs.h
>>conftest.
$ac_ext
15066 cat >>conftest.
$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15069 #include <linux/falloc.h>
15075 fallocate(0, 0, 0, 0);
15082 rm -f conftest.
$ac_objext conftest
$ac_exeext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15084 (eval $ac_link) 2>conftest.er1
15086 grep -v '^ *+' conftest.er1
>conftest.err
15088 cat conftest.err
>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try
='test -z "$ac_c_werror_flag"
15092 || test ! -s conftest.err'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try
='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15107 cat >>confdefs.h
<<\_ACEOF
15108 #define HAVE_FALLOCATE 1
15111 echo "$as_me:$LINENO: result: yes" >&5
15112 echo "${ECHO_T}yes" >&6
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.
$ac_ext >&5
15119 echo "$as_me:$LINENO: result: no" >&5
15120 echo "${ECHO_T}no" >&6
15123 rm -f conftest.err conftest.
$ac_objext \
15124 conftest
$ac_exeext conftest.
$ac_ext
15127 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15128 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15129 cat >conftest.
$ac_ext <<_ACEOF
15133 cat confdefs.h
>>conftest.
$ac_ext
15134 cat >>conftest.
$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15137 #include <sys/sycall.h>
15138 #include <sys/types.h>
15139 #include <unistd.h>
15145 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15152 rm -f conftest.
$ac_objext conftest
$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1
>conftest.err
15158 cat conftest.err
>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try
='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try
='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15177 cat >>confdefs.h
<<\_ACEOF
15178 #define HAVE_SYS_FALLOCATE 1
15181 echo "$as_me:$LINENO: result: yes" >&5
15182 echo "${ECHO_T}yes" >&6
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.
$ac_ext >&5
15189 echo "$as_me:$LINENO: result: no" >&5
15190 echo "${ECHO_T}no" >&6
15193 rm -f conftest.err conftest.
$ac_objext \
15194 conftest
$ac_exeext conftest.
$ac_ext
15196 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15197 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15198 cat >conftest.
$ac_ext <<_ACEOF
15202 cat confdefs.h
>>conftest.
$ac_ext
15203 cat >>conftest.
$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 #define _XOPEN_SOURCE 600
15207 #include <stdlib.h>
15208 #ifdef HAVE_FCNTL_H
15209 # include <fcntl.h>
15216 posix_fallocate(0, 0, 0);
15223 rm -f conftest.
$ac_objext conftest
$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>conftest.er1
15227 grep -v '^ *+' conftest.er1
>conftest.err
15229 cat conftest.err
>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try
='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try
='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15248 cat >>confdefs.h
<<\_ACEOF
15249 #define HAVE_POSIX_FALLOCATE 1
15252 echo "$as_me:$LINENO: result: yes" >&5
15253 echo "${ECHO_T}yes" >&6
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.
$ac_ext >&5
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15264 rm -f conftest.err conftest.
$ac_objext \
15265 conftest
$ac_exeext conftest.
$ac_ext
15268 # Checking Native Language Support
15272 if test -n "$ac_aux_dir"; then
15273 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15275 if test -z "$MKINSTALLDIRS"; then
15276 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15283 # Extract the first word of "msgfmt", so it can be a program name with args.
15284 set dummy msgfmt
; ac_word
=$2
15285 echo "$as_me:$LINENO: checking for $ac_word" >&5
15286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15287 if test "${ac_cv_path_MSGFMT+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15296 for ac_dir
in $PATH; do
15297 test -z "$ac_dir" && ac_dir
=.
15298 if test -f $ac_dir/$ac_word; then
15299 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15300 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15301 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15307 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15311 MSGFMT
="$ac_cv_path_MSGFMT"
15312 if test "$MSGFMT" != ":"; then
15313 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15314 echo "${ECHO_T}$MSGFMT" >&6
15316 echo "$as_me:$LINENO: result: no" >&5
15317 echo "${ECHO_T}no" >&6
15320 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15321 set dummy gmsgfmt
; ac_word
=$2
15322 echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15333 for as_dir
in $PATH
15336 test -z "$as_dir" && as_dir
=.
15337 for ac_exec_ext
in '' $ac_executable_extensions; do
15338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15350 GMSGFMT
=$ac_cv_path_GMSGFMT
15352 if test -n "$GMSGFMT"; then
15353 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15354 echo "${ECHO_T}$GMSGFMT" >&6
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15361 # Extract the first word of "xgettext", so it can be a program name with args.
15362 set dummy xgettext
; ac_word
=$2
15363 echo "$as_me:$LINENO: checking for $ac_word" >&5
15364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15365 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 case "$XGETTEXT" in
15370 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15373 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15374 for ac_dir
in $PATH; do
15375 test -z "$ac_dir" && ac_dir
=.
15376 if test -f $ac_dir/$ac_word; then
15377 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15378 (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
15379 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15385 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15389 XGETTEXT
="$ac_cv_path_XGETTEXT"
15390 if test "$XGETTEXT" != ":"; then
15391 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15392 echo "${ECHO_T}$XGETTEXT" >&6
15394 echo "$as_me:$LINENO: result: no" >&5
15395 echo "${ECHO_T}no" >&6
15400 # Extract the first word of "msgmerge", so it can be a program name with args.
15401 set dummy msgmerge
; ac_word
=$2
15402 echo "$as_me:$LINENO: checking for $ac_word" >&5
15403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15404 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 case "$MSGMERGE" in
15409 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15412 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15413 for ac_dir
in $PATH; do
15414 test -z "$ac_dir" && ac_dir
=.
15415 if test -f $ac_dir/$ac_word; then
15416 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15417 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15423 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15427 MSGMERGE
="$ac_cv_path_MSGMERGE"
15428 if test "$MSGMERGE" != ":"; then
15429 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15430 echo "${ECHO_T}$MSGMERGE" >&6
15432 echo "$as_me:$LINENO: result: no" >&5
15433 echo "${ECHO_T}no" >&6
15437 if test "$GMSGFMT" != ":"; then
15438 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15439 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15442 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15443 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15444 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15449 if test "$XGETTEXT" != ":"; then
15450 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15451 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15454 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15455 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15461 ac_config_commands
="$ac_config_commands default-1"
15464 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15465 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15466 if test "${ac_cv_search_strerror+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 ac_func_search_save_LIBS
=$LIBS
15470 ac_cv_search_strerror
=no
15471 cat >conftest.
$ac_ext <<_ACEOF
15474 cat confdefs.h
>>conftest.
$ac_ext
15475 cat >>conftest.
$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15478 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15493 rm -f conftest.
$ac_objext conftest
$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15497 grep -v '^ *+' conftest.er1
>conftest.err
15499 cat conftest.err
>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try
='test -z "$ac_c_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try
='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_search_strerror
="none required"
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.
$ac_ext >&5
15521 rm -f conftest.err conftest.
$ac_objext \
15522 conftest
$ac_exeext conftest.
$ac_ext
15523 if test "$ac_cv_search_strerror" = no
; then
15524 for ac_lib
in cposix
; do
15525 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15526 cat >conftest.
$ac_ext <<_ACEOF
15529 cat confdefs.h
>>conftest.
$ac_ext
15530 cat >>conftest.
$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15533 /* Override any gcc2 internal prototype to avoid an error. */
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15548 rm -f conftest.
$ac_objext conftest
$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>conftest.er1
15552 grep -v '^ *+' conftest.er1
>conftest.err
15554 cat conftest.err
>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try
='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try
='test -s conftest$ac_exeext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_search_strerror
="-l$ac_lib"
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.
$ac_ext >&5
15577 rm -f conftest.err conftest.
$ac_objext \
15578 conftest
$ac_exeext conftest.
$ac_ext
15581 LIBS
=$ac_func_search_save_LIBS
15583 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15584 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15585 if test "$ac_cv_search_strerror" != no
; then
15586 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15591 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15592 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15593 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 cat >conftest.
$ac_ext <<_ACEOF
15599 cat confdefs.h
>>conftest.
$ac_ext
15600 cat >>conftest.
$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 #include <features.h>
15604 #ifdef __GNU_LIBRARY__
15605 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15612 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15613 ac_cv_gnu_library_2_1
=yes
15615 ac_cv_gnu_library_2_1
=no
15622 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15623 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15625 GLIBC21
="$ac_cv_gnu_library_2_1"
15630 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15631 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15632 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 if test "$cross_compiling" = yes; then
15638 # Guess based on the CPU.
15639 case "$host_cpu" in
15640 alpha
* | i3456786 | m68k | s390
*)
15641 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15643 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15647 cat >conftest.
$ac_ext <<_ACEOF
15650 cat confdefs.h
>>conftest.
$ac_ext
15651 cat >>conftest.
$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15654 #include <stdlib.h>
15655 #include <signal.h>
15659 sigfpe_handler (int sig)
15661 sigfpe_handler (sig) int sig;
15664 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15665 exit (sig != SIGFPE);
15675 signal (SIGFPE, sigfpe_handler);
15676 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15677 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15678 signal (SIGTRAP, sigfpe_handler);
15680 /* Linux/SPARC yields signal SIGILL. */
15681 #if defined (__sparc__) && defined (__linux__)
15682 signal (SIGILL, sigfpe_handler);
15691 rm -f conftest
$ac_exeext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693 (eval $ac_link) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 gt_cv_int_divbyzero_sigfpe
=yes
15704 echo "$as_me: program exited with status $ac_status" >&5
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.
$ac_ext >&5
15708 ( exit $ac_status )
15709 gt_cv_int_divbyzero_sigfpe
=no
15711 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15715 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15716 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15717 case "$gt_cv_int_divbyzero_sigfpe" in
15722 cat >>confdefs.h
<<_ACEOF
15723 #define INTDIV0_RAISES_SIGFPE $value
15728 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15729 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15730 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 cat >conftest.
$ac_ext <<_ACEOF
15736 cat confdefs.h
>>conftest.
$ac_ext
15737 cat >>conftest.
$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <sys/types.h>
15740 #include <inttypes.h>
15744 uintmax_t i = (uintmax_t) -1;
15749 rm -f conftest.
$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15753 grep -v '^ *+' conftest.er1
>conftest.err
15755 cat conftest.err
>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try
='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try
='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 jm_ac_cv_header_inttypes_h
=yes
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.
$ac_ext >&5
15776 jm_ac_cv_header_inttypes_h
=no
15778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15780 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15781 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15782 if test $jm_ac_cv_header_inttypes_h = yes; then
15784 cat >>confdefs.h
<<_ACEOF
15785 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15791 echo "$as_me:$LINENO: checking for stdint.h" >&5
15792 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15793 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 cat >conftest.
$ac_ext <<_ACEOF
15799 cat confdefs.h
>>conftest.
$ac_ext
15800 cat >>conftest.
$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <sys/types.h>
15803 #include <stdint.h>
15807 uintmax_t i = (uintmax_t) -1;
15812 rm -f conftest.
$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15816 grep -v '^ *+' conftest.er1
>conftest.err
15818 cat conftest.err
>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try
='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try
='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 jm_ac_cv_header_stdint_h
=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.
$ac_ext >&5
15839 jm_ac_cv_header_stdint_h
=no
15841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15843 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15844 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15845 if test $jm_ac_cv_header_stdint_h = yes; then
15847 cat >>confdefs.h
<<_ACEOF
15848 #define HAVE_STDINT_H_WITH_UINTMAX 1
15854 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15855 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15856 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 cat >conftest.
$ac_ext <<_ACEOF
15862 cat confdefs.h
>>conftest.
$ac_ext
15863 cat >>conftest.
$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 unsigned long long ull = 1; int i = 63;
15869 unsigned long long ullmax = (unsigned long long) -1;
15870 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15875 rm -f conftest.
$ac_objext conftest
$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877 (eval $ac_link) 2>conftest.er1
15879 grep -v '^ *+' conftest.er1
>conftest.err
15881 cat conftest.err
>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
15884 { ac_try
='test -z "$ac_c_werror_flag"
15885 || test ! -s conftest.err'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try
='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_cv_type_unsigned_long_long
=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.
$ac_ext >&5
15902 ac_cv_type_unsigned_long_long
=no
15904 rm -f conftest.err conftest.
$ac_objext \
15905 conftest
$ac_exeext conftest.
$ac_ext
15907 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15908 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15909 if test $ac_cv_type_unsigned_long_long = yes; then
15911 cat >>confdefs.h
<<\_ACEOF
15912 #define HAVE_UNSIGNED_LONG_LONG 1
15920 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15922 test $ac_cv_type_unsigned_long_long = yes \
15923 && ac_type
='unsigned long long' \
15924 || ac_type
='unsigned long'
15926 cat >>confdefs.h
<<_ACEOF
15927 #define uintmax_t $ac_type
15933 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15934 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15935 if test "${gt_cv_header_inttypes_h+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 cat >conftest.
$ac_ext <<_ACEOF
15942 cat confdefs.h
>>conftest.
$ac_ext
15943 cat >>conftest.
$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #include <inttypes.h>
15955 rm -f conftest.
$ac_objext
15956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15957 (eval $ac_compile) 2>conftest.er1
15959 grep -v '^ *+' conftest.er1
>conftest.err
15961 cat conftest.err
>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try
='test -z "$ac_c_werror_flag"
15965 || test ! -s conftest.err'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try
='test -s conftest.$ac_objext'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 gt_cv_header_inttypes_h
=yes
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.
$ac_ext >&5
15982 gt_cv_header_inttypes_h
=no
15984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15987 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15988 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15989 if test $gt_cv_header_inttypes_h = yes; then
15991 cat >>confdefs.h
<<_ACEOF
15992 #define HAVE_INTTYPES_H 1
15999 if test $gt_cv_header_inttypes_h = yes; then
16000 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16001 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16002 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 cat >conftest.
$ac_ext <<_ACEOF
16009 cat confdefs.h
>>conftest.
$ac_ext
16010 cat >>conftest.
$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 #include <inttypes.h>
16025 rm -f conftest.
$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1
>conftest.err
16031 cat conftest.err
>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try
='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try
='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 gt_cv_inttypes_pri_broken
=no
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.
$ac_ext >&5
16052 gt_cv_inttypes_pri_broken
=yes
16054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16057 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16058 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16060 if test "$gt_cv_inttypes_pri_broken" = yes; then
16062 cat >>confdefs.h
<<_ACEOF
16063 #define PRI_MACROS_BROKEN 1
16069 if test "X$prefix" = "XNONE"; then
16070 acl_final_prefix
="$ac_default_prefix"
16072 acl_final_prefix
="$prefix"
16074 if test "X$exec_prefix" = "XNONE"; then
16075 acl_final_exec_prefix
='${prefix}'
16077 acl_final_exec_prefix
="$exec_prefix"
16079 acl_save_prefix
="$prefix"
16080 prefix
="$acl_final_prefix"
16081 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16082 prefix
="$acl_save_prefix"
16085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16086 if test "${with_gnu_ld+set}" = set; then
16087 withval
="$with_gnu_ld"
16088 test "$withval" = no || with_gnu_ld
=yes
16093 if test "$GCC" = yes; then
16094 # Check if gcc -print-prog-name=ld gives a path.
16095 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16096 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16099 # gcc leaves a trailing carriage return which upsets mingw
16100 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16102 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16105 # Accept absolute paths.
16106 [\\/]* |
[A-Za-z
]:[\\/]*)
16107 re_direlt
='/[^/][^/]*/\.\./'
16108 # Canonicalize the path of ld
16109 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16110 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16111 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16113 test -z "$LD" && LD
="$ac_prog"
16116 # If it fails, then pretend we aren't using GCC.
16120 # If it is relative, then search for the first ld in PATH.
16121 with_gnu_ld
=unknown
16124 elif test "$with_gnu_ld" = yes; then
16125 echo "$as_me:$LINENO: checking for GNU ld" >&5
16126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16131 if test "${acl_cv_path_LD+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 if test -z "$LD"; then
16135 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16136 for ac_dir
in $PATH; do
16137 test -z "$ac_dir" && ac_dir
=.
16138 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16139 acl_cv_path_LD
="$ac_dir/$ac_prog"
16140 # Check to see if the program is GNU ld. I'd rather use --version,
16141 # but apparently some GNU ld's only accept -v.
16142 # Break only if it was the GNU/non-GNU ld that we prefer.
16143 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16144 test "$with_gnu_ld" != no
&& break
16146 test "$with_gnu_ld" != yes && break
16152 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16156 LD
="$acl_cv_path_LD"
16157 if test -n "$LD"; then
16158 echo "$as_me:$LINENO: result: $LD" >&5
16159 echo "${ECHO_T}$LD" >&6
16161 echo "$as_me:$LINENO: result: no" >&5
16162 echo "${ECHO_T}no" >&6
16164 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16165 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16166 { (exit 1); exit 1; }; }
16167 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16168 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16169 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16173 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16174 acl_cv_prog_gnu_ld
=yes
16176 acl_cv_prog_gnu_ld
=no
16179 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16180 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16181 with_gnu_ld
=$acl_cv_prog_gnu_ld
16185 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16186 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16187 if test "${acl_cv_rpath+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16192 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16194 rm -f .
/conftest.sh
16198 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16199 echo "${ECHO_T}$acl_cv_rpath" >&6
16201 libext
="$acl_cv_libext"
16202 shlibext
="$acl_cv_shlibext"
16203 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16204 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16205 hardcode_direct
="$acl_cv_hardcode_direct"
16206 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16207 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16208 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16209 # Check whether --enable-rpath or --disable-rpath was given.
16210 if test "${enable_rpath+set}" = set; then
16211 enableval
="$enable_rpath"
16225 acl_save_prefix
="$prefix"
16226 prefix
="$acl_final_prefix"
16227 acl_save_exec_prefix
="$exec_prefix"
16228 exec_prefix
="$acl_final_exec_prefix"
16230 eval additional_includedir
=\"$includedir\"
16231 eval additional_libdir
=\"$libdir\"
16233 exec_prefix
="$acl_save_exec_prefix"
16234 prefix
="$acl_save_prefix"
16237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16238 if test "${with_libiconv_prefix+set}" = set; then
16239 withval
="$with_libiconv_prefix"
16241 if test "X$withval" = "Xno"; then
16244 if test "X$withval" = "X"; then
16246 acl_save_prefix
="$prefix"
16247 prefix
="$acl_final_prefix"
16248 acl_save_exec_prefix
="$exec_prefix"
16249 exec_prefix
="$acl_final_exec_prefix"
16251 eval additional_includedir
=\"$includedir\"
16252 eval additional_libdir
=\"$libdir\"
16254 exec_prefix
="$acl_save_exec_prefix"
16255 prefix
="$acl_save_prefix"
16258 additional_includedir
="$withval/include"
16259 additional_libdir
="$withval/lib"
16269 names_already_handled
=
16270 names_next_round
='iconv '
16271 while test -n "$names_next_round"; do
16272 names_this_round
="$names_next_round"
16274 for name
in $names_this_round; do
16276 for n
in $names_already_handled; do
16277 if test "$n" = "$name"; then
16278 already_handled
=yes
16282 if test -z "$already_handled"; then
16283 names_already_handled
="$names_already_handled $name"
16284 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16285 eval value
=\"\
$HAVE_LIB$uppername\"
16286 if test -n "$value"; then
16287 if test "$value" = yes; then
16288 eval value
=\"\
$LIB$uppername\"
16289 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16290 eval value
=\"\
$LTLIB$uppername\"
16291 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16300 if test $use_additional = yes; then
16301 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16302 found_dir
="$additional_libdir"
16303 found_so
="$additional_libdir/lib$name.$shlibext"
16304 if test -f "$additional_libdir/lib$name.la"; then
16305 found_la
="$additional_libdir/lib$name.la"
16308 if test -f "$additional_libdir/lib$name.$libext"; then
16309 found_dir
="$additional_libdir"
16310 found_a
="$additional_libdir/lib$name.$libext"
16311 if test -f "$additional_libdir/lib$name.la"; then
16312 found_la
="$additional_libdir/lib$name.la"
16317 if test "X$found_dir" = "X"; then
16318 for x
in $LDFLAGS $LTLIBICONV; do
16320 acl_save_prefix
="$prefix"
16321 prefix
="$acl_final_prefix"
16322 acl_save_exec_prefix
="$exec_prefix"
16323 exec_prefix
="$acl_final_exec_prefix"
16325 exec_prefix
="$acl_save_exec_prefix"
16326 prefix
="$acl_save_prefix"
16330 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16331 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16333 found_so
="$dir/lib$name.$shlibext"
16334 if test -f "$dir/lib$name.la"; then
16335 found_la
="$dir/lib$name.la"
16338 if test -f "$dir/lib$name.$libext"; then
16340 found_a
="$dir/lib$name.$libext"
16341 if test -f "$dir/lib$name.la"; then
16342 found_la
="$dir/lib$name.la"
16348 if test "X$found_dir" != "X"; then
16353 if test "X$found_dir" != "X"; then
16354 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16355 if test "X$found_so" != "X"; then
16356 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16357 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16360 for x
in $ltrpathdirs; do
16361 if test "X$x" = "X$found_dir"; then
16366 if test -z "$haveit"; then
16367 ltrpathdirs
="$ltrpathdirs $found_dir"
16369 if test "$hardcode_direct" = yes; then
16370 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16372 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16373 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16375 for x
in $rpathdirs; do
16376 if test "X$x" = "X$found_dir"; then
16381 if test -z "$haveit"; then
16382 rpathdirs
="$rpathdirs $found_dir"
16386 for x
in $LDFLAGS $LIBICONV; do
16388 acl_save_prefix
="$prefix"
16389 prefix
="$acl_final_prefix"
16390 acl_save_exec_prefix
="$exec_prefix"
16391 exec_prefix
="$acl_final_exec_prefix"
16393 exec_prefix
="$acl_save_exec_prefix"
16394 prefix
="$acl_save_prefix"
16396 if test "X$x" = "X-L$found_dir"; then
16401 if test -z "$haveit"; then
16402 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16404 if test "$hardcode_minus_L" != no
; then
16405 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16407 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16413 if test "X$found_a" != "X"; then
16414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16416 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16419 additional_includedir
=
16420 case "$found_dir" in
16422 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16423 additional_includedir
="$basedir/include"
16426 if test "X$additional_includedir" != "X"; then
16427 if test "X$additional_includedir" != "X/usr/include"; then
16429 if test "X$additional_includedir" = "X/usr/local/include"; then
16430 if test -n "$GCC"; then
16432 linux
*) haveit
=yes;;
16436 if test -z "$haveit"; then
16437 for x
in $CPPFLAGS $INCICONV; do
16439 acl_save_prefix
="$prefix"
16440 prefix
="$acl_final_prefix"
16441 acl_save_exec_prefix
="$exec_prefix"
16442 exec_prefix
="$acl_final_exec_prefix"
16444 exec_prefix
="$acl_save_exec_prefix"
16445 prefix
="$acl_save_prefix"
16447 if test "X$x" = "X-I$additional_includedir"; then
16452 if test -z "$haveit"; then
16453 if test -d "$additional_includedir"; then
16454 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16460 if test -n "$found_la"; then
16461 save_libdir
="$libdir"
16462 case "$found_la" in
16463 */* |
*\\*) .
"$found_la" ;;
16464 *) .
"./$found_la" ;;
16466 libdir
="$save_libdir"
16467 for dep
in $dependency_libs; do
16470 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16471 if test "X$additional_libdir" != "X/usr/lib"; then
16473 if test "X$additional_libdir" = "X/usr/local/lib"; then
16474 if test -n "$GCC"; then
16476 linux
*) haveit
=yes;;
16480 if test -z "$haveit"; then
16482 for x
in $LDFLAGS $LIBICONV; do
16484 acl_save_prefix
="$prefix"
16485 prefix
="$acl_final_prefix"
16486 acl_save_exec_prefix
="$exec_prefix"
16487 exec_prefix
="$acl_final_exec_prefix"
16489 exec_prefix
="$acl_save_exec_prefix"
16490 prefix
="$acl_save_prefix"
16492 if test "X$x" = "X-L$additional_libdir"; then
16497 if test -z "$haveit"; then
16498 if test -d "$additional_libdir"; then
16499 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16503 for x
in $LDFLAGS $LTLIBICONV; do
16505 acl_save_prefix
="$prefix"
16506 prefix
="$acl_final_prefix"
16507 acl_save_exec_prefix
="$exec_prefix"
16508 exec_prefix
="$acl_final_exec_prefix"
16510 exec_prefix
="$acl_save_exec_prefix"
16511 prefix
="$acl_save_prefix"
16513 if test "X$x" = "X-L$additional_libdir"; then
16518 if test -z "$haveit"; then
16519 if test -d "$additional_libdir"; then
16520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16527 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16528 if test "$enable_rpath" != no
; then
16530 for x
in $rpathdirs; do
16531 if test "X$x" = "X$dir"; then
16536 if test -z "$haveit"; then
16537 rpathdirs
="$rpathdirs $dir"
16540 for x
in $ltrpathdirs; do
16541 if test "X$x" = "X$dir"; then
16546 if test -z "$haveit"; then
16547 ltrpathdirs
="$ltrpathdirs $dir"
16552 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16555 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16559 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16566 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16572 if test "X$rpathdirs" != "X"; then
16573 if test -n "$hardcode_libdir_separator"; then
16575 for found_dir
in $rpathdirs; do
16576 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16578 acl_save_libdir
="$libdir"
16580 eval flag
=\"$hardcode_libdir_flag_spec\"
16581 libdir
="$acl_save_libdir"
16582 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16584 for found_dir
in $rpathdirs; do
16585 acl_save_libdir
="$libdir"
16586 libdir
="$found_dir"
16587 eval flag
=\"$hardcode_libdir_flag_spec\"
16588 libdir
="$acl_save_libdir"
16589 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16593 if test "X$ltrpathdirs" != "X"; then
16594 for found_dir
in $ltrpathdirs; do
16595 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16612 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16613 stdlib.h string.h unistd.h sys
/param.h
16615 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16617 echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16625 # Is the header compilable?
16626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16628 cat >conftest.
$ac_ext <<_ACEOF
16631 cat confdefs.h
>>conftest.
$ac_ext
16632 cat >>conftest.
$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 $ac_includes_default
16635 #include <$ac_header>
16637 rm -f conftest.
$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>conftest.er1
16641 grep -v '^ *+' conftest.er1
>conftest.err
16643 cat conftest.err
>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try
='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try
='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_header_compiler
=yes
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.
$ac_ext >&5
16664 ac_header_compiler
=no
16666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6
16670 # Is the header present?
16671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16673 cat >conftest.
$ac_ext <<_ACEOF
16676 cat confdefs.h
>>conftest.
$ac_ext
16677 cat >>conftest.
$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <$ac_header>
16681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16682 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1
>conftest.err
16686 cat conftest.err
>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } >/dev
/null
; then
16689 if test -s conftest.err
; then
16690 ac_cpp_err
=$ac_c_preproc_warn_flag
16691 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16698 if test -z "$ac_cpp_err"; then
16699 ac_header_preproc
=yes
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.
$ac_ext >&5
16704 ac_header_preproc
=no
16706 rm -f conftest.err conftest.
$ac_ext
16707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc
=yes
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16734 ## ------------------------------ ##
16735 ## Report this to admin@amule.org ##
16736 ## ------------------------------ ##
16739 sed "s/^/$as_me: WARNING: /" >&2
16742 echo "$as_me:$LINENO: checking for $ac_header" >&5
16743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 eval "$as_ac_Header=\$ac_header_preproc"
16749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 cat >>confdefs.h
<<_ACEOF
16755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16783 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16784 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16785 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16787 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16788 echo "$as_me:$LINENO: checking for $ac_func" >&5
16789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16790 if eval "test \"\${$as_ac_var+set}\" = set"; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 cat >conftest.
$ac_ext <<_ACEOF
16796 cat confdefs.h
>>conftest.
$ac_ext
16797 cat >>conftest.
$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16801 #define $ac_func innocuous_$ac_func
16803 /* System header to define __stub macros and hopefully few prototypes,
16804 which can conflict with char $ac_func (); below.
16805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16806 <limits.h> exists even on freestanding compilers. */
16809 # include <limits.h>
16811 # include <assert.h>
16816 /* Override any gcc2 internal prototype to avoid an error. */
16821 /* We use char because int might match the return type of a gcc2
16822 builtin and then its argument prototype would still apply. */
16824 /* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16830 char (*f) () = $ac_func;
16839 return f != $ac_func;
16844 rm -f conftest.
$ac_objext conftest
$ac_exeext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>conftest.er1
16848 grep -v '^ *+' conftest.er1
>conftest.err
16850 cat conftest.err
>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try
='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try
='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.
$ac_ext >&5
16871 eval "$as_ac_var=no"
16873 rm -f conftest.err conftest.
$ac_objext \
16874 conftest
$ac_exeext conftest.
$ac_ext
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16878 if test `eval echo '${'$as_ac_var'}'` = yes; then
16879 cat >>confdefs.h
<<_ACEOF
16880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16892 am_save_CPPFLAGS
="$CPPFLAGS"
16894 for element
in $INCICONV; do
16896 for x
in $CPPFLAGS; do
16898 acl_save_prefix
="$prefix"
16899 prefix
="$acl_final_prefix"
16900 acl_save_exec_prefix
="$exec_prefix"
16901 exec_prefix
="$acl_final_exec_prefix"
16903 exec_prefix
="$acl_save_exec_prefix"
16904 prefix
="$acl_save_prefix"
16906 if test "X$x" = "X$element"; then
16911 if test -z "$haveit"; then
16912 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16917 echo "$as_me:$LINENO: checking for iconv" >&5
16918 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16919 if test "${am_cv_func_iconv+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 am_cv_func_iconv
="no, consider installing GNU libiconv"
16925 cat >conftest.
$ac_ext <<_ACEOF
16928 cat confdefs.h
>>conftest.
$ac_ext
16929 cat >>conftest.
$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 #include <stdlib.h>
16936 iconv_t cd = iconv_open("","");
16937 iconv(cd,NULL,NULL,NULL,NULL);
16943 rm -f conftest.
$ac_objext conftest
$ac_exeext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945 (eval $ac_link) 2>conftest.er1
16947 grep -v '^ *+' conftest.er1
>conftest.err
16949 cat conftest.err
>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try
='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
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); }; } &&
16959 { ac_try
='test -s conftest$ac_exeext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 am_cv_func_iconv
=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.
$ac_ext >&5
16971 rm -f conftest.err conftest.
$ac_objext \
16972 conftest
$ac_exeext conftest.
$ac_ext
16973 if test "$am_cv_func_iconv" != yes; then
16974 am_save_LIBS
="$LIBS"
16975 LIBS
="$LIBS $LIBICONV"
16976 cat >conftest.
$ac_ext <<_ACEOF
16979 cat confdefs.h
>>conftest.
$ac_ext
16980 cat >>conftest.
$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 #include <stdlib.h>
16987 iconv_t cd = iconv_open("","");
16988 iconv(cd,NULL,NULL,NULL,NULL);
16994 rm -f conftest.
$ac_objext conftest
$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>conftest.er1
16998 grep -v '^ *+' conftest.er1
>conftest.err
17000 cat conftest.err
>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try
='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try
='test -s conftest$ac_exeext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 am_cv_lib_iconv
=yes
17017 am_cv_func_iconv
=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.
$ac_ext >&5
17023 rm -f conftest.err conftest.
$ac_objext \
17024 conftest
$ac_exeext conftest.
$ac_ext
17025 LIBS
="$am_save_LIBS"
17029 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17030 echo "${ECHO_T}$am_cv_func_iconv" >&6
17031 if test "$am_cv_func_iconv" = yes; then
17033 cat >>confdefs.h
<<\_ACEOF
17034 #define HAVE_ICONV 1
17038 if test "$am_cv_lib_iconv" = yes; then
17039 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17040 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17041 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17042 echo "${ECHO_T}$LIBICONV" >&6
17044 CPPFLAGS
="$am_save_CPPFLAGS"
17051 if test "$am_cv_func_iconv" = yes; then
17052 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17053 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17054 if test "${am_cv_proto_iconv+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 cat >conftest.
$ac_ext <<_ACEOF
17061 cat confdefs.h
>>conftest.
$ac_ext
17062 cat >>conftest.
$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17065 #include <stdlib.h>
17071 #if defined(__STDC__) || defined(__cplusplus)
17072 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17085 rm -f conftest.
$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087 (eval $ac_compile) 2>conftest.er1
17089 grep -v '^ *+' conftest.er1
>conftest.err
17091 cat conftest.err
>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try
='test -z "$ac_c_werror_flag"
17095 || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try
='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 am_cv_proto_iconv_arg1
=""
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.
$ac_ext >&5
17112 am_cv_proto_iconv_arg1
="const"
17114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17115 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);"
17118 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17119 echo "$as_me:$LINENO: result: ${ac_t:-
17120 }$am_cv_proto_iconv" >&5
17121 echo "${ECHO_T}${ac_t:-
17122 }$am_cv_proto_iconv" >&6
17124 cat >>confdefs.h
<<_ACEOF
17125 #define ICONV_CONST $am_cv_proto_iconv_arg1
17131 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17132 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17133 if test "${am_cv_langinfo_codeset+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 cat >conftest.
$ac_ext <<_ACEOF
17139 cat confdefs.h
>>conftest.
$ac_ext
17140 cat >>conftest.
$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <langinfo.h>
17146 char* cs = nl_langinfo(CODESET);
17151 rm -f conftest.
$ac_objext conftest
$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17155 grep -v '^ *+' conftest.er1
>conftest.err
17157 cat conftest.err
>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try
='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try
='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 am_cv_langinfo_codeset
=yes
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.
$ac_ext >&5
17178 am_cv_langinfo_codeset
=no
17180 rm -f conftest.err conftest.
$ac_objext \
17181 conftest
$ac_exeext conftest.
$ac_ext
17184 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17185 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17186 if test $am_cv_langinfo_codeset = yes; then
17188 cat >>confdefs.h
<<\_ACEOF
17189 #define HAVE_LANGINFO_CODESET 1
17194 if test $ac_cv_header_locale_h = yes; then
17196 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17197 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17198 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 cat >conftest.
$ac_ext <<_ACEOF
17204 cat confdefs.h
>>conftest.
$ac_ext
17205 cat >>conftest.
$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 #include <locale.h>
17216 rm -f conftest.
$ac_objext conftest
$ac_exeext
17217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>conftest.er1
17220 grep -v '^ *+' conftest.er1
>conftest.err
17222 cat conftest.err
>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try
='test -z "$ac_c_werror_flag"
17226 || test ! -s conftest.err'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try
='test -s conftest$ac_exeext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 am_cv_val_LC_MESSAGES
=yes
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.
$ac_ext >&5
17243 am_cv_val_LC_MESSAGES
=no
17245 rm -f conftest.err conftest.
$ac_objext \
17246 conftest
$ac_exeext conftest.
$ac_ext
17248 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17249 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17250 if test $am_cv_val_LC_MESSAGES = yes; then
17252 cat >>confdefs.h
<<\_ACEOF
17253 #define HAVE_LC_MESSAGES 1
17260 for ac_prog
in bison
17262 # Extract the first word of "$ac_prog", so it can be a program name with args.
17263 set dummy
$ac_prog; ac_word
=$2
17264 echo "$as_me:$LINENO: checking for $ac_word" >&5
17265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17266 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 if test -n "$INTLBISON"; then
17270 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17273 for as_dir
in $PATH
17276 test -z "$as_dir" && as_dir
=.
17277 for ac_exec_ext
in '' $ac_executable_extensions; do
17278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17279 ac_cv_prog_INTLBISON
="$ac_prog"
17280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17288 INTLBISON
=$ac_cv_prog_INTLBISON
17289 if test -n "$INTLBISON"; then
17290 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17291 echo "${ECHO_T}$INTLBISON" >&6
17293 echo "$as_me:$LINENO: result: no" >&5
17294 echo "${ECHO_T}no" >&6
17297 test -n "$INTLBISON" && break
17300 if test -z "$INTLBISON"; then
17303 echo "$as_me:$LINENO: checking version of bison" >&5
17304 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17305 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17306 case $ac_prog_version in
17307 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17308 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17309 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17310 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17312 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17313 echo "${ECHO_T}$ac_prog_version" >&6
17315 if test $ac_verc_fail = yes; then
17321 # Check whether --with-language or --without-language was given.
17322 if test "${with_language+set}" = set; then
17323 withval
="$with_language"
17324 if test "$withval" = "all"; then
17327 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17346 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17347 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17348 # Check whether --enable-nls or --disable-nls was given.
17349 if test "${enable_nls+set}" = set; then
17350 enableval
="$enable_nls"
17355 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17356 echo "${ECHO_T}$USE_NLS" >&6
17360 BUILD_INCLUDED_LIBINTL
=no
17361 USE_INCLUDED_LIBINTL
=no
17367 if test "$USE_NLS" = "yes"; then
17368 gt_use_preinstalled_gnugettext
=no
17370 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17371 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17373 # Check whether --with-included-gettext or --without-included-gettext was given.
17374 if test "${with_included_gettext+set}" = set; then
17375 withval
="$with_included_gettext"
17376 nls_cv_force_use_gnu_gettext
=$withval
17378 nls_cv_force_use_gnu_gettext
=no
17380 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17381 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17383 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17384 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17391 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17392 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17393 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 cat >conftest.
$ac_ext <<_ACEOF
17399 cat confdefs.h
>>conftest.
$ac_ext
17400 cat >>conftest.
$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <libintl.h>
17403 extern int _nl_msg_cat_cntr;
17404 extern int *_nl_domain_bindings;
17408 bindtextdomain ("", "");
17409 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17414 rm -f conftest.
$ac_objext conftest
$ac_exeext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>conftest.er1
17418 grep -v '^ *+' conftest.er1
>conftest.err
17420 cat conftest.err
>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try
='test -z "$ac_c_werror_flag"
17424 || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try
='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 gt_cv_func_gnugettext2_libc
=yes
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.
$ac_ext >&5
17441 gt_cv_func_gnugettext2_libc
=no
17443 rm -f conftest.err conftest.
$ac_objext \
17444 conftest
$ac_exeext conftest.
$ac_ext
17446 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17447 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17449 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17455 acl_save_prefix
="$prefix"
17456 prefix
="$acl_final_prefix"
17457 acl_save_exec_prefix
="$exec_prefix"
17458 exec_prefix
="$acl_final_exec_prefix"
17460 eval additional_includedir
=\"$includedir\"
17461 eval additional_libdir
=\"$libdir\"
17463 exec_prefix
="$acl_save_exec_prefix"
17464 prefix
="$acl_save_prefix"
17467 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17468 if test "${with_libintl_prefix+set}" = set; then
17469 withval
="$with_libintl_prefix"
17471 if test "X$withval" = "Xno"; then
17474 if test "X$withval" = "X"; then
17476 acl_save_prefix
="$prefix"
17477 prefix
="$acl_final_prefix"
17478 acl_save_exec_prefix
="$exec_prefix"
17479 exec_prefix
="$acl_final_exec_prefix"
17481 eval additional_includedir
=\"$includedir\"
17482 eval additional_libdir
=\"$libdir\"
17484 exec_prefix
="$acl_save_exec_prefix"
17485 prefix
="$acl_save_prefix"
17488 additional_includedir
="$withval/include"
17489 additional_libdir
="$withval/lib"
17499 names_already_handled
=
17500 names_next_round
='intl '
17501 while test -n "$names_next_round"; do
17502 names_this_round
="$names_next_round"
17504 for name
in $names_this_round; do
17506 for n
in $names_already_handled; do
17507 if test "$n" = "$name"; then
17508 already_handled
=yes
17512 if test -z "$already_handled"; then
17513 names_already_handled
="$names_already_handled $name"
17514 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17515 eval value
=\"\
$HAVE_LIB$uppername\"
17516 if test -n "$value"; then
17517 if test "$value" = yes; then
17518 eval value
=\"\
$LIB$uppername\"
17519 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17520 eval value
=\"\
$LTLIB$uppername\"
17521 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17530 if test $use_additional = yes; then
17531 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17532 found_dir
="$additional_libdir"
17533 found_so
="$additional_libdir/lib$name.$shlibext"
17534 if test -f "$additional_libdir/lib$name.la"; then
17535 found_la
="$additional_libdir/lib$name.la"
17538 if test -f "$additional_libdir/lib$name.$libext"; then
17539 found_dir
="$additional_libdir"
17540 found_a
="$additional_libdir/lib$name.$libext"
17541 if test -f "$additional_libdir/lib$name.la"; then
17542 found_la
="$additional_libdir/lib$name.la"
17547 if test "X$found_dir" = "X"; then
17548 for x
in $LDFLAGS $LTLIBINTL; do
17550 acl_save_prefix
="$prefix"
17551 prefix
="$acl_final_prefix"
17552 acl_save_exec_prefix
="$exec_prefix"
17553 exec_prefix
="$acl_final_exec_prefix"
17555 exec_prefix
="$acl_save_exec_prefix"
17556 prefix
="$acl_save_prefix"
17560 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17561 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17563 found_so
="$dir/lib$name.$shlibext"
17564 if test -f "$dir/lib$name.la"; then
17565 found_la
="$dir/lib$name.la"
17568 if test -f "$dir/lib$name.$libext"; then
17570 found_a
="$dir/lib$name.$libext"
17571 if test -f "$dir/lib$name.la"; then
17572 found_la
="$dir/lib$name.la"
17578 if test "X$found_dir" != "X"; then
17583 if test "X$found_dir" != "X"; then
17584 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17585 if test "X$found_so" != "X"; then
17586 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17587 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17590 for x
in $ltrpathdirs; do
17591 if test "X$x" = "X$found_dir"; then
17596 if test -z "$haveit"; then
17597 ltrpathdirs
="$ltrpathdirs $found_dir"
17599 if test "$hardcode_direct" = yes; then
17600 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17602 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17603 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17605 for x
in $rpathdirs; do
17606 if test "X$x" = "X$found_dir"; then
17611 if test -z "$haveit"; then
17612 rpathdirs
="$rpathdirs $found_dir"
17616 for x
in $LDFLAGS $LIBINTL; do
17618 acl_save_prefix
="$prefix"
17619 prefix
="$acl_final_prefix"
17620 acl_save_exec_prefix
="$exec_prefix"
17621 exec_prefix
="$acl_final_exec_prefix"
17623 exec_prefix
="$acl_save_exec_prefix"
17624 prefix
="$acl_save_prefix"
17626 if test "X$x" = "X-L$found_dir"; then
17631 if test -z "$haveit"; then
17632 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17634 if test "$hardcode_minus_L" != no
; then
17635 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17637 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17643 if test "X$found_a" != "X"; then
17644 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17646 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17649 additional_includedir
=
17650 case "$found_dir" in
17652 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17653 additional_includedir
="$basedir/include"
17656 if test "X$additional_includedir" != "X"; then
17657 if test "X$additional_includedir" != "X/usr/include"; then
17659 if test "X$additional_includedir" = "X/usr/local/include"; then
17660 if test -n "$GCC"; then
17662 linux
*) haveit
=yes;;
17666 if test -z "$haveit"; then
17667 for x
in $CPPFLAGS $INCINTL; do
17669 acl_save_prefix
="$prefix"
17670 prefix
="$acl_final_prefix"
17671 acl_save_exec_prefix
="$exec_prefix"
17672 exec_prefix
="$acl_final_exec_prefix"
17674 exec_prefix
="$acl_save_exec_prefix"
17675 prefix
="$acl_save_prefix"
17677 if test "X$x" = "X-I$additional_includedir"; then
17682 if test -z "$haveit"; then
17683 if test -d "$additional_includedir"; then
17684 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17690 if test -n "$found_la"; then
17691 save_libdir
="$libdir"
17692 case "$found_la" in
17693 */* |
*\\*) .
"$found_la" ;;
17694 *) .
"./$found_la" ;;
17696 libdir
="$save_libdir"
17697 for dep
in $dependency_libs; do
17700 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17701 if test "X$additional_libdir" != "X/usr/lib"; then
17703 if test "X$additional_libdir" = "X/usr/local/lib"; then
17704 if test -n "$GCC"; then
17706 linux
*) haveit
=yes;;
17710 if test -z "$haveit"; then
17712 for x
in $LDFLAGS $LIBINTL; do
17714 acl_save_prefix
="$prefix"
17715 prefix
="$acl_final_prefix"
17716 acl_save_exec_prefix
="$exec_prefix"
17717 exec_prefix
="$acl_final_exec_prefix"
17719 exec_prefix
="$acl_save_exec_prefix"
17720 prefix
="$acl_save_prefix"
17722 if test "X$x" = "X-L$additional_libdir"; then
17727 if test -z "$haveit"; then
17728 if test -d "$additional_libdir"; then
17729 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17733 for x
in $LDFLAGS $LTLIBINTL; do
17735 acl_save_prefix
="$prefix"
17736 prefix
="$acl_final_prefix"
17737 acl_save_exec_prefix
="$exec_prefix"
17738 exec_prefix
="$acl_final_exec_prefix"
17740 exec_prefix
="$acl_save_exec_prefix"
17741 prefix
="$acl_save_prefix"
17743 if test "X$x" = "X-L$additional_libdir"; then
17748 if test -z "$haveit"; then
17749 if test -d "$additional_libdir"; then
17750 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17757 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17758 if test "$enable_rpath" != no
; then
17760 for x
in $rpathdirs; do
17761 if test "X$x" = "X$dir"; then
17766 if test -z "$haveit"; then
17767 rpathdirs
="$rpathdirs $dir"
17770 for x
in $ltrpathdirs; do
17771 if test "X$x" = "X$dir"; then
17776 if test -z "$haveit"; then
17777 ltrpathdirs
="$ltrpathdirs $dir"
17782 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17785 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17788 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17789 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17795 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17796 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17802 if test "X$rpathdirs" != "X"; then
17803 if test -n "$hardcode_libdir_separator"; then
17805 for found_dir
in $rpathdirs; do
17806 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17808 acl_save_libdir
="$libdir"
17810 eval flag
=\"$hardcode_libdir_flag_spec\"
17811 libdir
="$acl_save_libdir"
17812 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17814 for found_dir
in $rpathdirs; do
17815 acl_save_libdir
="$libdir"
17816 libdir
="$found_dir"
17817 eval flag
=\"$hardcode_libdir_flag_spec\"
17818 libdir
="$acl_save_libdir"
17819 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17823 if test "X$ltrpathdirs" != "X"; then
17824 for found_dir
in $ltrpathdirs; do
17825 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17829 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17830 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17831 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 gt_save_CPPFLAGS
="$CPPFLAGS"
17835 CPPFLAGS
="$CPPFLAGS $INCINTL"
17836 gt_save_LIBS
="$LIBS"
17837 LIBS
="$LIBS $LIBINTL"
17838 cat >conftest.
$ac_ext <<_ACEOF
17841 cat confdefs.h
>>conftest.
$ac_ext
17842 cat >>conftest.
$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 #include <libintl.h>
17845 extern int _nl_msg_cat_cntr;
17850 const char *_nl_expand_alias ();
17854 bindtextdomain ("", "");
17855 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17860 rm -f conftest.
$ac_objext conftest
$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1
>conftest.err
17866 cat conftest.err
>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try
='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try
='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 gt_cv_func_gnugettext2_libintl
=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 gt_cv_func_gnugettext2_libintl
=no
17889 rm -f conftest.err conftest.
$ac_objext \
17890 conftest
$ac_exeext conftest.
$ac_ext
17891 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17892 LIBS
="$LIBS $LIBICONV"
17893 cat >conftest.
$ac_ext <<_ACEOF
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 #include <libintl.h>
17900 extern int _nl_msg_cat_cntr;
17905 const char *_nl_expand_alias ();
17909 bindtextdomain ("", "");
17910 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17915 rm -f conftest.
$ac_objext conftest
$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>conftest.er1
17919 grep -v '^ *+' conftest.er1
>conftest.err
17921 cat conftest.err
>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try
='test -z "$ac_c_werror_flag"
17925 || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try
='test -s conftest$ac_exeext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 LIBINTL
="$LIBINTL $LIBICONV"
17938 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17939 gt_cv_func_gnugettext2_libintl
=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.
$ac_ext >&5
17946 rm -f conftest.err conftest.
$ac_objext \
17947 conftest
$ac_exeext conftest.
$ac_ext
17949 CPPFLAGS
="$gt_save_CPPFLAGS"
17950 LIBS
="$gt_save_LIBS"
17952 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17953 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17956 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17957 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17958 && test "$PACKAGE" != gettext; }; then
17959 gt_use_preinstalled_gnugettext
=yes
17967 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17968 nls_cv_use_gnu_gettext
=yes
17972 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17973 INTLOBJS
="\$(GETTOBJS)"
17974 BUILD_INCLUDED_LIBINTL
=yes
17975 USE_INCLUDED_LIBINTL
=yes
17976 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17977 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17978 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17981 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17982 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17987 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17988 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17990 cat >>confdefs.h
<<\_ACEOF
17991 #define ENABLE_NLS 1
17999 if test "$USE_NLS" = "yes"; then
18001 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18002 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18003 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18004 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18005 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18006 echo "${ECHO_T}$LIBINTL" >&6
18008 for element
in $INCINTL; do
18010 for x
in $CPPFLAGS; do
18012 acl_save_prefix
="$prefix"
18013 prefix
="$acl_final_prefix"
18014 acl_save_exec_prefix
="$exec_prefix"
18015 exec_prefix
="$acl_final_exec_prefix"
18017 exec_prefix
="$acl_save_exec_prefix"
18018 prefix
="$acl_save_prefix"
18020 if test "X$x" = "X$element"; then
18025 if test -z "$haveit"; then
18026 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18033 cat >>confdefs.h
<<\_ACEOF
18034 #define HAVE_GETTEXT 1
18038 cat >>confdefs.h
<<\_ACEOF
18039 #define HAVE_DCGETTEXT 1
18048 if test "$PACKAGE" = gettext; then
18049 BUILD_INCLUDED_LIBINTL
=yes
18057 nls_cv_header_intl
=
18058 nls_cv_header_libgt
=
18069 INTL_LIBTOOL_SUFFIX_PREFIX
=
18073 INTLLIBS
="$LIBINTL"
18080 if test $USE_INCLUDED_LIBINTL = yes; then
18081 INCINTL
=-I\
${top_builddir}/intl
18085 if test x
$USE_NLS = xyes
; then
18087 echo "$as_me:$LINENO: checking for autopoint" >&5
18088 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18089 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18090 if test -n "$autopoint_version"; then
18092 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18093 echo "${ECHO_T}yes ($autopoint_version)" >&6
18098 echo "$as_me:$LINENO: result: no" >&5
18099 echo "${ECHO_T}no" >&6
18107 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18108 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
18109 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
18113 if test ${USE_NLS:-no} = yes; then
18115 echo "$as_me:$LINENO: checking for requested languages" >&5
18116 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18117 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18119 if test "$AMULE_DAEMON" = "yes"; then
18121 if test -z "$LINGUAS"; then
18122 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18125 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18126 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18130 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18133 AMULE_DAEMON_MANPAGES
=
18139 if test "$AMULECMD" = "yes"; then
18141 if test -z "$LINGUAS"; then
18142 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18145 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18146 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18150 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18159 if test "$WEB" = "yes"; then
18161 if test -z "$LINGUAS"; then
18162 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18165 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18166 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18170 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18179 if test "$AMULE_GUI" = "yes"; then
18181 if test -z "$LINGUAS"; then
18182 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18185 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18186 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18190 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18193 AMULE_GUI_MANPAGES
=
18199 if test "$CAS" = "yes"; then
18201 if test -z "$LINGUAS"; then
18202 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18205 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18206 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18210 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18219 if test "$WXCAS" = "yes"; then
18221 if test -z "$LINGUAS"; then
18222 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18225 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18226 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18230 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18239 if test "$ED2K" = "yes"; then
18241 if test -z "$LINGUAS"; then
18242 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18245 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18246 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18250 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18259 if test "$ALC" = "yes"; then
18261 if test -z "$LINGUAS"; then
18262 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18265 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18266 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18270 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18279 if test "$ALCC" = "yes"; then
18281 if test -z "$LINGUAS"; then
18282 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18285 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18286 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18290 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18299 if test "$MONOLITHIC" = "yes"; then
18301 if test -z "$LINGUAS"; then
18302 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18305 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18306 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18310 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18313 MONOLITHIC_MANPAGES
=
18318 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18319 echo "${ECHO_T}${LINGUAS:-all}" >&6
18326 # Flush standard test results for speeding cache
18327 cat >confcache
<<\_ACEOF
18328 # This file is a shell script that caches the results of configure
18329 # tests run on this system so they can be shared between configure
18330 # scripts and configure runs, see configure's option --config-cache.
18331 # It is not useful on other systems. If it contains results you don't
18332 # want to keep, you may remove or edit it.
18334 # config.status only pays attention to the cache file if you give it
18335 # the --recheck option to rerun configure.
18337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18339 # following values.
18343 # The following way of writing the cache mishandles newlines in values,
18344 # but we know of no workaround that is simple, portable, and efficient.
18345 # So, don't put newlines in cache variables' values.
18346 # Ultrix sh set writes to stderr and can't be redirected directly,
18347 # and sets the high bit in the cache file unless we assign to the vars.
18350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18352 # `set' does not quote correctly, so add quotes (double-quote
18353 # substitution turns \\\\ into \\, and sed turns \\ into \).
18356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18359 # `set' quotes correctly as required by POSIX, so do not add quotes.
18361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18370 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18372 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18373 if test -w $cache_file; then
18374 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18375 cat confcache
>$cache_file
18377 echo "not updating unwritable cache $cache_file"
18386 # Check whether --enable-debug or --disable-debug was given.
18387 if test "${enable_debug+set}" = set; then
18388 enableval
="$enable_debug"
18389 USE_DEBUG
=${enableval:-yes}
18394 if test $USE_DEBUG = yes; then
18396 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18398 MULECFLAGS
="$MULECFLAGS -g"
18399 MULECXXFLAGS
="$MULECXXFLAGS -g"
18401 if test ${GLIBCXX:-no} = yes; then
18402 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18405 if test ${GCC:-no} = yes; then
18407 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18408 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18412 if test ${SYS:-unknown} = win32
; then
18413 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18419 if test ${GCC:-no} = yes; then
18421 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18422 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18431 # Check whether --enable-optimize or --disable-optimize was given.
18432 if test "${enable_optimize+set}" = set; then
18433 enableval
="$enable_optimize"
18434 USE_OPTIMIZE
=${enableval:-no}
18439 if test $USE_OPTIMIZE = yes; then
18441 MULECFLAGS
="$MULECFLAGS -O2"
18442 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18448 # Check whether --enable-profile or --disable-profile was given.
18449 if test "${enable_profile+set}" = set; then
18450 enableval
="$enable_profile"
18451 USE_PROFILE
=${enableval:-no}
18456 if test $USE_PROFILE = yes; then
18459 MULECFLAGS
="$MULECFLAGS -pg"
18460 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18462 MULELDFLAGS
="$MULELDFLAGS -pg"
18468 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18469 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18470 # Check whether --enable-static or --disable-static was given.
18471 if test "${enable_static+set}" = set; then
18472 enableval
="$enable_static"
18473 if test ${enableval:-no} = yes; then
18474 MULELDFLAGS
="$MULELDFLAGS -static"
18478 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18479 echo "${ECHO_T}${enableval:-no}" >&6
18481 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18484 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18485 echo "$as_me:$LINENO: checking for docdir" >&5
18486 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18487 if test -z "$docdir"; then
18488 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18491 echo "$as_me:$LINENO: result: $docdir" >&5
18492 echo "${ECHO_T}$docdir" >&6
18494 # Try to set the SVN checkout-date
18495 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18496 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18497 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18499 svndate
=`cat $srcdir/SVNDATE`
18500 elif test -d $srcdir/.svn
# SVNDATE for svn
18502 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18504 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18505 echo "${ECHO_T}${svndate:-None required}" >&6
18506 if test -n "$svndate"; then
18509 cat >>confdefs.h
<<_ACEOF
18510 #define SVNDATE "$svndate"
18513 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18521 # Check whether --with-denoise-level or --without-denoise-level was given.
18522 if test "${with_denoise_level+set}" = set; then
18523 withval
="$with_denoise_level"
18527 echo "$as_me:$LINENO: checking denoising level" >&5
18528 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18529 if test ${with_denoise_level:-5} = yes; then
18530 with_denoise_level
=5
18533 if test ${with_denoise_level:-5} = no
; then
18534 with_denoise_level
=0
18537 if test ${with_denoise_level:-5} -gt 4; then
18538 if test "${svndate:+set}" = "set"; then
18539 with_denoise_level
=0
18541 with_denoise_level
=4
18546 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18547 echo "${ECHO_T}$with_denoise_level" >&6
18549 ac_config_commands
="$ac_config_commands denoiser"
18555 if test x
$WEB = xyes
; then
18565 if test x
$ED2K = xyes
; then
18575 if test x
$CAS = xyes
; then
18585 if test x
$WXCAS = xyes
; then
18595 if test x
$ALC = xyes
; then
18605 if test x
$ALCC = xyes
; then
18615 if test x
$AMULE_GUI = xyes
; then
18617 AMULE_GUI_FALSE
='#'
18625 if test x
$AMULE_DAEMON = xyes
; then
18627 AMULE_DAEMON_FALSE
='#'
18629 AMULE_DAEMON_TRUE
='#'
18630 AMULE_DAEMON_FALSE
=
18635 if test x
$AMULECMD = xyes
; then
18637 COMPILE_CMD_FALSE
='#'
18639 COMPILE_CMD_TRUE
='#'
18645 if test x
$MONOLITHIC = xyes
; then
18647 MONOLITHIC_FALSE
='#'
18649 MONOLITHIC_TRUE
='#'
18655 if test x
$XAS = xyes
; then
18665 if test x
$ENABLE_UPNP = xyes
; then
18667 ENABLE_UPNP_FALSE
='#'
18669 ENABLE_UPNP_TRUE
='#'
18675 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18676 ENABLE_IP2COUNTRY_TRUE
=
18677 ENABLE_IP2COUNTRY_FALSE
='#'
18679 ENABLE_IP2COUNTRY_TRUE
='#'
18680 ENABLE_IP2COUNTRY_FALSE
=
18685 if test x
$SYS = xwin32
; then
18687 SYS_WIN32_FALSE
='#'
18695 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18705 if test x
$SYS = xdarwin
; then
18706 NEED_CORESERVICES_TRUE
=
18707 NEED_CORESERVICES_FALSE
='#'
18709 NEED_CORESERVICES_TRUE
='#'
18710 NEED_CORESERVICES_FALSE
=
18715 if test x
$USE_NLS = xyes
; then
18717 COMPILE_NLS_FALSE
='#'
18719 COMPILE_NLS_TRUE
='#'
18725 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18726 GENERATE_FLEX_HEADER_TRUE
=
18727 GENERATE_FLEX_HEADER_FALSE
='#'
18729 GENERATE_FLEX_HEADER_TRUE
='#'
18730 GENERATE_FLEX_HEADER_FALSE
=
18734 # Check for readline library
18735 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18737 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18738 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18739 if test "${vl_cv_lib_readline+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 for readline_lib
in readline edit editline
; do
18745 for termcap_lib
in "" termcap curses ncurses
; do
18746 if test -z "$termcap_lib"; then
18747 TRY_LIB
="-l$readline_lib"
18749 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18751 LIBS
="$ORIG_LIBS $TRY_LIB"
18752 cat >conftest.
$ac_ext <<_ACEOF
18755 cat confdefs.h
>>conftest.
$ac_ext
18756 cat >>conftest.
$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18759 /* Override any gcc2 internal prototype to avoid an error. */
18763 /* We use char because int might match the return type of a gcc2
18764 builtin and then its argument prototype would still apply. */
18774 rm -f conftest.
$ac_objext conftest
$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>conftest.er1
18778 grep -v '^ *+' conftest.er1
>conftest.err
18780 cat conftest.err
>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try
='test -z "$ac_c_werror_flag"
18784 || test ! -s conftest.err'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try
='test -s conftest$ac_exeext'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 vl_cv_lib_readline
="$TRY_LIB"
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.
$ac_ext >&5
18802 rm -f conftest.err conftest.
$ac_objext \
18803 conftest
$ac_exeext conftest.
$ac_ext
18804 if test -n "$vl_cv_lib_readline"; then
18808 if test -n "$vl_cv_lib_readline"; then
18812 if test -z "$vl_cv_lib_readline"; then
18813 vl_cv_lib_readline
="no"
18817 READLINE_LIBS
="$vl_cv_lib_readline"
18821 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18822 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18824 if test "$vl_cv_lib_readline" != "no"; then
18826 cat >>confdefs.h
<<\_ACEOF
18827 #define HAVE_LIBREADLINE 1
18832 for ac_header
in readline.h readline
/readline.h
18834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18836 echo "$as_me:$LINENO: checking for $ac_header" >&5
18837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18844 # Is the header compilable?
18845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18847 cat >conftest.
$ac_ext <<_ACEOF
18850 cat confdefs.h
>>conftest.
$ac_ext
18851 cat >>conftest.
$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 $ac_includes_default
18854 #include <$ac_header>
18856 rm -f conftest.
$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18860 grep -v '^ *+' conftest.er1
>conftest.err
18862 cat conftest.err
>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try
='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try
='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_header_compiler
=yes
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.
$ac_ext >&5
18883 ac_header_compiler
=no
18885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18887 echo "${ECHO_T}$ac_header_compiler" >&6
18889 # Is the header present?
18890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18892 cat >conftest.
$ac_ext <<_ACEOF
18895 cat confdefs.h
>>conftest.
$ac_ext
18896 cat >>conftest.
$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 #include <$ac_header>
18900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18903 grep -v '^ *+' conftest.er1
>conftest.err
18905 cat conftest.err
>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } >/dev
/null
; then
18908 if test -s conftest.err
; then
18909 ac_cpp_err
=$ac_c_preproc_warn_flag
18910 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18917 if test -z "$ac_cpp_err"; then
18918 ac_header_preproc
=yes
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.
$ac_ext >&5
18923 ac_header_preproc
=no
18925 rm -f conftest.err conftest.
$ac_ext
18926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18927 echo "${ECHO_T}$ac_header_preproc" >&6
18929 # So? What about this header?
18930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18936 ac_header_preproc
=yes
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18953 ## ------------------------------ ##
18954 ## Report this to admin@amule.org ##
18955 ## ------------------------------ ##
18958 sed "s/^/$as_me: WARNING: /" >&2
18961 echo "$as_me:$LINENO: checking for $ac_header" >&5
18962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 eval "$as_ac_Header=\$ac_header_preproc"
18968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18973 cat >>confdefs.h
<<_ACEOF
18974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18981 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18982 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18983 if test "${vl_cv_lib_readline_history+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 vl_cv_lib_readline_history
="no"
18988 cat >conftest.
$ac_ext <<_ACEOF
18991 cat confdefs.h
>>conftest.
$ac_ext
18992 cat >>conftest.
$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18995 /* Override any gcc2 internal prototype to avoid an error. */
18999 /* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19001 char add_history ();
19010 rm -f conftest.
$ac_objext conftest
$ac_exeext
19011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>conftest.er1
19014 grep -v '^ *+' conftest.er1
>conftest.err
19016 cat conftest.err
>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try
='test -z "$ac_c_werror_flag"
19020 || test ! -s conftest.err'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try
='test -s conftest$ac_exeext'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 vl_cv_lib_readline_history
="yes"
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.
$ac_ext >&5
19038 rm -f conftest.err conftest.
$ac_objext \
19039 conftest
$ac_exeext conftest.
$ac_ext
19042 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19043 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19044 if test "$vl_cv_lib_readline_history" = "yes"; then
19046 cat >>confdefs.h
<<\_ACEOF
19047 #define HAVE_READLINE_HISTORY 1
19052 for ac_header
in history.h readline
/history.h
19054 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19064 # Is the header compilable?
19065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19067 cat >conftest.
$ac_ext <<_ACEOF
19070 cat confdefs.h
>>conftest.
$ac_ext
19071 cat >>conftest.
$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19074 #include <$ac_header>
19076 rm -f conftest.
$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19080 grep -v '^ *+' conftest.er1
>conftest.err
19082 cat conftest.err
>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try
='test -z "$ac_c_werror_flag"
19086 || test ! -s conftest.err'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try
='test -s conftest.$ac_objext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_header_compiler
=yes
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.
$ac_ext >&5
19103 ac_header_compiler
=no
19105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19107 echo "${ECHO_T}$ac_header_compiler" >&6
19109 # Is the header present?
19110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19112 cat >conftest.
$ac_ext <<_ACEOF
19115 cat confdefs.h
>>conftest.
$ac_ext
19116 cat >>conftest.
$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <$ac_header>
19120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19121 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1
>conftest.err
19125 cat conftest.err
>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } >/dev
/null
; then
19128 if test -s conftest.err
; then
19129 ac_cpp_err
=$ac_c_preproc_warn_flag
19130 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19137 if test -z "$ac_cpp_err"; then
19138 ac_header_preproc
=yes
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.
$ac_ext >&5
19143 ac_header_preproc
=no
19145 rm -f conftest.err conftest.
$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19147 echo "${ECHO_T}$ac_header_preproc" >&6
19149 # So? What about this header?
19150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19156 ac_header_preproc
=yes
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19173 ## ------------------------------ ##
19174 ## Report this to admin@amule.org ##
19175 ## ------------------------------ ##
19178 sed "s/^/$as_me: WARNING: /" >&2
19181 echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 eval "$as_ac_Header=\$ac_header_preproc"
19188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19193 cat >>confdefs.h
<<_ACEOF
19194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19208 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19211 # Check whether --enable-ccache or --disable-ccache was given.
19212 if test "${enable_ccache+set}" = set; then
19213 enableval
="$enable_ccache"
19218 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19219 if test "${with_ccache_prefix+set}" = set; then
19220 withval
="$with_ccache_prefix"
19224 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19225 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19226 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19227 echo "${ECHO_T}${enable_ccache:-no}" >&6
19229 if test ${enable_ccache:-no} = yes; then
19231 echo "$as_me:$LINENO: checking for ccache presence" >&5
19232 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19233 if test -z "$with_ccache_prefix"; then
19235 ccache_full
=`which ccache`
19236 with_ccache_prefix
=`dirname ${ccache_full}`
19240 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19242 echo "$as_me:$LINENO: result: yes" >&5
19243 echo "${ECHO_T}yes" >&6
19244 CC
="$with_ccache_prefix/ccache $CC"
19245 CXX
="$with_ccache_prefix/ccache $CXX"
19246 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19251 echo "$as_me:$LINENO: result: no" >&5
19252 echo "${ECHO_T}no" >&6
19261 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19263 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19265 if test x
$SYS = xwin32
; then
19266 ac_config_files
="$ac_config_files version.rc"
19270 cat >confcache
<<\_ACEOF
19271 # This file is a shell script that caches the results of configure
19272 # tests run on this system so they can be shared between configure
19273 # scripts and configure runs, see configure's option --config-cache.
19274 # It is not useful on other systems. If it contains results you don't
19275 # want to keep, you may remove or edit it.
19277 # config.status only pays attention to the cache file if you give it
19278 # the --recheck option to rerun configure.
19280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19282 # following values.
19286 # The following way of writing the cache mishandles newlines in values,
19287 # but we know of no workaround that is simple, portable, and efficient.
19288 # So, don't put newlines in cache variables' values.
19289 # Ultrix sh set writes to stderr and can't be redirected directly,
19290 # and sets the high bit in the cache file unless we assign to the vars.
19293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19295 # `set' does not quote correctly, so add quotes (double-quote
19296 # substitution turns \\\\ into \\, and sed turns \\ into \).
19299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19302 # `set' quotes correctly as required by POSIX, so do not add quotes.
19304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19313 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19315 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19316 if test -w $cache_file; then
19317 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19318 cat confcache
>$cache_file
19320 echo "not updating unwritable cache $cache_file"
19325 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19326 # Let make expand exec_prefix.
19327 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19331 # trailing colons and then remove the whole line if VPATH becomes empty
19332 # (actually we leave an empty line to preserve line numbers).
19333 if test "x$srcdir" = x.
; then
19334 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19335 s/:*\$(srcdir):*/:/;
19336 s/:*\${srcdir}:*/:/;
19338 s/^\([^=]*=[ ]*\):*/\1/;
19344 DEFS
=-DHAVE_CONFIG_H
19348 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19349 # 1. Remove the extension, and $U if already installed.
19350 ac_i
=`echo "$ac_i" |
19351 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19353 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19354 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19356 LIBOBJS
=$ac_libobjs
19358 LTLIBOBJS
=$ac_ltlibobjs
19361 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19362 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19363 Usually this means the macro was only invoked conditionally." >&5
19364 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19365 Usually this means the macro was only invoked conditionally." >&2;}
19366 { (exit 1); exit 1; }; }
19368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19369 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19370 Usually this means the macro was only invoked conditionally." >&5
19371 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19372 Usually this means the macro was only invoked conditionally." >&2;}
19373 { (exit 1); exit 1; }; }
19375 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19376 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19377 Usually this means the macro was only invoked conditionally." >&5
19378 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19379 Usually this means the macro was only invoked conditionally." >&2;}
19380 { (exit 1); exit 1; }; }
19382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19383 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19384 Usually this means the macro was only invoked conditionally." >&5
19385 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19386 Usually this means the macro was only invoked conditionally." >&2;}
19387 { (exit 1); exit 1; }; }
19389 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"WEB\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"ED2K\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"CAS\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19410 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19411 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19412 Usually this means the macro was only invoked conditionally." >&5
19413 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19414 Usually this means the macro was only invoked conditionally." >&2;}
19415 { (exit 1); exit 1; }; }
19417 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19418 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19419 Usually this means the macro was only invoked conditionally." >&5
19420 echo "$as_me: error: conditional \"ALC\" was never defined.
19421 Usually this means the macro was only invoked conditionally." >&2;}
19422 { (exit 1); exit 1; }; }
19424 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19425 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19426 Usually this means the macro was only invoked conditionally." >&5
19427 echo "$as_me: error: conditional \"ALCC\" was never defined.
19428 Usually this means the macro was only invoked conditionally." >&2;}
19429 { (exit 1); exit 1; }; }
19431 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19432 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436 { (exit 1); exit 1; }; }
19438 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19439 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&5
19441 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19442 Usually this means the macro was only invoked conditionally." >&2;}
19443 { (exit 1); exit 1; }; }
19445 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19446 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19447 Usually this means the macro was only invoked conditionally." >&5
19448 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19449 Usually this means the macro was only invoked conditionally." >&2;}
19450 { (exit 1); exit 1; }; }
19452 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19453 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19454 Usually this means the macro was only invoked conditionally." >&5
19455 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19456 Usually this means the macro was only invoked conditionally." >&2;}
19457 { (exit 1); exit 1; }; }
19459 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19460 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19461 Usually this means the macro was only invoked conditionally." >&5
19462 echo "$as_me: error: conditional \"XAS\" was never defined.
19463 Usually this means the macro was only invoked conditionally." >&2;}
19464 { (exit 1); exit 1; }; }
19466 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19467 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19468 Usually this means the macro was only invoked conditionally." >&5
19469 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19470 Usually this means the macro was only invoked conditionally." >&2;}
19471 { (exit 1); exit 1; }; }
19473 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19474 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19475 Usually this means the macro was only invoked conditionally." >&5
19476 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19477 Usually this means the macro was only invoked conditionally." >&2;}
19478 { (exit 1); exit 1; }; }
19480 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19481 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19482 Usually this means the macro was only invoked conditionally." >&5
19483 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19484 Usually this means the macro was only invoked conditionally." >&2;}
19485 { (exit 1); exit 1; }; }
19487 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19488 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&5
19490 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&2;}
19492 { (exit 1); exit 1; }; }
19494 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19495 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&5
19497 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&2;}
19499 { (exit 1); exit 1; }; }
19501 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19502 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&5
19504 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&2;}
19506 { (exit 1); exit 1; }; }
19508 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19509 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&5
19511 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&2;}
19513 { (exit 1); exit 1; }; }
19516 : ${CONFIG_STATUS=./config.status}
19517 ac_clean_files_save
=$ac_clean_files
19518 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19519 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19520 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19521 cat >$CONFIG_STATUS <<_ACEOF
19523 # Generated by $as_me.
19524 # Run this file to recreate the current configuration.
19525 # Compiler output produced by configure, useful for debugging
19526 # configure, is in config.log if it exists.
19529 ac_cs_recheck=false
19531 SHELL=\${CONFIG_SHELL-$SHELL}
19534 cat >>$CONFIG_STATUS <<\_ACEOF
19535 ## --------------------- ##
19536 ## M4sh Initialization. ##
19537 ## --------------------- ##
19539 # Be Bourne compatible
19540 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19544 # is contrary to our usage. Disable this feature.
19545 alias -g '${1+"$@"}'='"$@"'
19546 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19549 DUALCASE
=1; export DUALCASE
# for MKS sh
19551 # Support unset when possible.
19552 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19559 # Work around bugs in pre-3.0 UWIN ksh.
19560 $as_unset ENV MAIL MAILPATH
19567 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19568 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19569 LC_TELEPHONE LC_TIME
19571 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19572 eval $as_var=C
; export $as_var
19578 # Required to use basename.
19579 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19585 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19586 as_basename
=basename
19592 # Name of the executable.
19593 as_me
=`$as_basename "$0" ||
19594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19595 X"$0" : 'X\(//\)$' \| \
19596 X"$0" : 'X\(/\)$' \| \
19597 . : '\(.\)' 2>/dev/null ||
19599 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19600 /^X\/\(\/\/\)$/{ s//\1/; q; }
19601 /^X\/\(\/\).*/{ s//\1/; q; }
19605 # PATH needs CR, and LINENO needs CR and PATH.
19606 # Avoid depending upon Character Ranges.
19607 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19608 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19609 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19610 as_cr_digits
='0123456789'
19611 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19613 # The user is always right.
19614 if test "${PATH_SEPARATOR+set}" != set; then
19615 echo "#! /bin/sh" >conf$$.sh
19616 echo "exit 0" >>conf$$.sh
19618 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19627 as_lineno_1
=$LINENO
19628 as_lineno_2
=$LINENO
19629 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19630 test "x$as_lineno_1" != "x$as_lineno_2" &&
19631 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19632 # Find who we are. Look in the path if we contain no path at all
19635 *[\\/]* ) as_myself
=$0 ;;
19636 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19637 for as_dir
in $PATH
19640 test -z "$as_dir" && as_dir
=.
19641 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19646 # We did not find ourselves, most probably we were run as `sh COMMAND'
19647 # in which case we are not to be found in the path.
19648 if test "x$as_myself" = x
; then
19651 if test ! -f "$as_myself"; then
19652 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19653 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19654 { (exit 1); exit 1; }; }
19656 case $CONFIG_SHELL in
19658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19659 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19662 test -z "$as_dir" && as_dir
=.
19663 for as_base
in sh bash ksh sh5
; do
19666 if ("$as_dir/$as_base" -c '
19667 as_lineno_1=$LINENO
19668 as_lineno_2=$LINENO
19669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19670 test "x$as_lineno_1" != "x$as_lineno_2" &&
19671 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19672 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19673 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19674 CONFIG_SHELL
=$as_dir/$as_base
19675 export CONFIG_SHELL
19676 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19685 # uniformly replaced by the line number. The first 'sed' inserts a
19686 # line-number line before each line; the second 'sed' does the real
19687 # work. The second script uses 'N' to pair each line-number line
19688 # with the numbered line, and appends trailing '-' during
19689 # substitution so that $LINENO is not a special case at line end.
19690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19691 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19692 sed '=' <$as_myself |
19697 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19700 s,^['$as_cr_digits']*\n,,
19701 ' >$as_me.lineno
&&
19702 chmod +x
$as_me.lineno ||
19703 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19704 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19705 { (exit 1); exit 1; }; }
19707 # Don't try to exec as it changes $[0], causing all sort of problems
19708 # (the dirname of $[0] is not the place where we might find the
19709 # original and so on. Autoconf is especially sensible to this).
19711 # Exit status is that of the last command.
19716 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19717 *c
*,-n*) ECHO_N
= ECHO_C
='
19719 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19720 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19723 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19729 rm -f conf$$ conf$$.exe conf$$.
file
19731 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19732 # We could just check for DJGPP; but this test a) works b) is more generic
19733 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19734 if test -f conf$$.exe
; then
19735 # Don't use ln at all; we don't have any links
19740 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19745 rm -f conf$$ conf$$.exe conf$$.
file
19747 if mkdir
-p .
2>/dev
/null
; then
19750 test -d .
/-p && rmdir .
/-p
19754 as_executable_p
="test -f"
19756 # Sed expression to map a string onto a valid CPP name.
19757 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19759 # Sed expression to map a string onto a valid variable name.
19760 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19764 # We need space, tab and new line, in precisely that order.
19774 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19775 # report actual input values of CONFIG_FILES etc. instead of their
19776 # values after options handling. Logging --version etc. is OK.
19780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19781 ## Running $as_me. ##
19786 This file was extended by aMule $as_me SVN, which was
19787 generated by GNU Autoconf 2.59. Invocation command line was
19789 CONFIG_FILES = $CONFIG_FILES
19790 CONFIG_HEADERS = $CONFIG_HEADERS
19791 CONFIG_LINKS = $CONFIG_LINKS
19792 CONFIG_COMMANDS = $CONFIG_COMMANDS
19796 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19800 # Files that config.status was made for.
19801 if test -n "$ac_config_files"; then
19802 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19805 if test -n "$ac_config_headers"; then
19806 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19809 if test -n "$ac_config_links"; then
19810 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19813 if test -n "$ac_config_commands"; then
19814 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19817 cat >>$CONFIG_STATUS <<\_ACEOF
19820 \`$as_me' instantiates files from templates according to the
19821 current configuration.
19823 Usage: $0 [OPTIONS] [FILE]...
19825 -h, --help print this help, then exit
19826 -V, --version print version number, then exit
19827 -q, --quiet do not print progress messages
19828 -d, --debug don't remove temporary files
19829 --recheck update $as_me by reconfiguring in the same conditions
19830 --file=FILE[:TEMPLATE]
19831 instantiate the configuration file FILE
19832 --header=FILE[:TEMPLATE]
19833 instantiate the configuration header FILE
19835 Configuration files:
19838 Configuration headers:
19841 Configuration commands:
19844 Report bugs to <bug-autoconf@gnu.org>."
19847 cat >>$CONFIG_STATUS <<_ACEOF
19849 aMule config.status SVN
19850 configured by $0, generated by GNU Autoconf 2.59,
19851 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19853 Copyright (C) 2003 Free Software Foundation, Inc.
19854 This config.status script is free software; the Free Software Foundation
19855 gives unlimited permission to copy, distribute and modify it."
19860 cat >>$CONFIG_STATUS <<\_ACEOF
19861 # If no file are specified by the user, then we need to provide default
19862 # value. By we need to know if files were specified by the user.
19868 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19869 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19877 *) # This is not an option, so the user has probably given explicit
19880 ac_need_defaults
=false
;;
19884 # Handling of the options.
19886 cat >>$CONFIG_STATUS <<\_ACEOF
19887 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19889 --version |
--vers* |
-V )
19890 echo "$ac_cs_version"; exit 0 ;;
19892 # Conflict between --help and --header
19893 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19894 Try \`$0 --help' for more information." >&5
19895 echo "$as_me: error: ambiguous option: $1
19896 Try \`$0 --help' for more information." >&2;}
19897 { (exit 1); exit 1; }; };;
19898 --help |
--hel |
-h )
19899 echo "$ac_cs_usage"; exit 0 ;;
19900 --debug |
--d* |
-d )
19902 --file |
--fil |
--fi |
--f )
19904 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19905 ac_need_defaults
=false
;;
19906 --header |
--heade |
--head |
--hea )
19908 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19909 ac_need_defaults
=false
;;
19910 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19911 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19914 # This is an error.
19915 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19916 Try \`$0 --help' for more information." >&5
19917 echo "$as_me: error: unrecognized option: $1
19918 Try \`$0 --help' for more information." >&2;}
19919 { (exit 1); exit 1; }; } ;;
19921 *) ac_config_targets
="$ac_config_targets $1" ;;
19927 ac_configure_extra_args
=
19929 if $ac_cs_silent; then
19931 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19935 cat >>$CONFIG_STATUS <<_ACEOF
19936 if \$ac_cs_recheck; then
19937 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19938 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19943 cat >>$CONFIG_STATUS <<_ACEOF
19945 # INIT-COMMANDS section.
19948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19949 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19950 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19952 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19953 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19954 LINGUAS="${LINGUAS-%UNSET%}"
19956 denoiserlevel=$with_denoise_level
19962 cat >>$CONFIG_STATUS <<\_ACEOF
19963 for ac_config_target
in $ac_config_targets
19965 case "$ac_config_target" in
19966 # Handling of arguments.
19967 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19968 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19969 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19970 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19971 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19972 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19973 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19974 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19975 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19976 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19977 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19978 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19979 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19980 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19981 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19982 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19983 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19984 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19985 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19986 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19987 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19988 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19989 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19990 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19991 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
19992 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
19993 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
19994 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
19995 "src/webserver/php-default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19996 "src/webserver/chicane/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19997 "src/webserver/litoral/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19998 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
19999 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20000 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20001 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20002 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20003 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20004 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20005 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20006 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20007 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20009 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20010 { (exit 1); exit 1; }; };;
20014 # If the user did not use the arguments to specify the items to instantiate,
20015 # then the envvar interface is used. Set only those that are not.
20016 # We use the long form for the default assignment because of an extremely
20017 # bizarre bug on SunOS 4.1.3.
20018 if $ac_need_defaults; then
20019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20024 # Have a temporary directory for convenience. Make it in the build tree
20025 # simply because there is no reason to put it here, and in addition,
20026 # creating and moving files from /tmp can sometimes cause problems.
20027 # Create a temporary directory, and hook for its removal unless debugging.
20030 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20031 trap '{ (exit 1); exit 1; }' 1 2 13 15
20034 # Create a (secure) tmp directory for tmp files.
20037 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20038 test -n "$tmp" && test -d "$tmp"
20041 tmp
=.
/confstat$$
-$RANDOM
20042 (umask 077 && mkdir
$tmp)
20045 echo "$me: cannot create a temporary directory in ." >&2
20046 { (exit 1); exit 1; }
20051 cat >>$CONFIG_STATUS <<_ACEOF
20054 # CONFIG_FILES section.
20057 # No need to generate the scripts if there are no CONFIG_FILES.
20058 # This happens for instance when ./config.status config.h
20059 if test -n "\$CONFIG_FILES"; then
20060 # Protect against being on the right side of a sed subst in config.status.
20061 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20062 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20063 s,@SHELL@,$SHELL,;t t
20064 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20065 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20066 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20067 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20068 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20069 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20070 s,@exec_prefix@,$exec_prefix,;t t
20071 s,@prefix@,$prefix,;t t
20072 s,@program_transform_name@,$program_transform_name,;t t
20073 s,@bindir@,$bindir,;t t
20074 s,@sbindir@,$sbindir,;t t
20075 s,@libexecdir@,$libexecdir,;t t
20076 s,@datadir@,$datadir,;t t
20077 s,@sysconfdir@,$sysconfdir,;t t
20078 s,@sharedstatedir@,$sharedstatedir,;t t
20079 s,@localstatedir@,$localstatedir,;t t
20080 s,@libdir@,$libdir,;t t
20081 s,@includedir@,$includedir,;t t
20082 s,@oldincludedir@,$oldincludedir,;t t
20083 s,@infodir@,$infodir,;t t
20084 s,@mandir@,$mandir,;t t
20085 s,@build_alias@,$build_alias,;t t
20086 s,@host_alias@,$host_alias,;t t
20087 s,@target_alias@,$target_alias,;t t
20088 s,@DEFS@,$DEFS,;t t
20089 s,@ECHO_C@,$ECHO_C,;t t
20090 s,@ECHO_N@,$ECHO_N,;t t
20091 s,@ECHO_T@,$ECHO_T,;t t
20092 s,@LIBS@,$LIBS,;t t
20093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20096 s,@CYGPATH_W@,$CYGPATH_W,;t t
20097 s,@PACKAGE@,$PACKAGE,;t t
20098 s,@VERSION@,$VERSION,;t t
20099 s,@ACLOCAL@,$ACLOCAL,;t t
20100 s,@AUTOCONF@,$AUTOCONF,;t t
20101 s,@AUTOMAKE@,$AUTOMAKE,;t t
20102 s,@AUTOHEADER@,$AUTOHEADER,;t t
20103 s,@MAKEINFO@,$MAKEINFO,;t t
20104 s,@install_sh@,$install_sh,;t t
20105 s,@STRIP@,$STRIP,;t t
20106 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20107 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20108 s,@mkdir_p@,$mkdir_p,;t t
20110 s,@SET_MAKE@,$SET_MAKE,;t t
20111 s,@am__leading_dot@,$am__leading_dot,;t t
20112 s,@AMTAR@,$AMTAR,;t t
20113 s,@am__tar@,$am__tar,;t t
20114 s,@am__untar@,$am__untar,;t t
20115 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20116 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20117 s,@MAINT@,$MAINT,;t t
20118 s,@build@,$build,;t t
20119 s,@build_cpu@,$build_cpu,;t t
20120 s,@build_vendor@,$build_vendor,;t t
20121 s,@build_os@,$build_os,;t t
20122 s,@host@,$host,;t t
20123 s,@host_cpu@,$host_cpu,;t t
20124 s,@host_vendor@,$host_vendor,;t t
20125 s,@host_os@,$host_os,;t t
20126 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20127 s,@X11LIBS@,$X11LIBS,;t t
20128 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20129 s,@MULECFLAGS@,$MULECFLAGS,;t t
20130 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20131 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20132 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20134 s,@CXXFLAGS@,$CXXFLAGS,;t t
20135 s,@LDFLAGS@,$LDFLAGS,;t t
20136 s,@CPPFLAGS@,$CPPFLAGS,;t t
20137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20138 s,@EXEEXT@,$EXEEXT,;t t
20139 s,@OBJEXT@,$OBJEXT,;t t
20140 s,@DEPDIR@,$DEPDIR,;t t
20141 s,@am__include@,$am__include,;t t
20142 s,@am__quote@,$am__quote,;t t
20143 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20144 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20145 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20146 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20147 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20148 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20149 s,@CXXCPP@,$CXXCPP,;t t
20151 s,@CFLAGS@,$CFLAGS,;t t
20152 s,@ac_ct_CC@,$ac_ct_CC,;t t
20153 s,@CCDEPMODE@,$CCDEPMODE,;t t
20154 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20155 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20157 s,@BUILD_CC@,$BUILD_CC,;t t
20158 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20159 s,@EXEEXT@,$EXEEXT,;t t
20160 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20161 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20162 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20163 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20164 s,@EGREP@,$EGREP,;t t
20166 s,@LEXLIB@,$LEXLIB,;t t
20167 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20168 s,@RANLIB@,$RANLIB,;t t
20169 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20170 s,@YACC@,$YACC,;t t
20172 s,@ac_ct_AR@,$ac_ct_AR,;t t
20174 s,@ac_ct_LD@,$ac_ct_LD,;t t
20175 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20176 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20177 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20178 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20179 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20180 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20181 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20182 s,@CAS_DEFS@,$CAS_DEFS,;t t
20183 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20184 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20185 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20186 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20187 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20188 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20189 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20190 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20191 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20192 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20193 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20194 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20195 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20196 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20197 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20198 s,@WX_LIBS@,$WX_LIBS,;t t
20199 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20200 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20201 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20202 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20203 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20204 s,@WX_UNICODE@,$WX_UNICODE,;t t
20205 s,@WX_DEBUG@,$WX_DEBUG,;t t
20206 s,@WX_SHARED@,$WX_SHARED,;t t
20207 s,@WX_PORT@,$WX_PORT,;t t
20208 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20209 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20211 s,@RCFLAGS@,$RCFLAGS,;t t
20212 s,@ac_ct_RC@,$ac_ct_RC,;t t
20213 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20214 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20215 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20216 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20217 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20218 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20219 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20220 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20221 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20222 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20223 s,@BFD_LIBS@,$BFD_LIBS,;t t
20224 s,@ALLOCA@,$ALLOCA,;t t
20225 s,@LIBOBJS@,$LIBOBJS,;t t
20226 s,@POW_LIB@,$POW_LIB,;t t
20227 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20228 s,@MSGFMT@,$MSGFMT,;t t
20229 s,@GMSGFMT@,$GMSGFMT,;t t
20230 s,@XGETTEXT@,$XGETTEXT,;t t
20231 s,@MSGMERGE@,$MSGMERGE,;t t
20232 s,@GLIBC21@,$GLIBC21,;t t
20233 s,@LIBICONV@,$LIBICONV,;t t
20234 s,@LTLIBICONV@,$LTLIBICONV,;t t
20235 s,@INTLBISON@,$INTLBISON,;t t
20236 s,@USE_NLS@,$USE_NLS,;t t
20237 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20238 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20239 s,@CATOBJEXT@,$CATOBJEXT,;t t
20240 s,@INTLOBJS@,$INTLOBJS,;t t
20241 s,@DATADIRNAME@,$DATADIRNAME,;t t
20242 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20243 s,@GENCAT@,$GENCAT,;t t
20244 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20245 s,@INTLLIBS@,$INTLLIBS,;t t
20246 s,@LIBINTL@,$LIBINTL,;t t
20247 s,@LTLIBINTL@,$LTLIBINTL,;t t
20248 s,@POSUB@,$POSUB,;t t
20249 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20250 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20251 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20252 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20253 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20254 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20255 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20256 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20257 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20258 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20259 s,@INCINTL@,$INCINTL,;t t
20260 s,@docdir@,$docdir,;t t
20261 s,@SVNDATE@,$SVNDATE,;t t
20262 s,@WEB_TRUE@,$WEB_TRUE,;t t
20263 s,@WEB_FALSE@,$WEB_FALSE,;t t
20264 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20265 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20266 s,@CAS_TRUE@,$CAS_TRUE,;t t
20267 s,@CAS_FALSE@,$CAS_FALSE,;t t
20268 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20269 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20270 s,@ALC_TRUE@,$ALC_TRUE,;t t
20271 s,@ALC_FALSE@,$ALC_FALSE,;t t
20272 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20273 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20274 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20275 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20276 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20277 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20278 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20279 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20280 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20281 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20282 s,@XAS_TRUE@,$XAS_TRUE,;t t
20283 s,@XAS_FALSE@,$XAS_FALSE,;t t
20284 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20285 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20286 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20287 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20288 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20289 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20290 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20291 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20292 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20293 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20294 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20295 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20296 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20297 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20298 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20304 cat >>$CONFIG_STATUS <<\_ACEOF
20305 # Split the substitutions into bite-sized pieces for seds with
20306 # small command number limits, like on Digital OSF/1 and HP-UX.
20307 ac_max_sed_lines
=48
20308 ac_sed_frag
=1 # Number of current file.
20309 ac_beg
=1 # First line for current file.
20310 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20313 while $ac_more_lines; do
20314 if test $ac_beg -gt 1; then
20315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20317 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20319 if test ! -s $tmp/subs.frag
; then
20320 ac_more_lines
=false
20322 # The purpose of the label and of the branching condition is to
20323 # speed up the sed processing (if there are no `@' at all, there
20324 # is no need to browse any of the substitutions).
20325 # These are the two extra sed commands mentioned above.
20327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20328 if test -z "$ac_sed_cmds"; then
20329 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20331 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20333 ac_sed_frag
=`expr $ac_sed_frag + 1`
20335 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20338 if test -z "$ac_sed_cmds"; then
20341 fi # test -n "$CONFIG_FILES"
20344 cat >>$CONFIG_STATUS <<\_ACEOF
20345 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20348 - |
*:- |
*:-:* ) # input from stdin
20350 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20351 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20352 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20353 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20354 * ) ac_file_in
=$ac_file.
in ;;
20357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20358 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20360 X"$ac_file" : 'X\(//\)[^/]' \| \
20361 X"$ac_file" : 'X\(//\)$' \| \
20362 X"$ac_file" : 'X\(/\)' \| \
20363 . : '\(.\)' 2>/dev/null ||
20365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20367 /^X\(\/\/\)$/{ s//\1/; q; }
20368 /^X\(\/\).*/{ s//\1/; q; }
20370 { if $as_mkdir_p; then
20375 while test ! -d "$as_dir"; do
20376 as_dirs
="$as_dir $as_dirs"
20377 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20379 X"$as_dir" : 'X\(//\)[^/]' \| \
20380 X"$as_dir" : 'X\(//\)$' \| \
20381 X"$as_dir" : 'X\(/\)' \| \
20382 . : '\(.\)' 2>/dev/null ||
20384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20386 /^X\(\/\/\)$/{ s//\1/; q; }
20387 /^X\(\/\).*/{ s//\1/; q; }
20390 test ! -n "$as_dirs" || mkdir
$as_dirs
20391 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20393 { (exit 1); exit 1; }; }; }
20397 if test "$ac_dir" != .
; then
20398 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20399 # A "../" for each directory in $ac_dir_suffix.
20400 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20402 ac_dir_suffix
= ac_top_builddir
=
20406 .
) # No --srcdir option. We are building in place.
20408 if test -z "$ac_top_builddir"; then
20411 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20413 [\\/]* | ?
:[\\/]* ) # Absolute path.
20414 ac_srcdir
=$srcdir$ac_dir_suffix;
20415 ac_top_srcdir
=$srcdir ;;
20416 *) # Relative path.
20417 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20418 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20421 # Do not use `cd foo && pwd` to compute absolute paths, because
20422 # the directories may not exist.
20424 .
) ac_abs_builddir
="$ac_dir";;
20427 .
) ac_abs_builddir
=`pwd`;;
20428 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20429 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20432 case $ac_abs_builddir in
20433 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20435 case ${ac_top_builddir}.
in
20436 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20437 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20438 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20441 case $ac_abs_builddir in
20442 .
) ac_abs_srcdir
=$ac_srcdir;;
20445 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20446 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20447 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20450 case $ac_abs_builddir in
20451 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20453 case $ac_top_srcdir in
20454 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20455 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20456 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20462 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20463 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20466 if test x
"$ac_file" != x-
; then
20467 { echo "$as_me:$LINENO: creating $ac_file" >&5
20468 echo "$as_me: creating $ac_file" >&6;}
20471 # Let's still pretend it is `configure' which instantiates (i.e., don't
20472 # use $as_me), people would be surprised to read:
20473 # /* config.h. Generated by config.status. */
20474 if test x
"$ac_file" = x-
; then
20477 configure_input
="$ac_file. "
20479 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20480 sed 's,.*/,,'` by configure."
20482 # First look for the input files in the build tree, otherwise in the
20484 ac_file_inputs
=`IFS=:
20485 for f in $ac_file_in; do
20487 -) echo $tmp/stdin ;;
20489 # Absolute (can't be DOS-style, as IFS=:)
20490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20491 echo "$as_me: error: cannot find input file: $f" >&2;}
20492 { (exit 1); exit 1; }; }
20495 if test -f "$f"; then
20498 elif test -f "$srcdir/$f"; then
20503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20504 echo "$as_me: error: cannot find input file: $f" >&2;}
20505 { (exit 1); exit 1; }; }
20508 done` ||
{ (exit 1); exit 1; }
20510 cat >>$CONFIG_STATUS <<_ACEOF
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20516 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20517 s
,@configure_input@
,$configure_input,;t t
20518 s
,@srcdir@
,$ac_srcdir,;t t
20519 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20520 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20521 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20522 s
,@builddir@
,$ac_builddir,;t t
20523 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20524 s
,@top_builddir@
,$ac_top_builddir,;t t
20525 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20526 s
,@INSTALL@
,$ac_INSTALL,;t t
20527 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20529 if test x"$ac_file" != x-; then
20530 mv $tmp/out $ac_file
20538 cat >>$CONFIG_STATUS <<\_ACEOF
20541 # CONFIG_HEADER section.
20544 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20545 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20547 # ac_d sets the value in "#define NAME VALUE" lines.
20548 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20549 ac_dB
='[ ].*$,\1#\2'
20552 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20553 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20554 ac_uB
='$,\1#\2define\3'
20558 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20561 - |
*:- |
*:-:* ) # input from stdin
20563 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20564 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20565 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20566 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20567 * ) ac_file_in
=$ac_file.
in ;;
20570 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20571 echo "$as_me: creating $ac_file" >&6;}
20573 # First look for the input files in the build tree, otherwise in the
20575 ac_file_inputs
=`IFS=:
20576 for f in $ac_file_in; do
20578 -) echo $tmp/stdin ;;
20580 # Absolute (can't be DOS-style, as IFS=:)
20581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20582 echo "$as_me: error: cannot find input file: $f" >&2;}
20583 { (exit 1); exit 1; }; }
20584 # Do quote $f, to prevent DOS paths from being IFS'd.
20587 if test -f "$f"; then
20590 elif test -f "$srcdir/$f"; then
20595 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20596 echo "$as_me: error: cannot find input file: $f" >&2;}
20597 { (exit 1); exit 1; }; }
20600 done` ||
{ (exit 1); exit 1; }
20601 # Remove the trailing spaces.
20602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20606 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20607 # `conftest.undefs', that substitutes the proper values into
20608 # config.h.in to produce config.h. The first handles `#define'
20609 # templates, and the second `#undef' templates.
20610 # And first: Protect against being on the right side of a sed subst in
20611 # config.status. Protect against being in an unquoted here document
20612 # in config.status.
20613 rm -f conftest.defines conftest.undefs
20614 # Using a here document instead of a string reduces the quoting nightmare.
20615 # Putting comments in sed scripts is not portable.
20617 # `end' is used to avoid that the second main sed command (meant for
20618 # 0-ary CPP macros) applies to n-ary macro definitions.
20619 # See the Autoconf documentation for `clear'.
20620 cat >confdef2sed.
sed <<\_ACEOF
20625 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20627 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20630 # If some macros were called several times there might be several times
20631 # the same #defines, which is useless. Nevertheless, we may not want to
20632 # sort them, since we want the *last* AC-DEFINE to be honored.
20633 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20634 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20635 rm -f confdef2sed.sed
20637 # This sed command replaces #undef with comments. This is necessary, for
20638 # example, in the case of _POSIX_SOURCE, which is predefined and required
20639 # on some systems where configure will not decide to define it.
20640 cat >>conftest.undefs <<\_ACEOF
20641 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20644 # Break up conftest.defines because some shells have a limit on the size
20645 # of here documents, and old seds have small limits too (100 cmds).
20646 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20647 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20648 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20649 echo ' :' >>$CONFIG_STATUS
20650 rm -f conftest.tail
20651 while grep . conftest.defines >/dev/null
20653 # Write a limited-size here document to $tmp/defines.sed.
20654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20655 # Speed up: don't consider the non `#define' lines.
20656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20657 # Work around the forget-to-reset-the-flag bug.
20658 echo 't clr' >>$CONFIG_STATUS
20659 echo ': clr' >>$CONFIG_STATUS
20660 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20662 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20664 mv $tmp/out $tmp/in
20666 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20667 rm -f conftest.defines
20668 mv conftest.
tail conftest.defines
20670 rm -f conftest.defines
20671 echo ' fi # grep' >>$CONFIG_STATUS
20672 echo >>$CONFIG_STATUS
20674 # Break up conftest.undefs because some shells have a limit on the size
20675 # of here documents, and old seds have small limits too (100 cmds).
20676 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20677 rm -f conftest.
tail
20678 while grep . conftest.undefs
>/dev
/null
20680 # Write a limited-size here document to $tmp/undefs.sed.
20681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20682 # Speed up: don't consider the non
`#undef'
20683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20684 # Work around the forget-to-reset-the-flag bug.
20685 echo 't clr' >>$CONFIG_STATUS
20686 echo ': clr' >>$CONFIG_STATUS
20687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20691 mv $tmp/out $tmp/in
20693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20694 rm -f conftest.undefs
20695 mv conftest.tail conftest.undefs
20697 rm -f conftest.undefs
20699 cat >>$CONFIG_STATUS <<\_ACEOF
20700 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20701 # use $as_me), people would be surprised to read:
20702 # /* config.h. Generated by config.status. */
20703 if test x
"$ac_file" = x-
; then
20704 echo "/* Generated by configure. */" >$tmp/config.h
20706 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20708 cat $tmp/in >>$tmp/config.h
20710 if test x
"$ac_file" != x-
; then
20711 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20712 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20713 echo "$as_me: $ac_file is unchanged" >&6;}
20715 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20717 X"$ac_file" : 'X\(//\)[^/]' \| \
20718 X"$ac_file" : 'X\(//\)$' \| \
20719 X"$ac_file" : 'X\(/\)' \| \
20720 . : '\(.\)' 2>/dev/null ||
20722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20724 /^X\(\/\/\)$/{ s//\1/; q; }
20725 /^X\(\/\).*/{ s//\1/; q; }
20727 { if $as_mkdir_p; then
20732 while test ! -d "$as_dir"; do
20733 as_dirs
="$as_dir $as_dirs"
20734 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20736 X"$as_dir" : 'X\(//\)[^/]' \| \
20737 X"$as_dir" : 'X\(//\)$' \| \
20738 X"$as_dir" : 'X\(/\)' \| \
20739 . : '\(.\)' 2>/dev/null ||
20741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20743 /^X\(\/\/\)$/{ s//\1/; q; }
20744 /^X\(\/\).*/{ s//\1/; q; }
20747 test ! -n "$as_dirs" || mkdir
$as_dirs
20748 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20750 { (exit 1); exit 1; }; }; }
20753 mv $tmp/config.h
$ac_file
20757 rm -f $tmp/config.h
20759 # Compute $ac_file's index in $config_headers.
20761 for _am_header
in $config_headers :; do
20762 case $_am_header in
20763 $ac_file |
$ac_file:* )
20766 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20769 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20770 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 X$ac_file : 'X\(//\)[^/]' \| \
20772 X$ac_file : 'X\(//\)$' \| \
20773 X$ac_file : 'X\(/\)' \| \
20774 . : '\(.\)' 2>/dev/null ||
20776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20778 /^X\(\/\/\)$/{ s//\1/; q; }
20779 /^X\(\/\).*/{ s//\1/; q; }
20780 s/.*/./; q'`/stamp-h
$_am_stamp_count
20783 cat >>$CONFIG_STATUS <<\_ACEOF
20786 # CONFIG_COMMANDS section.
20788 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20789 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20790 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20791 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20792 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20793 X"$ac_dest" : 'X\(//\)[^/]' \| \
20794 X"$ac_dest" : 'X\(//\)$' \| \
20795 X"$ac_dest" : 'X\(/\)' \| \
20796 . : '\(.\)' 2>/dev/null ||
20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20800 /^X\(\/\/\)$/{ s//\1/; q; }
20801 /^X\(\/\).*/{ s//\1/; q; }
20803 { if $as_mkdir_p; then
20808 while test ! -d "$as_dir"; do
20809 as_dirs
="$as_dir $as_dirs"
20810 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20812 X"$as_dir" : 'X\(//\)[^/]' \| \
20813 X"$as_dir" : 'X\(//\)$' \| \
20814 X"$as_dir" : 'X\(/\)' \| \
20815 . : '\(.\)' 2>/dev/null ||
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20819 /^X\(\/\/\)$/{ s//\1/; q; }
20820 /^X\(\/\).*/{ s//\1/; q; }
20823 test ! -n "$as_dirs" || mkdir
$as_dirs
20824 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20826 { (exit 1); exit 1; }; }; }
20830 if test "$ac_dir" != .
; then
20831 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20832 # A "../" for each directory in $ac_dir_suffix.
20833 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20835 ac_dir_suffix
= ac_top_builddir
=
20839 .
) # No --srcdir option. We are building in place.
20841 if test -z "$ac_top_builddir"; then
20844 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20846 [\\/]* | ?
:[\\/]* ) # Absolute path.
20847 ac_srcdir
=$srcdir$ac_dir_suffix;
20848 ac_top_srcdir
=$srcdir ;;
20849 *) # Relative path.
20850 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20851 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20854 # Do not use `cd foo && pwd` to compute absolute paths, because
20855 # the directories may not exist.
20857 .
) ac_abs_builddir
="$ac_dir";;
20860 .
) ac_abs_builddir
=`pwd`;;
20861 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20862 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20865 case $ac_abs_builddir in
20866 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20868 case ${ac_top_builddir}.
in
20869 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20870 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20871 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20874 case $ac_abs_builddir in
20875 .
) ac_abs_srcdir
=$ac_srcdir;;
20878 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20879 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20880 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20883 case $ac_abs_builddir in
20884 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20886 case $ac_top_srcdir in
20887 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20888 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20889 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20894 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20895 echo "$as_me: executing $ac_dest commands" >&6;}
20897 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20898 # Strip MF so we end up with the name of the file.
20899 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20900 # Check whether this is an Automake generated Makefile or not.
20901 # We used to match only the files named `Makefile.in', but
20902 # some people rename them; so instead we look at the file content.
20903 # Grep'ing the first line is not enough: some people post-process
20904 # each Makefile.in and add a new line on top of each file to say so.
20905 # So let's grep whole file.
20906 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20907 dirpart
=`(dirname "$mf") 2>/dev/null ||
20908 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909 X"$mf" : 'X\(//\)[^/]' \| \
20910 X"$mf" : 'X\(//\)$' \| \
20911 X"$mf" : 'X\(/\)' \| \
20912 . : '\(.\)' 2>/dev/null ||
20914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916 /^X\(\/\/\)$/{ s//\1/; q; }
20917 /^X\(\/\).*/{ s//\1/; q; }
20922 # Extract the definition of DEPDIR, am__include, and am__quote
20923 # from the Makefile without running `make'.
20924 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20925 test -z "$DEPDIR" && continue
20926 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20927 test -z "am__include" && continue
20928 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20929 # When using ansi2knr, U may be empty or an underscore; expand it
20930 U
=`sed -n 's/^U = //p' < "$mf"`
20931 # Find all dependency output files, they are included files with
20932 # $(DEPDIR) in their names. We invoke sed twice because it is the
20933 # simplest approach to changing $(DEPDIR) to its actual value in the
20935 for file in `sed -n "
20936 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20937 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20938 # Make sure the directory exists.
20939 test -f "$dirpart/$file" && continue
20940 fdir
=`(dirname "$file") 2>/dev/null ||
20941 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942 X"$file" : 'X\(//\)[^/]' \| \
20943 X"$file" : 'X\(//\)$' \| \
20944 X"$file" : 'X\(/\)' \| \
20945 . : '\(.\)' 2>/dev/null ||
20947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20949 /^X\(\/\/\)$/{ s//\1/; q; }
20950 /^X\(\/\).*/{ s//\1/; q; }
20952 { if $as_mkdir_p; then
20953 mkdir
-p $dirpart/$fdir
20955 as_dir
=$dirpart/$fdir
20957 while test ! -d "$as_dir"; do
20958 as_dirs
="$as_dir $as_dirs"
20959 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$as_dir" : 'X\(//\)[^/]' \| \
20962 X"$as_dir" : 'X\(//\)$' \| \
20963 X"$as_dir" : 'X\(/\)' \| \
20964 . : '\(.\)' 2>/dev/null ||
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20968 /^X\(\/\/\)$/{ s//\1/; q; }
20969 /^X\(\/\).*/{ s//\1/; q; }
20972 test ! -n "$as_dirs" || mkdir
$as_dirs
20973 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20974 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20975 { (exit 1); exit 1; }; }; }
20977 # echo "creating $dirpart/$file"
20978 echo '# dummy' > "$dirpart/$file"
20983 for ac_file
in $CONFIG_FILES; do
20984 # Support "outfile[:infile[:infile...]]"
20986 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20988 # PO directories have a Makefile.in generated from Makefile.in.in.
20989 case "$ac_file" in */Makefile.
in)
20990 # Adjust a relative srcdir.
20991 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20992 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
20993 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20994 # In autoconf-2.13 it is called $ac_given_srcdir.
20995 # In autoconf-2.50 it is called $srcdir.
20996 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20997 case "$ac_given_srcdir" in
20998 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20999 /*) top_srcdir
="$ac_given_srcdir" ;;
21000 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21002 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21003 rm -f "$ac_dir/POTFILES"
21004 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21005 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21006 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21007 # on $ac_dir but don't depend on user-specified configuration
21009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21010 # The LINGUAS file contains the set of available languages.
21011 if test -n "$ALL_LINGUAS"; then
21012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21014 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21015 # Hide the ALL_LINGUAS assigment from automake.
21016 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21018 case "$ac_given_srcdir" in
21020 *) srcdirpre
='$(srcdir)/' ;;
21026 for lang
in $ALL_LINGUAS; do
21027 POFILES
="$POFILES $srcdirpre$lang.po"
21028 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21029 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21030 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21032 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21033 # environment variable.
21035 if test -n "$ALL_LINGUAS"; then
21036 for presentlang
in $ALL_LINGUAS; do
21038 if test "%UNSET%" != "$LINGUAS"; then
21039 desiredlanguages
="$LINGUAS"
21041 desiredlanguages
="$ALL_LINGUAS"
21043 for desiredlang
in $desiredlanguages; do
21044 # Use the presentlang catalog if desiredlang is
21045 # a. equal to presentlang, or
21046 # b. a variant of presentlang (because in this case,
21047 # presentlang can be used as a fallback for messages
21048 # which are not translated in the desiredlang catalog).
21049 case "$desiredlang" in
21050 "$presentlang"*) useit
=yes;;
21053 if test $useit = yes; then
21054 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21059 if test -n "$INST_LINGUAS"; then
21060 for lang
in $INST_LINGUAS; do
21061 CATALOGS
="$CATALOGS $lang.gmo"
21064 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21065 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"
21066 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21067 if test -f "$f"; then
21069 *.orig |
*.bak |
*~
) ;;
21070 *) cat "$f" >> "$ac_dir/Makefile" ;;
21078 denoiser
) if test $denoiserlevel -gt 0; then
21079 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21080 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" \
21081 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21082 for i
in `find . -name 'Makefile' -print`; do
21083 if test -n "`head -n 1 $i | grep '^#'`"; then
21084 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21092 cat >>$CONFIG_STATUS <<\_ACEOF
21094 { (exit 0); exit 0; }
21096 chmod +x
$CONFIG_STATUS
21097 ac_clean_files
=$ac_clean_files_save
21100 # configure is writing to config.log, and then calls config.status.
21101 # config.status does its own redirection, appending to config.log.
21102 # Unfortunately, on DOS this fails, as config.log is still kept open
21103 # by configure, so config.status won't be able to write to it; its
21104 # output is simply discarded. So we exec the FD to /dev/null,
21105 # effectively closing config.log, so it can be properly (re)opened and
21106 # appended to by config.status. When coming back to configure, we
21107 # need to make the FD available again.
21108 if test "$no_create" != yes; then
21110 ac_config_status_args
=
21111 test "$silent" = yes &&
21112 ac_config_status_args
="$ac_config_status_args --quiet"
21114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21117 # would make configure fail if this is the last instruction.
21118 $ac_cs_success ||
{ (exit 1); exit 1; }
21124 echo " Configure script has finished system check."
21126 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21128 echo " aMule enabled options:"
21130 echo " **** aMule Core ****"
21131 echo " Prefix where aMule should be installed? ${prefix:-none}"
21132 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21133 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21134 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21135 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21136 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21137 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21138 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21139 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21140 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21141 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21144 echo " **** aMule TextClient ****"
21145 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21147 echo " **** aMule WebServer ****"
21148 echo " Should aMule WebServer be built? ${WEB:-no}"
21150 echo " **** aMule ED2K Links Handler ****"
21151 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21153 echo " **** aMuleLinkCreator ****"
21154 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21155 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21157 echo " **** aMule Statistics ****"
21158 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21159 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21160 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21163 echo " **** General Libraries and Tools ****"
21164 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21165 echo " Libraries aMule will use to build:"
21167 if test $WX_DEBUG -eq 1; then
21168 wxinfo
="$wxinfo,debug"
21171 if test $WX_SHARED -eq 1; then
21172 wxinfo
="$wxinfo,shared"
21174 wxinfo
="$wxinfo,static"
21177 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21178 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21179 if test -n "$with_libupnp_prefix"; then
21180 libupnp_place
=" (in $with_libupnp_prefix)"
21183 if test x
${ENABLE_UPNP} = xyes
; then
21184 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21187 if test x
${WEB:-no} != xno
; then
21188 if test $regex_found = no
; then
21189 regex_found
="Not detected"
21191 if test -z "$REGEX_LIB"; then
21194 regex_found
="standalone (in $REGEX_LIB)"
21199 echo " regex $regex_found"
21201 if test ${enable_nls:-yes} = yes; then
21202 if test x
$USE_NLS = xno
; then
21203 libintl_found
="Not detected"
21205 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21206 libintl_found
="included"
21208 libintl_found
="system"
21213 echo " libintl $libintl_found"
21215 if test x
$LIBPNG_VERSION != xnot_needed
; then
21216 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21218 if test x
$GDLIB_VERSION != xnot_needed
; then
21219 echo " libgd ${GDLIB_VERSION:-Not detected}"
21221 echo " zlib ${ZLIB_VERSION:-Not detected}"
21222 if test x
$WEB = xdisabled
; then
21225 echo "WARNING! amuleweb has been disabled because configure could not find"
21226 echo "a POSIX compliant regex library."
21229 if test -z "$LIBPNG_VERSION"; then
21232 echo "WARNING! libpng >= 1.2.0 not found."
21233 echo "amuleweb will be compiled but file download progress bar images will NOT be generated."
21236 if test x
$ENABLE_UPNP = xdisabled
; then
21239 echo "WARNING! UPnP code has been disabled because ${libupnp_error}."