2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS 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 INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --x-includes=DIR X include files are
in DIR
867 --x-libraries=DIR X library files are
in DIR
870 --build=BUILD configure
for building on BUILD
[guessed
]
871 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive
) echo "Configuration of aMule SVN:";;
882 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
883 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing
) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule
command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don
't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --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 --without-gnu-malloc Don't assume that we use GNU libc compatible
913 malloc
/realloc when cross-compiling
914 --with-zlib=PREFIX use zlib
in PREFIX
915 --with-gdlib-prefix=PREFIX
916 prefix where gdlib is installed
(optional
)
917 --with-gdlib-config=CONFIG
918 gdlib-config
script to use
(optional
)
919 --with-libpng-prefix=PREFIX
920 prefix where libpng is installed
(optional
)
921 --with-libpng-config=CONFIG
922 libpng-config
script to use
(optional
)
923 --with-geoip-headers=DIR
924 GeoIP include files location
925 --with-geoip-lib=DIR GeoIP library location
926 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
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 # Default is yes, because they're most likely compatible.
5541 # However, this is only used when cross-compiling.
5543 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5544 if test "${with_gnu_malloc+set}" = set; then
5545 withval
="$with_gnu_malloc"
5552 # Checking for libs before all other stuff to break
5553 # configure as soon as possible in case of a missing one
5554 # to avoid losing too much time
5559 # Check whether --with-zlib or --without-zlib was given.
5560 if test "${with_zlib+set}" = set; then
5561 withval
="$with_zlib"
5565 case "${with_zlib:-yes}" in
5567 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5568 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5569 { (exit 1); exit 1; }; }
5574 zlib_prefix
="$with_zlib"
5577 mule_backup_CPPFLAGS
="$CPPFLAGS"
5578 mule_backup_LDFLAGS
="$LDFLAGS"
5579 mule_backup_LIBS
="$LIBS"
5580 if test -n "$zlib_prefix"; then
5582 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5583 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5584 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5585 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5595 LIBS
="$ZLIB_LIBS $LIBS"
5597 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5598 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5599 if test "$cross_compiling" = yes; then
5603 cat >conftest.
$ac_ext <<_ACEOF
5607 cat confdefs.h
>>conftest.
$ac_ext
5608 cat >>conftest.
$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5618 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5626 rm -f conftest.
$ac_objext conftest
$ac_exeext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1
>conftest.err
5632 cat conftest.err
>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try
='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try
='test -s conftest$ac_exeext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5649 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5650 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5651 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5652 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5653 if test "$cross_zver_max" -gt "1"; then
5655 elif test "$cross_zver_max" -eq "1"; then
5657 if test "$cross_zver_mid" -gt "1"; then
5659 elif test "$cross_zver_mid" -eq "1"; then
5660 if test "$cross_zver_min" -ge "4"; then
5669 if test ${result:-no} = yes; then
5670 z_version
=" (version $ZLIB_VERSION)"
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5679 rm -f conftest.err conftest.
$ac_objext \
5680 conftest
$ac_exeext conftest.
$ac_ext
5681 echo "$as_me:$LINENO: result: $result$z_version" >&5
5682 echo "${ECHO_T}$result$z_version" >&6
5685 cat >conftest.
$ac_ext <<_ACEOF
5689 cat confdefs.h
>>conftest.
$ac_ext
5690 cat >>conftest.
$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5699 char *zver = zlibVersion();
5700 FILE *f=fopen("conftestval", "w");
5707 zver[4] >= '4'))) ? "yes" : "no");
5709 f=fopen("conftestver", "w");
5711 fprintf(f, "%s", ZLIB_VERSION);
5720 rm -f conftest
$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5732 if test -f conftestval
; then
5733 result
=`cat conftestval`
5738 if test ${result:-no} = yes; then
5740 if test -f conftestver
; then
5742 ZLIB_VERSION
=`cat conftestver`
5743 z_version
=" (version $ZLIB_VERSION)"
5752 echo "$as_me:$LINENO: result: $result$z_version" >&5
5753 echo "${ECHO_T}$result$z_version" >&6
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.
$ac_ext >&5
5763 echo "$as_me:$LINENO: result: $result" >&5
5764 echo "${ECHO_T}$result" >&6
5767 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5770 CPPFLAGS
="$mule_backup_CPPFLAGS"
5771 LDFLAGS
="$mule_backup_LDFLAGS"
5772 LIBS
="$mule_backup_LIBS"
5774 if test ${result:-no} = no
; then
5779 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5780 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5781 { (exit 1); exit 1; }; }
5788 if test x
$CAS = xyes
; then
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5816 rm -f conftest.
$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try
='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_header_stdc
=yes
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.
$ac_ext >&5
5843 ac_cv_header_stdc
=no
5845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 $EGREP "memchr" >/dev
/null
2>&1; then
5862 ac_cv_header_stdc
=no
5868 if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.
$ac_ext <<_ACEOF
5873 cat confdefs.h
>>conftest.
$ac_ext
5874 cat >>conftest.
$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 $EGREP "free" >/dev
/null
2>&1; then
5883 ac_cv_header_stdc
=no
5889 if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5894 cat >conftest.
$ac_ext <<_ACEOF
5897 cat confdefs.h
>>conftest.
$ac_ext
5898 cat >>conftest.
$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 #if ((' ' & 0x0FF) == 0x020)
5902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905 # define ISLOWER(c) \
5906 (('a' <= (c) && (c) <= 'i') \
5907 || ('j' <= (c) && (c) <= 'r') \
5908 || ('s' <= (c) && (c) <= 'z'))
5909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 for (i = 0; i < 256; i++)
5918 if (XOR (islower (i), ISLOWER (i))
5919 || toupper (i) != TOUPPER (i))
5924 rm -f conftest
$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5937 echo "$as_me: program exited with status $ac_status" >&5
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_header_stdc
=no
5944 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950 if test $ac_cv_header_stdc = yes; then
5952 cat >>confdefs.h
<<\_ACEOF
5953 #define STDC_HEADERS 1
5958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5968 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5969 inttypes.h stdint.h unistd.h
5971 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 #include <$ac_header>
5987 rm -f conftest.
$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1
>conftest.err
5993 cat conftest.err
>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try
='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try
='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_Header=yes"
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.
$ac_ext >&5
6014 eval "$as_ac_Header=no"
6016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h
<<_ACEOF
6022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6033 if test "${with_gdlib_prefix+set}" = set; then
6034 withval
="$with_gdlib_prefix"
6038 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6039 if test "${with_gdlib_config+set}" = set; then
6040 withval
="$with_gdlib_config"
6046 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6047 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6048 GDLIB_CONFIG_NAME
=gdlib-config
6051 if test -n "$with_gdlib_config"; then
6052 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6056 # deal with optional prefix
6057 if test -n "$with_gdlib_prefix"; then
6058 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6062 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6063 if test -x "$GDLIB_CONFIG_NAME"; then
6065 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6066 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6067 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6068 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6069 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6072 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6073 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 case $GDLIB_CONFIG_PATH in
6081 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6085 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6086 for as_dir
in $as_dummy
6089 test -z "$as_dir" && as_dir
=.
6090 for ac_exec_ext
in '' $ac_executable_extensions; do
6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6103 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6105 if test -n "$GDLIB_CONFIG_PATH"; then
6106 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6107 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6116 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6118 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6119 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6120 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6122 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6123 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6124 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6125 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6128 if test $gdlib_config_major_version -gt 2; then
6130 elif test $gdlib_config_major_version -eq 2; then
6132 if test $gdlib_config_minor_version -gt 0; then
6134 elif test $gdlib_config_minor_version -eq 0; then
6135 if test $gdlib_config_micro_version -ge 0; then
6145 if test -z "$gdlib_ver_ok"; then
6147 if test -z "$GDLIB_VERSION"; then
6148 echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6152 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6153 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6161 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6162 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6163 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6164 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6165 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6166 mule_backup_CFLAGS
="$CFLAGS"
6167 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6168 if test "${ac_cv_header_gd_h+set}" = set; then
6169 echo "$as_me:$LINENO: checking for gd.h" >&5
6170 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6171 if test "${ac_cv_header_gd_h+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6177 # Is the header compilable?
6178 echo "$as_me:$LINENO: checking gd.h usability" >&5
6179 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6180 cat >conftest.
$ac_ext <<_ACEOF
6183 cat confdefs.h
>>conftest.
$ac_ext
6184 cat >>conftest.
$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6189 rm -f conftest.
$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1
>conftest.err
6195 cat conftest.err
>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try
='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try
='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_header_compiler
=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.
$ac_ext >&5
6216 ac_header_compiler
=no
6218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 echo "${ECHO_T}$ac_header_compiler" >&6
6222 # Is the header present?
6223 echo "$as_me:$LINENO: checking gd.h presence" >&5
6224 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6236 grep -v '^ *+' conftest.er1
>conftest.err
6238 cat conftest.err
>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } >/dev
/null
; then
6241 if test -s conftest.err
; then
6242 ac_cpp_err
=$ac_c_preproc_warn_flag
6243 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6250 if test -z "$ac_cpp_err"; then
6251 ac_header_preproc
=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6256 ac_header_preproc
=no
6258 rm -f conftest.err conftest.
$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc
=yes
6272 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6286 ## ------------------------------ ##
6287 ## Report this to admin@amule.org ##
6288 ## ------------------------------ ##
6291 sed "s/^/$as_me: WARNING: /" >&2
6294 echo "$as_me:$LINENO: checking for gd.h" >&5
6295 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6296 if test "${ac_cv_header_gd_h+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 ac_cv_header_gd_h
=$ac_header_preproc
6301 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6302 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6305 if test $ac_cv_header_gd_h = yes; then
6312 CFLAGS
="$mule_backup_CFLAGS"
6320 if test -n "$GDLIB_VERSION"; then
6323 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6332 if test -z "$CAS_DEFS"; then
6333 { echo "$as_me:$LINENO: WARNING:
6334 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6335 Please check that gdlib-config is in your default path, check out
6336 LD_LIBRARY_PATH or equivalent variable.
6337 Or this might also be that your gdlib-config has other name.
6338 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6339 (replace /usr/bin/gdlib-config with a valid path to your
6341 If you use compiled packages check if you have devel pack installed.
6342 To download the latest version check http://www.boutell.com/gd for
6344 echo "$as_me: WARNING:
6345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6346 Please check that gdlib-config is in your default path, check out
6347 LD_LIBRARY_PATH or equivalent variable.
6348 Or this might also be that your gdlib-config has other name.
6349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6350 (replace /usr/bin/gdlib-config with a valid path to your
6352 If you use compiled packages check if you have devel pack installed.
6353 To download the latest version check http://www.boutell.com/gd for
6356 _mule_has_warnings
=yes
6362 GDLIB_VERSION
="not_needed"
6367 if test x
$WEB = xyes
; then
6370 for ac_header
in sys
/types.h
6372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382 # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.
$ac_ext <<_ACEOF
6388 cat confdefs.h
>>conftest.
$ac_ext
6389 cat >>conftest.
$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 #include <$ac_header>
6394 rm -f conftest.
$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6398 grep -v '^ *+' conftest.er1
>conftest.err
6400 cat conftest.err
>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try
='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_header_compiler
=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6421 ac_header_compiler
=no
6423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1
>conftest.err
6443 cat conftest.err
>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev
/null
; then
6446 if test -s conftest.err
; then
6447 ac_cpp_err
=$ac_c_preproc_warn_flag
6448 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6455 if test -z "$ac_cpp_err"; then
6456 ac_header_preproc
=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.
$ac_ext >&5
6461 ac_header_preproc
=no
6463 rm -f conftest.err conftest.
$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc
=yes
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 ## ------------------------------ ##
6492 ## Report this to admin@amule.org ##
6493 ## ------------------------------ ##
6496 sed "s/^/$as_me: WARNING: /" >&2
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h
<<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6520 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6522 for REGEX_LIBS
in '' -lgnurx -lregex; do
6523 mule_backup_LIBS
="$LIBS"
6524 LIBS
="$REGEX_LIBS $LIBS"
6525 cat >conftest.
$ac_ext <<_ACEOF
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 #ifdef HAVE_SYS_TYPES_H
6534 # include <sys/types.h>
6543 regcomp(&preg, "", REG_EXTENDED);
6545 regexec(&preg, "", 0, pmatch, 0);
6553 rm -f conftest.
$ac_objext conftest
$ac_exeext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try
='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try
='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6576 LIBS
="$mule_backup_LIBS"
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.
$ac_ext >&5
6584 LIBS
="$mule_backup_LIBS"
6586 rm -f conftest.err conftest.
$ac_objext \
6587 conftest
$ac_exeext conftest.
$ac_ext
6589 echo "$as_me:$LINENO: result: $regex_found" >&5
6590 echo "${ECHO_T}$regex_found" >&6
6591 if test $regex_found = yes; then
6596 { echo "$as_me:$LINENO: WARNING:
6597 amuleweb has been disabled because configure could not find a POSIX
6598 compliant regex library." >&5
6599 echo "$as_me: WARNING:
6600 amuleweb has been disabled because configure could not find a POSIX
6601 compliant regex library." >&2;}
6603 _mule_has_warnings
=yes
6612 if test x
$WEB = xyes
; then
6615 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6616 if test "${with_libpng_prefix+set}" = set; then
6617 withval
="$with_libpng_prefix"
6621 # Check whether --with-libpng-config or --without-libpng-config was given.
6622 if test "${with_libpng_config+set}" = set; then
6623 withval
="$with_libpng_config"
6629 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6630 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6631 LIBPNG_CONFIG_NAME
=libpng-config
6634 if test -n "$with_libpng_config"; then
6635 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6639 # deal with optional prefix
6640 if test -n "$with_libpng_prefix"; then
6641 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6645 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6646 if test -x "$LIBPNG_CONFIG_NAME"; then
6648 echo "$as_me:$LINENO: checking for libpng-config" >&5
6649 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6650 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6651 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6652 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6655 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6656 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 case $LIBPNG_CONFIG_PATH in
6664 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6668 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6669 for as_dir
in $as_dummy
6672 test -z "$as_dir" && as_dir
=.
6673 for ac_exec_ext
in '' $ac_executable_extensions; do
6674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6686 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6688 if test -n "$LIBPNG_CONFIG_PATH"; then
6689 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6690 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6692 echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6
6699 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6701 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6702 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6704 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6706 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6707 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6708 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6709 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6712 if test $libpng_config_major_version -gt 1; then
6714 elif test $libpng_config_major_version -eq 1; then
6716 if test $libpng_config_minor_version -gt 2; then
6718 elif test $libpng_config_minor_version -eq 2; then
6719 if test $libpng_config_micro_version -ge 0; then
6729 if test -z "$libpng_ver_ok"; then
6731 if test -z "$LIBPNG_VERSION"; then
6732 echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6736 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6737 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6745 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6746 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6747 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6748 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6749 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6756 # Try hard to find a usable libpng
6757 # Some RedHat RPMs miss libpng-config, so test for
6758 # the usability with default options.
6759 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6760 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6761 mule_backup_LIBS
="$LIBS"
6762 LIBS
="-lpng -lz -lm $LIBS"
6763 if test "$cross_compiling" = yes; then
6765 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6766 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6767 if test "${ac_cv_header_png_h+set}" = set; then
6768 echo "$as_me:$LINENO: checking for png.h" >&5
6769 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6770 if test "${ac_cv_header_png_h+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6774 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6776 # Is the header compilable?
6777 echo "$as_me:$LINENO: checking png.h usability" >&5
6778 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6779 cat >conftest.
$ac_ext <<_ACEOF
6782 cat confdefs.h
>>conftest.
$ac_ext
6783 cat >>conftest.
$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6788 rm -f conftest.
$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1
>conftest.err
6794 cat conftest.err
>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try
='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try
='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_header_compiler
=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.
$ac_ext >&5
6815 ac_header_compiler
=no
6817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819 echo "${ECHO_T}$ac_header_compiler" >&6
6821 # Is the header present?
6822 echo "$as_me:$LINENO: checking png.h presence" >&5
6823 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6824 cat >conftest.
$ac_ext <<_ACEOF
6827 cat confdefs.h
>>conftest.
$ac_ext
6828 cat >>conftest.
$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev
/null
; then
6840 if test -s conftest.err
; then
6841 ac_cpp_err
=$ac_c_preproc_warn_flag
6842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6849 if test -z "$ac_cpp_err"; then
6850 ac_header_preproc
=yes
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.
$ac_ext >&5
6855 ac_header_preproc
=no
6857 rm -f conftest.err conftest.
$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 echo "${ECHO_T}$ac_header_preproc" >&6
6861 # So? What about this header?
6862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6864 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6865 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6867 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6868 ac_header_preproc
=yes
6871 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6872 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6874 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6876 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6878 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6880 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6882 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6885 ## ------------------------------ ##
6886 ## Report this to admin@amule.org ##
6887 ## ------------------------------ ##
6890 sed "s/^/$as_me: WARNING: /" >&2
6893 echo "$as_me:$LINENO: checking for png.h" >&5
6894 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6895 if test "${ac_cv_header_png_h+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_cv_header_png_h
=$ac_header_preproc
6900 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6901 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6904 if test $ac_cv_header_png_h = yes; then
6906 LIBPNG_VERSION
="detected"
6907 LIBPNG_LIBS
="-lpng -lz -lm"
6914 cat >conftest.
$ac_ext <<_ACEOF
6918 cat confdefs.h
>>conftest.
$ac_ext
6919 cat >>conftest.
$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6925 /* Check linking to png library */
6927 png_check_sig(NULL, 0);
6933 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6934 FILE *f=fopen("conftestval", "w");
6936 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6938 f=fopen("conftestver", "w");
6940 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6949 rm -f conftest
$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6961 if test -f conftestval
; then
6962 result
=`cat conftestval`
6967 if test ${result:-no} = yes; then
6969 if test -f conftestver
; then
6971 LIBPNG_VERSION
=`cat conftestver`
6972 lib_version
=" (version $LIBPNG_VERSION)"
6977 LIBPNG_VERSION
="detected"
6984 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6985 echo "${ECHO_T}$result$lib_version" >&6
6986 LIBPNG_LIBS
="-lpng -lz -lm"
6989 echo "$as_me: program exited with status $ac_status" >&5
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.
$ac_ext >&5
6996 echo "$as_me:$LINENO: result: $result" >&5
6997 echo "${ECHO_T}$result" >&6
7000 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7002 LIBS
="$mule_backup_LIBS"
7007 if test -n "$LIBPNG_VERSION"; then
7008 AMULEWEB_DEFS
="-DWITH_LIBPNG"
7011 { echo "$as_me:$LINENO: WARNING:
7012 libpng >= 1.2.0 not found.
7013 amuleweb will be compiled but file download progress bar images will
7014 NOT be generated." >&5
7015 echo "$as_me: WARNING:
7016 libpng >= 1.2.0 not found.
7017 amuleweb will be compiled but file download progress bar images will
7018 NOT be generated." >&2;}
7020 _mule_has_warnings
=yes
7030 LIBPNG_VERSION
="not_needed"
7035 # Check for perl File::Copy
7036 echo "$as_me:$LINENO: checking for File::Copy" >&5
7037 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
7038 if perl
-e "require File::Copy" 2>/dev
/null
; then
7039 echo "$as_me:$LINENO: result: ok" >&5
7040 echo "${ECHO_T}ok" >&6
7042 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
7043 echo "$as_me: error: File::Copy perl module is required" >&2;}
7044 { (exit 1); exit 1; }; }
7049 # Check if we need the GUI
7050 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
7051 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
7052 if test x
$MONOLITHIC = xyes
; then
7056 if test x
$WXCAS = xyes
; then
7060 if test x
$ALC = xyes
; then
7064 if test x
$AMULE_GUI = xyes
; then
7068 if test x
${need_gui:+set} != xset
; then
7072 echo "$as_me:$LINENO: result: $need_gui" >&5
7073 echo "${ECHO_T}$need_gui" >&6
7075 # Check if we need to install skins
7076 if test x
$MONOLITHIC = xyes
; then
7080 if test x
$AMULE_GUI = xyes
; then
7084 if test x
${INSTALL_SKINS:+set} != xset
; then
7089 # Check for GeoIP (required for IP2Country capability)
7091 # Check whether --enable-geoip or --disable-geoip was given.
7092 if test "${enable_geoip+set}" = set; then
7093 enableval
="$enable_geoip"
7094 ENABLE_IP2COUNTRY
=$enableval
7096 ENABLE_IP2COUNTRY
=no
7099 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
7102 # Check whether --with-geoip-headers or --without-geoip-headers was given.
7103 if test "${with_geoip_headers+set}" = set; then
7104 withval
="$with_geoip_headers"
7105 GEOIP_CPPFLAGS
="-I$withval"
7108 # Check whether --with-geoip-lib or --without-geoip-lib was given.
7109 if test "${with_geoip_lib+set}" = set; then
7110 withval
="$with_geoip_lib"
7111 GEOIP_LDFLAGS
="-L$withval"
7114 mule_backup_CPPFLAGS
="$CPPFLAGS"
7115 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
7116 mule_backup_LDFLAGS
="$LDFLAGS"
7117 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
7118 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7119 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7120 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7125 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7127 # Is the header compilable?
7128 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
7129 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
7130 cat >conftest.
$ac_ext <<_ACEOF
7133 cat confdefs.h
>>conftest.
$ac_ext
7134 cat >>conftest.
$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7139 rm -f conftest.
$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7143 grep -v '^ *+' conftest.er1
>conftest.err
7145 cat conftest.err
>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try
='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try
='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_header_compiler
=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.
$ac_ext >&5
7166 ac_header_compiler
=no
7168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7170 echo "${ECHO_T}$ac_header_compiler" >&6
7172 # Is the header present?
7173 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7174 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7184 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7186 grep -v '^ *+' conftest.er1
>conftest.err
7188 cat conftest.err
>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } >/dev
/null
; then
7191 if test -s conftest.err
; then
7192 ac_cpp_err
=$ac_c_preproc_warn_flag
7193 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7200 if test -z "$ac_cpp_err"; then
7201 ac_header_preproc
=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.
$ac_ext >&5
7206 ac_header_preproc
=no
7208 rm -f conftest.err conftest.
$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6
7212 # So? What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc
=yes
7222 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7236 ## ------------------------------ ##
7237 ## Report this to admin@amule.org ##
7238 ## ------------------------------ ##
7241 sed "s/^/$as_me: WARNING: /" >&2
7244 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7245 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7246 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_header_GeoIP_h
=$ac_header_preproc
7251 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7252 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7255 if test $ac_cv_header_GeoIP_h = yes; then
7257 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7258 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7259 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_check_lib_save_LIBS
=$LIBS
7263 LIBS
="-lGeoIP $LIBS"
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7286 rm -f conftest.
$ac_objext conftest
$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try
='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_lib_GeoIP_GeoIP_open
=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7313 ac_cv_lib_GeoIP_GeoIP_open
=no
7315 rm -f conftest.err conftest.
$ac_objext \
7316 conftest
$ac_exeext conftest.
$ac_ext
7317 LIBS
=$ac_check_lib_save_LIBS
7319 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7320 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7321 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7324 cat >>confdefs.h
<<\_ACEOF
7325 #define SUPPORT_GEOIP 1
7328 GEOIP_LIBS
="-lGeoIP"
7329 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7331 # Check whether --with-geoip-static or --without-geoip-static was given.
7332 if test "${with_geoip_static+set}" = set; then
7333 withval
="$with_geoip_static"
7335 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
7337 mule_backup_LIBS
="$LIBS"
7338 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7339 cat >conftest.
$ac_ext <<_ACEOF
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7353 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7360 rm -f conftest.
$ac_objext conftest
$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1
>conftest.err
7366 cat conftest.err
>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try
='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try
='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7383 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.
$ac_ext >&5
7390 { echo "$as_me:$LINENO: WARNING:
7391 Cannot link GeoIP statically, because your linker ($LD) does not
7393 echo "$as_me: WARNING:
7394 Cannot link GeoIP statically, because your linker ($LD) does not
7397 _mule_has_warnings
=yes
7401 rm -f conftest.err conftest.
$ac_objext \
7402 conftest
$ac_exeext conftest.
$ac_ext
7403 LIBS
="$mule_backup_LIBS"
7412 ENABLE_IP2COUNTRY
=disabled
7413 { echo "$as_me:$LINENO: WARNING:
7414 GeoIP support has been disabled because the GeoIP libraries were not
7416 echo "$as_me: WARNING:
7417 GeoIP support has been disabled because the GeoIP libraries were not
7420 _mule_has_warnings
=yes
7428 ENABLE_IP2COUNTRY
=disabled
7429 { echo "$as_me:$LINENO: WARNING:
7430 GeoIP support has been disabled because the GeoIP header files were
7432 echo "$as_me: WARNING:
7433 GeoIP support has been disabled because the GeoIP header files were
7436 _mule_has_warnings
=yes
7443 CPPFLAGS
="$mule_backup_CPPFLAGS"
7444 LDFLAGS
="$mule_backup_LDFLAGS"
7453 # Check whether --with-wxdir or --without-wxdir was given.
7454 if test "${with_wxdir+set}" = set; then
7455 withval
="$with_wxdir"
7456 wx_config_name
="$withval/wx-config"
7457 wx_config_args
="--inplace"
7460 # Check whether --with-wx-config or --without-wx-config was given.
7461 if test "${with_wx_config+set}" = set; then
7462 withval
="$with_wx_config"
7463 wx_config_name
="$withval"
7466 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7467 if test "${with_wx_prefix+set}" = set; then
7468 withval
="$with_wx_prefix"
7469 wx_config_prefix
="$withval"
7474 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7475 if test "${with_wx_exec_prefix+set}" = set; then
7476 withval
="$with_wx_exec_prefix"
7477 wx_config_exec_prefix
="$withval"
7479 wx_config_exec_prefix
=""
7493 # Check whether --with-toolkit or --without-toolkit was given.
7494 if test "${with_toolkit+set}" = set; then
7495 withval
="$with_toolkit"
7501 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7502 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7503 if test "$withval" = "auto" ; then
7504 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7505 echo "${ECHO_T}will be automatically detected" >&6
7510 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7511 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7512 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7513 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7514 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7515 { { echo "$as_me:$LINENO: error:
7516 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7518 echo "$as_me: error:
7519 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7521 { (exit 1); exit 1; }; }
7524 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7525 echo "${ECHO_T}$TOOLKIT" >&6
7532 # Check whether --with-wxshared or --without-wxshared was given.
7533 if test "${with_wxshared+set}" = set; then
7534 withval
="$with_wxshared"
7540 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7541 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7542 if test "$withval" = "yes" ; then
7543 echo "$as_me:$LINENO: result: yes" >&5
7544 echo "${ECHO_T}yes" >&6
7547 elif test "1" = "1" -a "$withval" = "no" ; then
7548 echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6
7551 elif test "$withval" = "auto" ; then
7552 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7553 echo "${ECHO_T}will be automatically detected" >&6
7556 { { echo "$as_me:$LINENO: error:
7557 Unrecognized option value (allowed values: yes, auto)
7559 echo "$as_me: error:
7560 Unrecognized option value (allowed values: yes, auto)
7562 { (exit 1); exit 1; }; }
7569 # Check whether --with-wxdebug or --without-wxdebug was given.
7570 if test "${with_wxdebug+set}" = set; then
7571 withval
="$with_wxdebug"
7577 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7578 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7579 if test "$withval" = "yes" ; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581 echo "${ECHO_T}yes" >&6
7584 elif test "1" = "1" -a "$withval" = "no" ; then
7585 echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7588 elif test "$withval" = "auto" ; then
7589 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7590 echo "${ECHO_T}will be automatically detected" >&6
7593 { { echo "$as_me:$LINENO: error:
7594 Unrecognized option value (allowed values: yes, auto)
7596 echo "$as_me: error:
7597 Unrecognized option value (allowed values: yes, auto)
7599 { (exit 1); exit 1; }; }
7606 # Check whether --with-wxversion or --without-wxversion was given.
7607 if test "${with_wxversion+set}" = set; then
7608 withval
="$with_wxversion"
7614 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7615 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7616 if test "$withval" = "auto" ; then
7617 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7618 echo "${ECHO_T}will be automatically detected" >&6
7622 wx_requested_major_version
=`echo $withval | \
7623 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7624 wx_requested_minor_version
=`echo $withval | \
7625 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7627 if test "${#wx_requested_major_version}" != "1" -o \
7628 "${#wx_requested_minor_version}" != "1" ; then
7629 { { echo "$as_me:$LINENO: error:
7630 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7632 echo "$as_me: error:
7633 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7635 { (exit 1); exit 1; }; }
7638 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7639 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7640 echo "${ECHO_T}$WX_VERSION" >&6
7644 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7645 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7646 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7647 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7648 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7649 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7652 # Force using a static wxWidgets library if the executable is to be linked statically.
7653 if test ${enable_static:-no} = yes; then
7657 # Force using a unicode build of the library
7661 if test "$WX_SHARED" = "1" ; then
7662 WXCONFIG_FLAGS
="--static=no "
7663 elif test "$WX_SHARED" = "0" ; then
7664 WXCONFIG_FLAGS
="--static=yes "
7667 if test "$WX_DEBUG" = "1" ; then
7668 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7669 elif test "$WX_DEBUG" = "0" ; then
7670 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7673 if test "$WX_UNICODE" = "1" ; then
7674 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7675 elif test "$WX_UNICODE" = "0" ; then
7676 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7679 if test "$TOOLKIT" != "auto" ; then
7680 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7683 if test "$WX_VERSION" != "auto" ; then
7684 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7687 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7689 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7690 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7694 if test x
${WX_CONFIG_NAME+set} != xset
; then
7695 WX_CONFIG_NAME
=wx-config
7698 if test "x$wx_config_name" != x
; then
7699 WX_CONFIG_NAME
="$wx_config_name"
7702 if test x
$wx_config_exec_prefix != x
; then
7703 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7704 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7706 if test x
$wx_config_prefix != x
; then
7707 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7708 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7710 if test "$cross_compiling" = "yes"; then
7711 wx_config_args
="$wx_config_args --host=$host_alias"
7714 if test -x "$WX_CONFIG_NAME" ; then
7715 echo "$as_me:$LINENO: checking for wx-config" >&5
7716 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7717 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7718 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7719 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7721 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7722 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7723 echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 case $WX_CONFIG_PATH in
7730 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7734 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7735 for as_dir
in $as_dummy
7738 test -z "$as_dir" && as_dir
=.
7739 for ac_exec_ext
in '' $ac_executable_extensions; do
7740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7752 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7754 if test -n "$WX_CONFIG_PATH"; then
7755 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7756 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7758 echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7764 if test "$WX_CONFIG_PATH" != "no" ; then
7767 min_wx_version
=2.8.0
7768 if test -z "$WXCONFIG_FLAGS" ; then
7769 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7770 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7772 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7773 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7776 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7778 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7779 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7780 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7781 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7782 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7783 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7784 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7786 wx_requested_major_version
=`echo $min_wx_version | \
7787 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7788 wx_requested_minor_version
=`echo $min_wx_version | \
7789 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7790 wx_requested_micro_version
=`echo $min_wx_version | \
7791 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7795 if test "x$WX_VERSION_FULL" != x
; then
7796 if test $wx_config_major_version -gt $wx_requested_major_version; then
7799 if test $wx_config_major_version -eq $wx_requested_major_version; then
7800 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7803 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7804 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7814 if test -n "$wx_ver_ok"; then
7816 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7817 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7818 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7820 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7821 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7822 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7823 if test "x$WX_LIBS_STATIC" = "x"; then
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7827 echo "$as_me:$LINENO: result: yes" >&5
7828 echo "${ECHO_T}yes" >&6
7832 if test $wx_config_major_version -gt 2; then
7835 if test $wx_config_major_version -eq 2; then
7836 if test $wx_config_minor_version -gt 2; then
7839 if test $wx_config_minor_version -eq 2; then
7840 if test $wx_config_micro_version -ge 6; then
7849 if test $wx_config_major_version -gt 2; then
7852 if test $wx_config_major_version -eq 2; then
7853 if test $wx_config_minor_version -ge 7; then
7858 if test "x$wx_has_rescomp" = x
; then
7861 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7864 if test "x$wx_has_cppflags" = x
; then
7865 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7866 WX_CPPFLAGS
=$WX_CFLAGS
7867 WX_CXXFLAGS
=$WX_CFLAGS
7869 WX_CFLAGS_ONLY
=$WX_CFLAGS
7870 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7872 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7873 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7874 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7876 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7877 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7884 if test "x$WX_VERSION_FULL" = x
; then
7885 echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6
7888 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7889 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7899 if test ! -z "$WXCONFIG_FLAGS"; then
7902 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7903 build with the following settings:
7905 but such build is not available.
7907 To see the wxWidgets builds available on this system, please use
7908 'wx-config --list' command. To use the default build, returned by
7909 'wx-config --selected-config', use the options with their 'auto'
7915 The requested wxWidgets build couldn't be found.
7918 If you still get this error, then check that 'wx-config' is
7919 in path, the directory where wxWidgets libraries are installed
7920 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7921 or equivalent variable and wxWidgets version is 2.8.0 or above."
7923 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7924 echo "$as_me: error: $wx_error_message" >&2;}
7925 { (exit 1); exit 1; }; }
7951 WX_VERSION_MAJOR
="$wx_config_major_version"
7952 WX_VERSION_MINOR
="$wx_config_minor_version"
7956 if test "$wxWin" != 1; then
7957 { { echo "$as_me:$LINENO: error:
7958 wxWidgets must be installed on your system but wx-config
7959 script couldn't be found. Please check that wx-config is
7960 in path or specified by --with-wx-config=path flag, the
7961 directory where wxWidgets libraries are installed (returned
7962 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7963 equivalent variable and wxWidgets version is 2.8.0 or above.
7965 echo "$as_me: error:
7966 wxWidgets must be installed on your system but wx-config
7967 script couldn't be found. Please check that wx-config is
7968 in path or specified by --with-wx-config=path flag, the
7969 directory where wxWidgets libraries are installed (returned
7970 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7971 equivalent variable and wxWidgets version is 2.8.0 or above.
7973 { (exit 1); exit 1; }; }
7976 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7977 if test $WX_VERSION -lt 26 ; then
7979 { { echo "$as_me:$LINENO: error:
7980 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7981 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7982 version of wxWidgets.
7984 echo "$as_me: error:
7985 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7986 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7987 version of wxWidgets.
7989 { (exit 1); exit 1; }; }
7992 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7994 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7995 echo "[dbg] Using wx-config --selected-config"
7996 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8000 if test $WX_SHARED = "1"; then
8002 elif test $WX_SHARED = "0"; then
8004 elif test $WX_SHARED = "auto"; then
8009 if test "$UNICODE" = "auto" ; then
8011 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
8012 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
8014 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8016 if test "$WX_UNICODE" != "0"; then
8018 echo "$as_me:$LINENO: result: yes" >&5
8019 echo "${ECHO_T}yes" >&6
8023 echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6
8033 if test "$DEBUG" = "auto" ; then
8035 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
8036 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
8038 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8040 if test "$WX_DEBUG" != "0"; then
8042 echo "$as_me:$LINENO: result: yes" >&5
8043 echo "${ECHO_T}yes" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8057 if test "$STATIC" = "auto" ; then
8059 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
8060 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
8062 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8064 if test "$WX_STATIC" != "0"; then
8066 echo "$as_me:$LINENO: result: yes" >&5
8067 echo "${ECHO_T}yes" >&6
8071 echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6
8081 if test "$WX_STATIC" != "0"; then
8091 if test "$TOOLKIT" = "auto" ; then
8093 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
8094 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
8096 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8097 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8098 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8099 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8100 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8101 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8102 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8103 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8104 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8105 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8108 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
8109 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
8110 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
8111 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
8112 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
8113 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
8114 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
8115 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
8116 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
8117 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
8120 if test "$WX_PORT" = "unknown" ; then
8121 { { echo "$as_me:$LINENO: error:
8122 Cannot detect the currently installed wxWidgets port !
8123 Please check your 'wx-config --cxxflags'...
8125 echo "$as_me: error:
8126 Cannot detect the currently installed wxWidgets port !
8127 Please check your 'wx-config --cxxflags'...
8129 { (exit 1); exit 1; }; }
8132 echo "$as_me:$LINENO: result: $WX_PORT" >&5
8133 echo "${ECHO_T}$WX_PORT" >&6
8136 if test -z "$TOOLKIT" ; then
8145 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8146 echo "[dbg] Values of all WX_* options after final detection:"
8147 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8148 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8149 echo "[dbg] WX_SHARED: $WX_SHARED"
8150 echo "[dbg] WX_VERSION: $WX_VERSION"
8151 echo "[dbg] WX_PORT: $WX_PORT"
8154 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8155 { { echo "$as_me:$LINENO: error:
8156 Cannot build shared library against a static build of wxWidgets !
8157 This error happens because the wxWidgets build which was selected
8158 has been detected as static while you asked to build $PACKAGE_NAME
8159 as shared library and this is not possible.
8160 Use the '--disable-shared' option to build $PACKAGE_NAME
8161 as static library or '--with-wxshared' to use wxWidgets as shared library.
8163 echo "$as_me: error:
8164 Cannot build shared library against a static build of wxWidgets !
8165 This error happens because the wxWidgets build which was selected
8166 has been detected as static while you asked to build $PACKAGE_NAME
8167 as shared library and this is not possible.
8168 Use the '--disable-shared' option to build $PACKAGE_NAME
8169 as static library or '--with-wxshared' to use wxWidgets as shared library.
8171 { (exit 1); exit 1; }; }
8174 if test "$DEBUG" = "auto"; then
8177 if test "$DEBUG" = "1"; then
8179 elif test "$DEBUG" = ""; then
8183 if test "$UNICODE" = "auto"; then
8186 if test "$SHARED" = "auto"; then
8189 if test "$TOOLKIT" = "auto"; then
8195 # We also need wxBase
8196 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8197 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
8198 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
8202 if test ${SYS:-unknown} = win32
; then
8204 if test -n "$ac_tool_prefix"; then
8205 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8206 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8207 echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209 if test "${ac_cv_prog_RC+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 if test -n "$RC"; then
8213 ac_cv_prog_RC
="$RC" # Let the user override the test.
8215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir
=.
8220 for ac_exec_ext
in '' $ac_executable_extensions; do
8221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 if test -n "$RC"; then
8233 echo "$as_me:$LINENO: result: $RC" >&5
8234 echo "${ECHO_T}$RC" >&6
8236 echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6
8241 if test -z "$ac_cv_prog_RC"; then
8243 # Extract the first word of "windres", so it can be a program name with args.
8244 set dummy windres
; ac_word
=$2
8245 echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8247 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 if test -n "$ac_ct_RC"; then
8251 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir
=.
8258 for ac_exec_ext
in '' $ac_executable_extensions; do
8259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_ac_ct_RC
="windres"
8261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8270 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8271 if test -n "$ac_ct_RC"; then
8272 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8273 echo "${ECHO_T}$ac_ct_RC" >&6
8275 echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8284 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8291 if test "${ENABLE_UPNP:-yes}" = yes; then
8295 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8296 if test -n "$ac_tool_prefix"; then
8297 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8298 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8299 echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir
=.
8314 for ac_exec_ext
in '' $ac_executable_extensions; do
8315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8328 if test -n "$PKG_CONFIG"; then
8329 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8330 echo "${ECHO_T}$PKG_CONFIG" >&6
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8337 if test -z "$ac_cv_path_PKG_CONFIG"; then
8338 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8339 # Extract the first word of "pkg-config", so it can be a program name with args.
8340 set dummy pkg-config
; ac_word
=$2
8341 echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 case $ac_pt_PKG_CONFIG in
8348 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir
=.
8356 for ac_exec_ext
in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8370 if test -n "$ac_pt_PKG_CONFIG"; then
8371 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8372 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8378 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8380 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8384 if test -n "$PKG_CONFIG"; then
8385 _pkg_min_version
=0.9.0
8386 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8387 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8388 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8389 echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6
8392 echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6
8400 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8401 if test "${with_libupnp_prefix+set}" = set; then
8402 withval
="$with_libupnp_prefix"
8403 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8406 if test $cross_compiling = no
; then
8407 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8408 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8409 if test -n "$PKG_CONFIG"; then
8410 if $PKG_CONFIG libupnp
--exists; then
8411 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8412 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8414 resultstr
=" (version $LIBUPNP_VERSION)"
8415 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8416 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8417 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8418 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8419 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8423 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8429 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8435 resultstr
=" (pkg-config not found)"
8438 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8439 echo "${ECHO_T}$result$resultstr" >&6
8440 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8444 libupnp_error
="cross compiling"
8448 if test ${result:-no} = yes; then
8449 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8451 ENABLE_UPNP
=disabled
8452 { echo "$as_me:$LINENO: WARNING:
8453 UPnP code has been disabled because ${libupnp_error}." >&5
8454 echo "$as_me: WARNING:
8455 UPnP code has been disabled because ${libupnp_error}." >&2;}
8457 _mule_has_warnings
=yes
8468 # Check for Crypto++
8471 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8472 if test "${with_crypto_prefix+set}" = set; then
8473 withval
="$with_crypto_prefix"
8477 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8478 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8480 cryptopp_file_with_version
="cryptlib.h"
8482 CRYPTOPP_STYLE
="unknown"
8483 CRYPTOPP_LIB_NAME
="unknown"
8484 cryptopp_includedir
="unknown"
8485 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8486 cryptopp_libdir
="unknown"
8488 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8489 if test -z "$CRYPTOPP_PREFIX"; then
8494 # Find the Cryptopp header
8495 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8497 CRYPTOPP_STYLE
="sources"
8498 CRYPTOPP_LIB_NAME
="cryptopp"
8499 cryptopp_includedir
=
8500 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8504 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8506 CRYPTOPP_STYLE
="installed"
8507 CRYPTOPP_LIB_NAME
="cryptopp"
8508 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8509 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8510 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8513 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8515 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8516 CRYPTOPP_STYLE
="gentoo_debian"
8517 CRYPTOPP_LIB_NAME
="crypto++"
8518 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8519 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8520 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8527 if test $CRYPTOPP_STYLE = "unknown"; then
8528 result
=no
; resultstr
=""
8531 # Find out the crypto++ version and check against the minimum required
8532 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8533 CRYPTOPP_VERSION_STRING
=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8534 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8535 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8537 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8540 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8541 if test -n "$cryptopp_includedir"; then
8542 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8547 if test -n "$cryptopp_libdir"; then
8549 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8550 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8555 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8561 cat >>confdefs.h
<<_ACEOF
8562 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8569 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8577 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8578 echo "${ECHO_T}$result$resultstr" >&6
8580 if test ${result:-no} = yes; then
8582 # Check for CryptoPP >= 5.5
8583 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8584 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8590 { { echo "$as_me:$LINENO: error:
8591 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8592 Please try again with --with-crypto-prefix=/my_crypto_prefix
8593 (replace /my_crypto_prefix with a valid path to your crypto++
8594 installation directory)." >&5
8595 echo "$as_me: error:
8596 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8597 Please try again with --with-crypto-prefix=/my_crypto_prefix
8598 (replace /my_crypto_prefix with a valid path to your crypto++
8599 installation directory)." >&2;}
8600 { (exit 1); exit 1; }; }
8608 ac_cpp
='$CXXCPP $CPPFLAGS'
8609 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8616 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8617 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8618 cat >conftest.
$ac_ext <<_ACEOF
8622 cat confdefs.h
>>conftest.
$ac_ext
8623 cat >>conftest.
$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8628 #error Non-GNU C++ library found.
8633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8636 grep -v '^ *+' conftest.er1
>conftest.err
8638 cat conftest.err
>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } >/dev
/null
; then
8641 if test -s conftest.err
; then
8642 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8643 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8650 if test -z "$ac_cpp_err"; then
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8658 rm -f conftest.err conftest.
$ac_ext
8659 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8660 echo "${ECHO_T}$GLIBCXX" >&6
8663 mule_backup_CPPFLAGS
="$CPPFLAGS"
8664 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8666 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8667 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8677 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8678 #error No LargeFile support!
8683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8684 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8686 grep -v '^ *+' conftest.er1
>conftest.err
8688 cat conftest.err
>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } >/dev
/null
; then
8691 if test -s conftest.err
; then
8692 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8693 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8700 if test -z "$ac_cpp_err"; then
8702 echo "$as_me:$LINENO: result: yes" >&5
8703 echo "${ECHO_T}yes" >&6
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.
$ac_ext >&5
8710 echo "$as_me:$LINENO: result: no" >&5
8711 echo "${ECHO_T}no" >&6
8712 { { echo "$as_me:$LINENO: error:
8713 Support for large files in wxWidgets is required by aMule.
8714 To continue you must recompile wxWidgets with support for
8715 large files enabled." >&5
8716 echo "$as_me: error:
8717 Support for large files in wxWidgets is required by aMule.
8718 To continue you must recompile wxWidgets with support for
8719 large files enabled." >&2;}
8720 { (exit 1); exit 1; }; }
8723 rm -f conftest.err conftest.
$ac_ext
8725 CPPFLAGS
="$mule_backup_CPPFLAGS"
8728 # Check if the compiler is broken, wrt. exceptions.
8730 echo "$as_me:$LINENO: checking for exception-handling" >&5
8731 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8732 if test "$cross_compiling" = yes; then
8734 echo "$as_me:$LINENO: result: undeterminable" >&5
8735 echo "${ECHO_T}undeterminable" >&6
8736 { echo "$as_me:$LINENO: WARNING:
8737 Cross-compilation detected, so exception handling cannot be tested.
8738 Note that broken exception handling in your compiler may lead to
8739 unexpected crashes." >&5
8740 echo "$as_me: WARNING:
8741 Cross-compilation detected, so exception handling cannot be tested.
8742 Note that broken exception handling in your compiler may lead to
8743 unexpected crashes." >&2;}
8745 _mule_has_warnings
=yes
8749 cat >conftest.
$ac_ext <<_ACEOF
8753 cat confdefs.h
>>conftest.
$ac_ext
8754 cat >>conftest.
$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8773 rm -f conftest
$ac_exeext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775 (eval $ac_link) 2>&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8785 echo "$as_me:$LINENO: result: yes" >&5
8786 echo "${ECHO_T}yes" >&6
8789 echo "$as_me: program exited with status $ac_status" >&5
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.
$ac_ext >&5
8795 echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8797 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8798 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8799 { (exit 1); exit 1; }; }
8802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8807 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8808 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8809 cat >conftest.
$ac_ext <<_ACEOF
8813 cat confdefs.h
>>conftest.
$ac_ext
8814 cat >>conftest.
$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8824 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8825 std::type_info *ti = abi::__cxa_current_exception_type();
8832 rm -f conftest.
$ac_objext conftest
$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1
>conftest.err
8838 cat conftest.err
>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try
='test -z "$ac_cxx_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try
='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8857 cat >>confdefs.h
<<\_ACEOF
8858 #define HAVE_CXXABI 1
8861 echo "$as_me:$LINENO: result: yes" >&5
8862 echo "${ECHO_T}yes" >&6
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8869 echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8873 rm -f conftest.err conftest.
$ac_objext \
8874 conftest
$ac_exeext conftest.
$ac_ext
8877 ac_cpp
='$CPP $CPPFLAGS'
8878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8883 # Check for bfd.h (to have proper backtraces without using wxExecute)
8885 echo "$as_me:$LINENO: checking for bfd" >&5
8886 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8887 mule_backup_LIBS
="$LIBS"
8888 mule_backup_LDFLAGS
="$LDFLAGS"
8889 LIBS
="-lbfd -liberty ${ZLIB_LIBS} $LIBS"
8890 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
8891 cat >conftest.
$ac_ext <<_ACEOF
8895 cat confdefs.h
>>conftest.
$ac_ext
8896 cat >>conftest.
$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 #include <ansidecl.h>
8906 char *dummy = bfd_errmsg(bfd_get_error());
8913 rm -f conftest.
$ac_objext conftest
$ac_exeext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8915 (eval $ac_link) 2>conftest.er1
8917 grep -v '^ *+' conftest.er1
>conftest.err
8919 cat conftest.err
>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try
='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try
='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8936 echo "$as_me:$LINENO: result: yes" >&5
8937 echo "${ECHO_T}yes" >&6
8938 BFD_CPPFLAGS
="-DHAVE_BFD"
8939 BFD_LIBS
="-lbfd -liberty"
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.
$ac_ext >&5
8946 echo "$as_me:$LINENO: result: no" >&5
8947 echo "${ECHO_T}no" >&6
8948 { echo "$as_me:$LINENO: WARNING:
8949 bfd.h not found or unusable, please install binutils development
8950 package if you are a developer or want to help testing aMule" >&5
8951 echo "$as_me: WARNING:
8952 bfd.h not found or unusable, please install binutils development
8953 package if you are a developer or want to help testing aMule" >&2;}
8955 _mule_has_warnings
=yes
8959 rm -f conftest.err conftest.
$ac_objext \
8960 conftest
$ac_exeext conftest.
$ac_ext
8961 LIBS
="$mule_backup_LIBS"
8962 LDFLAGS
="$mule_backup_LDFLAGS"
8966 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8967 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8968 cat >conftest.
$ac_ext <<_ACEOF
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8976 #include <execinfo.h>
8983 int n = backtrace(&bt, 1);
8984 const char **bt_syms = backtrace_symbols(bt, n);
8991 rm -f conftest.
$ac_objext conftest
$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8995 grep -v '^ *+' conftest.er1
>conftest.err
8997 cat conftest.err
>&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try
='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try
='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9016 cat >>confdefs.h
<<\_ACEOF
9017 #define HAVE_EXECINFO 1
9020 echo "$as_me:$LINENO: result: yes" >&5
9021 echo "${ECHO_T}yes" >&6
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.
$ac_ext >&5
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9032 rm -f conftest.err conftest.
$ac_objext \
9033 conftest
$ac_exeext conftest.
$ac_ext
9036 # Ok, we have all needed libs, now checking for other stuff
9037 if test "$LEX" = "flex"; then
9039 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
9040 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
9042 extended_flex
=`flex --help | grep header-file`
9043 if test -n "$extended_flex"; then
9044 HAVE_FLEX_EXTENDED
=yes
9046 HAVE_FLEX_EXTENDED
=no
9049 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
9050 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
9052 if test $HAVE_FLEX_EXTENDED = no
; then
9053 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
9054 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9059 HAVE_FLEX_EXTENDED
=no
9063 # Flush standard test results for speeding cache
9064 cat >confcache
<<\_ACEOF
9065 # This file is a shell script that caches the results of configure
9066 # tests run on this system so they can be shared between configure
9067 # scripts and configure runs, see configure's option --config-cache.
9068 # It is not useful on other systems. If it contains results you don't
9069 # want to keep, you may remove or edit it.
9071 # config.status only pays attention to the cache file if you give it
9072 # the --recheck option to rerun configure.
9074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9080 # The following way of writing the cache mishandles newlines in values,
9081 # but we know of no workaround that is simple, portable, and efficient.
9082 # So, don't put newlines in cache variables' values.
9083 # Ultrix sh set writes to stderr and can't be redirected directly,
9084 # and sets the high bit in the cache file unless we assign to the vars.
9087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9089 # `set' does not quote correctly, so add quotes (double-quote
9090 # substitution turns \\\\ into \\, and sed turns \\ into \).
9093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9096 # `set' quotes correctly as required by POSIX, so do not add quotes.
9098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9109 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9110 if test -w $cache_file; then
9111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9112 cat confcache
>$cache_file
9114 echo "not updating unwritable cache $cache_file"
9119 # Checks for header files.
9120 echo "$as_me:$LINENO: checking for X" >&5
9121 echo $ECHO_N "checking for X... $ECHO_C" >&6
9124 # Check whether --with-x or --without-x was given.
9125 if test "${with_x+set}" = set; then
9129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9130 if test "x$with_x" = xno
; then
9131 # The user explicitly disabled X.
9134 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9135 # Both variables are already set.
9138 if test "${ac_cv_have_x+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 # One or both of the vars are not set, and there is no cached value.
9142 ac_x_includes
=no ac_x_libraries
=no
9144 if mkdir conftest.dir
; then
9146 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9147 cat >Imakefile
<<'_ACEOF'
9149 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9151 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9153 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9154 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9155 for ac_extension
in a so sl
; do
9156 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9157 test -f $ac_im_libdir/libX11.
$ac_extension; then
9158 ac_im_usrlibdir
=$ac_im_libdir; break
9161 # Screen out bogus values from the imake configuration. They are
9162 # bogus both because they are the default anyway, and because
9163 # using them would break gcc on systems where it needs fixed includes.
9164 case $ac_im_incroot in
9166 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9168 case $ac_im_usrlibdir in
9170 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9177 # Standard set of common directories for X headers.
9178 # Check X11 before X11Rn because it is often a symlink to the current release.
9190 /usr/local/X11/include
9191 /usr/local/X11R6/include
9192 /usr/local/X11R5/include
9193 /usr/local/X11R4/include
9195 /usr/local/include/X11
9196 /usr/local/include/X11R6
9197 /usr/local/include/X11R5
9198 /usr/local/include/X11R4
9202 /usr/XFree86/include/X11
9206 /usr/unsupported/include
9208 /usr/local/x11r5/include
9209 /usr/lpp/Xamples/include
9211 /usr/openwin/include
9212 /usr/openwin/share/include'
9214 if test "$ac_x_includes" = no
; then
9215 # Guess where to find include files, by looking for Intrinsic.h.
9216 # First, try using that file with no special directory specified.
9217 cat >conftest.
$ac_ext <<_ACEOF
9220 cat confdefs.h
>>conftest.
$ac_ext
9221 cat >>conftest.
$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <X11/Intrinsic.h>
9225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } >/dev
/null
; then
9233 if test -s conftest.err
; then
9234 ac_cpp_err
=$ac_c_preproc_warn_flag
9235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9242 if test -z "$ac_cpp_err"; then
9243 # We can compile using X headers with no special include directory.
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.
$ac_ext >&5
9249 for ac_dir
in $ac_x_header_dirs; do
9250 if test -r "$ac_dir/X11/Intrinsic.h"; then
9251 ac_x_includes
=$ac_dir
9256 rm -f conftest.err conftest.
$ac_ext
9257 fi # $ac_x_includes = no
9259 if test "$ac_x_libraries" = no
; then
9260 # Check for the libraries.
9261 # See if we find them without any special options.
9262 # Don't add to $LIBS permanently.
9265 cat >conftest.
$ac_ext <<_ACEOF
9268 cat confdefs.h
>>conftest.
$ac_ext
9269 cat >>conftest.
$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271 #include <X11/Intrinsic.h>
9280 rm -f conftest.
$ac_objext conftest
$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1
>conftest.err
9286 cat conftest.err
>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try
='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try
='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9303 # We can link X programs with no special library path.
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.
$ac_ext >&5
9310 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9312 # Don't even attempt the hair of trying to link an X program!
9313 for ac_extension
in a so sl
; do
9314 if test -r $ac_dir/libXt.
$ac_extension; then
9315 ac_x_libraries
=$ac_dir
9321 rm -f conftest.err conftest.
$ac_objext \
9322 conftest
$ac_exeext conftest.
$ac_ext
9323 fi # $ac_x_libraries = no
9325 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9326 # Didn't find X anywhere. Cache the known absence of X.
9327 ac_cv_have_x
="have_x=no"
9329 # Record where we found X for the cache.
9330 ac_cv_have_x
="have_x=yes \
9331 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9336 eval "$ac_cv_have_x"
9339 if test "$have_x" != yes; then
9340 echo "$as_me:$LINENO: result: $have_x" >&5
9341 echo "${ECHO_T}$have_x" >&6
9344 # If each of the values was on the command line, it overrides each guess.
9345 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9346 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9347 # Update the cache value to reflect the command line values.
9348 ac_cv_have_x
="have_x=yes \
9349 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9350 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9351 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9354 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9355 # for constant arguments. Useless!
9356 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9357 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9358 if test "${ac_cv_working_alloca_h+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 cat >conftest.
$ac_ext <<_ACEOF
9364 cat confdefs.h
>>conftest.
$ac_ext
9365 cat >>conftest.
$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9371 char *p = (char *) alloca (2 * sizeof (int));
9376 rm -f conftest.
$ac_objext conftest
$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1
>conftest.err
9382 cat conftest.err
>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try
='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try
='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_working_alloca_h
=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.
$ac_ext >&5
9403 ac_cv_working_alloca_h
=no
9405 rm -f conftest.err conftest.
$ac_objext \
9406 conftest
$ac_exeext conftest.
$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9409 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9410 if test $ac_cv_working_alloca_h = yes; then
9412 cat >>confdefs.h
<<\_ACEOF
9413 #define HAVE_ALLOCA_H 1
9418 echo "$as_me:$LINENO: checking for alloca" >&5
9419 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9420 if test "${ac_cv_func_alloca_works+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 cat >conftest.
$ac_ext <<_ACEOF
9426 cat confdefs.h
>>conftest.
$ac_ext
9427 cat >>conftest.
$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 # define alloca __builtin_alloca
9433 # include <malloc.h>
9434 # define alloca _alloca
9437 # include <alloca.h>
9442 # ifndef alloca /* predefined by HP cc +Olibcalls */
9453 char *p = (char *) alloca (1);
9458 rm -f conftest.
$ac_objext conftest
$ac_exeext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460 (eval $ac_link) 2>conftest.er1
9462 grep -v '^ *+' conftest.er1
>conftest.err
9464 cat conftest.err
>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try
='test -z "$ac_c_werror_flag"
9468 || test ! -s conftest.err'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try
='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_func_alloca_works
=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.
$ac_ext >&5
9485 ac_cv_func_alloca_works
=no
9487 rm -f conftest.err conftest.
$ac_objext \
9488 conftest
$ac_exeext conftest.
$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9493 if test $ac_cv_func_alloca_works = yes; then
9495 cat >>confdefs.h
<<\_ACEOF
9496 #define HAVE_ALLOCA 1
9500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9501 # that cause trouble. Some versions do not even contain alloca or
9502 # contain a buggy version. If you still want to use their alloca,
9503 # use ar to extract alloca.o from them instead of compiling alloca.c.
9505 ALLOCA
=alloca.
$ac_objext
9507 cat >>confdefs.h
<<\_ACEOF
9512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9514 if test "${ac_cv_os_cray+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 cat >conftest.
$ac_ext <<_ACEOF
9520 cat confdefs.h
>>conftest.
$ac_ext
9521 cat >>conftest.
$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 #if defined(CRAY) && ! defined(CRAY2)
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 $EGREP "webecray" >/dev
/null
2>&1; then
9539 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9540 echo "${ECHO_T}$ac_cv_os_cray" >&6
9541 if test $ac_cv_os_cray = yes; then
9542 for ac_func
in _getb67 GETB67 getb67
; do
9543 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9544 echo "$as_me:$LINENO: checking for $ac_func" >&5
9545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9546 if eval "test \"\${$as_ac_var+set}\" = set"; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.
$ac_ext <<_ACEOF
9552 cat confdefs.h
>>conftest.
$ac_ext
9553 cat >>conftest.
$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557 #define $ac_func innocuous_$ac_func
9559 /* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char $ac_func (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9565 # include <limits.h>
9567 # include <assert.h>
9572 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9580 /* The GNU C library defines this for functions which it implements
9581 to always fail with ENOSYS. Some functions are actually named
9582 something starting with __ and the normal name is an alias. */
9583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9586 char (*f) () = $ac_func;
9595 return f != $ac_func;
9600 rm -f conftest.
$ac_objext conftest
$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1
>conftest.err
9606 cat conftest.err
>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try
='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try
='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 eval "$as_ac_var=yes"
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.
$ac_ext >&5
9627 eval "$as_ac_var=no"
9629 rm -f conftest.err conftest.
$ac_objext \
9630 conftest
$ac_exeext conftest.
$ac_ext
9632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9634 if test `eval echo '${'$as_ac_var'}'` = yes; then
9636 cat >>confdefs.h
<<_ACEOF
9637 #define CRAY_STACKSEG_END $ac_func
9646 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9647 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9648 if test "${ac_cv_c_stack_direction+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 if test "$cross_compiling" = yes; then
9652 ac_cv_c_stack_direction
=0
9654 cat >conftest.
$ac_ext <<_ACEOF
9657 cat confdefs.h
>>conftest.
$ac_ext
9658 cat >>conftest.
$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 find_stack_direction ()
9663 static char *addr = 0;
9668 return find_stack_direction ();
9671 return (&dummy > addr) ? 1 : -1;
9677 exit (find_stack_direction () < 0);
9680 rm -f conftest
$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_c_stack_direction
=1
9693 echo "$as_me: program exited with status $ac_status" >&5
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9698 ac_cv_c_stack_direction
=-1
9700 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9704 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9706 cat >>confdefs.h
<<_ACEOF
9707 #define STACK_DIRECTION $ac_cv_c_stack_direction
9719 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9720 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9722 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.
$ac_ext <<_ACEOF
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <sys/types.h>
9744 rm -f conftest.
$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1
>conftest.err
9750 cat conftest.err
>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try
='test -z "$ac_c_werror_flag"
9754 || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } &&
9760 { ac_try
='test -s conftest.$ac_objext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 eval "$as_ac_Header=yes"
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.
$ac_ext >&5
9771 eval "$as_ac_Header=no"
9773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778 cat >>confdefs.h
<<_ACEOF
9779 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9782 ac_header_dirent
=$ac_hdr; break
9786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9787 if test $ac_header_dirent = dirent.h
; then
9788 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9789 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9790 if test "${ac_cv_search_opendir+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_func_search_save_LIBS
=$LIBS
9794 ac_cv_search_opendir
=no
9795 cat >conftest.
$ac_ext <<_ACEOF
9798 cat confdefs.h
>>conftest.
$ac_ext
9799 cat >>conftest.
$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.
$ac_objext conftest
$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try
='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try
='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_opendir
="none required"
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.
$ac_ext >&5
9845 rm -f conftest.err conftest.
$ac_objext \
9846 conftest
$ac_exeext conftest.
$ac_ext
9847 if test "$ac_cv_search_opendir" = no
; then
9848 for ac_lib
in dir
; do
9849 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9850 cat >conftest.
$ac_ext <<_ACEOF
9853 cat confdefs.h
>>conftest.
$ac_ext
9854 cat >>conftest.
$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9857 /* Override any gcc2 internal prototype to avoid an error. */
9861 /* We use char because int might match the return type of a gcc2
9862 builtin and then its argument prototype would still apply. */
9872 rm -f conftest.
$ac_objext conftest
$ac_exeext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874 (eval $ac_link) 2>conftest.er1
9876 grep -v '^ *+' conftest.er1
>conftest.err
9878 cat conftest.err
>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try
='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try
='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_search_opendir
="-l$ac_lib"
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.
$ac_ext >&5
9901 rm -f conftest.err conftest.
$ac_objext \
9902 conftest
$ac_exeext conftest.
$ac_ext
9905 LIBS
=$ac_func_search_save_LIBS
9907 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9908 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9909 if test "$ac_cv_search_opendir" != no
; then
9910 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9915 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9917 if test "${ac_cv_search_opendir+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 ac_func_search_save_LIBS
=$LIBS
9921 ac_cv_search_opendir
=no
9922 cat >conftest.
$ac_ext <<_ACEOF
9925 cat confdefs.h
>>conftest.
$ac_ext
9926 cat >>conftest.
$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9929 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9944 rm -f conftest.
$ac_objext conftest
$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946 (eval $ac_link) 2>conftest.er1
9948 grep -v '^ *+' conftest.er1
>conftest.err
9950 cat conftest.err
>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try
='test -z "$ac_c_werror_flag"
9954 || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try
='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_search_opendir
="none required"
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.
$ac_ext >&5
9972 rm -f conftest.err conftest.
$ac_objext \
9973 conftest
$ac_exeext conftest.
$ac_ext
9974 if test "$ac_cv_search_opendir" = no
; then
9976 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9977 cat >conftest.
$ac_ext <<_ACEOF
9980 cat confdefs.h
>>conftest.
$ac_ext
9981 cat >>conftest.
$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.
$ac_objext conftest
$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1
>conftest.err
10005 cat conftest.err
>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try
='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try
='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_search_opendir
="-l$ac_lib"
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.
$ac_ext >&5
10028 rm -f conftest.err conftest.
$ac_objext \
10029 conftest
$ac_exeext conftest.
$ac_ext
10032 LIBS
=$ac_func_search_save_LIBS
10034 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10035 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10036 if test "$ac_cv_search_opendir" != no
; then
10037 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
10043 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10045 if test "${ac_cv_header_stdc+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 cat >conftest.
$ac_ext <<_ACEOF
10051 cat confdefs.h
>>conftest.
$ac_ext
10052 cat >>conftest.
$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 #include <stdlib.h>
10055 #include <stdarg.h>
10056 #include <string.h>
10067 rm -f conftest.
$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>conftest.er1
10071 grep -v '^ *+' conftest.er1
>conftest.err
10073 cat conftest.err
>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try
='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try
='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_header_stdc
=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10094 ac_cv_header_stdc
=no
10096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10098 if test $ac_cv_header_stdc = yes; then
10099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10100 cat >conftest.
$ac_ext <<_ACEOF
10103 cat confdefs.h
>>conftest.
$ac_ext
10104 cat >>conftest.
$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 #include <string.h>
10109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10110 $EGREP "memchr" >/dev
/null
2>&1; then
10113 ac_cv_header_stdc
=no
10119 if test $ac_cv_header_stdc = yes; then
10120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10121 cat >conftest.
$ac_ext <<_ACEOF
10124 cat confdefs.h
>>conftest.
$ac_ext
10125 cat >>conftest.
$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131 $EGREP "free" >/dev
/null
2>&1; then
10134 ac_cv_header_stdc
=no
10140 if test $ac_cv_header_stdc = yes; then
10141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10142 if test "$cross_compiling" = yes; then
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 #if ((' ' & 0x0FF) == 0x020)
10153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10156 # define ISLOWER(c) \
10157 (('a' <= (c) && (c) <= 'i') \
10158 || ('j' <= (c) && (c) <= 'r') \
10159 || ('s' <= (c) && (c) <= 'z'))
10160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10168 for (i = 0; i < 256; i++)
10169 if (XOR (islower (i), ISLOWER (i))
10170 || toupper (i) != TOUPPER (i))
10175 rm -f conftest
$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10188 echo "$as_me: program exited with status $ac_status" >&5
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.
$ac_ext >&5
10192 ( exit $ac_status )
10193 ac_cv_header_stdc
=no
10195 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10200 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10201 if test $ac_cv_header_stdc = yes; then
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define STDC_HEADERS 1
10241 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
10243 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10245 echo "$as_me:$LINENO: checking for $ac_header" >&5
10246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253 # Is the header compilable?
10254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10256 cat >conftest.
$ac_ext <<_ACEOF
10259 cat confdefs.h
>>conftest.
$ac_ext
10260 cat >>conftest.
$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 #include <$ac_header>
10265 rm -f conftest.
$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try
='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try
='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_header_compiler
=yes
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.
$ac_ext >&5
10292 ac_header_compiler
=no
10294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10296 echo "${ECHO_T}$ac_header_compiler" >&6
10298 # Is the header present?
10299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10301 cat >conftest.
$ac_ext <<_ACEOF
10304 cat confdefs.h
>>conftest.
$ac_ext
10305 cat >>conftest.
$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 #include <$ac_header>
10309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1
>conftest.err
10314 cat conftest.err
>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } >/dev
/null
; then
10317 if test -s conftest.err
; then
10318 ac_cpp_err
=$ac_c_preproc_warn_flag
10319 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10326 if test -z "$ac_cpp_err"; then
10327 ac_header_preproc
=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.
$ac_ext >&5
10332 ac_header_preproc
=no
10334 rm -f conftest.err conftest.
$ac_ext
10335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10336 echo "${ECHO_T}$ac_header_preproc" >&6
10338 # So? What about this header?
10339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10345 ac_header_preproc
=yes
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362 ## ------------------------------ ##
10363 ## Report this to admin@amule.org ##
10364 ## ------------------------------ ##
10367 sed "s/^/$as_me: WARNING: /" >&2
10370 echo "$as_me:$LINENO: checking for $ac_header" >&5
10371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 eval "$as_ac_Header=\$ac_header_preproc"
10377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10382 cat >>confdefs.h
<<_ACEOF
10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10390 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10391 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10392 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 cat >conftest.
$ac_ext <<_ACEOF
10398 cat confdefs.h
>>conftest.
$ac_ext
10399 cat >>conftest.
$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 #include <sys/types.h>
10402 #include <sys/wait.h>
10403 #ifndef WEXITSTATUS
10404 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10407 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10415 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10420 rm -f conftest.
$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>conftest.er1
10424 grep -v '^ *+' conftest.er1
>conftest.err
10426 cat conftest.err
>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try
='test -z "$ac_c_werror_flag"
10430 || test ! -s conftest.err'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; } &&
10436 { ac_try
='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_header_sys_wait_h
=yes
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.
$ac_ext >&5
10447 ac_cv_header_sys_wait_h
=no
10449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10452 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10453 if test $ac_cv_header_sys_wait_h = yes; then
10455 cat >>confdefs.h
<<\_ACEOF
10456 #define HAVE_SYS_WAIT_H 1
10462 # Checks for typedefs, structures, and compiler characteristics.
10463 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10464 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10465 if test "${ac_cv_header_stdbool_h+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 cat >conftest.
$ac_ext <<_ACEOF
10471 cat confdefs.h
>>conftest.
$ac_ext
10472 cat >>conftest.
$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 #include <stdbool.h>
10477 # error bool is not defined
10480 # error false is not defined
10483 # error false is not 0
10486 # error true is not defined
10489 # error true is not 1
10491 #ifndef __bool_true_false_are_defined
10492 # error __bool_true_false_are_defined is not defined
10495 struct s { _Bool s: 1; _Bool t; } s;
10497 char a[true == 1 ? 1 : -1];
10498 char b[false == 0 ? 1 : -1];
10499 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10500 char d[(bool) -0.5 == true ? 1 : -1];
10502 char f[(_Bool) -0.0 == false ? 1 : -1];
10504 char h[sizeof (_Bool)];
10505 char i[sizeof s.t];
10510 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10515 rm -f conftest.
$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>conftest.er1
10519 grep -v '^ *+' conftest.er1
>conftest.err
10521 cat conftest.err
>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try
='test -z "$ac_c_werror_flag"
10525 || test ! -s conftest.err'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try
='test -s conftest.$ac_objext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_cv_header_stdbool_h
=yes
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.
$ac_ext >&5
10542 ac_cv_header_stdbool_h
=no
10544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10546 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10547 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10548 echo "$as_me:$LINENO: checking for _Bool" >&5
10549 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10550 if test "${ac_cv_type__Bool+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 cat >conftest.
$ac_ext <<_ACEOF
10556 cat confdefs.h
>>conftest.
$ac_ext
10557 cat >>conftest.
$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 $ac_includes_default
10565 if (sizeof (_Bool))
10571 rm -f conftest.
$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10575 grep -v '^ *+' conftest.er1
>conftest.err
10577 cat conftest.err
>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try
='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try
='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_cv_type__Bool
=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.
$ac_ext >&5
10598 ac_cv_type__Bool
=no
10600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10602 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10603 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10604 if test $ac_cv_type__Bool = yes; then
10606 cat >>confdefs.h
<<_ACEOF
10607 #define HAVE__BOOL 1
10613 if test $ac_cv_header_stdbool_h = yes; then
10615 cat >>confdefs.h
<<\_ACEOF
10616 #define HAVE_STDBOOL_H 1
10621 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10623 if test "${ac_cv_c_const+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10629 cat confdefs.h
>>conftest.
$ac_ext
10630 cat >>conftest.
$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10636 /* FIXME: Include the comments suggested by Paul. */
10637 #ifndef __cplusplus
10638 /* Ultrix mips cc rejects this. */
10639 typedef int charset[2];
10641 /* SunOS 4.1.1 cc rejects this. */
10642 char const *const *ccp;
10644 /* NEC SVR4.0.2 mips cc rejects this. */
10645 struct point {int x, y;};
10646 static struct point const zero = {0,0};
10647 /* AIX XL C 1.02.0.0 rejects this.
10648 It does not let you subtract one const X* pointer from another in
10649 an arm of an if-expression whose if-part is not a constant
10651 const char *g = "string";
10652 ccp = &g + (g ? g-g : 0);
10653 /* HPUX 7.0 cc rejects these. */
10656 ccp = (char const *const *) p;
10657 { /* SCO 3.2v4 cc rejects this. */
10659 char const *s = 0 ? (char *) 0 : (char const *) 0;
10663 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10664 int x[] = {25, 17};
10665 const int *foo = &x[0];
10668 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10669 typedef const int *iptr;
10673 { /* AIX XL C 1.02.0.0 rejects this saying
10674 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10675 struct s { int j; const int *ap[3]; };
10676 struct s *b; b->j = 5;
10678 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10679 const int foo = 10;
10687 rm -f conftest.
$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>conftest.er1
10691 grep -v '^ *+' conftest.er1
>conftest.err
10693 cat conftest.err
>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try
='test -z "$ac_c_werror_flag"
10697 || test ! -s conftest.err'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try
='test -s conftest.$ac_objext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.
$ac_ext >&5
10716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10718 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10719 echo "${ECHO_T}$ac_cv_c_const" >&6
10720 if test $ac_cv_c_const = no
; then
10722 cat >>confdefs.h
<<\_ACEOF
10728 echo "$as_me:$LINENO: checking for inline" >&5
10729 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10730 if test "${ac_cv_c_inline+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 for ac_kw
in inline __inline__ __inline
; do
10735 cat >conftest.
$ac_ext <<_ACEOF
10738 cat confdefs.h
>>conftest.
$ac_ext
10739 cat >>conftest.
$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 #ifndef __cplusplus
10743 static $ac_kw foo_t static_foo () {return 0; }
10744 $ac_kw foo_t foo () {return 0; }
10748 rm -f conftest.
$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10752 grep -v '^ *+' conftest.er1
>conftest.err
10754 cat conftest.err
>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try
='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try
='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_c_inline
=$ac_kw; break
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10780 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10781 echo "${ECHO_T}$ac_cv_c_inline" >&6
10784 case $ac_cv_c_inline in
10787 case $ac_cv_c_inline in
10789 *) ac_val
=$ac_cv_c_inline;;
10791 cat >>confdefs.h
<<_ACEOF
10792 #ifndef __cplusplus
10793 #define inline $ac_val
10799 echo "$as_me:$LINENO: checking for mode_t" >&5
10800 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10801 if test "${ac_cv_type_mode_t+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.
$ac_ext <<_ACEOF
10807 cat confdefs.h
>>conftest.
$ac_ext
10808 cat >>conftest.
$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10816 if (sizeof (mode_t))
10822 rm -f conftest.
$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>conftest.er1
10826 grep -v '^ *+' conftest.er1
>conftest.err
10828 cat conftest.err
>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try
='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try
='test -s conftest.$ac_objext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_type_mode_t
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 ac_cv_type_mode_t
=no
10851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10853 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10854 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10855 if test $ac_cv_type_mode_t = yes; then
10859 cat >>confdefs.h
<<_ACEOF
10865 echo "$as_me:$LINENO: checking for off_t" >&5
10866 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10867 if test "${ac_cv_type_off_t+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.
$ac_ext <<_ACEOF
10873 cat confdefs.h
>>conftest.
$ac_ext
10874 cat >>conftest.
$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10882 if (sizeof (off_t))
10888 rm -f conftest.
$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10892 grep -v '^ *+' conftest.er1
>conftest.err
10894 cat conftest.err
>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try
='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try
='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_type_off_t
=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.
$ac_ext >&5
10915 ac_cv_type_off_t
=no
10917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10919 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10920 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10921 if test $ac_cv_type_off_t = yes; then
10925 cat >>confdefs.h
<<_ACEOF
10931 echo "$as_me:$LINENO: checking for size_t" >&5
10932 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10933 if test "${ac_cv_type_size_t+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 cat >conftest.
$ac_ext <<_ACEOF
10939 cat confdefs.h
>>conftest.
$ac_ext
10940 cat >>conftest.
$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 $ac_includes_default
10948 if (sizeof (size_t))
10954 rm -f conftest.
$ac_objext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>conftest.er1
10958 grep -v '^ *+' conftest.er1
>conftest.err
10960 cat conftest.err
>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try
='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try
='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_type_size_t
=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10981 ac_cv_type_size_t
=no
10983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10985 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10986 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10987 if test $ac_cv_type_size_t = yes; then
10991 cat >>confdefs.h
<<_ACEOF
10992 #define size_t unsigned
10997 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10998 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10999 if test "${ac_cv_header_time+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.
$ac_ext <<_ACEOF
11005 cat confdefs.h
>>conftest.
$ac_ext
11006 cat >>conftest.
$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <sys/types.h>
11009 #include <sys/time.h>
11015 if ((struct tm *) 0)
11021 rm -f conftest.
$ac_objext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>conftest.er1
11025 grep -v '^ *+' conftest.er1
>conftest.err
11027 cat conftest.err
>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try
='test -z "$ac_c_werror_flag"
11031 || test ! -s conftest.err'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; } &&
11037 { ac_try
='test -s conftest.$ac_objext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_header_time
=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.
$ac_ext >&5
11048 ac_cv_header_time
=no
11050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11053 echo "${ECHO_T}$ac_cv_header_time" >&6
11054 if test $ac_cv_header_time = yes; then
11056 cat >>confdefs.h
<<\_ACEOF
11057 #define TIME_WITH_SYS_TIME 1
11062 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11063 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11064 if test "${ac_cv_struct_tm+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 cat >conftest.
$ac_ext <<_ACEOF
11070 cat confdefs.h
>>conftest.
$ac_ext
11071 cat >>conftest.
$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 #include <sys/types.h>
11079 struct tm *tp; tp->tm_sec;
11084 rm -f conftest.
$ac_objext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11086 (eval $ac_compile) 2>conftest.er1
11088 grep -v '^ *+' conftest.er1
>conftest.err
11090 cat conftest.err
>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try
='test -z "$ac_c_werror_flag"
11094 || test ! -s conftest.err'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; } &&
11100 { ac_try
='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_cv_struct_tm
=time.h
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.
$ac_ext >&5
11111 ac_cv_struct_tm
=sys
/time.h
11113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11115 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11116 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11117 if test $ac_cv_struct_tm = sys
/time.h
; then
11119 cat >>confdefs.h
<<\_ACEOF
11120 #define TM_IN_SYS_TIME 1
11125 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11126 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11127 if test "${ac_cv_type_uid_t+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.
$ac_ext <<_ACEOF
11133 cat confdefs.h
>>conftest.
$ac_ext
11134 cat >>conftest.
$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 #include <sys/types.h>
11139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11140 $EGREP "uid_t" >/dev
/null
2>&1; then
11141 ac_cv_type_uid_t
=yes
11143 ac_cv_type_uid_t
=no
11148 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11149 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11150 if test $ac_cv_type_uid_t = no
; then
11152 cat >>confdefs.h
<<\_ACEOF
11157 cat >>confdefs.h
<<\_ACEOF
11163 echo "$as_me:$LINENO: checking for working volatile" >&5
11164 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11165 if test "${ac_cv_c_volatile+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 cat >conftest.
$ac_ext <<_ACEOF
11171 cat confdefs.h
>>conftest.
$ac_ext
11172 cat >>conftest.
$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11185 rm -f conftest.
$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11189 grep -v '^ *+' conftest.er1
>conftest.err
11191 cat conftest.err
>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try
='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try
='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_c_volatile
=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 ac_cv_c_volatile
=no
11214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11216 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11217 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11218 if test $ac_cv_c_volatile = no
; then
11220 cat >>confdefs.h
<<\_ACEOF
11226 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11227 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11228 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.
$ac_ext <<_ACEOF
11234 cat confdefs.h
>>conftest.
$ac_ext
11235 cat >>conftest.
$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11241 if ((ptrdiff_t *) 0)
11243 if (sizeof (ptrdiff_t))
11249 rm -f conftest.
$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1
>conftest.err
11255 cat conftest.err
>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try
='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try
='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_type_ptrdiff_t
=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.
$ac_ext >&5
11276 ac_cv_type_ptrdiff_t
=no
11278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11282 if test $ac_cv_type_ptrdiff_t = yes; then
11284 cat >>confdefs.h
<<_ACEOF
11285 #define HAVE_PTRDIFF_T 1
11292 # Checks for library functions.
11293 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11294 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11295 if test "${ac_cv_func_closedir_void+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test "$cross_compiling" = yes; then
11299 ac_cv_func_closedir_void
=yes
11301 cat >conftest.
$ac_ext <<_ACEOF
11304 cat confdefs.h
>>conftest.
$ac_ext
11305 cat >>conftest.
$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 #include <$ac_header_dirent>
11309 #ifndef __cplusplus
11316 exit (closedir (opendir (".")) != 0);
11321 rm -f conftest
$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_func_closedir_void
=no
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.
$ac_ext >&5
11338 ( exit $ac_status )
11339 ac_cv_func_closedir_void
=yes
11341 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11345 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11346 if test $ac_cv_func_closedir_void = yes; then
11348 cat >>confdefs.h
<<\_ACEOF
11349 #define CLOSEDIR_VOID 1
11354 if test $ac_cv_c_compiler_gnu = yes; then
11355 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11356 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11357 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 ac_pattern
="Autoconf.*'x'"
11361 cat >conftest.
$ac_ext <<_ACEOF
11364 cat confdefs.h
>>conftest.
$ac_ext
11365 cat >>conftest.
$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11371 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11372 ac_cv_prog_gcc_traditional
=yes
11374 ac_cv_prog_gcc_traditional
=no
11379 if test $ac_cv_prog_gcc_traditional = no
; then
11380 cat >conftest.
$ac_ext <<_ACEOF
11383 cat confdefs.h
>>conftest.
$ac_ext
11384 cat >>conftest.
$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 #include <termio.h>
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11391 ac_cv_prog_gcc_traditional
=yes
11397 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11398 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11399 if test $ac_cv_prog_gcc_traditional = yes; then
11400 CC
="$CC -traditional"
11404 echo "$as_me:$LINENO: checking for pid_t" >&5
11405 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11406 if test "${ac_cv_type_pid_t+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 cat >conftest.
$ac_ext <<_ACEOF
11412 cat confdefs.h
>>conftest.
$ac_ext
11413 cat >>conftest.
$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11421 if (sizeof (pid_t))
11427 rm -f conftest.
$ac_objext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11429 (eval $ac_compile) 2>conftest.er1
11431 grep -v '^ *+' conftest.er1
>conftest.err
11433 cat conftest.err
>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try
='test -z "$ac_c_werror_flag"
11437 || test ! -s conftest.err'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try
='test -s conftest.$ac_objext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_type_pid_t
=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.
$ac_ext >&5
11454 ac_cv_type_pid_t
=no
11456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11459 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11460 if test $ac_cv_type_pid_t = yes; then
11464 cat >>confdefs.h
<<_ACEOF
11472 for ac_header
in unistd.h vfork.h
11474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11476 echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11484 # Is the header compilable?
11485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11487 cat >conftest.
$ac_ext <<_ACEOF
11490 cat confdefs.h
>>conftest.
$ac_ext
11491 cat >>conftest.
$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11494 #include <$ac_header>
11496 rm -f conftest.
$ac_objext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>conftest.er1
11500 grep -v '^ *+' conftest.er1
>conftest.err
11502 cat conftest.err
>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try
='test -z "$ac_c_werror_flag"
11506 || test ! -s conftest.err'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try
='test -s conftest.$ac_objext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_header_compiler
=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.
$ac_ext >&5
11523 ac_header_compiler
=no
11525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11527 echo "${ECHO_T}$ac_header_compiler" >&6
11529 # Is the header present?
11530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 #include <$ac_header>
11540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11541 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
11548 if test -s conftest.err
; then
11549 ac_cpp_err
=$ac_c_preproc_warn_flag
11550 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11557 if test -z "$ac_cpp_err"; then
11558 ac_header_preproc
=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.
$ac_ext >&5
11563 ac_header_preproc
=no
11565 rm -f conftest.err conftest.
$ac_ext
11566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc
=yes
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11593 ## ------------------------------ ##
11594 ## Report this to admin@amule.org ##
11595 ## ------------------------------ ##
11598 sed "s/^/$as_me: WARNING: /" >&2
11601 echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 eval "$as_ac_Header=\$ac_header_preproc"
11608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11613 cat >>confdefs.h
<<_ACEOF
11614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11623 for ac_func
in fork vfork
11625 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626 echo "$as_me:$LINENO: checking for $ac_func" >&5
11627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11628 if eval "test \"\${$as_ac_var+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 cat >conftest.
$ac_ext <<_ACEOF
11634 cat confdefs.h
>>conftest.
$ac_ext
11635 cat >>conftest.
$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639 #define $ac_func innocuous_$ac_func
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char $ac_func (); below.
11643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 <limits.h> exists even on freestanding compilers. */
11647 # include <limits.h>
11649 # include <assert.h>
11654 /* Override any gcc2 internal prototype to avoid an error. */
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668 char (*f) () = $ac_func;
11677 return f != $ac_func;
11682 rm -f conftest.
$ac_objext conftest
$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1
>conftest.err
11688 cat conftest.err
>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try
='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try
='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 eval "$as_ac_var=yes"
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.
$ac_ext >&5
11709 eval "$as_ac_var=no"
11711 rm -f conftest.err conftest.
$ac_objext \
11712 conftest
$ac_exeext conftest.
$ac_ext
11714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11716 if test `eval echo '${'$as_ac_var'}'` = yes; then
11717 cat >>confdefs.h
<<_ACEOF
11718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 if test "x$ac_cv_func_fork" = xyes
; then
11725 echo "$as_me:$LINENO: checking for working fork" >&5
11726 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11727 if test "${ac_cv_func_fork_works+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 if test "$cross_compiling" = yes; then
11731 ac_cv_func_fork_works
=cross
11733 cat >conftest.
$ac_ext <<_ACEOF
11734 /* By Ruediger Kuhlmann. */
11735 #include <sys/types.h>
11737 # include <unistd.h>
11739 /* Some systems only have a dummy stub for fork() */
11747 rm -f conftest
$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_func_fork_works
=yes
11760 echo "$as_me: program exited with status $ac_status" >&5
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.
$ac_ext >&5
11764 ( exit $ac_status )
11765 ac_cv_func_fork_works
=no
11767 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11770 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11771 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11774 ac_cv_func_fork_works
=$ac_cv_func_fork
11776 if test "x$ac_cv_func_fork_works" = xcross
; then
11778 *-*-amigaos* |
*-*-msdosdjgpp*)
11779 # Override, as these systems have only a dummy fork() stub
11780 ac_cv_func_fork_works
=no
11783 ac_cv_func_fork_works
=yes
11786 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11787 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11789 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11790 if test "x$ac_cv_func_vfork" = xyes
; then
11791 echo "$as_me:$LINENO: checking for working vfork" >&5
11792 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11793 if test "${ac_cv_func_vfork_works+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 if test "$cross_compiling" = yes; then
11797 ac_cv_func_vfork_works
=cross
11799 cat >conftest.
$ac_ext <<_ACEOF
11802 cat confdefs.h
>>conftest.
$ac_ext
11803 cat >>conftest.
$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 /* Thanks to Paul Eggert for this test. */
11807 #include <stdlib.h>
11808 #include <sys/types.h>
11809 #include <sys/stat.h>
11810 #include <sys/wait.h>
11812 # include <unistd.h>
11815 # include <vfork.h>
11817 /* On some sparc systems, changes by the child to local and incoming
11818 argument registers are propagated back to the parent. The compiler
11819 is told about this with #include <vfork.h>, but some compilers
11820 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11821 static variable whose address is put into a register that is
11822 clobbered by the vfork. */
11825 sparc_address_test (int arg)
11827 sparc_address_test (arg) int arg;
11830 static pid_t child;
11848 pid_t parent = getpid ();
11851 sparc_address_test (0);
11856 /* Here is another test for sparc vfork register problems. This
11857 test uses lots of local variables, at least as many local
11858 variables as main has allocated so far including compiler
11859 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11860 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11861 reuse the register of parent for one of the local variables,
11862 since it will think that parent can't possibly be used any more
11863 in this routine. Assigning to the local variable will thus
11864 munge parent in the parent process. */
11866 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11867 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11868 /* Convince the compiler that p..p7 are live; otherwise, it might
11869 use the same hardware register for all 8 local variables. */
11870 if (p != p1 || p != p2 || p != p3 || p != p4
11871 || p != p5 || p != p6 || p != p7)
11874 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11875 from child file descriptors. If the child closes a descriptor
11876 before it execs or exits, this munges the parent's descriptor
11877 as well. Test for this by closing stdout in the child. */
11878 _exit(close(fileno(stdout)) != 0);
11883 while (wait(&status) != child)
11886 /* Was there some problem with vforking? */
11889 /* Did the child fail? (This shouldn't happen.) */
11892 /* Did the vfork/compiler bug occur? */
11893 || parent != getpid()
11895 /* Did the file descriptor bug occur? */
11896 || fstat(fileno(stdout), &st) != 0
11901 rm -f conftest
$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_func_vfork_works
=yes
11914 echo "$as_me: program exited with status $ac_status" >&5
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.
$ac_ext >&5
11918 ( exit $ac_status )
11919 ac_cv_func_vfork_works
=no
11921 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11924 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11925 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11928 if test "x$ac_cv_func_fork_works" = xcross
; then
11929 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11930 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11931 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11934 if test "x$ac_cv_func_vfork_works" = xyes
; then
11936 cat >>confdefs.h
<<\_ACEOF
11937 #define HAVE_WORKING_VFORK 1
11942 cat >>confdefs.h
<<\_ACEOF
11947 if test "x$ac_cv_func_fork_works" = xyes
; then
11949 cat >>confdefs.h
<<\_ACEOF
11950 #define HAVE_WORKING_FORK 1
11955 if test x
$SYS != xwin32
; then
11957 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11958 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11959 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11960 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 ac_check_lib_save_LIBS
=$LIBS
11965 cat >conftest.
$ac_ext <<_ACEOF
11968 cat confdefs.h
>>conftest.
$ac_ext
11969 cat >>conftest.
$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11987 rm -f conftest.
$ac_objext conftest
$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11991 grep -v '^ *+' conftest.er1
>conftest.err
11993 cat conftest.err
>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try
='test -z "$ac_c_werror_flag"
11997 || test ! -s conftest.err'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try
='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_lib_sun_getmntent
=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.
$ac_ext >&5
12014 ac_cv_lib_sun_getmntent
=no
12016 rm -f conftest.err conftest.
$ac_objext \
12017 conftest
$ac_exeext conftest.
$ac_ext
12018 LIBS
=$ac_check_lib_save_LIBS
12020 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
12021 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
12022 if test $ac_cv_lib_sun_getmntent = yes; then
12025 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
12026 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
12027 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 ac_check_lib_save_LIBS
=$LIBS
12032 cat >conftest.
$ac_ext <<_ACEOF
12035 cat confdefs.h
>>conftest.
$ac_ext
12036 cat >>conftest.
$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12054 rm -f conftest.
$ac_objext conftest
$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12058 grep -v '^ *+' conftest.er1
>conftest.err
12060 cat conftest.err
>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try
='test -z "$ac_c_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try
='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_lib_seq_getmntent
=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.
$ac_ext >&5
12081 ac_cv_lib_seq_getmntent
=no
12083 rm -f conftest.err conftest.
$ac_objext \
12084 conftest
$ac_exeext conftest.
$ac_ext
12085 LIBS
=$ac_check_lib_save_LIBS
12087 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
12088 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
12089 if test $ac_cv_lib_seq_getmntent = yes; then
12092 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
12093 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
12094 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 ac_check_lib_save_LIBS
=$LIBS
12099 cat >conftest.
$ac_ext <<_ACEOF
12102 cat confdefs.h
>>conftest.
$ac_ext
12103 cat >>conftest.
$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12106 /* Override any gcc2 internal prototype to avoid an error. */
12110 /* We use char because int might match the return type of a gcc2
12111 builtin and then its argument prototype would still apply. */
12121 rm -f conftest.
$ac_objext conftest
$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>conftest.er1
12125 grep -v '^ *+' conftest.er1
>conftest.err
12127 cat conftest.err
>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try
='test -s conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_cv_lib_gen_getmntent
=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.
$ac_ext >&5
12148 ac_cv_lib_gen_getmntent
=no
12150 rm -f conftest.err conftest.
$ac_objext \
12151 conftest
$ac_exeext conftest.
$ac_ext
12152 LIBS
=$ac_check_lib_save_LIBS
12154 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
12155 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
12156 if test $ac_cv_lib_gen_getmntent = yes; then
12165 for ac_func
in getmntent
12167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168 echo "$as_me:$LINENO: checking for $ac_func" >&5
12169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12170 if eval "test \"\${$as_ac_var+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12181 #define $ac_func innocuous_$ac_func
12183 /* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func (); below.
12185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12186 <limits.h> exists even on freestanding compilers. */
12189 # include <limits.h>
12191 # include <assert.h>
12196 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12204 /* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210 char (*f) () = $ac_func;
12219 return f != $ac_func;
12224 rm -f conftest.
$ac_objext conftest
$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>conftest.er1
12228 grep -v '^ *+' conftest.er1
>conftest.err
12230 cat conftest.err
>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try
='test -z "$ac_c_werror_flag"
12234 || test ! -s conftest.err'
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); }; } &&
12240 { ac_try
='test -s conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 eval "$as_ac_var=yes"
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.
$ac_ext >&5
12251 eval "$as_ac_var=no"
12253 rm -f conftest.err conftest.
$ac_objext \
12254 conftest
$ac_exeext conftest.
$ac_ext
12256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12258 if test `eval echo '${'$as_ac_var'}'` = yes; then
12259 cat >>confdefs.h
<<_ACEOF
12260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12267 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12268 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12269 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 rm -f conftest.sym conftest.
file
12273 echo >conftest.
file
12274 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12275 if test "$cross_compiling" = yes; then
12276 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12278 cat >conftest.
$ac_ext <<_ACEOF
12281 cat confdefs.h
>>conftest.
$ac_ext
12282 cat >>conftest.
$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12289 /* Linux will dereference the symlink and fail.
12290 That is better in the sense that it means we will not
12291 have to compile and use the lstat wrapper. */
12292 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12297 rm -f conftest
$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12310 echo "$as_me: program exited with status $ac_status" >&5
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ( exit $ac_status )
12315 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12317 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12320 # If the `ln -s' command failed, then we probably don't even
12321 # have an lstat function.
12322 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12324 rm -f conftest.sym conftest.
file
12327 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12328 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12330 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12332 cat >>confdefs.h
<<_ACEOF
12333 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12337 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12339 "lstat.$ac_objext" | \
12340 *" lstat.$ac_objext" | \
12341 "lstat.$ac_objext "* | \
12342 *" lstat.$ac_objext "* ) ;;
12343 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12348 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12349 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12350 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 if test "$cross_compiling" = yes; then
12354 ac_cv_func_lstat_empty_string_bug
=yes
12356 cat >conftest.
$ac_ext <<_ACEOF
12359 cat confdefs.h
>>conftest.
$ac_ext
12360 cat >>conftest.
$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 $ac_includes_default
12367 exit (lstat ("", &sbuf) ? 1 : 0);
12372 rm -f conftest
$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_func_lstat_empty_string_bug
=yes
12385 echo "$as_me: program exited with status $ac_status" >&5
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.
$ac_ext >&5
12389 ( exit $ac_status )
12390 ac_cv_func_lstat_empty_string_bug
=no
12392 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12395 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12396 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12397 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12399 "lstat.$ac_objext" | \
12400 *" lstat.$ac_objext" | \
12401 "lstat.$ac_objext "* | \
12402 *" lstat.$ac_objext "* ) ;;
12403 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12407 cat >>confdefs.h
<<_ACEOF
12408 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12413 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12414 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12415 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 rm -f conftest.sym conftest.
file
12419 echo >conftest.
file
12420 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12421 if test "$cross_compiling" = yes; then
12422 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12424 cat >conftest.
$ac_ext <<_ACEOF
12427 cat confdefs.h
>>conftest.
$ac_ext
12428 cat >>conftest.
$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12435 /* Linux will dereference the symlink and fail.
12436 That is better in the sense that it means we will not
12437 have to compile and use the lstat wrapper. */
12438 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12443 rm -f conftest
$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12456 echo "$as_me: program exited with status $ac_status" >&5
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.
$ac_ext >&5
12460 ( exit $ac_status )
12461 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12463 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12466 # If the `ln -s' command failed, then we probably don't even
12467 # have an lstat function.
12468 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12470 rm -f conftest.sym conftest.
file
12473 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12474 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12476 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12478 cat >>confdefs.h
<<_ACEOF
12479 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12483 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12485 "lstat.$ac_objext" | \
12486 *" lstat.$ac_objext" | \
12487 "lstat.$ac_objext "* | \
12488 *" lstat.$ac_objext "* ) ;;
12489 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12497 echo "$as_me:$LINENO: checking for working memcmp" >&5
12498 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12499 if test "${ac_cv_func_memcmp_working+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 if test "$cross_compiling" = yes; then
12503 ac_cv_func_memcmp_working
=no
12505 cat >conftest.
$ac_ext <<_ACEOF
12508 cat confdefs.h
>>conftest.
$ac_ext
12509 cat >>conftest.
$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12516 /* Some versions of memcmp are not 8-bit clean. */
12517 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12518 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12521 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12522 or more and with at least one buffer not starting on a 4-byte boundary.
12523 William Lewis provided this test program. */
12528 for (i = 0; i < 4; i++)
12532 strcpy (a, "--------01111111");
12533 strcpy (b, "--------10000000");
12534 if (memcmp (a, b, 16) >= 0)
12544 rm -f conftest
$ac_exeext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12546 (eval $ac_link) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_func_memcmp_working
=yes
12557 echo "$as_me: program exited with status $ac_status" >&5
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.
$ac_ext >&5
12561 ( exit $ac_status )
12562 ac_cv_func_memcmp_working
=no
12564 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12567 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12568 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12569 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12570 "memcmp.$ac_objext" | \
12571 *" memcmp.$ac_objext" | \
12572 "memcmp.$ac_objext "* | \
12573 *" memcmp.$ac_objext "* ) ;;
12574 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12580 for ac_header
in stdlib.h unistd.h
12582 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12584 echo "$as_me:$LINENO: checking for $ac_header" >&5
12585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12592 # Is the header compilable?
12593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12594 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12602 #include <$ac_header>
12604 rm -f conftest.
$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1
>conftest.err
12610 cat conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try
='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try
='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler
=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 ac_header_compiler
=no
12633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12640 cat >conftest.
$ac_ext <<_ACEOF
12643 cat confdefs.h
>>conftest.
$ac_ext
12644 cat >>conftest.
$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 #include <$ac_header>
12648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1
>conftest.err
12653 cat conftest.err
>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev
/null
; then
12656 if test -s conftest.err
; then
12657 ac_cpp_err
=$ac_c_preproc_warn_flag
12658 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc
=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.
$ac_ext >&5
12671 ac_header_preproc
=no
12673 rm -f conftest.err conftest.
$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12684 ac_header_preproc
=yes
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12701 ## ------------------------------ ##
12702 ## Report this to admin@amule.org ##
12703 ## ------------------------------ ##
12706 sed "s/^/$as_me: WARNING: /" >&2
12709 echo "$as_me:$LINENO: checking for $ac_header" >&5
12710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 eval "$as_ac_Header=\$ac_header_preproc"
12716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12721 cat >>confdefs.h
<<_ACEOF
12722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12730 for ac_func
in getpagesize
12732 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733 echo "$as_me:$LINENO: checking for $ac_func" >&5
12734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_var+set}\" = set"; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 cat >conftest.
$ac_ext <<_ACEOF
12741 cat confdefs.h
>>conftest.
$ac_ext
12742 cat >>conftest.
$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12746 #define $ac_func innocuous_$ac_func
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char $ac_func (); below.
12750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12751 <limits.h> exists even on freestanding compilers. */
12754 # include <limits.h>
12756 # include <assert.h>
12761 /* Override any gcc2 internal prototype to avoid an error. */
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12769 /* The GNU C library defines this for functions which it implements
12770 to always fail with ENOSYS. Some functions are actually named
12771 something starting with __ and the normal name is an alias. */
12772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12775 char (*f) () = $ac_func;
12784 return f != $ac_func;
12789 rm -f conftest.
$ac_objext conftest
$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>conftest.er1
12793 grep -v '^ *+' conftest.er1
>conftest.err
12795 cat conftest.err
>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try
='test -z "$ac_c_werror_flag"
12799 || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try
='test -s conftest$ac_exeext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 eval "$as_ac_var=yes"
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12816 eval "$as_ac_var=no"
12818 rm -f conftest.err conftest.
$ac_objext \
12819 conftest
$ac_exeext conftest.
$ac_ext
12821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12823 if test `eval echo '${'$as_ac_var'}'` = yes; then
12824 cat >>confdefs.h
<<_ACEOF
12825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12831 echo "$as_me:$LINENO: checking for working mmap" >&5
12832 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12833 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 if test "$cross_compiling" = yes; then
12837 ac_cv_func_mmap_fixed_mapped
=no
12839 cat >conftest.
$ac_ext <<_ACEOF
12842 cat confdefs.h
>>conftest.
$ac_ext
12843 cat >>conftest.
$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 $ac_includes_default
12846 /* malloc might have been renamed as rpl_malloc. */
12849 /* Thanks to Mike Haertel and Jim Avera for this test.
12850 Here is a matrix of mmap possibilities:
12851 mmap private not fixed
12852 mmap private fixed at somewhere currently unmapped
12853 mmap private fixed at somewhere already mapped
12854 mmap shared not fixed
12855 mmap shared fixed at somewhere currently unmapped
12856 mmap shared fixed at somewhere already mapped
12857 For private mappings, we should verify that changes cannot be read()
12858 back from the file, nor mmap's back from the file at a different
12859 address. (There have been systems where private was not correctly
12860 implemented like the infamous i386 svr4.0, and systems where the
12861 VM page cache was not coherent with the file system buffer cache
12862 like early versions of FreeBSD and possibly contemporary NetBSD.)
12863 For shared mappings, we should conversely verify that changes get
12864 propagated back to all the places they're supposed to be.
12866 Grep wants private fixed already mapped.
12867 The main things grep needs to know about mmap are:
12868 * does it exist and is it safe to write into the mmap'd area
12869 * how to use it (BSD variants) */
12872 #include <sys/mman.h>
12874 #if !STDC_HEADERS && !HAVE_STDLIB_H
12878 /* This mess was copied from the GNU getpagesize.h. */
12879 #if !HAVE_GETPAGESIZE
12880 /* Assume that all systems that can run configure have sys/param.h. */
12881 # if !HAVE_SYS_PARAM_H
12882 # define HAVE_SYS_PARAM_H 1
12885 # ifdef _SC_PAGESIZE
12886 # define getpagesize() sysconf(_SC_PAGESIZE)
12887 # else /* no _SC_PAGESIZE */
12888 # if HAVE_SYS_PARAM_H
12889 # include <sys/param.h>
12890 # ifdef EXEC_PAGESIZE
12891 # define getpagesize() EXEC_PAGESIZE
12892 # else /* no EXEC_PAGESIZE */
12894 # define getpagesize() NBPG * CLSIZE
12897 # endif /* no CLSIZE */
12898 # else /* no NBPG */
12900 # define getpagesize() NBPC
12901 # else /* no NBPC */
12903 # define getpagesize() PAGESIZE
12904 # endif /* PAGESIZE */
12905 # endif /* no NBPC */
12906 # endif /* no NBPG */
12907 # endif /* no EXEC_PAGESIZE */
12908 # else /* no HAVE_SYS_PARAM_H */
12909 # define getpagesize() 8192 /* punt totally */
12910 # endif /* no HAVE_SYS_PARAM_H */
12911 # endif /* no _SC_PAGESIZE */
12913 #endif /* no HAVE_GETPAGESIZE */
12918 char *data, *data2, *data3;
12922 pagesize = getpagesize ();
12924 /* First, make a file with some known garbage in it. */
12925 data = (char *) malloc (pagesize);
12928 for (i = 0; i < pagesize; ++i)
12929 *(data + i) = rand ();
12931 fd = creat ("conftest.mmap", 0600);
12934 if (write (fd, data, pagesize) != pagesize)
12938 /* Next, try to mmap the file at a fixed address which already has
12939 something else allocated at it. If we can, also make sure that
12940 we see the same garbage. */
12941 fd = open ("conftest.mmap", O_RDWR);
12944 data2 = (char *) malloc (2 * pagesize);
12947 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12949 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12951 for (i = 0; i < pagesize; ++i)
12952 if (*(data + i) != *(data2 + i))
12955 /* Finally, make sure that changes to the mapped area do not
12956 percolate back to the file as seen by read(). (This is a bug on
12957 some variants of i386 svr4.0.) */
12958 for (i = 0; i < pagesize; ++i)
12959 *(data2 + i) = *(data2 + i) + 1;
12960 data3 = (char *) malloc (pagesize);
12963 if (read (fd, data3, pagesize) != pagesize)
12965 for (i = 0; i < pagesize; ++i)
12966 if (*(data + i) != *(data3 + i))
12972 rm -f conftest
$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_func_mmap_fixed_mapped
=yes
12985 echo "$as_me: program exited with status $ac_status" >&5
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.
$ac_ext >&5
12989 ( exit $ac_status )
12990 ac_cv_func_mmap_fixed_mapped
=no
12992 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12995 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12996 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12997 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12999 cat >>confdefs.h
<<\_ACEOF
13000 #define HAVE_MMAP 1
13004 rm -f conftest.mmap
13008 for ac_header
in sys
/select.h sys
/socket.h
13010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012 echo "$as_me:$LINENO: checking for $ac_header" >&5
13013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13020 # Is the header compilable?
13021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13023 cat >conftest.
$ac_ext <<_ACEOF
13026 cat confdefs.h
>>conftest.
$ac_ext
13027 cat >>conftest.
$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 #include <$ac_header>
13032 rm -f conftest.
$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1
>conftest.err
13038 cat conftest.err
>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try
='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try
='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_header_compiler
=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13059 ac_header_compiler
=no
13061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13063 echo "${ECHO_T}$ac_header_compiler" >&6
13065 # Is the header present?
13066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13068 cat >conftest.
$ac_ext <<_ACEOF
13071 cat confdefs.h
>>conftest.
$ac_ext
13072 cat >>conftest.
$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 #include <$ac_header>
13076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13079 grep -v '^ *+' conftest.er1
>conftest.err
13081 cat conftest.err
>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } >/dev
/null
; then
13084 if test -s conftest.err
; then
13085 ac_cpp_err
=$ac_c_preproc_warn_flag
13086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13093 if test -z "$ac_cpp_err"; then
13094 ac_header_preproc
=yes
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.
$ac_ext >&5
13099 ac_header_preproc
=no
13101 rm -f conftest.err conftest.
$ac_ext
13102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13103 echo "${ECHO_T}$ac_header_preproc" >&6
13105 # So? What about this header?
13106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13112 ac_header_preproc
=yes
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13129 ## ------------------------------ ##
13130 ## Report this to admin@amule.org ##
13131 ## ------------------------------ ##
13134 sed "s/^/$as_me: WARNING: /" >&2
13137 echo "$as_me:$LINENO: checking for $ac_header" >&5
13138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 eval "$as_ac_Header=\$ac_header_preproc"
13144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13149 cat >>confdefs.h
<<_ACEOF
13150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13157 echo "$as_me:$LINENO: checking types of arguments for select" >&5
13158 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
13159 if test "${ac_cv_func_select_args+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
13163 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
13164 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
13165 cat >conftest.
$ac_ext <<_ACEOF
13168 cat confdefs.h
>>conftest.
$ac_ext
13169 cat >>conftest.
$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #if HAVE_SYS_SELECT_H
13173 # include <sys/select.h>
13175 #if HAVE_SYS_SOCKET_H
13176 # include <sys/socket.h>
13182 extern int select ($ac_arg1,
13183 $ac_arg234, $ac_arg234, $ac_arg234,
13189 rm -f conftest.
$ac_objext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191 (eval $ac_compile) 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_objext'
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 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.
$ac_ext >&5
13217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13221 # Provide a safe default value.
13222 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13225 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13226 echo "${ECHO_T}$ac_cv_func_select_args" >&6
13227 ac_save_IFS
=$IFS; IFS
=','
13228 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13232 cat >>confdefs.h
<<_ACEOF
13233 #define SELECT_TYPE_ARG1 $1
13237 cat >>confdefs.h
<<_ACEOF
13238 #define SELECT_TYPE_ARG234 ($2)
13242 cat >>confdefs.h
<<_ACEOF
13243 #define SELECT_TYPE_ARG5 ($3)
13248 echo "$as_me:$LINENO: checking for function prototypes" >&5
13249 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13250 if test "$ac_cv_prog_cc_stdc" != no
; then
13251 echo "$as_me:$LINENO: result: yes" >&5
13252 echo "${ECHO_T}yes" >&6
13254 cat >>confdefs.h
<<\_ACEOF
13255 #define PROTOTYPES 1
13259 cat >>confdefs.h
<<\_ACEOF
13260 #define __PROTOTYPES 1
13264 echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6
13268 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13269 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13270 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_cv_func_setvbuf_reversed
=no
13274 cat >conftest.
$ac_ext <<_ACEOF
13277 cat confdefs.h
>>conftest.
$ac_ext
13278 cat >>conftest.
$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13282 int (setvbuf) (FILE *, int, char *, size_t);
13287 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13292 rm -f conftest.
$ac_objext conftest
$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1
>conftest.err
13298 cat conftest.err
>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try
='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try
='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 cat >conftest.
$ac_ext <<_ACEOF
13317 cat confdefs.h
>>conftest.
$ac_ext
13318 cat >>conftest.
$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13322 int (setvbuf) (FILE *, int, char *, size_t);
13327 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13332 rm -f conftest.
$ac_objext conftest
$ac_exeext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334 (eval $ac_link) 2>conftest.er1
13336 grep -v '^ *+' conftest.er1
>conftest.err
13338 cat conftest.err
>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try
='test -z "$ac_c_werror_flag"
13342 || test ! -s conftest.err'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try
='test -s conftest$ac_exeext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 # It compiles and links either way, so it must not be declared
13355 # with a prototype and most likely this is a K&R C compiler.
13357 if test "$cross_compiling" = yes; then
13358 : # Assume setvbuf is not reversed when cross-compiling.
13360 cat >conftest.
$ac_ext <<_ACEOF
13363 cat confdefs.h
>>conftest.
$ac_ext
13364 cat >>conftest.
$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13370 /* This call has the arguments reversed.
13371 A reversed system may check and see that the address of buf
13372 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13374 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13377 exit (0); /* Non-reversed systems SEGV here. */
13382 rm -f conftest
$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_func_setvbuf_reversed
=yes
13395 echo "$as_me: program exited with status $ac_status" >&5
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.
$ac_ext >&5
13399 ( exit $ac_status )
13402 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13404 ac_cv_func_setvbuf_reversed
=yes
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.
$ac_ext >&5
13410 rm -f conftest.err conftest.
$ac_objext \
13411 conftest
$ac_exeext conftest.
$ac_ext
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.
$ac_ext >&5
13417 rm -f conftest.err conftest.
$ac_objext \
13418 conftest
$ac_exeext conftest.
$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13421 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13422 if test $ac_cv_func_setvbuf_reversed = yes; then
13424 cat >>confdefs.h
<<\_ACEOF
13425 #define SETVBUF_REVERSED 1
13430 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13431 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13432 if test "${ac_cv_type_signal+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 cat >conftest.
$ac_ext <<_ACEOF
13438 cat confdefs.h
>>conftest.
$ac_ext
13439 cat >>conftest.
$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 #include <sys/types.h>
13442 #include <signal.h>
13447 extern "C" void (*signal (int, void (*)(int)))(int);
13449 void (*signal ()) ();
13460 rm -f conftest.
$ac_objext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>conftest.er1
13464 grep -v '^ *+' conftest.er1
>conftest.err
13466 cat conftest.err
>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try
='test -z "$ac_c_werror_flag"
13470 || test ! -s conftest.err'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try
='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_type_signal
=void
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.
$ac_ext >&5
13487 ac_cv_type_signal
=int
13489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13492 echo "${ECHO_T}$ac_cv_type_signal" >&6
13494 cat >>confdefs.h
<<_ACEOF
13495 #define RETSIGTYPE $ac_cv_type_signal
13499 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13500 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13501 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 if test "$cross_compiling" = yes; then
13505 ac_cv_func_stat_empty_string_bug
=yes
13507 cat >conftest.
$ac_ext <<_ACEOF
13510 cat confdefs.h
>>conftest.
$ac_ext
13511 cat >>conftest.
$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13518 exit (stat ("", &sbuf) ? 1 : 0);
13523 rm -f conftest
$ac_exeext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_func_stat_empty_string_bug
=yes
13536 echo "$as_me: program exited with status $ac_status" >&5
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.
$ac_ext >&5
13540 ( exit $ac_status )
13541 ac_cv_func_stat_empty_string_bug
=no
13543 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13547 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13548 if test $ac_cv_func_stat_empty_string_bug = yes; then
13550 "stat.$ac_objext" | \
13551 *" stat.$ac_objext" | \
13552 "stat.$ac_objext "* | \
13553 *" stat.$ac_objext "* ) ;;
13554 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
13558 cat >>confdefs.h
<<_ACEOF
13559 #define HAVE_STAT_EMPTY_STRING_BUG 1
13565 for ac_func
in strftime
13567 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13568 echo "$as_me:$LINENO: checking for $ac_func" >&5
13569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_var+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 cat >conftest.
$ac_ext <<_ACEOF
13576 cat confdefs.h
>>conftest.
$ac_ext
13577 cat >>conftest.
$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13581 #define $ac_func innocuous_$ac_func
13583 /* System header to define __stub macros and hopefully few prototypes,
13584 which can conflict with char $ac_func (); below.
13585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13586 <limits.h> exists even on freestanding compilers. */
13589 # include <limits.h>
13591 # include <assert.h>
13596 /* Override any gcc2 internal prototype to avoid an error. */
13601 /* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13604 /* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13610 char (*f) () = $ac_func;
13619 return f != $ac_func;
13624 rm -f conftest.
$ac_objext conftest
$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13628 grep -v '^ *+' conftest.er1
>conftest.err
13630 cat conftest.err
>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try
='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try
='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 eval "$as_ac_var=yes"
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.
$ac_ext >&5
13651 eval "$as_ac_var=no"
13653 rm -f conftest.err conftest.
$ac_objext \
13654 conftest
$ac_exeext conftest.
$ac_ext
13656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13658 if test `eval echo '${'$as_ac_var'}'` = yes; then
13659 cat >>confdefs.h
<<_ACEOF
13660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13664 # strftime is in -lintl on SCO UNIX.
13665 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13666 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13667 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 ac_check_lib_save_LIBS
=$LIBS
13671 LIBS
="-lintl $LIBS"
13672 cat >conftest.
$ac_ext <<_ACEOF
13675 cat confdefs.h
>>conftest.
$ac_ext
13676 cat >>conftest.
$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13679 /* Override any gcc2 internal prototype to avoid an error. */
13683 /* We use char because int might match the return type of a gcc2
13684 builtin and then its argument prototype would still apply. */
13694 rm -f conftest.
$ac_objext conftest
$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>conftest.er1
13698 grep -v '^ *+' conftest.er1
>conftest.err
13700 cat conftest.err
>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try
='test -z "$ac_c_werror_flag"
13704 || test ! -s conftest.err'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try
='test -s conftest$ac_exeext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_cv_lib_intl_strftime
=yes
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.
$ac_ext >&5
13721 ac_cv_lib_intl_strftime
=no
13723 rm -f conftest.err conftest.
$ac_objext \
13724 conftest
$ac_exeext conftest.
$ac_ext
13725 LIBS
=$ac_check_lib_save_LIBS
13727 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13728 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13729 if test $ac_cv_lib_intl_strftime = yes; then
13730 cat >>confdefs.h
<<\_ACEOF
13731 #define HAVE_STRFTIME 1
13734 LIBS
="-lintl $LIBS"
13740 echo "$as_me:$LINENO: checking for working strtod" >&5
13741 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13742 if test "${ac_cv_func_strtod+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 if test "$cross_compiling" = yes; then
13746 ac_cv_func_strtod
=no
13748 cat >conftest.
$ac_ext <<_ACEOF
13751 cat confdefs.h
>>conftest.
$ac_ext
13752 cat >>conftest.
$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13760 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13761 char *string = " +69";
13764 value = strtod (string, &term);
13765 if (value != 69 || term != (string + 4))
13770 /* Under Solaris 2.4, strtod returns the wrong value for the
13771 terminating character under some conditions. */
13772 char *string = "NaN";
13774 strtod (string, &term);
13775 if (term != string && *(term - 1) == 0)
13782 rm -f conftest
$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 ac_cv_func_strtod
=yes
13795 echo "$as_me: program exited with status $ac_status" >&5
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.
$ac_ext >&5
13799 ( exit $ac_status )
13800 ac_cv_func_strtod
=no
13802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13805 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13806 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13807 if test $ac_cv_func_strtod = no
; then
13809 "strtod.$ac_objext" | \
13810 *" strtod.$ac_objext" | \
13811 "strtod.$ac_objext "* | \
13812 *" strtod.$ac_objext "* ) ;;
13813 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13816 echo "$as_me:$LINENO: checking for pow" >&5
13817 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13818 if test "${ac_cv_func_pow+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.
$ac_ext <<_ACEOF
13824 cat confdefs.h
>>conftest.
$ac_ext
13825 cat >>conftest.
$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13829 #define pow innocuous_pow
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char pow (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
13837 # include <limits.h>
13839 # include <assert.h>
13844 /* Override any gcc2 internal prototype to avoid an error. */
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined (__stub_pow) || defined (__stub___pow)
13858 char (*f) () = pow;
13872 rm -f conftest.
$ac_objext conftest
$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1
>conftest.err
13878 cat conftest.err
>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try
='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try
='test -s conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.
$ac_ext >&5
13901 rm -f conftest.err conftest.
$ac_objext \
13902 conftest
$ac_exeext conftest.
$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13905 echo "${ECHO_T}$ac_cv_func_pow" >&6
13907 if test $ac_cv_func_pow = no
; then
13908 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13909 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13910 if test "${ac_cv_lib_m_pow+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 ac_check_lib_save_LIBS
=$LIBS
13915 cat >conftest.
$ac_ext <<_ACEOF
13918 cat confdefs.h
>>conftest.
$ac_ext
13919 cat >>conftest.
$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13922 /* Override any gcc2 internal prototype to avoid an error. */
13926 /* We use char because int might match the return type of a gcc2
13927 builtin and then its argument prototype would still apply. */
13937 rm -f conftest.
$ac_objext conftest
$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1
>conftest.err
13943 cat conftest.err
>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try
='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try
='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_lib_m_pow
=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.
$ac_ext >&5
13966 rm -f conftest.err conftest.
$ac_objext \
13967 conftest
$ac_exeext conftest.
$ac_ext
13968 LIBS
=$ac_check_lib_save_LIBS
13970 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13971 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13972 if test $ac_cv_lib_m_pow = yes; then
13975 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13976 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13984 for ac_func
in vprintf
13986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13987 echo "$as_me:$LINENO: checking for $ac_func" >&5
13988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13989 if eval "test \"\${$as_ac_var+set}\" = set"; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 cat >conftest.
$ac_ext <<_ACEOF
13995 cat confdefs.h
>>conftest.
$ac_ext
13996 cat >>conftest.
$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14000 #define $ac_func innocuous_$ac_func
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
14008 # include <limits.h>
14010 # include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14029 char (*f) () = $ac_func;
14038 return f != $ac_func;
14043 rm -f conftest.
$ac_objext conftest
$ac_exeext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 (eval $ac_link) 2>conftest.er1
14047 grep -v '^ *+' conftest.er1
>conftest.err
14049 cat conftest.err
>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try
='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try
='test -s conftest$ac_exeext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 eval "$as_ac_var=yes"
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.
$ac_ext >&5
14070 eval "$as_ac_var=no"
14072 rm -f conftest.err conftest.
$ac_objext \
14073 conftest
$ac_exeext conftest.
$ac_ext
14075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14077 if test `eval echo '${'$as_ac_var'}'` = yes; then
14078 cat >>confdefs.h
<<_ACEOF
14079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14082 echo "$as_me:$LINENO: checking for _doprnt" >&5
14083 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14084 if test "${ac_cv_func__doprnt+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.
$ac_ext <<_ACEOF
14090 cat confdefs.h
>>conftest.
$ac_ext
14091 cat >>conftest.
$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14095 #define _doprnt innocuous__doprnt
14097 /* System header to define __stub macros and hopefully few prototypes,
14098 which can conflict with char _doprnt (); below.
14099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100 <limits.h> exists even on freestanding compilers. */
14103 # include <limits.h>
14105 # include <assert.h>
14110 /* Override any gcc2 internal prototype to avoid an error. */
14115 /* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14118 /* The GNU C library defines this for functions which it implements
14119 to always fail with ENOSYS. Some functions are actually named
14120 something starting with __ and the normal name is an alias. */
14121 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14124 char (*f) () = _doprnt;
14133 return f != _doprnt;
14138 rm -f conftest.
$ac_objext conftest
$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>conftest.er1
14142 grep -v '^ *+' conftest.er1
>conftest.err
14144 cat conftest.err
>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try
='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try
='test -s conftest$ac_exeext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_func__doprnt
=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.
$ac_ext >&5
14165 ac_cv_func__doprnt
=no
14167 rm -f conftest.err conftest.
$ac_objext \
14168 conftest
$ac_exeext conftest.
$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14171 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14172 if test $ac_cv_func__doprnt = yes; then
14174 cat >>confdefs.h
<<\_ACEOF
14175 #define HAVE_DOPRNT 1
14184 if test $cross_compiling = yes -a $gnumalloc = yes; then
14186 { echo "$as_me:$LINENO: WARNING:
14187 configure cannot check whether malloc() and realloc() are GNU libc
14188 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14189 run configure with the --without-gnu-malloc switch." >&5
14190 echo "$as_me: WARNING:
14191 configure cannot check whether malloc() and realloc() are GNU libc
14192 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14193 run configure with the --without-gnu-malloc switch." >&2;}
14194 _mule_warning_9
=yes
14195 _mule_has_warnings
=yes
14197 ac_cv_func_malloc_0_nonnull
=yes
14198 ac_cv_func_realloc_0_nonnull
=yes
14203 for ac_header
in stdlib.h
14205 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo "$as_me:$LINENO: checking for $ac_header" >&5
14208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14215 # Is the header compilable?
14216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #include <$ac_header>
14227 rm -f conftest.
$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229 (eval $ac_compile) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1
>conftest.err
14233 cat conftest.err
>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try
='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try
='test -s conftest.$ac_objext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_header_compiler
=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.
$ac_ext >&5
14254 ac_header_compiler
=no
14256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258 echo "${ECHO_T}$ac_header_compiler" >&6
14260 # Is the header present?
14261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14263 cat >conftest.
$ac_ext <<_ACEOF
14266 cat confdefs.h
>>conftest.
$ac_ext
14267 cat >>conftest.
$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <$ac_header>
14271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14272 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14274 grep -v '^ *+' conftest.er1
>conftest.err
14276 cat conftest.err
>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } >/dev
/null
; then
14279 if test -s conftest.err
; then
14280 ac_cpp_err
=$ac_c_preproc_warn_flag
14281 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14288 if test -z "$ac_cpp_err"; then
14289 ac_header_preproc
=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.
$ac_ext >&5
14294 ac_header_preproc
=no
14296 rm -f conftest.err conftest.
$ac_ext
14297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14298 echo "${ECHO_T}$ac_header_preproc" >&6
14300 # So? What about this header?
14301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14307 ac_header_preproc
=yes
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14324 ## ------------------------------ ##
14325 ## Report this to admin@amule.org ##
14326 ## ------------------------------ ##
14329 sed "s/^/$as_me: WARNING: /" >&2
14332 echo "$as_me:$LINENO: checking for $ac_header" >&5
14333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 eval "$as_ac_Header=\$ac_header_preproc"
14339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14344 cat >>confdefs.h
<<_ACEOF
14345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14352 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14353 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14354 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 if test "$cross_compiling" = yes; then
14358 ac_cv_func_malloc_0_nonnull
=no
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 #if STDC_HEADERS || HAVE_STDLIB_H
14367 # include <stdlib.h>
14375 exit (malloc (0) ? 0 : 1);
14380 rm -f conftest
$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_func_malloc_0_nonnull
=yes
14393 echo "$as_me: program exited with status $ac_status" >&5
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.
$ac_ext >&5
14397 ( exit $ac_status )
14398 ac_cv_func_malloc_0_nonnull
=no
14400 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14404 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14405 if test $ac_cv_func_malloc_0_nonnull = yes; then
14407 cat >>confdefs.h
<<\_ACEOF
14408 #define HAVE_MALLOC 1
14412 cat >>confdefs.h
<<\_ACEOF
14413 #define HAVE_MALLOC 0
14417 "malloc.$ac_objext" | \
14418 *" malloc.$ac_objext" | \
14419 "malloc.$ac_objext "* | \
14420 *" malloc.$ac_objext "* ) ;;
14421 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
14425 cat >>confdefs.h
<<\_ACEOF
14426 #define malloc rpl_malloc
14434 for ac_header
in stdlib.h
14436 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14438 echo "$as_me:$LINENO: checking for $ac_header" >&5
14439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14446 # Is the header compilable?
14447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 $ac_includes_default
14456 #include <$ac_header>
14458 rm -f conftest.
$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>conftest.er1
14462 grep -v '^ *+' conftest.er1
>conftest.err
14464 cat conftest.err
>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try
='test -z "$ac_c_werror_flag"
14468 || test ! -s conftest.err'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try
='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_header_compiler
=yes
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.
$ac_ext >&5
14485 ac_header_compiler
=no
14487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14489 echo "${ECHO_T}$ac_header_compiler" >&6
14491 # Is the header present?
14492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14494 cat >conftest.
$ac_ext <<_ACEOF
14497 cat confdefs.h
>>conftest.
$ac_ext
14498 cat >>conftest.
$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <$ac_header>
14502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14505 grep -v '^ *+' conftest.er1
>conftest.err
14507 cat conftest.err
>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } >/dev
/null
; then
14510 if test -s conftest.err
; then
14511 ac_cpp_err
=$ac_c_preproc_warn_flag
14512 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14519 if test -z "$ac_cpp_err"; then
14520 ac_header_preproc
=yes
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.
$ac_ext >&5
14525 ac_header_preproc
=no
14527 rm -f conftest.err conftest.
$ac_ext
14528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14529 echo "${ECHO_T}$ac_header_preproc" >&6
14531 # So? What about this header?
14532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14538 ac_header_preproc
=yes
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14555 ## ------------------------------ ##
14556 ## Report this to admin@amule.org ##
14557 ## ------------------------------ ##
14560 sed "s/^/$as_me: WARNING: /" >&2
14563 echo "$as_me:$LINENO: checking for $ac_header" >&5
14564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 eval "$as_ac_Header=\$ac_header_preproc"
14570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14575 cat >>confdefs.h
<<_ACEOF
14576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14583 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14584 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14585 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 if test "$cross_compiling" = yes; then
14589 ac_cv_func_realloc_0_nonnull
=no
14591 cat >conftest.
$ac_ext <<_ACEOF
14594 cat confdefs.h
>>conftest.
$ac_ext
14595 cat >>conftest.
$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #if STDC_HEADERS || HAVE_STDLIB_H
14598 # include <stdlib.h>
14606 exit (realloc (0, 0) ? 0 : 1);
14611 rm -f conftest
$ac_exeext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14613 (eval $ac_link) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_func_realloc_0_nonnull
=yes
14624 echo "$as_me: program exited with status $ac_status" >&5
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.
$ac_ext >&5
14628 ( exit $ac_status )
14629 ac_cv_func_realloc_0_nonnull
=no
14631 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14634 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14635 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14636 if test $ac_cv_func_realloc_0_nonnull = yes; then
14638 cat >>confdefs.h
<<\_ACEOF
14639 #define HAVE_REALLOC 1
14643 cat >>confdefs.h
<<\_ACEOF
14644 #define HAVE_REALLOC 0
14648 "realloc.$ac_objext" | \
14649 *" realloc.$ac_objext" | \
14650 "realloc.$ac_objext "* | \
14651 *" realloc.$ac_objext "* ) ;;
14652 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
14656 cat >>confdefs.h
<<\_ACEOF
14657 #define realloc rpl_realloc
14697 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
14699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 echo "$as_me:$LINENO: checking for $ac_func" >&5
14701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_var+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.
$ac_ext <<_ACEOF
14708 cat confdefs.h
>>conftest.
$ac_ext
14709 cat >>conftest.
$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713 #define $ac_func innocuous_$ac_func
14715 /* System header to define __stub macros and hopefully few prototypes,
14716 which can conflict with char $ac_func (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14721 # include <limits.h>
14723 # include <assert.h>
14728 /* Override any gcc2 internal prototype to avoid an error. */
14733 /* We use char because int might match the return type of a gcc2
14734 builtin and then its argument prototype would still apply. */
14736 /* The GNU C library defines this for functions which it implements
14737 to always fail with ENOSYS. Some functions are actually named
14738 something starting with __ and the normal name is an alias. */
14739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14742 char (*f) () = $ac_func;
14751 return f != $ac_func;
14756 rm -f conftest.
$ac_objext conftest
$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>conftest.er1
14760 grep -v '^ *+' conftest.er1
>conftest.err
14762 cat conftest.err
>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try
='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try
='test -s conftest$ac_exeext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 eval "$as_ac_var=yes"
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.
$ac_ext >&5
14783 eval "$as_ac_var=no"
14785 rm -f conftest.err conftest.
$ac_objext \
14786 conftest
$ac_exeext conftest.
$ac_ext
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h
<<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14798 #-------------------------------------------------------------------------------
14799 # End of autoscan stuff
14800 #-------------------------------------------------------------------------------
14806 for ac_func
in mkdir getrlimit setrlimit getopt_long
14808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809 echo "$as_me:$LINENO: checking for $ac_func" >&5
14810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14811 if eval "test \"\${$as_ac_var+set}\" = set"; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 cat >conftest.
$ac_ext <<_ACEOF
14817 cat confdefs.h
>>conftest.
$ac_ext
14818 cat >>conftest.
$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14822 #define $ac_func innocuous_$ac_func
14824 /* System header to define __stub macros and hopefully few prototypes,
14825 which can conflict with char $ac_func (); below.
14826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14827 <limits.h> exists even on freestanding compilers. */
14830 # include <limits.h>
14832 # include <assert.h>
14837 /* Override any gcc2 internal prototype to avoid an error. */
14842 /* We use char because int might match the return type of a gcc2
14843 builtin and then its argument prototype would still apply. */
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14851 char (*f) () = $ac_func;
14860 return f != $ac_func;
14865 rm -f conftest.
$ac_objext conftest
$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14869 grep -v '^ *+' conftest.er1
>conftest.err
14871 cat conftest.err
>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try
='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try
='test -s conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 eval "$as_ac_var=yes"
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.
$ac_ext >&5
14892 eval "$as_ac_var=no"
14894 rm -f conftest.err conftest.
$ac_objext \
14895 conftest
$ac_exeext conftest.
$ac_ext
14897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14899 if test `eval echo '${'$as_ac_var'}'` = yes; then
14900 cat >>confdefs.h
<<_ACEOF
14901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14908 mule_backup_CPPFLAGS
="$CPPFLAGS"
14909 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14910 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14911 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14912 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 cat >conftest.
$ac_ext <<_ACEOF
14918 cat confdefs.h
>>conftest.
$ac_ext
14919 cat >>conftest.
$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 $ac_includes_default
14926 char *p = (char *) strerror_r;
14933 rm -f conftest.
$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1
>conftest.err
14939 cat conftest.err
>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try
='test -s conftest.$ac_objext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_have_decl_strerror_r
=yes
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.
$ac_ext >&5
14960 ac_cv_have_decl_strerror_r
=no
14962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14964 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14965 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14966 if test $ac_cv_have_decl_strerror_r = yes; then
14968 cat >>confdefs.h
<<_ACEOF
14969 #define HAVE_DECL_STRERROR_R 1
14974 cat >>confdefs.h
<<_ACEOF
14975 #define HAVE_DECL_STRERROR_R 0
14983 for ac_func
in strerror_r
14985 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14986 echo "$as_me:$LINENO: checking for $ac_func" >&5
14987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14988 if eval "test \"\${$as_ac_var+set}\" = set"; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14999 #define $ac_func innocuous_$ac_func
15001 /* System header to define __stub macros and hopefully few prototypes,
15002 which can conflict with char $ac_func (); below.
15003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15004 <limits.h> exists even on freestanding compilers. */
15007 # include <limits.h>
15009 # include <assert.h>
15014 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15022 /* The GNU C library defines this for functions which it implements
15023 to always fail with ENOSYS. Some functions are actually named
15024 something starting with __ and the normal name is an alias. */
15025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15028 char (*f) () = $ac_func;
15037 return f != $ac_func;
15042 rm -f conftest.
$ac_objext conftest
$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15046 grep -v '^ *+' conftest.er1
>conftest.err
15048 cat conftest.err
>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try
='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try
='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 eval "$as_ac_var=yes"
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.
$ac_ext >&5
15069 eval "$as_ac_var=no"
15071 rm -f conftest.err conftest.
$ac_objext \
15072 conftest
$ac_exeext conftest.
$ac_ext
15074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15076 if test `eval echo '${'$as_ac_var'}'` = yes; then
15077 cat >>confdefs.h
<<_ACEOF
15078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15084 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15085 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15086 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 ac_cv_func_strerror_r_char_p
=no
15091 if test $ac_cv_have_decl_strerror_r = yes; then
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15104 char x = *strerror_r (0, buf, sizeof buf);
15105 char *p = strerror_r (0, buf, sizeof buf);
15111 rm -f conftest.
$ac_objext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15113 (eval $ac_compile) 2>conftest.er1
15115 grep -v '^ *+' conftest.er1
>conftest.err
15117 cat conftest.err
>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try
='test -z "$ac_c_werror_flag"
15121 || test ! -s conftest.err'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try
='test -s conftest.$ac_objext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_func_strerror_r_char_p
=yes
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.
$ac_ext >&5
15139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15141 # strerror_r is not declared. Choose between
15142 # systems that have relatively inaccessible declarations for the
15143 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15144 # former has a strerror_r that returns char*, while the latter
15145 # has a strerror_r that returns `int'.
15146 # This test should segfault on the DEC system.
15147 if test "$cross_compiling" = yes; then
15150 cat >conftest.
$ac_ext <<_ACEOF
15153 cat confdefs.h
>>conftest.
$ac_ext
15154 cat >>conftest.
$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 extern char *strerror_r ();
15162 char x = *strerror_r (0, buf, sizeof buf);
15163 exit (!isalpha (x));
15168 rm -f conftest
$ac_exeext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15170 (eval $ac_link) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_cv_func_strerror_r_char_p
=yes
15181 echo "$as_me: program exited with status $ac_status" >&5
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.
$ac_ext >&5
15186 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15191 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15192 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15193 if test $ac_cv_func_strerror_r_char_p = yes; then
15195 cat >>confdefs.h
<<\_ACEOF
15196 #define STRERROR_R_CHAR_P 1
15201 CPPFLAGS
="$mule_backup_CPPFLAGS"
15203 # Look for a way to preallocate disk space for files.
15205 echo "$as_me:$LINENO: checking for fallocate" >&5
15206 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15207 cat >conftest.
$ac_ext <<_ACEOF
15211 cat confdefs.h
>>conftest.
$ac_ext
15212 cat >>conftest.
$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 #include <linux/falloc.h>
15221 fallocate(0, 0, 0, 0);
15228 rm -f conftest.
$ac_objext conftest
$ac_exeext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15230 (eval $ac_link) 2>conftest.er1
15232 grep -v '^ *+' conftest.er1
>conftest.err
15234 cat conftest.err
>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try
='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try
='test -s conftest$ac_exeext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15253 cat >>confdefs.h
<<\_ACEOF
15254 #define HAVE_FALLOCATE 1
15257 echo "$as_me:$LINENO: result: yes" >&5
15258 echo "${ECHO_T}yes" >&6
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15265 echo "$as_me:$LINENO: result: no" >&5
15266 echo "${ECHO_T}no" >&6
15269 rm -f conftest.err conftest.
$ac_objext \
15270 conftest
$ac_exeext conftest.
$ac_ext
15273 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15274 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15275 cat >conftest.
$ac_ext <<_ACEOF
15279 cat confdefs.h
>>conftest.
$ac_ext
15280 cat >>conftest.
$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15283 #include <sys/sycall.h>
15284 #include <sys/types.h>
15285 #include <unistd.h>
15291 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15298 rm -f conftest.
$ac_objext conftest
$ac_exeext
15299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15300 (eval $ac_link) 2>conftest.er1
15302 grep -v '^ *+' conftest.er1
>conftest.err
15304 cat conftest.err
>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try
='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try
='test -s conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15323 cat >>confdefs.h
<<\_ACEOF
15324 #define HAVE_SYS_FALLOCATE 1
15327 echo "$as_me:$LINENO: result: yes" >&5
15328 echo "${ECHO_T}yes" >&6
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.
$ac_ext >&5
15335 echo "$as_me:$LINENO: result: no" >&5
15336 echo "${ECHO_T}no" >&6
15339 rm -f conftest.err conftest.
$ac_objext \
15340 conftest
$ac_exeext conftest.
$ac_ext
15342 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15343 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15344 cat >conftest.
$ac_ext <<_ACEOF
15348 cat confdefs.h
>>conftest.
$ac_ext
15349 cat >>conftest.
$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15352 #define _XOPEN_SOURCE 600
15353 #include <stdlib.h>
15354 #ifdef HAVE_FCNTL_H
15355 # include <fcntl.h>
15362 posix_fallocate(0, 0, 0);
15369 rm -f conftest.
$ac_objext conftest
$ac_exeext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15371 (eval $ac_link) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1
>conftest.err
15375 cat conftest.err
>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try
='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try
='test -s conftest$ac_exeext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15394 cat >>confdefs.h
<<\_ACEOF
15395 #define HAVE_POSIX_FALLOCATE 1
15398 echo "$as_me:$LINENO: result: yes" >&5
15399 echo "${ECHO_T}yes" >&6
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.
$ac_ext >&5
15406 echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15410 rm -f conftest.err conftest.
$ac_objext \
15411 conftest
$ac_exeext conftest.
$ac_ext
15414 # Checking Native Language Support
15418 if test -n "$ac_aux_dir"; then
15419 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15421 if test -z "$MKINSTALLDIRS"; then
15422 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15429 # Extract the first word of "msgfmt", so it can be a program name with args.
15430 set dummy msgfmt
; ac_word
=$2
15431 echo "$as_me:$LINENO: checking for $ac_word" >&5
15432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15433 if test "${ac_cv_path_MSGFMT+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15442 for ac_dir
in $PATH; do
15443 test -z "$ac_dir" && ac_dir
=.
15444 if test -f $ac_dir/$ac_word; then
15445 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15446 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15447 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15453 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15457 MSGFMT
="$ac_cv_path_MSGFMT"
15458 if test "$MSGFMT" != ":"; then
15459 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15460 echo "${ECHO_T}$MSGFMT" >&6
15462 echo "$as_me:$LINENO: result: no" >&5
15463 echo "${ECHO_T}no" >&6
15466 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15467 set dummy gmsgfmt
; ac_word
=$2
15468 echo "$as_me:$LINENO: checking for $ac_word" >&5
15469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15470 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15479 for as_dir
in $PATH
15482 test -z "$as_dir" && as_dir
=.
15483 for ac_exec_ext
in '' $ac_executable_extensions; do
15484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15496 GMSGFMT
=$ac_cv_path_GMSGFMT
15498 if test -n "$GMSGFMT"; then
15499 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15500 echo "${ECHO_T}$GMSGFMT" >&6
15502 echo "$as_me:$LINENO: result: no" >&5
15503 echo "${ECHO_T}no" >&6
15507 # Extract the first word of "xgettext", so it can be a program name with args.
15508 set dummy xgettext
; ac_word
=$2
15509 echo "$as_me:$LINENO: checking for $ac_word" >&5
15510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15511 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 case "$XGETTEXT" in
15516 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15519 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15520 for ac_dir
in $PATH; do
15521 test -z "$ac_dir" && ac_dir
=.
15522 if test -f $ac_dir/$ac_word; then
15523 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15524 (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
15525 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15531 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15535 XGETTEXT
="$ac_cv_path_XGETTEXT"
15536 if test "$XGETTEXT" != ":"; then
15537 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15538 echo "${ECHO_T}$XGETTEXT" >&6
15540 echo "$as_me:$LINENO: result: no" >&5
15541 echo "${ECHO_T}no" >&6
15546 # Extract the first word of "msgmerge", so it can be a program name with args.
15547 set dummy msgmerge
; ac_word
=$2
15548 echo "$as_me:$LINENO: checking for $ac_word" >&5
15549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15550 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 case "$MSGMERGE" in
15555 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15559 for ac_dir
in $PATH; do
15560 test -z "$ac_dir" && ac_dir
=.
15561 if test -f $ac_dir/$ac_word; then
15562 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15563 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15569 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15573 MSGMERGE
="$ac_cv_path_MSGMERGE"
15574 if test "$MSGMERGE" != ":"; then
15575 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15576 echo "${ECHO_T}$MSGMERGE" >&6
15578 echo "$as_me:$LINENO: result: no" >&5
15579 echo "${ECHO_T}no" >&6
15583 if test "$GMSGFMT" != ":"; then
15584 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15585 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15588 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15589 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15590 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15595 if test "$XGETTEXT" != ":"; then
15596 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15597 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15600 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15601 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15607 ac_config_commands
="$ac_config_commands default-1"
15610 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15611 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15612 if test "${ac_cv_search_strerror+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 ac_func_search_save_LIBS
=$LIBS
15616 ac_cv_search_strerror
=no
15617 cat >conftest.
$ac_ext <<_ACEOF
15620 cat confdefs.h
>>conftest.
$ac_ext
15621 cat >>conftest.
$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 /* Override any gcc2 internal prototype to avoid an error. */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15639 rm -f conftest.
$ac_objext conftest
$ac_exeext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641 (eval $ac_link) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1
>conftest.err
15645 cat conftest.err
>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try
='test -z "$ac_c_werror_flag"
15649 || test ! -s conftest.err'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; } &&
15655 { ac_try
='test -s conftest$ac_exeext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661 ac_cv_search_strerror
="none required"
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.
$ac_ext >&5
15667 rm -f conftest.err conftest.
$ac_objext \
15668 conftest
$ac_exeext conftest.
$ac_ext
15669 if test "$ac_cv_search_strerror" = no
; then
15670 for ac_lib
in cposix
; do
15671 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15672 cat >conftest.
$ac_ext <<_ACEOF
15675 cat confdefs.h
>>conftest.
$ac_ext
15676 cat >>conftest.
$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15679 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15694 rm -f conftest.
$ac_objext conftest
$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>conftest.er1
15698 grep -v '^ *+' conftest.er1
>conftest.err
15700 cat conftest.err
>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try
='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try
='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_cv_search_strerror
="-l$ac_lib"
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.
$ac_ext >&5
15723 rm -f conftest.err conftest.
$ac_objext \
15724 conftest
$ac_exeext conftest.
$ac_ext
15727 LIBS
=$ac_func_search_save_LIBS
15729 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15730 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15731 if test "$ac_cv_search_strerror" != no
; then
15732 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15737 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15738 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15739 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 cat >conftest.
$ac_ext <<_ACEOF
15745 cat confdefs.h
>>conftest.
$ac_ext
15746 cat >>conftest.
$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15749 #include <features.h>
15750 #ifdef __GNU_LIBRARY__
15751 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15758 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15759 ac_cv_gnu_library_2_1
=yes
15761 ac_cv_gnu_library_2_1
=no
15768 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15769 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15771 GLIBC21
="$ac_cv_gnu_library_2_1"
15776 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15777 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15778 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 if test "$cross_compiling" = yes; then
15784 # Guess based on the CPU.
15785 case "$host_cpu" in
15786 alpha
* | i3456786 | m68k | s390
*)
15787 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15789 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15793 cat >conftest.
$ac_ext <<_ACEOF
15796 cat confdefs.h
>>conftest.
$ac_ext
15797 cat >>conftest.
$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 #include <stdlib.h>
15801 #include <signal.h>
15805 sigfpe_handler (int sig)
15807 sigfpe_handler (sig) int sig;
15810 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15811 exit (sig != SIGFPE);
15821 signal (SIGFPE, sigfpe_handler);
15822 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15823 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15824 signal (SIGTRAP, sigfpe_handler);
15826 /* Linux/SPARC yields signal SIGILL. */
15827 #if defined (__sparc__) && defined (__linux__)
15828 signal (SIGILL, sigfpe_handler);
15837 rm -f conftest
$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 gt_cv_int_divbyzero_sigfpe
=yes
15850 echo "$as_me: program exited with status $ac_status" >&5
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.
$ac_ext >&5
15854 ( exit $ac_status )
15855 gt_cv_int_divbyzero_sigfpe
=no
15857 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15861 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15862 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15863 case "$gt_cv_int_divbyzero_sigfpe" in
15868 cat >>confdefs.h
<<_ACEOF
15869 #define INTDIV0_RAISES_SIGFPE $value
15874 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15875 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15876 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.
$ac_ext <<_ACEOF
15882 cat confdefs.h
>>conftest.
$ac_ext
15883 cat >>conftest.
$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <sys/types.h>
15886 #include <inttypes.h>
15890 uintmax_t i = (uintmax_t) -1;
15895 rm -f conftest.
$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>conftest.er1
15899 grep -v '^ *+' conftest.er1
>conftest.err
15901 cat conftest.err
>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try
='test -z "$ac_c_werror_flag"
15905 || test ! -s conftest.err'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try
='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 jm_ac_cv_header_inttypes_h
=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.
$ac_ext >&5
15922 jm_ac_cv_header_inttypes_h
=no
15924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15926 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15927 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15928 if test $jm_ac_cv_header_inttypes_h = yes; then
15930 cat >>confdefs.h
<<_ACEOF
15931 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15937 echo "$as_me:$LINENO: checking for stdint.h" >&5
15938 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15939 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 cat >conftest.
$ac_ext <<_ACEOF
15945 cat confdefs.h
>>conftest.
$ac_ext
15946 cat >>conftest.
$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 #include <sys/types.h>
15949 #include <stdint.h>
15953 uintmax_t i = (uintmax_t) -1;
15958 rm -f conftest.
$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>conftest.er1
15962 grep -v '^ *+' conftest.er1
>conftest.err
15964 cat conftest.err
>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try
='test -z "$ac_c_werror_flag"
15968 || test ! -s conftest.err'
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try
='test -s conftest.$ac_objext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 jm_ac_cv_header_stdint_h
=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.
$ac_ext >&5
15985 jm_ac_cv_header_stdint_h
=no
15987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15989 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15990 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15991 if test $jm_ac_cv_header_stdint_h = yes; then
15993 cat >>confdefs.h
<<_ACEOF
15994 #define HAVE_STDINT_H_WITH_UINTMAX 1
16000 echo "$as_me:$LINENO: checking for unsigned long long" >&5
16001 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16002 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 cat >conftest.
$ac_ext <<_ACEOF
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 unsigned long long ull = 1; int i = 63;
16015 unsigned long long ullmax = (unsigned long long) -1;
16016 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
16021 rm -f conftest.
$ac_objext conftest
$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>conftest.er1
16025 grep -v '^ *+' conftest.er1
>conftest.err
16027 cat conftest.err
>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try
='test -z "$ac_c_werror_flag"
16031 || test ! -s conftest.err'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try
='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_type_unsigned_long_long
=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.
$ac_ext >&5
16048 ac_cv_type_unsigned_long_long
=no
16050 rm -f conftest.err conftest.
$ac_objext \
16051 conftest
$ac_exeext conftest.
$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16054 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16055 if test $ac_cv_type_unsigned_long_long = yes; then
16057 cat >>confdefs.h
<<\_ACEOF
16058 #define HAVE_UNSIGNED_LONG_LONG 1
16066 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
16068 test $ac_cv_type_unsigned_long_long = yes \
16069 && ac_type
='unsigned long long' \
16070 || ac_type
='unsigned long'
16072 cat >>confdefs.h
<<_ACEOF
16073 #define uintmax_t $ac_type
16079 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16080 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16081 if test "${gt_cv_header_inttypes_h+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 cat >conftest.
$ac_ext <<_ACEOF
16088 cat confdefs.h
>>conftest.
$ac_ext
16089 cat >>conftest.
$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include <sys/types.h>
16092 #include <inttypes.h>
16101 rm -f conftest.
$ac_objext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16103 (eval $ac_compile) 2>conftest.er1
16105 grep -v '^ *+' conftest.er1
>conftest.err
16107 cat conftest.err
>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try
='test -z "$ac_c_werror_flag"
16111 || test ! -s conftest.err'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } &&
16117 { ac_try
='test -s conftest.$ac_objext'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 gt_cv_header_inttypes_h
=yes
16125 echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.
$ac_ext >&5
16128 gt_cv_header_inttypes_h
=no
16130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16133 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16134 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16135 if test $gt_cv_header_inttypes_h = yes; then
16137 cat >>confdefs.h
<<_ACEOF
16138 #define HAVE_INTTYPES_H 1
16145 if test $gt_cv_header_inttypes_h = yes; then
16146 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16147 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16148 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 cat >conftest.
$ac_ext <<_ACEOF
16155 cat confdefs.h
>>conftest.
$ac_ext
16156 cat >>conftest.
$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 #include <inttypes.h>
16171 rm -f conftest.
$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1
>conftest.err
16177 cat conftest.err
>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try
='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try
='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 gt_cv_inttypes_pri_broken
=no
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.
$ac_ext >&5
16198 gt_cv_inttypes_pri_broken
=yes
16200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16203 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16204 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16206 if test "$gt_cv_inttypes_pri_broken" = yes; then
16208 cat >>confdefs.h
<<_ACEOF
16209 #define PRI_MACROS_BROKEN 1
16215 if test "X$prefix" = "XNONE"; then
16216 acl_final_prefix
="$ac_default_prefix"
16218 acl_final_prefix
="$prefix"
16220 if test "X$exec_prefix" = "XNONE"; then
16221 acl_final_exec_prefix
='${prefix}'
16223 acl_final_exec_prefix
="$exec_prefix"
16225 acl_save_prefix
="$prefix"
16226 prefix
="$acl_final_prefix"
16227 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16228 prefix
="$acl_save_prefix"
16231 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16232 if test "${with_gnu_ld+set}" = set; then
16233 withval
="$with_gnu_ld"
16234 test "$withval" = no || with_gnu_ld
=yes
16239 if test "$GCC" = yes; then
16240 # Check if gcc -print-prog-name=ld gives a path.
16241 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16242 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16245 # gcc leaves a trailing carriage return which upsets mingw
16246 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16248 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16251 # Accept absolute paths.
16252 [\\/]* |
[A-Za-z
]:[\\/]*)
16253 re_direlt
='/[^/][^/]*/\.\./'
16254 # Canonicalize the path of ld
16255 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16256 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16257 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16259 test -z "$LD" && LD
="$ac_prog"
16262 # If it fails, then pretend we aren't using GCC.
16266 # If it is relative, then search for the first ld in PATH.
16267 with_gnu_ld
=unknown
16270 elif test "$with_gnu_ld" = yes; then
16271 echo "$as_me:$LINENO: checking for GNU ld" >&5
16272 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16274 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16275 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16277 if test "${acl_cv_path_LD+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 if test -z "$LD"; then
16281 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16282 for ac_dir
in $PATH; do
16283 test -z "$ac_dir" && ac_dir
=.
16284 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16285 acl_cv_path_LD
="$ac_dir/$ac_prog"
16286 # Check to see if the program is GNU ld. I'd rather use --version,
16287 # but apparently some GNU ld's only accept -v.
16288 # Break only if it was the GNU/non-GNU ld that we prefer.
16289 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16290 test "$with_gnu_ld" != no
&& break
16292 test "$with_gnu_ld" != yes && break
16298 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16302 LD
="$acl_cv_path_LD"
16303 if test -n "$LD"; then
16304 echo "$as_me:$LINENO: result: $LD" >&5
16305 echo "${ECHO_T}$LD" >&6
16307 echo "$as_me:$LINENO: result: no" >&5
16308 echo "${ECHO_T}no" >&6
16310 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16311 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16312 { (exit 1); exit 1; }; }
16313 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16314 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16315 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16319 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16320 acl_cv_prog_gnu_ld
=yes
16322 acl_cv_prog_gnu_ld
=no
16325 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16326 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16327 with_gnu_ld
=$acl_cv_prog_gnu_ld
16331 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16332 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16333 if test "${acl_cv_rpath+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16338 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16340 rm -f .
/conftest.sh
16344 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16345 echo "${ECHO_T}$acl_cv_rpath" >&6
16347 libext
="$acl_cv_libext"
16348 shlibext
="$acl_cv_shlibext"
16349 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16350 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16351 hardcode_direct
="$acl_cv_hardcode_direct"
16352 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16353 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16354 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16355 # Check whether --enable-rpath or --disable-rpath was given.
16356 if test "${enable_rpath+set}" = set; then
16357 enableval
="$enable_rpath"
16371 acl_save_prefix
="$prefix"
16372 prefix
="$acl_final_prefix"
16373 acl_save_exec_prefix
="$exec_prefix"
16374 exec_prefix
="$acl_final_exec_prefix"
16376 eval additional_includedir
=\"$includedir\"
16377 eval additional_libdir
=\"$libdir\"
16379 exec_prefix
="$acl_save_exec_prefix"
16380 prefix
="$acl_save_prefix"
16383 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16384 if test "${with_libiconv_prefix+set}" = set; then
16385 withval
="$with_libiconv_prefix"
16387 if test "X$withval" = "Xno"; then
16390 if test "X$withval" = "X"; then
16392 acl_save_prefix
="$prefix"
16393 prefix
="$acl_final_prefix"
16394 acl_save_exec_prefix
="$exec_prefix"
16395 exec_prefix
="$acl_final_exec_prefix"
16397 eval additional_includedir
=\"$includedir\"
16398 eval additional_libdir
=\"$libdir\"
16400 exec_prefix
="$acl_save_exec_prefix"
16401 prefix
="$acl_save_prefix"
16404 additional_includedir
="$withval/include"
16405 additional_libdir
="$withval/lib"
16415 names_already_handled
=
16416 names_next_round
='iconv '
16417 while test -n "$names_next_round"; do
16418 names_this_round
="$names_next_round"
16420 for name
in $names_this_round; do
16422 for n
in $names_already_handled; do
16423 if test "$n" = "$name"; then
16424 already_handled
=yes
16428 if test -z "$already_handled"; then
16429 names_already_handled
="$names_already_handled $name"
16430 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16431 eval value
=\"\
$HAVE_LIB$uppername\"
16432 if test -n "$value"; then
16433 if test "$value" = yes; then
16434 eval value
=\"\
$LIB$uppername\"
16435 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16436 eval value
=\"\
$LTLIB$uppername\"
16437 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16446 if test $use_additional = yes; then
16447 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16448 found_dir
="$additional_libdir"
16449 found_so
="$additional_libdir/lib$name.$shlibext"
16450 if test -f "$additional_libdir/lib$name.la"; then
16451 found_la
="$additional_libdir/lib$name.la"
16454 if test -f "$additional_libdir/lib$name.$libext"; then
16455 found_dir
="$additional_libdir"
16456 found_a
="$additional_libdir/lib$name.$libext"
16457 if test -f "$additional_libdir/lib$name.la"; then
16458 found_la
="$additional_libdir/lib$name.la"
16463 if test "X$found_dir" = "X"; then
16464 for x
in $LDFLAGS $LTLIBICONV; do
16466 acl_save_prefix
="$prefix"
16467 prefix
="$acl_final_prefix"
16468 acl_save_exec_prefix
="$exec_prefix"
16469 exec_prefix
="$acl_final_exec_prefix"
16471 exec_prefix
="$acl_save_exec_prefix"
16472 prefix
="$acl_save_prefix"
16476 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16477 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16479 found_so
="$dir/lib$name.$shlibext"
16480 if test -f "$dir/lib$name.la"; then
16481 found_la
="$dir/lib$name.la"
16484 if test -f "$dir/lib$name.$libext"; then
16486 found_a
="$dir/lib$name.$libext"
16487 if test -f "$dir/lib$name.la"; then
16488 found_la
="$dir/lib$name.la"
16494 if test "X$found_dir" != "X"; then
16499 if test "X$found_dir" != "X"; then
16500 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16501 if test "X$found_so" != "X"; then
16502 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16503 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16506 for x
in $ltrpathdirs; do
16507 if test "X$x" = "X$found_dir"; then
16512 if test -z "$haveit"; then
16513 ltrpathdirs
="$ltrpathdirs $found_dir"
16515 if test "$hardcode_direct" = yes; then
16516 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16518 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16519 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16521 for x
in $rpathdirs; do
16522 if test "X$x" = "X$found_dir"; then
16527 if test -z "$haveit"; then
16528 rpathdirs
="$rpathdirs $found_dir"
16532 for x
in $LDFLAGS $LIBICONV; do
16534 acl_save_prefix
="$prefix"
16535 prefix
="$acl_final_prefix"
16536 acl_save_exec_prefix
="$exec_prefix"
16537 exec_prefix
="$acl_final_exec_prefix"
16539 exec_prefix
="$acl_save_exec_prefix"
16540 prefix
="$acl_save_prefix"
16542 if test "X$x" = "X-L$found_dir"; then
16547 if test -z "$haveit"; then
16548 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16550 if test "$hardcode_minus_L" != no
; then
16551 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16553 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16559 if test "X$found_a" != "X"; then
16560 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16562 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16565 additional_includedir
=
16566 case "$found_dir" in
16568 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16569 additional_includedir
="$basedir/include"
16572 if test "X$additional_includedir" != "X"; then
16573 if test "X$additional_includedir" != "X/usr/include"; then
16575 if test "X$additional_includedir" = "X/usr/local/include"; then
16576 if test -n "$GCC"; then
16578 linux
*) haveit
=yes;;
16582 if test -z "$haveit"; then
16583 for x
in $CPPFLAGS $INCICONV; do
16585 acl_save_prefix
="$prefix"
16586 prefix
="$acl_final_prefix"
16587 acl_save_exec_prefix
="$exec_prefix"
16588 exec_prefix
="$acl_final_exec_prefix"
16590 exec_prefix
="$acl_save_exec_prefix"
16591 prefix
="$acl_save_prefix"
16593 if test "X$x" = "X-I$additional_includedir"; then
16598 if test -z "$haveit"; then
16599 if test -d "$additional_includedir"; then
16600 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16606 if test -n "$found_la"; then
16607 save_libdir
="$libdir"
16608 case "$found_la" in
16609 */* |
*\\*) .
"$found_la" ;;
16610 *) .
"./$found_la" ;;
16612 libdir
="$save_libdir"
16613 for dep
in $dependency_libs; do
16616 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16617 if test "X$additional_libdir" != "X/usr/lib"; then
16619 if test "X$additional_libdir" = "X/usr/local/lib"; then
16620 if test -n "$GCC"; then
16622 linux
*) haveit
=yes;;
16626 if test -z "$haveit"; then
16628 for x
in $LDFLAGS $LIBICONV; do
16630 acl_save_prefix
="$prefix"
16631 prefix
="$acl_final_prefix"
16632 acl_save_exec_prefix
="$exec_prefix"
16633 exec_prefix
="$acl_final_exec_prefix"
16635 exec_prefix
="$acl_save_exec_prefix"
16636 prefix
="$acl_save_prefix"
16638 if test "X$x" = "X-L$additional_libdir"; then
16643 if test -z "$haveit"; then
16644 if test -d "$additional_libdir"; then
16645 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16649 for x
in $LDFLAGS $LTLIBICONV; do
16651 acl_save_prefix
="$prefix"
16652 prefix
="$acl_final_prefix"
16653 acl_save_exec_prefix
="$exec_prefix"
16654 exec_prefix
="$acl_final_exec_prefix"
16656 exec_prefix
="$acl_save_exec_prefix"
16657 prefix
="$acl_save_prefix"
16659 if test "X$x" = "X-L$additional_libdir"; then
16664 if test -z "$haveit"; then
16665 if test -d "$additional_libdir"; then
16666 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16673 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16674 if test "$enable_rpath" != no
; then
16676 for x
in $rpathdirs; do
16677 if test "X$x" = "X$dir"; then
16682 if test -z "$haveit"; then
16683 rpathdirs
="$rpathdirs $dir"
16686 for x
in $ltrpathdirs; do
16687 if test "X$x" = "X$dir"; then
16692 if test -z "$haveit"; then
16693 ltrpathdirs
="$ltrpathdirs $dir"
16698 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16701 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16704 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16705 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16711 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16712 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16718 if test "X$rpathdirs" != "X"; then
16719 if test -n "$hardcode_libdir_separator"; then
16721 for found_dir
in $rpathdirs; do
16722 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16724 acl_save_libdir
="$libdir"
16726 eval flag
=\"$hardcode_libdir_flag_spec\"
16727 libdir
="$acl_save_libdir"
16728 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16730 for found_dir
in $rpathdirs; do
16731 acl_save_libdir
="$libdir"
16732 libdir
="$found_dir"
16733 eval flag
=\"$hardcode_libdir_flag_spec\"
16734 libdir
="$acl_save_libdir"
16735 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16739 if test "X$ltrpathdirs" != "X"; then
16740 for found_dir
in $ltrpathdirs; do
16741 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16758 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16759 stdlib.h string.h unistd.h sys
/param.h
16761 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16763 echo "$as_me:$LINENO: checking for $ac_header" >&5
16764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16771 # Is the header compilable?
16772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16781 #include <$ac_header>
16783 rm -f conftest.
$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
16787 grep -v '^ *+' conftest.er1
>conftest.err
16789 cat conftest.err
>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try
='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try
='test -s conftest.$ac_objext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_header_compiler
=yes
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.
$ac_ext >&5
16810 ac_header_compiler
=no
16812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16814 echo "${ECHO_T}$ac_header_compiler" >&6
16816 # Is the header present?
16817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16819 cat >conftest.
$ac_ext <<_ACEOF
16822 cat confdefs.h
>>conftest.
$ac_ext
16823 cat >>conftest.
$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <$ac_header>
16827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1
>conftest.err
16832 cat conftest.err
>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } >/dev
/null
; then
16835 if test -s conftest.err
; then
16836 ac_cpp_err
=$ac_c_preproc_warn_flag
16837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16844 if test -z "$ac_cpp_err"; then
16845 ac_header_preproc
=yes
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 ac_header_preproc
=no
16852 rm -f conftest.err conftest.
$ac_ext
16853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16854 echo "${ECHO_T}$ac_header_preproc" >&6
16856 # So? What about this header?
16857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16863 ac_header_preproc
=yes
16866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16880 ## ------------------------------ ##
16881 ## Report this to admin@amule.org ##
16882 ## ------------------------------ ##
16885 sed "s/^/$as_me: WARNING: /" >&2
16888 echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 eval "$as_ac_Header=\$ac_header_preproc"
16895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16900 cat >>confdefs.h
<<_ACEOF
16901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16929 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16930 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16931 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_var+set}\" = set"; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 cat >conftest.
$ac_ext <<_ACEOF
16942 cat confdefs.h
>>conftest.
$ac_ext
16943 cat >>conftest.
$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16947 #define $ac_func innocuous_$ac_func
16949 /* System header to define __stub macros and hopefully few prototypes,
16950 which can conflict with char $ac_func (); below.
16951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952 <limits.h> exists even on freestanding compilers. */
16955 # include <limits.h>
16957 # include <assert.h>
16962 /* Override any gcc2 internal prototype to avoid an error. */
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16970 /* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
16973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16976 char (*f) () = $ac_func;
16985 return f != $ac_func;
16990 rm -f conftest.
$ac_objext conftest
$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>conftest.er1
16994 grep -v '^ *+' conftest.er1
>conftest.err
16996 cat conftest.err
>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try
='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try
='test -s conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 eval "$as_ac_var=yes"
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.
$ac_ext >&5
17017 eval "$as_ac_var=no"
17019 rm -f conftest.err conftest.
$ac_objext \
17020 conftest
$ac_exeext conftest.
$ac_ext
17022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17024 if test `eval echo '${'$as_ac_var'}'` = yes; then
17025 cat >>confdefs.h
<<_ACEOF
17026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17038 am_save_CPPFLAGS
="$CPPFLAGS"
17040 for element
in $INCICONV; do
17042 for x
in $CPPFLAGS; do
17044 acl_save_prefix
="$prefix"
17045 prefix
="$acl_final_prefix"
17046 acl_save_exec_prefix
="$exec_prefix"
17047 exec_prefix
="$acl_final_exec_prefix"
17049 exec_prefix
="$acl_save_exec_prefix"
17050 prefix
="$acl_save_prefix"
17052 if test "X$x" = "X$element"; then
17057 if test -z "$haveit"; then
17058 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17063 echo "$as_me:$LINENO: checking for iconv" >&5
17064 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17065 if test "${am_cv_func_iconv+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 am_cv_func_iconv
="no, consider installing GNU libiconv"
17071 cat >conftest.
$ac_ext <<_ACEOF
17074 cat confdefs.h
>>conftest.
$ac_ext
17075 cat >>conftest.
$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <stdlib.h>
17082 iconv_t cd = iconv_open("","");
17083 iconv(cd,NULL,NULL,NULL,NULL);
17089 rm -f conftest.
$ac_objext conftest
$ac_exeext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17091 (eval $ac_link) 2>conftest.er1
17093 grep -v '^ *+' conftest.er1
>conftest.err
17095 cat conftest.err
>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try
='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try
='test -s conftest$ac_exeext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 am_cv_func_iconv
=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.
$ac_ext >&5
17117 rm -f conftest.err conftest.
$ac_objext \
17118 conftest
$ac_exeext conftest.
$ac_ext
17119 if test "$am_cv_func_iconv" != yes; then
17120 am_save_LIBS
="$LIBS"
17121 LIBS
="$LIBS $LIBICONV"
17122 cat >conftest.
$ac_ext <<_ACEOF
17125 cat confdefs.h
>>conftest.
$ac_ext
17126 cat >>conftest.
$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 #include <stdlib.h>
17133 iconv_t cd = iconv_open("","");
17134 iconv(cd,NULL,NULL,NULL,NULL);
17140 rm -f conftest.
$ac_objext conftest
$ac_exeext
17141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17142 (eval $ac_link) 2>conftest.er1
17144 grep -v '^ *+' conftest.er1
>conftest.err
17146 cat conftest.err
>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try
='test -z "$ac_c_werror_flag"
17150 || test ! -s conftest.err'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try
='test -s conftest$ac_exeext'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 am_cv_lib_iconv
=yes
17163 am_cv_func_iconv
=yes
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.
$ac_ext >&5
17169 rm -f conftest.err conftest.
$ac_objext \
17170 conftest
$ac_exeext conftest.
$ac_ext
17171 LIBS
="$am_save_LIBS"
17175 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17176 echo "${ECHO_T}$am_cv_func_iconv" >&6
17177 if test "$am_cv_func_iconv" = yes; then
17179 cat >>confdefs.h
<<\_ACEOF
17180 #define HAVE_ICONV 1
17184 if test "$am_cv_lib_iconv" = yes; then
17185 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17186 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17187 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17188 echo "${ECHO_T}$LIBICONV" >&6
17190 CPPFLAGS
="$am_save_CPPFLAGS"
17197 if test "$am_cv_func_iconv" = yes; then
17198 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17199 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17200 if test "${am_cv_proto_iconv+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 cat >conftest.
$ac_ext <<_ACEOF
17207 cat confdefs.h
>>conftest.
$ac_ext
17208 cat >>conftest.
$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 #include <stdlib.h>
17217 #if defined(__STDC__) || defined(__cplusplus)
17218 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17231 rm -f conftest.
$ac_objext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>conftest.er1
17235 grep -v '^ *+' conftest.er1
>conftest.err
17237 cat conftest.err
>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try
='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try
='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 am_cv_proto_iconv_arg1
=""
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.
$ac_ext >&5
17258 am_cv_proto_iconv_arg1
="const"
17260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17261 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);"
17264 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17265 echo "$as_me:$LINENO: result: ${ac_t:-
17266 }$am_cv_proto_iconv" >&5
17267 echo "${ECHO_T}${ac_t:-
17268 }$am_cv_proto_iconv" >&6
17270 cat >>confdefs.h
<<_ACEOF
17271 #define ICONV_CONST $am_cv_proto_iconv_arg1
17277 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17278 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17279 if test "${am_cv_langinfo_codeset+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 cat >conftest.
$ac_ext <<_ACEOF
17285 cat confdefs.h
>>conftest.
$ac_ext
17286 cat >>conftest.
$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <langinfo.h>
17292 char* cs = nl_langinfo(CODESET);
17297 rm -f conftest.
$ac_objext conftest
$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299 (eval $ac_link) 2>conftest.er1
17301 grep -v '^ *+' conftest.er1
>conftest.err
17303 cat conftest.err
>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try
='test -z "$ac_c_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try
='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 am_cv_langinfo_codeset
=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.
$ac_ext >&5
17324 am_cv_langinfo_codeset
=no
17326 rm -f conftest.err conftest.
$ac_objext \
17327 conftest
$ac_exeext conftest.
$ac_ext
17330 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17331 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17332 if test $am_cv_langinfo_codeset = yes; then
17334 cat >>confdefs.h
<<\_ACEOF
17335 #define HAVE_LANGINFO_CODESET 1
17340 if test $ac_cv_header_locale_h = yes; then
17342 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17343 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17344 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 cat >conftest.
$ac_ext <<_ACEOF
17350 cat confdefs.h
>>conftest.
$ac_ext
17351 cat >>conftest.
$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 #include <locale.h>
17362 rm -f conftest.
$ac_objext conftest
$ac_exeext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17364 (eval $ac_link) 2>conftest.er1
17366 grep -v '^ *+' conftest.er1
>conftest.err
17368 cat conftest.err
>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try
='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try
='test -s conftest$ac_exeext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 am_cv_val_LC_MESSAGES
=yes
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.
$ac_ext >&5
17389 am_cv_val_LC_MESSAGES
=no
17391 rm -f conftest.err conftest.
$ac_objext \
17392 conftest
$ac_exeext conftest.
$ac_ext
17394 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17395 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17396 if test $am_cv_val_LC_MESSAGES = yes; then
17398 cat >>confdefs.h
<<\_ACEOF
17399 #define HAVE_LC_MESSAGES 1
17406 for ac_prog
in bison
17408 # Extract the first word of "$ac_prog", so it can be a program name with args.
17409 set dummy
$ac_prog; ac_word
=$2
17410 echo "$as_me:$LINENO: checking for $ac_word" >&5
17411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17412 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 if test -n "$INTLBISON"; then
17416 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17419 for as_dir
in $PATH
17422 test -z "$as_dir" && as_dir
=.
17423 for ac_exec_ext
in '' $ac_executable_extensions; do
17424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_INTLBISON
="$ac_prog"
17426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17434 INTLBISON
=$ac_cv_prog_INTLBISON
17435 if test -n "$INTLBISON"; then
17436 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17437 echo "${ECHO_T}$INTLBISON" >&6
17439 echo "$as_me:$LINENO: result: no" >&5
17440 echo "${ECHO_T}no" >&6
17443 test -n "$INTLBISON" && break
17446 if test -z "$INTLBISON"; then
17449 echo "$as_me:$LINENO: checking version of bison" >&5
17450 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17451 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17452 case $ac_prog_version in
17453 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17454 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17455 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17456 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17458 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17459 echo "${ECHO_T}$ac_prog_version" >&6
17461 if test $ac_verc_fail = yes; then
17467 # Check whether --with-language or --without-language was given.
17468 if test "${with_language+set}" = set; then
17469 withval
="$with_language"
17470 if test "$withval" = "all"; then
17473 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17492 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17493 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17494 # Check whether --enable-nls or --disable-nls was given.
17495 if test "${enable_nls+set}" = set; then
17496 enableval
="$enable_nls"
17501 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17502 echo "${ECHO_T}$USE_NLS" >&6
17506 BUILD_INCLUDED_LIBINTL
=no
17507 USE_INCLUDED_LIBINTL
=no
17513 if test "$USE_NLS" = "yes"; then
17514 gt_use_preinstalled_gnugettext
=no
17516 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17517 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17519 # Check whether --with-included-gettext or --without-included-gettext was given.
17520 if test "${with_included_gettext+set}" = set; then
17521 withval
="$with_included_gettext"
17522 nls_cv_force_use_gnu_gettext
=$withval
17524 nls_cv_force_use_gnu_gettext
=no
17526 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17527 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17529 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17530 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17537 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17538 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17539 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 cat >conftest.
$ac_ext <<_ACEOF
17545 cat confdefs.h
>>conftest.
$ac_ext
17546 cat >>conftest.
$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548 #include <libintl.h>
17549 extern int _nl_msg_cat_cntr;
17550 extern int *_nl_domain_bindings;
17554 bindtextdomain ("", "");
17555 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17560 rm -f conftest.
$ac_objext conftest
$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
17564 grep -v '^ *+' conftest.er1
>conftest.err
17566 cat conftest.err
>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try
='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try
='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 gt_cv_func_gnugettext2_libc
=yes
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.
$ac_ext >&5
17587 gt_cv_func_gnugettext2_libc
=no
17589 rm -f conftest.err conftest.
$ac_objext \
17590 conftest
$ac_exeext conftest.
$ac_ext
17592 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17593 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17595 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17601 acl_save_prefix
="$prefix"
17602 prefix
="$acl_final_prefix"
17603 acl_save_exec_prefix
="$exec_prefix"
17604 exec_prefix
="$acl_final_exec_prefix"
17606 eval additional_includedir
=\"$includedir\"
17607 eval additional_libdir
=\"$libdir\"
17609 exec_prefix
="$acl_save_exec_prefix"
17610 prefix
="$acl_save_prefix"
17613 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17614 if test "${with_libintl_prefix+set}" = set; then
17615 withval
="$with_libintl_prefix"
17617 if test "X$withval" = "Xno"; then
17620 if test "X$withval" = "X"; then
17622 acl_save_prefix
="$prefix"
17623 prefix
="$acl_final_prefix"
17624 acl_save_exec_prefix
="$exec_prefix"
17625 exec_prefix
="$acl_final_exec_prefix"
17627 eval additional_includedir
=\"$includedir\"
17628 eval additional_libdir
=\"$libdir\"
17630 exec_prefix
="$acl_save_exec_prefix"
17631 prefix
="$acl_save_prefix"
17634 additional_includedir
="$withval/include"
17635 additional_libdir
="$withval/lib"
17645 names_already_handled
=
17646 names_next_round
='intl '
17647 while test -n "$names_next_round"; do
17648 names_this_round
="$names_next_round"
17650 for name
in $names_this_round; do
17652 for n
in $names_already_handled; do
17653 if test "$n" = "$name"; then
17654 already_handled
=yes
17658 if test -z "$already_handled"; then
17659 names_already_handled
="$names_already_handled $name"
17660 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17661 eval value
=\"\
$HAVE_LIB$uppername\"
17662 if test -n "$value"; then
17663 if test "$value" = yes; then
17664 eval value
=\"\
$LIB$uppername\"
17665 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17666 eval value
=\"\
$LTLIB$uppername\"
17667 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17676 if test $use_additional = yes; then
17677 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17678 found_dir
="$additional_libdir"
17679 found_so
="$additional_libdir/lib$name.$shlibext"
17680 if test -f "$additional_libdir/lib$name.la"; then
17681 found_la
="$additional_libdir/lib$name.la"
17684 if test -f "$additional_libdir/lib$name.$libext"; then
17685 found_dir
="$additional_libdir"
17686 found_a
="$additional_libdir/lib$name.$libext"
17687 if test -f "$additional_libdir/lib$name.la"; then
17688 found_la
="$additional_libdir/lib$name.la"
17693 if test "X$found_dir" = "X"; then
17694 for x
in $LDFLAGS $LTLIBINTL; do
17696 acl_save_prefix
="$prefix"
17697 prefix
="$acl_final_prefix"
17698 acl_save_exec_prefix
="$exec_prefix"
17699 exec_prefix
="$acl_final_exec_prefix"
17701 exec_prefix
="$acl_save_exec_prefix"
17702 prefix
="$acl_save_prefix"
17706 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17707 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17709 found_so
="$dir/lib$name.$shlibext"
17710 if test -f "$dir/lib$name.la"; then
17711 found_la
="$dir/lib$name.la"
17714 if test -f "$dir/lib$name.$libext"; then
17716 found_a
="$dir/lib$name.$libext"
17717 if test -f "$dir/lib$name.la"; then
17718 found_la
="$dir/lib$name.la"
17724 if test "X$found_dir" != "X"; then
17729 if test "X$found_dir" != "X"; then
17730 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17731 if test "X$found_so" != "X"; then
17732 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17733 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17736 for x
in $ltrpathdirs; do
17737 if test "X$x" = "X$found_dir"; then
17742 if test -z "$haveit"; then
17743 ltrpathdirs
="$ltrpathdirs $found_dir"
17745 if test "$hardcode_direct" = yes; then
17746 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17748 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17749 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17751 for x
in $rpathdirs; do
17752 if test "X$x" = "X$found_dir"; then
17757 if test -z "$haveit"; then
17758 rpathdirs
="$rpathdirs $found_dir"
17762 for x
in $LDFLAGS $LIBINTL; do
17764 acl_save_prefix
="$prefix"
17765 prefix
="$acl_final_prefix"
17766 acl_save_exec_prefix
="$exec_prefix"
17767 exec_prefix
="$acl_final_exec_prefix"
17769 exec_prefix
="$acl_save_exec_prefix"
17770 prefix
="$acl_save_prefix"
17772 if test "X$x" = "X-L$found_dir"; then
17777 if test -z "$haveit"; then
17778 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17780 if test "$hardcode_minus_L" != no
; then
17781 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17783 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17789 if test "X$found_a" != "X"; then
17790 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17792 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17795 additional_includedir
=
17796 case "$found_dir" in
17798 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17799 additional_includedir
="$basedir/include"
17802 if test "X$additional_includedir" != "X"; then
17803 if test "X$additional_includedir" != "X/usr/include"; then
17805 if test "X$additional_includedir" = "X/usr/local/include"; then
17806 if test -n "$GCC"; then
17808 linux
*) haveit
=yes;;
17812 if test -z "$haveit"; then
17813 for x
in $CPPFLAGS $INCINTL; do
17815 acl_save_prefix
="$prefix"
17816 prefix
="$acl_final_prefix"
17817 acl_save_exec_prefix
="$exec_prefix"
17818 exec_prefix
="$acl_final_exec_prefix"
17820 exec_prefix
="$acl_save_exec_prefix"
17821 prefix
="$acl_save_prefix"
17823 if test "X$x" = "X-I$additional_includedir"; then
17828 if test -z "$haveit"; then
17829 if test -d "$additional_includedir"; then
17830 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17836 if test -n "$found_la"; then
17837 save_libdir
="$libdir"
17838 case "$found_la" in
17839 */* |
*\\*) .
"$found_la" ;;
17840 *) .
"./$found_la" ;;
17842 libdir
="$save_libdir"
17843 for dep
in $dependency_libs; do
17846 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17847 if test "X$additional_libdir" != "X/usr/lib"; then
17849 if test "X$additional_libdir" = "X/usr/local/lib"; then
17850 if test -n "$GCC"; then
17852 linux
*) haveit
=yes;;
17856 if test -z "$haveit"; then
17858 for x
in $LDFLAGS $LIBINTL; do
17860 acl_save_prefix
="$prefix"
17861 prefix
="$acl_final_prefix"
17862 acl_save_exec_prefix
="$exec_prefix"
17863 exec_prefix
="$acl_final_exec_prefix"
17865 exec_prefix
="$acl_save_exec_prefix"
17866 prefix
="$acl_save_prefix"
17868 if test "X$x" = "X-L$additional_libdir"; then
17873 if test -z "$haveit"; then
17874 if test -d "$additional_libdir"; then
17875 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17879 for x
in $LDFLAGS $LTLIBINTL; do
17881 acl_save_prefix
="$prefix"
17882 prefix
="$acl_final_prefix"
17883 acl_save_exec_prefix
="$exec_prefix"
17884 exec_prefix
="$acl_final_exec_prefix"
17886 exec_prefix
="$acl_save_exec_prefix"
17887 prefix
="$acl_save_prefix"
17889 if test "X$x" = "X-L$additional_libdir"; then
17894 if test -z "$haveit"; then
17895 if test -d "$additional_libdir"; then
17896 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17903 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17904 if test "$enable_rpath" != no
; then
17906 for x
in $rpathdirs; do
17907 if test "X$x" = "X$dir"; then
17912 if test -z "$haveit"; then
17913 rpathdirs
="$rpathdirs $dir"
17916 for x
in $ltrpathdirs; do
17917 if test "X$x" = "X$dir"; then
17922 if test -z "$haveit"; then
17923 ltrpathdirs
="$ltrpathdirs $dir"
17928 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17931 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17934 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17935 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17941 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17942 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17948 if test "X$rpathdirs" != "X"; then
17949 if test -n "$hardcode_libdir_separator"; then
17951 for found_dir
in $rpathdirs; do
17952 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17954 acl_save_libdir
="$libdir"
17956 eval flag
=\"$hardcode_libdir_flag_spec\"
17957 libdir
="$acl_save_libdir"
17958 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17960 for found_dir
in $rpathdirs; do
17961 acl_save_libdir
="$libdir"
17962 libdir
="$found_dir"
17963 eval flag
=\"$hardcode_libdir_flag_spec\"
17964 libdir
="$acl_save_libdir"
17965 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17969 if test "X$ltrpathdirs" != "X"; then
17970 for found_dir
in $ltrpathdirs; do
17971 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17975 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17976 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17977 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 gt_save_CPPFLAGS
="$CPPFLAGS"
17981 CPPFLAGS
="$CPPFLAGS $INCINTL"
17982 gt_save_LIBS
="$LIBS"
17983 LIBS
="$LIBS $LIBINTL"
17984 cat >conftest.
$ac_ext <<_ACEOF
17987 cat confdefs.h
>>conftest.
$ac_ext
17988 cat >>conftest.
$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <libintl.h>
17991 extern int _nl_msg_cat_cntr;
17996 const char *_nl_expand_alias ();
18000 bindtextdomain ("", "");
18001 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18006 rm -f conftest.
$ac_objext conftest
$ac_exeext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18008 (eval $ac_link) 2>conftest.er1
18010 grep -v '^ *+' conftest.er1
>conftest.err
18012 cat conftest.err
>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try
='test -z "$ac_c_werror_flag"
18016 || test ! -s conftest.err'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try
='test -s conftest$ac_exeext'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 gt_cv_func_gnugettext2_libintl
=yes
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.
$ac_ext >&5
18033 gt_cv_func_gnugettext2_libintl
=no
18035 rm -f conftest.err conftest.
$ac_objext \
18036 conftest
$ac_exeext conftest.
$ac_ext
18037 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
18038 LIBS
="$LIBS $LIBICONV"
18039 cat >conftest.
$ac_ext <<_ACEOF
18042 cat confdefs.h
>>conftest.
$ac_ext
18043 cat >>conftest.
$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 #include <libintl.h>
18046 extern int _nl_msg_cat_cntr;
18051 const char *_nl_expand_alias ();
18055 bindtextdomain ("", "");
18056 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18061 rm -f conftest.
$ac_objext conftest
$ac_exeext
18062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18063 (eval $ac_link) 2>conftest.er1
18065 grep -v '^ *+' conftest.er1
>conftest.err
18067 cat conftest.err
>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try
='test -z "$ac_c_werror_flag"
18071 || test ! -s conftest.err'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try
='test -s conftest$ac_exeext'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 LIBINTL
="$LIBINTL $LIBICONV"
18084 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
18085 gt_cv_func_gnugettext2_libintl
=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18092 rm -f conftest.err conftest.
$ac_objext \
18093 conftest
$ac_exeext conftest.
$ac_ext
18095 CPPFLAGS
="$gt_save_CPPFLAGS"
18096 LIBS
="$gt_save_LIBS"
18098 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18099 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18102 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18103 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18104 && test "$PACKAGE" != gettext; }; then
18105 gt_use_preinstalled_gnugettext
=yes
18113 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18114 nls_cv_use_gnu_gettext
=yes
18118 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18119 INTLOBJS
="\$(GETTOBJS)"
18120 BUILD_INCLUDED_LIBINTL
=yes
18121 USE_INCLUDED_LIBINTL
=yes
18122 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
18123 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18124 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18127 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18128 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18133 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18134 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18136 cat >>confdefs.h
<<\_ACEOF
18137 #define ENABLE_NLS 1
18145 if test "$USE_NLS" = "yes"; then
18147 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18148 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18149 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18150 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18151 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18152 echo "${ECHO_T}$LIBINTL" >&6
18154 for element
in $INCINTL; do
18156 for x
in $CPPFLAGS; do
18158 acl_save_prefix
="$prefix"
18159 prefix
="$acl_final_prefix"
18160 acl_save_exec_prefix
="$exec_prefix"
18161 exec_prefix
="$acl_final_exec_prefix"
18163 exec_prefix
="$acl_save_exec_prefix"
18164 prefix
="$acl_save_prefix"
18166 if test "X$x" = "X$element"; then
18171 if test -z "$haveit"; then
18172 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18179 cat >>confdefs.h
<<\_ACEOF
18180 #define HAVE_GETTEXT 1
18184 cat >>confdefs.h
<<\_ACEOF
18185 #define HAVE_DCGETTEXT 1
18194 if test "$PACKAGE" = gettext; then
18195 BUILD_INCLUDED_LIBINTL
=yes
18203 nls_cv_header_intl
=
18204 nls_cv_header_libgt
=
18215 INTL_LIBTOOL_SUFFIX_PREFIX
=
18219 INTLLIBS
="$LIBINTL"
18226 if test $USE_INCLUDED_LIBINTL = yes; then
18227 INCINTL
=-I\
${top_builddir}/intl
18231 if test x
$USE_NLS = xyes
; then
18233 echo "$as_me:$LINENO: checking for autopoint" >&5
18234 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18235 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18236 if test -n "$autopoint_version"; then
18238 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18239 echo "${ECHO_T}yes ($autopoint_version)" >&6
18244 echo "$as_me:$LINENO: result: no" >&5
18245 echo "${ECHO_T}no" >&6
18253 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18254 { echo "$as_me:$LINENO: WARNING:
18255 You need to install GNU gettext/gettext-tools to compile aMule with
18257 echo "$as_me: WARNING:
18258 You need to install GNU gettext/gettext-tools to compile aMule with
18259 i18n support." >&2;}
18260 _mule_warning_10
=yes
18261 _mule_has_warnings
=yes
18266 if test ${USE_NLS:-no} = yes; then
18268 echo "$as_me:$LINENO: checking for requested languages" >&5
18269 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18270 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18272 if test "$AMULE_DAEMON" = "yes"; then
18274 if test -z "$LINGUAS"; then
18275 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18278 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18279 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18283 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18286 AMULE_DAEMON_MANPAGES
=
18292 if test "$AMULECMD" = "yes"; then
18294 if test -z "$LINGUAS"; then
18295 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18298 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18299 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18303 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18312 if test "$WEB" = "yes"; then
18314 if test -z "$LINGUAS"; then
18315 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18318 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18319 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18323 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18332 if test "$AMULE_GUI" = "yes"; then
18334 if test -z "$LINGUAS"; then
18335 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18338 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18339 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18343 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18346 AMULE_GUI_MANPAGES
=
18352 if test "$CAS" = "yes"; then
18354 if test -z "$LINGUAS"; then
18355 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18358 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18359 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18363 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18372 if test "$WXCAS" = "yes"; then
18374 if test -z "$LINGUAS"; then
18375 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18378 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18379 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18383 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18392 if test "$ED2K" = "yes"; then
18394 if test -z "$LINGUAS"; then
18395 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18398 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18399 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18403 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18412 if test "$ALC" = "yes"; then
18414 if test -z "$LINGUAS"; then
18415 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18418 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18419 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18423 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18432 if test "$ALCC" = "yes"; then
18434 if test -z "$LINGUAS"; then
18435 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18438 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18439 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18443 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18452 if test "$MONOLITHIC" = "yes"; then
18454 if test -z "$LINGUAS"; then
18455 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18458 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18459 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18463 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18466 MONOLITHIC_MANPAGES
=
18471 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18472 echo "${ECHO_T}${LINGUAS:-all}" >&6
18479 # Flush standard test results for speeding cache
18480 cat >confcache
<<\_ACEOF
18481 # This file is a shell script that caches the results of configure
18482 # tests run on this system so they can be shared between configure
18483 # scripts and configure runs, see configure's option --config-cache.
18484 # It is not useful on other systems. If it contains results you don't
18485 # want to keep, you may remove or edit it.
18487 # config.status only pays attention to the cache file if you give it
18488 # the --recheck option to rerun configure.
18490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18492 # following values.
18496 # The following way of writing the cache mishandles newlines in values,
18497 # but we know of no workaround that is simple, portable, and efficient.
18498 # So, don't put newlines in cache variables' values.
18499 # Ultrix sh set writes to stderr and can't be redirected directly,
18500 # and sets the high bit in the cache file unless we assign to the vars.
18503 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18505 # `set' does not quote correctly, so add quotes (double-quote
18506 # substitution turns \\\\ into \\, and sed turns \\ into \).
18509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18512 # `set' quotes correctly as required by POSIX, so do not add quotes.
18514 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18523 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18525 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18526 if test -w $cache_file; then
18527 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18528 cat confcache
>$cache_file
18530 echo "not updating unwritable cache $cache_file"
18539 # Check whether --enable-debug or --disable-debug was given.
18540 if test "${enable_debug+set}" = set; then
18541 enableval
="$enable_debug"
18542 USE_DEBUG
=${enableval:-yes}
18547 if test $USE_DEBUG = yes; then
18549 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18551 MULECFLAGS
="$MULECFLAGS -g"
18552 MULECXXFLAGS
="$MULECXXFLAGS -g"
18554 if test ${GLIBCXX:-no} = yes; then
18555 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18558 if test ${GCC:-no} = yes; then
18560 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18561 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18565 if test ${SYS:-unknown} = win32
; then
18566 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18572 if test ${GCC:-no} = yes; then
18574 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18575 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18584 # Check whether --enable-optimize or --disable-optimize was given.
18585 if test "${enable_optimize+set}" = set; then
18586 enableval
="$enable_optimize"
18587 USE_OPTIMIZE
=${enableval:-no}
18592 if test $USE_OPTIMIZE = yes; then
18594 MULECFLAGS
="$MULECFLAGS -O2"
18595 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18601 # Check whether --enable-profile or --disable-profile was given.
18602 if test "${enable_profile+set}" = set; then
18603 enableval
="$enable_profile"
18604 USE_PROFILE
=${enableval:-no}
18609 if test $USE_PROFILE = yes; then
18612 MULECFLAGS
="$MULECFLAGS -pg"
18613 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18615 MULELDFLAGS
="$MULELDFLAGS -pg"
18621 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18622 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18623 # Check whether --enable-static or --disable-static was given.
18624 if test "${enable_static+set}" = set; then
18625 enableval
="$enable_static"
18626 if test ${enableval:-no} = yes; then
18627 MULELDFLAGS
="$MULELDFLAGS -static"
18631 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18632 echo "${ECHO_T}${enableval:-no}" >&6
18634 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18637 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18638 echo "$as_me:$LINENO: checking for docdir" >&5
18639 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18640 if test -z "$docdir"; then
18641 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18644 echo "$as_me:$LINENO: result: $docdir" >&5
18645 echo "${ECHO_T}$docdir" >&6
18647 # Try to set the SVN checkout-date
18648 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18649 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18650 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18652 svndate
="rev. `cat $srcdir/.svn-revision`"
18653 elif test -d $srcdir/.svn
# SVNDATE for svn
18655 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18657 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18658 echo "${ECHO_T}${svndate:-None required}" >&6
18659 if test -n "$svndate"; then
18662 cat >>confdefs.h
<<_ACEOF
18663 #define SVNDATE "$svndate"
18666 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18674 # Check whether --with-denoise-level or --without-denoise-level was given.
18675 if test "${with_denoise_level+set}" = set; then
18676 withval
="$with_denoise_level"
18680 echo "$as_me:$LINENO: checking denoising level" >&5
18681 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18682 if test ${with_denoise_level:-5} = yes; then
18683 with_denoise_level
=5
18686 if test ${with_denoise_level:-5} = no
; then
18687 with_denoise_level
=0
18690 if test ${with_denoise_level:-5} -gt 4; then
18691 if test "${svndate:+set}" = "set"; then
18692 with_denoise_level
=0
18694 with_denoise_level
=4
18699 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18700 echo "${ECHO_T}$with_denoise_level" >&6
18702 ac_config_commands
="$ac_config_commands denoiser"
18708 if test x
$WEB = xyes
; then
18718 if test x
$ED2K = xyes
; then
18728 if test x
$CAS = xyes
; then
18738 if test x
$WXCAS = xyes
; then
18748 if test x
$ALC = xyes
; then
18758 if test x
$ALCC = xyes
; then
18768 if test x
$AMULE_GUI = xyes
; then
18770 AMULE_GUI_FALSE
='#'
18778 if test x
$AMULE_DAEMON = xyes
; then
18780 AMULE_DAEMON_FALSE
='#'
18782 AMULE_DAEMON_TRUE
='#'
18783 AMULE_DAEMON_FALSE
=
18788 if test x
$AMULECMD = xyes
; then
18790 COMPILE_CMD_FALSE
='#'
18792 COMPILE_CMD_TRUE
='#'
18798 if test x
$MONOLITHIC = xyes
; then
18800 MONOLITHIC_FALSE
='#'
18802 MONOLITHIC_TRUE
='#'
18808 if test x
$XAS = xyes
; then
18818 if test x
$ENABLE_UPNP = xyes
; then
18820 ENABLE_UPNP_FALSE
='#'
18822 ENABLE_UPNP_TRUE
='#'
18828 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18829 ENABLE_IP2COUNTRY_TRUE
=
18830 ENABLE_IP2COUNTRY_FALSE
='#'
18832 ENABLE_IP2COUNTRY_TRUE
='#'
18833 ENABLE_IP2COUNTRY_FALSE
=
18838 if test x
$SYS = xwin32
; then
18840 SYS_WIN32_FALSE
='#'
18848 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18858 if test x
$SYS = xdarwin
; then
18859 NEED_CORESERVICES_TRUE
=
18860 NEED_CORESERVICES_FALSE
='#'
18862 NEED_CORESERVICES_TRUE
='#'
18863 NEED_CORESERVICES_FALSE
=
18868 if test x
$USE_NLS = xyes
; then
18870 COMPILE_NLS_FALSE
='#'
18872 COMPILE_NLS_TRUE
='#'
18878 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18879 GENERATE_FLEX_HEADER_TRUE
=
18880 GENERATE_FLEX_HEADER_FALSE
='#'
18882 GENERATE_FLEX_HEADER_TRUE
='#'
18883 GENERATE_FLEX_HEADER_FALSE
=
18888 if test x
$INSTALL_SKINS = xyes
; then
18889 INSTALL_SKINS_TRUE
=
18890 INSTALL_SKINS_FALSE
='#'
18892 INSTALL_SKINS_TRUE
='#'
18893 INSTALL_SKINS_FALSE
=
18897 # Check for readline library
18898 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18900 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18901 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18902 if test "${vl_cv_lib_readline+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 for readline_lib
in readline edit editline
; do
18908 for termcap_lib
in "" termcap curses ncurses
; do
18909 if test -z "$termcap_lib"; then
18910 TRY_LIB
="-l$readline_lib"
18912 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18914 LIBS
="$ORIG_LIBS $TRY_LIB"
18915 cat >conftest.
$ac_ext <<_ACEOF
18918 cat confdefs.h
>>conftest.
$ac_ext
18919 cat >>conftest.
$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any gcc2 internal prototype to avoid an error. */
18926 /* We use char because int might match the return type of a gcc2
18927 builtin and then its argument prototype would still apply. */
18937 rm -f conftest.
$ac_objext conftest
$ac_exeext
18938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18939 (eval $ac_link) 2>conftest.er1
18941 grep -v '^ *+' conftest.er1
>conftest.err
18943 cat conftest.err
>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } &&
18946 { ac_try
='test -z "$ac_c_werror_flag"
18947 || test ! -s conftest.err'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try
='test -s conftest$ac_exeext'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
18959 vl_cv_lib_readline
="$TRY_LIB"
18961 echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.
$ac_ext >&5
18965 rm -f conftest.err conftest.
$ac_objext \
18966 conftest
$ac_exeext conftest.
$ac_ext
18967 if test -n "$vl_cv_lib_readline"; then
18971 if test -n "$vl_cv_lib_readline"; then
18975 if test -z "$vl_cv_lib_readline"; then
18976 vl_cv_lib_readline
="no"
18980 READLINE_LIBS
="$vl_cv_lib_readline"
18984 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18985 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18987 if test "$vl_cv_lib_readline" != "no"; then
18989 cat >>confdefs.h
<<\_ACEOF
18990 #define HAVE_LIBREADLINE 1
18995 for ac_header
in readline.h readline
/readline.h
18997 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18999 echo "$as_me:$LINENO: checking for $ac_header" >&5
19000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19007 # Is the header compilable?
19008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19010 cat >conftest.
$ac_ext <<_ACEOF
19013 cat confdefs.h
>>conftest.
$ac_ext
19014 cat >>conftest.
$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 $ac_includes_default
19017 #include <$ac_header>
19019 rm -f conftest.
$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1
>conftest.err
19025 cat conftest.err
>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try
='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try
='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_header_compiler
=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.
$ac_ext >&5
19046 ac_header_compiler
=no
19048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19050 echo "${ECHO_T}$ac_header_compiler" >&6
19052 # Is the header present?
19053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19055 cat >conftest.
$ac_ext <<_ACEOF
19058 cat confdefs.h
>>conftest.
$ac_ext
19059 cat >>conftest.
$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19061 #include <$ac_header>
19063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19066 grep -v '^ *+' conftest.er1
>conftest.err
19068 cat conftest.err
>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } >/dev
/null
; then
19071 if test -s conftest.err
; then
19072 ac_cpp_err
=$ac_c_preproc_warn_flag
19073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19080 if test -z "$ac_cpp_err"; then
19081 ac_header_preproc
=yes
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.
$ac_ext >&5
19086 ac_header_preproc
=no
19088 rm -f conftest.err conftest.
$ac_ext
19089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19090 echo "${ECHO_T}$ac_header_preproc" >&6
19092 # So? What about this header?
19093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19099 ac_header_preproc
=yes
19102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19116 ## ------------------------------ ##
19117 ## Report this to admin@amule.org ##
19118 ## ------------------------------ ##
19121 sed "s/^/$as_me: WARNING: /" >&2
19124 echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 eval "$as_ac_Header=\$ac_header_preproc"
19131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19136 cat >>confdefs.h
<<_ACEOF
19137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19144 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19145 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19146 if test "${vl_cv_lib_readline_history+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 vl_cv_lib_readline_history
="no"
19151 cat >conftest.
$ac_ext <<_ACEOF
19154 cat confdefs.h
>>conftest.
$ac_ext
19155 cat >>conftest.
$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19158 /* Override any gcc2 internal prototype to avoid an error. */
19162 /* We use char because int might match the return type of a gcc2
19163 builtin and then its argument prototype would still apply. */
19164 char add_history ();
19173 rm -f conftest.
$ac_objext conftest
$ac_exeext
19174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175 (eval $ac_link) 2>conftest.er1
19177 grep -v '^ *+' conftest.er1
>conftest.err
19179 cat conftest.err
>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try
='test -z "$ac_c_werror_flag"
19183 || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try
='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 vl_cv_lib_readline_history
="yes"
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.
$ac_ext >&5
19201 rm -f conftest.err conftest.
$ac_objext \
19202 conftest
$ac_exeext conftest.
$ac_ext
19205 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19206 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19207 if test "$vl_cv_lib_readline_history" = "yes"; then
19209 cat >>confdefs.h
<<\_ACEOF
19210 #define HAVE_READLINE_HISTORY 1
19215 for ac_header
in history.h readline
/history.h
19217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19219 echo "$as_me:$LINENO: checking for $ac_header" >&5
19220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19227 # Is the header compilable?
19228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19230 cat >conftest.
$ac_ext <<_ACEOF
19233 cat confdefs.h
>>conftest.
$ac_ext
19234 cat >>conftest.
$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 $ac_includes_default
19237 #include <$ac_header>
19239 rm -f conftest.
$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1
>conftest.err
19245 cat conftest.err
>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try
='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try
='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_header_compiler
=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.
$ac_ext >&5
19266 ac_header_compiler
=no
19268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19270 echo "${ECHO_T}$ac_header_compiler" >&6
19272 # Is the header present?
19273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19275 cat >conftest.
$ac_ext <<_ACEOF
19278 cat confdefs.h
>>conftest.
$ac_ext
19279 cat >>conftest.
$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 #include <$ac_header>
19283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1
>conftest.err
19288 cat conftest.err
>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } >/dev
/null
; then
19291 if test -s conftest.err
; then
19292 ac_cpp_err
=$ac_c_preproc_warn_flag
19293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19300 if test -z "$ac_cpp_err"; then
19301 ac_header_preproc
=yes
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.
$ac_ext >&5
19306 ac_header_preproc
=no
19308 rm -f conftest.err conftest.
$ac_ext
19309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19310 echo "${ECHO_T}$ac_header_preproc" >&6
19312 # So? What about this header?
19313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19319 ac_header_preproc
=yes
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19336 ## ------------------------------ ##
19337 ## Report this to admin@amule.org ##
19338 ## ------------------------------ ##
19341 sed "s/^/$as_me: WARNING: /" >&2
19344 echo "$as_me:$LINENO: checking for $ac_header" >&5
19345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 eval "$as_ac_Header=\$ac_header_preproc"
19351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19356 cat >>confdefs.h
<<_ACEOF
19357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19371 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19374 # Check whether --enable-ccache or --disable-ccache was given.
19375 if test "${enable_ccache+set}" = set; then
19376 enableval
="$enable_ccache"
19381 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19382 if test "${with_ccache_prefix+set}" = set; then
19383 withval
="$with_ccache_prefix"
19387 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19388 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19389 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19390 echo "${ECHO_T}${enable_ccache:-no}" >&6
19392 if test ${enable_ccache:-no} = yes; then
19394 echo "$as_me:$LINENO: checking for ccache presence" >&5
19395 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19396 if test -z "$with_ccache_prefix"; then
19398 ccache_full
=`which ccache`
19399 with_ccache_prefix
=`dirname ${ccache_full}`
19403 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19405 echo "$as_me:$LINENO: result: yes" >&5
19406 echo "${ECHO_T}yes" >&6
19407 CC
="$with_ccache_prefix/ccache $CC"
19408 CXX
="$with_ccache_prefix/ccache $CXX"
19409 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19414 echo "$as_me:$LINENO: result: no" >&5
19415 echo "${ECHO_T}no" >&6
19424 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19426 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19428 if test x
$SYS = xwin32
; then
19429 ac_config_files
="$ac_config_files version.rc"
19433 cat >confcache
<<\_ACEOF
19434 # This file is a shell script that caches the results of configure
19435 # tests run on this system so they can be shared between configure
19436 # scripts and configure runs, see configure's option --config-cache.
19437 # It is not useful on other systems. If it contains results you don't
19438 # want to keep, you may remove or edit it.
19440 # config.status only pays attention to the cache file if you give it
19441 # the --recheck option to rerun configure.
19443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19445 # following values.
19449 # The following way of writing the cache mishandles newlines in values,
19450 # but we know of no workaround that is simple, portable, and efficient.
19451 # So, don't put newlines in cache variables' values.
19452 # Ultrix sh set writes to stderr and can't be redirected directly,
19453 # and sets the high bit in the cache file unless we assign to the vars.
19456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19458 # `set' does not quote correctly, so add quotes (double-quote
19459 # substitution turns \\\\ into \\, and sed turns \\ into \).
19462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19465 # `set' quotes correctly as required by POSIX, so do not add quotes.
19467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19478 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19479 if test -w $cache_file; then
19480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19481 cat confcache
>$cache_file
19483 echo "not updating unwritable cache $cache_file"
19488 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19489 # Let make expand exec_prefix.
19490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19494 # trailing colons and then remove the whole line if VPATH becomes empty
19495 # (actually we leave an empty line to preserve line numbers).
19496 if test "x$srcdir" = x.
; then
19497 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19498 s/:*\$(srcdir):*/:/;
19499 s/:*\${srcdir}:*/:/;
19501 s/^\([^=]*=[ ]*\):*/\1/;
19507 DEFS
=-DHAVE_CONFIG_H
19511 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19512 # 1. Remove the extension, and $U if already installed.
19513 ac_i
=`echo "$ac_i" |
19514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19516 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19517 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19519 LIBOBJS
=$ac_libobjs
19521 LTLIBOBJS
=$ac_ltlibobjs
19524 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19525 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19526 Usually this means the macro was only invoked conditionally." >&5
19527 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&2;}
19529 { (exit 1); exit 1; }; }
19531 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19532 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19533 Usually this means the macro was only invoked conditionally." >&5
19534 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&2;}
19536 { (exit 1); exit 1; }; }
19538 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19539 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19540 Usually this means the macro was only invoked conditionally." >&5
19541 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&2;}
19543 { (exit 1); exit 1; }; }
19545 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19546 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19547 Usually this means the macro was only invoked conditionally." >&5
19548 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19549 Usually this means the macro was only invoked conditionally." >&2;}
19550 { (exit 1); exit 1; }; }
19552 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19553 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19554 Usually this means the macro was only invoked conditionally." >&5
19555 echo "$as_me: error: conditional \"WEB\" was never defined.
19556 Usually this means the macro was only invoked conditionally." >&2;}
19557 { (exit 1); exit 1; }; }
19559 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19560 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19561 Usually this means the macro was only invoked conditionally." >&5
19562 echo "$as_me: error: conditional \"ED2K\" was never defined.
19563 Usually this means the macro was only invoked conditionally." >&2;}
19564 { (exit 1); exit 1; }; }
19566 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19567 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19568 Usually this means the macro was only invoked conditionally." >&5
19569 echo "$as_me: error: conditional \"CAS\" was never defined.
19570 Usually this means the macro was only invoked conditionally." >&2;}
19571 { (exit 1); exit 1; }; }
19573 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19574 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19575 Usually this means the macro was only invoked conditionally." >&5
19576 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19577 Usually this means the macro was only invoked conditionally." >&2;}
19578 { (exit 1); exit 1; }; }
19580 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19581 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19582 Usually this means the macro was only invoked conditionally." >&5
19583 echo "$as_me: error: conditional \"ALC\" was never defined.
19584 Usually this means the macro was only invoked conditionally." >&2;}
19585 { (exit 1); exit 1; }; }
19587 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19588 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19589 Usually this means the macro was only invoked conditionally." >&5
19590 echo "$as_me: error: conditional \"ALCC\" was never defined.
19591 Usually this means the macro was only invoked conditionally." >&2;}
19592 { (exit 1); exit 1; }; }
19594 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19595 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&5
19597 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19598 Usually this means the macro was only invoked conditionally." >&2;}
19599 { (exit 1); exit 1; }; }
19601 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19602 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&5
19604 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19605 Usually this means the macro was only invoked conditionally." >&2;}
19606 { (exit 1); exit 1; }; }
19608 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19609 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19610 Usually this means the macro was only invoked conditionally." >&5
19611 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19612 Usually this means the macro was only invoked conditionally." >&2;}
19613 { (exit 1); exit 1; }; }
19615 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19616 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&5
19618 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19619 Usually this means the macro was only invoked conditionally." >&2;}
19620 { (exit 1); exit 1; }; }
19622 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19623 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&5
19625 echo "$as_me: error: conditional \"XAS\" was never defined.
19626 Usually this means the macro was only invoked conditionally." >&2;}
19627 { (exit 1); exit 1; }; }
19629 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19630 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&5
19632 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19633 Usually this means the macro was only invoked conditionally." >&2;}
19634 { (exit 1); exit 1; }; }
19636 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19637 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19638 Usually this means the macro was only invoked conditionally." >&5
19639 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19640 Usually this means the macro was only invoked conditionally." >&2;}
19641 { (exit 1); exit 1; }; }
19643 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19644 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19645 Usually this means the macro was only invoked conditionally." >&5
19646 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19647 Usually this means the macro was only invoked conditionally." >&2;}
19648 { (exit 1); exit 1; }; }
19650 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19651 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19652 Usually this means the macro was only invoked conditionally." >&5
19653 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19654 Usually this means the macro was only invoked conditionally." >&2;}
19655 { (exit 1); exit 1; }; }
19657 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19658 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19659 Usually this means the macro was only invoked conditionally." >&5
19660 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19661 Usually this means the macro was only invoked conditionally." >&2;}
19662 { (exit 1); exit 1; }; }
19664 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19665 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19666 Usually this means the macro was only invoked conditionally." >&5
19667 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19668 Usually this means the macro was only invoked conditionally." >&2;}
19669 { (exit 1); exit 1; }; }
19671 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19672 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19673 Usually this means the macro was only invoked conditionally." >&5
19674 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19675 Usually this means the macro was only invoked conditionally." >&2;}
19676 { (exit 1); exit 1; }; }
19678 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19679 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&5
19681 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19682 Usually this means the macro was only invoked conditionally." >&2;}
19683 { (exit 1); exit 1; }; }
19686 : ${CONFIG_STATUS=./config.status}
19687 ac_clean_files_save
=$ac_clean_files
19688 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19691 cat >$CONFIG_STATUS <<_ACEOF
19693 # Generated by $as_me.
19694 # Run this file to recreate the current configuration.
19695 # Compiler output produced by configure, useful for debugging
19696 # configure, is in config.log if it exists.
19699 ac_cs_recheck=false
19701 SHELL=\${CONFIG_SHELL-$SHELL}
19704 cat >>$CONFIG_STATUS <<\_ACEOF
19705 ## --------------------- ##
19706 ## M4sh Initialization. ##
19707 ## --------------------- ##
19709 # Be Bourne compatible
19710 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19714 # is contrary to our usage. Disable this feature.
19715 alias -g '${1+"$@"}'='"$@"'
19716 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19719 DUALCASE
=1; export DUALCASE
# for MKS sh
19721 # Support unset when possible.
19722 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19729 # Work around bugs in pre-3.0 UWIN ksh.
19730 $as_unset ENV MAIL MAILPATH
19737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19739 LC_TELEPHONE LC_TIME
19741 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19742 eval $as_var=C
; export $as_var
19748 # Required to use basename.
19749 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19755 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19756 as_basename
=basename
19762 # Name of the executable.
19763 as_me
=`$as_basename "$0" ||
19764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19765 X"$0" : 'X\(//\)$' \| \
19766 X"$0" : 'X\(/\)$' \| \
19767 . : '\(.\)' 2>/dev/null ||
19769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19770 /^X\/\(\/\/\)$/{ s//\1/; q; }
19771 /^X\/\(\/\).*/{ s//\1/; q; }
19775 # PATH needs CR, and LINENO needs CR and PATH.
19776 # Avoid depending upon Character Ranges.
19777 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19778 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19779 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19780 as_cr_digits
='0123456789'
19781 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19783 # The user is always right.
19784 if test "${PATH_SEPARATOR+set}" != set; then
19785 echo "#! /bin/sh" >conf$$.sh
19786 echo "exit 0" >>conf$$.sh
19788 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19797 as_lineno_1
=$LINENO
19798 as_lineno_2
=$LINENO
19799 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19800 test "x$as_lineno_1" != "x$as_lineno_2" &&
19801 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19802 # Find who we are. Look in the path if we contain no path at all
19805 *[\\/]* ) as_myself
=$0 ;;
19806 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19807 for as_dir
in $PATH
19810 test -z "$as_dir" && as_dir
=.
19811 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19816 # We did not find ourselves, most probably we were run as `sh COMMAND'
19817 # in which case we are not to be found in the path.
19818 if test "x$as_myself" = x
; then
19821 if test ! -f "$as_myself"; then
19822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19824 { (exit 1); exit 1; }; }
19826 case $CONFIG_SHELL in
19828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19829 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19832 test -z "$as_dir" && as_dir
=.
19833 for as_base
in sh bash ksh sh5
; do
19836 if ("$as_dir/$as_base" -c '
19837 as_lineno_1=$LINENO
19838 as_lineno_2=$LINENO
19839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19840 test "x$as_lineno_1" != "x$as_lineno_2" &&
19841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19842 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19843 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19844 CONFIG_SHELL
=$as_dir/$as_base
19845 export CONFIG_SHELL
19846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19855 # uniformly replaced by the line number. The first 'sed' inserts a
19856 # line-number line before each line; the second 'sed' does the real
19857 # work. The second script uses 'N' to pair each line-number line
19858 # with the numbered line, and appends trailing '-' during
19859 # substitution so that $LINENO is not a special case at line end.
19860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19862 sed '=' <$as_myself |
19867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19870 s,^['$as_cr_digits']*\n,,
19871 ' >$as_me.lineno
&&
19872 chmod +x
$as_me.lineno ||
19873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19875 { (exit 1); exit 1; }; }
19877 # Don't try to exec as it changes $[0], causing all sort of problems
19878 # (the dirname of $[0] is not the place where we might find the
19879 # original and so on. Autoconf is especially sensible to this).
19881 # Exit status is that of the last command.
19886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19887 *c
*,-n*) ECHO_N
= ECHO_C
='
19889 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19890 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19893 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19899 rm -f conf$$ conf$$.exe conf$$.
file
19901 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19902 # We could just check for DJGPP; but this test a) works b) is more generic
19903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19904 if test -f conf$$.exe
; then
19905 # Don't use ln at all; we don't have any links
19910 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19915 rm -f conf$$ conf$$.exe conf$$.
file
19917 if mkdir
-p .
2>/dev
/null
; then
19920 test -d .
/-p && rmdir .
/-p
19924 as_executable_p
="test -f"
19926 # Sed expression to map a string onto a valid CPP name.
19927 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19929 # Sed expression to map a string onto a valid variable name.
19930 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19934 # We need space, tab and new line, in precisely that order.
19944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19945 # report actual input values of CONFIG_FILES etc. instead of their
19946 # values after options handling. Logging --version etc. is OK.
19950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19951 ## Running $as_me. ##
19956 This file was extended by aMule $as_me SVN, which was
19957 generated by GNU Autoconf 2.59. Invocation command line was
19959 CONFIG_FILES = $CONFIG_FILES
19960 CONFIG_HEADERS = $CONFIG_HEADERS
19961 CONFIG_LINKS = $CONFIG_LINKS
19962 CONFIG_COMMANDS = $CONFIG_COMMANDS
19966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19970 # Files that config.status was made for.
19971 if test -n "$ac_config_files"; then
19972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19975 if test -n "$ac_config_headers"; then
19976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19979 if test -n "$ac_config_links"; then
19980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19983 if test -n "$ac_config_commands"; then
19984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19987 cat >>$CONFIG_STATUS <<\_ACEOF
19990 \`$as_me' instantiates files from templates according to the
19991 current configuration.
19993 Usage: $0 [OPTIONS] [FILE]...
19995 -h, --help print this help, then exit
19996 -V, --version print version number, then exit
19997 -q, --quiet do not print progress messages
19998 -d, --debug don't remove temporary files
19999 --recheck update $as_me by reconfiguring in the same conditions
20000 --file=FILE[:TEMPLATE]
20001 instantiate the configuration file FILE
20002 --header=FILE[:TEMPLATE]
20003 instantiate the configuration header FILE
20005 Configuration files:
20008 Configuration headers:
20011 Configuration commands:
20014 Report bugs to <bug-autoconf@gnu.org>."
20017 cat >>$CONFIG_STATUS <<_ACEOF
20019 aMule config.status SVN
20020 configured by $0, generated by GNU Autoconf 2.59,
20021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20023 Copyright (C) 2003 Free Software Foundation, Inc.
20024 This config.status script is free software; the Free Software Foundation
20025 gives unlimited permission to copy, distribute and modify it."
20030 cat >>$CONFIG_STATUS <<\_ACEOF
20031 # If no file are specified by the user, then we need to provide default
20032 # value. By we need to know if files were specified by the user.
20038 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20039 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20047 *) # This is not an option, so the user has probably given explicit
20050 ac_need_defaults
=false
;;
20054 # Handling of the options.
20056 cat >>$CONFIG_STATUS <<\_ACEOF
20057 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20059 --version |
--vers* |
-V )
20060 echo "$ac_cs_version"; exit 0 ;;
20062 # Conflict between --help and --header
20063 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20064 Try \`$0 --help' for more information." >&5
20065 echo "$as_me: error: ambiguous option: $1
20066 Try \`$0 --help' for more information." >&2;}
20067 { (exit 1); exit 1; }; };;
20068 --help |
--hel |
-h )
20069 echo "$ac_cs_usage"; exit 0 ;;
20070 --debug |
--d* |
-d )
20072 --file |
--fil |
--fi |
--f )
20074 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20075 ac_need_defaults
=false
;;
20076 --header |
--heade |
--head |
--hea )
20078 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20079 ac_need_defaults
=false
;;
20080 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20081 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20084 # This is an error.
20085 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20086 Try \`$0 --help' for more information." >&5
20087 echo "$as_me: error: unrecognized option: $1
20088 Try \`$0 --help' for more information." >&2;}
20089 { (exit 1); exit 1; }; } ;;
20091 *) ac_config_targets
="$ac_config_targets $1" ;;
20097 ac_configure_extra_args
=
20099 if $ac_cs_silent; then
20101 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20105 cat >>$CONFIG_STATUS <<_ACEOF
20106 if \$ac_cs_recheck; then
20107 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20108 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20113 cat >>$CONFIG_STATUS <<_ACEOF
20115 # INIT-COMMANDS section.
20118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20119 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20120 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20122 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20123 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20124 LINGUAS="${LINGUAS-%UNSET%}"
20126 denoiserlevel=$with_denoise_level
20132 cat >>$CONFIG_STATUS <<\_ACEOF
20133 for ac_config_target
in $ac_config_targets
20135 case "$ac_config_target" in
20136 # Handling of arguments.
20137 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20138 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20139 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20140 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20141 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20142 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20143 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20144 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20145 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20146 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20147 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20148 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20149 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20150 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20151 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20152 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20153 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20154 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20155 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20156 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20157 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20158 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20159 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20160 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20161 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20162 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20163 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20164 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20165 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20166 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20167 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20168 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20169 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20170 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20171 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20172 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20173 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20174 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20175 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20176 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20177 { (exit 1); exit 1; }; };;
20181 # If the user did not use the arguments to specify the items to instantiate,
20182 # then the envvar interface is used. Set only those that are not.
20183 # We use the long form for the default assignment because of an extremely
20184 # bizarre bug on SunOS 4.1.3.
20185 if $ac_need_defaults; then
20186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20188 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20191 # Have a temporary directory for convenience. Make it in the build tree
20192 # simply because there is no reason to put it here, and in addition,
20193 # creating and moving files from /tmp can sometimes cause problems.
20194 # Create a temporary directory, and hook for its removal unless debugging.
20197 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20198 trap '{ (exit 1); exit 1; }' 1 2 13 15
20201 # Create a (secure) tmp directory for tmp files.
20204 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20205 test -n "$tmp" && test -d "$tmp"
20208 tmp
=.
/confstat$$
-$RANDOM
20209 (umask 077 && mkdir
$tmp)
20212 echo "$me: cannot create a temporary directory in ." >&2
20213 { (exit 1); exit 1; }
20218 cat >>$CONFIG_STATUS <<_ACEOF
20221 # CONFIG_FILES section.
20224 # No need to generate the scripts if there are no CONFIG_FILES.
20225 # This happens for instance when ./config.status config.h
20226 if test -n "\$CONFIG_FILES"; then
20227 # Protect against being on the right side of a sed subst in config.status.
20228 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20229 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20230 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20231 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20232 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20233 s,@SHELL@,$SHELL,;t t
20234 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20235 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20236 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20237 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20238 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20239 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20240 s,@exec_prefix@,$exec_prefix,;t t
20241 s,@prefix@,$prefix,;t t
20242 s,@program_transform_name@,$program_transform_name,;t t
20243 s,@bindir@,$bindir,;t t
20244 s,@sbindir@,$sbindir,;t t
20245 s,@libexecdir@,$libexecdir,;t t
20246 s,@datadir@,$datadir,;t t
20247 s,@sysconfdir@,$sysconfdir,;t t
20248 s,@sharedstatedir@,$sharedstatedir,;t t
20249 s,@localstatedir@,$localstatedir,;t t
20250 s,@libdir@,$libdir,;t t
20251 s,@includedir@,$includedir,;t t
20252 s,@oldincludedir@,$oldincludedir,;t t
20253 s,@infodir@,$infodir,;t t
20254 s,@mandir@,$mandir,;t t
20255 s,@build_alias@,$build_alias,;t t
20256 s,@host_alias@,$host_alias,;t t
20257 s,@target_alias@,$target_alias,;t t
20258 s,@DEFS@,$DEFS,;t t
20259 s,@ECHO_C@,$ECHO_C,;t t
20260 s,@ECHO_N@,$ECHO_N,;t t
20261 s,@ECHO_T@,$ECHO_T,;t t
20262 s,@LIBS@,$LIBS,;t t
20263 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20264 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20265 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20266 s,@CYGPATH_W@,$CYGPATH_W,;t t
20267 s,@PACKAGE@,$PACKAGE,;t t
20268 s,@VERSION@,$VERSION,;t t
20269 s,@ACLOCAL@,$ACLOCAL,;t t
20270 s,@AUTOCONF@,$AUTOCONF,;t t
20271 s,@AUTOMAKE@,$AUTOMAKE,;t t
20272 s,@AUTOHEADER@,$AUTOHEADER,;t t
20273 s,@MAKEINFO@,$MAKEINFO,;t t
20274 s,@install_sh@,$install_sh,;t t
20275 s,@STRIP@,$STRIP,;t t
20276 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20277 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20278 s,@mkdir_p@,$mkdir_p,;t t
20280 s,@SET_MAKE@,$SET_MAKE,;t t
20281 s,@am__leading_dot@,$am__leading_dot,;t t
20282 s,@AMTAR@,$AMTAR,;t t
20283 s,@am__tar@,$am__tar,;t t
20284 s,@am__untar@,$am__untar,;t t
20285 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20286 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20287 s,@MAINT@,$MAINT,;t t
20288 s,@build@,$build,;t t
20289 s,@build_cpu@,$build_cpu,;t t
20290 s,@build_vendor@,$build_vendor,;t t
20291 s,@build_os@,$build_os,;t t
20292 s,@host@,$host,;t t
20293 s,@host_cpu@,$host_cpu,;t t
20294 s,@host_vendor@,$host_vendor,;t t
20295 s,@host_os@,$host_os,;t t
20296 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20297 s,@X11LIBS@,$X11LIBS,;t t
20298 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20299 s,@MULECFLAGS@,$MULECFLAGS,;t t
20300 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20301 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20302 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20304 s,@CXXFLAGS@,$CXXFLAGS,;t t
20305 s,@LDFLAGS@,$LDFLAGS,;t t
20306 s,@CPPFLAGS@,$CPPFLAGS,;t t
20307 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20308 s,@EXEEXT@,$EXEEXT,;t t
20309 s,@OBJEXT@,$OBJEXT,;t t
20310 s,@DEPDIR@,$DEPDIR,;t t
20311 s,@am__include@,$am__include,;t t
20312 s,@am__quote@,$am__quote,;t t
20313 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20314 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20315 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20316 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20317 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20318 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20319 s,@CXXCPP@,$CXXCPP,;t t
20321 s,@CFLAGS@,$CFLAGS,;t t
20322 s,@ac_ct_CC@,$ac_ct_CC,;t t
20323 s,@CCDEPMODE@,$CCDEPMODE,;t t
20324 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20325 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20327 s,@BUILD_CC@,$BUILD_CC,;t t
20328 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20329 s,@EXEEXT@,$EXEEXT,;t t
20330 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20331 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20332 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20333 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20334 s,@EGREP@,$EGREP,;t t
20336 s,@LEXLIB@,$LEXLIB,;t t
20337 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20338 s,@RANLIB@,$RANLIB,;t t
20339 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20340 s,@YACC@,$YACC,;t t
20342 s,@ac_ct_AR@,$ac_ct_AR,;t t
20344 s,@ac_ct_LD@,$ac_ct_LD,;t t
20345 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20346 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20347 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20348 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20349 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20350 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20351 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20352 s,@CAS_DEFS@,$CAS_DEFS,;t t
20353 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20354 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20355 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20356 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20357 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20358 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20359 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20360 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20361 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20362 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20363 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20364 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20365 s,@WX_LIBS@,$WX_LIBS,;t t
20366 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20367 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20368 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20369 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20370 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20371 s,@WX_UNICODE@,$WX_UNICODE,;t t
20372 s,@WX_DEBUG@,$WX_DEBUG,;t t
20373 s,@WX_SHARED@,$WX_SHARED,;t t
20374 s,@WX_PORT@,$WX_PORT,;t t
20375 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20376 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20378 s,@RCFLAGS@,$RCFLAGS,;t t
20379 s,@ac_ct_RC@,$ac_ct_RC,;t t
20380 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20381 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20382 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20383 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20384 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20385 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20386 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20387 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20388 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20389 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20390 s,@BFD_LIBS@,$BFD_LIBS,;t t
20391 s,@ALLOCA@,$ALLOCA,;t t
20392 s,@LIBOBJS@,$LIBOBJS,;t t
20393 s,@POW_LIB@,$POW_LIB,;t t
20394 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20395 s,@MSGFMT@,$MSGFMT,;t t
20396 s,@GMSGFMT@,$GMSGFMT,;t t
20397 s,@XGETTEXT@,$XGETTEXT,;t t
20398 s,@MSGMERGE@,$MSGMERGE,;t t
20399 s,@GLIBC21@,$GLIBC21,;t t
20400 s,@LIBICONV@,$LIBICONV,;t t
20401 s,@LTLIBICONV@,$LTLIBICONV,;t t
20402 s,@INTLBISON@,$INTLBISON,;t t
20403 s,@USE_NLS@,$USE_NLS,;t t
20404 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20405 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20406 s,@CATOBJEXT@,$CATOBJEXT,;t t
20407 s,@INTLOBJS@,$INTLOBJS,;t t
20408 s,@DATADIRNAME@,$DATADIRNAME,;t t
20409 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20410 s,@GENCAT@,$GENCAT,;t t
20411 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20412 s,@INTLLIBS@,$INTLLIBS,;t t
20413 s,@LIBINTL@,$LIBINTL,;t t
20414 s,@LTLIBINTL@,$LTLIBINTL,;t t
20415 s,@POSUB@,$POSUB,;t t
20416 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20417 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20418 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20419 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20420 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20421 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20422 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20423 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20424 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20425 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20426 s,@INCINTL@,$INCINTL,;t t
20427 s,@docdir@,$docdir,;t t
20428 s,@SVNDATE@,$SVNDATE,;t t
20429 s,@WEB_TRUE@,$WEB_TRUE,;t t
20430 s,@WEB_FALSE@,$WEB_FALSE,;t t
20431 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20432 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20433 s,@CAS_TRUE@,$CAS_TRUE,;t t
20434 s,@CAS_FALSE@,$CAS_FALSE,;t t
20435 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20436 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20437 s,@ALC_TRUE@,$ALC_TRUE,;t t
20438 s,@ALC_FALSE@,$ALC_FALSE,;t t
20439 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20440 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20441 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20442 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20443 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20444 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20445 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20446 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20447 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20448 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20449 s,@XAS_TRUE@,$XAS_TRUE,;t t
20450 s,@XAS_FALSE@,$XAS_FALSE,;t t
20451 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20452 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20453 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20454 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20455 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20456 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20457 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20458 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20459 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20460 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20461 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20462 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20463 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20464 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20465 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20466 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20467 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20468 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20473 cat >>$CONFIG_STATUS <<\_ACEOF
20474 # Split the substitutions into bite-sized pieces for seds with
20475 # small command number limits, like on Digital OSF/1 and HP-UX.
20476 ac_max_sed_lines
=48
20477 ac_sed_frag
=1 # Number of current file.
20478 ac_beg
=1 # First line for current file.
20479 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20482 while $ac_more_lines; do
20483 if test $ac_beg -gt 1; then
20484 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20486 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20488 if test ! -s $tmp/subs.frag
; then
20489 ac_more_lines
=false
20491 # The purpose of the label and of the branching condition is to
20492 # speed up the sed processing (if there are no `@' at all, there
20493 # is no need to browse any of the substitutions).
20494 # These are the two extra sed commands mentioned above.
20496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20497 if test -z "$ac_sed_cmds"; then
20498 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20500 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20502 ac_sed_frag
=`expr $ac_sed_frag + 1`
20504 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20507 if test -z "$ac_sed_cmds"; then
20510 fi # test -n "$CONFIG_FILES"
20513 cat >>$CONFIG_STATUS <<\_ACEOF
20514 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20517 - |
*:- |
*:-:* ) # input from stdin
20519 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20520 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20521 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20522 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20523 * ) ac_file_in
=$ac_file.
in ;;
20526 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20527 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20529 X"$ac_file" : 'X\(//\)[^/]' \| \
20530 X"$ac_file" : 'X\(//\)$' \| \
20531 X"$ac_file" : 'X\(/\)' \| \
20532 . : '\(.\)' 2>/dev/null ||
20534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20536 /^X\(\/\/\)$/{ s//\1/; q; }
20537 /^X\(\/\).*/{ s//\1/; q; }
20539 { if $as_mkdir_p; then
20544 while test ! -d "$as_dir"; do
20545 as_dirs
="$as_dir $as_dirs"
20546 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548 X"$as_dir" : 'X\(//\)[^/]' \| \
20549 X"$as_dir" : 'X\(//\)$' \| \
20550 X"$as_dir" : 'X\(/\)' \| \
20551 . : '\(.\)' 2>/dev/null ||
20553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20555 /^X\(\/\/\)$/{ s//\1/; q; }
20556 /^X\(\/\).*/{ s//\1/; q; }
20559 test ! -n "$as_dirs" || mkdir
$as_dirs
20560 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20562 { (exit 1); exit 1; }; }; }
20566 if test "$ac_dir" != .
; then
20567 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20568 # A "../" for each directory in $ac_dir_suffix.
20569 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20571 ac_dir_suffix
= ac_top_builddir
=
20575 .
) # No --srcdir option. We are building in place.
20577 if test -z "$ac_top_builddir"; then
20580 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20582 [\\/]* | ?
:[\\/]* ) # Absolute path.
20583 ac_srcdir
=$srcdir$ac_dir_suffix;
20584 ac_top_srcdir
=$srcdir ;;
20585 *) # Relative path.
20586 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20587 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20590 # Do not use `cd foo && pwd` to compute absolute paths, because
20591 # the directories may not exist.
20593 .
) ac_abs_builddir
="$ac_dir";;
20596 .
) ac_abs_builddir
=`pwd`;;
20597 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20598 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20601 case $ac_abs_builddir in
20602 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20604 case ${ac_top_builddir}.
in
20605 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20606 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20607 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20610 case $ac_abs_builddir in
20611 .
) ac_abs_srcdir
=$ac_srcdir;;
20614 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20615 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20616 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20619 case $ac_abs_builddir in
20620 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20622 case $ac_top_srcdir in
20623 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20624 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20625 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20631 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20632 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20635 if test x
"$ac_file" != x-
; then
20636 { echo "$as_me:$LINENO: creating $ac_file" >&5
20637 echo "$as_me: creating $ac_file" >&6;}
20640 # Let's still pretend it is `configure' which instantiates (i.e., don't
20641 # use $as_me), people would be surprised to read:
20642 # /* config.h. Generated by config.status. */
20643 if test x
"$ac_file" = x-
; then
20646 configure_input
="$ac_file. "
20648 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20649 sed 's,.*/,,'` by configure."
20651 # First look for the input files in the build tree, otherwise in the
20653 ac_file_inputs
=`IFS=:
20654 for f in $ac_file_in; do
20656 -) echo $tmp/stdin ;;
20658 # Absolute (can't be DOS-style, as IFS=:)
20659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20660 echo "$as_me: error: cannot find input file: $f" >&2;}
20661 { (exit 1); exit 1; }; }
20664 if test -f "$f"; then
20667 elif test -f "$srcdir/$f"; then
20672 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20673 echo "$as_me: error: cannot find input file: $f" >&2;}
20674 { (exit 1); exit 1; }; }
20677 done` ||
{ (exit 1); exit 1; }
20679 cat >>$CONFIG_STATUS <<_ACEOF
20683 cat >>$CONFIG_STATUS <<\_ACEOF
20685 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20686 s
,@configure_input@
,$configure_input,;t t
20687 s
,@srcdir@
,$ac_srcdir,;t t
20688 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20689 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20690 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20691 s
,@builddir@
,$ac_builddir,;t t
20692 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20693 s
,@top_builddir@
,$ac_top_builddir,;t t
20694 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20695 s
,@INSTALL@
,$ac_INSTALL,;t t
20696 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20698 if test x"$ac_file" != x-; then
20699 mv $tmp/out $ac_file
20707 cat >>$CONFIG_STATUS <<\_ACEOF
20710 # CONFIG_HEADER section.
20713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20716 # ac_d sets the value in "#define NAME VALUE" lines.
20717 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20718 ac_dB
='[ ].*$,\1#\2'
20721 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20722 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20723 ac_uB
='$,\1#\2define\3'
20727 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20730 - |
*:- |
*:-:* ) # input from stdin
20732 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20735 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20736 * ) ac_file_in
=$ac_file.
in ;;
20739 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20740 echo "$as_me: creating $ac_file" >&6;}
20742 # First look for the input files in the build tree, otherwise in the
20744 ac_file_inputs
=`IFS=:
20745 for f in $ac_file_in; do
20747 -) echo $tmp/stdin ;;
20749 # Absolute (can't be DOS-style, as IFS=:)
20750 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752 { (exit 1); exit 1; }; }
20753 # Do quote $f, to prevent DOS paths from being IFS'd.
20756 if test -f "$f"; then
20759 elif test -f "$srcdir/$f"; then
20764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20765 echo "$as_me: error: cannot find input file: $f" >&2;}
20766 { (exit 1); exit 1; }; }
20769 done` ||
{ (exit 1); exit 1; }
20770 # Remove the trailing spaces.
20771 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20775 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20776 # `conftest.undefs', that substitutes the proper values into
20777 # config.h.in to produce config.h. The first handles `#define'
20778 # templates, and the second `#undef' templates.
20779 # And first: Protect against being on the right side of a sed subst in
20780 # config.status. Protect against being in an unquoted here document
20781 # in config.status.
20782 rm -f conftest.defines conftest.undefs
20783 # Using a here document instead of a string reduces the quoting nightmare.
20784 # Putting comments in sed scripts is not portable.
20786 # `end' is used to avoid that the second main sed command (meant for
20787 # 0-ary CPP macros) applies to n-ary macro definitions.
20788 # See the Autoconf documentation for `clear'.
20789 cat >confdef2sed.
sed <<\_ACEOF
20794 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20796 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20799 # If some macros were called several times there might be several times
20800 # the same #defines, which is useless. Nevertheless, we may not want to
20801 # sort them, since we want the *last* AC-DEFINE to be honored.
20802 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20803 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20804 rm -f confdef2sed.sed
20806 # This sed command replaces #undef with comments. This is necessary, for
20807 # example, in the case of _POSIX_SOURCE, which is predefined and required
20808 # on some systems where configure will not decide to define it.
20809 cat >>conftest.undefs <<\_ACEOF
20810 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20813 # Break up conftest.defines because some shells have a limit on the size
20814 # of here documents, and old seds have small limits too (100 cmds).
20815 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20816 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20817 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20818 echo ' :' >>$CONFIG_STATUS
20819 rm -f conftest.tail
20820 while grep . conftest.defines >/dev/null
20822 # Write a limited-size here document to $tmp/defines.sed.
20823 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20824 # Speed up: don't consider the non `#define' lines.
20825 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20826 # Work around the forget-to-reset-the-flag bug.
20827 echo 't clr' >>$CONFIG_STATUS
20828 echo ': clr' >>$CONFIG_STATUS
20829 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20831 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20833 mv $tmp/out $tmp/in
20835 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20836 rm -f conftest.defines
20837 mv conftest.
tail conftest.defines
20839 rm -f conftest.defines
20840 echo ' fi # grep' >>$CONFIG_STATUS
20841 echo >>$CONFIG_STATUS
20843 # Break up conftest.undefs because some shells have a limit on the size
20844 # of here documents, and old seds have small limits too (100 cmds).
20845 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20846 rm -f conftest.
tail
20847 while grep . conftest.undefs
>/dev
/null
20849 # Write a limited-size here document to $tmp/undefs.sed.
20850 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20851 # Speed up: don't consider the non
`#undef'
20852 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20853 # Work around the forget-to-reset-the-flag bug.
20854 echo 't clr' >>$CONFIG_STATUS
20855 echo ': clr' >>$CONFIG_STATUS
20856 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20858 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20860 mv $tmp/out $tmp/in
20862 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20863 rm -f conftest.undefs
20864 mv conftest.tail conftest.undefs
20866 rm -f conftest.undefs
20868 cat >>$CONFIG_STATUS <<\_ACEOF
20869 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20870 # use $as_me), people would be surprised to read:
20871 # /* config.h. Generated by config.status. */
20872 if test x
"$ac_file" = x-
; then
20873 echo "/* Generated by configure. */" >$tmp/config.h
20875 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20877 cat $tmp/in >>$tmp/config.h
20879 if test x
"$ac_file" != x-
; then
20880 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20881 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20882 echo "$as_me: $ac_file is unchanged" >&6;}
20884 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20886 X"$ac_file" : 'X\(//\)[^/]' \| \
20887 X"$ac_file" : 'X\(//\)$' \| \
20888 X"$ac_file" : 'X\(/\)' \| \
20889 . : '\(.\)' 2>/dev/null ||
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20893 /^X\(\/\/\)$/{ s//\1/; q; }
20894 /^X\(\/\).*/{ s//\1/; q; }
20896 { if $as_mkdir_p; then
20901 while test ! -d "$as_dir"; do
20902 as_dirs
="$as_dir $as_dirs"
20903 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$as_dir" : 'X\(//\)[^/]' \| \
20906 X"$as_dir" : 'X\(//\)$' \| \
20907 X"$as_dir" : 'X\(/\)' \| \
20908 . : '\(.\)' 2>/dev/null ||
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912 /^X\(\/\/\)$/{ s//\1/; q; }
20913 /^X\(\/\).*/{ s//\1/; q; }
20916 test ! -n "$as_dirs" || mkdir
$as_dirs
20917 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20919 { (exit 1); exit 1; }; }; }
20922 mv $tmp/config.h
$ac_file
20926 rm -f $tmp/config.h
20928 # Compute $ac_file's index in $config_headers.
20930 for _am_header
in $config_headers :; do
20931 case $_am_header in
20932 $ac_file |
$ac_file:* )
20935 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20938 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20939 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X$ac_file : 'X\(//\)[^/]' \| \
20941 X$ac_file : 'X\(//\)$' \| \
20942 X$ac_file : 'X\(/\)' \| \
20943 . : '\(.\)' 2>/dev/null ||
20945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20947 /^X\(\/\/\)$/{ s//\1/; q; }
20948 /^X\(\/\).*/{ s//\1/; q; }
20949 s/.*/./; q'`/stamp-h
$_am_stamp_count
20952 cat >>$CONFIG_STATUS <<\_ACEOF
20955 # CONFIG_COMMANDS section.
20957 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20958 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20959 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20960 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20961 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_dest" : 'X\(//\)[^/]' \| \
20963 X"$ac_dest" : 'X\(//\)$' \| \
20964 X"$ac_dest" : 'X\(/\)' \| \
20965 . : '\(.\)' 2>/dev/null ||
20967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20969 /^X\(\/\/\)$/{ s//\1/; q; }
20970 /^X\(\/\).*/{ s//\1/; q; }
20972 { if $as_mkdir_p; then
20977 while test ! -d "$as_dir"; do
20978 as_dirs
="$as_dir $as_dirs"
20979 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981 X"$as_dir" : 'X\(//\)[^/]' \| \
20982 X"$as_dir" : 'X\(//\)$' \| \
20983 X"$as_dir" : 'X\(/\)' \| \
20984 . : '\(.\)' 2>/dev/null ||
20986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988 /^X\(\/\/\)$/{ s//\1/; q; }
20989 /^X\(\/\).*/{ s//\1/; q; }
20992 test ! -n "$as_dirs" || mkdir
$as_dirs
20993 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20995 { (exit 1); exit 1; }; }; }
20999 if test "$ac_dir" != .
; then
21000 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21001 # A "../" for each directory in $ac_dir_suffix.
21002 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21004 ac_dir_suffix
= ac_top_builddir
=
21008 .
) # No --srcdir option. We are building in place.
21010 if test -z "$ac_top_builddir"; then
21013 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21015 [\\/]* | ?
:[\\/]* ) # Absolute path.
21016 ac_srcdir
=$srcdir$ac_dir_suffix;
21017 ac_top_srcdir
=$srcdir ;;
21018 *) # Relative path.
21019 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21020 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21023 # Do not use `cd foo && pwd` to compute absolute paths, because
21024 # the directories may not exist.
21026 .
) ac_abs_builddir
="$ac_dir";;
21029 .
) ac_abs_builddir
=`pwd`;;
21030 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21031 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21034 case $ac_abs_builddir in
21035 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21037 case ${ac_top_builddir}.
in
21038 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21039 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21040 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21043 case $ac_abs_builddir in
21044 .
) ac_abs_srcdir
=$ac_srcdir;;
21047 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21048 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21049 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21052 case $ac_abs_builddir in
21053 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21055 case $ac_top_srcdir in
21056 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21057 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21058 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21063 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21064 echo "$as_me: executing $ac_dest commands" >&6;}
21066 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21067 # Strip MF so we end up with the name of the file.
21068 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21069 # Check whether this is an Automake generated Makefile or not.
21070 # We used to match only the files named `Makefile.in', but
21071 # some people rename them; so instead we look at the file content.
21072 # Grep'ing the first line is not enough: some people post-process
21073 # each Makefile.in and add a new line on top of each file to say so.
21074 # So let's grep whole file.
21075 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21076 dirpart
=`(dirname "$mf") 2>/dev/null ||
21077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078 X"$mf" : 'X\(//\)[^/]' \| \
21079 X"$mf" : 'X\(//\)$' \| \
21080 X"$mf" : 'X\(/\)' \| \
21081 . : '\(.\)' 2>/dev/null ||
21083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21085 /^X\(\/\/\)$/{ s//\1/; q; }
21086 /^X\(\/\).*/{ s//\1/; q; }
21091 # Extract the definition of DEPDIR, am__include, and am__quote
21092 # from the Makefile without running `make'.
21093 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21094 test -z "$DEPDIR" && continue
21095 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21096 test -z "am__include" && continue
21097 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21098 # When using ansi2knr, U may be empty or an underscore; expand it
21099 U
=`sed -n 's/^U = //p' < "$mf"`
21100 # Find all dependency output files, they are included files with
21101 # $(DEPDIR) in their names. We invoke sed twice because it is the
21102 # simplest approach to changing $(DEPDIR) to its actual value in the
21104 for file in `sed -n "
21105 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21106 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21107 # Make sure the directory exists.
21108 test -f "$dirpart/$file" && continue
21109 fdir
=`(dirname "$file") 2>/dev/null ||
21110 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21111 X"$file" : 'X\(//\)[^/]' \| \
21112 X"$file" : 'X\(//\)$' \| \
21113 X"$file" : 'X\(/\)' \| \
21114 . : '\(.\)' 2>/dev/null ||
21116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21118 /^X\(\/\/\)$/{ s//\1/; q; }
21119 /^X\(\/\).*/{ s//\1/; q; }
21121 { if $as_mkdir_p; then
21122 mkdir
-p $dirpart/$fdir
21124 as_dir
=$dirpart/$fdir
21126 while test ! -d "$as_dir"; do
21127 as_dirs
="$as_dir $as_dirs"
21128 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130 X"$as_dir" : 'X\(//\)[^/]' \| \
21131 X"$as_dir" : 'X\(//\)$' \| \
21132 X"$as_dir" : 'X\(/\)' \| \
21133 . : '\(.\)' 2>/dev/null ||
21135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21137 /^X\(\/\/\)$/{ s//\1/; q; }
21138 /^X\(\/\).*/{ s//\1/; q; }
21141 test ! -n "$as_dirs" || mkdir
$as_dirs
21142 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21143 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21144 { (exit 1); exit 1; }; }; }
21146 # echo "creating $dirpart/$file"
21147 echo '# dummy' > "$dirpart/$file"
21152 for ac_file
in $CONFIG_FILES; do
21153 # Support "outfile[:infile[:infile...]]"
21155 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21157 # PO directories have a Makefile.in generated from Makefile.in.in.
21158 case "$ac_file" in */Makefile.
in)
21159 # Adjust a relative srcdir.
21160 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21161 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21162 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21163 # In autoconf-2.13 it is called $ac_given_srcdir.
21164 # In autoconf-2.50 it is called $srcdir.
21165 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21166 case "$ac_given_srcdir" in
21167 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21168 /*) top_srcdir
="$ac_given_srcdir" ;;
21169 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21171 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21172 rm -f "$ac_dir/POTFILES"
21173 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21174 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21175 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21176 # on $ac_dir but don't depend on user-specified configuration
21178 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21179 # The LINGUAS file contains the set of available languages.
21180 if test -n "$ALL_LINGUAS"; then
21181 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21183 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21184 # Hide the ALL_LINGUAS assigment from automake.
21185 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21187 case "$ac_given_srcdir" in
21189 *) srcdirpre
='$(srcdir)/' ;;
21195 for lang
in $ALL_LINGUAS; do
21196 POFILES
="$POFILES $srcdirpre$lang.po"
21197 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21198 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21199 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21201 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21202 # environment variable.
21204 if test -n "$ALL_LINGUAS"; then
21205 for presentlang
in $ALL_LINGUAS; do
21207 if test "%UNSET%" != "$LINGUAS"; then
21208 desiredlanguages
="$LINGUAS"
21210 desiredlanguages
="$ALL_LINGUAS"
21212 for desiredlang
in $desiredlanguages; do
21213 # Use the presentlang catalog if desiredlang is
21214 # a. equal to presentlang, or
21215 # b. a variant of presentlang (because in this case,
21216 # presentlang can be used as a fallback for messages
21217 # which are not translated in the desiredlang catalog).
21218 case "$desiredlang" in
21219 "$presentlang"*) useit
=yes;;
21222 if test $useit = yes; then
21223 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21228 if test -n "$INST_LINGUAS"; then
21229 for lang
in $INST_LINGUAS; do
21230 CATALOGS
="$CATALOGS $lang.gmo"
21233 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21234 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"
21235 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21236 if test -f "$f"; then
21238 *.orig |
*.bak |
*~
) ;;
21239 *) cat "$f" >> "$ac_dir/Makefile" ;;
21247 denoiser
) if test $denoiserlevel -gt 0; then
21248 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21249 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" \
21250 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21251 for i
in `find . -name 'Makefile' -print`; do
21252 if test -n "`head -n 1 $i | grep '^#'`"; then
21253 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21261 cat >>$CONFIG_STATUS <<\_ACEOF
21263 { (exit 0); exit 0; }
21265 chmod +x
$CONFIG_STATUS
21266 ac_clean_files
=$ac_clean_files_save
21269 # configure is writing to config.log, and then calls config.status.
21270 # config.status does its own redirection, appending to config.log.
21271 # Unfortunately, on DOS this fails, as config.log is still kept open
21272 # by configure, so config.status won't be able to write to it; its
21273 # output is simply discarded. So we exec the FD to /dev/null,
21274 # effectively closing config.log, so it can be properly (re)opened and
21275 # appended to by config.status. When coming back to configure, we
21276 # need to make the FD available again.
21277 if test "$no_create" != yes; then
21279 ac_config_status_args
=
21280 test "$silent" = yes &&
21281 ac_config_status_args
="$ac_config_status_args --quiet"
21283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21286 # would make configure fail if this is the last instruction.
21287 $ac_cs_success ||
{ (exit 1); exit 1; }
21293 echo " Configure script has finished system check."
21295 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21297 echo " aMule enabled options:"
21299 echo " **** aMule Core ****"
21300 echo " Prefix where aMule should be installed? ${prefix:-none}"
21301 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21302 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21303 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21304 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21305 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21306 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21307 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21308 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21309 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21310 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21313 echo " **** aMule TextClient ****"
21314 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21316 echo " **** aMule WebServer ****"
21317 echo " Should aMule WebServer be built? ${WEB:-no}"
21319 echo " **** aMule ED2K Links Handler ****"
21320 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21322 echo " **** aMuleLinkCreator ****"
21323 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21324 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21326 echo " **** aMule Statistics ****"
21327 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21328 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21329 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21332 echo " **** General Libraries and Tools ****"
21333 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21334 echo " Libraries aMule will use to build:"
21336 if test $WX_DEBUG -eq 1; then
21337 wxinfo
="$wxinfo,debug"
21340 if test $WX_SHARED -eq 1; then
21341 wxinfo
="$wxinfo,shared"
21343 wxinfo
="$wxinfo,static"
21346 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21347 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21348 if test -n "$with_libupnp_prefix"; then
21349 libupnp_place
=" (in $with_libupnp_prefix)"
21352 if test x
${ENABLE_UPNP} = xyes
; then
21353 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21356 if test x
${WEB:-no} != xno
; then
21357 if test $regex_found = no
; then
21358 regex_found
="Not detected"
21360 if test -z "$REGEX_LIB"; then
21363 regex_found
="standalone (in $REGEX_LIB)"
21368 echo " regex $regex_found"
21370 if test ${enable_nls:-yes} = yes; then
21371 if test x
$USE_NLS = xno
; then
21372 libintl_found
="Not detected"
21374 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21375 libintl_found
="included"
21377 libintl_found
="system"
21382 echo " libintl $libintl_found"
21384 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21390 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21391 echo " libGeoIP ${geoip_style}"
21394 if test x
$LIBPNG_VERSION != xnot_needed
; then
21395 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21397 if test x
$GDLIB_VERSION != xnot_needed
; then
21398 echo " libgd ${GDLIB_VERSION:-Not detected}"
21400 echo " zlib ${ZLIB_VERSION:-Not detected}"
21401 if test ${_mule_has_warnings:-no} = yes; then
21404 echo " *** Warnings during configuration ***"
21406 if test ${_mule_warning_0:-no} = yes; then
21409 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21410 Please check that gdlib-config is in your default path, check out
21411 LD_LIBRARY_PATH or equivalent variable.
21412 Or this might also be that your gdlib-config has other name.
21413 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21414 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21415 If you use compiled packages check if you have devel pack installed.
21416 To download the latest version check http://www.boutell.com/gd for sources.
21419 if test ${_mule_warning_1:-no} = yes; then
21422 * amuleweb has been disabled because configure could not find a POSIX
21423 compliant regex library.
21426 if test ${_mule_warning_2:-no} = yes; then
21429 * libpng >= 1.2.0 not found.
21430 amuleweb will be compiled but file download progress bar images will NOT be
21434 if test ${_mule_warning_3:-no} = yes; then
21437 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21440 if test ${_mule_warning_4:-no} = yes; then
21443 * GeoIP support has been disabled because the GeoIP libraries were not found
21446 if test ${_mule_warning_5:-no} = yes; then
21449 * GeoIP support has been disabled because the GeoIP header files were not
21453 if test ${_mule_warning_6:-no} = yes; then
21456 * UPnP code has been disabled because ${libupnp_error}.
21459 if test ${_mule_warning_7:-no} = yes; then
21462 * Cross-compilation detected, so exception handling cannot be tested.
21463 Note that broken exception handling in your compiler may lead to unexpected
21467 if test ${_mule_warning_8:-no} = yes; then
21470 * bfd.h not found or unusable, please install binutils development package if
21471 you are a developer or want to help testing aMule
21474 if test ${_mule_warning_9:-no} = yes; then
21477 * configure cannot check whether malloc() and realloc() are GNU libc
21478 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21479 configure with the --without-gnu-malloc switch.
21482 if test ${_mule_warning_10:-no} = yes; then
21485 * You need to install GNU gettext/gettext-tools to compile aMule with i18n