Upstream tarball 9614
[amule.git] / configure
blob5fa7600e58c8164e28b2722b789db2326b0222f6
1 #! /bin/sh
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
16 emulate sh
17 NULLCMD=:
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
22 set -o posix
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
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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 ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; 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
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
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
124 as_myself=$0
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
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
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 |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
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`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
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.
270 PACKAGE_NAME='aMule'
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="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
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'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
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 ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
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'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
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.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
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)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
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)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
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)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
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)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
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)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
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'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
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; }; }
633 *=*)
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'"
641 export $ac_envvar ;;
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}
651 esac
652 done
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`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
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`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
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
697 cross_compiling=yes
701 ac_tool_prefix=
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 ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
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; }; }
734 else
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}
776 ac_env_CC_value=$CC
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}
788 ac_env_RC_value=$RC
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.
806 cat <<_ACEOF
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.
816 Configuration:
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 \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
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]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
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
865 X features:
866 --x-includes=DIR X include files are in DIR
867 --x-libraries=DIR X library files are in DIR
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of aMule SVN:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
910 Optional Packages:
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed (optional)
918 --with-gdlib-config=CONFIG
919 gdlib-config script to use (optional)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed (optional)
922 --with-libpng-config=CONFIG
923 libpng-config script to use (optional)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically (default=no)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
929 --with-wx-config=CONFIG wx-config script to use (optional)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed (optional)
933 --with-toolkit Build against a specific wxWidgets toolkit (default
934 is auto)
935 --with-wxshared Force building against a shared build of wxWidgets,
936 even if --disable-shared is given (default is auto)
937 --with-wxdebug Force building against a debug build of wxWidgets,
938 even if --disable-debug is given (default is auto)
939 --with-wxversion Build against a specific version of wxWidgets
940 (default is auto)
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto++ is installed
945 --with-x use the X Window System
946 --with-language=<langs> Specify a comma-separated list of languages you want
947 to have installed. See po/LINGUAS for available
948 languages
949 --with-gnu-ld assume the C compiler uses GNU ld default=no
950 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
951 --without-libiconv-prefix don't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search for libintl in includedir and libdir
955 --with-denoise-level=<level>
956 Specifies denoising level (0-4):
957 0 - Do nothing
958 4 - Suppress all normal output
959 (for more information see
960 src/utils/scripts/denoiser.rules)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables:
966 CXX C++ compiler command
967 CXXFLAGS C++ compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
972 CXXCPP C++ preprocessor
973 CC C compiler command
974 CFLAGS C compiler flags
975 CPP C preprocessor
976 RC Resource Compiler
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by `configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
984 _ACEOF
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
989 ac_popdir=`pwd`
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
992 ac_builddir=.
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
998 else
999 ac_dir_suffix= ac_top_builddir=
1002 case $srcdir in
1003 .) # No --srcdir option. We are building in place.
1004 ac_srcdir=.
1005 if test -z "$ac_top_builddir"; then
1006 ac_top_srcdir=.
1007 else
1008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1009 fi ;;
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1013 *) # Relative path.
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1016 esac
1018 # Do not use `cd foo && pwd` to compute absolute paths, because
1019 # the directories may not exist.
1020 case `pwd` in
1021 .) ac_abs_builddir="$ac_dir";;
1023 case "$ac_dir" in
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1027 esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1036 esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1041 case $ac_srcdir in
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1045 esac;;
1046 esac
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1054 esac;;
1055 esac
1057 cd $ac_dir
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1060 echo
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1063 echo
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1067 echo
1068 $ac_configure --help
1069 else
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1072 cd $ac_popdir
1073 done
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1078 cat <<\_ACEOF
1079 aMule configure SVN
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1085 _ACEOF
1086 exit 0
1088 exec 5>config.log
1089 cat >&5 <<_ACEOF
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1096 $ $0 $@
1098 _ACEOF
1100 cat <<_ASUNAME
1101 ## --------- ##
1102 ## Platform. ##
1103 ## --------- ##
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1117 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1122 _ASUNAME
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1125 for as_dir in $PATH
1127 IFS=$as_save_IFS
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1130 done
1132 } >&5
1134 cat >&5 <<_ACEOF
1137 ## ----------- ##
1138 ## Core tests. ##
1139 ## ----------- ##
1141 _ACEOF
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1149 ac_configure_args=
1150 ac_configure_args0=
1151 ac_configure_args1=
1152 ac_sep=
1153 ac_must_keep_next=false
1154 for ac_pass in 1 2
1156 for ac_arg
1158 case $ac_arg in
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 continue ;;
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1165 esac
1166 case $ac_pass in
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1172 else
1173 case $ac_arg in
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1180 esac
1182 -* ) ac_must_keep_next=true ;;
1183 esac
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1187 ac_sep=" "
1189 esac
1190 done
1191 done
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1203 echo
1205 cat <<\_ASBOX
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1209 _ASBOX
1210 echo
1211 # The following way of writing the cache mishandles newlines in values,
1213 (set) 2>&1 |
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215 *ac_space=\ *)
1216 sed -n \
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 sed -n \
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224 esac;
1226 echo
1228 cat <<\_ASBOX
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1241 if test -n "$ac_subst_files"; then
1242 cat <<\_ASBOX
1243 ## ------------- ##
1244 ## Output files. ##
1245 ## ------------- ##
1246 _ASBOX
1247 echo
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1256 if test -s confdefs.h; then
1257 cat <<\_ASBOX
1258 ## ----------- ##
1259 ## confdefs.h. ##
1260 ## ----------- ##
1261 _ASBOX
1262 echo
1263 sed "/^$/d" confdefs.h | sort
1264 echo
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1269 } >&5
1270 rm -f core *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1272 exit $exit_status
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1276 done
1277 ac_signal=0
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1282 echo >confdefs.h
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1288 _ACEOF
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1293 _ACEOF
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1298 _ACEOF
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1303 _ACEOF
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1308 _ACEOF
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 else
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1325 . "$ac_site_file"
1327 done
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1335 case $cache_file in
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1338 esac
1340 else
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1343 >$cache_file
1346 # Check that the precious variables saved in the cache have kept the same
1347 # value.
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1356 set,)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,set)
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1364 ,);;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1374 fi;;
1375 esac
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1378 case $ac_new_val in
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1382 esac
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1386 esac
1388 done
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1430 ac_aux_dir=
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 break
1436 elif test -f $ac_dir/install.sh; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 break
1440 elif test -f $ac_dir/shtool; then
1441 ac_aux_dir=$ac_dir
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1443 break
1445 done
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1461 # AIX /bin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 # Account for people who put trailing slashes in PATH elements.
1480 case $as_dir/ in
1481 ./ | .// | /cC/* | \
1482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1483 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1484 /usr/ucb/* ) ;;
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1488 # by default.
1489 for ac_prog in ginstall scoinst install; do
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1500 else
1501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1502 break 3
1505 done
1506 done
1508 esac
1509 done
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL=$ac_cv_path_install
1515 else
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1536 # Just in case
1537 sleep 1
1538 echo timestamp > conftest.file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1543 # directory).
1544 if (
1545 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1547 # -L didn't work.
1548 set X `ls -t $srcdir/configure conftest.file`
1550 rm -f conftest.file
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.file
1567 then
1568 # Ok.
1570 else
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE &&
1580 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE &&
1583 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF >conftest.sed
1587 s/[\\$]/&&/g;s/;s,x,x,$//
1588 _ACEOF
1589 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1590 rm conftest.sed
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir=`cd $ac_aux_dir && pwd`
1595 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run="$MISSING --run "
1599 else
1600 am_missing_run=
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1610 # for two reasons:
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p='mkdir -p --'
1621 else
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1625 # exists.
1626 for d in ./-p ./--version;
1628 test -d $d && rmdir $d
1629 done
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p='$(mkinstalldirs)'
1633 else
1634 mkdir_p='$(install_sh) -d'
1638 for ac_prog in gawk mawk nawk awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 AWK=$ac_cv_prog_AWK
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1676 done
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 cat >conftest.make <<\_ACEOF
1685 all:
1686 @echo 'ac_maketemp="$(MAKE)"'
1687 _ACEOF
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_${ac_make}_set=yes
1692 else
1693 eval ac_cv_prog_make_${ac_make}_set=no
1695 rm -f conftest.make
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1700 SET_MAKE=
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE="MAKE=${MAKE-make}"
1707 rm -rf .tst 2>/dev/null
1708 mkdir .tst 2>/dev/null
1709 if test -d .tst; then
1710 am__leading_dot=.
1711 else
1712 am__leading_dot=_
1714 rmdir .tst 2>/dev/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath --version) >/dev/null 2>/dev/null; then
1727 CYGPATH_W='cygpath -w'
1728 else
1729 CYGPATH_W=echo
1734 # Define the identity of the package.
1735 PACKAGE='amule'
1736 VERSION='SVN'
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define VERSION "$VERSION"
1746 _ACEOF
1748 # Some tools Automake needs.
1750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}strip; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 STRIP=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1809 ac_ct_STRIP=$STRIP
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1846 STRIP=$ac_ct_STRIP
1847 else
1848 STRIP="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1855 # some platforms.
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR=${AMTAR-"${am_missing_run}tar"}
1860 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1868 ac_config_headers="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE=$enableval
1876 else
1877 USE_MAINTAINER_MODE=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE=
1885 MAINTAINER_MODE_FALSE='#'
1886 else
1887 MAINTAINER_MODE_TRUE='#'
1888 MAINTAINER_MODE_FALSE=
1891 MAINT=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4 >/dev/null 2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 ac_cv_build_alias=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1921 build=$ac_cv_build
1922 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 ac_cv_host_alias=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias=$ac_cv_build_alias
1935 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1943 host=$ac_cv_host
1944 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1951 darwin*)
1952 SYS=darwin
1953 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS="-bind_at_load"
1955 touch src/Scanner.cpp
1957 openbsd*)
1958 SYS=openbsd
1959 LIBS="$LIBS -L/usr/local/lib"
1960 X11LIBS="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS="-D__OPENBSD__"
1963 *cygwin* | *mingw32*)
1964 SYS=win32
1965 MULECPPFLAGS="-DNOMINMAX"
1967 solaris*)
1968 SYS=solaris
1969 RESOLV_LIB="-lresolv -lnsl"
1970 X11LIBS="-lX11"
1971 LIBS="$LIBS -lrt"
1973 *netbsd*)
1974 SYS=netbsd
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 *irix*)
1982 SYS=irix
1983 MULECPPFLAGS="-D__IRIX__"
1986 SYS=unknown
1988 esac
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2001 else
2003 MULELDFLAGS="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS="$CFLAGS"
2016 mule_backup_CXXFLAGS="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2018 ac_ext=cc
2019 ac_cpp='$CXXCPP $CPPFLAGS'
2020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CXX=$ac_cv_prog_CXX
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2062 done
2064 if test -z "$CXX"; then
2065 ac_ct_CXX=$CXX
2066 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2104 done
2105 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2107 CXX=$ac_ct_CXX
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev/null >&5) 2>&5
2117 ac_status=$?
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
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 main ()
2143 return 0;
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # resort.
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 ac_cv_exeext=
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169 test -f "$ac_file" || continue
2170 case $ac_file in
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2173 conftest.$ac_ext )
2174 # This is the source file.
2176 [ab].out )
2177 # We found the default executable, but exeext='' is most
2178 # certainly right.
2179 break;;
2180 *.* )
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2185 export ac_cv_exeext
2186 break;;
2188 break;;
2189 esac
2190 done
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 cross_compiling=no
2220 else
2221 if test "$cross_compiling" = maybe; then
2222 cross_compiling=yes
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 # `rm'.
2257 for ac_file in conftest.exe conftest conftest.*; do
2258 test -f "$ac_file" || continue
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 export ac_cv_exeext
2263 break;;
2264 * ) break;;
2265 esac
2266 done
2267 else
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2281 ac_exeext=$EXEEXT
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 main ()
2299 return 0;
2301 _ACEOF
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309 case $ac_file in
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 break;;
2313 esac
2314 done
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT=$ac_cv_objext
2331 ac_objext=$OBJEXT
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 main ()
2347 #ifndef __GNUC__
2348 choke me
2349 #endif
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_compiler_gnu=yes
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 ac_compiler_gnu=no
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS=$CXXFLAGS
2393 CXXFLAGS="-g"
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2417 ac_status=$?
2418 grep -v '^ *+' conftest.er1 >conftest.err
2419 rm -f conftest.er1
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g=yes
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 ac_cv_prog_cxx_g=no
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2451 CXXFLAGS="-g -O2"
2452 else
2453 CXXFLAGS="-g"
2455 else
2456 if test "$GXX" = yes; then
2457 CXXFLAGS="-O2"
2458 else
2459 CXXFLAGS=
2462 for ac_declaration in \
2463 '' \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2468 'void exit (int);'
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 $ac_declaration
2477 #include <stdlib.h>
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 continue
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 $ac_declaration
2524 main ()
2526 exit (42);
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 break
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 DEPDIR="${am__leading_dot}deps"
2575 ac_config_commands="$ac_config_commands depfiles"
2578 am_make=${MAKE-make}
2579 cat > confinc << 'END'
2580 am__doit:
2581 @echo done
2582 .PHONY: am__doit
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2587 am__include="#"
2588 am__quote=
2589 _am_result=none
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2598 am__include=include
2599 am__quote=
2600 _am_result=GNU
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include=.include
2607 am__quote="\""
2608 _am_result=BSD
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno; then
2623 am_depcomp="$ac_aux_dir/depcomp"
2624 AMDEPBACKSLASH='\'
2628 if test "x$enable_dependency_tracking" != xno; then
2629 AMDEP_TRUE=
2630 AMDEP_FALSE='#'
2631 else
2632 AMDEP_TRUE='#'
2633 AMDEP_FALSE=
2639 depcc="$CXX" am_compiler_list=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2651 # in D'.
2652 mkdir conftest.dir
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2656 cd conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2662 # directory.
2663 mkdir sub
2665 am_cv_CXX_dependencies_compiler_type=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2677 : > sub/conftest.c
2678 for i in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub/conftst$i.h
2683 done
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2686 case $depmode in
2687 nosideeffect)
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes; then
2691 continue
2692 else
2693 break
2696 none) break ;;
2697 esac
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode=$depmode \
2702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2705 >/dev/null 2>conftest.err &&
2706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type=$depmode
2719 break
2722 done
2724 cd ..
2725 rm -rf conftest.dir
2726 else
2727 am_cv_CXX_dependencies_compiler_type=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2740 am__fastdepCXX_TRUE=
2741 am__fastdepCXX_FALSE='#'
2742 else
2743 am__fastdepCXX_TRUE='#'
2744 am__fastdepCXX_FALSE=
2748 ac_ext=cc
2749 ac_cpp='$CXXCPP $CPPFLAGS'
2750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP in "$CXX -E" "/lib/cpp"
2762 ac_preproc_ok=false
2763 for ac_cxx_preproc_warn_flag in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #ifdef __STDC__
2778 # include <limits.h>
2779 #else
2780 # include <assert.h>
2781 #endif
2782 Syntax error
2783 _ACEOF
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev/null; then
2792 if test -s conftest.err; then
2793 ac_cpp_err=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2795 else
2796 ac_cpp_err=
2798 else
2799 ac_cpp_err=yes
2801 if test -z "$ac_cpp_err"; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 # Broken: fails on valid input.
2808 continue
2810 rm -f conftest.err conftest.$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2833 else
2834 ac_cpp_err=
2836 else
2837 ac_cpp_err=yes
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2841 continue
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Passes both tests.
2847 ac_preproc_ok=:
2848 break
2850 rm -f conftest.err conftest.$ac_ext
2852 done
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.$ac_ext
2855 if $ac_preproc_ok; then
2856 break
2859 done
2860 ac_cv_prog_CXXCPP=$CXXCPP
2863 CXXCPP=$ac_cv_prog_CXXCPP
2864 else
2865 ac_cv_prog_CXXCPP=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2869 ac_preproc_ok=false
2870 for ac_cxx_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2964 else
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3005 done
3006 done
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3057 CC=$ac_ct_CC
3058 else
3059 CC="$ac_cv_prog_CC"
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3137 CC=$ac_ct_CC
3138 else
3139 CC="$ac_cv_prog_CC"
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected=yes
3164 continue
3166 ac_cv_prog_CC="cc"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy $ac_cv_prog_CC
3176 shift
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3181 shift
3182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3237 done
3239 if test -z "$CC"; then
3240 ac_ct_CC=$CC
3241 for ac_prog in cl
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3279 done
3281 CC=$ac_ct_CC
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev/null >&5) 2>&5
3299 ac_status=$?
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
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev/null >&5) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 main ()
3328 #ifndef __GNUC__
3329 choke me
3330 #endif
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_compiler_gnu=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_compiler_gnu=no
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 CFLAGS="-g"
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_prog_cc_g=yes
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_cv_prog_cc_g=no
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3436 else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_cv_prog_cc_stdc=no
3449 ac_save_CC=$CC
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <stdarg.h>
3457 #include <stdio.h>
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3464 char **p;
3465 int i;
3467 return p[i];
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3471 char *s;
3472 va_list v;
3473 va_start (v,p);
3474 s = g (p, va_arg (v,int));
3475 va_end (v);
3476 return s;
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 int argc;
3493 char **argv;
3495 main ()
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 return 0;
3501 _ACEOF
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc=$ac_arg
3535 break
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f conftest.err conftest.$ac_objext
3542 done
3543 rm -f conftest.$ac_ext conftest.$ac_objext
3544 CC=$ac_save_CC
3548 case "x$ac_cv_prog_cc_stdc" in
3549 x|xno)
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC="$CC $ac_cv_prog_cc_stdc" ;;
3556 esac
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #ifndef __cplusplus
3564 choke me
3565 #endif
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration in \
3590 '' \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3595 'void exit (int);'
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_declaration
3604 #include <stdlib.h>
3606 main ()
3608 exit (42);
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 continue
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_declaration
3651 main ()
3653 exit (42);
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 break
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 done
3688 rm -f conftest*
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 depcc="$CC" am_compiler_list=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3719 # in D'.
3720 mkdir conftest.dir
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3724 cd conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3730 # directory.
3731 mkdir sub
3733 am_cv_CC_dependencies_compiler_type=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3745 : > sub/conftest.c
3746 for i in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub/conftst$i.h
3751 done
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754 case $depmode in
3755 nosideeffect)
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3764 none) break ;;
3765 esac
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode=$depmode \
3770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3773 >/dev/null 2>conftest.err &&
3774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3775 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type=$depmode
3787 break
3790 done
3792 cd ..
3793 rm -rf conftest.dir
3794 else
3795 am_cv_CC_dependencies_compiler_type=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808 am__fastdepCC_TRUE=
3809 am__fastdepCC_FALSE='#'
3810 else
3811 am__fastdepCC_TRUE='#'
3812 am__fastdepCC_FALSE=
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3825 CPP=
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 # Double quotes because CPP needs to be expanded
3832 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3870 else
3871 ac_cpp_err=yes
3873 if test -z "$ac_cpp_err"; then
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Broken: fails on valid input.
3880 continue
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3908 else
3909 ac_cpp_err=yes
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3913 continue
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3922 rm -f conftest.err conftest.$ac_ext
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3928 break
3931 done
3932 ac_cv_prog_CPP=$CPP
3935 CPP=$ac_cv_prog_CPP
3936 else
3937 ac_cv_prog_CPP=$CPP
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3941 ac_preproc_ok=false
3942 for ac_c_preproc_warn_flag in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961 Syntax error
3962 _ACEOF
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null; then
3971 if test -s conftest.err; then
3972 ac_cpp_err=$ac_c_preproc_warn_flag
3973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974 else
3975 ac_cpp_err=
3977 else
3978 ac_cpp_err=yes
3980 if test -z "$ac_cpp_err"; then
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 # Broken: fails on valid input.
3987 continue
3989 rm -f conftest.err conftest.$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 else
4013 ac_cpp_err=
4015 else
4016 ac_cpp_err=yes
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4020 continue
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4029 rm -f conftest.err conftest.$ac_ext
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then
4036 else
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4051 ac_build_prefix=
4052 test -n "$build_alias" && ac_build_prefix=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross=$cross_compiling
4058 cross_compiling=no
4060 ac_ext=c
4061 ac_cpp='$CPP $BUILD_CPPFLAGS'
4062 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy ${ac_build_prefix}gcc; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4092 BUILD_CC=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4130 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC=$ac_ct_BUILD_CC
4140 else
4141 BUILD_CC="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_build_prefix}cc; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4172 BUILD_CC=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4210 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC=$ac_ct_BUILD_CC
4220 else
4221 BUILD_CC="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc; ac_word=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4235 else
4236 ac_prog_rejected=no
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected=yes
4246 continue
4248 ac_cv_prog_BUILD_CC="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy $ac_cv_prog_BUILD_CC
4258 shift
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4263 shift
4264 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4281 for ac_prog in cl
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 BUILD_CC=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4319 done
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC=$BUILD_CC
4323 for ac_prog in cl
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4351 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4361 done
4363 BUILD_CC=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev/null >&5) 2>&5
4381 ac_status=$?
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
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev/null >&5) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 ac_clean_files_save=$ac_clean_files
4411 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4414 # of exeext.
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4425 # resort.
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4429 ac_cv_build_exeext=
4430 # b.out is created by i960 compilers.
4431 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4433 test -f "$ac_file" || continue
4434 case $ac_file in
4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4437 conftest.$ac_ext )
4438 # This is the source file.
4440 [ab].out )
4441 # We found the default executable, but exeext='' is most
4442 # certainly right.
4443 break;;
4444 *.* )
4445 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4450 break;;
4452 break;;
4453 esac
4454 done
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 cross_compiling=no
4484 else
4485 if test "$cross_compiling" = maybe; then
4486 cross_compiling=yes
4487 else
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4502 ac_clean_files=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 # `rm'.
4521 for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4523 case $ac_file in
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4525 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4527 break;;
4528 * ) break;;
4529 esac
4530 done
4531 else
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.$ac_ext
4544 BUILD_EXEEXT=$ac_cv_build_exeext
4545 ac_build_exeext=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling=$saved_cross
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 else
4558 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4561 CFLAGS="$mule_backup_CFLAGS"
4562 CXXFLAGS="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog in gawk mawk nawk awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4592 AWK=$ac_cv_prog_AWK
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4596 else
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4602 done
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4610 then ac_cv_prog_egrep='grep -E'
4611 else ac_cv_prog_egrep='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.make <<\_ACEOF
4626 all:
4627 @echo 'ac_maketemp="$(MAKE)"'
4628 _ACEOF
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_${ac_make}_set=yes
4633 else
4634 eval ac_cv_prog_make_${ac_make}_set=no
4636 rm -f conftest.make
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 SET_MAKE=
4642 else
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE="MAKE=${MAKE-make}"
4649 for ac_prog in flex lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4677 LEX=$ac_cv_prog_LEX
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4681 else
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4687 done
4688 test -n "$LEX" || LEX=":"
4690 if test -z "$LEXLIB"
4691 then
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 ac_check_lib_save_LIBS=$LIBS
4698 LIBS="-lfl $LIBS"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 #ifdef __cplusplus
4708 extern "C"
4709 #endif
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char yywrap ();
4714 main ()
4716 yywrap ();
4718 return 0;
4720 _ACEOF
4721 rm -f conftest.$ac_objext conftest$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_fl_yywrap=no
4750 rm -f conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4757 LEXLIB="-lfl"
4758 else
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 ac_check_lib_save_LIBS=$LIBS
4765 LIBS="-ll $LIBS"
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4779 char yywrap ();
4781 main ()
4783 yywrap ();
4785 return 0;
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_cv_lib_l_yywrap=no
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 LIBS=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4824 LEXLIB="-ll"
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l <<_ACEOF
4842 _ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c; then
4849 ac_cv_prog_lex_root=lex.yy
4850 elif test -f lexyy.c; then
4851 ac_cv_prog_lex_root=lexyy
4852 else
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4860 rm -f conftest.l
4861 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4873 ac_save_LIBS=$LIBS
4874 LIBS="$LIBS $LEXLIB"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4877 _ACEOF
4878 rm -f conftest.$ac_objext conftest$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908 LIBS=$ac_save_LIBS
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h <<\_ACEOF
4917 #define YYTEXT_POINTER 1
4918 _ACEOF
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4929 # AIX /bin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 # Account for people who put trailing slashes in PATH elements.
4948 case $as_dir/ in
4949 ./ | .// | /cC/* | \
4950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4952 /usr/ucb/* ) ;;
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4956 # by default.
4957 for ac_prog in ginstall scoinst install; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4968 else
4969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4970 break 3
4973 done
4974 done
4976 esac
4977 done
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL=$ac_cv_path_install
4983 else
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5033 else
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib; ac_word=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5072 else
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB=$ac_ct_RANLIB
5078 else
5079 RANLIB="$ac_cv_prog_RANLIB"
5082 for ac_prog in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5110 YACC=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5120 done
5121 test -n "$YACC" || YACC="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5151 RANLIB=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB=$ac_ct_RANLIB
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}strip; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 STRIP=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5241 ac_ct_STRIP=$STRIP
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5277 STRIP=$ac_ct_STRIP
5278 else
5279 STRIP="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}ar; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR="$AR" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5309 AR=$ac_cv_prog_AR
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5320 ac_ct_AR=$AR
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy ar; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5347 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5356 AR=$ac_ct_AR
5357 else
5358 AR="$ac_cv_prog_AR"
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}ld; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD="$LD" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5383 done
5384 done
5388 LD=$ac_cv_prog_LD
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5399 ac_ct_LD=$LD
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5426 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5435 LD=$ac_ct_LD
5436 else
5437 LD="$ac_cv_prog_LD"
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval="$enable_monolithic"
5444 MONOLITHIC=$enableval
5445 else
5446 MONOLITHIC=yes
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval="$enable_amule_daemon"
5452 AMULE_DAEMON=$enableval
5453 else
5454 AMULE_DAEMON=no
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval="$enable_amulecmd"
5460 AMULECMD=$enableval
5461 else
5462 AMULECMD=no
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval="$enable_webserver"
5468 WEB=$enableval
5469 else
5470 WEB=no
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval="$enable_amule_gui"
5476 AMULE_GUI=$enableval
5477 else
5478 AMULE_GUI=no
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval="$enable_cas"
5484 CAS=$enableval
5485 else
5486 CAS=no
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval="$enable_wxcas"
5492 WXCAS=$enableval
5493 else
5494 WXCAS=no
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval="$enable_ed2k"
5500 ED2K=$enableval
5501 else
5502 ED2K=yes
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval="$enable_alc"
5508 ALC=$enableval
5509 else
5510 ALC=no
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval="$enable_alcc"
5516 ALCC=$enableval
5517 else
5518 ALCC=no
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval="$enable_monolithic"
5524 MONOLITHIC=$enableval
5525 else
5526 MONOLITHIC=yes
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval="$enable_upnp"
5532 ENABLE_UPNP=$enableval
5533 else
5534 ENABLE_UPNP=yes
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval="$enable_xas"
5540 XAS=$enableval
5541 else
5542 XAS=no
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval="$with_gnu_malloc"
5551 gnumalloc=$withval
5552 else
5553 gnumalloc=yes
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5561 # Check for zlib
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5576 yes | sys)
5579 zlib_prefix="$with_zlib"
5580 esac
5582 mule_backup_CPPFLAGS="$CPPFLAGS"
5583 mule_backup_LDFLAGS="$LDFLAGS"
5584 mule_backup_LIBS="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5589 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5592 else
5594 ZLIB_CPPFLAGS=
5595 ZLIB_LDFLAGS=
5599 ZLIB_LIBS="-lz"
5600 LIBS="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5606 result=no
5607 z_version=
5608 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5616 #include <zlib.h>
5617 #include <stdio.h>
5620 main ()
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5624 zlibVersion();
5627 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5659 result=yes
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5663 result=yes
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5666 result=yes
5674 if test ${result:-no} = yes; then
5675 z_version=" (version $ZLIB_VERSION)"
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5698 #include <zlib.h>
5699 #include <stdio.h>
5702 main ()
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5706 if (!f) return 1;
5707 fprintf(f, "%s",
5708 zver[0] > '1' ||
5709 (zver[0] == '1' &&
5710 (zver[2] > '1' ||
5711 (zver[2] == '1' &&
5712 zver[4] >= '4'))) ? "yes" : "no");
5713 fclose(f);
5714 f=fopen("conftestver", "w");
5715 if (f) {
5716 fprintf(f, "%s", ZLIB_VERSION);
5717 fclose(f);
5721 return 0;
5724 _ACEOF
5725 rm -f conftest$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval; then
5738 result=`cat conftestval`
5739 else
5740 result=no
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver; then
5747 ZLIB_VERSION=`cat conftestver`
5748 z_version=" (version $ZLIB_VERSION)"
5750 else
5751 z_version=
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5760 else
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ( exit $ac_status )
5767 result=no
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5775 CPPFLAGS="$mule_backup_CPPFLAGS"
5776 LDFLAGS="$mule_backup_LDFLAGS"
5777 LIBS="$mule_backup_LIBS"
5779 if test ${result:-no} = no; then
5781 ZLIB_CPPFLAGS=
5782 ZLIB_LDFLAGS=
5783 ZLIB_LIBS=
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x$CAS = xyes; then
5795 # Check for gd
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <stdlib.h>
5809 #include <stdarg.h>
5810 #include <string.h>
5811 #include <float.h>
5814 main ()
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_cv_header_stdc=no
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 #include <string.h>
5862 _ACEOF
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev/null 2>&1; then
5866 else
5867 ac_cv_header_stdc=no
5869 rm -f conftest*
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <stdlib.h>
5883 _ACEOF
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev/null 2>&1; then
5887 else
5888 ac_cv_header_stdc=no
5890 rm -f conftest*
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5898 else
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <ctype.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5919 main ()
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 exit(2);
5926 exit (0);
5928 _ACEOF
5929 rm -f conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5941 else
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ( exit $ac_status )
5947 ac_cv_header_stdc=no
5949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h <<\_ACEOF
5958 #define STDC_HEADERS 1
5959 _ACEOF
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h <<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028 _ACEOF
6032 done
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval="$with_gdlib_config"
6049 GDLIB_VERSION=
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6053 GDLIB_CONFIG_NAME=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6076 else
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 case $GDLIB_CONFIG_PATH in
6085 [\\/]* | ?:[\\/]*)
6086 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir in $as_dummy
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6101 done
6102 done
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6106 esac
6108 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6132 gdlib_ver_ok=
6133 if test $gdlib_config_major_version -gt 2; then
6134 gdlib_ver_ok=yes
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6138 gdlib_ver_ok=yes
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6141 gdlib_ver_ok=yes
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6155 else
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6159 GDLIB_VERSION=
6164 else
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS="$CFLAGS"
6172 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6181 else
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 #include <gd.h>
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler=yes
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_header_compiler=no
6223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <gd.h>
6237 _ACEOF
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_c_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6249 else
6250 ac_cpp_err=
6252 else
6253 ac_cpp_err=yes
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc=yes
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_header_preproc=no
6263 rm -f conftest.err conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 yes:no: )
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc=yes
6276 no:yes:* )
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6290 cat <<\_ASBOX
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6294 _ASBOX
6296 sed "s/^/$as_me: WARNING: /" >&2
6298 esac
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 ac_cv_header_gd_h=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6312 else
6313 GDLIB_VERSION=
6317 CFLAGS="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6327 CAS_DEFS="-D__GD__"
6328 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6330 else
6331 CAS_DEFS=
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6345 gdlib-config).
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6348 sources." >&5
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6356 gdlib-config).
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6359 sources." >&2;}
6360 _mule_warning_0=yes
6361 _mule_has_warnings=yes
6366 else
6367 GDLIB_VERSION="not_needed"
6372 if test x$WEB = xyes; then
6375 for ac_header in sys/types.h
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 else
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_header_compiler=no
6428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454 else
6455 ac_cpp_err=
6457 else
6458 ac_cpp_err=yes
6460 if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ac_header_preproc=no
6468 rm -f conftest.err conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6481 no:yes:* )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 cat <<\_ASBOX
6496 ## ------------------------------ ##
6497 ## Report this to admin@amule.org ##
6498 ## ------------------------------ ##
6499 _ASBOX
6501 sed "s/^/$as_me: WARNING: /" >&2
6503 esac
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 eval "$as_ac_Header=\$ac_header_preproc"
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518 _ACEOF
6522 done
6524 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6525 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6526 regex_found=no
6527 for REGEX_LIBS in '' -lgnurx -lregex; do
6528 mule_backup_LIBS="$LIBS"
6529 LIBS="$REGEX_LIBS $LIBS"
6530 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6538 #ifdef HAVE_SYS_TYPES_H
6539 # include <sys/types.h>
6540 #endif
6541 #include <regex.h>
6544 main ()
6547 regex_t preg;
6548 regcomp(&preg, "", REG_EXTENDED);
6549 regmatch_t *pmatch;
6550 regexec(&preg, "", 0, pmatch, 0);
6551 regfree(&preg);
6554 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6581 LIBS="$mule_backup_LIBS"
6582 regex_found=yes
6583 break;
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 LIBS="$mule_backup_LIBS"
6591 rm -f conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 done
6594 echo "$as_me:$LINENO: result: $regex_found" >&5
6595 echo "${ECHO_T}$regex_found" >&6
6596 if test $regex_found = yes; then
6598 else
6600 WEB=disabled
6601 { echo "$as_me:$LINENO: WARNING:
6602 amuleweb has been disabled because configure could not find a POSIX
6603 compliant regex library." >&5
6604 echo "$as_me: WARNING:
6605 amuleweb has been disabled because configure could not find a POSIX
6606 compliant regex library." >&2;}
6607 _mule_warning_1=yes
6608 _mule_has_warnings=yes
6617 if test x$WEB = xyes; then
6620 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6621 if test "${with_libpng_prefix+set}" = set; then
6622 withval="$with_libpng_prefix"
6626 # Check whether --with-libpng-config or --without-libpng-config was given.
6627 if test "${with_libpng_config+set}" = set; then
6628 withval="$with_libpng_config"
6632 LIBPNG_VERSION=
6634 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6635 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6636 LIBPNG_CONFIG_NAME=libpng-config
6639 if test -n "$with_libpng_config"; then
6640 LIBPNG_CONFIG_NAME="$with_libpng_config"
6644 # deal with optional prefix
6645 if test -n "$with_libpng_prefix"; then
6646 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6650 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6651 if test -x "$LIBPNG_CONFIG_NAME"; then
6653 echo "$as_me:$LINENO: checking for libpng-config" >&5
6654 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6655 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6656 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6657 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6659 else
6660 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6661 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 case $LIBPNG_CONFIG_PATH in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6674 for as_dir in $as_dummy
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6687 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6689 esac
6691 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6693 if test -n "$LIBPNG_CONFIG_PATH"; then
6694 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6695 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6696 else
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6704 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6706 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6707 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6709 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6711 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6712 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6713 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6714 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6716 libpng_ver_ok=
6717 if test $libpng_config_major_version -gt 1; then
6718 libpng_ver_ok=yes
6719 elif test $libpng_config_major_version -eq 1; then
6721 if test $libpng_config_minor_version -gt 2; then
6722 libpng_ver_ok=yes
6723 elif test $libpng_config_minor_version -eq 2; then
6724 if test $libpng_config_micro_version -ge 0; then
6725 libpng_ver_ok=yes
6734 if test -z "$libpng_ver_ok"; then
6736 if test -z "$LIBPNG_VERSION"; then
6737 echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6739 else
6741 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6742 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6743 LIBPNG_VERSION=
6748 else
6750 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6751 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6752 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6753 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6754 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6762 if test -n "$LIBPNG_VERSION"; then
6763 AMULEWEB_DEFS="-DWITH_LIBPNG"
6764 else
6766 { echo "$as_me:$LINENO: WARNING:
6767 libpng >= 1.2.0 not found.
6768 amuleweb will be compiled but file download progress bar images will
6769 NOT be generated." >&5
6770 echo "$as_me: WARNING:
6771 libpng >= 1.2.0 not found.
6772 amuleweb will be compiled but file download progress bar images will
6773 NOT be generated." >&2;}
6774 _mule_warning_2=yes
6775 _mule_has_warnings=yes
6784 else
6785 LIBPNG_VERSION="not_needed"
6790 # Check for perl File::Copy
6791 echo "$as_me:$LINENO: checking for File::Copy" >&5
6792 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6793 if perl -e "require File::Copy" 2>/dev/null; then
6794 echo "$as_me:$LINENO: result: ok" >&5
6795 echo "${ECHO_T}ok" >&6
6796 else
6797 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6798 echo "$as_me: error: File::Copy perl module is required" >&2;}
6799 { (exit 1); exit 1; }; }
6804 # Check if we need the GUI
6805 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6806 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6807 if test x$MONOLITHIC = xyes; then
6808 need_gui=yes
6811 if test x$WXCAS = xyes; then
6812 need_gui=yes
6815 if test x$ALC = xyes; then
6816 need_gui=yes
6819 if test x$AMULE_GUI = xyes; then
6820 need_gui=yes
6823 if test x${need_gui:+set} != xset; then
6824 need_gui=no
6827 echo "$as_me:$LINENO: result: $need_gui" >&5
6828 echo "${ECHO_T}$need_gui" >&6
6830 # Check if we need to install skins
6831 if test x$MONOLITHIC = xyes; then
6832 INSTALL_SKINS=yes
6835 if test x$AMULE_GUI = xyes; then
6836 INSTALL_SKINS=yes
6839 if test x${INSTALL_SKINS:+set} != xset; then
6840 INSTALL_SKINS=no
6844 # Check for GeoIP (required for IP2Country capability)
6846 # Check whether --enable-geoip or --disable-geoip was given.
6847 if test "${enable_geoip+set}" = set; then
6848 enableval="$enable_geoip"
6849 ENABLE_IP2COUNTRY=$enableval
6850 else
6851 ENABLE_IP2COUNTRY=no
6854 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6857 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6858 if test "${with_geoip_headers+set}" = set; then
6859 withval="$with_geoip_headers"
6860 GEOIP_CPPFLAGS="-I$withval"
6863 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6864 if test "${with_geoip_lib+set}" = set; then
6865 withval="$with_geoip_lib"
6866 GEOIP_LDFLAGS="-L$withval"
6869 mule_backup_CPPFLAGS="$CPPFLAGS"
6870 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6871 mule_backup_LDFLAGS="$LDFLAGS"
6872 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6874 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6875 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6876 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6877 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6881 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6882 else
6883 # Is the header compilable?
6884 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6885 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 #include <GeoIP.h>
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_header_compiler=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_header_compiler=no
6924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6926 echo "${ECHO_T}$ac_header_compiler" >&6
6928 # Is the header present?
6929 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6930 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <GeoIP.h>
6938 _ACEOF
6939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null; then
6947 if test -s conftest.err; then
6948 ac_cpp_err=$ac_c_preproc_warn_flag
6949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6950 else
6951 ac_cpp_err=
6953 else
6954 ac_cpp_err=yes
6956 if test -z "$ac_cpp_err"; then
6957 ac_header_preproc=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_header_preproc=no
6964 rm -f conftest.err conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6970 yes:no: )
6971 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc=yes
6977 no:yes:* )
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6991 cat <<\_ASBOX
6992 ## ------------------------------ ##
6993 ## Report this to admin@amule.org ##
6994 ## ------------------------------ ##
6995 _ASBOX
6997 sed "s/^/$as_me: WARNING: /" >&2
6999 esac
7000 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7001 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7002 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 ac_cv_header_GeoIP_h=$ac_header_preproc
7007 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7011 if test $ac_cv_header_GeoIP_h = yes; then
7013 if test x$SYS = xwin32; then
7015 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
7016 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
7017 # Actually, we might not need any if GeoIP is linked as a .dll
7018 # - but that's even harder to check for
7019 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 #include <GeoIP.h>
7028 #ifdef _WINSOCK2_H
7029 I do know it's not the best approach, but at least works with MinGW stock headers.
7030 (tested with w32api-3.12)
7031 #endif
7034 main ()
7038 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7065 GEOIP_WINSOCK_LIB="-lwsock32"
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7072 GEOIP_WINSOCK_LIB="-lws2_32"
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
7077 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
7081 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7082 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7083 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char GeoIP_open ();
7103 main ()
7105 GeoIP_open ();
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_GeoIP_GeoIP_open=yes
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_cv_lib_GeoIP_GeoIP_open=no
7139 rm -f conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LIBS=$ac_check_lib_save_LIBS
7143 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7144 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7145 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define SUPPORT_GEOIP 1
7150 _ACEOF
7152 GEOIP_LIBS="-lGeoIP"
7153 if test x$SYS = xwin32; then
7154 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7157 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7159 # Check whether --with-geoip-static or --without-geoip-static was given.
7160 if test "${with_geoip_static+set}" = set; then
7161 withval="$with_geoip_static"
7163 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7165 mule_backup_LIBS="$LIBS"
7166 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7167 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7175 #include <GeoIP.h>
7178 main ()
7181 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7184 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7211 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7218 { echo "$as_me:$LINENO: WARNING:
7219 Cannot link GeoIP statically, because your linker ($LD) does not
7220 support it." >&5
7221 echo "$as_me: WARNING:
7222 Cannot link GeoIP statically, because your linker ($LD) does not
7223 support it." >&2;}
7224 _mule_warning_3=yes
7225 _mule_has_warnings=yes
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 LIBS="$mule_backup_LIBS"
7238 else
7240 ENABLE_IP2COUNTRY=disabled
7241 { echo "$as_me:$LINENO: WARNING:
7242 GeoIP support has been disabled because the GeoIP libraries were not
7243 found" >&5
7244 echo "$as_me: WARNING:
7245 GeoIP support has been disabled because the GeoIP libraries were not
7246 found" >&2;}
7247 _mule_warning_4=yes
7248 _mule_has_warnings=yes
7254 else
7256 ENABLE_IP2COUNTRY=disabled
7257 { echo "$as_me:$LINENO: WARNING:
7258 GeoIP support has been disabled because the GeoIP header files were
7259 not found" >&5
7260 echo "$as_me: WARNING:
7261 GeoIP support has been disabled because the GeoIP header files were
7262 not found" >&2;}
7263 _mule_warning_5=yes
7264 _mule_has_warnings=yes
7271 CPPFLAGS="$mule_backup_CPPFLAGS"
7272 LDFLAGS="$mule_backup_LDFLAGS"
7278 # Check for wx
7281 # Check whether --with-wxdir or --without-wxdir was given.
7282 if test "${with_wxdir+set}" = set; then
7283 withval="$with_wxdir"
7284 wx_config_name="$withval/wx-config"
7285 wx_config_args="--inplace"
7288 # Check whether --with-wx-config or --without-wx-config was given.
7289 if test "${with_wx_config+set}" = set; then
7290 withval="$with_wx_config"
7291 wx_config_name="$withval"
7294 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7295 if test "${with_wx_prefix+set}" = set; then
7296 withval="$with_wx_prefix"
7297 wx_config_prefix="$withval"
7298 else
7299 wx_config_prefix=""
7302 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7303 if test "${with_wx_exec_prefix+set}" = set; then
7304 withval="$with_wx_exec_prefix"
7305 wx_config_exec_prefix="$withval"
7306 else
7307 wx_config_exec_prefix=""
7321 # Check whether --with-toolkit or --without-toolkit was given.
7322 if test "${with_toolkit+set}" = set; then
7323 withval="$with_toolkit"
7325 else
7326 withval="auto"
7329 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7330 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7331 if test "$withval" = "auto" ; then
7332 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7333 echo "${ECHO_T}will be automatically detected" >&6
7334 TOOLKIT="auto"
7335 else
7336 TOOLKIT="$withval"
7338 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7339 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7340 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7341 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7342 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7343 { { echo "$as_me:$LINENO: error:
7344 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7345 " >&5
7346 echo "$as_me: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7348 " >&2;}
7349 { (exit 1); exit 1; }; }
7352 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7353 echo "${ECHO_T}$TOOLKIT" >&6
7360 # Check whether --with-wxshared or --without-wxshared was given.
7361 if test "${with_wxshared+set}" = set; then
7362 withval="$with_wxshared"
7364 else
7365 withval="auto"
7368 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7369 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7370 if test "$withval" = "yes" ; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372 echo "${ECHO_T}yes" >&6
7373 WX_SHARED=1
7375 elif test "1" = "1" -a "$withval" = "no" ; then
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378 WX_SHARED=0
7379 elif test "$withval" = "auto" ; then
7380 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7381 echo "${ECHO_T}will be automatically detected" >&6
7382 WX_SHARED="auto"
7383 else
7384 { { echo "$as_me:$LINENO: error:
7385 Unrecognized option value (allowed values: yes, auto)
7386 " >&5
7387 echo "$as_me: error:
7388 Unrecognized option value (allowed values: yes, auto)
7389 " >&2;}
7390 { (exit 1); exit 1; }; }
7397 # Check whether --with-wxdebug or --without-wxdebug was given.
7398 if test "${with_wxdebug+set}" = set; then
7399 withval="$with_wxdebug"
7401 else
7402 withval="auto"
7405 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7406 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7407 if test "$withval" = "yes" ; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7410 WX_DEBUG=1
7412 elif test "1" = "1" -a "$withval" = "no" ; then
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 WX_DEBUG=0
7416 elif test "$withval" = "auto" ; then
7417 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7418 echo "${ECHO_T}will be automatically detected" >&6
7419 WX_DEBUG="auto"
7420 else
7421 { { echo "$as_me:$LINENO: error:
7422 Unrecognized option value (allowed values: yes, auto)
7423 " >&5
7424 echo "$as_me: error:
7425 Unrecognized option value (allowed values: yes, auto)
7426 " >&2;}
7427 { (exit 1); exit 1; }; }
7434 # Check whether --with-wxversion or --without-wxversion was given.
7435 if test "${with_wxversion+set}" = set; then
7436 withval="$with_wxversion"
7438 else
7439 withval="auto"
7442 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7443 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7444 if test "$withval" = "auto" ; then
7445 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7446 echo "${ECHO_T}will be automatically detected" >&6
7447 WX_VERSION="auto"
7448 else
7450 wx_requested_major_version=`echo $withval | \
7451 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7452 wx_requested_minor_version=`echo $withval | \
7453 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7455 if test "${#wx_requested_major_version}" != "1" -o \
7456 "${#wx_requested_minor_version}" != "1" ; then
7457 { { echo "$as_me:$LINENO: error:
7458 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7459 " >&5
7460 echo "$as_me: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7462 " >&2;}
7463 { (exit 1); exit 1; }; }
7466 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7467 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7468 echo "${ECHO_T}$WX_VERSION" >&6
7472 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7473 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7474 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7475 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7476 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7477 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7480 # Force using a static wxWidgets library if the executable is to be linked statically.
7481 if test ${enable_static:-no} = yes; then
7482 WX_SHARED=0
7485 # Force using a unicode build of the library
7486 WX_UNICODE=1
7487 DEBUG=$WX_DEBUG
7489 if test "$WX_SHARED" = "1" ; then
7490 WXCONFIG_FLAGS="--static=no "
7491 elif test "$WX_SHARED" = "0" ; then
7492 WXCONFIG_FLAGS="--static=yes "
7495 if test "$WX_DEBUG" = "1" ; then
7496 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7497 elif test "$WX_DEBUG" = "0" ; then
7498 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7501 if test "$WX_UNICODE" = "1" ; then
7502 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7503 elif test "$WX_UNICODE" = "0" ; then
7504 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7507 if test "$TOOLKIT" != "auto" ; then
7508 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7511 if test "$WX_VERSION" != "auto" ; then
7512 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7515 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7522 if test x${WX_CONFIG_NAME+set} != xset ; then
7523 WX_CONFIG_NAME=wx-config
7526 if test "x$wx_config_name" != x ; then
7527 WX_CONFIG_NAME="$wx_config_name"
7530 if test x$wx_config_exec_prefix != x ; then
7531 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7532 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7534 if test x$wx_config_prefix != x ; then
7535 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7536 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7538 if test "$cross_compiling" = "yes"; then
7539 wx_config_args="$wx_config_args --host=$host_alias"
7542 if test -x "$WX_CONFIG_NAME" ; then
7543 echo "$as_me:$LINENO: checking for wx-config" >&5
7544 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7545 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7546 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7547 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7548 else
7549 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7550 set dummy $WX_CONFIG_NAME; ac_word=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 case $WX_CONFIG_PATH in
7557 [\\/]* | ?:[\\/]*)
7558 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7563 for as_dir in $as_dummy
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7573 done
7574 done
7576 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7578 esac
7580 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7582 if test -n "$WX_CONFIG_PATH"; then
7583 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7584 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7585 else
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7592 if test "$WX_CONFIG_PATH" != "no" ; then
7593 WX_VERSION_FULL=""
7595 min_wx_version=2.8.0
7596 if test -z "$WXCONFIG_FLAGS" ; then
7597 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7598 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7599 else
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7604 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7606 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7607 wx_config_major_version=`echo $WX_VERSION_FULL | \
7608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7609 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7611 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7614 wx_requested_major_version=`echo $min_wx_version | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7616 wx_requested_minor_version=`echo $min_wx_version | \
7617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7618 wx_requested_micro_version=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7622 wx_ver_ok=""
7623 if test "x$WX_VERSION_FULL" != x ; then
7624 if test $wx_config_major_version -gt $wx_requested_major_version; then
7625 wx_ver_ok=yes
7626 else
7627 if test $wx_config_major_version -eq $wx_requested_major_version; then
7628 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7629 wx_ver_ok=yes
7630 else
7631 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7632 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7633 wx_ver_ok=yes
7642 if test -n "$wx_ver_ok"; then
7644 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7645 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7646 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7648 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7649 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7650 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7651 if test "x$WX_LIBS_STATIC" = "x"; then
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654 else
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7659 wx_has_cppflags=""
7660 if test $wx_config_major_version -gt 2; then
7661 wx_has_cppflags=yes
7662 else
7663 if test $wx_config_major_version -eq 2; then
7664 if test $wx_config_minor_version -gt 2; then
7665 wx_has_cppflags=yes
7666 else
7667 if test $wx_config_minor_version -eq 2; then
7668 if test $wx_config_micro_version -ge 6; then
7669 wx_has_cppflags=yes
7676 wx_has_rescomp=""
7677 if test $wx_config_major_version -gt 2; then
7678 wx_has_rescomp=yes
7679 else
7680 if test $wx_config_major_version -eq 2; then
7681 if test $wx_config_minor_version -ge 7; then
7682 wx_has_rescomp=yes
7686 if test "x$wx_has_rescomp" = x ; then
7687 WX_RESCOMP=
7688 else
7689 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7692 if test "x$wx_has_cppflags" = x ; then
7693 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7694 WX_CPPFLAGS=$WX_CFLAGS
7695 WX_CXXFLAGS=$WX_CFLAGS
7697 WX_CFLAGS_ONLY=$WX_CFLAGS
7698 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7699 else
7700 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7701 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7702 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7704 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7705 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7708 wxWin=1
7710 else
7712 if test "x$WX_VERSION_FULL" = x; then
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715 else
7716 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7717 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7720 WX_CFLAGS=""
7721 WX_CPPFLAGS=""
7722 WX_CXXFLAGS=""
7723 WX_LIBS=""
7724 WX_LIBS_STATIC=""
7725 WX_RESCOMP=""
7727 if test ! -z "$WXCONFIG_FLAGS"; then
7729 wx_error_message="
7730 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7731 build with the following settings:
7732 $WXCONFIG_FLAGS
7733 but such build is not available.
7735 To see the wxWidgets builds available on this system, please use
7736 'wx-config --list' command. To use the default build, returned by
7737 'wx-config --selected-config', use the options with their 'auto'
7738 default values."
7742 wx_error_message="
7743 The requested wxWidgets build couldn't be found.
7744 $wx_error_message
7746 If you still get this error, then check that 'wx-config' is
7747 in path, the directory where wxWidgets libraries are installed
7748 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7749 or equivalent variable and wxWidgets version is 2.8.0 or above."
7751 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7752 echo "$as_me: error: $wx_error_message" >&2;}
7753 { (exit 1); exit 1; }; }
7756 else
7758 WX_CFLAGS=""
7759 WX_CPPFLAGS=""
7760 WX_CXXFLAGS=""
7761 WX_LIBS=""
7762 WX_LIBS_STATIC=""
7763 WX_RESCOMP=""
7779 WX_VERSION_MAJOR="$wx_config_major_version"
7780 WX_VERSION_MINOR="$wx_config_minor_version"
7784 if test "$wxWin" != 1; then
7785 { { echo "$as_me:$LINENO: error:
7786 wxWidgets must be installed on your system but wx-config
7787 script couldn't be found. Please check that wx-config is
7788 in path or specified by --with-wx-config=path flag, the
7789 directory where wxWidgets libraries are installed (returned
7790 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7791 equivalent variable and wxWidgets version is 2.8.0 or above.
7792 " >&5
7793 echo "$as_me: error:
7794 wxWidgets must be installed on your system but wx-config
7795 script couldn't be found. Please check that wx-config is
7796 in path or specified by --with-wx-config=path flag, the
7797 directory where wxWidgets libraries are installed (returned
7798 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7799 equivalent variable and wxWidgets version is 2.8.0 or above.
7800 " >&2;}
7801 { (exit 1); exit 1; }; }
7804 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7805 if test $WX_VERSION -lt 26 ; then
7807 { { echo "$as_me:$LINENO: error:
7808 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7809 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7810 version of wxWidgets.
7811 " >&5
7812 echo "$as_me: error:
7813 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7814 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7815 version of wxWidgets.
7816 " >&2;}
7817 { (exit 1); exit 1; }; }
7820 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7822 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7823 echo "[dbg] Using wx-config --selected-config"
7824 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7828 if test $WX_SHARED = "1"; then
7829 STATIC=0
7830 elif test $WX_SHARED = "0"; then
7831 STATIC=1
7832 elif test $WX_SHARED = "auto"; then
7833 STATIC="auto"
7837 if test "$UNICODE" = "auto" ; then
7839 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7840 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7842 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7844 if test "$WX_UNICODE" != "0"; then
7845 WX_UNICODE=1
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7849 else
7850 WX_UNICODE=0
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7855 else
7857 WX_UNICODE=$UNICODE
7861 if test "$DEBUG" = "auto" ; then
7863 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7864 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7866 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7868 if test "$WX_DEBUG" != "0"; then
7869 WX_DEBUG=1
7870 echo "$as_me:$LINENO: result: yes" >&5
7871 echo "${ECHO_T}yes" >&6
7873 else
7874 WX_DEBUG=0
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7879 else
7881 WX_DEBUG=$DEBUG
7885 if test "$STATIC" = "auto" ; then
7887 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7888 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7890 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7892 if test "$WX_STATIC" != "0"; then
7893 WX_STATIC=1
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7897 else
7898 WX_STATIC=0
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7903 else
7905 WX_STATIC=$STATIC
7909 if test "$WX_STATIC" != "0"; then
7910 WX_SHARED=0
7911 else
7912 WX_SHARED=1
7919 if test "$TOOLKIT" = "auto" ; then
7921 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7922 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7924 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7925 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7926 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7927 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7928 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7929 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7930 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7931 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7932 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7933 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7935 WX_PORT="unknown"
7936 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7937 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7938 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7939 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7940 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7941 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7942 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7943 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7944 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7945 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7948 if test "$WX_PORT" = "unknown" ; then
7949 { { echo "$as_me:$LINENO: error:
7950 Cannot detect the currently installed wxWidgets port !
7951 Please check your 'wx-config --cxxflags'...
7952 " >&5
7953 echo "$as_me: error:
7954 Cannot detect the currently installed wxWidgets port !
7955 Please check your 'wx-config --cxxflags'...
7956 " >&2;}
7957 { (exit 1); exit 1; }; }
7960 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7961 echo "${ECHO_T}$WX_PORT" >&6
7962 else
7964 if test -z "$TOOLKIT" ; then
7965 WX_PORT=$TOOLKIT
7966 else
7967 WX_PORT=$PORT
7973 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7974 echo "[dbg] Values of all WX_* options after final detection:"
7975 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7976 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7977 echo "[dbg] WX_SHARED: $WX_SHARED"
7978 echo "[dbg] WX_VERSION: $WX_VERSION"
7979 echo "[dbg] WX_PORT: $WX_PORT"
7982 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7983 { { echo "$as_me:$LINENO: error:
7984 Cannot build shared library against a static build of wxWidgets !
7985 This error happens because the wxWidgets build which was selected
7986 has been detected as static while you asked to build $PACKAGE_NAME
7987 as shared library and this is not possible.
7988 Use the '--disable-shared' option to build $PACKAGE_NAME
7989 as static library or '--with-wxshared' to use wxWidgets as shared library.
7990 " >&5
7991 echo "$as_me: error:
7992 Cannot build shared library against a static build of wxWidgets !
7993 This error happens because the wxWidgets build which was selected
7994 has been detected as static while you asked to build $PACKAGE_NAME
7995 as shared library and this is not possible.
7996 Use the '--disable-shared' option to build $PACKAGE_NAME
7997 as static library or '--with-wxshared' to use wxWidgets as shared library.
7998 " >&2;}
7999 { (exit 1); exit 1; }; }
8002 if test "$DEBUG" = "auto"; then
8003 DEBUG=$WX_DEBUG
8005 if test "$DEBUG" = "1"; then
8006 BUILD="debug"
8007 elif test "$DEBUG" = ""; then
8008 BUILD="release"
8011 if test "$UNICODE" = "auto"; then
8012 UNICODE=$WX_UNICODE
8014 if test "$SHARED" = "auto"; then
8015 SHARED=$WX_SHARED
8017 if test "$TOOLKIT" = "auto"; then
8018 TOOLKIT=$WX_PORT
8023 # We also need wxBase
8024 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8025 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8026 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8030 if test ${SYS:-unknown} = win32; then
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}windres; ac_word=$2
8035 echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_prog_RC+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 if test -n "$RC"; then
8041 ac_cv_prog_RC="$RC" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_RC="${ac_tool_prefix}windres"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8054 done
8055 done
8059 RC=$ac_cv_prog_RC
8060 if test -n "$RC"; then
8061 echo "$as_me:$LINENO: result: $RC" >&5
8062 echo "${ECHO_T}$RC" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8069 if test -z "$ac_cv_prog_RC"; then
8070 ac_ct_RC=$RC
8071 # Extract the first word of "windres", so it can be a program name with args.
8072 set dummy windres; ac_word=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 if test -n "$ac_ct_RC"; then
8079 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_RC="windres"
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8095 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8098 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8099 if test -n "$ac_ct_RC"; then
8100 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8101 echo "${ECHO_T}$ac_ct_RC" >&6
8102 else
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8107 RC=$ac_ct_RC
8108 else
8109 RC="$ac_cv_prog_RC"
8112 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8118 # Check for libupnp
8119 if test "${ENABLE_UPNP:-yes}" = yes; then
8123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 case $PKG_CONFIG in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8152 esac
8154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8156 if test -n "$PKG_CONFIG"; then
8157 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8158 echo "${ECHO_T}$PKG_CONFIG" >&6
8159 else
8160 echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8165 if test -z "$ac_cv_path_PKG_CONFIG"; then
8166 ac_pt_PKG_CONFIG=$PKG_CONFIG
8167 # Extract the first word of "pkg-config", so it can be a program name with args.
8168 set dummy pkg-config; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 case $ac_pt_PKG_CONFIG in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8194 esac
8196 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8198 if test -n "$ac_pt_PKG_CONFIG"; then
8199 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8200 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 PKG_CONFIG=$ac_pt_PKG_CONFIG
8207 else
8208 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8212 if test -n "$PKG_CONFIG"; then
8213 _pkg_min_version=0.9.0
8214 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8215 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6
8219 else
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8222 PKG_CONFIG=""
8228 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8229 if test "${with_libupnp_prefix+set}" = set; then
8230 withval="$with_libupnp_prefix"
8231 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8234 if test $cross_compiling = no; then
8235 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8236 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8237 if test -n "$PKG_CONFIG"; then
8238 if $PKG_CONFIG libupnp --exists; then
8239 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8240 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8241 result=yes
8242 resultstr=" (version $LIBUPNP_VERSION)"
8243 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8244 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8245 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8246 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8247 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8249 else
8250 result=no
8251 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8255 else
8256 result=no
8257 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8261 else
8262 result=no
8263 resultstr=" (pkg-config not found)"
8266 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8267 echo "${ECHO_T}$result$resultstr" >&6
8268 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8270 else
8271 result=no
8272 libupnp_error="cross compiling"
8276 if test ${result:-no} = yes; then
8277 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8278 else
8279 ENABLE_UPNP=disabled
8280 { echo "$as_me:$LINENO: WARNING:
8281 UPnP code has been disabled because ${libupnp_error}." >&5
8282 echo "$as_me: WARNING:
8283 UPnP code has been disabled because ${libupnp_error}." >&2;}
8284 _mule_warning_6=yes
8285 _mule_has_warnings=yes
8296 # Check for Crypto++
8299 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8300 if test "${with_crypto_prefix+set}" = set; then
8301 withval="$with_crypto_prefix"
8305 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8306 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8308 cryptopp_file_with_version="cryptlib.h"
8310 CRYPTOPP_STYLE="unknown"
8311 CRYPTOPP_LIB_NAME="unknown"
8312 cryptopp_includedir="unknown"
8313 CRYPTOPP_INCLUDE_PREFIX="unknown"
8314 cryptopp_libdir="unknown"
8316 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8317 if test -z "$CRYPTOPP_PREFIX"; then
8318 continue
8322 # Find the Cryptopp header
8323 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8325 CRYPTOPP_STYLE="sources"
8326 CRYPTOPP_LIB_NAME="cryptopp"
8327 cryptopp_includedir=
8328 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8329 cryptopp_libdir=
8330 break
8332 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8334 CRYPTOPP_STYLE="installed"
8335 CRYPTOPP_LIB_NAME="cryptopp"
8336 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8337 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8338 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8339 break
8341 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8343 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8344 CRYPTOPP_STYLE="gentoo_debian"
8345 CRYPTOPP_LIB_NAME="crypto++"
8346 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8347 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8348 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8349 break
8353 done
8355 if test $CRYPTOPP_STYLE = "unknown"; then
8356 result=no; resultstr=""
8357 else
8359 # Find out the crypto++ version and check against the minimum required
8360 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8361 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8362 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8363 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8365 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8367 result=yes
8368 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8369 if test -n "$cryptopp_includedir"; then
8370 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8371 else
8372 CRYPTOPP_CPPFLAGS=
8375 if test -n "$cryptopp_libdir"; then
8377 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8378 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8380 else
8382 CRYPTOPP_LDFLAGS=
8383 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8389 cat >>confdefs.h <<_ACEOF
8390 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8391 _ACEOF
8394 else
8396 result=no
8397 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8405 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8406 echo "${ECHO_T}$result$resultstr" >&6
8408 if test ${result:-no} = yes; then
8410 # Check for CryptoPP >= 5.5
8411 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8412 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8416 else
8418 { { echo "$as_me:$LINENO: error:
8419 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8420 Please try again with --with-crypto-prefix=/my_crypto_prefix
8421 (replace /my_crypto_prefix with a valid path to your crypto++
8422 installation directory)." >&5
8423 echo "$as_me: error:
8424 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8425 Please try again with --with-crypto-prefix=/my_crypto_prefix
8426 (replace /my_crypto_prefix with a valid path to your crypto++
8427 installation directory)." >&2;}
8428 { (exit 1); exit 1; }; }
8435 ac_ext=cc
8436 ac_cpp='$CXXCPP $CPPFLAGS'
8437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8444 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8445 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 #include <string>
8455 #ifndef __GLIBCXX__
8456 #error Non-GNU C++ library found.
8457 #endif
8460 _ACEOF
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_cxx_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8472 else
8473 ac_cpp_err=
8475 else
8476 ac_cpp_err=yes
8478 if test -z "$ac_cpp_err"; then
8479 GLIBCXX=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 GLIBCXX=no
8486 rm -f conftest.err conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8488 echo "${ECHO_T}$GLIBCXX" >&6
8491 mule_backup_CPPFLAGS="$CPPFLAGS"
8492 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8494 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8495 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 #include <wx/wx.h>
8505 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8506 #error No LargeFile support!
8507 #endif
8510 _ACEOF
8511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev/null; then
8519 if test -s conftest.err; then
8520 ac_cpp_err=$ac_cxx_preproc_warn_flag
8521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8522 else
8523 ac_cpp_err=
8525 else
8526 ac_cpp_err=yes
8528 if test -z "$ac_cpp_err"; then
8530 echo "$as_me:$LINENO: result: yes" >&5
8531 echo "${ECHO_T}yes" >&6
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8540 { { echo "$as_me:$LINENO: error:
8541 Support for large files in wxWidgets is required by aMule.
8542 To continue you must recompile wxWidgets with support for
8543 large files enabled." >&5
8544 echo "$as_me: error:
8545 Support for large files in wxWidgets is required by aMule.
8546 To continue you must recompile wxWidgets with support for
8547 large files enabled." >&2;}
8548 { (exit 1); exit 1; }; }
8551 rm -f conftest.err conftest.$ac_ext
8553 CPPFLAGS="$mule_backup_CPPFLAGS"
8556 # Check if the compiler is broken, wrt. exceptions.
8558 echo "$as_me:$LINENO: checking for exception-handling" >&5
8559 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8560 if test "$cross_compiling" = yes; then
8562 echo "$as_me:$LINENO: result: undeterminable" >&5
8563 echo "${ECHO_T}undeterminable" >&6
8564 { echo "$as_me:$LINENO: WARNING:
8565 Cross-compilation detected, so exception handling cannot be tested.
8566 Note that broken exception handling in your compiler may lead to
8567 unexpected crashes." >&5
8568 echo "$as_me: WARNING:
8569 Cross-compilation detected, so exception handling cannot be tested.
8570 Note that broken exception handling in your compiler may lead to
8571 unexpected crashes." >&2;}
8572 _mule_warning_7=yes
8573 _mule_has_warnings=yes
8576 else
8577 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8586 main ()
8589 try {
8590 throw 1;
8591 } catch (int) {
8592 return 0;
8594 return 1;
8597 return 0;
8600 _ACEOF
8601 rm -f conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6
8616 else
8617 echo "$as_me: program exited with status $ac_status" >&5
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ( exit $ac_status )
8623 echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8625 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8626 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8627 { (exit 1); exit 1; }; }
8630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8636 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8637 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 #include <cxxabi.h>
8648 main ()
8651 int status;
8652 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8653 std::type_info *ti = abi::__cxa_current_exception_type();
8656 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_cxx_werror_flag"
8670 || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8685 cat >>confdefs.h <<\_ACEOF
8686 #define HAVE_CXXABI 1
8687 _ACEOF
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8697 echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8701 rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8704 ac_ext=c
8705 ac_cpp='$CPP $CPPFLAGS'
8706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8711 # Ok, we have all needed libs, now checking for other stuff
8712 if test "$LEX" = "flex"; then
8714 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8715 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8717 extended_flex=`flex --help | grep header-file`
8718 if test -n "$extended_flex"; then
8719 HAVE_FLEX_EXTENDED=yes
8720 else
8721 HAVE_FLEX_EXTENDED=no
8724 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8725 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8727 if test $HAVE_FLEX_EXTENDED = no; then
8728 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8729 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8733 else
8734 HAVE_FLEX_EXTENDED=no
8738 # Flush standard test results for speeding cache
8739 cat >confcache <<\_ACEOF
8740 # This file is a shell script that caches the results of configure
8741 # tests run on this system so they can be shared between configure
8742 # scripts and configure runs, see configure's option --config-cache.
8743 # It is not useful on other systems. If it contains results you don't
8744 # want to keep, you may remove or edit it.
8746 # config.status only pays attention to the cache file if you give it
8747 # the --recheck option to rerun configure.
8749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8751 # following values.
8753 _ACEOF
8755 # The following way of writing the cache mishandles newlines in values,
8756 # but we know of no workaround that is simple, portable, and efficient.
8757 # So, don't put newlines in cache variables' values.
8758 # Ultrix sh set writes to stderr and can't be redirected directly,
8759 # and sets the high bit in the cache file unless we assign to the vars.
8761 (set) 2>&1 |
8762 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8763 *ac_space=\ *)
8764 # `set' does not quote correctly, so add quotes (double-quote
8765 # substitution turns \\\\ into \\, and sed turns \\ into \).
8766 sed -n \
8767 "s/'/'\\\\''/g;
8768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8771 # `set' quotes correctly as required by POSIX, so do not add quotes.
8772 sed -n \
8773 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8775 esac;
8777 sed '
8778 t clear
8779 : clear
8780 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8781 t end
8782 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8783 : end' >>confcache
8784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8785 if test -w $cache_file; then
8786 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8787 cat confcache >$cache_file
8788 else
8789 echo "not updating unwritable cache $cache_file"
8792 rm -f confcache
8794 # Checks for header files.
8795 echo "$as_me:$LINENO: checking for X" >&5
8796 echo $ECHO_N "checking for X... $ECHO_C" >&6
8799 # Check whether --with-x or --without-x was given.
8800 if test "${with_x+set}" = set; then
8801 withval="$with_x"
8804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8805 if test "x$with_x" = xno; then
8806 # The user explicitly disabled X.
8807 have_x=disabled
8808 else
8809 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8810 # Both variables are already set.
8811 have_x=yes
8812 else
8813 if test "${ac_cv_have_x+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 # One or both of the vars are not set, and there is no cached value.
8817 ac_x_includes=no ac_x_libraries=no
8818 rm -fr conftest.dir
8819 if mkdir conftest.dir; then
8820 cd conftest.dir
8821 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8822 cat >Imakefile <<'_ACEOF'
8823 acfindx:
8824 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8825 _ACEOF
8826 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8828 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8830 for ac_extension in a so sl; do
8831 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8832 test -f $ac_im_libdir/libX11.$ac_extension; then
8833 ac_im_usrlibdir=$ac_im_libdir; break
8835 done
8836 # Screen out bogus values from the imake configuration. They are
8837 # bogus both because they are the default anyway, and because
8838 # using them would break gcc on systems where it needs fixed includes.
8839 case $ac_im_incroot in
8840 /usr/include) ;;
8841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8842 esac
8843 case $ac_im_usrlibdir in
8844 /usr/lib | /lib) ;;
8845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8846 esac
8848 cd ..
8849 rm -fr conftest.dir
8852 # Standard set of common directories for X headers.
8853 # Check X11 before X11Rn because it is often a symlink to the current release.
8854 ac_x_header_dirs='
8855 /usr/X11/include
8856 /usr/X11R6/include
8857 /usr/X11R5/include
8858 /usr/X11R4/include
8860 /usr/include/X11
8861 /usr/include/X11R6
8862 /usr/include/X11R5
8863 /usr/include/X11R4
8865 /usr/local/X11/include
8866 /usr/local/X11R6/include
8867 /usr/local/X11R5/include
8868 /usr/local/X11R4/include
8870 /usr/local/include/X11
8871 /usr/local/include/X11R6
8872 /usr/local/include/X11R5
8873 /usr/local/include/X11R4
8875 /usr/X386/include
8876 /usr/x386/include
8877 /usr/XFree86/include/X11
8879 /usr/include
8880 /usr/local/include
8881 /usr/unsupported/include
8882 /usr/athena/include
8883 /usr/local/x11r5/include
8884 /usr/lpp/Xamples/include
8886 /usr/openwin/include
8887 /usr/openwin/share/include'
8889 if test "$ac_x_includes" = no; then
8890 # Guess where to find include files, by looking for Intrinsic.h.
8891 # First, try using that file with no special directory specified.
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <X11/Intrinsic.h>
8899 _ACEOF
8900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } >/dev/null; then
8908 if test -s conftest.err; then
8909 ac_cpp_err=$ac_c_preproc_warn_flag
8910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8911 else
8912 ac_cpp_err=
8914 else
8915 ac_cpp_err=yes
8917 if test -z "$ac_cpp_err"; then
8918 # We can compile using X headers with no special include directory.
8919 ac_x_includes=
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 for ac_dir in $ac_x_header_dirs; do
8925 if test -r "$ac_dir/X11/Intrinsic.h"; then
8926 ac_x_includes=$ac_dir
8927 break
8929 done
8931 rm -f conftest.err conftest.$ac_ext
8932 fi # $ac_x_includes = no
8934 if test "$ac_x_libraries" = no; then
8935 # Check for the libraries.
8936 # See if we find them without any special options.
8937 # Don't add to $LIBS permanently.
8938 ac_save_LIBS=$LIBS
8939 LIBS="-lXt $LIBS"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 #include <X11/Intrinsic.h>
8948 main ()
8950 XtMalloc (0)
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 LIBS=$ac_save_LIBS
8978 # We can link X programs with no special library path.
8979 ac_x_libraries=
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 LIBS=$ac_save_LIBS
8985 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8987 # Don't even attempt the hair of trying to link an X program!
8988 for ac_extension in a so sl; do
8989 if test -r $ac_dir/libXt.$ac_extension; then
8990 ac_x_libraries=$ac_dir
8991 break 2
8993 done
8994 done
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi # $ac_x_libraries = no
9000 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9001 # Didn't find X anywhere. Cache the known absence of X.
9002 ac_cv_have_x="have_x=no"
9003 else
9004 # Record where we found X for the cache.
9005 ac_cv_have_x="have_x=yes \
9006 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9011 eval "$ac_cv_have_x"
9012 fi # $with_x != no
9014 if test "$have_x" != yes; then
9015 echo "$as_me:$LINENO: result: $have_x" >&5
9016 echo "${ECHO_T}$have_x" >&6
9017 no_x=yes
9018 else
9019 # If each of the values was on the command line, it overrides each guess.
9020 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9021 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9022 # Update the cache value to reflect the command line values.
9023 ac_cv_have_x="have_x=yes \
9024 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9025 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9026 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9030 # for constant arguments. Useless!
9031 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9033 if test "${ac_cv_working_alloca_h+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 #include <alloca.h>
9044 main ()
9046 char *p = (char *) alloca (2 * sizeof (int));
9048 return 0;
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_working_alloca_h=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_working_alloca_h=no
9080 rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9084 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9085 if test $ac_cv_working_alloca_h = yes; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define HAVE_ALLOCA_H 1
9089 _ACEOF
9093 echo "$as_me:$LINENO: checking for alloca" >&5
9094 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9095 if test "${ac_cv_func_alloca_works+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #ifdef __GNUC__
9105 # define alloca __builtin_alloca
9106 #else
9107 # ifdef _MSC_VER
9108 # include <malloc.h>
9109 # define alloca _alloca
9110 # else
9111 # if HAVE_ALLOCA_H
9112 # include <alloca.h>
9113 # else
9114 # ifdef _AIX
9115 #pragma alloca
9116 # else
9117 # ifndef alloca /* predefined by HP cc +Olibcalls */
9118 char *alloca ();
9119 # endif
9120 # endif
9121 # endif
9122 # endif
9123 #endif
9126 main ()
9128 char *p = (char *) alloca (1);
9130 return 0;
9132 _ACEOF
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_c_werror_flag"
9143 || test ! -s conftest.err'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; } &&
9149 { ac_try='test -s conftest$ac_exeext'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; }; then
9155 ac_cv_func_alloca_works=yes
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_cv_func_alloca_works=no
9162 rm -f conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9165 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9166 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9168 if test $ac_cv_func_alloca_works = yes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_ALLOCA 1
9172 _ACEOF
9174 else
9175 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9176 # that cause trouble. Some versions do not even contain alloca or
9177 # contain a buggy version. If you still want to use their alloca,
9178 # use ar to extract alloca.o from them instead of compiling alloca.c.
9180 ALLOCA=alloca.$ac_objext
9182 cat >>confdefs.h <<\_ACEOF
9183 #define C_ALLOCA 1
9184 _ACEOF
9187 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9188 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9189 if test "${ac_cv_os_cray+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #if defined(CRAY) && ! defined(CRAY2)
9199 webecray
9200 #else
9201 wenotbecray
9202 #endif
9204 _ACEOF
9205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9206 $EGREP "webecray" >/dev/null 2>&1; then
9207 ac_cv_os_cray=yes
9208 else
9209 ac_cv_os_cray=no
9211 rm -f conftest*
9214 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9215 echo "${ECHO_T}$ac_cv_os_cray" >&6
9216 if test $ac_cv_os_cray = yes; then
9217 for ac_func in _getb67 GETB67 getb67; do
9218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9219 echo "$as_me:$LINENO: checking for $ac_func" >&5
9220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9221 if eval "test \"\${$as_ac_var+set}\" = set"; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9232 #define $ac_func innocuous_$ac_func
9234 /* System header to define __stub macros and hopefully few prototypes,
9235 which can conflict with char $ac_func (); below.
9236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9237 <limits.h> exists even on freestanding compilers. */
9239 #ifdef __STDC__
9240 # include <limits.h>
9241 #else
9242 # include <assert.h>
9243 #endif
9245 #undef $ac_func
9247 /* Override any gcc2 internal prototype to avoid an error. */
9248 #ifdef __cplusplus
9249 extern "C"
9251 #endif
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9254 char $ac_func ();
9255 /* The GNU C library defines this for functions which it implements
9256 to always fail with ENOSYS. Some functions are actually named
9257 something starting with __ and the normal name is an alias. */
9258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9259 choke me
9260 #else
9261 char (*f) () = $ac_func;
9262 #endif
9263 #ifdef __cplusplus
9265 #endif
9268 main ()
9270 return f != $ac_func;
9272 return 0;
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 eval "$as_ac_var=yes"
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 eval "$as_ac_var=no"
9304 rm -f conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9309 if test `eval echo '${'$as_ac_var'}'` = yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define CRAY_STACKSEG_END $ac_func
9313 _ACEOF
9315 break
9318 done
9321 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9322 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9323 if test "${ac_cv_c_stack_direction+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 if test "$cross_compiling" = yes; then
9327 ac_cv_c_stack_direction=0
9328 else
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9336 find_stack_direction ()
9338 static char *addr = 0;
9339 auto char dummy;
9340 if (addr == 0)
9342 addr = &dummy;
9343 return find_stack_direction ();
9345 else
9346 return (&dummy > addr) ? 1 : -1;
9350 main ()
9352 exit (find_stack_direction () < 0);
9354 _ACEOF
9355 rm -f conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_c_stack_direction=1
9367 else
9368 echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ( exit $ac_status )
9373 ac_cv_c_stack_direction=-1
9375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9379 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9381 cat >>confdefs.h <<_ACEOF
9382 #define STACK_DIRECTION $ac_cv_c_stack_direction
9383 _ACEOF
9393 ac_header_dirent=no
9394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9395 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9397 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9408 #include <$ac_hdr>
9411 main ()
9413 if ((DIR *) 0)
9414 return 0;
9416 return 0;
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 eval "$as_ac_Header=yes"
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 eval "$as_ac_Header=no"
9448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9453 cat >>confdefs.h <<_ACEOF
9454 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9455 _ACEOF
9457 ac_header_dirent=$ac_hdr; break
9460 done
9461 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9462 if test $ac_header_dirent = dirent.h; then
9463 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9465 if test "${ac_cv_search_opendir+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468 ac_func_search_save_LIBS=$LIBS
9469 ac_cv_search_opendir=no
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h. */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 /* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9483 char opendir ();
9485 main ()
9487 opendir ();
9489 return 0;
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_search_opendir="none required"
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9520 rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 if test "$ac_cv_search_opendir" = no; then
9523 for ac_lib in dir; do
9524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538 char opendir ();
9540 main ()
9542 opendir ();
9544 return 0;
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_search_opendir="-l$ac_lib"
9570 break
9571 else
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9576 rm -f conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 done
9580 LIBS=$ac_func_search_save_LIBS
9582 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9583 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9584 if test "$ac_cv_search_opendir" != no; then
9585 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9589 else
9590 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9591 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9592 if test "${ac_cv_search_opendir+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 ac_func_search_save_LIBS=$LIBS
9596 ac_cv_search_opendir=no
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9610 char opendir ();
9612 main ()
9614 opendir ();
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_search_opendir="none required"
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9647 rm -f conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 if test "$ac_cv_search_opendir" = no; then
9650 for ac_lib in x; do
9651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9659 /* Override any gcc2 internal prototype to avoid an error. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char opendir ();
9667 main ()
9669 opendir ();
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_search_opendir="-l$ac_lib"
9697 break
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9703 rm -f conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 done
9707 LIBS=$ac_func_search_save_LIBS
9709 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9710 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9711 if test "$ac_cv_search_opendir" != no; then
9712 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9718 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9720 if test "${ac_cv_header_stdc+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <stdlib.h>
9730 #include <stdarg.h>
9731 #include <string.h>
9732 #include <float.h>
9735 main ()
9739 return 0;
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag"
9752 || test ! -s conftest.err'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_header_stdc=yes
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_cv_header_stdc=no
9771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 if test $ac_cv_header_stdc = yes; then
9774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 #include <string.h>
9783 _ACEOF
9784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9785 $EGREP "memchr" >/dev/null 2>&1; then
9787 else
9788 ac_cv_header_stdc=no
9790 rm -f conftest*
9794 if test $ac_cv_header_stdc = yes; then
9795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 #include <stdlib.h>
9804 _ACEOF
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806 $EGREP "free" >/dev/null 2>&1; then
9808 else
9809 ac_cv_header_stdc=no
9811 rm -f conftest*
9815 if test $ac_cv_header_stdc = yes; then
9816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9817 if test "$cross_compiling" = yes; then
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 #include <ctype.h>
9827 #if ((' ' & 0x0FF) == 0x020)
9828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9830 #else
9831 # define ISLOWER(c) \
9832 (('a' <= (c) && (c) <= 'i') \
9833 || ('j' <= (c) && (c) <= 'r') \
9834 || ('s' <= (c) && (c) <= 'z'))
9835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9836 #endif
9838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9840 main ()
9842 int i;
9843 for (i = 0; i < 256; i++)
9844 if (XOR (islower (i), ISLOWER (i))
9845 || toupper (i) != TOUPPER (i))
9846 exit(2);
9847 exit (0);
9849 _ACEOF
9850 rm -f conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9862 else
9863 echo "$as_me: program exited with status $ac_status" >&5
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ( exit $ac_status )
9868 ac_cv_header_stdc=no
9870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9875 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9876 if test $ac_cv_header_stdc = yes; then
9878 cat >>confdefs.h <<\_ACEOF
9879 #define STDC_HEADERS 1
9880 _ACEOF
9918 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9929 else
9930 # Is the header compilable?
9931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9940 #include <$ac_header>
9941 _ACEOF
9942 rm -f conftest.$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_header_compiler=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_header_compiler=no
9971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9973 echo "${ECHO_T}$ac_header_compiler" >&6
9975 # Is the header present?
9976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <$ac_header>
9985 _ACEOF
9986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } >/dev/null; then
9994 if test -s conftest.err; then
9995 ac_cpp_err=$ac_c_preproc_warn_flag
9996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9997 else
9998 ac_cpp_err=
10000 else
10001 ac_cpp_err=yes
10003 if test -z "$ac_cpp_err"; then
10004 ac_header_preproc=yes
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_header_preproc=no
10011 rm -f conftest.err conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10013 echo "${ECHO_T}$ac_header_preproc" >&6
10015 # So? What about this header?
10016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10017 yes:no: )
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10022 ac_header_preproc=yes
10024 no:yes:* )
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10038 cat <<\_ASBOX
10039 ## ------------------------------ ##
10040 ## Report this to admin@amule.org ##
10041 ## ------------------------------ ##
10042 _ASBOX
10044 sed "s/^/$as_me: WARNING: /" >&2
10046 esac
10047 echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10061 _ACEOF
10065 done
10067 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10068 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10069 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 #include <sys/types.h>
10079 #include <sys/wait.h>
10080 #ifndef WEXITSTATUS
10081 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10082 #endif
10083 #ifndef WIFEXITED
10084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10085 #endif
10088 main ()
10090 int s;
10091 wait (&s);
10092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10094 return 0;
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_header_sys_wait_h=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_header_sys_wait_h=no
10126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10130 if test $ac_cv_header_sys_wait_h = yes; then
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_SYS_WAIT_H 1
10134 _ACEOF
10139 # Checks for typedefs, structures, and compiler characteristics.
10140 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10141 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10142 if test "${ac_cv_header_stdbool_h+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 #include <stdbool.h>
10153 #ifndef bool
10154 # error bool is not defined
10155 #endif
10156 #ifndef false
10157 # error false is not defined
10158 #endif
10159 #if false
10160 # error false is not 0
10161 #endif
10162 #ifndef true
10163 # error true is not defined
10164 #endif
10165 #if true != 1
10166 # error true is not 1
10167 #endif
10168 #ifndef __bool_true_false_are_defined
10169 # error __bool_true_false_are_defined is not defined
10170 #endif
10172 struct s { _Bool s: 1; _Bool t; } s;
10174 char a[true == 1 ? 1 : -1];
10175 char b[false == 0 ? 1 : -1];
10176 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10177 char d[(bool) -0.5 == true ? 1 : -1];
10178 bool e = &s;
10179 char f[(_Bool) -0.0 == false ? 1 : -1];
10180 char g[true];
10181 char h[sizeof (_Bool)];
10182 char i[sizeof s.t];
10185 main ()
10187 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10189 return 0;
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_header_stdbool_h=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_header_stdbool_h=no
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10224 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10225 echo "$as_me:$LINENO: checking for _Bool" >&5
10226 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10227 if test "${ac_cv_type__Bool+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10238 main ()
10240 if ((_Bool *) 0)
10241 return 0;
10242 if (sizeof (_Bool))
10243 return 0;
10245 return 0;
10247 _ACEOF
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_type__Bool=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_type__Bool=no
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10280 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10281 if test $ac_cv_type__Bool = yes; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define HAVE__BOOL 1
10285 _ACEOF
10290 if test $ac_cv_header_stdbool_h = yes; then
10292 cat >>confdefs.h <<\_ACEOF
10293 #define HAVE_STDBOOL_H 1
10294 _ACEOF
10298 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10299 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10300 if test "${ac_cv_c_const+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10311 main ()
10313 /* FIXME: Include the comments suggested by Paul. */
10314 #ifndef __cplusplus
10315 /* Ultrix mips cc rejects this. */
10316 typedef int charset[2];
10317 const charset x;
10318 /* SunOS 4.1.1 cc rejects this. */
10319 char const *const *ccp;
10320 char **p;
10321 /* NEC SVR4.0.2 mips cc rejects this. */
10322 struct point {int x, y;};
10323 static struct point const zero = {0,0};
10324 /* AIX XL C 1.02.0.0 rejects this.
10325 It does not let you subtract one const X* pointer from another in
10326 an arm of an if-expression whose if-part is not a constant
10327 expression */
10328 const char *g = "string";
10329 ccp = &g + (g ? g-g : 0);
10330 /* HPUX 7.0 cc rejects these. */
10331 ++ccp;
10332 p = (char**) ccp;
10333 ccp = (char const *const *) p;
10334 { /* SCO 3.2v4 cc rejects this. */
10335 char *t;
10336 char const *s = 0 ? (char *) 0 : (char const *) 0;
10338 *t++ = 0;
10340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10341 int x[] = {25, 17};
10342 const int *foo = &x[0];
10343 ++foo;
10345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10346 typedef const int *iptr;
10347 iptr p = 0;
10348 ++p;
10350 { /* AIX XL C 1.02.0.0 rejects this saying
10351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10352 struct s { int j; const int *ap[3]; };
10353 struct s *b; b->j = 5;
10355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10356 const int foo = 10;
10358 #endif
10361 return 0;
10363 _ACEOF
10364 rm -f conftest.$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_c_const=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_cv_c_const=no
10393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10396 echo "${ECHO_T}$ac_cv_c_const" >&6
10397 if test $ac_cv_c_const = no; then
10399 cat >>confdefs.h <<\_ACEOF
10400 #define const
10401 _ACEOF
10405 echo "$as_me:$LINENO: checking for inline" >&5
10406 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10407 if test "${ac_cv_c_inline+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410 ac_cv_c_inline=no
10411 for ac_kw in inline __inline__ __inline; do
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #ifndef __cplusplus
10419 typedef int foo_t;
10420 static $ac_kw foo_t static_foo () {return 0; }
10421 $ac_kw foo_t foo () {return 0; }
10422 #endif
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_c_inline=$ac_kw; break
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 done
10457 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10458 echo "${ECHO_T}$ac_cv_c_inline" >&6
10461 case $ac_cv_c_inline in
10462 inline | yes) ;;
10464 case $ac_cv_c_inline in
10465 no) ac_val=;;
10466 *) ac_val=$ac_cv_c_inline;;
10467 esac
10468 cat >>confdefs.h <<_ACEOF
10469 #ifndef __cplusplus
10470 #define inline $ac_val
10471 #endif
10472 _ACEOF
10474 esac
10476 echo "$as_me:$LINENO: checking for mode_t" >&5
10477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10478 if test "${ac_cv_type_mode_t+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10489 main ()
10491 if ((mode_t *) 0)
10492 return 0;
10493 if (sizeof (mode_t))
10494 return 0;
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_type_mode_t=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_type_mode_t=no
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10531 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10532 if test $ac_cv_type_mode_t = yes; then
10534 else
10536 cat >>confdefs.h <<_ACEOF
10537 #define mode_t int
10538 _ACEOF
10542 echo "$as_me:$LINENO: checking for off_t" >&5
10543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10544 if test "${ac_cv_type_off_t+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10555 main ()
10557 if ((off_t *) 0)
10558 return 0;
10559 if (sizeof (off_t))
10560 return 0;
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_type_off_t=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_type_off_t=no
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10597 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10598 if test $ac_cv_type_off_t = yes; then
10600 else
10602 cat >>confdefs.h <<_ACEOF
10603 #define off_t long
10604 _ACEOF
10608 echo "$as_me:$LINENO: checking for size_t" >&5
10609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10610 if test "${ac_cv_type_size_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 $ac_includes_default
10621 main ()
10623 if ((size_t *) 0)
10624 return 0;
10625 if (sizeof (size_t))
10626 return 0;
10628 return 0;
10630 _ACEOF
10631 rm -f conftest.$ac_objext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633 (eval $ac_compile) 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_type_size_t=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_cv_type_size_t=no
10660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10663 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10664 if test $ac_cv_type_size_t = yes; then
10666 else
10668 cat >>confdefs.h <<_ACEOF
10669 #define size_t unsigned
10670 _ACEOF
10674 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10676 if test "${ac_cv_header_time+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #include <sys/types.h>
10686 #include <sys/time.h>
10687 #include <time.h>
10690 main ()
10692 if ((struct tm *) 0)
10693 return 0;
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_header_time=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_header_time=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10730 echo "${ECHO_T}$ac_cv_header_time" >&6
10731 if test $ac_cv_header_time = yes; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define TIME_WITH_SYS_TIME 1
10735 _ACEOF
10739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10741 if test "${ac_cv_struct_tm+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <sys/types.h>
10751 #include <time.h>
10754 main ()
10756 struct tm *tp; tp->tm_sec;
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_struct_tm=time.h
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_cv_struct_tm=sys/time.h
10790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10793 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10794 if test $ac_cv_struct_tm = sys/time.h; then
10796 cat >>confdefs.h <<\_ACEOF
10797 #define TM_IN_SYS_TIME 1
10798 _ACEOF
10802 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10803 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10804 if test "${ac_cv_type_uid_t+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <sys/types.h>
10815 _ACEOF
10816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10817 $EGREP "uid_t" >/dev/null 2>&1; then
10818 ac_cv_type_uid_t=yes
10819 else
10820 ac_cv_type_uid_t=no
10822 rm -f conftest*
10825 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10826 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10827 if test $ac_cv_type_uid_t = no; then
10829 cat >>confdefs.h <<\_ACEOF
10830 #define uid_t int
10831 _ACEOF
10834 cat >>confdefs.h <<\_ACEOF
10835 #define gid_t int
10836 _ACEOF
10840 echo "$as_me:$LINENO: checking for working volatile" >&5
10841 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10842 if test "${ac_cv_c_volatile+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h. */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10853 main ()
10856 volatile int x;
10857 int * volatile y;
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag"
10872 || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_c_volatile=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_c_volatile=no
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10894 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10895 if test $ac_cv_c_volatile = no; then
10897 cat >>confdefs.h <<\_ACEOF
10898 #define volatile
10899 _ACEOF
10903 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10904 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10905 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10916 main ()
10918 if ((ptrdiff_t *) 0)
10919 return 0;
10920 if (sizeof (ptrdiff_t))
10921 return 0;
10923 return 0;
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_type_ptrdiff_t=yes
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_cv_type_ptrdiff_t=no
10955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10958 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10959 if test $ac_cv_type_ptrdiff_t = yes; then
10961 cat >>confdefs.h <<_ACEOF
10962 #define HAVE_PTRDIFF_T 1
10963 _ACEOF
10969 # Checks for library functions.
10970 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10971 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10972 if test "${ac_cv_func_closedir_void+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975 if test "$cross_compiling" = yes; then
10976 ac_cv_func_closedir_void=yes
10977 else
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #include <$ac_header_dirent>
10986 #ifndef __cplusplus
10987 int closedir ();
10988 #endif
10991 main ()
10993 exit (closedir (opendir (".")) != 0);
10995 return 0;
10997 _ACEOF
10998 rm -f conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_func_closedir_void=no
11010 else
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ( exit $ac_status )
11016 ac_cv_func_closedir_void=yes
11018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11022 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11023 if test $ac_cv_func_closedir_void = yes; then
11025 cat >>confdefs.h <<\_ACEOF
11026 #define CLOSEDIR_VOID 1
11027 _ACEOF
11031 if test $ac_cv_c_compiler_gnu = yes; then
11032 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11033 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11034 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_pattern="Autoconf.*'x'"
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <sgtty.h>
11045 Autoconf TIOCGETP
11046 _ACEOF
11047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11048 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11049 ac_cv_prog_gcc_traditional=yes
11050 else
11051 ac_cv_prog_gcc_traditional=no
11053 rm -f conftest*
11056 if test $ac_cv_prog_gcc_traditional = no; then
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <termio.h>
11064 Autoconf TCGETA
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11068 ac_cv_prog_gcc_traditional=yes
11070 rm -f conftest*
11074 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11075 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11076 if test $ac_cv_prog_gcc_traditional = yes; then
11077 CC="$CC -traditional"
11081 echo "$as_me:$LINENO: checking for pid_t" >&5
11082 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11083 if test "${ac_cv_type_pid_t+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11094 main ()
11096 if ((pid_t *) 0)
11097 return 0;
11098 if (sizeof (pid_t))
11099 return 0;
11101 return 0;
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -z "$ac_c_werror_flag"
11114 || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_type_pid_t=yes
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ac_cv_type_pid_t=no
11133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11135 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11136 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11137 if test $ac_cv_type_pid_t = yes; then
11139 else
11141 cat >>confdefs.h <<_ACEOF
11142 #define pid_t int
11143 _ACEOF
11149 for ac_header in unistd.h vfork.h
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11153 echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11160 else
11161 # Is the header compilable?
11162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_header_compiler=no
11202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204 echo "${ECHO_T}$ac_header_compiler" >&6
11206 # Is the header present?
11207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <$ac_header>
11216 _ACEOF
11217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } >/dev/null; then
11225 if test -s conftest.err; then
11226 ac_cpp_err=$ac_c_preproc_warn_flag
11227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11228 else
11229 ac_cpp_err=
11231 else
11232 ac_cpp_err=yes
11234 if test -z "$ac_cpp_err"; then
11235 ac_header_preproc=yes
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_header_preproc=no
11242 rm -f conftest.err conftest.$ac_ext
11243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11244 echo "${ECHO_T}$ac_header_preproc" >&6
11246 # So? What about this header?
11247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248 yes:no: )
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11253 ac_header_preproc=yes
11255 no:yes:* )
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11269 cat <<\_ASBOX
11270 ## ------------------------------ ##
11271 ## Report this to admin@amule.org ##
11272 ## ------------------------------ ##
11273 _ASBOX
11275 sed "s/^/$as_me: WARNING: /" >&2
11277 esac
11278 echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 eval "$as_ac_Header=\$ac_header_preproc"
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 _ACEOF
11296 done
11300 for ac_func in fork vfork
11302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_var+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11329 #undef $ac_func
11331 /* Override any gcc2 internal prototype to avoid an error. */
11332 #ifdef __cplusplus
11333 extern "C"
11335 #endif
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11338 char $ac_func ();
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11343 choke me
11344 #else
11345 char (*f) () = $ac_func;
11346 #endif
11347 #ifdef __cplusplus
11349 #endif
11352 main ()
11354 return f != $ac_func;
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396 _ACEOF
11399 done
11401 if test "x$ac_cv_func_fork" = xyes; then
11402 echo "$as_me:$LINENO: checking for working fork" >&5
11403 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11404 if test "${ac_cv_func_fork_works+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407 if test "$cross_compiling" = yes; then
11408 ac_cv_func_fork_works=cross
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* By Ruediger Kuhlmann. */
11412 #include <sys/types.h>
11413 #if HAVE_UNISTD_H
11414 # include <unistd.h>
11415 #endif
11416 /* Some systems only have a dummy stub for fork() */
11417 int main ()
11419 if (fork() < 0)
11420 exit (1);
11421 exit (0);
11423 _ACEOF
11424 rm -f conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_func_fork_works=yes
11436 else
11437 echo "$as_me: program exited with status $ac_status" >&5
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ( exit $ac_status )
11442 ac_cv_func_fork_works=no
11444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11447 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11450 else
11451 ac_cv_func_fork_works=$ac_cv_func_fork
11453 if test "x$ac_cv_func_fork_works" = xcross; then
11454 case $host in
11455 *-*-amigaos* | *-*-msdosdjgpp*)
11456 # Override, as these systems have only a dummy fork() stub
11457 ac_cv_func_fork_works=no
11460 ac_cv_func_fork_works=yes
11462 esac
11463 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11464 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11466 ac_cv_func_vfork_works=$ac_cv_func_vfork
11467 if test "x$ac_cv_func_vfork" = xyes; then
11468 echo "$as_me:$LINENO: checking for working vfork" >&5
11469 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11470 if test "${ac_cv_func_vfork_works+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473 if test "$cross_compiling" = yes; then
11474 ac_cv_func_vfork_works=cross
11475 else
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 /* Thanks to Paul Eggert for this test. */
11483 #include <stdio.h>
11484 #include <stdlib.h>
11485 #include <sys/types.h>
11486 #include <sys/stat.h>
11487 #include <sys/wait.h>
11488 #if HAVE_UNISTD_H
11489 # include <unistd.h>
11490 #endif
11491 #if HAVE_VFORK_H
11492 # include <vfork.h>
11493 #endif
11494 /* On some sparc systems, changes by the child to local and incoming
11495 argument registers are propagated back to the parent. The compiler
11496 is told about this with #include <vfork.h>, but some compilers
11497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11498 static variable whose address is put into a register that is
11499 clobbered by the vfork. */
11500 static void
11501 #ifdef __cplusplus
11502 sparc_address_test (int arg)
11503 # else
11504 sparc_address_test (arg) int arg;
11505 #endif
11507 static pid_t child;
11508 if (!child) {
11509 child = vfork ();
11510 if (child < 0) {
11511 perror ("vfork");
11512 _exit(2);
11514 if (!child) {
11515 arg = getpid();
11516 write(-1, "", 0);
11517 _exit (arg);
11523 main ()
11525 pid_t parent = getpid ();
11526 pid_t child;
11528 sparc_address_test (0);
11530 child = vfork ();
11532 if (child == 0) {
11533 /* Here is another test for sparc vfork register problems. This
11534 test uses lots of local variables, at least as many local
11535 variables as main has allocated so far including compiler
11536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11538 reuse the register of parent for one of the local variables,
11539 since it will think that parent can't possibly be used any more
11540 in this routine. Assigning to the local variable will thus
11541 munge parent in the parent process. */
11542 pid_t
11543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11545 /* Convince the compiler that p..p7 are live; otherwise, it might
11546 use the same hardware register for all 8 local variables. */
11547 if (p != p1 || p != p2 || p != p3 || p != p4
11548 || p != p5 || p != p6 || p != p7)
11549 _exit(1);
11551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11552 from child file descriptors. If the child closes a descriptor
11553 before it execs or exits, this munges the parent's descriptor
11554 as well. Test for this by closing stdout in the child. */
11555 _exit(close(fileno(stdout)) != 0);
11556 } else {
11557 int status;
11558 struct stat st;
11560 while (wait(&status) != child)
11562 exit(
11563 /* Was there some problem with vforking? */
11564 child < 0
11566 /* Did the child fail? (This shouldn't happen.) */
11567 || status
11569 /* Did the vfork/compiler bug occur? */
11570 || parent != getpid()
11572 /* Did the file descriptor bug occur? */
11573 || fstat(fileno(stdout), &st) != 0
11577 _ACEOF
11578 rm -f conftest$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_cv_func_vfork_works=yes
11590 else
11591 echo "$as_me: program exited with status $ac_status" >&5
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ( exit $ac_status )
11596 ac_cv_func_vfork_works=no
11598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11602 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11605 if test "x$ac_cv_func_fork_works" = xcross; then
11606 ac_cv_func_vfork_works=$ac_cv_func_vfork
11607 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11608 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11611 if test "x$ac_cv_func_vfork_works" = xyes; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_WORKING_VFORK 1
11615 _ACEOF
11617 else
11619 cat >>confdefs.h <<\_ACEOF
11620 #define vfork fork
11621 _ACEOF
11624 if test "x$ac_cv_func_fork_works" = xyes; then
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_WORKING_FORK 1
11628 _ACEOF
11632 if test x$SYS != xwin32; then
11634 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11635 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11636 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11637 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lsun $LIBS"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 /* Override any gcc2 internal prototype to avoid an error. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11655 char getmntent ();
11657 main ()
11659 getmntent ();
11661 return 0;
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_sun_getmntent=yes
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_cv_lib_sun_getmntent=no
11693 rm -f conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11698 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11699 if test $ac_cv_lib_sun_getmntent = yes; then
11700 LIBS="-lsun $LIBS"
11701 else
11702 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11703 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11704 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707 ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-lseq $LIBS"
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11716 /* Override any gcc2 internal prototype to avoid an error. */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722 char getmntent ();
11724 main ()
11726 getmntent ();
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_lib_seq_getmntent=yes
11754 else
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_cv_lib_seq_getmntent=no
11760 rm -f conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11764 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11765 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11766 if test $ac_cv_lib_seq_getmntent = yes; then
11767 LIBS="-lseq $LIBS"
11768 else
11769 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11770 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11771 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774 ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-lgen $LIBS"
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 /* Override any gcc2 internal prototype to avoid an error. */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789 char getmntent ();
11791 main ()
11793 getmntent ();
11795 return 0;
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_lib_gen_getmntent=yes
11821 else
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_cv_lib_gen_getmntent=no
11827 rm -f conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11832 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11833 if test $ac_cv_lib_gen_getmntent = yes; then
11834 LIBS="-lgen $LIBS"
11842 for ac_func in getmntent
11844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845 echo "$as_me:$LINENO: checking for $ac_func" >&5
11846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11847 if eval "test \"\${$as_ac_var+set}\" = set"; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858 #define $ac_func innocuous_$ac_func
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11865 #ifdef __STDC__
11866 # include <limits.h>
11867 #else
11868 # include <assert.h>
11869 #endif
11871 #undef $ac_func
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 #ifdef __cplusplus
11875 extern "C"
11877 #endif
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11880 char $ac_func ();
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 choke me
11886 #else
11887 char (*f) () = $ac_func;
11888 #endif
11889 #ifdef __cplusplus
11891 #endif
11894 main ()
11896 return f != $ac_func;
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 eval "$as_ac_var=yes"
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 eval "$as_ac_var=no"
11930 rm -f conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 _ACEOF
11941 done
11944 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11945 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11946 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 rm -f conftest.sym conftest.file
11950 echo >conftest.file
11951 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11952 if test "$cross_compiling" = yes; then
11953 ac_cv_func_lstat_dereferences_slashed_symlink=no
11954 else
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11963 main ()
11965 struct stat sbuf;
11966 /* Linux will dereference the symlink and fail.
11967 That is better in the sense that it means we will not
11968 have to compile and use the lstat wrapper. */
11969 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11971 return 0;
11973 _ACEOF
11974 rm -f conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11986 else
11987 echo "$as_me: program exited with status $ac_status" >&5
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ( exit $ac_status )
11992 ac_cv_func_lstat_dereferences_slashed_symlink=no
11994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11996 else
11997 # If the `ln -s' command failed, then we probably don't even
11998 # have an lstat function.
11999 ac_cv_func_lstat_dereferences_slashed_symlink=no
12001 rm -f conftest.sym conftest.file
12004 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12005 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12007 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12009 cat >>confdefs.h <<_ACEOF
12010 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12011 _ACEOF
12014 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12015 case $LIBOBJS in
12016 "lstat.$ac_objext" | \
12017 *" lstat.$ac_objext" | \
12018 "lstat.$ac_objext "* | \
12019 *" lstat.$ac_objext "* ) ;;
12020 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12021 esac
12025 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12026 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12027 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 if test "$cross_compiling" = yes; then
12031 ac_cv_func_lstat_empty_string_bug=yes
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12041 main ()
12043 struct stat sbuf;
12044 exit (lstat ("", &sbuf) ? 1 : 0);
12046 return 0;
12048 _ACEOF
12049 rm -f conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_func_lstat_empty_string_bug=yes
12061 else
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_func_lstat_empty_string_bug=no
12069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12073 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12074 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12075 case $LIBOBJS in
12076 "lstat.$ac_objext" | \
12077 *" lstat.$ac_objext" | \
12078 "lstat.$ac_objext "* | \
12079 *" lstat.$ac_objext "* ) ;;
12080 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12081 esac
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12086 _ACEOF
12090 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12091 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12092 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 rm -f conftest.sym conftest.file
12096 echo >conftest.file
12097 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12098 if test "$cross_compiling" = yes; then
12099 ac_cv_func_lstat_dereferences_slashed_symlink=no
12100 else
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12109 main ()
12111 struct stat sbuf;
12112 /* Linux will dereference the symlink and fail.
12113 That is better in the sense that it means we will not
12114 have to compile and use the lstat wrapper. */
12115 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12117 return 0;
12119 _ACEOF
12120 rm -f conftest$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12132 else
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ( exit $ac_status )
12138 ac_cv_func_lstat_dereferences_slashed_symlink=no
12140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12142 else
12143 # If the `ln -s' command failed, then we probably don't even
12144 # have an lstat function.
12145 ac_cv_func_lstat_dereferences_slashed_symlink=no
12147 rm -f conftest.sym conftest.file
12150 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12151 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12153 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12155 cat >>confdefs.h <<_ACEOF
12156 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12157 _ACEOF
12160 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12161 case $LIBOBJS in
12162 "lstat.$ac_objext" | \
12163 *" lstat.$ac_objext" | \
12164 "lstat.$ac_objext "* | \
12165 *" lstat.$ac_objext "* ) ;;
12166 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12167 esac
12174 echo "$as_me:$LINENO: checking for working memcmp" >&5
12175 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12176 if test "${ac_cv_func_memcmp_working+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179 if test "$cross_compiling" = yes; then
12180 ac_cv_func_memcmp_working=no
12181 else
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12190 main ()
12193 /* Some versions of memcmp are not 8-bit clean. */
12194 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12195 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12196 exit (1);
12198 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12199 or more and with at least one buffer not starting on a 4-byte boundary.
12200 William Lewis provided this test program. */
12202 char foo[21];
12203 char bar[21];
12204 int i;
12205 for (i = 0; i < 4; i++)
12207 char *a = foo + i;
12208 char *b = bar + i;
12209 strcpy (a, "--------01111111");
12210 strcpy (b, "--------10000000");
12211 if (memcmp (a, b, 16) >= 0)
12212 exit (1);
12214 exit (0);
12218 return 0;
12220 _ACEOF
12221 rm -f conftest$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_memcmp_working=yes
12233 else
12234 echo "$as_me: program exited with status $ac_status" >&5
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ( exit $ac_status )
12239 ac_cv_func_memcmp_working=no
12241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12244 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12245 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12246 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12247 "memcmp.$ac_objext" | \
12248 *" memcmp.$ac_objext" | \
12249 "memcmp.$ac_objext "* | \
12250 *" memcmp.$ac_objext "* ) ;;
12251 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12252 esac
12257 for ac_header in sys/select.h sys/socket.h
12259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12268 else
12269 # Is the header compilable?
12270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <$ac_header>
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_header_compiler=yes
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_header_compiler=no
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12312 echo "${ECHO_T}$ac_header_compiler" >&6
12314 # Is the header present?
12315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <$ac_header>
12324 _ACEOF
12325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } >/dev/null; then
12333 if test -s conftest.err; then
12334 ac_cpp_err=$ac_c_preproc_warn_flag
12335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12336 else
12337 ac_cpp_err=
12339 else
12340 ac_cpp_err=yes
12342 if test -z "$ac_cpp_err"; then
12343 ac_header_preproc=yes
12344 else
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_header_preproc=no
12350 rm -f conftest.err conftest.$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6
12354 # So? What about this header?
12355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12356 yes:no: )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12361 ac_header_preproc=yes
12363 no:yes:* )
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12377 cat <<\_ASBOX
12378 ## ------------------------------ ##
12379 ## Report this to admin@amule.org ##
12380 ## ------------------------------ ##
12381 _ASBOX
12383 sed "s/^/$as_me: WARNING: /" >&2
12385 esac
12386 echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 eval "$as_ac_Header=\$ac_header_preproc"
12393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12398 cat >>confdefs.h <<_ACEOF
12399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 _ACEOF
12404 done
12406 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12407 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12408 if test "${ac_cv_func_select_args+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12412 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12413 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 $ac_includes_default
12421 #if HAVE_SYS_SELECT_H
12422 # include <sys/select.h>
12423 #endif
12424 #if HAVE_SYS_SOCKET_H
12425 # include <sys/socket.h>
12426 #endif
12429 main ()
12431 extern int select ($ac_arg1,
12432 $ac_arg234, $ac_arg234, $ac_arg234,
12433 $ac_arg5);
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467 done
12468 done
12469 done
12470 # Provide a safe default value.
12471 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12474 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12475 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12476 ac_save_IFS=$IFS; IFS=','
12477 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12478 IFS=$ac_save_IFS
12479 shift
12481 cat >>confdefs.h <<_ACEOF
12482 #define SELECT_TYPE_ARG1 $1
12483 _ACEOF
12486 cat >>confdefs.h <<_ACEOF
12487 #define SELECT_TYPE_ARG234 ($2)
12488 _ACEOF
12491 cat >>confdefs.h <<_ACEOF
12492 #define SELECT_TYPE_ARG5 ($3)
12493 _ACEOF
12495 rm -f conftest*
12497 echo "$as_me:$LINENO: checking for function prototypes" >&5
12498 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12499 if test "$ac_cv_prog_cc_stdc" != no; then
12500 echo "$as_me:$LINENO: result: yes" >&5
12501 echo "${ECHO_T}yes" >&6
12503 cat >>confdefs.h <<\_ACEOF
12504 #define PROTOTYPES 1
12505 _ACEOF
12508 cat >>confdefs.h <<\_ACEOF
12509 #define __PROTOTYPES 1
12510 _ACEOF
12512 else
12513 echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6
12517 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12518 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12519 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 ac_cv_func_setvbuf_reversed=no
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <stdio.h>
12530 # if PROTOTYPES
12531 int (setvbuf) (FILE *, int, char *, size_t);
12532 # endif
12534 main ()
12536 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12538 return 0;
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 #include <stdio.h>
12570 # if PROTOTYPES
12571 int (setvbuf) (FILE *, int, char *, size_t);
12572 # endif
12574 main ()
12576 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12578 return 0;
12580 _ACEOF
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest$ac_exeext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 # It compiles and links either way, so it must not be declared
12604 # with a prototype and most likely this is a K&R C compiler.
12605 # Try running it.
12606 if test "$cross_compiling" = yes; then
12607 : # Assume setvbuf is not reversed when cross-compiling.
12608 else
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <stdio.h>
12617 main ()
12619 /* This call has the arguments reversed.
12620 A reversed system may check and see that the address of buf
12621 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12622 char buf;
12623 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12624 exit (1);
12625 putchar ('\r');
12626 exit (0); /* Non-reversed systems SEGV here. */
12628 return 0;
12630 _ACEOF
12631 rm -f conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_func_setvbuf_reversed=yes
12643 else
12644 echo "$as_me: program exited with status $ac_status" >&5
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ( exit $ac_status )
12649 rm -f core *.core
12651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12653 ac_cv_func_setvbuf_reversed=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12670 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12671 if test $ac_cv_func_setvbuf_reversed = yes; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define SETVBUF_REVERSED 1
12675 _ACEOF
12679 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12680 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12681 if test "${ac_cv_type_signal+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 #include <sys/types.h>
12691 #include <signal.h>
12692 #ifdef signal
12693 # undef signal
12694 #endif
12695 #ifdef __cplusplus
12696 extern "C" void (*signal (int, void (*)(int)))(int);
12697 #else
12698 void (*signal ()) ();
12699 #endif
12702 main ()
12704 int i;
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_cv_type_signal=void
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_cv_type_signal=int
12738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12741 echo "${ECHO_T}$ac_cv_type_signal" >&6
12743 cat >>confdefs.h <<_ACEOF
12744 #define RETSIGTYPE $ac_cv_type_signal
12745 _ACEOF
12748 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12749 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12750 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 if test "$cross_compiling" = yes; then
12754 ac_cv_func_stat_empty_string_bug=yes
12755 else
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 $ac_includes_default
12764 main ()
12766 struct stat sbuf;
12767 exit (stat ("", &sbuf) ? 1 : 0);
12769 return 0;
12771 _ACEOF
12772 rm -f conftest$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_cv_func_stat_empty_string_bug=yes
12784 else
12785 echo "$as_me: program exited with status $ac_status" >&5
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ( exit $ac_status )
12790 ac_cv_func_stat_empty_string_bug=no
12792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12795 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12796 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12797 if test $ac_cv_func_stat_empty_string_bug = yes; then
12798 case $LIBOBJS in
12799 "stat.$ac_objext" | \
12800 *" stat.$ac_objext" | \
12801 "stat.$ac_objext "* | \
12802 *" stat.$ac_objext "* ) ;;
12803 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12804 esac
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_STAT_EMPTY_STRING_BUG 1
12809 _ACEOF
12814 for ac_func in strftime
12816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_var+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12830 #define $ac_func innocuous_$ac_func
12832 /* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func (); below.
12834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12835 <limits.h> exists even on freestanding compilers. */
12837 #ifdef __STDC__
12838 # include <limits.h>
12839 #else
12840 # include <assert.h>
12841 #endif
12843 #undef $ac_func
12845 /* Override any gcc2 internal prototype to avoid an error. */
12846 #ifdef __cplusplus
12847 extern "C"
12849 #endif
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12852 char $ac_func ();
12853 /* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12857 choke me
12858 #else
12859 char (*f) () = $ac_func;
12860 #endif
12861 #ifdef __cplusplus
12863 #endif
12866 main ()
12868 return f != $ac_func;
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 eval "$as_ac_var=yes"
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 eval "$as_ac_var=no"
12902 rm -f conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12907 if test `eval echo '${'$as_ac_var'}'` = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12910 _ACEOF
12912 else
12913 # strftime is in -lintl on SCO UNIX.
12914 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12915 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12916 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-lintl $LIBS"
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12928 /* Override any gcc2 internal prototype to avoid an error. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 /* We use char because int might match the return type of a gcc2
12933 builtin and then its argument prototype would still apply. */
12934 char strftime ();
12936 main ()
12938 strftime ();
12940 return 0;
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12945 (eval $ac_link) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag"
12953 || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest$ac_exeext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_lib_intl_strftime=yes
12966 else
12967 echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12970 ac_cv_lib_intl_strftime=no
12972 rm -f conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974 LIBS=$ac_check_lib_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12977 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12978 if test $ac_cv_lib_intl_strftime = yes; then
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_STRFTIME 1
12981 _ACEOF
12983 LIBS="-lintl $LIBS"
12987 done
12989 echo "$as_me:$LINENO: checking for working strtod" >&5
12990 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12991 if test "${ac_cv_func_strtod+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994 if test "$cross_compiling" = yes; then
12995 ac_cv_func_strtod=no
12996 else
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 double strtod ();
13006 main()
13009 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13010 char *string = " +69";
13011 char *term;
13012 double value;
13013 value = strtod (string, &term);
13014 if (value != 69 || term != (string + 4))
13015 exit (1);
13019 /* Under Solaris 2.4, strtod returns the wrong value for the
13020 terminating character under some conditions. */
13021 char *string = "NaN";
13022 char *term;
13023 strtod (string, &term);
13024 if (term != string && *(term - 1) == 0)
13025 exit (1);
13027 exit (0);
13030 _ACEOF
13031 rm -f conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_func_strtod=yes
13043 else
13044 echo "$as_me: program exited with status $ac_status" >&5
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ( exit $ac_status )
13049 ac_cv_func_strtod=no
13051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13054 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13055 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13056 if test $ac_cv_func_strtod = no; then
13057 case $LIBOBJS in
13058 "strtod.$ac_objext" | \
13059 *" strtod.$ac_objext" | \
13060 "strtod.$ac_objext "* | \
13061 *" strtod.$ac_objext "* ) ;;
13062 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13063 esac
13065 echo "$as_me:$LINENO: checking for pow" >&5
13066 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13067 if test "${ac_cv_func_pow+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13078 #define pow innocuous_pow
13080 /* System header to define __stub macros and hopefully few prototypes,
13081 which can conflict with char pow (); below.
13082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13083 <limits.h> exists even on freestanding compilers. */
13085 #ifdef __STDC__
13086 # include <limits.h>
13087 #else
13088 # include <assert.h>
13089 #endif
13091 #undef pow
13093 /* Override any gcc2 internal prototype to avoid an error. */
13094 #ifdef __cplusplus
13095 extern "C"
13097 #endif
13098 /* We use char because int might match the return type of a gcc2
13099 builtin and then its argument prototype would still apply. */
13100 char pow ();
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_pow) || defined (__stub___pow)
13105 choke me
13106 #else
13107 char (*f) () = pow;
13108 #endif
13109 #ifdef __cplusplus
13111 #endif
13114 main ()
13116 return f != pow;
13118 return 0;
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_func_pow=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_func_pow=no
13150 rm -f conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13154 echo "${ECHO_T}$ac_cv_func_pow" >&6
13156 if test $ac_cv_func_pow = no; then
13157 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13158 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13159 if test "${ac_cv_lib_m_pow+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-lm $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13171 /* Override any gcc2 internal prototype to avoid an error. */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char pow ();
13179 main ()
13181 pow ();
13183 return 0;
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188 (eval $ac_link) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_m_pow=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_m_pow=no
13215 rm -f conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13220 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13221 if test $ac_cv_lib_m_pow = yes; then
13222 POW_LIB=-lm
13223 else
13224 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13225 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13233 for ac_func in vprintf
13235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236 echo "$as_me:$LINENO: checking for $ac_func" >&5
13237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_var+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h. */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13249 #define $ac_func innocuous_$ac_func
13251 /* System header to define __stub macros and hopefully few prototypes,
13252 which can conflict with char $ac_func (); below.
13253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254 <limits.h> exists even on freestanding compilers. */
13256 #ifdef __STDC__
13257 # include <limits.h>
13258 #else
13259 # include <assert.h>
13260 #endif
13262 #undef $ac_func
13264 /* Override any gcc2 internal prototype to avoid an error. */
13265 #ifdef __cplusplus
13266 extern "C"
13268 #endif
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func ();
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 char (*f) () = $ac_func;
13279 #endif
13280 #ifdef __cplusplus
13282 #endif
13285 main ()
13287 return f != $ac_func;
13289 return 0;
13291 _ACEOF
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
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
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
13305 ac_status=$?
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
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 eval "$as_ac_var=yes"
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 eval "$as_ac_var=no"
13321 rm -f conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13326 if test `eval echo '${'$as_ac_var'}'` = yes; then
13327 cat >>confdefs.h <<_ACEOF
13328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13329 _ACEOF
13331 echo "$as_me:$LINENO: checking for _doprnt" >&5
13332 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13333 if test "${ac_cv_func__doprnt+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13344 #define _doprnt innocuous__doprnt
13346 /* System header to define __stub macros and hopefully few prototypes,
13347 which can conflict with char _doprnt (); below.
13348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13349 <limits.h> exists even on freestanding compilers. */
13351 #ifdef __STDC__
13352 # include <limits.h>
13353 #else
13354 # include <assert.h>
13355 #endif
13357 #undef _doprnt
13359 /* Override any gcc2 internal prototype to avoid an error. */
13360 #ifdef __cplusplus
13361 extern "C"
13363 #endif
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13366 char _doprnt ();
13367 /* The GNU C library defines this for functions which it implements
13368 to always fail with ENOSYS. Some functions are actually named
13369 something starting with __ and the normal name is an alias. */
13370 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13371 choke me
13372 #else
13373 char (*f) () = _doprnt;
13374 #endif
13375 #ifdef __cplusplus
13377 #endif
13380 main ()
13382 return f != _doprnt;
13384 return 0;
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_func__doprnt=yes
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13414 ac_cv_func__doprnt=no
13416 rm -f conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13419 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13420 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13421 if test $ac_cv_func__doprnt = yes; then
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_DOPRNT 1
13425 _ACEOF
13430 done
13433 if test $cross_compiling = yes -a $gnumalloc = yes; then
13435 { echo "$as_me:$LINENO: WARNING:
13436 configure cannot check whether malloc() and realloc() are GNU libc
13437 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13438 run configure with the --without-gnu-malloc switch." >&5
13439 echo "$as_me: WARNING:
13440 configure cannot check whether malloc() and realloc() are GNU libc
13441 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13442 run configure with the --without-gnu-malloc switch." >&2;}
13443 _mule_warning_8=yes
13444 _mule_has_warnings=yes
13446 ac_cv_func_malloc_0_nonnull=yes
13447 ac_cv_func_realloc_0_nonnull=yes
13452 for ac_header in stdlib.h
13454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463 else
13464 # Is the header compilable?
13465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 $ac_includes_default
13474 #include <$ac_header>
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <$ac_header>
13519 _ACEOF
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null; then
13528 if test -s conftest.err; then
13529 ac_cpp_err=$ac_c_preproc_warn_flag
13530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13531 else
13532 ac_cpp_err=
13534 else
13535 ac_cpp_err=yes
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13572 cat <<\_ASBOX
13573 ## ------------------------------ ##
13574 ## Report this to admin@amule.org ##
13575 ## ------------------------------ ##
13576 _ASBOX
13578 sed "s/^/$as_me: WARNING: /" >&2
13580 esac
13581 echo "$as_me:$LINENO: checking for $ac_header" >&5
13582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 eval "$as_ac_Header=\$ac_header_preproc"
13588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13595 _ACEOF
13599 done
13601 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13602 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13603 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 if test "$cross_compiling" = yes; then
13607 ac_cv_func_malloc_0_nonnull=no
13608 else
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 #if STDC_HEADERS || HAVE_STDLIB_H
13616 # include <stdlib.h>
13617 #else
13618 char *malloc ();
13619 #endif
13622 main ()
13624 exit (malloc (0) ? 0 : 1);
13626 return 0;
13628 _ACEOF
13629 rm -f conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_func_malloc_0_nonnull=yes
13641 else
13642 echo "$as_me: program exited with status $ac_status" >&5
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ( exit $ac_status )
13647 ac_cv_func_malloc_0_nonnull=no
13649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13652 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13653 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13654 if test $ac_cv_func_malloc_0_nonnull = yes; then
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_MALLOC 1
13658 _ACEOF
13660 else
13661 cat >>confdefs.h <<\_ACEOF
13662 #define HAVE_MALLOC 0
13663 _ACEOF
13665 case $LIBOBJS in
13666 "malloc.$ac_objext" | \
13667 *" malloc.$ac_objext" | \
13668 "malloc.$ac_objext "* | \
13669 *" malloc.$ac_objext "* ) ;;
13670 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13671 esac
13674 cat >>confdefs.h <<\_ACEOF
13675 #define malloc rpl_malloc
13676 _ACEOF
13683 for ac_header in stdlib.h
13685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13687 echo "$as_me:$LINENO: checking for $ac_header" >&5
13688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13694 else
13695 # Is the header compilable?
13696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13698 cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h. */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 #include <$ac_header>
13706 _ACEOF
13707 rm -f conftest.$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_header_compiler=yes
13730 else
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_compiler=no
13736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6
13740 # Is the header present?
13741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #include <$ac_header>
13750 _ACEOF
13751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null; then
13759 if test -s conftest.err; then
13760 ac_cpp_err=$ac_c_preproc_warn_flag
13761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13762 else
13763 ac_cpp_err=
13765 else
13766 ac_cpp_err=yes
13768 if test -z "$ac_cpp_err"; then
13769 ac_header_preproc=yes
13770 else
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 ac_header_preproc=no
13776 rm -f conftest.err conftest.$ac_ext
13777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13778 echo "${ECHO_T}$ac_header_preproc" >&6
13780 # So? What about this header?
13781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13782 yes:no: )
13783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13787 ac_header_preproc=yes
13789 no:yes:* )
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13803 cat <<\_ASBOX
13804 ## ------------------------------ ##
13805 ## Report this to admin@amule.org ##
13806 ## ------------------------------ ##
13807 _ASBOX
13809 sed "s/^/$as_me: WARNING: /" >&2
13811 esac
13812 echo "$as_me:$LINENO: checking for $ac_header" >&5
13813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817 eval "$as_ac_Header=\$ac_header_preproc"
13819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13824 cat >>confdefs.h <<_ACEOF
13825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13826 _ACEOF
13830 done
13832 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13833 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13834 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 if test "$cross_compiling" = yes; then
13838 ac_cv_func_realloc_0_nonnull=no
13839 else
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #if STDC_HEADERS || HAVE_STDLIB_H
13847 # include <stdlib.h>
13848 #else
13849 char *realloc ();
13850 #endif
13853 main ()
13855 exit (realloc (0, 0) ? 0 : 1);
13857 return 0;
13859 _ACEOF
13860 rm -f conftest$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_func_realloc_0_nonnull=yes
13872 else
13873 echo "$as_me: program exited with status $ac_status" >&5
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 ( exit $ac_status )
13878 ac_cv_func_realloc_0_nonnull=no
13880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13884 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13885 if test $ac_cv_func_realloc_0_nonnull = yes; then
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_REALLOC 1
13889 _ACEOF
13891 else
13892 cat >>confdefs.h <<\_ACEOF
13893 #define HAVE_REALLOC 0
13894 _ACEOF
13896 case $LIBOBJS in
13897 "realloc.$ac_objext" | \
13898 *" realloc.$ac_objext" | \
13899 "realloc.$ac_objext "* | \
13900 *" realloc.$ac_objext "* ) ;;
13901 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13902 esac
13905 cat >>confdefs.h <<\_ACEOF
13906 #define realloc rpl_realloc
13907 _ACEOF
13946 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13949 echo "$as_me:$LINENO: checking for $ac_func" >&5
13950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13951 if eval "test \"\${$as_ac_var+set}\" = set"; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13962 #define $ac_func innocuous_$ac_func
13964 /* System header to define __stub macros and hopefully few prototypes,
13965 which can conflict with char $ac_func (); below.
13966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13967 <limits.h> exists even on freestanding compilers. */
13969 #ifdef __STDC__
13970 # include <limits.h>
13971 #else
13972 # include <assert.h>
13973 #endif
13975 #undef $ac_func
13977 /* Override any gcc2 internal prototype to avoid an error. */
13978 #ifdef __cplusplus
13979 extern "C"
13981 #endif
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13984 char $ac_func ();
13985 /* The GNU C library defines this for functions which it implements
13986 to always fail with ENOSYS. Some functions are actually named
13987 something starting with __ and the normal name is an alias. */
13988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13989 choke me
13990 #else
13991 char (*f) () = $ac_func;
13992 #endif
13993 #ifdef __cplusplus
13995 #endif
13998 main ()
14000 return f != $ac_func;
14002 return 0;
14004 _ACEOF
14005 rm -f conftest.$ac_objext conftest$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007 (eval $ac_link) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 eval "$as_ac_var=yes"
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 eval "$as_ac_var=no"
14034 rm -f conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14039 if test `eval echo '${'$as_ac_var'}'` = yes; then
14040 cat >>confdefs.h <<_ACEOF
14041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14042 _ACEOF
14045 done
14047 #-------------------------------------------------------------------------------
14048 # End of autoscan stuff
14049 #-------------------------------------------------------------------------------
14055 for ac_func in mkdir getrlimit setrlimit getopt_long
14057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14058 echo "$as_me:$LINENO: checking for $ac_func" >&5
14059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14060 if eval "test \"\${$as_ac_var+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14071 #define $ac_func innocuous_$ac_func
14073 /* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char $ac_func (); below.
14075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14076 <limits.h> exists even on freestanding compilers. */
14078 #ifdef __STDC__
14079 # include <limits.h>
14080 #else
14081 # include <assert.h>
14082 #endif
14084 #undef $ac_func
14086 /* Override any gcc2 internal prototype to avoid an error. */
14087 #ifdef __cplusplus
14088 extern "C"
14090 #endif
14091 /* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14093 char $ac_func ();
14094 /* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14098 choke me
14099 #else
14100 char (*f) () = $ac_func;
14101 #endif
14102 #ifdef __cplusplus
14104 #endif
14107 main ()
14109 return f != $ac_func;
14111 return 0;
14113 _ACEOF
14114 rm -f conftest.$ac_objext conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>conftest.er1
14117 ac_status=$?
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 eval "$as_ac_var=yes"
14137 else
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 eval "$as_ac_var=no"
14143 rm -f conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14148 if test `eval echo '${'$as_ac_var'}'` = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14151 _ACEOF
14154 done
14157 # Check whether --enable-mmap or --disable-mmap was given.
14158 if test "${enable_mmap+set}" = set; then
14159 enableval="$enable_mmap"
14163 if test ${enable_mmap:-no} = yes; then
14166 for ac_header in sys/mman.h
14168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170 echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14177 else
14178 # Is the header compilable?
14179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h. */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14188 #include <$ac_header>
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_header_compiler=yes
14213 else
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_header_compiler=no
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14221 echo "${ECHO_T}$ac_header_compiler" >&6
14223 # Is the header present?
14224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <$ac_header>
14233 _ACEOF
14234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } >/dev/null; then
14242 if test -s conftest.err; then
14243 ac_cpp_err=$ac_c_preproc_warn_flag
14244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14245 else
14246 ac_cpp_err=
14248 else
14249 ac_cpp_err=yes
14251 if test -z "$ac_cpp_err"; then
14252 ac_header_preproc=yes
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_preproc=no
14259 rm -f conftest.err conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14261 echo "${ECHO_T}$ac_header_preproc" >&6
14263 # So? What about this header?
14264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14265 yes:no: )
14266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14270 ac_header_preproc=yes
14272 no:yes:* )
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14286 cat <<\_ASBOX
14287 ## ------------------------------ ##
14288 ## Report this to admin@amule.org ##
14289 ## ------------------------------ ##
14290 _ASBOX
14292 sed "s/^/$as_me: WARNING: /" >&2
14294 esac
14295 echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300 eval "$as_ac_Header=\$ac_header_preproc"
14302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307 cat >>confdefs.h <<_ACEOF
14308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14309 _ACEOF
14313 done
14317 for ac_header in stdlib.h unistd.h
14319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321 echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14328 else
14329 # Is the header compilable?
14330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14332 cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 #include <$ac_header>
14340 _ACEOF
14341 rm -f conftest.$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -z "$ac_c_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_header_compiler=yes
14364 else
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_header_compiler=no
14370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14372 echo "${ECHO_T}$ac_header_compiler" >&6
14374 # Is the header present?
14375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <$ac_header>
14384 _ACEOF
14385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } >/dev/null; then
14393 if test -s conftest.err; then
14394 ac_cpp_err=$ac_c_preproc_warn_flag
14395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14396 else
14397 ac_cpp_err=
14399 else
14400 ac_cpp_err=yes
14402 if test -z "$ac_cpp_err"; then
14403 ac_header_preproc=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_header_preproc=no
14410 rm -f conftest.err conftest.$ac_ext
14411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14412 echo "${ECHO_T}$ac_header_preproc" >&6
14414 # So? What about this header?
14415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14416 yes:no: )
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14421 ac_header_preproc=yes
14423 no:yes:* )
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14437 cat <<\_ASBOX
14438 ## ------------------------------ ##
14439 ## Report this to admin@amule.org ##
14440 ## ------------------------------ ##
14441 _ASBOX
14443 sed "s/^/$as_me: WARNING: /" >&2
14445 esac
14446 echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451 eval "$as_ac_Header=\$ac_header_preproc"
14453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14458 cat >>confdefs.h <<_ACEOF
14459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14460 _ACEOF
14464 done
14467 for ac_func in getpagesize
14469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 echo "$as_me:$LINENO: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_var+set}\" = set"; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14490 #ifdef __STDC__
14491 # include <limits.h>
14492 #else
14493 # include <assert.h>
14494 #endif
14496 #undef $ac_func
14498 /* Override any gcc2 internal prototype to avoid an error. */
14499 #ifdef __cplusplus
14500 extern "C"
14502 #endif
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14505 char $ac_func ();
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14510 choke me
14511 #else
14512 char (*f) () = $ac_func;
14513 #endif
14514 #ifdef __cplusplus
14516 #endif
14519 main ()
14521 return f != $ac_func;
14523 return 0;
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 eval "$as_ac_var=yes"
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 eval "$as_ac_var=no"
14555 rm -f conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14560 if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 _ACEOF
14566 done
14568 echo "$as_me:$LINENO: checking for working mmap" >&5
14569 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14570 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 if test "$cross_compiling" = yes; then
14574 ac_cv_func_mmap_fixed_mapped=no
14575 else
14576 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 $ac_includes_default
14583 /* malloc might have been renamed as rpl_malloc. */
14584 #undef malloc
14586 /* Thanks to Mike Haertel and Jim Avera for this test.
14587 Here is a matrix of mmap possibilities:
14588 mmap private not fixed
14589 mmap private fixed at somewhere currently unmapped
14590 mmap private fixed at somewhere already mapped
14591 mmap shared not fixed
14592 mmap shared fixed at somewhere currently unmapped
14593 mmap shared fixed at somewhere already mapped
14594 For private mappings, we should verify that changes cannot be read()
14595 back from the file, nor mmap's back from the file at a different
14596 address. (There have been systems where private was not correctly
14597 implemented like the infamous i386 svr4.0, and systems where the
14598 VM page cache was not coherent with the file system buffer cache
14599 like early versions of FreeBSD and possibly contemporary NetBSD.)
14600 For shared mappings, we should conversely verify that changes get
14601 propagated back to all the places they're supposed to be.
14603 Grep wants private fixed already mapped.
14604 The main things grep needs to know about mmap are:
14605 * does it exist and is it safe to write into the mmap'd area
14606 * how to use it (BSD variants) */
14608 #include <fcntl.h>
14609 #include <sys/mman.h>
14611 #if !STDC_HEADERS && !HAVE_STDLIB_H
14612 char *malloc ();
14613 #endif
14615 /* This mess was copied from the GNU getpagesize.h. */
14616 #if !HAVE_GETPAGESIZE
14617 /* Assume that all systems that can run configure have sys/param.h. */
14618 # if !HAVE_SYS_PARAM_H
14619 # define HAVE_SYS_PARAM_H 1
14620 # endif
14622 # ifdef _SC_PAGESIZE
14623 # define getpagesize() sysconf(_SC_PAGESIZE)
14624 # else /* no _SC_PAGESIZE */
14625 # if HAVE_SYS_PARAM_H
14626 # include <sys/param.h>
14627 # ifdef EXEC_PAGESIZE
14628 # define getpagesize() EXEC_PAGESIZE
14629 # else /* no EXEC_PAGESIZE */
14630 # ifdef NBPG
14631 # define getpagesize() NBPG * CLSIZE
14632 # ifndef CLSIZE
14633 # define CLSIZE 1
14634 # endif /* no CLSIZE */
14635 # else /* no NBPG */
14636 # ifdef NBPC
14637 # define getpagesize() NBPC
14638 # else /* no NBPC */
14639 # ifdef PAGESIZE
14640 # define getpagesize() PAGESIZE
14641 # endif /* PAGESIZE */
14642 # endif /* no NBPC */
14643 # endif /* no NBPG */
14644 # endif /* no EXEC_PAGESIZE */
14645 # else /* no HAVE_SYS_PARAM_H */
14646 # define getpagesize() 8192 /* punt totally */
14647 # endif /* no HAVE_SYS_PARAM_H */
14648 # endif /* no _SC_PAGESIZE */
14650 #endif /* no HAVE_GETPAGESIZE */
14653 main ()
14655 char *data, *data2, *data3;
14656 int i, pagesize;
14657 int fd;
14659 pagesize = getpagesize ();
14661 /* First, make a file with some known garbage in it. */
14662 data = (char *) malloc (pagesize);
14663 if (!data)
14664 exit (1);
14665 for (i = 0; i < pagesize; ++i)
14666 *(data + i) = rand ();
14667 umask (0);
14668 fd = creat ("conftest.mmap", 0600);
14669 if (fd < 0)
14670 exit (1);
14671 if (write (fd, data, pagesize) != pagesize)
14672 exit (1);
14673 close (fd);
14675 /* Next, try to mmap the file at a fixed address which already has
14676 something else allocated at it. If we can, also make sure that
14677 we see the same garbage. */
14678 fd = open ("conftest.mmap", O_RDWR);
14679 if (fd < 0)
14680 exit (1);
14681 data2 = (char *) malloc (2 * pagesize);
14682 if (!data2)
14683 exit (1);
14684 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14685 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14686 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14687 exit (1);
14688 for (i = 0; i < pagesize; ++i)
14689 if (*(data + i) != *(data2 + i))
14690 exit (1);
14692 /* Finally, make sure that changes to the mapped area do not
14693 percolate back to the file as seen by read(). (This is a bug on
14694 some variants of i386 svr4.0.) */
14695 for (i = 0; i < pagesize; ++i)
14696 *(data2 + i) = *(data2 + i) + 1;
14697 data3 = (char *) malloc (pagesize);
14698 if (!data3)
14699 exit (1);
14700 if (read (fd, data3, pagesize) != pagesize)
14701 exit (1);
14702 for (i = 0; i < pagesize; ++i)
14703 if (*(data + i) != *(data3 + i))
14704 exit (1);
14705 close (fd);
14706 exit (0);
14708 _ACEOF
14709 rm -f conftest$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_func_mmap_fixed_mapped=yes
14721 else
14722 echo "$as_me: program exited with status $ac_status" >&5
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ( exit $ac_status )
14727 ac_cv_func_mmap_fixed_mapped=no
14729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14732 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14733 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_MMAP 1
14738 _ACEOF
14741 rm -f conftest.mmap
14744 for ac_func in munmap
14746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 echo "$as_me:$LINENO: checking for $ac_func" >&5
14748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_var+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14760 #define $ac_func innocuous_$ac_func
14762 /* System header to define __stub macros and hopefully few prototypes,
14763 which can conflict with char $ac_func (); below.
14764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14765 <limits.h> exists even on freestanding compilers. */
14767 #ifdef __STDC__
14768 # include <limits.h>
14769 #else
14770 # include <assert.h>
14771 #endif
14773 #undef $ac_func
14775 /* Override any gcc2 internal prototype to avoid an error. */
14776 #ifdef __cplusplus
14777 extern "C"
14779 #endif
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char $ac_func ();
14783 /* The GNU C library defines this for functions which it implements
14784 to always fail with ENOSYS. Some functions are actually named
14785 something starting with __ and the normal name is an alias. */
14786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14787 choke me
14788 #else
14789 char (*f) () = $ac_func;
14790 #endif
14791 #ifdef __cplusplus
14793 #endif
14796 main ()
14798 return f != $ac_func;
14800 return 0;
14802 _ACEOF
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14805 (eval $ac_link) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest$ac_exeext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 eval "$as_ac_var=yes"
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 eval "$as_ac_var=no"
14832 rm -f conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 _ACEOF
14843 done
14846 else
14848 # fake the result of the test for munmap() for the gettext macros
14849 ac_cv_func_munmap=no
14855 mule_backup_CPPFLAGS="$CPPFLAGS"
14856 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14857 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14858 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14859 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14870 main ()
14872 #ifndef strerror_r
14873 char *p = (char *) strerror_r;
14874 #endif
14877 return 0;
14879 _ACEOF
14880 rm -f conftest.$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag"
14890 || test ! -s conftest.err'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_cv_have_decl_strerror_r=yes
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_cv_have_decl_strerror_r=no
14909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14911 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14912 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14913 if test $ac_cv_have_decl_strerror_r = yes; then
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_DECL_STRERROR_R 1
14917 _ACEOF
14920 else
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_DECL_STRERROR_R 0
14923 _ACEOF
14930 for ac_func in strerror_r
14932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14933 echo "$as_me:$LINENO: checking for $ac_func" >&5
14934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14935 if eval "test \"\${$as_ac_var+set}\" = set"; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14946 #define $ac_func innocuous_$ac_func
14948 /* System header to define __stub macros and hopefully few prototypes,
14949 which can conflict with char $ac_func (); below.
14950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14951 <limits.h> exists even on freestanding compilers. */
14953 #ifdef __STDC__
14954 # include <limits.h>
14955 #else
14956 # include <assert.h>
14957 #endif
14959 #undef $ac_func
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 #ifdef __cplusplus
14963 extern "C"
14965 #endif
14966 /* We use char because int might match the return type of a gcc2
14967 builtin and then its argument prototype would still apply. */
14968 char $ac_func ();
14969 /* The GNU C library defines this for functions which it implements
14970 to always fail with ENOSYS. Some functions are actually named
14971 something starting with __ and the normal name is an alias. */
14972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14973 choke me
14974 #else
14975 char (*f) () = $ac_func;
14976 #endif
14977 #ifdef __cplusplus
14979 #endif
14982 main ()
14984 return f != $ac_func;
14986 return 0;
14988 _ACEOF
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag"
14999 || test ! -s conftest.err'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest$ac_exeext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 eval "$as_ac_var=yes"
15012 else
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 eval "$as_ac_var=no"
15018 rm -f conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15023 if test `eval echo '${'$as_ac_var'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15026 _ACEOF
15029 done
15031 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15032 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15033 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15037 ac_cv_func_strerror_r_char_p=no
15038 if test $ac_cv_have_decl_strerror_r = yes; then
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 $ac_includes_default
15047 main ()
15050 char buf[100];
15051 char x = *strerror_r (0, buf, sizeof buf);
15052 char *p = strerror_r (0, buf, sizeof buf);
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_cv_func_strerror_r_char_p=yes
15081 else
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15087 else
15088 # strerror_r is not declared. Choose between
15089 # systems that have relatively inaccessible declarations for the
15090 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15091 # former has a strerror_r that returns char*, while the latter
15092 # has a strerror_r that returns `int'.
15093 # This test should segfault on the DEC system.
15094 if test "$cross_compiling" = yes; then
15096 else
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 $ac_includes_default
15104 extern char *strerror_r ();
15106 main ()
15108 char buf[100];
15109 char x = *strerror_r (0, buf, sizeof buf);
15110 exit (!isalpha (x));
15112 return 0;
15114 _ACEOF
15115 rm -f conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_cv_func_strerror_r_char_p=yes
15127 else
15128 echo "$as_me: program exited with status $ac_status" >&5
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15138 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15139 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15140 if test $ac_cv_func_strerror_r_char_p = yes; then
15142 cat >>confdefs.h <<\_ACEOF
15143 #define STRERROR_R_CHAR_P 1
15144 _ACEOF
15148 CPPFLAGS="$mule_backup_CPPFLAGS"
15150 # Look for a way to preallocate disk space for files.
15152 echo "$as_me:$LINENO: checking for fallocate" >&5
15153 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15162 #include <linux/falloc.h>
15165 main ()
15168 fallocate(0, 0, 0, 0);
15171 return 0;
15174 _ACEOF
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15200 cat >>confdefs.h <<\_ACEOF
15201 #define HAVE_FALLOCATE 1
15202 _ACEOF
15204 echo "$as_me:$LINENO: result: yes" >&5
15205 echo "${ECHO_T}yes" >&6
15207 else
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15216 rm -f conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15220 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15221 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15222 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 #include <sys/sycall.h>
15231 #include <sys/types.h>
15232 #include <unistd.h>
15235 main ()
15238 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15241 return 0;
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_SYS_FALLOCATE 1
15272 _ACEOF
15274 echo "$as_me:$LINENO: result: yes" >&5
15275 echo "${ECHO_T}yes" >&6
15277 else
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15282 echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15286 rm -f conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15289 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15290 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 #define _XOPEN_SOURCE 600
15300 #include <stdlib.h>
15301 #ifdef HAVE_FCNTL_H
15302 # include <fcntl.h>
15303 #endif
15306 main ()
15309 posix_fallocate(0, 0, 0);
15312 return 0;
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest$ac_exeext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15341 cat >>confdefs.h <<\_ACEOF
15342 #define HAVE_POSIX_FALLOCATE 1
15343 _ACEOF
15345 echo "$as_me:$LINENO: result: yes" >&5
15346 echo "${ECHO_T}yes" >&6
15348 else
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15353 echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6
15357 rm -f conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15361 # Checking Native Language Support
15364 MKINSTALLDIRS=
15365 if test -n "$ac_aux_dir"; then
15366 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15368 if test -z "$MKINSTALLDIRS"; then
15369 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15376 # Extract the first word of "msgfmt", so it can be a program name with args.
15377 set dummy msgfmt; ac_word=$2
15378 echo "$as_me:$LINENO: checking for $ac_word" >&5
15379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15380 if test "${ac_cv_path_MSGFMT+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383 case "$MSGFMT" in
15385 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15389 for ac_dir in $PATH; do
15390 test -z "$ac_dir" && ac_dir=.
15391 if test -f $ac_dir/$ac_word; then
15392 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15393 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15394 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15395 break
15398 done
15399 IFS="$ac_save_ifs"
15400 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15402 esac
15404 MSGFMT="$ac_cv_path_MSGFMT"
15405 if test "$MSGFMT" != ":"; then
15406 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15407 echo "${ECHO_T}$MSGFMT" >&6
15408 else
15409 echo "$as_me:$LINENO: result: no" >&5
15410 echo "${ECHO_T}no" >&6
15413 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15414 set dummy gmsgfmt; ac_word=$2
15415 echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15417 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420 case $GMSGFMT in
15421 [\\/]* | ?:[\\/]*)
15422 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15428 IFS=$as_save_IFS
15429 test -z "$as_dir" && as_dir=.
15430 for ac_exec_ext in '' $ac_executable_extensions; do
15431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15434 break 2
15436 done
15437 done
15439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15441 esac
15443 GMSGFMT=$ac_cv_path_GMSGFMT
15445 if test -n "$GMSGFMT"; then
15446 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15447 echo "${ECHO_T}$GMSGFMT" >&6
15448 else
15449 echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6
15454 # Extract the first word of "xgettext", so it can be a program name with args.
15455 set dummy xgettext; ac_word=$2
15456 echo "$as_me:$LINENO: checking for $ac_word" >&5
15457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15458 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461 case "$XGETTEXT" in
15463 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15467 for ac_dir in $PATH; do
15468 test -z "$ac_dir" && ac_dir=.
15469 if test -f $ac_dir/$ac_word; then
15470 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15471 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15472 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15473 break
15476 done
15477 IFS="$ac_save_ifs"
15478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15480 esac
15482 XGETTEXT="$ac_cv_path_XGETTEXT"
15483 if test "$XGETTEXT" != ":"; then
15484 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15485 echo "${ECHO_T}$XGETTEXT" >&6
15486 else
15487 echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15491 rm -f messages.po
15493 # Extract the first word of "msgmerge", so it can be a program name with args.
15494 set dummy msgmerge; ac_word=$2
15495 echo "$as_me:$LINENO: checking for $ac_word" >&5
15496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15497 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500 case "$MSGMERGE" in
15502 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15506 for ac_dir in $PATH; do
15507 test -z "$ac_dir" && ac_dir=.
15508 if test -f $ac_dir/$ac_word; then
15509 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15510 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15511 break
15514 done
15515 IFS="$ac_save_ifs"
15516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15518 esac
15520 MSGMERGE="$ac_cv_path_MSGMERGE"
15521 if test "$MSGMERGE" != ":"; then
15522 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15523 echo "${ECHO_T}$MSGMERGE" >&6
15524 else
15525 echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6
15530 if test "$GMSGFMT" != ":"; then
15531 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15532 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15534 else
15535 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15536 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15537 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15538 GMSGFMT=":"
15542 if test "$XGETTEXT" != ":"; then
15543 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15544 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15546 else
15547 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15548 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15549 XGETTEXT=":"
15551 rm -f messages.po
15554 ac_config_commands="$ac_config_commands default-1"
15557 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15558 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15559 if test "${ac_cv_search_strerror+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562 ac_func_search_save_LIBS=$LIBS
15563 ac_cv_search_strerror=no
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15571 /* Override any gcc2 internal prototype to avoid an error. */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15577 char strerror ();
15579 main ()
15581 strerror ();
15583 return 0;
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_search_strerror="none required"
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15614 rm -f conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 if test "$ac_cv_search_strerror" = no; then
15617 for ac_lib in cposix; do
15618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h. */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 /* Override any gcc2 internal prototype to avoid an error. */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 /* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15632 char strerror ();
15634 main ()
15636 strerror ();
15638 return 0;
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15643 (eval $ac_link) 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag"
15651 || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_search_strerror="-l$ac_lib"
15664 break
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15670 rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 done
15674 LIBS=$ac_func_search_save_LIBS
15676 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15677 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15678 if test "$ac_cv_search_strerror" != no; then
15679 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15684 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15685 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15686 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h. */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15696 #include <features.h>
15697 #ifdef __GNU_LIBRARY__
15698 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15699 Lucky GNU user
15700 #endif
15701 #endif
15703 _ACEOF
15704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15705 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15706 ac_cv_gnu_library_2_1=yes
15707 else
15708 ac_cv_gnu_library_2_1=no
15710 rm -f conftest*
15715 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15716 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15718 GLIBC21="$ac_cv_gnu_library_2_1"
15723 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15724 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15725 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15729 if test "$cross_compiling" = yes; then
15731 # Guess based on the CPU.
15732 case "$host_cpu" in
15733 alpha* | i3456786 | m68k | s390*)
15734 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15736 gt_cv_int_divbyzero_sigfpe="guessing no";;
15737 esac
15739 else
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15747 #include <stdlib.h>
15748 #include <signal.h>
15750 static void
15751 #ifdef __cplusplus
15752 sigfpe_handler (int sig)
15753 #else
15754 sigfpe_handler (sig) int sig;
15755 #endif
15757 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15758 exit (sig != SIGFPE);
15761 int x = 1;
15762 int y = 0;
15763 int z;
15764 int nan;
15766 int main ()
15768 signal (SIGFPE, sigfpe_handler);
15769 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15770 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15771 signal (SIGTRAP, sigfpe_handler);
15772 #endif
15773 /* Linux/SPARC yields signal SIGILL. */
15774 #if defined (__sparc__) && defined (__linux__)
15775 signal (SIGILL, sigfpe_handler);
15776 #endif
15778 z = x / y;
15779 nan = y / y;
15780 exit (1);
15783 _ACEOF
15784 rm -f conftest$ac_exeext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 gt_cv_int_divbyzero_sigfpe=yes
15796 else
15797 echo "$as_me: program exited with status $ac_status" >&5
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ( exit $ac_status )
15802 gt_cv_int_divbyzero_sigfpe=no
15804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15808 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15809 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15810 case "$gt_cv_int_divbyzero_sigfpe" in
15811 *yes) value=1;;
15812 *) value=0;;
15813 esac
15815 cat >>confdefs.h <<_ACEOF
15816 #define INTDIV0_RAISES_SIGFPE $value
15817 _ACEOF
15821 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15822 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15823 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <sys/types.h>
15833 #include <inttypes.h>
15835 main ()
15837 uintmax_t i = (uintmax_t) -1;
15839 return 0;
15841 _ACEOF
15842 rm -f conftest.$ac_objext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844 (eval $ac_compile) 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest.$ac_objext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 jm_ac_cv_header_inttypes_h=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 jm_ac_cv_header_inttypes_h=no
15871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15873 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15874 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15875 if test $jm_ac_cv_header_inttypes_h = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15879 _ACEOF
15884 echo "$as_me:$LINENO: checking for stdint.h" >&5
15885 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15886 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <sys/types.h>
15896 #include <stdint.h>
15898 main ()
15900 uintmax_t i = (uintmax_t) -1;
15902 return 0;
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 jm_ac_cv_header_stdint_h=yes
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 jm_ac_cv_header_stdint_h=no
15934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15936 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15937 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15938 if test $jm_ac_cv_header_stdint_h = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_STDINT_H_WITH_UINTMAX 1
15942 _ACEOF
15947 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15948 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15949 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h. */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 unsigned long long ull = 1; int i = 63;
15960 main ()
15962 unsigned long long ullmax = (unsigned long long) -1;
15963 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15965 return 0;
15967 _ACEOF
15968 rm -f conftest.$ac_objext conftest$ac_exeext
15969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970 (eval $ac_link) 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -z "$ac_c_werror_flag"
15978 || test ! -s conftest.err'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_type_unsigned_long_long=yes
15991 else
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 ac_cv_type_unsigned_long_long=no
15997 rm -f conftest.err conftest.$ac_objext \
15998 conftest$ac_exeext conftest.$ac_ext
16000 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16001 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16002 if test $ac_cv_type_unsigned_long_long = yes; then
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_UNSIGNED_LONG_LONG 1
16006 _ACEOF
16013 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
16015 test $ac_cv_type_unsigned_long_long = yes \
16016 && ac_type='unsigned long long' \
16017 || ac_type='unsigned long'
16019 cat >>confdefs.h <<_ACEOF
16020 #define uintmax_t $ac_type
16021 _ACEOF
16026 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16027 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16028 if test "${gt_cv_header_inttypes_h+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h. */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 #include <sys/types.h>
16039 #include <inttypes.h>
16041 main ()
16045 return 0;
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050 (eval $ac_compile) 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 gt_cv_header_inttypes_h=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 gt_cv_header_inttypes_h=no
16077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16080 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16081 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16082 if test $gt_cv_header_inttypes_h = yes; then
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_INTTYPES_H 1
16086 _ACEOF
16092 if test $gt_cv_header_inttypes_h = yes; then
16093 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16094 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16095 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16099 cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #include <inttypes.h>
16106 #ifdef PRId32
16107 char *p = PRId32;
16108 #endif
16111 main ()
16115 return 0;
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120 (eval $ac_compile) 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 gt_cv_inttypes_pri_broken=no
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 gt_cv_inttypes_pri_broken=yes
16147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16150 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16151 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16153 if test "$gt_cv_inttypes_pri_broken" = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define PRI_MACROS_BROKEN 1
16157 _ACEOF
16162 if test "X$prefix" = "XNONE"; then
16163 acl_final_prefix="$ac_default_prefix"
16164 else
16165 acl_final_prefix="$prefix"
16167 if test "X$exec_prefix" = "XNONE"; then
16168 acl_final_exec_prefix='${prefix}'
16169 else
16170 acl_final_exec_prefix="$exec_prefix"
16172 acl_save_prefix="$prefix"
16173 prefix="$acl_final_prefix"
16174 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16175 prefix="$acl_save_prefix"
16178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16179 if test "${with_gnu_ld+set}" = set; then
16180 withval="$with_gnu_ld"
16181 test "$withval" = no || with_gnu_ld=yes
16182 else
16183 with_gnu_ld=no
16185 ac_prog=ld
16186 if test "$GCC" = yes; then
16187 # Check if gcc -print-prog-name=ld gives a path.
16188 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16189 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16190 case $host in
16191 *-*-mingw*)
16192 # gcc leaves a trailing carriage return which upsets mingw
16193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16196 esac
16197 case $ac_prog in
16198 # Accept absolute paths.
16199 [\\/]* | [A-Za-z]:[\\/]*)
16200 re_direlt='/[^/][^/]*/\.\./'
16201 # Canonicalize the path of ld
16202 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16204 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16205 done
16206 test -z "$LD" && LD="$ac_prog"
16209 # If it fails, then pretend we aren't using GCC.
16210 ac_prog=ld
16213 # If it is relative, then search for the first ld in PATH.
16214 with_gnu_ld=unknown
16216 esac
16217 elif test "$with_gnu_ld" = yes; then
16218 echo "$as_me:$LINENO: checking for GNU ld" >&5
16219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16220 else
16221 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16224 if test "${acl_cv_path_LD+set}" = set; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227 if test -z "$LD"; then
16228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16229 for ac_dir in $PATH; do
16230 test -z "$ac_dir" && ac_dir=.
16231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16232 acl_cv_path_LD="$ac_dir/$ac_prog"
16233 # Check to see if the program is GNU ld. I'd rather use --version,
16234 # but apparently some GNU ld's only accept -v.
16235 # Break only if it was the GNU/non-GNU ld that we prefer.
16236 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16237 test "$with_gnu_ld" != no && break
16238 else
16239 test "$with_gnu_ld" != yes && break
16242 done
16243 IFS="$ac_save_ifs"
16244 else
16245 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16249 LD="$acl_cv_path_LD"
16250 if test -n "$LD"; then
16251 echo "$as_me:$LINENO: result: $LD" >&5
16252 echo "${ECHO_T}$LD" >&6
16253 else
16254 echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6
16257 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16258 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16259 { (exit 1); exit 1; }; }
16260 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16261 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16262 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16266 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16267 acl_cv_prog_gnu_ld=yes
16268 else
16269 acl_cv_prog_gnu_ld=no
16272 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16273 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16274 with_gnu_ld=$acl_cv_prog_gnu_ld
16278 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16279 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16280 if test "${acl_cv_rpath+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16284 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16285 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16286 . ./conftest.sh
16287 rm -f ./conftest.sh
16288 acl_cv_rpath=done
16291 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16292 echo "${ECHO_T}$acl_cv_rpath" >&6
16293 wl="$acl_cv_wl"
16294 libext="$acl_cv_libext"
16295 shlibext="$acl_cv_shlibext"
16296 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16297 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16298 hardcode_direct="$acl_cv_hardcode_direct"
16299 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16300 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16301 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16302 # Check whether --enable-rpath or --disable-rpath was given.
16303 if test "${enable_rpath+set}" = set; then
16304 enableval="$enable_rpath"
16306 else
16307 enable_rpath=yes
16316 use_additional=yes
16318 acl_save_prefix="$prefix"
16319 prefix="$acl_final_prefix"
16320 acl_save_exec_prefix="$exec_prefix"
16321 exec_prefix="$acl_final_exec_prefix"
16323 eval additional_includedir=\"$includedir\"
16324 eval additional_libdir=\"$libdir\"
16326 exec_prefix="$acl_save_exec_prefix"
16327 prefix="$acl_save_prefix"
16330 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16331 if test "${with_libiconv_prefix+set}" = set; then
16332 withval="$with_libiconv_prefix"
16334 if test "X$withval" = "Xno"; then
16335 use_additional=no
16336 else
16337 if test "X$withval" = "X"; then
16339 acl_save_prefix="$prefix"
16340 prefix="$acl_final_prefix"
16341 acl_save_exec_prefix="$exec_prefix"
16342 exec_prefix="$acl_final_exec_prefix"
16344 eval additional_includedir=\"$includedir\"
16345 eval additional_libdir=\"$libdir\"
16347 exec_prefix="$acl_save_exec_prefix"
16348 prefix="$acl_save_prefix"
16350 else
16351 additional_includedir="$withval/include"
16352 additional_libdir="$withval/lib"
16357 LIBICONV=
16358 LTLIBICONV=
16359 INCICONV=
16360 rpathdirs=
16361 ltrpathdirs=
16362 names_already_handled=
16363 names_next_round='iconv '
16364 while test -n "$names_next_round"; do
16365 names_this_round="$names_next_round"
16366 names_next_round=
16367 for name in $names_this_round; do
16368 already_handled=
16369 for n in $names_already_handled; do
16370 if test "$n" = "$name"; then
16371 already_handled=yes
16372 break
16374 done
16375 if test -z "$already_handled"; then
16376 names_already_handled="$names_already_handled $name"
16377 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16378 eval value=\"\$HAVE_LIB$uppername\"
16379 if test -n "$value"; then
16380 if test "$value" = yes; then
16381 eval value=\"\$LIB$uppername\"
16382 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16383 eval value=\"\$LTLIB$uppername\"
16384 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16385 else
16388 else
16389 found_dir=
16390 found_la=
16391 found_so=
16392 found_a=
16393 if test $use_additional = yes; then
16394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16395 found_dir="$additional_libdir"
16396 found_so="$additional_libdir/lib$name.$shlibext"
16397 if test -f "$additional_libdir/lib$name.la"; then
16398 found_la="$additional_libdir/lib$name.la"
16400 else
16401 if test -f "$additional_libdir/lib$name.$libext"; then
16402 found_dir="$additional_libdir"
16403 found_a="$additional_libdir/lib$name.$libext"
16404 if test -f "$additional_libdir/lib$name.la"; then
16405 found_la="$additional_libdir/lib$name.la"
16410 if test "X$found_dir" = "X"; then
16411 for x in $LDFLAGS $LTLIBICONV; do
16413 acl_save_prefix="$prefix"
16414 prefix="$acl_final_prefix"
16415 acl_save_exec_prefix="$exec_prefix"
16416 exec_prefix="$acl_final_exec_prefix"
16417 eval x=\"$x\"
16418 exec_prefix="$acl_save_exec_prefix"
16419 prefix="$acl_save_prefix"
16421 case "$x" in
16422 -L*)
16423 dir=`echo "X$x" | sed -e 's/^X-L//'`
16424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16425 found_dir="$dir"
16426 found_so="$dir/lib$name.$shlibext"
16427 if test -f "$dir/lib$name.la"; then
16428 found_la="$dir/lib$name.la"
16430 else
16431 if test -f "$dir/lib$name.$libext"; then
16432 found_dir="$dir"
16433 found_a="$dir/lib$name.$libext"
16434 if test -f "$dir/lib$name.la"; then
16435 found_la="$dir/lib$name.la"
16440 esac
16441 if test "X$found_dir" != "X"; then
16442 break
16444 done
16446 if test "X$found_dir" != "X"; then
16447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16448 if test "X$found_so" != "X"; then
16449 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16451 else
16452 haveit=
16453 for x in $ltrpathdirs; do
16454 if test "X$x" = "X$found_dir"; then
16455 haveit=yes
16456 break
16458 done
16459 if test -z "$haveit"; then
16460 ltrpathdirs="$ltrpathdirs $found_dir"
16462 if test "$hardcode_direct" = yes; then
16463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16464 else
16465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16467 haveit=
16468 for x in $rpathdirs; do
16469 if test "X$x" = "X$found_dir"; then
16470 haveit=yes
16471 break
16473 done
16474 if test -z "$haveit"; then
16475 rpathdirs="$rpathdirs $found_dir"
16477 else
16478 haveit=
16479 for x in $LDFLAGS $LIBICONV; do
16481 acl_save_prefix="$prefix"
16482 prefix="$acl_final_prefix"
16483 acl_save_exec_prefix="$exec_prefix"
16484 exec_prefix="$acl_final_exec_prefix"
16485 eval x=\"$x\"
16486 exec_prefix="$acl_save_exec_prefix"
16487 prefix="$acl_save_prefix"
16489 if test "X$x" = "X-L$found_dir"; then
16490 haveit=yes
16491 break
16493 done
16494 if test -z "$haveit"; then
16495 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16497 if test "$hardcode_minus_L" != no; then
16498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16499 else
16500 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16505 else
16506 if test "X$found_a" != "X"; then
16507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16508 else
16509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16512 additional_includedir=
16513 case "$found_dir" in
16514 */lib | */lib/)
16515 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16516 additional_includedir="$basedir/include"
16518 esac
16519 if test "X$additional_includedir" != "X"; then
16520 if test "X$additional_includedir" != "X/usr/include"; then
16521 haveit=
16522 if test "X$additional_includedir" = "X/usr/local/include"; then
16523 if test -n "$GCC"; then
16524 case $host_os in
16525 linux*) haveit=yes;;
16526 esac
16529 if test -z "$haveit"; then
16530 for x in $CPPFLAGS $INCICONV; do
16532 acl_save_prefix="$prefix"
16533 prefix="$acl_final_prefix"
16534 acl_save_exec_prefix="$exec_prefix"
16535 exec_prefix="$acl_final_exec_prefix"
16536 eval x=\"$x\"
16537 exec_prefix="$acl_save_exec_prefix"
16538 prefix="$acl_save_prefix"
16540 if test "X$x" = "X-I$additional_includedir"; then
16541 haveit=yes
16542 break
16544 done
16545 if test -z "$haveit"; then
16546 if test -d "$additional_includedir"; then
16547 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16553 if test -n "$found_la"; then
16554 save_libdir="$libdir"
16555 case "$found_la" in
16556 */* | *\\*) . "$found_la" ;;
16557 *) . "./$found_la" ;;
16558 esac
16559 libdir="$save_libdir"
16560 for dep in $dependency_libs; do
16561 case "$dep" in
16562 -L*)
16563 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16564 if test "X$additional_libdir" != "X/usr/lib"; then
16565 haveit=
16566 if test "X$additional_libdir" = "X/usr/local/lib"; then
16567 if test -n "$GCC"; then
16568 case $host_os in
16569 linux*) haveit=yes;;
16570 esac
16573 if test -z "$haveit"; then
16574 haveit=
16575 for x in $LDFLAGS $LIBICONV; do
16577 acl_save_prefix="$prefix"
16578 prefix="$acl_final_prefix"
16579 acl_save_exec_prefix="$exec_prefix"
16580 exec_prefix="$acl_final_exec_prefix"
16581 eval x=\"$x\"
16582 exec_prefix="$acl_save_exec_prefix"
16583 prefix="$acl_save_prefix"
16585 if test "X$x" = "X-L$additional_libdir"; then
16586 haveit=yes
16587 break
16589 done
16590 if test -z "$haveit"; then
16591 if test -d "$additional_libdir"; then
16592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16595 haveit=
16596 for x in $LDFLAGS $LTLIBICONV; do
16598 acl_save_prefix="$prefix"
16599 prefix="$acl_final_prefix"
16600 acl_save_exec_prefix="$exec_prefix"
16601 exec_prefix="$acl_final_exec_prefix"
16602 eval x=\"$x\"
16603 exec_prefix="$acl_save_exec_prefix"
16604 prefix="$acl_save_prefix"
16606 if test "X$x" = "X-L$additional_libdir"; then
16607 haveit=yes
16608 break
16610 done
16611 if test -z "$haveit"; then
16612 if test -d "$additional_libdir"; then
16613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16619 -R*)
16620 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16621 if test "$enable_rpath" != no; then
16622 haveit=
16623 for x in $rpathdirs; do
16624 if test "X$x" = "X$dir"; then
16625 haveit=yes
16626 break
16628 done
16629 if test -z "$haveit"; then
16630 rpathdirs="$rpathdirs $dir"
16632 haveit=
16633 for x in $ltrpathdirs; do
16634 if test "X$x" = "X$dir"; then
16635 haveit=yes
16636 break
16638 done
16639 if test -z "$haveit"; then
16640 ltrpathdirs="$ltrpathdirs $dir"
16644 -l*)
16645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16647 *.la)
16648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16651 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16654 esac
16655 done
16657 else
16658 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16663 done
16664 done
16665 if test "X$rpathdirs" != "X"; then
16666 if test -n "$hardcode_libdir_separator"; then
16667 alldirs=
16668 for found_dir in $rpathdirs; do
16669 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16670 done
16671 acl_save_libdir="$libdir"
16672 libdir="$alldirs"
16673 eval flag=\"$hardcode_libdir_flag_spec\"
16674 libdir="$acl_save_libdir"
16675 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16676 else
16677 for found_dir in $rpathdirs; do
16678 acl_save_libdir="$libdir"
16679 libdir="$found_dir"
16680 eval flag=\"$hardcode_libdir_flag_spec\"
16681 libdir="$acl_save_libdir"
16682 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16683 done
16686 if test "X$ltrpathdirs" != "X"; then
16687 for found_dir in $ltrpathdirs; do
16688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16689 done
16705 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16706 stdlib.h string.h unistd.h sys/param.h
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16710 echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16717 else
16718 # Is the header compilable?
16719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h. */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $ac_includes_default
16728 #include <$ac_header>
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_header_compiler=yes
16753 else
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 ac_header_compiler=no
16759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16761 echo "${ECHO_T}$ac_header_compiler" >&6
16763 # Is the header present?
16764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h. */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 #include <$ac_header>
16773 _ACEOF
16774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } >/dev/null; then
16782 if test -s conftest.err; then
16783 ac_cpp_err=$ac_c_preproc_warn_flag
16784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16785 else
16786 ac_cpp_err=
16788 else
16789 ac_cpp_err=yes
16791 if test -z "$ac_cpp_err"; then
16792 ac_header_preproc=yes
16793 else
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_header_preproc=no
16799 rm -f conftest.err conftest.$ac_ext
16800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16801 echo "${ECHO_T}$ac_header_preproc" >&6
16803 # So? What about this header?
16804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16805 yes:no: )
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16810 ac_header_preproc=yes
16812 no:yes:* )
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16826 cat <<\_ASBOX
16827 ## ------------------------------ ##
16828 ## Report this to admin@amule.org ##
16829 ## ------------------------------ ##
16830 _ASBOX
16832 sed "s/^/$as_me: WARNING: /" >&2
16834 esac
16835 echo "$as_me:$LINENO: checking for $ac_header" >&5
16836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840 eval "$as_ac_Header=\$ac_header_preproc"
16842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16849 _ACEOF
16853 done
16876 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16877 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16878 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886 cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16907 #undef $ac_func
16909 /* Override any gcc2 internal prototype to avoid an error. */
16910 #ifdef __cplusplus
16911 extern "C"
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16916 char $ac_func ();
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 choke me
16922 #else
16923 char (*f) () = $ac_func;
16924 #endif
16925 #ifdef __cplusplus
16927 #endif
16930 main ()
16932 return f != $ac_func;
16934 return 0;
16936 _ACEOF
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 eval "$as_ac_var=no"
16966 rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974 _ACEOF
16977 done
16985 am_save_CPPFLAGS="$CPPFLAGS"
16987 for element in $INCICONV; do
16988 haveit=
16989 for x in $CPPFLAGS; do
16991 acl_save_prefix="$prefix"
16992 prefix="$acl_final_prefix"
16993 acl_save_exec_prefix="$exec_prefix"
16994 exec_prefix="$acl_final_exec_prefix"
16995 eval x=\"$x\"
16996 exec_prefix="$acl_save_exec_prefix"
16997 prefix="$acl_save_prefix"
16999 if test "X$x" = "X$element"; then
17000 haveit=yes
17001 break
17003 done
17004 if test -z "$haveit"; then
17005 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17007 done
17010 echo "$as_me:$LINENO: checking for iconv" >&5
17011 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17012 if test "${am_cv_func_iconv+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17016 am_cv_func_iconv="no, consider installing GNU libiconv"
17017 am_cv_lib_iconv=no
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h. */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 #include <stdlib.h>
17025 #include <iconv.h>
17027 main ()
17029 iconv_t cd = iconv_open("","");
17030 iconv(cd,NULL,NULL,NULL,NULL);
17031 iconv_close(cd);
17033 return 0;
17035 _ACEOF
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag"
17046 || test ! -s conftest.err'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest$ac_exeext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 am_cv_func_iconv=yes
17059 else
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17064 rm -f conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17066 if test "$am_cv_func_iconv" != yes; then
17067 am_save_LIBS="$LIBS"
17068 LIBS="$LIBS $LIBICONV"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <stdlib.h>
17076 #include <iconv.h>
17078 main ()
17080 iconv_t cd = iconv_open("","");
17081 iconv(cd,NULL,NULL,NULL,NULL);
17082 iconv_close(cd);
17084 return 0;
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089 (eval $ac_link) 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 am_cv_lib_iconv=yes
17110 am_cv_func_iconv=yes
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17116 rm -f conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17118 LIBS="$am_save_LIBS"
17122 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17123 echo "${ECHO_T}$am_cv_func_iconv" >&6
17124 if test "$am_cv_func_iconv" = yes; then
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_ICONV 1
17128 _ACEOF
17131 if test "$am_cv_lib_iconv" = yes; then
17132 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17133 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17134 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17135 echo "${ECHO_T}$LIBICONV" >&6
17136 else
17137 CPPFLAGS="$am_save_CPPFLAGS"
17138 LIBICONV=
17139 LTLIBICONV=
17144 if test "$am_cv_func_iconv" = yes; then
17145 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17146 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17147 if test "${am_cv_proto_iconv+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 #include <stdlib.h>
17159 #include <iconv.h>
17160 extern
17161 #ifdef __cplusplus
17163 #endif
17164 #if defined(__STDC__) || defined(__cplusplus)
17165 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17166 #else
17167 size_t iconv();
17168 #endif
17171 main ()
17175 return 0;
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 am_cv_proto_iconv_arg1=""
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 am_cv_proto_iconv_arg1="const"
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17211 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17212 echo "$as_me:$LINENO: result: ${ac_t:-
17213 }$am_cv_proto_iconv" >&5
17214 echo "${ECHO_T}${ac_t:-
17215 }$am_cv_proto_iconv" >&6
17217 cat >>confdefs.h <<_ACEOF
17218 #define ICONV_CONST $am_cv_proto_iconv_arg1
17219 _ACEOF
17224 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17225 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17226 if test "${am_cv_langinfo_codeset+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <langinfo.h>
17237 main ()
17239 char* cs = nl_langinfo(CODESET);
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17246 (eval $ac_link) 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag"
17254 || test ! -s conftest.err'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 am_cv_langinfo_codeset=yes
17267 else
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 am_cv_langinfo_codeset=no
17273 rm -f conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext conftest.$ac_ext
17277 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17278 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17279 if test $am_cv_langinfo_codeset = yes; then
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE_LANGINFO_CODESET 1
17283 _ACEOF
17287 if test $ac_cv_header_locale_h = yes; then
17289 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17290 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17291 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #include <locale.h>
17302 main ()
17304 return LC_MESSAGES
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311 (eval $ac_link) 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag"
17319 || test ! -s conftest.err'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 am_cv_val_LC_MESSAGES=yes
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 am_cv_val_LC_MESSAGES=no
17338 rm -f conftest.err conftest.$ac_objext \
17339 conftest$ac_exeext conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17342 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17343 if test $am_cv_val_LC_MESSAGES = yes; then
17345 cat >>confdefs.h <<\_ACEOF
17346 #define HAVE_LC_MESSAGES 1
17347 _ACEOF
17353 for ac_prog in bison
17355 # Extract the first word of "$ac_prog", so it can be a program name with args.
17356 set dummy $ac_prog; ac_word=$2
17357 echo "$as_me:$LINENO: checking for $ac_word" >&5
17358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17359 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 if test -n "$INTLBISON"; then
17363 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17364 else
17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17366 for as_dir in $PATH
17368 IFS=$as_save_IFS
17369 test -z "$as_dir" && as_dir=.
17370 for ac_exec_ext in '' $ac_executable_extensions; do
17371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17372 ac_cv_prog_INTLBISON="$ac_prog"
17373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17374 break 2
17376 done
17377 done
17381 INTLBISON=$ac_cv_prog_INTLBISON
17382 if test -n "$INTLBISON"; then
17383 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17384 echo "${ECHO_T}$INTLBISON" >&6
17385 else
17386 echo "$as_me:$LINENO: result: no" >&5
17387 echo "${ECHO_T}no" >&6
17390 test -n "$INTLBISON" && break
17391 done
17393 if test -z "$INTLBISON"; then
17394 ac_verc_fail=yes
17395 else
17396 echo "$as_me:$LINENO: checking version of bison" >&5
17397 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17398 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17399 case $ac_prog_version in
17400 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17401 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17402 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17403 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17404 esac
17405 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17406 echo "${ECHO_T}$ac_prog_version" >&6
17408 if test $ac_verc_fail = yes; then
17409 INTLBISON=:
17414 # Check whether --with-language or --without-language was given.
17415 if test "${with_language+set}" = set; then
17416 withval="$with_language"
17417 if test "$withval" = "all"; then
17418 LINGUAS='%UNSET%'
17419 else
17420 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17439 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17440 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17441 # Check whether --enable-nls or --disable-nls was given.
17442 if test "${enable_nls+set}" = set; then
17443 enableval="$enable_nls"
17444 USE_NLS=$enableval
17445 else
17446 USE_NLS=yes
17448 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17449 echo "${ECHO_T}$USE_NLS" >&6
17453 BUILD_INCLUDED_LIBINTL=no
17454 USE_INCLUDED_LIBINTL=no
17456 LIBINTL=
17457 LTLIBINTL=
17458 POSUB=
17460 if test "$USE_NLS" = "yes"; then
17461 gt_use_preinstalled_gnugettext=no
17463 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17464 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17466 # Check whether --with-included-gettext or --without-included-gettext was given.
17467 if test "${with_included_gettext+set}" = set; then
17468 withval="$with_included_gettext"
17469 nls_cv_force_use_gnu_gettext=$withval
17470 else
17471 nls_cv_force_use_gnu_gettext=no
17473 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17474 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17476 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17477 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17484 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17485 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17486 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489 cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <libintl.h>
17496 extern int _nl_msg_cat_cntr;
17497 extern int *_nl_domain_bindings;
17499 main ()
17501 bindtextdomain ("", "");
17502 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17504 return 0;
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -z "$ac_c_werror_flag"
17517 || test ! -s conftest.err'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 gt_cv_func_gnugettext2_libc=yes
17530 else
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 gt_cv_func_gnugettext2_libc=no
17536 rm -f conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17540 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17542 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17546 use_additional=yes
17548 acl_save_prefix="$prefix"
17549 prefix="$acl_final_prefix"
17550 acl_save_exec_prefix="$exec_prefix"
17551 exec_prefix="$acl_final_exec_prefix"
17553 eval additional_includedir=\"$includedir\"
17554 eval additional_libdir=\"$libdir\"
17556 exec_prefix="$acl_save_exec_prefix"
17557 prefix="$acl_save_prefix"
17560 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17561 if test "${with_libintl_prefix+set}" = set; then
17562 withval="$with_libintl_prefix"
17564 if test "X$withval" = "Xno"; then
17565 use_additional=no
17566 else
17567 if test "X$withval" = "X"; then
17569 acl_save_prefix="$prefix"
17570 prefix="$acl_final_prefix"
17571 acl_save_exec_prefix="$exec_prefix"
17572 exec_prefix="$acl_final_exec_prefix"
17574 eval additional_includedir=\"$includedir\"
17575 eval additional_libdir=\"$libdir\"
17577 exec_prefix="$acl_save_exec_prefix"
17578 prefix="$acl_save_prefix"
17580 else
17581 additional_includedir="$withval/include"
17582 additional_libdir="$withval/lib"
17587 LIBINTL=
17588 LTLIBINTL=
17589 INCINTL=
17590 rpathdirs=
17591 ltrpathdirs=
17592 names_already_handled=
17593 names_next_round='intl '
17594 while test -n "$names_next_round"; do
17595 names_this_round="$names_next_round"
17596 names_next_round=
17597 for name in $names_this_round; do
17598 already_handled=
17599 for n in $names_already_handled; do
17600 if test "$n" = "$name"; then
17601 already_handled=yes
17602 break
17604 done
17605 if test -z "$already_handled"; then
17606 names_already_handled="$names_already_handled $name"
17607 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17608 eval value=\"\$HAVE_LIB$uppername\"
17609 if test -n "$value"; then
17610 if test "$value" = yes; then
17611 eval value=\"\$LIB$uppername\"
17612 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17613 eval value=\"\$LTLIB$uppername\"
17614 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17615 else
17618 else
17619 found_dir=
17620 found_la=
17621 found_so=
17622 found_a=
17623 if test $use_additional = yes; then
17624 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17625 found_dir="$additional_libdir"
17626 found_so="$additional_libdir/lib$name.$shlibext"
17627 if test -f "$additional_libdir/lib$name.la"; then
17628 found_la="$additional_libdir/lib$name.la"
17630 else
17631 if test -f "$additional_libdir/lib$name.$libext"; then
17632 found_dir="$additional_libdir"
17633 found_a="$additional_libdir/lib$name.$libext"
17634 if test -f "$additional_libdir/lib$name.la"; then
17635 found_la="$additional_libdir/lib$name.la"
17640 if test "X$found_dir" = "X"; then
17641 for x in $LDFLAGS $LTLIBINTL; do
17643 acl_save_prefix="$prefix"
17644 prefix="$acl_final_prefix"
17645 acl_save_exec_prefix="$exec_prefix"
17646 exec_prefix="$acl_final_exec_prefix"
17647 eval x=\"$x\"
17648 exec_prefix="$acl_save_exec_prefix"
17649 prefix="$acl_save_prefix"
17651 case "$x" in
17652 -L*)
17653 dir=`echo "X$x" | sed -e 's/^X-L//'`
17654 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17655 found_dir="$dir"
17656 found_so="$dir/lib$name.$shlibext"
17657 if test -f "$dir/lib$name.la"; then
17658 found_la="$dir/lib$name.la"
17660 else
17661 if test -f "$dir/lib$name.$libext"; then
17662 found_dir="$dir"
17663 found_a="$dir/lib$name.$libext"
17664 if test -f "$dir/lib$name.la"; then
17665 found_la="$dir/lib$name.la"
17670 esac
17671 if test "X$found_dir" != "X"; then
17672 break
17674 done
17676 if test "X$found_dir" != "X"; then
17677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17678 if test "X$found_so" != "X"; then
17679 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17680 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17681 else
17682 haveit=
17683 for x in $ltrpathdirs; do
17684 if test "X$x" = "X$found_dir"; then
17685 haveit=yes
17686 break
17688 done
17689 if test -z "$haveit"; then
17690 ltrpathdirs="$ltrpathdirs $found_dir"
17692 if test "$hardcode_direct" = yes; then
17693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17694 else
17695 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17696 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17697 haveit=
17698 for x in $rpathdirs; do
17699 if test "X$x" = "X$found_dir"; then
17700 haveit=yes
17701 break
17703 done
17704 if test -z "$haveit"; then
17705 rpathdirs="$rpathdirs $found_dir"
17707 else
17708 haveit=
17709 for x in $LDFLAGS $LIBINTL; do
17711 acl_save_prefix="$prefix"
17712 prefix="$acl_final_prefix"
17713 acl_save_exec_prefix="$exec_prefix"
17714 exec_prefix="$acl_final_exec_prefix"
17715 eval x=\"$x\"
17716 exec_prefix="$acl_save_exec_prefix"
17717 prefix="$acl_save_prefix"
17719 if test "X$x" = "X-L$found_dir"; then
17720 haveit=yes
17721 break
17723 done
17724 if test -z "$haveit"; then
17725 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17727 if test "$hardcode_minus_L" != no; then
17728 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17729 else
17730 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17735 else
17736 if test "X$found_a" != "X"; then
17737 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17738 else
17739 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17742 additional_includedir=
17743 case "$found_dir" in
17744 */lib | */lib/)
17745 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17746 additional_includedir="$basedir/include"
17748 esac
17749 if test "X$additional_includedir" != "X"; then
17750 if test "X$additional_includedir" != "X/usr/include"; then
17751 haveit=
17752 if test "X$additional_includedir" = "X/usr/local/include"; then
17753 if test -n "$GCC"; then
17754 case $host_os in
17755 linux*) haveit=yes;;
17756 esac
17759 if test -z "$haveit"; then
17760 for x in $CPPFLAGS $INCINTL; do
17762 acl_save_prefix="$prefix"
17763 prefix="$acl_final_prefix"
17764 acl_save_exec_prefix="$exec_prefix"
17765 exec_prefix="$acl_final_exec_prefix"
17766 eval x=\"$x\"
17767 exec_prefix="$acl_save_exec_prefix"
17768 prefix="$acl_save_prefix"
17770 if test "X$x" = "X-I$additional_includedir"; then
17771 haveit=yes
17772 break
17774 done
17775 if test -z "$haveit"; then
17776 if test -d "$additional_includedir"; then
17777 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17783 if test -n "$found_la"; then
17784 save_libdir="$libdir"
17785 case "$found_la" in
17786 */* | *\\*) . "$found_la" ;;
17787 *) . "./$found_la" ;;
17788 esac
17789 libdir="$save_libdir"
17790 for dep in $dependency_libs; do
17791 case "$dep" in
17792 -L*)
17793 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17794 if test "X$additional_libdir" != "X/usr/lib"; then
17795 haveit=
17796 if test "X$additional_libdir" = "X/usr/local/lib"; then
17797 if test -n "$GCC"; then
17798 case $host_os in
17799 linux*) haveit=yes;;
17800 esac
17803 if test -z "$haveit"; then
17804 haveit=
17805 for x in $LDFLAGS $LIBINTL; do
17807 acl_save_prefix="$prefix"
17808 prefix="$acl_final_prefix"
17809 acl_save_exec_prefix="$exec_prefix"
17810 exec_prefix="$acl_final_exec_prefix"
17811 eval x=\"$x\"
17812 exec_prefix="$acl_save_exec_prefix"
17813 prefix="$acl_save_prefix"
17815 if test "X$x" = "X-L$additional_libdir"; then
17816 haveit=yes
17817 break
17819 done
17820 if test -z "$haveit"; then
17821 if test -d "$additional_libdir"; then
17822 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17825 haveit=
17826 for x in $LDFLAGS $LTLIBINTL; do
17828 acl_save_prefix="$prefix"
17829 prefix="$acl_final_prefix"
17830 acl_save_exec_prefix="$exec_prefix"
17831 exec_prefix="$acl_final_exec_prefix"
17832 eval x=\"$x\"
17833 exec_prefix="$acl_save_exec_prefix"
17834 prefix="$acl_save_prefix"
17836 if test "X$x" = "X-L$additional_libdir"; then
17837 haveit=yes
17838 break
17840 done
17841 if test -z "$haveit"; then
17842 if test -d "$additional_libdir"; then
17843 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17849 -R*)
17850 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17851 if test "$enable_rpath" != no; then
17852 haveit=
17853 for x in $rpathdirs; do
17854 if test "X$x" = "X$dir"; then
17855 haveit=yes
17856 break
17858 done
17859 if test -z "$haveit"; then
17860 rpathdirs="$rpathdirs $dir"
17862 haveit=
17863 for x in $ltrpathdirs; do
17864 if test "X$x" = "X$dir"; then
17865 haveit=yes
17866 break
17868 done
17869 if test -z "$haveit"; then
17870 ltrpathdirs="$ltrpathdirs $dir"
17874 -l*)
17875 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17877 *.la)
17878 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17881 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17884 esac
17885 done
17887 else
17888 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17889 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17893 done
17894 done
17895 if test "X$rpathdirs" != "X"; then
17896 if test -n "$hardcode_libdir_separator"; then
17897 alldirs=
17898 for found_dir in $rpathdirs; do
17899 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17900 done
17901 acl_save_libdir="$libdir"
17902 libdir="$alldirs"
17903 eval flag=\"$hardcode_libdir_flag_spec\"
17904 libdir="$acl_save_libdir"
17905 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17906 else
17907 for found_dir in $rpathdirs; do
17908 acl_save_libdir="$libdir"
17909 libdir="$found_dir"
17910 eval flag=\"$hardcode_libdir_flag_spec\"
17911 libdir="$acl_save_libdir"
17912 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17913 done
17916 if test "X$ltrpathdirs" != "X"; then
17917 for found_dir in $ltrpathdirs; do
17918 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17919 done
17922 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17923 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17924 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927 gt_save_CPPFLAGS="$CPPFLAGS"
17928 CPPFLAGS="$CPPFLAGS $INCINTL"
17929 gt_save_LIBS="$LIBS"
17930 LIBS="$LIBS $LIBINTL"
17931 cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h. */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 #include <libintl.h>
17938 extern int _nl_msg_cat_cntr;
17939 extern
17940 #ifdef __cplusplus
17942 #endif
17943 const char *_nl_expand_alias ();
17945 main ()
17947 bindtextdomain ("", "");
17948 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17950 return 0;
17952 _ACEOF
17953 rm -f conftest.$ac_objext conftest$ac_exeext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17955 (eval $ac_link) 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest$ac_exeext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 gt_cv_func_gnugettext2_libintl=yes
17976 else
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 gt_cv_func_gnugettext2_libintl=no
17982 rm -f conftest.err conftest.$ac_objext \
17983 conftest$ac_exeext conftest.$ac_ext
17984 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17985 LIBS="$LIBS $LIBICONV"
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 #include <libintl.h>
17993 extern int _nl_msg_cat_cntr;
17994 extern
17995 #ifdef __cplusplus
17997 #endif
17998 const char *_nl_expand_alias ();
18000 main ()
18002 bindtextdomain ("", "");
18003 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 (eval $ac_link) 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 LIBINTL="$LIBINTL $LIBICONV"
18031 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18032 gt_cv_func_gnugettext2_libintl=yes
18034 else
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18039 rm -f conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 CPPFLAGS="$gt_save_CPPFLAGS"
18043 LIBS="$gt_save_LIBS"
18045 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18046 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18049 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18050 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18051 && test "$PACKAGE" != gettext; }; then
18052 gt_use_preinstalled_gnugettext=yes
18053 else
18054 LIBINTL=
18055 LTLIBINTL=
18056 INCINTL=
18060 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18061 nls_cv_use_gnu_gettext=yes
18065 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18066 INTLOBJS="\$(GETTOBJS)"
18067 BUILD_INCLUDED_LIBINTL=yes
18068 USE_INCLUDED_LIBINTL=yes
18069 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
18070 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18071 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18074 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18075 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18076 CATOBJEXT=.gmo
18080 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18081 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define ENABLE_NLS 1
18085 _ACEOF
18087 else
18088 USE_NLS=no
18092 if test "$USE_NLS" = "yes"; then
18094 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18095 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18096 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18097 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18098 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18099 echo "${ECHO_T}$LIBINTL" >&6
18101 for element in $INCINTL; do
18102 haveit=
18103 for x in $CPPFLAGS; do
18105 acl_save_prefix="$prefix"
18106 prefix="$acl_final_prefix"
18107 acl_save_exec_prefix="$exec_prefix"
18108 exec_prefix="$acl_final_exec_prefix"
18109 eval x=\"$x\"
18110 exec_prefix="$acl_save_exec_prefix"
18111 prefix="$acl_save_prefix"
18113 if test "X$x" = "X$element"; then
18114 haveit=yes
18115 break
18117 done
18118 if test -z "$haveit"; then
18119 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18121 done
18126 cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_GETTEXT 1
18128 _ACEOF
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_DCGETTEXT 1
18133 _ACEOF
18137 POSUB=po
18141 if test "$PACKAGE" = gettext; then
18142 BUILD_INCLUDED_LIBINTL=yes
18150 nls_cv_header_intl=
18151 nls_cv_header_libgt=
18153 DATADIRNAME=share
18156 INSTOBJEXT=.mo
18159 GENCAT=gencat
18162 INTL_LIBTOOL_SUFFIX_PREFIX=
18166 INTLLIBS="$LIBINTL"
18173 if test $USE_INCLUDED_LIBINTL = yes; then
18174 INCINTL=-I\${top_builddir}/intl
18178 if test x$USE_NLS = xyes; then
18180 echo "$as_me:$LINENO: checking for autopoint" >&5
18181 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18182 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18183 if test -n "$autopoint_version"; then
18185 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18186 echo "${ECHO_T}yes ($autopoint_version)" >&6
18189 else
18191 echo "$as_me:$LINENO: result: no" >&5
18192 echo "${ECHO_T}no" >&6
18193 USE_NLS=no
18200 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18201 { echo "$as_me:$LINENO: WARNING:
18202 You need to install GNU gettext/gettext-tools to compile aMule with
18203 i18n support." >&5
18204 echo "$as_me: WARNING:
18205 You need to install GNU gettext/gettext-tools to compile aMule with
18206 i18n support." >&2;}
18207 _mule_warning_9=yes
18208 _mule_has_warnings=yes
18213 if test ${USE_NLS:-no} = yes; then
18215 echo "$as_me:$LINENO: checking for requested languages" >&5
18216 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18217 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18219 if test "$AMULE_DAEMON" = "yes"; then
18221 if test -z "$LINGUAS"; then
18222 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18223 else
18225 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18226 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18230 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18232 else
18233 AMULE_DAEMON_MANPAGES=
18239 if test "$AMULECMD" = "yes"; then
18241 if test -z "$LINGUAS"; then
18242 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18243 else
18245 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18246 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18250 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18252 else
18253 AMULECMD_MANPAGES=
18259 if test "$WEB" = "yes"; then
18261 if test -z "$LINGUAS"; then
18262 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18263 else
18265 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18266 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18270 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18272 else
18273 WEB_MANPAGES=
18279 if test "$AMULE_GUI" = "yes"; then
18281 if test -z "$LINGUAS"; then
18282 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18283 else
18285 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18286 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18290 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18292 else
18293 AMULE_GUI_MANPAGES=
18299 if test "$CAS" = "yes"; then
18301 if test -z "$LINGUAS"; then
18302 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18303 else
18305 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18306 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18310 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18312 else
18313 CAS_MANPAGES=
18319 if test "$WXCAS" = "yes"; then
18321 if test -z "$LINGUAS"; then
18322 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18323 else
18325 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18326 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18330 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18332 else
18333 WXCAS_MANPAGES=
18339 if test "$ED2K" = "yes"; then
18341 if test -z "$LINGUAS"; then
18342 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18343 else
18345 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18346 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18350 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18352 else
18353 ED2K_MANPAGES=
18359 if test "$ALC" = "yes"; then
18361 if test -z "$LINGUAS"; then
18362 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18363 else
18365 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18366 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18370 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18372 else
18373 ALC_MANPAGES=
18379 if test "$ALCC" = "yes"; then
18381 if test -z "$LINGUAS"; then
18382 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18383 else
18385 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18386 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18390 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18392 else
18393 ALCC_MANPAGES=
18399 if test "$MONOLITHIC" = "yes"; then
18401 if test -z "$LINGUAS"; then
18402 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18403 else
18405 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18406 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18410 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18412 else
18413 MONOLITHIC_MANPAGES=
18418 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18419 echo "${ECHO_T}${LINGUAS:-all}" >&6
18426 # Check for bfd.h (to have proper backtraces without using wxExecute)
18428 echo "$as_me:$LINENO: checking for bfd" >&5
18429 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18430 result=no
18431 for bfd_ldadd in "" "${LIBINTL}"; do
18432 mule_backup_LIBS="$LIBS"
18433 mule_backup_LDFLAGS="$LDFLAGS"
18434 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18435 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18436 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18444 #include <ansidecl.h>
18445 #include <bfd.h>
18448 main ()
18451 char *dummy = bfd_errmsg(bfd_get_error());
18454 return 0;
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18481 result=yes
18482 BFD_CPPFLAGS="-DHAVE_BFD"
18483 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18484 LIBS="$mule_backup_LIBS"
18485 LDFLAGS="$mule_backup_LDFLAGS"
18486 break
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18493 rm -f conftest.err conftest.$ac_objext \
18494 conftest$ac_exeext conftest.$ac_ext
18495 LIBS="$mule_backup_LIBS"
18496 LDFLAGS="$mule_backup_LDFLAGS"
18497 done
18499 echo "$as_me:$LINENO: result: $result" >&5
18500 echo "${ECHO_T}$result" >&6
18502 if test $result = no; then
18503 { echo "$as_me:$LINENO: WARNING:
18504 bfd.h not found or unusable, please install binutils development
18505 package if you are a developer or want to help testing aMule" >&5
18506 echo "$as_me: WARNING:
18507 bfd.h not found or unusable, please install binutils development
18508 package if you are a developer or want to help testing aMule" >&2;}
18509 _mule_warning_10=yes
18510 _mule_has_warnings=yes
18517 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18518 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 #include <execinfo.h>
18530 main ()
18533 void *bt[1];
18534 int n = backtrace(&bt, 1);
18535 const char **bt_syms = backtrace_symbols(bt, n);
18538 return 0;
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_EXECINFO 1
18569 _ACEOF
18571 echo "$as_me:$LINENO: result: yes" >&5
18572 echo "${ECHO_T}yes" >&6
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18579 echo "$as_me:$LINENO: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18583 rm -f conftest.err conftest.$ac_objext \
18584 conftest$ac_exeext conftest.$ac_ext
18587 # Flush standard test results for speeding cache
18588 cat >confcache <<\_ACEOF
18589 # This file is a shell script that caches the results of configure
18590 # tests run on this system so they can be shared between configure
18591 # scripts and configure runs, see configure's option --config-cache.
18592 # It is not useful on other systems. If it contains results you don't
18593 # want to keep, you may remove or edit it.
18595 # config.status only pays attention to the cache file if you give it
18596 # the --recheck option to rerun configure.
18598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18600 # following values.
18602 _ACEOF
18604 # The following way of writing the cache mishandles newlines in values,
18605 # but we know of no workaround that is simple, portable, and efficient.
18606 # So, don't put newlines in cache variables' values.
18607 # Ultrix sh set writes to stderr and can't be redirected directly,
18608 # and sets the high bit in the cache file unless we assign to the vars.
18610 (set) 2>&1 |
18611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18612 *ac_space=\ *)
18613 # `set' does not quote correctly, so add quotes (double-quote
18614 # substitution turns \\\\ into \\, and sed turns \\ into \).
18615 sed -n \
18616 "s/'/'\\\\''/g;
18617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18620 # `set' quotes correctly as required by POSIX, so do not add quotes.
18621 sed -n \
18622 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18624 esac;
18626 sed '
18627 t clear
18628 : clear
18629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18630 t end
18631 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18632 : end' >>confcache
18633 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18634 if test -w $cache_file; then
18635 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18636 cat confcache >$cache_file
18637 else
18638 echo "not updating unwritable cache $cache_file"
18641 rm -f confcache
18643 # Other tests
18644 # aMule options
18647 # Check whether --enable-debug or --disable-debug was given.
18648 if test "${enable_debug+set}" = set; then
18649 enableval="$enable_debug"
18650 USE_DEBUG=${enableval:-yes}
18651 else
18652 USE_DEBUG=yes
18655 if test $USE_DEBUG = yes; then
18657 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18659 MULECFLAGS="$MULECFLAGS -g"
18660 MULECXXFLAGS="$MULECXXFLAGS -g"
18662 if test ${GLIBCXX:-no} = yes; then
18663 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18666 if test ${GCC:-no} = yes; then
18668 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18669 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18673 if test ${SYS:-unknown} = win32; then
18674 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18678 else
18680 if test ${GCC:-no} = yes; then
18682 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18683 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18692 # Check whether --enable-optimize or --disable-optimize was given.
18693 if test "${enable_optimize+set}" = set; then
18694 enableval="$enable_optimize"
18695 USE_OPTIMIZE=${enableval:-no}
18696 else
18697 USE_OPTIMIZE=no
18700 if test $USE_OPTIMIZE = yes; then
18702 MULECFLAGS="$MULECFLAGS -O2"
18703 MULECXXFLAGS="$MULECXXFLAGS -O2"
18709 # Check whether --enable-profile or --disable-profile was given.
18710 if test "${enable_profile+set}" = set; then
18711 enableval="$enable_profile"
18712 USE_PROFILE=${enableval:-no}
18713 else
18714 USE_PROFILE=no
18717 if test $USE_PROFILE = yes; then
18720 MULECFLAGS="$MULECFLAGS -pg"
18721 MULECXXFLAGS="$MULECXXFLAGS -pg"
18723 MULELDFLAGS="$MULELDFLAGS -pg"
18729 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18730 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18731 # Check whether --enable-static or --disable-static was given.
18732 if test "${enable_static+set}" = set; then
18733 enableval="$enable_static"
18734 if test ${enableval:-no} = yes; then
18735 MULELDFLAGS="$MULELDFLAGS -static"
18739 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18740 echo "${ECHO_T}${enableval:-no}" >&6
18742 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18745 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18746 echo "$as_me:$LINENO: checking for docdir" >&5
18747 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18748 if test -z "$docdir"; then
18749 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18752 echo "$as_me:$LINENO: result: $docdir" >&5
18753 echo "${ECHO_T}$docdir" >&6
18755 # Try to set the SVN checkout-date
18756 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18757 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18758 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18759 then
18760 svndate="rev. `cat $srcdir/.svn-revision`"
18761 elif test -d $srcdir/.svn # SVNDATE for svn
18762 then
18763 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18765 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18766 echo "${ECHO_T}${svndate:-None required}" >&6
18767 if test -n "$svndate"; then
18770 cat >>confdefs.h <<_ACEOF
18771 #define SVNDATE "$svndate"
18772 _ACEOF
18774 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18778 SVNDATE=$svndate
18782 # Check whether --with-denoise-level or --without-denoise-level was given.
18783 if test "${with_denoise_level+set}" = set; then
18784 withval="$with_denoise_level"
18788 echo "$as_me:$LINENO: checking denoising level" >&5
18789 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18790 if test ${with_denoise_level:-5} = yes; then
18791 with_denoise_level=5
18794 if test ${with_denoise_level:-5} = no; then
18795 with_denoise_level=0
18798 if test ${with_denoise_level:-5} -gt 4; then
18799 if test "${svndate:+set}" = "set"; then
18800 with_denoise_level=0
18801 else
18802 with_denoise_level=4
18807 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18808 echo "${ECHO_T}$with_denoise_level" >&6
18810 ac_config_commands="$ac_config_commands denoiser"
18816 if test x$WEB = xyes; then
18817 WEB_TRUE=
18818 WEB_FALSE='#'
18819 else
18820 WEB_TRUE='#'
18821 WEB_FALSE=
18826 if test x$ED2K = xyes; then
18827 ED2K_TRUE=
18828 ED2K_FALSE='#'
18829 else
18830 ED2K_TRUE='#'
18831 ED2K_FALSE=
18836 if test x$CAS = xyes; then
18837 CAS_TRUE=
18838 CAS_FALSE='#'
18839 else
18840 CAS_TRUE='#'
18841 CAS_FALSE=
18846 if test x$WXCAS = xyes; then
18847 WXCAS_TRUE=
18848 WXCAS_FALSE='#'
18849 else
18850 WXCAS_TRUE='#'
18851 WXCAS_FALSE=
18856 if test x$ALC = xyes; then
18857 ALC_TRUE=
18858 ALC_FALSE='#'
18859 else
18860 ALC_TRUE='#'
18861 ALC_FALSE=
18866 if test x$ALCC = xyes; then
18867 ALCC_TRUE=
18868 ALCC_FALSE='#'
18869 else
18870 ALCC_TRUE='#'
18871 ALCC_FALSE=
18876 if test x$AMULE_GUI = xyes; then
18877 AMULE_GUI_TRUE=
18878 AMULE_GUI_FALSE='#'
18879 else
18880 AMULE_GUI_TRUE='#'
18881 AMULE_GUI_FALSE=
18886 if test x$AMULE_DAEMON = xyes; then
18887 AMULE_DAEMON_TRUE=
18888 AMULE_DAEMON_FALSE='#'
18889 else
18890 AMULE_DAEMON_TRUE='#'
18891 AMULE_DAEMON_FALSE=
18896 if test x$AMULECMD = xyes; then
18897 COMPILE_CMD_TRUE=
18898 COMPILE_CMD_FALSE='#'
18899 else
18900 COMPILE_CMD_TRUE='#'
18901 COMPILE_CMD_FALSE=
18906 if test x$MONOLITHIC = xyes; then
18907 MONOLITHIC_TRUE=
18908 MONOLITHIC_FALSE='#'
18909 else
18910 MONOLITHIC_TRUE='#'
18911 MONOLITHIC_FALSE=
18916 if test x$XAS = xyes; then
18917 XAS_TRUE=
18918 XAS_FALSE='#'
18919 else
18920 XAS_TRUE='#'
18921 XAS_FALSE=
18926 if test x$ENABLE_UPNP = xyes; then
18927 ENABLE_UPNP_TRUE=
18928 ENABLE_UPNP_FALSE='#'
18929 else
18930 ENABLE_UPNP_TRUE='#'
18931 ENABLE_UPNP_FALSE=
18936 if test x$ENABLE_IP2COUNTRY = xyes; then
18937 ENABLE_IP2COUNTRY_TRUE=
18938 ENABLE_IP2COUNTRY_FALSE='#'
18939 else
18940 ENABLE_IP2COUNTRY_TRUE='#'
18941 ENABLE_IP2COUNTRY_FALSE=
18946 if test x$SYS = xwin32; then
18947 SYS_WIN32_TRUE=
18948 SYS_WIN32_FALSE='#'
18949 else
18950 SYS_WIN32_TRUE='#'
18951 SYS_WIN32_FALSE=
18956 if test x$SYS = xwin32 -a "$RC" != ":"; then
18957 NEED_RC_TRUE=
18958 NEED_RC_FALSE='#'
18959 else
18960 NEED_RC_TRUE='#'
18961 NEED_RC_FALSE=
18966 if test x$SYS = xdarwin; then
18967 NEED_CORESERVICES_TRUE=
18968 NEED_CORESERVICES_FALSE='#'
18969 else
18970 NEED_CORESERVICES_TRUE='#'
18971 NEED_CORESERVICES_FALSE=
18976 if test x$USE_NLS = xyes; then
18977 COMPILE_NLS_TRUE=
18978 COMPILE_NLS_FALSE='#'
18979 else
18980 COMPILE_NLS_TRUE='#'
18981 COMPILE_NLS_FALSE=
18986 if test x$HAVE_FLEX_EXTENDED = xyes; then
18987 GENERATE_FLEX_HEADER_TRUE=
18988 GENERATE_FLEX_HEADER_FALSE='#'
18989 else
18990 GENERATE_FLEX_HEADER_TRUE='#'
18991 GENERATE_FLEX_HEADER_FALSE=
18996 if test x$INSTALL_SKINS = xyes; then
18997 INSTALL_SKINS_TRUE=
18998 INSTALL_SKINS_FALSE='#'
18999 else
19000 INSTALL_SKINS_TRUE='#'
19001 INSTALL_SKINS_FALSE=
19005 # Check for readline library
19006 if test x$AMULECMD = xyes -o x$WEB = xyes; then
19008 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19009 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19010 if test "${vl_cv_lib_readline+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19014 ORIG_LIBS="$LIBS"
19015 for readline_lib in readline edit editline; do
19016 for termcap_lib in "" termcap curses ncurses; do
19017 if test -z "$termcap_lib"; then
19018 TRY_LIB="-l$readline_lib"
19019 else
19020 TRY_LIB="-l$readline_lib -l$termcap_lib"
19022 LIBS="$ORIG_LIBS $TRY_LIB"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any gcc2 internal prototype to avoid an error. */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char readline ();
19038 main ()
19040 readline ();
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 vl_cv_lib_readline="$TRY_LIB"
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19073 rm -f conftest.err conftest.$ac_objext \
19074 conftest$ac_exeext conftest.$ac_ext
19075 if test -n "$vl_cv_lib_readline"; then
19076 break
19078 done
19079 if test -n "$vl_cv_lib_readline"; then
19080 break
19082 done
19083 if test -z "$vl_cv_lib_readline"; then
19084 vl_cv_lib_readline="no"
19085 LIBS="$ORIG_LIBS"
19086 READLINE_LIBS=""
19087 else
19088 READLINE_LIBS="$vl_cv_lib_readline"
19092 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19093 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19095 if test "$vl_cv_lib_readline" != "no"; then
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_LIBREADLINE 1
19099 _ACEOF
19103 for ac_header in readline.h readline/readline.h
19105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19107 echo "$as_me:$LINENO: checking for $ac_header" >&5
19108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19114 else
19115 # Is the header compilable?
19116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest.$ac_objext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_header_compiler=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_header_compiler=no
19156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19158 echo "${ECHO_T}$ac_header_compiler" >&6
19160 # Is the header present?
19161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include <$ac_header>
19170 _ACEOF
19171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } >/dev/null; then
19179 if test -s conftest.err; then
19180 ac_cpp_err=$ac_c_preproc_warn_flag
19181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19182 else
19183 ac_cpp_err=
19185 else
19186 ac_cpp_err=yes
19188 if test -z "$ac_cpp_err"; then
19189 ac_header_preproc=yes
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_header_preproc=no
19196 rm -f conftest.err conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19198 echo "${ECHO_T}$ac_header_preproc" >&6
19200 # So? What about this header?
19201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19202 yes:no: )
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19207 ac_header_preproc=yes
19209 no:yes:* )
19210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19223 cat <<\_ASBOX
19224 ## ------------------------------ ##
19225 ## Report this to admin@amule.org ##
19226 ## ------------------------------ ##
19227 _ASBOX
19229 sed "s/^/$as_me: WARNING: /" >&2
19231 esac
19232 echo "$as_me:$LINENO: checking for $ac_header" >&5
19233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 eval "$as_ac_Header=\$ac_header_preproc"
19239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246 _ACEOF
19250 done
19252 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19253 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19254 if test "${vl_cv_lib_readline_history+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19258 vl_cv_lib_readline_history="no"
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 /* Override any gcc2 internal prototype to avoid an error. */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 /* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272 char add_history ();
19274 main ()
19276 add_history ();
19278 return 0;
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 vl_cv_lib_readline_history="yes"
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19309 rm -f conftest.err conftest.$ac_objext \
19310 conftest$ac_exeext conftest.$ac_ext
19313 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19314 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19315 if test "$vl_cv_lib_readline_history" = "yes"; then
19317 cat >>confdefs.h <<\_ACEOF
19318 #define HAVE_READLINE_HISTORY 1
19319 _ACEOF
19323 for ac_header in history.h readline/history.h
19325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19327 echo "$as_me:$LINENO: checking for $ac_header" >&5
19328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19334 else
19335 # Is the header compilable?
19336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 $ac_includes_default
19345 #include <$ac_header>
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_header_compiler=yes
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_header_compiler=no
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19378 echo "${ECHO_T}$ac_header_compiler" >&6
19380 # Is the header present?
19381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h. */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 #include <$ac_header>
19390 _ACEOF
19391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } >/dev/null; then
19399 if test -s conftest.err; then
19400 ac_cpp_err=$ac_c_preproc_warn_flag
19401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19402 else
19403 ac_cpp_err=
19405 else
19406 ac_cpp_err=yes
19408 if test -z "$ac_cpp_err"; then
19409 ac_header_preproc=yes
19410 else
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 ac_header_preproc=no
19416 rm -f conftest.err conftest.$ac_ext
19417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19418 echo "${ECHO_T}$ac_header_preproc" >&6
19420 # So? What about this header?
19421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19422 yes:no: )
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19427 ac_header_preproc=yes
19429 no:yes:* )
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19443 cat <<\_ASBOX
19444 ## ------------------------------ ##
19445 ## Report this to admin@amule.org ##
19446 ## ------------------------------ ##
19447 _ASBOX
19449 sed "s/^/$as_me: WARNING: /" >&2
19451 esac
19452 echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 eval "$as_ac_Header=\$ac_header_preproc"
19459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19466 _ACEOF
19470 done
19475 LIBS="$ORIG_LIBS"
19479 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19482 # Check whether --enable-ccache or --disable-ccache was given.
19483 if test "${enable_ccache+set}" = set; then
19484 enableval="$enable_ccache"
19489 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19490 if test "${with_ccache_prefix+set}" = set; then
19491 withval="$with_ccache_prefix"
19495 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19496 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19497 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19498 echo "${ECHO_T}${enable_ccache:-no}" >&6
19500 if test ${enable_ccache:-no} = yes; then
19502 echo "$as_me:$LINENO: checking for ccache presence" >&5
19503 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19504 if test -z "$with_ccache_prefix"; then
19506 ccache_full=`which ccache`
19507 with_ccache_prefix=`dirname ${ccache_full}`
19511 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19513 echo "$as_me:$LINENO: result: yes" >&5
19514 echo "${ECHO_T}yes" >&6
19515 CC="$with_ccache_prefix/ccache $CC"
19516 CXX="$with_ccache_prefix/ccache $CXX"
19517 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19519 else
19521 enable_ccache=no
19522 echo "$as_me:$LINENO: result: no" >&5
19523 echo "${ECHO_T}no" >&6
19532 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19534 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19536 if test x$SYS = xwin32; then
19537 ac_config_files="$ac_config_files version.rc"
19541 cat >confcache <<\_ACEOF
19542 # This file is a shell script that caches the results of configure
19543 # tests run on this system so they can be shared between configure
19544 # scripts and configure runs, see configure's option --config-cache.
19545 # It is not useful on other systems. If it contains results you don't
19546 # want to keep, you may remove or edit it.
19548 # config.status only pays attention to the cache file if you give it
19549 # the --recheck option to rerun configure.
19551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19553 # following values.
19555 _ACEOF
19557 # The following way of writing the cache mishandles newlines in values,
19558 # but we know of no workaround that is simple, portable, and efficient.
19559 # So, don't put newlines in cache variables' values.
19560 # Ultrix sh set writes to stderr and can't be redirected directly,
19561 # and sets the high bit in the cache file unless we assign to the vars.
19563 (set) 2>&1 |
19564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19565 *ac_space=\ *)
19566 # `set' does not quote correctly, so add quotes (double-quote
19567 # substitution turns \\\\ into \\, and sed turns \\ into \).
19568 sed -n \
19569 "s/'/'\\\\''/g;
19570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19573 # `set' quotes correctly as required by POSIX, so do not add quotes.
19574 sed -n \
19575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19577 esac;
19579 sed '
19580 t clear
19581 : clear
19582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19583 t end
19584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19585 : end' >>confcache
19586 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19587 if test -w $cache_file; then
19588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19589 cat confcache >$cache_file
19590 else
19591 echo "not updating unwritable cache $cache_file"
19594 rm -f confcache
19596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19597 # Let make expand exec_prefix.
19598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19602 # trailing colons and then remove the whole line if VPATH becomes empty
19603 # (actually we leave an empty line to preserve line numbers).
19604 if test "x$srcdir" = x.; then
19605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19606 s/:*\$(srcdir):*/:/;
19607 s/:*\${srcdir}:*/:/;
19608 s/:*@srcdir@:*/:/;
19609 s/^\([^=]*=[ ]*\):*/\1/;
19610 s/:*$//;
19611 s/^[^=]*=[ ]*$//;
19615 DEFS=-DHAVE_CONFIG_H
19617 ac_libobjs=
19618 ac_ltlibobjs=
19619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19620 # 1. Remove the extension, and $U if already installed.
19621 ac_i=`echo "$ac_i" |
19622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19623 # 2. Add them.
19624 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19625 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19626 done
19627 LIBOBJS=$ac_libobjs
19629 LTLIBOBJS=$ac_ltlibobjs
19632 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19633 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19634 Usually this means the macro was only invoked conditionally." >&5
19635 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&2;}
19637 { (exit 1); exit 1; }; }
19639 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19640 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19641 Usually this means the macro was only invoked conditionally." >&5
19642 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19643 Usually this means the macro was only invoked conditionally." >&2;}
19644 { (exit 1); exit 1; }; }
19646 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19648 Usually this means the macro was only invoked conditionally." >&5
19649 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19650 Usually this means the macro was only invoked conditionally." >&2;}
19651 { (exit 1); exit 1; }; }
19653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19655 Usually this means the macro was only invoked conditionally." >&5
19656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19657 Usually this means the macro was only invoked conditionally." >&2;}
19658 { (exit 1); exit 1; }; }
19660 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19661 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19662 Usually this means the macro was only invoked conditionally." >&5
19663 echo "$as_me: error: conditional \"WEB\" was never defined.
19664 Usually this means the macro was only invoked conditionally." >&2;}
19665 { (exit 1); exit 1; }; }
19667 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19668 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19669 Usually this means the macro was only invoked conditionally." >&5
19670 echo "$as_me: error: conditional \"ED2K\" was never defined.
19671 Usually this means the macro was only invoked conditionally." >&2;}
19672 { (exit 1); exit 1; }; }
19674 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19675 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&5
19677 echo "$as_me: error: conditional \"CAS\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&2;}
19679 { (exit 1); exit 1; }; }
19681 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19682 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&5
19684 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&2;}
19686 { (exit 1); exit 1; }; }
19688 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19689 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&5
19691 echo "$as_me: error: conditional \"ALC\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&2;}
19693 { (exit 1); exit 1; }; }
19695 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19696 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&5
19698 echo "$as_me: error: conditional \"ALCC\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&2;}
19700 { (exit 1); exit 1; }; }
19702 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19703 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&5
19705 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&2;}
19707 { (exit 1); exit 1; }; }
19709 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19710 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&5
19712 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&2;}
19714 { (exit 1); exit 1; }; }
19716 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19717 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19718 Usually this means the macro was only invoked conditionally." >&5
19719 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&2;}
19721 { (exit 1); exit 1; }; }
19723 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19724 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19725 Usually this means the macro was only invoked conditionally." >&5
19726 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&2;}
19728 { (exit 1); exit 1; }; }
19730 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19731 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19732 Usually this means the macro was only invoked conditionally." >&5
19733 echo "$as_me: error: conditional \"XAS\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&2;}
19735 { (exit 1); exit 1; }; }
19737 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19738 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19739 Usually this means the macro was only invoked conditionally." >&5
19740 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&2;}
19742 { (exit 1); exit 1; }; }
19744 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19745 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19746 Usually this means the macro was only invoked conditionally." >&5
19747 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19748 Usually this means the macro was only invoked conditionally." >&2;}
19749 { (exit 1); exit 1; }; }
19751 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19752 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19753 Usually this means the macro was only invoked conditionally." >&5
19754 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19755 Usually this means the macro was only invoked conditionally." >&2;}
19756 { (exit 1); exit 1; }; }
19758 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19759 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19760 Usually this means the macro was only invoked conditionally." >&5
19761 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19762 Usually this means the macro was only invoked conditionally." >&2;}
19763 { (exit 1); exit 1; }; }
19765 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19766 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19767 Usually this means the macro was only invoked conditionally." >&5
19768 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19769 Usually this means the macro was only invoked conditionally." >&2;}
19770 { (exit 1); exit 1; }; }
19772 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19773 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&5
19775 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19776 Usually this means the macro was only invoked conditionally." >&2;}
19777 { (exit 1); exit 1; }; }
19779 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19780 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&5
19782 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19783 Usually this means the macro was only invoked conditionally." >&2;}
19784 { (exit 1); exit 1; }; }
19786 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19787 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&5
19789 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19790 Usually this means the macro was only invoked conditionally." >&2;}
19791 { (exit 1); exit 1; }; }
19794 : ${CONFIG_STATUS=./config.status}
19795 ac_clean_files_save=$ac_clean_files
19796 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19797 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19798 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19799 cat >$CONFIG_STATUS <<_ACEOF
19800 #! $SHELL
19801 # Generated by $as_me.
19802 # Run this file to recreate the current configuration.
19803 # Compiler output produced by configure, useful for debugging
19804 # configure, is in config.log if it exists.
19806 debug=false
19807 ac_cs_recheck=false
19808 ac_cs_silent=false
19809 SHELL=\${CONFIG_SHELL-$SHELL}
19810 _ACEOF
19812 cat >>$CONFIG_STATUS <<\_ACEOF
19813 ## --------------------- ##
19814 ## M4sh Initialization. ##
19815 ## --------------------- ##
19817 # Be Bourne compatible
19818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19819 emulate sh
19820 NULLCMD=:
19821 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19822 # is contrary to our usage. Disable this feature.
19823 alias -g '${1+"$@"}'='"$@"'
19824 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19825 set -o posix
19827 DUALCASE=1; export DUALCASE # for MKS sh
19829 # Support unset when possible.
19830 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19831 as_unset=unset
19832 else
19833 as_unset=false
19837 # Work around bugs in pre-3.0 UWIN ksh.
19838 $as_unset ENV MAIL MAILPATH
19839 PS1='$ '
19840 PS2='> '
19841 PS4='+ '
19843 # NLS nuisances.
19844 for as_var in \
19845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19847 LC_TELEPHONE LC_TIME
19849 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19850 eval $as_var=C; export $as_var
19851 else
19852 $as_unset $as_var
19854 done
19856 # Required to use basename.
19857 if expr a : '\(a\)' >/dev/null 2>&1; then
19858 as_expr=expr
19859 else
19860 as_expr=false
19863 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19864 as_basename=basename
19865 else
19866 as_basename=false
19870 # Name of the executable.
19871 as_me=`$as_basename "$0" ||
19872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19873 X"$0" : 'X\(//\)$' \| \
19874 X"$0" : 'X\(/\)$' \| \
19875 . : '\(.\)' 2>/dev/null ||
19876 echo X/"$0" |
19877 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19878 /^X\/\(\/\/\)$/{ s//\1/; q; }
19879 /^X\/\(\/\).*/{ s//\1/; q; }
19880 s/.*/./; q'`
19883 # PATH needs CR, and LINENO needs CR and PATH.
19884 # Avoid depending upon Character Ranges.
19885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19888 as_cr_digits='0123456789'
19889 as_cr_alnum=$as_cr_Letters$as_cr_digits
19891 # The user is always right.
19892 if test "${PATH_SEPARATOR+set}" != set; then
19893 echo "#! /bin/sh" >conf$$.sh
19894 echo "exit 0" >>conf$$.sh
19895 chmod +x conf$$.sh
19896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19897 PATH_SEPARATOR=';'
19898 else
19899 PATH_SEPARATOR=:
19901 rm -f conf$$.sh
19905 as_lineno_1=$LINENO
19906 as_lineno_2=$LINENO
19907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19908 test "x$as_lineno_1" != "x$as_lineno_2" &&
19909 test "x$as_lineno_3" = "x$as_lineno_2" || {
19910 # Find who we are. Look in the path if we contain no path at all
19911 # relative or not.
19912 case $0 in
19913 *[\\/]* ) as_myself=$0 ;;
19914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915 for as_dir in $PATH
19917 IFS=$as_save_IFS
19918 test -z "$as_dir" && as_dir=.
19919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19920 done
19923 esac
19924 # We did not find ourselves, most probably we were run as `sh COMMAND'
19925 # in which case we are not to be found in the path.
19926 if test "x$as_myself" = x; then
19927 as_myself=$0
19929 if test ! -f "$as_myself"; then
19930 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19931 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19932 { (exit 1); exit 1; }; }
19934 case $CONFIG_SHELL in
19936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19937 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19939 IFS=$as_save_IFS
19940 test -z "$as_dir" && as_dir=.
19941 for as_base in sh bash ksh sh5; do
19942 case $as_dir in
19944 if ("$as_dir/$as_base" -c '
19945 as_lineno_1=$LINENO
19946 as_lineno_2=$LINENO
19947 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19948 test "x$as_lineno_1" != "x$as_lineno_2" &&
19949 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19950 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19951 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19952 CONFIG_SHELL=$as_dir/$as_base
19953 export CONFIG_SHELL
19954 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19955 fi;;
19956 esac
19957 done
19958 done
19960 esac
19962 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19963 # uniformly replaced by the line number. The first 'sed' inserts a
19964 # line-number line before each line; the second 'sed' does the real
19965 # work. The second script uses 'N' to pair each line-number line
19966 # with the numbered line, and appends trailing '-' during
19967 # substitution so that $LINENO is not a special case at line end.
19968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19969 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19970 sed '=' <$as_myself |
19971 sed '
19973 s,$,-,
19974 : loop
19975 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19976 t loop
19977 s,-$,,
19978 s,^['$as_cr_digits']*\n,,
19979 ' >$as_me.lineno &&
19980 chmod +x $as_me.lineno ||
19981 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19982 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19983 { (exit 1); exit 1; }; }
19985 # Don't try to exec as it changes $[0], causing all sort of problems
19986 # (the dirname of $[0] is not the place where we might find the
19987 # original and so on. Autoconf is especially sensible to this).
19988 . ./$as_me.lineno
19989 # Exit status is that of the last command.
19990 exit
19994 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19995 *c*,-n*) ECHO_N= ECHO_C='
19996 ' ECHO_T=' ' ;;
19997 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19998 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19999 esac
20001 if expr a : '\(a\)' >/dev/null 2>&1; then
20002 as_expr=expr
20003 else
20004 as_expr=false
20007 rm -f conf$$ conf$$.exe conf$$.file
20008 echo >conf$$.file
20009 if ln -s conf$$.file conf$$ 2>/dev/null; then
20010 # We could just check for DJGPP; but this test a) works b) is more generic
20011 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20012 if test -f conf$$.exe; then
20013 # Don't use ln at all; we don't have any links
20014 as_ln_s='cp -p'
20015 else
20016 as_ln_s='ln -s'
20018 elif ln conf$$.file conf$$ 2>/dev/null; then
20019 as_ln_s=ln
20020 else
20021 as_ln_s='cp -p'
20023 rm -f conf$$ conf$$.exe conf$$.file
20025 if mkdir -p . 2>/dev/null; then
20026 as_mkdir_p=:
20027 else
20028 test -d ./-p && rmdir ./-p
20029 as_mkdir_p=false
20032 as_executable_p="test -f"
20034 # Sed expression to map a string onto a valid CPP name.
20035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20037 # Sed expression to map a string onto a valid variable name.
20038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20041 # IFS
20042 # We need space, tab and new line, in precisely that order.
20043 as_nl='
20045 IFS=" $as_nl"
20047 # CDPATH.
20048 $as_unset CDPATH
20050 exec 6>&1
20052 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20053 # report actual input values of CONFIG_FILES etc. instead of their
20054 # values after options handling. Logging --version etc. is OK.
20055 exec 5>>config.log
20057 echo
20058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20059 ## Running $as_me. ##
20060 _ASBOX
20061 } >&5
20062 cat >&5 <<_CSEOF
20064 This file was extended by aMule $as_me SVN, which was
20065 generated by GNU Autoconf 2.59. Invocation command line was
20067 CONFIG_FILES = $CONFIG_FILES
20068 CONFIG_HEADERS = $CONFIG_HEADERS
20069 CONFIG_LINKS = $CONFIG_LINKS
20070 CONFIG_COMMANDS = $CONFIG_COMMANDS
20071 $ $0 $@
20073 _CSEOF
20074 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20075 echo >&5
20076 _ACEOF
20078 # Files that config.status was made for.
20079 if test -n "$ac_config_files"; then
20080 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20083 if test -n "$ac_config_headers"; then
20084 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20087 if test -n "$ac_config_links"; then
20088 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20091 if test -n "$ac_config_commands"; then
20092 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20095 cat >>$CONFIG_STATUS <<\_ACEOF
20097 ac_cs_usage="\
20098 \`$as_me' instantiates files from templates according to the
20099 current configuration.
20101 Usage: $0 [OPTIONS] [FILE]...
20103 -h, --help print this help, then exit
20104 -V, --version print version number, then exit
20105 -q, --quiet do not print progress messages
20106 -d, --debug don't remove temporary files
20107 --recheck update $as_me by reconfiguring in the same conditions
20108 --file=FILE[:TEMPLATE]
20109 instantiate the configuration file FILE
20110 --header=FILE[:TEMPLATE]
20111 instantiate the configuration header FILE
20113 Configuration files:
20114 $config_files
20116 Configuration headers:
20117 $config_headers
20119 Configuration commands:
20120 $config_commands
20122 Report bugs to <bug-autoconf@gnu.org>."
20123 _ACEOF
20125 cat >>$CONFIG_STATUS <<_ACEOF
20126 ac_cs_version="\\
20127 aMule config.status SVN
20128 configured by $0, generated by GNU Autoconf 2.59,
20129 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20131 Copyright (C) 2003 Free Software Foundation, Inc.
20132 This config.status script is free software; the Free Software Foundation
20133 gives unlimited permission to copy, distribute and modify it."
20134 srcdir=$srcdir
20135 INSTALL="$INSTALL"
20136 _ACEOF
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 # If no file are specified by the user, then we need to provide default
20140 # value. By we need to know if files were specified by the user.
20141 ac_need_defaults=:
20142 while test $# != 0
20144 case $1 in
20145 --*=*)
20146 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20147 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20148 ac_shift=:
20151 ac_option=$1
20152 ac_optarg=$2
20153 ac_shift=shift
20155 *) # This is not an option, so the user has probably given explicit
20156 # arguments.
20157 ac_option=$1
20158 ac_need_defaults=false;;
20159 esac
20161 case $ac_option in
20162 # Handling of the options.
20163 _ACEOF
20164 cat >>$CONFIG_STATUS <<\_ACEOF
20165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20166 ac_cs_recheck=: ;;
20167 --version | --vers* | -V )
20168 echo "$ac_cs_version"; exit 0 ;;
20169 --he | --h)
20170 # Conflict between --help and --header
20171 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20172 Try \`$0 --help' for more information." >&5
20173 echo "$as_me: error: ambiguous option: $1
20174 Try \`$0 --help' for more information." >&2;}
20175 { (exit 1); exit 1; }; };;
20176 --help | --hel | -h )
20177 echo "$ac_cs_usage"; exit 0 ;;
20178 --debug | --d* | -d )
20179 debug=: ;;
20180 --file | --fil | --fi | --f )
20181 $ac_shift
20182 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20183 ac_need_defaults=false;;
20184 --header | --heade | --head | --hea )
20185 $ac_shift
20186 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20187 ac_need_defaults=false;;
20188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20190 ac_cs_silent=: ;;
20192 # This is an error.
20193 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20194 Try \`$0 --help' for more information." >&5
20195 echo "$as_me: error: unrecognized option: $1
20196 Try \`$0 --help' for more information." >&2;}
20197 { (exit 1); exit 1; }; } ;;
20199 *) ac_config_targets="$ac_config_targets $1" ;;
20201 esac
20202 shift
20203 done
20205 ac_configure_extra_args=
20207 if $ac_cs_silent; then
20208 exec 6>/dev/null
20209 ac_configure_extra_args="$ac_configure_extra_args --silent"
20212 _ACEOF
20213 cat >>$CONFIG_STATUS <<_ACEOF
20214 if \$ac_cs_recheck; then
20215 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20216 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20219 _ACEOF
20221 cat >>$CONFIG_STATUS <<_ACEOF
20223 # INIT-COMMANDS section.
20226 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20227 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20228 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20229 # from automake.
20230 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20231 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20232 LINGUAS="${LINGUAS-%UNSET%}"
20234 denoiserlevel=$with_denoise_level
20236 _ACEOF
20240 cat >>$CONFIG_STATUS <<\_ACEOF
20241 for ac_config_target in $ac_config_targets
20243 case "$ac_config_target" in
20244 # Handling of arguments.
20245 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20246 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20247 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20248 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20249 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20250 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20251 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20252 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20253 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20254 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20255 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20256 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20257 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20258 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20259 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20260 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20261 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20262 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20263 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20264 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20265 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20266 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20267 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20268 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20269 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20270 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20271 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20272 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20273 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20274 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20275 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20276 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20277 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20278 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20279 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20280 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20281 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20282 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20283 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20284 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20285 { (exit 1); exit 1; }; };;
20286 esac
20287 done
20289 # If the user did not use the arguments to specify the items to instantiate,
20290 # then the envvar interface is used. Set only those that are not.
20291 # We use the long form for the default assignment because of an extremely
20292 # bizarre bug on SunOS 4.1.3.
20293 if $ac_need_defaults; then
20294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20299 # Have a temporary directory for convenience. Make it in the build tree
20300 # simply because there is no reason to put it here, and in addition,
20301 # creating and moving files from /tmp can sometimes cause problems.
20302 # Create a temporary directory, and hook for its removal unless debugging.
20303 $debug ||
20305 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20306 trap '{ (exit 1); exit 1; }' 1 2 13 15
20309 # Create a (secure) tmp directory for tmp files.
20312 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20313 test -n "$tmp" && test -d "$tmp"
20314 } ||
20316 tmp=./confstat$$-$RANDOM
20317 (umask 077 && mkdir $tmp)
20318 } ||
20320 echo "$me: cannot create a temporary directory in ." >&2
20321 { (exit 1); exit 1; }
20324 _ACEOF
20326 cat >>$CONFIG_STATUS <<_ACEOF
20329 # CONFIG_FILES section.
20332 # No need to generate the scripts if there are no CONFIG_FILES.
20333 # This happens for instance when ./config.status config.h
20334 if test -n "\$CONFIG_FILES"; then
20335 # Protect against being on the right side of a sed subst in config.status.
20336 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20337 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20338 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20339 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20340 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20341 s,@SHELL@,$SHELL,;t t
20342 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20343 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20344 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20345 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20346 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20347 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20348 s,@exec_prefix@,$exec_prefix,;t t
20349 s,@prefix@,$prefix,;t t
20350 s,@program_transform_name@,$program_transform_name,;t t
20351 s,@bindir@,$bindir,;t t
20352 s,@sbindir@,$sbindir,;t t
20353 s,@libexecdir@,$libexecdir,;t t
20354 s,@datadir@,$datadir,;t t
20355 s,@sysconfdir@,$sysconfdir,;t t
20356 s,@sharedstatedir@,$sharedstatedir,;t t
20357 s,@localstatedir@,$localstatedir,;t t
20358 s,@libdir@,$libdir,;t t
20359 s,@includedir@,$includedir,;t t
20360 s,@oldincludedir@,$oldincludedir,;t t
20361 s,@infodir@,$infodir,;t t
20362 s,@mandir@,$mandir,;t t
20363 s,@build_alias@,$build_alias,;t t
20364 s,@host_alias@,$host_alias,;t t
20365 s,@target_alias@,$target_alias,;t t
20366 s,@DEFS@,$DEFS,;t t
20367 s,@ECHO_C@,$ECHO_C,;t t
20368 s,@ECHO_N@,$ECHO_N,;t t
20369 s,@ECHO_T@,$ECHO_T,;t t
20370 s,@LIBS@,$LIBS,;t t
20371 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20372 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20373 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20374 s,@CYGPATH_W@,$CYGPATH_W,;t t
20375 s,@PACKAGE@,$PACKAGE,;t t
20376 s,@VERSION@,$VERSION,;t t
20377 s,@ACLOCAL@,$ACLOCAL,;t t
20378 s,@AUTOCONF@,$AUTOCONF,;t t
20379 s,@AUTOMAKE@,$AUTOMAKE,;t t
20380 s,@AUTOHEADER@,$AUTOHEADER,;t t
20381 s,@MAKEINFO@,$MAKEINFO,;t t
20382 s,@install_sh@,$install_sh,;t t
20383 s,@STRIP@,$STRIP,;t t
20384 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20385 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20386 s,@mkdir_p@,$mkdir_p,;t t
20387 s,@AWK@,$AWK,;t t
20388 s,@SET_MAKE@,$SET_MAKE,;t t
20389 s,@am__leading_dot@,$am__leading_dot,;t t
20390 s,@AMTAR@,$AMTAR,;t t
20391 s,@am__tar@,$am__tar,;t t
20392 s,@am__untar@,$am__untar,;t t
20393 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20394 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20395 s,@MAINT@,$MAINT,;t t
20396 s,@build@,$build,;t t
20397 s,@build_cpu@,$build_cpu,;t t
20398 s,@build_vendor@,$build_vendor,;t t
20399 s,@build_os@,$build_os,;t t
20400 s,@host@,$host,;t t
20401 s,@host_cpu@,$host_cpu,;t t
20402 s,@host_vendor@,$host_vendor,;t t
20403 s,@host_os@,$host_os,;t t
20404 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20405 s,@X11LIBS@,$X11LIBS,;t t
20406 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20407 s,@MULECFLAGS@,$MULECFLAGS,;t t
20408 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20409 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20410 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20411 s,@CXX@,$CXX,;t t
20412 s,@CXXFLAGS@,$CXXFLAGS,;t t
20413 s,@LDFLAGS@,$LDFLAGS,;t t
20414 s,@CPPFLAGS@,$CPPFLAGS,;t t
20415 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20416 s,@EXEEXT@,$EXEEXT,;t t
20417 s,@OBJEXT@,$OBJEXT,;t t
20418 s,@DEPDIR@,$DEPDIR,;t t
20419 s,@am__include@,$am__include,;t t
20420 s,@am__quote@,$am__quote,;t t
20421 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20422 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20423 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20424 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20425 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20426 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20427 s,@CXXCPP@,$CXXCPP,;t t
20428 s,@CC@,$CC,;t t
20429 s,@CFLAGS@,$CFLAGS,;t t
20430 s,@ac_ct_CC@,$ac_ct_CC,;t t
20431 s,@CCDEPMODE@,$CCDEPMODE,;t t
20432 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20433 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20434 s,@CPP@,$CPP,;t t
20435 s,@BUILD_CC@,$BUILD_CC,;t t
20436 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20439 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20440 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20441 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20442 s,@EGREP@,$EGREP,;t t
20443 s,@LEX@,$LEX,;t t
20444 s,@LEXLIB@,$LEXLIB,;t t
20445 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20446 s,@RANLIB@,$RANLIB,;t t
20447 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20448 s,@YACC@,$YACC,;t t
20449 s,@AR@,$AR,;t t
20450 s,@ac_ct_AR@,$ac_ct_AR,;t t
20451 s,@LD@,$LD,;t t
20452 s,@ac_ct_LD@,$ac_ct_LD,;t t
20453 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20454 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20455 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20456 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20457 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20458 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20459 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20460 s,@CAS_DEFS@,$CAS_DEFS,;t t
20461 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20462 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20463 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20464 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20465 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20466 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20467 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20468 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20469 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20470 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20471 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20472 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20473 s,@WX_LIBS@,$WX_LIBS,;t t
20474 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20475 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20476 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20477 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20478 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20479 s,@WX_UNICODE@,$WX_UNICODE,;t t
20480 s,@WX_DEBUG@,$WX_DEBUG,;t t
20481 s,@WX_SHARED@,$WX_SHARED,;t t
20482 s,@WX_PORT@,$WX_PORT,;t t
20483 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20484 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20485 s,@RC@,$RC,;t t
20486 s,@RCFLAGS@,$RCFLAGS,;t t
20487 s,@ac_ct_RC@,$ac_ct_RC,;t t
20488 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20489 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20490 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20491 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20492 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20493 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20494 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20495 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20496 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20497 s,@ALLOCA@,$ALLOCA,;t t
20498 s,@LIBOBJS@,$LIBOBJS,;t t
20499 s,@POW_LIB@,$POW_LIB,;t t
20500 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20501 s,@MSGFMT@,$MSGFMT,;t t
20502 s,@GMSGFMT@,$GMSGFMT,;t t
20503 s,@XGETTEXT@,$XGETTEXT,;t t
20504 s,@MSGMERGE@,$MSGMERGE,;t t
20505 s,@GLIBC21@,$GLIBC21,;t t
20506 s,@LIBICONV@,$LIBICONV,;t t
20507 s,@LTLIBICONV@,$LTLIBICONV,;t t
20508 s,@INTLBISON@,$INTLBISON,;t t
20509 s,@USE_NLS@,$USE_NLS,;t t
20510 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20511 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20512 s,@CATOBJEXT@,$CATOBJEXT,;t t
20513 s,@INTLOBJS@,$INTLOBJS,;t t
20514 s,@DATADIRNAME@,$DATADIRNAME,;t t
20515 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20516 s,@GENCAT@,$GENCAT,;t t
20517 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20518 s,@INTLLIBS@,$INTLLIBS,;t t
20519 s,@LIBINTL@,$LIBINTL,;t t
20520 s,@LTLIBINTL@,$LTLIBINTL,;t t
20521 s,@POSUB@,$POSUB,;t t
20522 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20523 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20524 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20525 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20526 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20527 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20528 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20529 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20530 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20531 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20532 s,@INCINTL@,$INCINTL,;t t
20533 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20534 s,@BFD_LIBS@,$BFD_LIBS,;t t
20535 s,@docdir@,$docdir,;t t
20536 s,@SVNDATE@,$SVNDATE,;t t
20537 s,@WEB_TRUE@,$WEB_TRUE,;t t
20538 s,@WEB_FALSE@,$WEB_FALSE,;t t
20539 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20540 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20541 s,@CAS_TRUE@,$CAS_TRUE,;t t
20542 s,@CAS_FALSE@,$CAS_FALSE,;t t
20543 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20544 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20545 s,@ALC_TRUE@,$ALC_TRUE,;t t
20546 s,@ALC_FALSE@,$ALC_FALSE,;t t
20547 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20548 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20549 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20550 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20551 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20552 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20553 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20554 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20555 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20556 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20557 s,@XAS_TRUE@,$XAS_TRUE,;t t
20558 s,@XAS_FALSE@,$XAS_FALSE,;t t
20559 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20560 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20561 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20562 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20563 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20564 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20565 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20566 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20567 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20568 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20569 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20570 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20571 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20572 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20573 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20574 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20575 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20576 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20577 CEOF
20579 _ACEOF
20581 cat >>$CONFIG_STATUS <<\_ACEOF
20582 # Split the substitutions into bite-sized pieces for seds with
20583 # small command number limits, like on Digital OSF/1 and HP-UX.
20584 ac_max_sed_lines=48
20585 ac_sed_frag=1 # Number of current file.
20586 ac_beg=1 # First line for current file.
20587 ac_end=$ac_max_sed_lines # Line after last line for current file.
20588 ac_more_lines=:
20589 ac_sed_cmds=
20590 while $ac_more_lines; do
20591 if test $ac_beg -gt 1; then
20592 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20593 else
20594 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20596 if test ! -s $tmp/subs.frag; then
20597 ac_more_lines=false
20598 else
20599 # The purpose of the label and of the branching condition is to
20600 # speed up the sed processing (if there are no `@' at all, there
20601 # is no need to browse any of the substitutions).
20602 # These are the two extra sed commands mentioned above.
20603 (echo ':t
20604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20605 if test -z "$ac_sed_cmds"; then
20606 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20607 else
20608 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20610 ac_sed_frag=`expr $ac_sed_frag + 1`
20611 ac_beg=$ac_end
20612 ac_end=`expr $ac_end + $ac_max_sed_lines`
20614 done
20615 if test -z "$ac_sed_cmds"; then
20616 ac_sed_cmds=cat
20618 fi # test -n "$CONFIG_FILES"
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<\_ACEOF
20622 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20624 case $ac_file in
20625 - | *:- | *:-:* ) # input from stdin
20626 cat >$tmp/stdin
20627 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20629 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20631 * ) ac_file_in=$ac_file.in ;;
20632 esac
20634 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20635 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20637 X"$ac_file" : 'X\(//\)[^/]' \| \
20638 X"$ac_file" : 'X\(//\)$' \| \
20639 X"$ac_file" : 'X\(/\)' \| \
20640 . : '\(.\)' 2>/dev/null ||
20641 echo X"$ac_file" |
20642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20644 /^X\(\/\/\)$/{ s//\1/; q; }
20645 /^X\(\/\).*/{ s//\1/; q; }
20646 s/.*/./; q'`
20647 { if $as_mkdir_p; then
20648 mkdir -p "$ac_dir"
20649 else
20650 as_dir="$ac_dir"
20651 as_dirs=
20652 while test ! -d "$as_dir"; do
20653 as_dirs="$as_dir $as_dirs"
20654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20656 X"$as_dir" : 'X\(//\)[^/]' \| \
20657 X"$as_dir" : 'X\(//\)$' \| \
20658 X"$as_dir" : 'X\(/\)' \| \
20659 . : '\(.\)' 2>/dev/null ||
20660 echo X"$as_dir" |
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20663 /^X\(\/\/\)$/{ s//\1/; q; }
20664 /^X\(\/\).*/{ s//\1/; q; }
20665 s/.*/./; q'`
20666 done
20667 test ! -n "$as_dirs" || mkdir $as_dirs
20668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20670 { (exit 1); exit 1; }; }; }
20672 ac_builddir=.
20674 if test "$ac_dir" != .; then
20675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20676 # A "../" for each directory in $ac_dir_suffix.
20677 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20678 else
20679 ac_dir_suffix= ac_top_builddir=
20682 case $srcdir in
20683 .) # No --srcdir option. We are building in place.
20684 ac_srcdir=.
20685 if test -z "$ac_top_builddir"; then
20686 ac_top_srcdir=.
20687 else
20688 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20689 fi ;;
20690 [\\/]* | ?:[\\/]* ) # Absolute path.
20691 ac_srcdir=$srcdir$ac_dir_suffix;
20692 ac_top_srcdir=$srcdir ;;
20693 *) # Relative path.
20694 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20695 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20696 esac
20698 # Do not use `cd foo && pwd` to compute absolute paths, because
20699 # the directories may not exist.
20700 case `pwd` in
20701 .) ac_abs_builddir="$ac_dir";;
20703 case "$ac_dir" in
20704 .) ac_abs_builddir=`pwd`;;
20705 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20706 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20707 esac;;
20708 esac
20709 case $ac_abs_builddir in
20710 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20712 case ${ac_top_builddir}. in
20713 .) ac_abs_top_builddir=$ac_abs_builddir;;
20714 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20715 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20716 esac;;
20717 esac
20718 case $ac_abs_builddir in
20719 .) ac_abs_srcdir=$ac_srcdir;;
20721 case $ac_srcdir in
20722 .) ac_abs_srcdir=$ac_abs_builddir;;
20723 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20724 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20725 esac;;
20726 esac
20727 case $ac_abs_builddir in
20728 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20730 case $ac_top_srcdir in
20731 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20732 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20733 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20734 esac;;
20735 esac
20738 case $INSTALL in
20739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20740 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20741 esac
20743 if test x"$ac_file" != x-; then
20744 { echo "$as_me:$LINENO: creating $ac_file" >&5
20745 echo "$as_me: creating $ac_file" >&6;}
20746 rm -f "$ac_file"
20748 # Let's still pretend it is `configure' which instantiates (i.e., don't
20749 # use $as_me), people would be surprised to read:
20750 # /* config.h. Generated by config.status. */
20751 if test x"$ac_file" = x-; then
20752 configure_input=
20753 else
20754 configure_input="$ac_file. "
20756 configure_input=$configure_input"Generated from `echo $ac_file_in |
20757 sed 's,.*/,,'` by configure."
20759 # First look for the input files in the build tree, otherwise in the
20760 # src tree.
20761 ac_file_inputs=`IFS=:
20762 for f in $ac_file_in; do
20763 case $f in
20764 -) echo $tmp/stdin ;;
20765 [\\/$]*)
20766 # Absolute (can't be DOS-style, as IFS=:)
20767 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20768 echo "$as_me: error: cannot find input file: $f" >&2;}
20769 { (exit 1); exit 1; }; }
20770 echo "$f";;
20771 *) # Relative
20772 if test -f "$f"; then
20773 # Build tree
20774 echo "$f"
20775 elif test -f "$srcdir/$f"; then
20776 # Source tree
20777 echo "$srcdir/$f"
20778 else
20779 # /dev/null tree
20780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20781 echo "$as_me: error: cannot find input file: $f" >&2;}
20782 { (exit 1); exit 1; }; }
20783 fi;;
20784 esac
20785 done` || { (exit 1); exit 1; }
20786 _ACEOF
20787 cat >>$CONFIG_STATUS <<_ACEOF
20788 sed "$ac_vpsub
20789 $extrasub
20790 _ACEOF
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20794 s,@configure_input@,$configure_input,;t t
20795 s,@srcdir@,$ac_srcdir,;t t
20796 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20797 s,@top_srcdir@,$ac_top_srcdir,;t t
20798 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20799 s,@builddir@,$ac_builddir,;t t
20800 s,@abs_builddir@,$ac_abs_builddir,;t t
20801 s,@top_builddir@,$ac_top_builddir,;t t
20802 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20803 s,@INSTALL@,$ac_INSTALL,;t t
20804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20805 rm -f $tmp/stdin
20806 if test x"$ac_file" != x-; then
20807 mv $tmp/out $ac_file
20808 else
20809 cat $tmp/out
20810 rm -f $tmp/out
20813 done
20814 _ACEOF
20815 cat >>$CONFIG_STATUS <<\_ACEOF
20818 # CONFIG_HEADER section.
20821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20824 # ac_d sets the value in "#define NAME VALUE" lines.
20825 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20826 ac_dB='[ ].*$,\1#\2'
20827 ac_dC=' '
20828 ac_dD=',;t'
20829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20830 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20831 ac_uB='$,\1#\2define\3'
20832 ac_uC=' '
20833 ac_uD=',;t'
20835 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20837 case $ac_file in
20838 - | *:- | *:-:* ) # input from stdin
20839 cat >$tmp/stdin
20840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20844 * ) ac_file_in=$ac_file.in ;;
20845 esac
20847 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20848 echo "$as_me: creating $ac_file" >&6;}
20850 # First look for the input files in the build tree, otherwise in the
20851 # src tree.
20852 ac_file_inputs=`IFS=:
20853 for f in $ac_file_in; do
20854 case $f in
20855 -) echo $tmp/stdin ;;
20856 [\\/$]*)
20857 # Absolute (can't be DOS-style, as IFS=:)
20858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20859 echo "$as_me: error: cannot find input file: $f" >&2;}
20860 { (exit 1); exit 1; }; }
20861 # Do quote $f, to prevent DOS paths from being IFS'd.
20862 echo "$f";;
20863 *) # Relative
20864 if test -f "$f"; then
20865 # Build tree
20866 echo "$f"
20867 elif test -f "$srcdir/$f"; then
20868 # Source tree
20869 echo "$srcdir/$f"
20870 else
20871 # /dev/null tree
20872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20873 echo "$as_me: error: cannot find input file: $f" >&2;}
20874 { (exit 1); exit 1; }; }
20875 fi;;
20876 esac
20877 done` || { (exit 1); exit 1; }
20878 # Remove the trailing spaces.
20879 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20881 _ACEOF
20883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20884 # `conftest.undefs', that substitutes the proper values into
20885 # config.h.in to produce config.h. The first handles `#define'
20886 # templates, and the second `#undef' templates.
20887 # And first: Protect against being on the right side of a sed subst in
20888 # config.status. Protect against being in an unquoted here document
20889 # in config.status.
20890 rm -f conftest.defines conftest.undefs
20891 # Using a here document instead of a string reduces the quoting nightmare.
20892 # Putting comments in sed scripts is not portable.
20894 # `end' is used to avoid that the second main sed command (meant for
20895 # 0-ary CPP macros) applies to n-ary macro definitions.
20896 # See the Autoconf documentation for `clear'.
20897 cat >confdef2sed.sed <<\_ACEOF
20898 s/[\\&,]/\\&/g
20899 s,[\\$`],\\&,g
20900 t clear
20901 : clear
20902 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20903 t end
20904 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20905 : end
20906 _ACEOF
20907 # If some macros were called several times there might be several times
20908 # the same #defines, which is useless. Nevertheless, we may not want to
20909 # sort them, since we want the *last* AC-DEFINE to be honored.
20910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20912 rm -f confdef2sed.sed
20914 # This sed command replaces #undef with comments. This is necessary, for
20915 # example, in the case of _POSIX_SOURCE, which is predefined and required
20916 # on some systems where configure will not decide to define it.
20917 cat >>conftest.undefs <<\_ACEOF
20918 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20919 _ACEOF
20921 # Break up conftest.defines because some shells have a limit on the size
20922 # of here documents, and old seds have small limits too (100 cmds).
20923 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20924 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20925 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20926 echo ' :' >>$CONFIG_STATUS
20927 rm -f conftest.tail
20928 while grep . conftest.defines >/dev/null
20930 # Write a limited-size here document to $tmp/defines.sed.
20931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20932 # Speed up: don't consider the non `#define' lines.
20933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20934 # Work around the forget-to-reset-the-flag bug.
20935 echo 't clr' >>$CONFIG_STATUS
20936 echo ': clr' >>$CONFIG_STATUS
20937 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20938 echo 'CEOF
20939 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20940 rm -f $tmp/in
20941 mv $tmp/out $tmp/in
20942 ' >>$CONFIG_STATUS
20943 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20944 rm -f conftest.defines
20945 mv conftest.tail conftest.defines
20946 done
20947 rm -f conftest.defines
20948 echo ' fi # grep' >>$CONFIG_STATUS
20949 echo >>$CONFIG_STATUS
20951 # Break up conftest.undefs because some shells have a limit on the size
20952 # of here documents, and old seds have small limits too (100 cmds).
20953 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20954 rm -f conftest.tail
20955 while grep . conftest.undefs >/dev/null
20957 # Write a limited-size here document to $tmp/undefs.sed.
20958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20959 # Speed up: don't consider the non `#undef'
20960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20961 # Work around the forget-to-reset-the-flag bug.
20962 echo 't clr' >>$CONFIG_STATUS
20963 echo ': clr' >>$CONFIG_STATUS
20964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20965 echo 'CEOF
20966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20967 rm -f $tmp/in
20968 mv $tmp/out $tmp/in
20969 ' >>$CONFIG_STATUS
20970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20971 rm -f conftest.undefs
20972 mv conftest.tail conftest.undefs
20973 done
20974 rm -f conftest.undefs
20976 cat >>$CONFIG_STATUS <<\_ACEOF
20977 # Let's still pretend it is `configure' which instantiates (i.e., don't
20978 # use $as_me), people would be surprised to read:
20979 # /* config.h. Generated by config.status. */
20980 if test x"$ac_file" = x-; then
20981 echo "/* Generated by configure. */" >$tmp/config.h
20982 else
20983 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20985 cat $tmp/in >>$tmp/config.h
20986 rm -f $tmp/in
20987 if test x"$ac_file" != x-; then
20988 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20990 echo "$as_me: $ac_file is unchanged" >&6;}
20991 else
20992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994 X"$ac_file" : 'X\(//\)[^/]' \| \
20995 X"$ac_file" : 'X\(//\)$' \| \
20996 X"$ac_file" : 'X\(/\)' \| \
20997 . : '\(.\)' 2>/dev/null ||
20998 echo X"$ac_file" |
20999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21001 /^X\(\/\/\)$/{ s//\1/; q; }
21002 /^X\(\/\).*/{ s//\1/; q; }
21003 s/.*/./; q'`
21004 { if $as_mkdir_p; then
21005 mkdir -p "$ac_dir"
21006 else
21007 as_dir="$ac_dir"
21008 as_dirs=
21009 while test ! -d "$as_dir"; do
21010 as_dirs="$as_dir $as_dirs"
21011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21013 X"$as_dir" : 'X\(//\)[^/]' \| \
21014 X"$as_dir" : 'X\(//\)$' \| \
21015 X"$as_dir" : 'X\(/\)' \| \
21016 . : '\(.\)' 2>/dev/null ||
21017 echo X"$as_dir" |
21018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21020 /^X\(\/\/\)$/{ s//\1/; q; }
21021 /^X\(\/\).*/{ s//\1/; q; }
21022 s/.*/./; q'`
21023 done
21024 test ! -n "$as_dirs" || mkdir $as_dirs
21025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21027 { (exit 1); exit 1; }; }; }
21029 rm -f $ac_file
21030 mv $tmp/config.h $ac_file
21032 else
21033 cat $tmp/config.h
21034 rm -f $tmp/config.h
21036 # Compute $ac_file's index in $config_headers.
21037 _am_stamp_count=1
21038 for _am_header in $config_headers :; do
21039 case $_am_header in
21040 $ac_file | $ac_file:* )
21041 break ;;
21043 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21044 esac
21045 done
21046 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21047 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X$ac_file : 'X\(//\)[^/]' \| \
21049 X$ac_file : 'X\(//\)$' \| \
21050 X$ac_file : 'X\(/\)' \| \
21051 . : '\(.\)' 2>/dev/null ||
21052 echo X$ac_file |
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055 /^X\(\/\/\)$/{ s//\1/; q; }
21056 /^X\(\/\).*/{ s//\1/; q; }
21057 s/.*/./; q'`/stamp-h$_am_stamp_count
21058 done
21059 _ACEOF
21060 cat >>$CONFIG_STATUS <<\_ACEOF
21063 # CONFIG_COMMANDS section.
21065 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21066 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21067 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21068 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21069 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21070 X"$ac_dest" : 'X\(//\)[^/]' \| \
21071 X"$ac_dest" : 'X\(//\)$' \| \
21072 X"$ac_dest" : 'X\(/\)' \| \
21073 . : '\(.\)' 2>/dev/null ||
21074 echo X"$ac_dest" |
21075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21077 /^X\(\/\/\)$/{ s//\1/; q; }
21078 /^X\(\/\).*/{ s//\1/; q; }
21079 s/.*/./; q'`
21080 { if $as_mkdir_p; then
21081 mkdir -p "$ac_dir"
21082 else
21083 as_dir="$ac_dir"
21084 as_dirs=
21085 while test ! -d "$as_dir"; do
21086 as_dirs="$as_dir $as_dirs"
21087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21089 X"$as_dir" : 'X\(//\)[^/]' \| \
21090 X"$as_dir" : 'X\(//\)$' \| \
21091 X"$as_dir" : 'X\(/\)' \| \
21092 . : '\(.\)' 2>/dev/null ||
21093 echo X"$as_dir" |
21094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21096 /^X\(\/\/\)$/{ s//\1/; q; }
21097 /^X\(\/\).*/{ s//\1/; q; }
21098 s/.*/./; q'`
21099 done
21100 test ! -n "$as_dirs" || mkdir $as_dirs
21101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21103 { (exit 1); exit 1; }; }; }
21105 ac_builddir=.
21107 if test "$ac_dir" != .; then
21108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21109 # A "../" for each directory in $ac_dir_suffix.
21110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21111 else
21112 ac_dir_suffix= ac_top_builddir=
21115 case $srcdir in
21116 .) # No --srcdir option. We are building in place.
21117 ac_srcdir=.
21118 if test -z "$ac_top_builddir"; then
21119 ac_top_srcdir=.
21120 else
21121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21122 fi ;;
21123 [\\/]* | ?:[\\/]* ) # Absolute path.
21124 ac_srcdir=$srcdir$ac_dir_suffix;
21125 ac_top_srcdir=$srcdir ;;
21126 *) # Relative path.
21127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21129 esac
21131 # Do not use `cd foo && pwd` to compute absolute paths, because
21132 # the directories may not exist.
21133 case `pwd` in
21134 .) ac_abs_builddir="$ac_dir";;
21136 case "$ac_dir" in
21137 .) ac_abs_builddir=`pwd`;;
21138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21140 esac;;
21141 esac
21142 case $ac_abs_builddir in
21143 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21145 case ${ac_top_builddir}. in
21146 .) ac_abs_top_builddir=$ac_abs_builddir;;
21147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21149 esac;;
21150 esac
21151 case $ac_abs_builddir in
21152 .) ac_abs_srcdir=$ac_srcdir;;
21154 case $ac_srcdir in
21155 .) ac_abs_srcdir=$ac_abs_builddir;;
21156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21158 esac;;
21159 esac
21160 case $ac_abs_builddir in
21161 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21163 case $ac_top_srcdir in
21164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21167 esac;;
21168 esac
21171 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21172 echo "$as_me: executing $ac_dest commands" >&6;}
21173 case $ac_dest in
21174 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21175 # Strip MF so we end up with the name of the file.
21176 mf=`echo "$mf" | sed -e 's/:.*$//'`
21177 # Check whether this is an Automake generated Makefile or not.
21178 # We used to match only the files named `Makefile.in', but
21179 # some people rename them; so instead we look at the file content.
21180 # Grep'ing the first line is not enough: some people post-process
21181 # each Makefile.in and add a new line on top of each file to say so.
21182 # So let's grep whole file.
21183 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21184 dirpart=`(dirname "$mf") 2>/dev/null ||
21185 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186 X"$mf" : 'X\(//\)[^/]' \| \
21187 X"$mf" : 'X\(//\)$' \| \
21188 X"$mf" : 'X\(/\)' \| \
21189 . : '\(.\)' 2>/dev/null ||
21190 echo X"$mf" |
21191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21193 /^X\(\/\/\)$/{ s//\1/; q; }
21194 /^X\(\/\).*/{ s//\1/; q; }
21195 s/.*/./; q'`
21196 else
21197 continue
21199 # Extract the definition of DEPDIR, am__include, and am__quote
21200 # from the Makefile without running `make'.
21201 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21202 test -z "$DEPDIR" && continue
21203 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21204 test -z "am__include" && continue
21205 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21206 # When using ansi2knr, U may be empty or an underscore; expand it
21207 U=`sed -n 's/^U = //p' < "$mf"`
21208 # Find all dependency output files, they are included files with
21209 # $(DEPDIR) in their names. We invoke sed twice because it is the
21210 # simplest approach to changing $(DEPDIR) to its actual value in the
21211 # expansion.
21212 for file in `sed -n "
21213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21215 # Make sure the directory exists.
21216 test -f "$dirpart/$file" && continue
21217 fdir=`(dirname "$file") 2>/dev/null ||
21218 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X"$file" : 'X\(//\)[^/]' \| \
21220 X"$file" : 'X\(//\)$' \| \
21221 X"$file" : 'X\(/\)' \| \
21222 . : '\(.\)' 2>/dev/null ||
21223 echo X"$file" |
21224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21226 /^X\(\/\/\)$/{ s//\1/; q; }
21227 /^X\(\/\).*/{ s//\1/; q; }
21228 s/.*/./; q'`
21229 { if $as_mkdir_p; then
21230 mkdir -p $dirpart/$fdir
21231 else
21232 as_dir=$dirpart/$fdir
21233 as_dirs=
21234 while test ! -d "$as_dir"; do
21235 as_dirs="$as_dir $as_dirs"
21236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$as_dir" : 'X\(//\)[^/]' \| \
21239 X"$as_dir" : 'X\(//\)$' \| \
21240 X"$as_dir" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21242 echo X"$as_dir" |
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21247 s/.*/./; q'`
21248 done
21249 test ! -n "$as_dirs" || mkdir $as_dirs
21250 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21251 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21252 { (exit 1); exit 1; }; }; }
21254 # echo "creating $dirpart/$file"
21255 echo '# dummy' > "$dirpart/$file"
21256 done
21257 done
21259 default-1 )
21260 for ac_file in $CONFIG_FILES; do
21261 # Support "outfile[:infile[:infile...]]"
21262 case "$ac_file" in
21263 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21264 esac
21265 # PO directories have a Makefile.in generated from Makefile.in.in.
21266 case "$ac_file" in */Makefile.in)
21267 # Adjust a relative srcdir.
21268 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21269 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21270 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21271 # In autoconf-2.13 it is called $ac_given_srcdir.
21272 # In autoconf-2.50 it is called $srcdir.
21273 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21274 case "$ac_given_srcdir" in
21275 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21276 /*) top_srcdir="$ac_given_srcdir" ;;
21277 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21278 esac
21279 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21280 rm -f "$ac_dir/POTFILES"
21281 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21282 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21283 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21284 # on $ac_dir but don't depend on user-specified configuration
21285 # parameters.
21286 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21287 # The LINGUAS file contains the set of available languages.
21288 if test -n "$ALL_LINGUAS"; then
21289 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21291 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21292 # Hide the ALL_LINGUAS assigment from automake.
21293 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21295 case "$ac_given_srcdir" in
21296 .) srcdirpre= ;;
21297 *) srcdirpre='$(srcdir)/' ;;
21298 esac
21299 POFILES=
21300 GMOFILES=
21301 UPDATEPOFILES=
21302 DUMMYPOFILES=
21303 for lang in $ALL_LINGUAS; do
21304 POFILES="$POFILES $srcdirpre$lang.po"
21305 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21306 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21307 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21308 done
21309 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21310 # environment variable.
21311 INST_LINGUAS=
21312 if test -n "$ALL_LINGUAS"; then
21313 for presentlang in $ALL_LINGUAS; do
21314 useit=no
21315 if test "%UNSET%" != "$LINGUAS"; then
21316 desiredlanguages="$LINGUAS"
21317 else
21318 desiredlanguages="$ALL_LINGUAS"
21320 for desiredlang in $desiredlanguages; do
21321 # Use the presentlang catalog if desiredlang is
21322 # a. equal to presentlang, or
21323 # b. a variant of presentlang (because in this case,
21324 # presentlang can be used as a fallback for messages
21325 # which are not translated in the desiredlang catalog).
21326 case "$desiredlang" in
21327 "$presentlang"*) useit=yes;;
21328 esac
21329 done
21330 if test $useit = yes; then
21331 INST_LINGUAS="$INST_LINGUAS $presentlang"
21333 done
21335 CATALOGS=
21336 if test -n "$INST_LINGUAS"; then
21337 for lang in $INST_LINGUAS; do
21338 CATALOGS="$CATALOGS $lang.gmo"
21339 done
21341 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21342 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21343 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21344 if test -f "$f"; then
21345 case "$f" in
21346 *.orig | *.bak | *~) ;;
21347 *) cat "$f" >> "$ac_dir/Makefile" ;;
21348 esac
21350 done
21353 esac
21354 done ;;
21355 denoiser ) if test $denoiserlevel -gt 0; then
21356 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21357 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21358 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21359 for i in `find . -name 'Makefile' -print`; do
21360 if test -n "`head -n 1 $i | grep '^#'`"; then
21361 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21363 done
21364 fi ;;
21365 esac
21366 done
21367 _ACEOF
21369 cat >>$CONFIG_STATUS <<\_ACEOF
21371 { (exit 0); exit 0; }
21372 _ACEOF
21373 chmod +x $CONFIG_STATUS
21374 ac_clean_files=$ac_clean_files_save
21377 # configure is writing to config.log, and then calls config.status.
21378 # config.status does its own redirection, appending to config.log.
21379 # Unfortunately, on DOS this fails, as config.log is still kept open
21380 # by configure, so config.status won't be able to write to it; its
21381 # output is simply discarded. So we exec the FD to /dev/null,
21382 # effectively closing config.log, so it can be properly (re)opened and
21383 # appended to by config.status. When coming back to configure, we
21384 # need to make the FD available again.
21385 if test "$no_create" != yes; then
21386 ac_cs_success=:
21387 ac_config_status_args=
21388 test "$silent" = yes &&
21389 ac_config_status_args="$ac_config_status_args --quiet"
21390 exec 5>/dev/null
21391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21392 exec 5>>config.log
21393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21394 # would make configure fail if this is the last instruction.
21395 $ac_cs_success || { (exit 1); exit 1; }
21399 if test -n "$svndate"; then
21400 SVN_REVISION=" ($svndate)"
21401 else
21402 SVN_REVISION=
21406 echo
21407 echo
21408 echo " Configure script has finished system check."
21409 echo
21410 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21411 echo
21412 echo " aMule enabled options:"
21413 echo
21414 echo " **** aMule Core ****"
21415 echo " Prefix where aMule should be installed? ${prefix:-none}"
21416 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21417 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21418 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21419 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21420 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21421 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21422 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21423 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21424 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21425 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21427 echo
21428 echo " **** aMule TextClient ****"
21429 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21430 echo
21431 echo " **** aMule WebServer ****"
21432 echo " Should aMule WebServer be built? ${WEB:-no}"
21433 echo
21434 echo " **** aMule ED2K Links Handler ****"
21435 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21436 echo
21437 echo " **** aMuleLinkCreator ****"
21438 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21439 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21440 echo
21441 echo " **** aMule Statistics ****"
21442 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21443 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21444 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21446 echo
21447 echo " **** General Libraries and Tools ****"
21448 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21449 echo " Libraries aMule will use to build:"
21450 wxinfo="$WX_PORT"
21451 if test $WX_DEBUG -eq 1; then
21452 wxinfo="$wxinfo,debug"
21455 if test $WX_SHARED -eq 1; then
21456 wxinfo="$wxinfo,shared"
21457 else
21458 wxinfo="$wxinfo,static"
21461 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21462 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21463 if test -n "$with_libupnp_prefix"; then
21464 libupnp_place=" (in $with_libupnp_prefix)"
21467 if test x${ENABLE_UPNP} = xyes; then
21468 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21471 if test x${WEB:-no} != xno; then
21472 if test $regex_found = no; then
21473 regex_found="Not detected"
21474 else
21475 if test -z "$REGEX_LIB"; then
21476 regex_found=system
21477 else
21478 regex_found="standalone (in $REGEX_LIB)"
21483 echo " regex $regex_found"
21485 if test ${enable_nls:-yes} = yes; then
21486 if test x$USE_NLS = xno; then
21487 libintl_found="Not detected"
21488 else
21489 if test x$USE_INCLUDED_LIBINTL = xyes; then
21490 libintl_found="included"
21491 else
21492 libintl_found="system"
21497 echo " libintl $libintl_found"
21499 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21500 geoip_style=system
21501 else
21502 geoip_style=user
21505 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21506 echo " libGeoIP ${geoip_style}"
21509 if test x$LIBPNG_VERSION != xnot_needed; then
21510 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21512 if test x$GDLIB_VERSION != xnot_needed; then
21513 echo " libgd ${GDLIB_VERSION:-Not detected}"
21515 echo " zlib ${ZLIB_VERSION:-Not detected}"
21516 if test ${_mule_has_warnings:-no} = yes; then
21517 echo ""
21518 echo ""
21519 echo " *** Warnings during configuration ***"
21521 if test ${_mule_warning_0:-no} = yes; then
21522 cat <<_MULEEOT
21524 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21525 Please check that gdlib-config is in your default path, check out
21526 LD_LIBRARY_PATH or equivalent variable.
21527 Or this might also be that your gdlib-config has other name.
21528 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21529 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21530 If you use compiled packages check if you have devel pack installed.
21531 To download the latest version check http://www.boutell.com/gd for sources.
21532 _MULEEOT
21534 if test ${_mule_warning_1:-no} = yes; then
21535 cat <<_MULEEOT
21537 * amuleweb has been disabled because configure could not find a POSIX
21538 compliant regex library.
21539 _MULEEOT
21541 if test ${_mule_warning_2:-no} = yes; then
21542 cat <<_MULEEOT
21544 * libpng >= 1.2.0 not found.
21545 amuleweb will be compiled but file download progress bar images will NOT be
21546 generated.
21547 _MULEEOT
21549 if test ${_mule_warning_3:-no} = yes; then
21550 cat <<_MULEEOT
21552 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21553 _MULEEOT
21555 if test ${_mule_warning_4:-no} = yes; then
21556 cat <<_MULEEOT
21558 * GeoIP support has been disabled because the GeoIP libraries were not found
21559 _MULEEOT
21561 if test ${_mule_warning_5:-no} = yes; then
21562 cat <<_MULEEOT
21564 * GeoIP support has been disabled because the GeoIP header files were not
21565 found
21566 _MULEEOT
21568 if test ${_mule_warning_6:-no} = yes; then
21569 cat <<_MULEEOT
21571 * UPnP code has been disabled because ${libupnp_error}.
21572 _MULEEOT
21574 if test ${_mule_warning_7:-no} = yes; then
21575 cat <<_MULEEOT
21577 * Cross-compilation detected, so exception handling cannot be tested.
21578 Note that broken exception handling in your compiler may lead to unexpected
21579 crashes.
21580 _MULEEOT
21582 if test ${_mule_warning_8:-no} = yes; then
21583 cat <<_MULEEOT
21585 * configure cannot check whether malloc() and realloc() are GNU libc
21586 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21587 configure with the --without-gnu-malloc switch.
21588 _MULEEOT
21590 if test ${_mule_warning_9:-no} = yes; then
21591 cat <<_MULEEOT
21593 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21594 support.
21595 _MULEEOT
21597 if test ${_mule_warning_10:-no} = yes; then
21598 cat <<_MULEEOT
21600 * bfd.h not found or unusable, please install binutils development package if
21601 you are a developer or want to help testing aMule
21602 _MULEEOT