Upstream tarball 20080826
[amule.git] / configure
blob2b6aafa4f6711a115ff3a3e81b535dd67dc68ac0
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='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS BFD_CPPFLAGS BFD_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE READLINE_LIBS LTLIBOBJS'
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 --disable-xas do not install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-geoip-headers=DIR
913 GeoIP include files location
914 --with-geoip-lib=DIR GeoIP library location
915 --with-geoip-static Explicitly link GeoIP statically (default=no)
916 --without-gnu-malloc Don't assume that we use GNU libc compatible
917 malloc/realloc when cross-compiling
918 --with-zlib=PREFIX use zlib in PREFIX
919 --with-gdlib-prefix=PREFIX
920 prefix where gdlib is installed (optional)
921 --with-gdlib-config=CONFIG
922 gdlib-config script to use (optional)
923 --with-libpng-prefix=PREFIX
924 prefix where libpng is installed (optional)
925 --with-libpng-config=CONFIG
926 libpng-config script to use (optional)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
928 --with-wx-config=CONFIG wx-config script to use (optional)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed (optional)
932 --with-toolkit Build against a specific wxWidgets toolkit (default
933 is auto)
934 --with-wxshared Force building against a shared build of wxWidgets,
935 even if --disable-shared is given (default is auto)
936 --with-wxdebug Force building against a debug build of wxWidgets,
937 even if --disable-debug is given (default is auto)
938 --with-wxversion Build against a specific version of wxWidgets
939 (default is auto)
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto++ is installed
944 --with-x use the X Window System
945 --with-language=<langs> Specify a comma-separated list of languages you want
946 to have installed. See po/LINGUAS for available
947 languages
948 --with-gnu-ld assume the C compiler uses GNU ld default=no
949 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
950 --without-libiconv-prefix don't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search for libintl in includedir and libdir
954 --with-denoise-level=<level>
955 Specifies denoising level (0-4):
956 0 - Do nothing
957 4 - Suppress all normal output
958 (for more information see
959 src/utils/scripts/denoiser.rules)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables:
965 CXX C++ compiler command
966 CXXFLAGS C++ compiler flags
967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
968 nonstandard directory <lib dir>
969 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
970 headers in a nonstandard directory <include dir>
971 CXXCPP C++ preprocessor
972 CC C compiler command
973 CFLAGS C compiler flags
974 CPP C preprocessor
975 RC Resource Compiler
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by `configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
983 _ACEOF
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
988 ac_popdir=`pwd`
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
991 ac_builddir=.
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
997 else
998 ac_dir_suffix= ac_top_builddir=
1001 case $srcdir in
1002 .) # No --srcdir option. We are building in place.
1003 ac_srcdir=.
1004 if test -z "$ac_top_builddir"; then
1005 ac_top_srcdir=.
1006 else
1007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1008 fi ;;
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1012 *) # Relative path.
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1015 esac
1017 # Do not use `cd foo && pwd` to compute absolute paths, because
1018 # the directories may not exist.
1019 case `pwd` in
1020 .) ac_abs_builddir="$ac_dir";;
1022 case "$ac_dir" in
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1026 esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1035 esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1040 case $ac_srcdir in
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1044 esac;;
1045 esac
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 esac;;
1054 esac
1056 cd $ac_dir
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1059 echo
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1062 echo
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1066 echo
1067 $ac_configure --help
1068 else
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 cd $ac_popdir
1072 done
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1077 cat <<\_ACEOF
1078 aMule configure SVN
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1084 _ACEOF
1085 exit 0
1087 exec 5>config.log
1088 cat >&5 <<_ACEOF
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1095 $ $0 $@
1097 _ACEOF
1099 cat <<_ASUNAME
1100 ## --------- ##
1101 ## Platform. ##
1102 ## --------- ##
1104 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1105 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1106 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1107 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1108 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1110 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1111 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1113 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1114 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1115 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1116 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1117 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1118 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1119 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1121 _ASUNAME
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1124 for as_dir in $PATH
1126 IFS=$as_save_IFS
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1129 done
1131 } >&5
1133 cat >&5 <<_ACEOF
1136 ## ----------- ##
1137 ## Core tests. ##
1138 ## ----------- ##
1140 _ACEOF
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1148 ac_configure_args=
1149 ac_configure_args0=
1150 ac_configure_args1=
1151 ac_sep=
1152 ac_must_keep_next=false
1153 for ac_pass in 1 2
1155 for ac_arg
1157 case $ac_arg in
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 continue ;;
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164 esac
1165 case $ac_pass in
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1171 else
1172 case $ac_arg in
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1179 esac
1181 -* ) ac_must_keep_next=true ;;
1182 esac
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1186 ac_sep=" "
1188 esac
1189 done
1190 done
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1202 echo
1204 cat <<\_ASBOX
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1208 _ASBOX
1209 echo
1210 # The following way of writing the cache mishandles newlines in values,
1212 (set) 2>&1 |
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1214 *ac_space=\ *)
1215 sed -n \
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220 sed -n \
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223 esac;
1225 echo
1227 cat <<\_ASBOX
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1231 _ASBOX
1232 echo
1233 for ac_var in $ac_subst_vars
1235 eval ac_val=$`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1237 done | sort
1238 echo
1240 if test -n "$ac_subst_files"; then
1241 cat <<\_ASBOX
1242 ## ------------- ##
1243 ## Output files. ##
1244 ## ------------- ##
1245 _ASBOX
1246 echo
1247 for ac_var in $ac_subst_files
1249 eval ac_val=$`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1251 done | sort
1252 echo
1255 if test -s confdefs.h; then
1256 cat <<\_ASBOX
1257 ## ----------- ##
1258 ## confdefs.h. ##
1259 ## ----------- ##
1260 _ASBOX
1261 echo
1262 sed "/^$/d" confdefs.h | sort
1263 echo
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1268 } >&5
1269 rm -f core *.core &&
1270 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1271 exit $exit_status
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1275 done
1276 ac_signal=0
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1281 echo >confdefs.h
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1287 _ACEOF
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1292 _ACEOF
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1297 _ACEOF
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1302 _ACEOF
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1307 _ACEOF
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1315 else
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's/^/| /' "$ac_site_file" >&5
1324 . "$ac_site_file"
1326 done
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1334 case $cache_file in
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1337 esac
1339 else
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1342 >$cache_file
1345 # Check that the precious variables saved in the cache have kept the same
1346 # value.
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1355 set,)
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1359 ,set)
1360 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1363 ,);;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1367 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1373 fi;;
1374 esac
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1377 case $ac_new_val in
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1381 esac
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1385 esac
1387 done
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1392 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1429 ac_aux_dir=
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1434 break
1435 elif test -f $ac_dir/install.sh; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1438 break
1439 elif test -f $ac_dir/shtool; then
1440 ac_aux_dir=$ac_dir
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1442 break
1444 done
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1460 # AIX /bin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 # Account for people who put trailing slashes in PATH elements.
1479 case $as_dir/ in
1480 ./ | .// | /cC/* | \
1481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483 /usr/ucb/* ) ;;
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1487 # by default.
1488 for ac_prog in ginstall scoinst install; do
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1499 else
1500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501 break 3
1504 done
1505 done
1507 esac
1508 done
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL=$ac_cv_path_install
1514 else
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535 # Just in case
1536 sleep 1
1537 echo timestamp > conftest.file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1542 # directory).
1543 if (
1544 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1546 # -L didn't work.
1547 set X `ls -t $srcdir/configure conftest.file`
1549 rm -f conftest.file
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.file
1566 then
1567 # Ok.
1569 else
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE &&
1579 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE &&
1582 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF >conftest.sed
1586 s/[\\$]/&&/g;s/;s,x,x,$//
1587 _ACEOF
1588 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589 rm conftest.sed
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir=`cd $ac_aux_dir && pwd`
1594 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run="$MISSING --run "
1598 else
1599 am_missing_run=
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1609 # for two reasons:
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p='mkdir -p --'
1620 else
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1624 # exists.
1625 for d in ./-p ./--version;
1627 test -d $d && rmdir $d
1628 done
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p='$(mkinstalldirs)'
1632 else
1633 mkdir_p='$(install_sh) -d'
1637 for ac_prog in gawk mawk nawk awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 AWK=$ac_cv_prog_AWK
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1675 done
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 cat >conftest.make <<\_ACEOF
1684 all:
1685 @echo 'ac_maketemp="$(MAKE)"'
1686 _ACEOF
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_${ac_make}_set=yes
1691 else
1692 eval ac_cv_prog_make_${ac_make}_set=no
1694 rm -f conftest.make
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 SET_MAKE=
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE="MAKE=${MAKE-make}"
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1709 am__leading_dot=.
1710 else
1711 am__leading_dot=_
1713 rmdir .tst 2>/dev/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1727 else
1728 CYGPATH_W=echo
1733 # Define the identity of the package.
1734 PACKAGE='amule'
1735 VERSION='SVN'
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1747 # Some tools Automake needs.
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}strip; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1797 STRIP=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1801 else
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1808 ac_ct_STRIP=$STRIP
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1830 done
1831 done
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 STRIP=$ac_ct_STRIP
1846 else
1847 STRIP="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1854 # some platforms.
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR=${AMTAR-"${am_missing_run}tar"}
1859 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1867 ac_config_headers="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE=$enableval
1875 else
1876 USE_MAINTAINER_MODE=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE=
1884 MAINTAINER_MODE_FALSE='#'
1885 else
1886 MAINTAINER_MODE_TRUE='#'
1887 MAINTAINER_MODE_FALSE=
1890 MAINT=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 ac_cv_build_alias=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1920 build=$ac_cv_build
1921 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 ac_cv_host_alias=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias=$ac_cv_build_alias
1934 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1942 host=$ac_cv_host
1943 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1950 darwin*)
1951 SYS=darwin
1952 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS="-bind_at_load"
1954 touch src/Scanner.cpp
1956 openbsd*)
1957 SYS=openbsd
1958 LIBS="$LIBS -L/usr/local/lib"
1959 X11LIBS="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS="-D__OPENBSD__"
1962 *cygwin* | *mingw32*)
1963 SYS=win32
1964 MULECPPFLAGS="-DNOMINMAX"
1966 solaris*)
1967 SYS=solaris
1968 RESOLV_LIB="-lresolv -lnsl"
1969 X11LIBS="-lX11"
1970 LIBS="$LIBS -lrt"
1972 *netbsd*)
1973 SYS=netbsd
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 SYS=unknown
1983 esac
1985 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1986 if test ${SYS:-unknown} != win32; then
1988 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1989 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1990 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1992 MULELDFLAGS="$MULELDFLAGS -pthread"
1993 echo "$as_me:$LINENO: result: yes" >&5
1994 echo "${ECHO_T}yes" >&6
1996 else
1998 MULELDFLAGS="$MULELDFLAGS -lpthread"
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2010 mule_backup_CFLAGS="$CFLAGS"
2011 mule_backup_CXXFLAGS="$CXXFLAGS"
2012 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2013 ac_ext=cc
2014 ac_cpp='$CXXCPP $CPPFLAGS'
2015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CXX+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CXX"; then
2029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2047 CXX=$ac_cv_prog_CXX
2048 if test -n "$CXX"; then
2049 echo "$as_me:$LINENO: result: $CXX" >&5
2050 echo "${ECHO_T}$CXX" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$CXX" && break
2057 done
2059 if test -z "$CXX"; then
2060 ac_ct_CXX=$CXX
2061 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$ac_ct_CXX"; then
2071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CXX="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2089 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2090 if test -n "$ac_ct_CXX"; then
2091 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2092 echo "${ECHO_T}$ac_ct_CXX" >&6
2093 else
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2098 test -n "$ac_ct_CXX" && break
2099 done
2100 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2102 CXX=$ac_ct_CXX
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO:" \
2108 "checking for C++ compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2111 (eval $ac_compiler --version </dev/null >&5) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2116 (eval $ac_compiler -v </dev/null >&5) 2>&5
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); }
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 main ()
2138 return 0;
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2147 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2156 # resort.
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 ac_cv_exeext=
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 test -f "$ac_file" || continue
2165 case $ac_file in
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168 conftest.$ac_ext )
2169 # This is the source file.
2171 [ab].out )
2172 # We found the default executable, but exeext='' is most
2173 # certainly right.
2174 break;;
2175 *.* )
2176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2180 export ac_cv_exeext
2181 break;;
2183 break;;
2184 esac
2185 done
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C++ compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2204 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 cross_compiling=no
2215 else
2216 if test "$cross_compiling" = maybe; then
2217 cross_compiling=yes
2218 else
2219 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C++ compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 # `rm'.
2252 for ac_file in conftest.exe conftest conftest.*; do
2253 test -f "$ac_file" || continue
2254 case $ac_file in
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 export ac_cv_exeext
2258 break;;
2259 * ) break;;
2260 esac
2261 done
2262 else
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2276 ac_exeext=$EXEEXT
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2290 main ()
2294 return 0;
2296 _ACEOF
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 break;;
2308 esac
2309 done
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2340 main ()
2342 #ifndef __GNUC__
2343 choke me
2344 #endif
2347 return 0;
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_cxx_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 (eval $ac_try) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_compiler_gnu=yes
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 ac_compiler_gnu=no
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2383 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2385 GXX=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CXXFLAGS=${CXXFLAGS+set}
2387 ac_save_CXXFLAGS=$CXXFLAGS
2388 CXXFLAGS="-g"
2389 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2390 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cxx_g+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2402 main ()
2406 return 0;
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cxx_g=yes
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 ac_cv_prog_cxx_g=no
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2442 if test "$ac_test_CXXFLAGS" = set; then
2443 CXXFLAGS=$ac_save_CXXFLAGS
2444 elif test $ac_cv_prog_cxx_g = yes; then
2445 if test "$GXX" = yes; then
2446 CXXFLAGS="-g -O2"
2447 else
2448 CXXFLAGS="-g"
2450 else
2451 if test "$GXX" = yes; then
2452 CXXFLAGS="-O2"
2453 else
2454 CXXFLAGS=
2457 for ac_declaration in \
2458 '' \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2463 'void exit (int);'
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 $ac_declaration
2472 #include <stdlib.h>
2474 main ()
2476 exit (42);
2478 return 0;
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_cxx_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 continue
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 $ac_declaration
2519 main ()
2521 exit (42);
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 break
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 done
2556 rm -f conftest*
2557 if test -n "$ac_declaration"; then
2558 echo '#ifdef __cplusplus' >>confdefs.h
2559 echo $ac_declaration >>confdefs.h
2560 echo '#endif' >>confdefs.h
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 DEPDIR="${am__leading_dot}deps"
2570 ac_config_commands="$ac_config_commands depfiles"
2573 am_make=${MAKE-make}
2574 cat > confinc << 'END'
2575 am__doit:
2576 @echo done
2577 .PHONY: am__doit
2579 # If we don't find an include directive, just comment out the code.
2580 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2581 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2582 am__include="#"
2583 am__quote=
2584 _am_result=none
2585 # First try GNU make style include.
2586 echo "include confinc" > confmf
2587 # We grep out `Entering directory' and `Leaving directory'
2588 # messages which can occur if `w' ends up in MAKEFLAGS.
2589 # In particular we don't look at `^make:' because GNU make might
2590 # be invoked under some other name (usually "gmake"), in which
2591 # case it prints its new name instead of `make'.
2592 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2593 am__include=include
2594 am__quote=
2595 _am_result=GNU
2597 # Now try BSD make style include.
2598 if test "$am__include" = "#"; then
2599 echo '.include "confinc"' > confmf
2600 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2601 am__include=.include
2602 am__quote="\""
2603 _am_result=BSD
2608 echo "$as_me:$LINENO: result: $_am_result" >&5
2609 echo "${ECHO_T}$_am_result" >&6
2610 rm -f confinc confmf
2612 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2613 if test "${enable_dependency_tracking+set}" = set; then
2614 enableval="$enable_dependency_tracking"
2617 if test "x$enable_dependency_tracking" != xno; then
2618 am_depcomp="$ac_aux_dir/depcomp"
2619 AMDEPBACKSLASH='\'
2623 if test "x$enable_dependency_tracking" != xno; then
2624 AMDEP_TRUE=
2625 AMDEP_FALSE='#'
2626 else
2627 AMDEP_TRUE='#'
2628 AMDEP_FALSE=
2634 depcc="$CXX" am_compiler_list=
2636 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2637 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2638 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2642 # We make a subdir and do the tests there. Otherwise we can end up
2643 # making bogus files that we don't know about and never remove. For
2644 # instance it was reported that on HP-UX the gcc test will end up
2645 # making a dummy file named `D' -- because `-MD' means `put the output
2646 # in D'.
2647 mkdir conftest.dir
2648 # Copy depcomp to subdir because otherwise we won't find it if we're
2649 # using a relative directory.
2650 cp "$am_depcomp" conftest.dir
2651 cd conftest.dir
2652 # We will build objects and dependencies in a subdirectory because
2653 # it helps to detect inapplicable dependency modes. For instance
2654 # both Tru64's cc and ICC support -MD to output dependencies as a
2655 # side effect of compilation, but ICC will put the dependencies in
2656 # the current directory while Tru64 will put them in the object
2657 # directory.
2658 mkdir sub
2660 am_cv_CXX_dependencies_compiler_type=none
2661 if test "$am_compiler_list" = ""; then
2662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2664 for depmode in $am_compiler_list; do
2665 # Setup a source with many dependencies, because some compilers
2666 # like to wrap large dependency lists on column 80 (with \), and
2667 # we should not choose a depcomp mode which is confused by this.
2669 # We need to recreate these files for each test, as the compiler may
2670 # overwrite some of them when testing with obscure command lines.
2671 # This happens at least with the AIX C compiler.
2672 : > sub/conftest.c
2673 for i in 1 2 3 4 5 6; do
2674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2676 # Solaris 8's {/usr,}/bin/sh.
2677 touch sub/conftst$i.h
2678 done
2679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2681 case $depmode in
2682 nosideeffect)
2683 # after this tag, mechanisms are not by side-effect, so they'll
2684 # only be used when explicitly requested
2685 if test "x$enable_dependency_tracking" = xyes; then
2686 continue
2687 else
2688 break
2691 none) break ;;
2692 esac
2693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2694 # mode. It turns out that the SunPro C++ compiler does not properly
2695 # handle `-M -o', and we need to detect this.
2696 if depmode=$depmode \
2697 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2699 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2700 >/dev/null 2>conftest.err &&
2701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2702 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2704 # icc doesn't choke on unknown options, it will just issue warnings
2705 # or remarks (even with -Werror). So we grep stderr for any message
2706 # that says an option was ignored or not supported.
2707 # When given -MP, icc 7.0 and 7.1 complain thusly:
2708 # icc: Command line warning: ignoring option '-M'; no argument required
2709 # The diagnosis changed in icc 8.0:
2710 # icc: Command line remark: option '-MP' not supported
2711 if (grep 'ignoring option' conftest.err ||
2712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2713 am_cv_CXX_dependencies_compiler_type=$depmode
2714 break
2717 done
2719 cd ..
2720 rm -rf conftest.dir
2721 else
2722 am_cv_CXX_dependencies_compiler_type=none
2726 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2727 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2728 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2733 test "x$enable_dependency_tracking" != xno \
2734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2735 am__fastdepCXX_TRUE=
2736 am__fastdepCXX_FALSE='#'
2737 else
2738 am__fastdepCXX_TRUE='#'
2739 am__fastdepCXX_FALSE=
2743 ac_ext=cc
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2748 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2749 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2750 if test -z "$CXXCPP"; then
2751 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 # Double quotes because CXXCPP needs to be expanded
2755 for CXXCPP in "$CXX -E" "/lib/cpp"
2757 ac_preproc_ok=false
2758 for ac_cxx_preproc_warn_flag in '' yes
2760 # Use a header file that comes with gcc, so configuring glibc
2761 # with a fresh cross-compiler works.
2762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 # <limits.h> exists even on freestanding compilers.
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp. "Syntax error" is here to catch this case.
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #ifdef __STDC__
2773 # include <limits.h>
2774 #else
2775 # include <assert.h>
2776 #endif
2777 Syntax error
2778 _ACEOF
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev/null; then
2787 if test -s conftest.err; then
2788 ac_cpp_err=$ac_cxx_preproc_warn_flag
2789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2790 else
2791 ac_cpp_err=
2793 else
2794 ac_cpp_err=yes
2796 if test -z "$ac_cpp_err"; then
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Broken: fails on valid input.
2803 continue
2805 rm -f conftest.err conftest.$ac_ext
2807 # OK, works on sane cases. Now check whether non-existent headers
2808 # can be detected and how.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #include <ac_nonexistent.h>
2816 _ACEOF
2817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } >/dev/null; then
2825 if test -s conftest.err; then
2826 ac_cpp_err=$ac_cxx_preproc_warn_flag
2827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2828 else
2829 ac_cpp_err=
2831 else
2832 ac_cpp_err=yes
2834 if test -z "$ac_cpp_err"; then
2835 # Broken: success on invalid input.
2836 continue
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 # Passes both tests.
2842 ac_preproc_ok=:
2843 break
2845 rm -f conftest.err conftest.$ac_ext
2847 done
2848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2849 rm -f conftest.err conftest.$ac_ext
2850 if $ac_preproc_ok; then
2851 break
2854 done
2855 ac_cv_prog_CXXCPP=$CXXCPP
2858 CXXCPP=$ac_cv_prog_CXXCPP
2859 else
2860 ac_cv_prog_CXXCPP=$CXXCPP
2862 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2863 echo "${ECHO_T}$CXXCPP" >&6
2864 ac_preproc_ok=false
2865 for ac_cxx_preproc_warn_flag in '' yes
2867 # Use a header file that comes with gcc, so configuring glibc
2868 # with a fresh cross-compiler works.
2869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 # <limits.h> exists even on freestanding compilers.
2871 # On the NeXT, cc -E runs the code through the compiler's parser,
2872 # not just through cpp. "Syntax error" is here to catch this case.
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 #ifdef __STDC__
2880 # include <limits.h>
2881 #else
2882 # include <assert.h>
2883 #endif
2884 Syntax error
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_cxx_preproc_warn_flag
2896 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2897 else
2898 ac_cpp_err=
2900 else
2901 ac_cpp_err=yes
2903 if test -z "$ac_cpp_err"; then
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Broken: fails on valid input.
2910 continue
2912 rm -f conftest.err conftest.$ac_ext
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2923 _ACEOF
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_cxx_preproc_warn_flag
2934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2935 else
2936 ac_cpp_err=
2938 else
2939 ac_cpp_err=yes
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2943 continue
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Passes both tests.
2949 ac_preproc_ok=:
2950 break
2952 rm -f conftest.err conftest.$ac_ext
2954 done
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.$ac_ext
2957 if $ac_preproc_ok; then
2959 else
2960 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018 set dummy gcc; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="gcc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 echo "${ECHO_T}$ac_ct_CC" >&6
3047 else
3048 echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3052 CC=$ac_ct_CC
3053 else
3054 CC="$ac_cv_prog_CC"
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_CC"; then
3096 ac_ct_CC=$CC
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC="cc"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 echo "${ECHO_T}$ac_ct_CC" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3132 CC=$ac_ct_CC
3133 else
3134 CC="$ac_cv_prog_CC"
3138 if test -z "$CC"; then
3139 # Extract the first word of "cc", so it can be a program name with args.
3140 set dummy cc; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 ac_prog_rejected=no
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected=yes
3159 continue
3161 ac_cv_prog_CC="cc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3168 if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 echo "$as_me:$LINENO: result: $CC" >&5
3185 echo "${ECHO_T}$CC" >&6
3186 else
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6
3226 else
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3231 test -n "$CC" && break
3232 done
3234 if test -z "$CC"; then
3235 ac_ct_CC=$CC
3236 for ac_prog in cl
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 test -n "$ac_ct_CC" && break
3274 done
3276 CC=$ac_ct_CC
3282 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details." >&5
3284 echo "$as_me: error: no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3288 # Provide some information about the compiler.
3289 echo "$as_me:$LINENO:" \
3290 "checking for C compiler version" >&5
3291 ac_compiler=`set X $ac_compile; echo $2`
3292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3293 (eval $ac_compiler --version </dev/null >&5) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3298 (eval $ac_compiler -v </dev/null >&5) 2>&5
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); }
3308 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 main ()
3323 #ifndef __GNUC__
3324 choke me
3325 #endif
3328 return 0;
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_compiler_gnu=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ac_compiler_gnu=no
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 CFLAGS="-g"
3370 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3383 main ()
3387 return 0;
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_prog_cc_g=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_cv_prog_cc_g=no
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3427 CFLAGS="-g -O2"
3428 else
3429 CFLAGS="-g"
3431 else
3432 if test "$GCC" = yes; then
3433 CFLAGS="-O2"
3434 else
3435 CFLAGS=
3438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 ac_cv_prog_cc_stdc=no
3444 ac_save_CC=$CC
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <stdarg.h>
3452 #include <stdio.h>
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3459 char **p;
3460 int i;
3462 return p[i];
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3466 char *s;
3467 va_list v;
3468 va_start (v,p);
3469 s = g (p, va_arg (v,int));
3470 va_end (v);
3471 return s;
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std1 is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std1. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 # Don't try gcc -ansi; that turns off useful extensions and
3498 # breaks some systems' header files.
3499 # AIX -qlanglvl=ansi
3500 # Ultrix and OSF/1 -std1
3501 # HP-UX 10.20 and later -Ae
3502 # HP-UX older versions -Aa -D_HPUX_SOURCE
3503 # SVR4 -Xc -D__EXTENSIONS__
3504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC="$ac_save_CC $ac_arg"
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_cc_stdc=$ac_arg
3530 break
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext
3537 done
3538 rm -f conftest.$ac_ext conftest.$ac_objext
3539 CC=$ac_save_CC
3543 case "x$ac_cv_prog_cc_stdc" in
3544 x|xno)
3545 echo "$as_me:$LINENO: result: none needed" >&5
3546 echo "${ECHO_T}none needed" >&6 ;;
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3550 CC="$CC $ac_cv_prog_cc_stdc" ;;
3551 esac
3553 # Some people use a C++ compiler to compile C. Since we use `exit',
3554 # in C++ we need to declare it. In case someone uses the same compiler
3555 # for both compiling C and C++ we need to have the C++ compiler decide
3556 # the declaration of exit, since it's the most demanding environment.
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #ifndef __cplusplus
3559 choke me
3560 #endif
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 for ac_declaration in \
3585 '' \
3586 'extern "C" void std::exit (int) throw (); using std::exit;' \
3587 'extern "C" void std::exit (int); using std::exit;' \
3588 'extern "C" void exit (int) throw ();' \
3589 'extern "C" void exit (int);' \
3590 'void exit (int);'
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_declaration
3599 #include <stdlib.h>
3601 main ()
3603 exit (42);
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 continue
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_declaration
3646 main ()
3648 exit (42);
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 break
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682 done
3683 rm -f conftest*
3684 if test -n "$ac_declaration"; then
3685 echo '#ifdef __cplusplus' >>confdefs.h
3686 echo $ac_declaration >>confdefs.h
3687 echo '#endif' >>confdefs.h
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 depcc="$CC" am_compiler_list=
3704 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3706 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # in D'.
3715 mkdir conftest.dir
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3719 cd conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3725 # directory.
3726 mkdir sub
3728 am_cv_CC_dependencies_compiler_type=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 for depmode in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3740 : > sub/conftest.c
3741 for i in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3744 # Solaris 8's {/usr,}/bin/sh.
3745 touch sub/conftst$i.h
3746 done
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749 case $depmode in
3750 nosideeffect)
3751 # after this tag, mechanisms are not by side-effect, so they'll
3752 # only be used when explicitly requested
3753 if test "x$enable_dependency_tracking" = xyes; then
3754 continue
3755 else
3756 break
3759 none) break ;;
3760 esac
3761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3762 # mode. It turns out that the SunPro C++ compiler does not properly
3763 # handle `-M -o', and we need to detect this.
3764 if depmode=$depmode \
3765 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3767 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3768 >/dev/null 2>conftest.err &&
3769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772 # icc doesn't choke on unknown options, it will just issue warnings
3773 # or remarks (even with -Werror). So we grep stderr for any message
3774 # that says an option was ignored or not supported.
3775 # When given -MP, icc 7.0 and 7.1 complain thusly:
3776 # icc: Command line warning: ignoring option '-M'; no argument required
3777 # The diagnosis changed in icc 8.0:
3778 # icc: Command line remark: option '-MP' not supported
3779 if (grep 'ignoring option' conftest.err ||
3780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781 am_cv_CC_dependencies_compiler_type=$depmode
3782 break
3785 done
3787 cd ..
3788 rm -rf conftest.dir
3789 else
3790 am_cv_CC_dependencies_compiler_type=none
3794 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_TRUE=
3804 am__fastdepCC_FALSE='#'
3805 else
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3820 CPP=
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849 Syntax error
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862 else
3863 ac_cpp_err=
3865 else
3866 ac_cpp_err=yes
3868 if test -z "$ac_cpp_err"; then
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Broken: fails on valid input.
3875 continue
3877 rm -f conftest.err conftest.$ac_ext
3879 # OK, works on sane cases. Now check whether non-existent headers
3880 # can be detected and how.
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900 else
3901 ac_cpp_err=
3903 else
3904 ac_cpp_err=yes
3906 if test -z "$ac_cpp_err"; then
3907 # Broken: success on invalid input.
3908 continue
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3917 rm -f conftest.err conftest.$ac_ext
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3923 break
3926 done
3927 ac_cv_prog_CPP=$CPP
3930 CPP=$ac_cv_prog_CPP
3931 else
3932 ac_cv_prog_CPP=$CPP
3934 echo "$as_me:$LINENO: result: $CPP" >&5
3935 echo "${ECHO_T}$CPP" >&6
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3969 else
3970 ac_cpp_err=
3972 else
3973 ac_cpp_err=yes
3975 if test -z "$ac_cpp_err"; then
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Broken: fails on valid input.
3982 continue
3984 rm -f conftest.err conftest.$ac_ext
3986 # OK, works on sane cases. Now check whether non-existent headers
3987 # can be detected and how.
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev/null; then
4004 if test -s conftest.err; then
4005 ac_cpp_err=$ac_c_preproc_warn_flag
4006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007 else
4008 ac_cpp_err=
4010 else
4011 ac_cpp_err=yes
4013 if test -z "$ac_cpp_err"; then
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 # Passes both tests.
4021 ac_preproc_ok=:
4022 break
4024 rm -f conftest.err conftest.$ac_ext
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4031 else
4032 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4033 See \`config.log' for more details." >&5
4034 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&2;}
4036 { (exit 1); exit 1; }; }
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test "$cross_compiling" = yes; then
4046 ac_build_prefix=
4047 test -n "$build_alias" && ac_build_prefix=$build_alias-
4050 # Even if we're cross-compiling, we want a compiler here
4051 # that is not a cross-compiler.
4052 saved_cross=$cross_compiling
4053 cross_compiling=no
4055 ac_ext=c
4056 ac_cpp='$CPP $BUILD_CPPFLAGS'
4057 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 if test -n "$ac_build_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062 set dummy ${ac_build_prefix}gcc; ac_word=$2
4063 echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4065 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$BUILD_CC"; then
4069 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4087 BUILD_CC=$ac_cv_prog_BUILD_CC
4088 if test -n "$BUILD_CC"; then
4089 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4090 echo "${ECHO_T}$BUILD_CC" >&6
4091 else
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4097 if test -z "$ac_cv_prog_BUILD_CC"; then
4098 ac_ct_BUILD_CC=$BUILD_CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$ac_ct_BUILD_CC"; then
4107 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4125 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4126 if test -n "$ac_ct_BUILD_CC"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4128 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 BUILD_CC=$ac_ct_BUILD_CC
4135 else
4136 BUILD_CC="$ac_cv_prog_BUILD_CC"
4139 if test -z "$BUILD_CC"; then
4140 if test -n "$ac_build_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4142 set dummy ${ac_build_prefix}cc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$BUILD_CC"; then
4149 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4167 BUILD_CC=$ac_cv_prog_BUILD_CC
4168 if test -n "$BUILD_CC"; then
4169 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4170 echo "${ECHO_T}$BUILD_CC" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4177 if test -z "$ac_cv_prog_BUILD_CC"; then
4178 ac_ct_BUILD_CC=$BUILD_CC
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test -n "$ac_ct_BUILD_CC"; then
4187 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_BUILD_CC="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4205 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4206 if test -n "$ac_ct_BUILD_CC"; then
4207 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4208 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4209 else
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4214 BUILD_CC=$ac_ct_BUILD_CC
4215 else
4216 BUILD_CC="$ac_cv_prog_BUILD_CC"
4220 if test -z "$BUILD_CC"; then
4221 # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$BUILD_CC"; then
4229 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4230 else
4231 ac_prog_rejected=no
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4240 ac_prog_rejected=yes
4241 continue
4243 ac_cv_prog_BUILD_CC="cc"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4250 if test $ac_prog_rejected = yes; then
4251 # We found a bogon in the path, so make sure we never use it.
4252 set dummy $ac_cv_prog_BUILD_CC
4253 shift
4254 if test $# != 0; then
4255 # We chose a different compiler from the bogus one.
4256 # However, it has the same basename, so the bogon will be chosen
4257 # first if we set BUILD_CC to just the basename; use the full file name.
4258 shift
4259 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4264 BUILD_CC=$ac_cv_prog_BUILD_CC
4265 if test -n "$BUILD_CC"; then
4266 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4267 echo "${ECHO_T}$BUILD_CC" >&6
4268 else
4269 echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4274 if test -z "$BUILD_CC"; then
4275 if test -n "$ac_build_prefix"; then
4276 for ac_prog in cl
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4304 BUILD_CC=$ac_cv_prog_BUILD_CC
4305 if test -n "$BUILD_CC"; then
4306 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4307 echo "${ECHO_T}$BUILD_CC" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4313 test -n "$BUILD_CC" && break
4314 done
4316 if test -z "$BUILD_CC"; then
4317 ac_ct_BUILD_CC=$BUILD_CC
4318 for ac_prog in cl
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -n "$ac_ct_BUILD_CC"; then
4328 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4346 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4347 if test -n "$ac_ct_BUILD_CC"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4349 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4350 else
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 test -n "$ac_ct_BUILD_CC" && break
4356 done
4358 BUILD_CC=$ac_ct_BUILD_CC
4364 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details." >&5
4366 echo "$as_me: error: no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Provide some information about the compiler.
4371 echo "$as_me:$LINENO:" \
4372 "checking for C compiler version" >&5
4373 ac_compiler=`set X $ac_compile; echo $2`
4374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4375 (eval $ac_compiler --version </dev/null >&5) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4380 (eval $ac_compiler -v </dev/null >&5) 2>&5
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); }
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4398 main ()
4402 return 0;
4404 _ACEOF
4405 ac_clean_files_save=$ac_clean_files
4406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4407 # Try to create an executable without -o first, disregard a.out.
4408 # It will help us diagnose broken compilers, and finding out an intuition
4409 # of exeext.
4410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4414 (eval $ac_link_default) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; then
4418 # Find the output, starting from the most likely. This scheme is
4419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4420 # resort.
4422 # Be careful to initialize this variable, since it used to be cached.
4423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4424 ac_cv_build_exeext=
4425 # b.out is created by i960 compilers.
4426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4428 test -f "$ac_file" || continue
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4432 conftest.$ac_ext )
4433 # This is the source file.
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 # FIXME: I believe we export ac_cv_exeext for Libtool,
4442 # but it would be cool to find out if it's true. Does anybody
4443 # maintain Libtool? --akim.
4444 export ac_cv_build_exeext
4445 break;;
4447 break;;
4448 esac
4449 done
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&2;}
4458 { (exit 77); exit 77; }; }
4461 ac_build_exeext=$ac_cv_build_exeext
4462 echo "$as_me:$LINENO: result: $ac_file" >&5
4463 echo "${ECHO_T}$ac_file" >&6
4465 # Check the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472 if { ac_try='./$ac_file'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 cross_compiling=no
4479 else
4480 if test "$cross_compiling" = maybe; then
4481 cross_compiling=yes
4482 else
4483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6
4496 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4497 ac_clean_files=$ac_clean_files_save
4498 # Check the compiler produces executables we can run. If not, either
4499 # the compiler is broken, or we cross compile.
4500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6
4505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4514 # work properly (i.e., refer to `conftest.exe'), while it won't with
4515 # `rm'.
4516 for ac_file in conftest.exe conftest conftest.*; do
4517 test -f "$ac_file" || continue
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4520 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4521 export ac_cv_build_exeext
4522 break;;
4523 * ) break;;
4524 esac
4525 done
4526 else
4527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4530 See \`config.log' for more details." >&2;}
4531 { (exit 1); exit 1; }; }
4534 rm -f conftest$ac_cv_build_exeext
4535 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4536 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4538 rm -f conftest.$ac_ext
4539 BUILD_EXEEXT=$ac_cv_build_exeext
4540 ac_build_exeext=$BUILD_EXEEXT
4543 # Restore configuration environment
4544 cross_compiling=$saved_cross
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 else
4553 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4556 CFLAGS="$mule_backup_CFLAGS"
4557 CXXFLAGS="$mule_backup_CXXFLAGS"
4558 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4559 for ac_prog in gawk mawk nawk awk
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_AWK+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$AWK"; then
4569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_AWK="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4587 AWK=$ac_cv_prog_AWK
4588 if test -n "$AWK"; then
4589 echo "$as_me:$LINENO: result: $AWK" >&5
4590 echo "${ECHO_T}$AWK" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$AWK" && break
4597 done
4599 echo "$as_me:$LINENO: checking for egrep" >&5
4600 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4601 if test "${ac_cv_prog_egrep+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4605 then ac_cv_prog_egrep='grep -E'
4606 else ac_cv_prog_egrep='egrep'
4609 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4610 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4611 EGREP=$ac_cv_prog_egrep
4614 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4616 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4617 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.make <<\_ACEOF
4621 all:
4622 @echo 'ac_maketemp="$(MAKE)"'
4623 _ACEOF
4624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4625 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4626 if test -n "$ac_maketemp"; then
4627 eval ac_cv_prog_make_${ac_make}_set=yes
4628 else
4629 eval ac_cv_prog_make_${ac_make}_set=no
4631 rm -f conftest.make
4633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636 SET_MAKE=
4637 else
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 SET_MAKE="MAKE=${MAKE-make}"
4644 for ac_prog in flex lex
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_LEX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 if test -n "$LEX"; then
4654 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_LEX="$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4672 LEX=$ac_cv_prog_LEX
4673 if test -n "$LEX"; then
4674 echo "$as_me:$LINENO: result: $LEX" >&5
4675 echo "${ECHO_T}$LEX" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4681 test -n "$LEX" && break
4682 done
4683 test -n "$LEX" || LEX=":"
4685 if test -z "$LEXLIB"
4686 then
4687 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4688 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4689 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 ac_check_lib_save_LIBS=$LIBS
4693 LIBS="-lfl $LIBS"
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 #ifdef __cplusplus
4703 extern "C"
4704 #endif
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707 char yywrap ();
4709 main ()
4711 yywrap ();
4713 return 0;
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718 (eval $ac_link) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_fl_yywrap=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_cv_lib_fl_yywrap=no
4745 rm -f conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
4747 LIBS=$ac_check_lib_save_LIBS
4749 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4750 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4751 if test $ac_cv_lib_fl_yywrap = yes; then
4752 LEXLIB="-lfl"
4753 else
4754 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4755 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4756 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759 ac_check_lib_save_LIBS=$LIBS
4760 LIBS="-ll $LIBS"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 #ifdef __cplusplus
4770 extern "C"
4771 #endif
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4774 char yywrap ();
4776 main ()
4778 yywrap ();
4780 return 0;
4782 _ACEOF
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785 (eval $ac_link) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest$ac_exeext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_lib_l_yywrap=yes
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 ac_cv_lib_l_yywrap=no
4812 rm -f conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4817 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4818 if test $ac_cv_lib_l_yywrap = yes; then
4819 LEXLIB="-ll"
4826 if test "x$LEX" != "x:"; then
4827 echo "$as_me:$LINENO: checking lex output file root" >&5
4828 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4829 if test "${ac_cv_prog_lex_root+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 # The minimal lex program is just a single line: %%. But some broken lexes
4833 # (Solaris, I think it was) want two %% lines, so accommodate them.
4834 cat >conftest.l <<_ACEOF
4837 _ACEOF
4838 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4839 (eval $LEX conftest.l) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }
4843 if test -f lex.yy.c; then
4844 ac_cv_prog_lex_root=lex.yy
4845 elif test -f lexyy.c; then
4846 ac_cv_prog_lex_root=lexyy
4847 else
4848 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4849 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4850 { (exit 1); exit 1; }; }
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4854 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4855 rm -f conftest.l
4856 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4858 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4859 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4860 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 # POSIX says lex can declare yytext either as a pointer or an array; the
4864 # default is implementation-dependent. Figure out which it is, since
4865 # not all implementations provide the %pointer and %array declarations.
4866 ac_cv_prog_lex_yytext_pointer=no
4867 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4868 ac_save_LIBS=$LIBS
4869 LIBS="$LIBS $LEXLIB"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 `cat $LEX_OUTPUT_ROOT.c`
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_prog_lex_yytext_pointer=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -f conftest.err conftest.$ac_objext \
4902 conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_save_LIBS
4904 rm -f "${LEX_OUTPUT_ROOT}.c"
4907 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4908 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4909 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define YYTEXT_POINTER 1
4913 _ACEOF
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4924 # AIX /bin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943 case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4955 if test $ac_prog = install &&
4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4963 else
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4968 done
4969 done
4971 esac
4972 done
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL=$ac_cv_path_install
4978 else
4979 # As a last resort, use the slow shell script. We don't cache a
4980 # path for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the path is relative.
4983 INSTALL=$ac_install_sh
4986 echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB=$ac_ct_RANLIB
5073 else
5074 RANLIB="$ac_cv_prog_RANLIB"
5077 for ac_prog in 'bison -y' byacc
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_YACC+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test -n "$YACC"; then
5087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_YACC="$ac_prog"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5105 YACC=$ac_cv_prog_YACC
5106 if test -n "$YACC"; then
5107 echo "$as_me:$LINENO: result: $YACC" >&5
5108 echo "${ECHO_T}$YACC" >&6
5109 else
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 test -n "$YACC" && break
5115 done
5116 test -n "$YACC" || YACC="yacc"
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_RANLIB+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$RANLIB"; then
5128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5146 RANLIB=$ac_cv_prog_RANLIB
5147 if test -n "$RANLIB"; then
5148 echo "$as_me:$LINENO: result: $RANLIB" >&5
5149 echo "${ECHO_T}$RANLIB" >&6
5150 else
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5156 if test -z "$ac_cv_prog_RANLIB"; then
5157 ac_ct_RANLIB=$RANLIB
5158 # Extract the first word of "ranlib", so it can be a program name with args.
5159 set dummy ranlib; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$ac_ct_RANLIB"; then
5166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_RANLIB="ranlib"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB=$ac_ct_RANLIB
5194 else
5195 RANLIB="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}strip; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5225 STRIP=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5236 ac_ct_STRIP=$STRIP
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5264 if test -n "$ac_ct_STRIP"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5266 echo "${ECHO_T}$ac_ct_STRIP" >&6
5267 else
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 STRIP=$ac_ct_STRIP
5273 else
5274 STRIP="$ac_cv_prog_STRIP"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}ar; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_AR+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if test -n "$AR"; then
5286 ac_cv_prog_AR="$AR" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_AR="${ac_tool_prefix}ar"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5304 AR=$ac_cv_prog_AR
5305 if test -n "$AR"; then
5306 echo "$as_me:$LINENO: result: $AR" >&5
5307 echo "${ECHO_T}$AR" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_AR"; then
5315 ac_ct_AR=$AR
5316 # Extract the first word of "ar", so it can be a program name with args.
5317 set dummy ar; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$ac_ct_AR"; then
5324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_AR="ar"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5342 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5343 if test -n "$ac_ct_AR"; then
5344 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5345 echo "${ECHO_T}$ac_ct_AR" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 AR=$ac_ct_AR
5352 else
5353 AR="$ac_cv_prog_AR"
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ld; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_LD+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$LD"; then
5365 ac_cv_prog_LD="$LD" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_LD="${ac_tool_prefix}ld"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5383 LD=$ac_cv_prog_LD
5384 if test -n "$LD"; then
5385 echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5393 if test -z "$ac_cv_prog_LD"; then
5394 ac_ct_LD=$LD
5395 # Extract the first word of "ld", so it can be a program name with args.
5396 set dummy ld; ac_word=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 if test -n "$ac_ct_LD"; then
5403 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_ac_ct_LD="ld"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5421 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5422 if test -n "$ac_ct_LD"; then
5423 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5424 echo "${ECHO_T}$ac_ct_LD" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5430 LD=$ac_ct_LD
5431 else
5432 LD="$ac_cv_prog_LD"
5436 # Check whether --enable-monolithic or --disable-monolithic was given.
5437 if test "${enable_monolithic+set}" = set; then
5438 enableval="$enable_monolithic"
5439 MONOLITHIC=$enableval
5440 else
5441 MONOLITHIC=yes
5444 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5445 if test "${enable_amule_daemon+set}" = set; then
5446 enableval="$enable_amule_daemon"
5447 AMULE_DAEMON=$enableval
5448 else
5449 AMULE_DAEMON=no
5452 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5453 if test "${enable_amulecmd+set}" = set; then
5454 enableval="$enable_amulecmd"
5455 AMULECMD=$enableval
5456 else
5457 AMULECMD=no
5460 # Check whether --enable-webserver or --disable-webserver was given.
5461 if test "${enable_webserver+set}" = set; then
5462 enableval="$enable_webserver"
5463 WEB=$enableval
5464 else
5465 WEB=no
5468 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5469 if test "${enable_amule_gui+set}" = set; then
5470 enableval="$enable_amule_gui"
5471 AMULE_GUI=$enableval
5472 else
5473 AMULE_GUI=no
5476 # Check whether --enable-cas or --disable-cas was given.
5477 if test "${enable_cas+set}" = set; then
5478 enableval="$enable_cas"
5479 CAS=$enableval
5480 else
5481 CAS=no
5484 # Check whether --enable-wxcas or --disable-wxcas was given.
5485 if test "${enable_wxcas+set}" = set; then
5486 enableval="$enable_wxcas"
5487 WXCAS=$enableval
5488 else
5489 WXCAS=no
5492 # Check whether --enable-ed2k or --disable-ed2k was given.
5493 if test "${enable_ed2k+set}" = set; then
5494 enableval="$enable_ed2k"
5495 ED2K=$enableval
5496 else
5497 ED2K=yes
5500 # Check whether --enable-alc or --disable-alc was given.
5501 if test "${enable_alc+set}" = set; then
5502 enableval="$enable_alc"
5503 ALC=$enableval
5504 else
5505 ALC=no
5508 # Check whether --enable-alcc or --disable-alcc was given.
5509 if test "${enable_alcc+set}" = set; then
5510 enableval="$enable_alcc"
5511 ALCC=$enableval
5512 else
5513 ALCC=no
5516 # Check whether --enable-monolithic or --disable-monolithic was given.
5517 if test "${enable_monolithic+set}" = set; then
5518 enableval="$enable_monolithic"
5519 MONOLITHIC=$enableval
5520 else
5521 MONOLITHIC=yes
5524 # Check whether --enable-upnp or --disable-upnp was given.
5525 if test "${enable_upnp+set}" = set; then
5526 enableval="$enable_upnp"
5527 ENABLE_UPNP=$enableval
5528 else
5529 ENABLE_UPNP=yes
5532 # Check whether --enable-xas or --disable-xas was given.
5533 if test "${enable_xas+set}" = set; then
5534 enableval="$enable_xas"
5535 XAS=$enableval
5536 else
5537 XAS=yes
5540 # Check whether --enable-geoip or --disable-geoip was given.
5541 if test "${enable_geoip+set}" = set; then
5542 enableval="$enable_geoip"
5543 ENABLE_IP2COUNTRY=$enableval
5544 else
5545 ENABLE_IP2COUNTRY=no
5548 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
5549 GEOIP_LIBS="-lGeoIP"
5554 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5555 if test "${with_geoip_headers+set}" = set; then
5556 withval="$with_geoip_headers"
5557 GEOIP_CPPFLAGS="-I$withval"
5561 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5562 if test "${with_geoip_lib+set}" = set; then
5563 withval="$with_geoip_lib"
5564 GEOIP_LDFLAGS="-L$withval"
5568 # Check whether --with-geoip-static or --without-geoip-static was given.
5569 if test "${with_geoip_static+set}" = set; then
5570 withval="$with_geoip_static"
5571 if test "$withval" != "no"; then
5572 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5577 # Default is yes, because they're most likely compatible.
5578 # However, this is only used when cross-compiling.
5580 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5581 if test "${with_gnu_malloc+set}" = set; then
5582 withval="$with_gnu_malloc"
5583 gnumalloc=$withval
5584 else
5585 gnumalloc=yes
5589 # Checking for libs before all other stuff to break
5590 # configure as soon as possible in case of a missing one
5591 # to avoid losing too much time
5593 # Check for zlib
5596 # Check whether --with-zlib or --without-zlib was given.
5597 if test "${with_zlib+set}" = set; then
5598 withval="$with_zlib"
5602 case "${with_zlib:-yes}" in
5604 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5605 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5606 { (exit 1); exit 1; }; }
5608 yes | sys)
5611 zlib_prefix="$with_zlib"
5612 esac
5614 mule_backup_CPPFLAGS="$CPPFLAGS"
5615 mule_backup_LDFLAGS="$LDFLAGS"
5616 mule_backup_LIBS="$LIBS"
5617 if test -n "$zlib_prefix"; then
5619 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5620 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5621 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5622 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5624 else
5626 ZLIB_CPPFLAGS=
5627 ZLIB_LDFLAGS=
5631 ZLIB_LIBS="-lz"
5632 LIBS="$ZLIB_LIBS $LIBS"
5634 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5635 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5636 if test "$cross_compiling" = yes; then
5638 result=no
5639 z_version=
5640 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5648 #include <zlib.h>
5649 #include <stdio.h>
5652 main ()
5655 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5656 zlibVersion();
5659 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest$ac_exeext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5686 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5687 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5688 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5689 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5690 if test "$cross_zver_max" -gt "1"; then
5691 result=yes
5692 elif test "$cross_zver_max" -eq "1"; then
5694 if test "$cross_zver_mid" -gt "1"; then
5695 result=yes
5696 elif test "$cross_zver_mid" -eq "1"; then
5697 if test "$cross_zver_min" -ge "4"; then
5698 result=yes
5706 if test ${result:-no} = yes; then
5707 z_version=" (version $ZLIB_VERSION)"
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5716 rm -f conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 echo "$as_me:$LINENO: result: $result$z_version" >&5
5719 echo "${ECHO_T}$result$z_version" >&6
5721 else
5722 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5730 #include <zlib.h>
5731 #include <stdio.h>
5734 main ()
5736 char *zver = zlibVersion();
5737 FILE *f=fopen("conftestval", "w");
5738 if (!f) return 1;
5739 fprintf(f, "%s",
5740 zver[0] > '1' ||
5741 (zver[0] == '1' &&
5742 (zver[2] > '1' ||
5743 (zver[2] == '1' &&
5744 zver[4] >= '4'))) ? "yes" : "no");
5745 fclose(f);
5746 f=fopen("conftestver", "w");
5747 if (f) {
5748 fprintf(f, "%s", ZLIB_VERSION);
5749 fclose(f);
5753 return 0;
5756 _ACEOF
5757 rm -f conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5769 if test -f conftestval; then
5770 result=`cat conftestval`
5771 else
5772 result=no
5775 if test ${result:-no} = yes; then
5777 if test -f conftestver; then
5779 ZLIB_VERSION=`cat conftestver`
5780 z_version=" (version $ZLIB_VERSION)"
5782 else
5783 z_version=
5789 echo "$as_me:$LINENO: result: $result$z_version" >&5
5790 echo "${ECHO_T}$result$z_version" >&6
5792 else
5793 echo "$as_me: program exited with status $ac_status" >&5
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ( exit $ac_status )
5799 result=no
5800 echo "$as_me:$LINENO: result: $result" >&5
5801 echo "${ECHO_T}$result" >&6
5804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807 CPPFLAGS="$mule_backup_CPPFLAGS"
5808 LDFLAGS="$mule_backup_LDFLAGS"
5809 LIBS="$mule_backup_LIBS"
5811 if test ${result:-no} = no; then
5813 ZLIB_CPPFLAGS=
5814 ZLIB_LDFLAGS=
5815 ZLIB_LIBS=
5816 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5817 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5818 { (exit 1); exit 1; }; }
5825 if test x$CAS = xyes; then
5827 # Check for gd
5829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdc+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <stdlib.h>
5841 #include <stdarg.h>
5842 #include <string.h>
5843 #include <float.h>
5846 main ()
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_header_stdc=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_header_stdc=no
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <string.h>
5894 _ACEOF
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "memchr" >/dev/null 2>&1; then
5898 else
5899 ac_cv_header_stdc=no
5901 rm -f conftest*
5905 if test $ac_cv_header_stdc = yes; then
5906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <stdlib.h>
5915 _ACEOF
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "free" >/dev/null 2>&1; then
5919 else
5920 ac_cv_header_stdc=no
5922 rm -f conftest*
5926 if test $ac_cv_header_stdc = yes; then
5927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928 if test "$cross_compiling" = yes; then
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <ctype.h>
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 #else
5942 # define ISLOWER(c) \
5943 (('a' <= (c) && (c) <= 'i') \
5944 || ('j' <= (c) && (c) <= 'r') \
5945 || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5947 #endif
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5951 main ()
5953 int i;
5954 for (i = 0; i < 256; i++)
5955 if (XOR (islower (i), ISLOWER (i))
5956 || toupper (i) != TOUPPER (i))
5957 exit(2);
5958 exit (0);
5960 _ACEOF
5961 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5973 else
5974 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ( exit $ac_status )
5979 ac_cv_header_stdc=no
5981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
5991 _ACEOF
5995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6006 inttypes.h stdint.h unistd.h
6008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6022 #include <$ac_header>
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 eval "$as_ac_Header=yes"
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6051 eval "$as_ac_Header=no"
6053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6058 cat >>confdefs.h <<_ACEOF
6059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6060 _ACEOF
6064 done
6069 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6070 if test "${with_gdlib_prefix+set}" = set; then
6071 withval="$with_gdlib_prefix"
6075 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6076 if test "${with_gdlib_config+set}" = set; then
6077 withval="$with_gdlib_config"
6081 GDLIB_VERSION=
6083 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6084 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6085 GDLIB_CONFIG_NAME=gdlib-config
6088 if test -n "$with_gdlib_config"; then
6089 GDLIB_CONFIG_NAME="$with_gdlib_config"
6093 # deal with optional prefix
6094 if test -n "$with_gdlib_prefix"; then
6095 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6099 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6100 if test -x "$GDLIB_CONFIG_NAME"; then
6102 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6103 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6104 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6105 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6106 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6108 else
6109 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6110 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6111 echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 case $GDLIB_CONFIG_PATH in
6117 [\\/]* | ?:[\\/]*)
6118 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6123 for as_dir in $as_dummy
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6133 done
6134 done
6136 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6138 esac
6140 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6142 if test -n "$GDLIB_CONFIG_PATH"; then
6143 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6144 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6153 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6155 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6156 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6157 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6159 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6160 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6161 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6162 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6164 gdlib_ver_ok=
6165 if test $gdlib_config_major_version -gt 2; then
6166 gdlib_ver_ok=yes
6167 elif test $gdlib_config_major_version -eq 2; then
6169 if test $gdlib_config_minor_version -gt 0; then
6170 gdlib_ver_ok=yes
6171 elif test $gdlib_config_minor_version -eq 0; then
6172 if test $gdlib_config_micro_version -ge 0; then
6173 gdlib_ver_ok=yes
6182 if test -z "$gdlib_ver_ok"; then
6184 if test -z "$GDLIB_VERSION"; then
6185 echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6187 else
6189 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6190 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6191 GDLIB_VERSION=
6196 else
6198 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6199 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6200 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6201 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6202 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6203 mule_backup_CFLAGS="$CFLAGS"
6204 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6205 if test "${ac_cv_header_gd_h+set}" = set; then
6206 echo "$as_me:$LINENO: checking for gd.h" >&5
6207 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6208 if test "${ac_cv_header_gd_h+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6212 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6213 else
6214 # Is the header compilable?
6215 echo "$as_me:$LINENO: checking gd.h usability" >&5
6216 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6224 #include <gd.h>
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_header_compiler=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_header_compiler=no
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6257 echo "${ECHO_T}$ac_header_compiler" >&6
6259 # Is the header present?
6260 echo "$as_me:$LINENO: checking gd.h presence" >&5
6261 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include <gd.h>
6269 _ACEOF
6270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null; then
6278 if test -s conftest.err; then
6279 ac_cpp_err=$ac_c_preproc_warn_flag
6280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6281 else
6282 ac_cpp_err=
6284 else
6285 ac_cpp_err=yes
6287 if test -z "$ac_cpp_err"; then
6288 ac_header_preproc=yes
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_header_preproc=no
6295 rm -f conftest.err conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6297 echo "${ECHO_T}$ac_header_preproc" >&6
6299 # So? What about this header?
6300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6301 yes:no: )
6302 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6303 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6305 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6306 ac_header_preproc=yes
6308 no:yes:* )
6309 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6310 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6312 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6314 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6316 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6318 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6320 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6322 cat <<\_ASBOX
6323 ## ------------------------------ ##
6324 ## Report this to admin@amule.org ##
6325 ## ------------------------------ ##
6326 _ASBOX
6328 sed "s/^/$as_me: WARNING: /" >&2
6330 esac
6331 echo "$as_me:$LINENO: checking for gd.h" >&5
6332 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6333 if test "${ac_cv_header_gd_h+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 ac_cv_header_gd_h=$ac_header_preproc
6338 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6339 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6342 if test $ac_cv_header_gd_h = yes; then
6344 else
6345 GDLIB_VERSION=
6349 CFLAGS="$mule_backup_CFLAGS"
6357 if test -n "$GDLIB_VERSION"; then
6359 CAS_DEFS="-D__GD__"
6360 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6362 else
6363 CAS_DEFS=
6369 if test -z "$CAS_DEFS"; then
6371 { echo "$as_me:$LINENO: WARNING:
6372 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6373 Please check that gdlib-config is in your default path, check out
6374 LD_LIBRARY_PATH or equivalent variable.
6375 Or this might also be that your gdlib-config has other name.
6376 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6377 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6378 If you use compiled packages check if you have devel pack installed.
6379 To download the latest version check http://www.boutell.com/gd
6380 for sources." >&5
6381 echo "$as_me: WARNING:
6382 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6383 Please check that gdlib-config is in your default path, check out
6384 LD_LIBRARY_PATH or equivalent variable.
6385 Or this might also be that your gdlib-config has other name.
6386 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6387 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6388 If you use compiled packages check if you have devel pack installed.
6389 To download the latest version check http://www.boutell.com/gd
6390 for sources." >&2;}
6395 else
6396 GDLIB_VERSION="not_needed"
6401 if test x$WEB = xyes; then
6404 for ac_header in sys/types.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 else
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <$ac_header>
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_header_compiler=no
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <$ac_header>
6471 _ACEOF
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 else
6484 ac_cpp_err=
6486 else
6487 ac_cpp_err=yes
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6491 else
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_preproc=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 yes:no: )
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
6510 no:yes:* )
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6524 cat <<\_ASBOX
6525 ## ------------------------------ ##
6526 ## Report this to admin@amule.org ##
6527 ## ------------------------------ ##
6528 _ASBOX
6530 sed "s/^/$as_me: WARNING: /" >&2
6532 esac
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538 eval "$as_ac_Header=\$ac_header_preproc"
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6551 done
6553 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6554 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6555 regex_found=no
6556 for REGEX_LIBS in '' -lgnurx -lregex; do
6557 mule_backup_LIBS="$LIBS"
6558 LIBS="$REGEX_LIBS $LIBS"
6559 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 #ifdef HAVE_SYS_TYPES_H
6568 # include <sys/types.h>
6569 #endif
6570 #include <regex.h>
6573 main ()
6576 regex_t preg;
6577 regcomp(&preg, "", REG_EXTENDED);
6578 regmatch_t *pmatch;
6579 regexec(&preg, "", 0, pmatch, 0);
6580 regfree(&preg);
6583 return 0;
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6610 LIBS="$mule_backup_LIBS"
6611 regex_found=yes
6612 break;
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 LIBS="$mule_backup_LIBS"
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 done
6623 echo "$as_me:$LINENO: result: $regex_found" >&5
6624 echo "${ECHO_T}$regex_found" >&6
6625 if test $regex_found = yes; then
6627 else
6628 WEB=disabled
6634 if test x$WEB = xyes; then
6637 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6638 if test "${with_libpng_prefix+set}" = set; then
6639 withval="$with_libpng_prefix"
6643 # Check whether --with-libpng-config or --without-libpng-config was given.
6644 if test "${with_libpng_config+set}" = set; then
6645 withval="$with_libpng_config"
6649 LIBPNG_VERSION=
6651 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6652 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6653 LIBPNG_CONFIG_NAME=libpng-config
6656 if test -n "$with_libpng_config"; then
6657 LIBPNG_CONFIG_NAME="$with_libpng_config"
6661 # deal with optional prefix
6662 if test -n "$with_libpng_prefix"; then
6663 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6667 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6668 if test -x "$LIBPNG_CONFIG_NAME"; then
6670 echo "$as_me:$LINENO: checking for libpng-config" >&5
6671 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6672 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6673 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6674 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6676 else
6677 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6678 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6679 echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6681 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 case $LIBPNG_CONFIG_PATH in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6691 for as_dir in $as_dummy
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6704 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6706 esac
6708 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6710 if test -n "$LIBPNG_CONFIG_PATH"; then
6711 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6712 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6713 else
6714 echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6
6721 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6723 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6724 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6726 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6728 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6729 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6730 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6731 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6733 libpng_ver_ok=
6734 if test $libpng_config_major_version -gt 1; then
6735 libpng_ver_ok=yes
6736 elif test $libpng_config_major_version -eq 1; then
6738 if test $libpng_config_minor_version -gt 2; then
6739 libpng_ver_ok=yes
6740 elif test $libpng_config_minor_version -eq 2; then
6741 if test $libpng_config_micro_version -ge 0; then
6742 libpng_ver_ok=yes
6751 if test -z "$libpng_ver_ok"; then
6753 if test -z "$LIBPNG_VERSION"; then
6754 echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6
6756 else
6758 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6759 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6760 LIBPNG_VERSION=
6765 else
6767 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6768 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6769 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6770 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6771 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6776 else
6778 # Try hard to find a usable libpng
6779 # Some RedHat RPMs miss libpng-config, so test for
6780 # the usability with default options.
6781 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6782 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6783 mule_backup_LIBS="$LIBS"
6784 LIBS="-lpng -lz -lm $LIBS"
6785 if test "$cross_compiling" = yes; then
6787 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6788 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6789 if test "${ac_cv_header_png_h+set}" = set; then
6790 echo "$as_me:$LINENO: checking for png.h" >&5
6791 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6792 if test "${ac_cv_header_png_h+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6796 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6797 else
6798 # Is the header compilable?
6799 echo "$as_me:$LINENO: checking png.h usability" >&5
6800 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <png.h>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_header_compiler=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_header_compiler=no
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6841 echo "${ECHO_T}$ac_header_compiler" >&6
6843 # Is the header present?
6844 echo "$as_me:$LINENO: checking png.h presence" >&5
6845 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <png.h>
6853 _ACEOF
6854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } >/dev/null; then
6862 if test -s conftest.err; then
6863 ac_cpp_err=$ac_c_preproc_warn_flag
6864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6865 else
6866 ac_cpp_err=
6868 else
6869 ac_cpp_err=yes
6871 if test -z "$ac_cpp_err"; then
6872 ac_header_preproc=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_header_preproc=no
6879 rm -f conftest.err conftest.$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6885 yes:no: )
6886 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc=yes
6892 no:yes:* )
6893 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6906 cat <<\_ASBOX
6907 ## ------------------------------ ##
6908 ## Report this to admin@amule.org ##
6909 ## ------------------------------ ##
6910 _ASBOX
6912 sed "s/^/$as_me: WARNING: /" >&2
6914 esac
6915 echo "$as_me:$LINENO: checking for png.h" >&5
6916 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6917 if test "${ac_cv_header_png_h+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 ac_cv_header_png_h=$ac_header_preproc
6922 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6923 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6926 if test $ac_cv_header_png_h = yes; then
6928 LIBPNG_VERSION="detected"
6929 LIBPNG_LIBS="-lpng -lz -lm"
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6944 #include <png.h>
6945 #include <stdio.h>
6947 /* Check linking to png library */
6948 void dummy() {
6949 png_check_sig(NULL, 0);
6953 main ()
6955 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6956 FILE *f=fopen("conftestval", "w");
6957 if (!f) exit(1);
6958 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6959 fclose(f);
6960 f=fopen("conftestver", "w");
6961 if (!f) exit(0);
6962 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6963 fclose(f);
6964 exit(0);
6967 return 0;
6970 _ACEOF
6971 rm -f conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6983 if test -f conftestval; then
6984 result=`cat conftestval`
6985 else
6986 result=no
6989 if test ${result:-no} = yes; then
6991 if test -f conftestver; then
6993 LIBPNG_VERSION=`cat conftestver`
6994 lib_version=" (version $LIBPNG_VERSION)"
6996 else
6998 lib_version=
6999 LIBPNG_VERSION="detected"
7006 echo "$as_me:$LINENO: result: $result$lib_version" >&5
7007 echo "${ECHO_T}$result$lib_version" >&6
7008 LIBPNG_LIBS="-lpng -lz -lm"
7010 else
7011 echo "$as_me: program exited with status $ac_status" >&5
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ( exit $ac_status )
7017 result=no
7018 echo "$as_me:$LINENO: result: $result" >&5
7019 echo "${ECHO_T}$result" >&6
7022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7024 LIBS="$mule_backup_LIBS"
7029 if test -n "$LIBPNG_VERSION"; then
7030 AMULEWEB_DEFS="-DWITH_LIBPNG"
7031 else
7032 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
7033 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
7039 else
7040 LIBPNG_VERSION="not_needed"
7045 # Check for perl File::Copy
7046 echo "$as_me:$LINENO: checking for File::Copy" >&5
7047 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
7048 if perl -e "require File::Copy" 2>/dev/null; then
7049 echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7051 else
7052 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
7053 echo "$as_me: error: File::Copy perl module is required" >&2;}
7054 { (exit 1); exit 1; }; }
7059 # Check if we need the GUI
7060 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
7061 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
7062 if test x$MONOLITHIC = xyes; then
7063 need_gui=yes
7066 if test x$WXCAS = xyes; then
7067 need_gui=yes
7070 if test x$ALC = xyes; then
7071 need_gui=yes
7074 if test x$AMULE_GUI = xyes; then
7075 need_gui=yes
7078 if test x${need_gui:+set} != xset; then
7079 need_gui=no
7082 echo "$as_me:$LINENO: result: $need_gui" >&5
7083 echo "${ECHO_T}$need_gui" >&6
7086 # Check for GeoIP (required for IP2Country capability)
7087 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
7089 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7090 mule_backup_CPPFLAGS="$CPPFLAGS"
7091 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7092 mule_backup_LDFLAGS="$LDFLAGS"
7093 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7094 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7095 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7096 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7097 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7101 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7102 else
7103 # Is the header compilable?
7104 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
7105 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 #include <GeoIP.h>
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_header_compiler=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_header_compiler=no
7144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146 echo "${ECHO_T}$ac_header_compiler" >&6
7148 # Is the header present?
7149 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7150 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #include <GeoIP.h>
7158 _ACEOF
7159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } >/dev/null; then
7167 if test -s conftest.err; then
7168 ac_cpp_err=$ac_c_preproc_warn_flag
7169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7170 else
7171 ac_cpp_err=
7173 else
7174 ac_cpp_err=yes
7176 if test -z "$ac_cpp_err"; then
7177 ac_header_preproc=yes
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_header_preproc=no
7184 rm -f conftest.err conftest.$ac_ext
7185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186 echo "${ECHO_T}$ac_header_preproc" >&6
7188 # So? What about this header?
7189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7190 yes:no: )
7191 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7192 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7194 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7195 ac_header_preproc=yes
7197 no:yes:* )
7198 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7199 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7201 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7203 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7205 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7207 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7209 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7211 cat <<\_ASBOX
7212 ## ------------------------------ ##
7213 ## Report this to admin@amule.org ##
7214 ## ------------------------------ ##
7215 _ASBOX
7217 sed "s/^/$as_me: WARNING: /" >&2
7219 esac
7220 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7221 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7222 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 ac_cv_header_GeoIP_h=$ac_header_preproc
7227 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7228 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7231 if test $ac_cv_header_GeoIP_h = yes; then
7233 else
7234 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7235 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7236 { (exit 1); exit 1; }; }
7240 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7241 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7242 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lGeoIP $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 #ifdef __cplusplus
7256 extern "C"
7257 #endif
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7260 char GeoIP_open ();
7262 main ()
7264 GeoIP_open ();
7266 return 0;
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271 (eval $ac_link) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_lib_GeoIP_GeoIP_open=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_cv_lib_GeoIP_GeoIP_open=no
7298 rm -f conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7300 LIBS=$ac_check_lib_save_LIBS
7302 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7303 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7304 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7306 cat >>confdefs.h <<\_ACEOF
7307 #define SUPPORT_GEOIP 1
7308 _ACEOF
7310 else
7311 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7312 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7313 { (exit 1); exit 1; }; }
7316 CPPFLAGS="$mule_backup_CPPFLAGS"
7317 LDFLAGS="$mule_backup_LDFLAGS"
7323 # Check for wx
7326 # Check whether --with-wxdir or --without-wxdir was given.
7327 if test "${with_wxdir+set}" = set; then
7328 withval="$with_wxdir"
7329 wx_config_name="$withval/wx-config"
7330 wx_config_args="--inplace"
7333 # Check whether --with-wx-config or --without-wx-config was given.
7334 if test "${with_wx_config+set}" = set; then
7335 withval="$with_wx_config"
7336 wx_config_name="$withval"
7339 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7340 if test "${with_wx_prefix+set}" = set; then
7341 withval="$with_wx_prefix"
7342 wx_config_prefix="$withval"
7343 else
7344 wx_config_prefix=""
7347 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7348 if test "${with_wx_exec_prefix+set}" = set; then
7349 withval="$with_wx_exec_prefix"
7350 wx_config_exec_prefix="$withval"
7351 else
7352 wx_config_exec_prefix=""
7366 # Check whether --with-toolkit or --without-toolkit was given.
7367 if test "${with_toolkit+set}" = set; then
7368 withval="$with_toolkit"
7370 else
7371 withval="auto"
7374 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7375 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7376 if test "$withval" = "auto" ; then
7377 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7378 echo "${ECHO_T}will be automatically detected" >&6
7379 TOOLKIT="auto"
7380 else
7381 TOOLKIT="$withval"
7383 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7384 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7385 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7386 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7387 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7388 { { echo "$as_me:$LINENO: error:
7389 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7390 " >&5
7391 echo "$as_me: error:
7392 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7393 " >&2;}
7394 { (exit 1); exit 1; }; }
7397 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7398 echo "${ECHO_T}$TOOLKIT" >&6
7405 # Check whether --with-wxshared or --without-wxshared was given.
7406 if test "${with_wxshared+set}" = set; then
7407 withval="$with_wxshared"
7409 else
7410 withval="auto"
7413 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7414 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7415 if test "$withval" = "yes" ; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7418 WX_SHARED=1
7420 elif test "1" = "1" -a "$withval" = "no" ; then
7421 echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7423 WX_SHARED=0
7424 elif test "$withval" = "auto" ; then
7425 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7426 echo "${ECHO_T}will be automatically detected" >&6
7427 WX_SHARED="auto"
7428 else
7429 { { echo "$as_me:$LINENO: error:
7430 Unrecognized option value (allowed values: yes, auto)
7431 " >&5
7432 echo "$as_me: error:
7433 Unrecognized option value (allowed values: yes, auto)
7434 " >&2;}
7435 { (exit 1); exit 1; }; }
7442 # Check whether --with-wxdebug or --without-wxdebug was given.
7443 if test "${with_wxdebug+set}" = set; then
7444 withval="$with_wxdebug"
7446 else
7447 withval="auto"
7450 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7451 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7452 if test "$withval" = "yes" ; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454 echo "${ECHO_T}yes" >&6
7455 WX_DEBUG=1
7457 elif test "1" = "1" -a "$withval" = "no" ; then
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460 WX_DEBUG=0
7461 elif test "$withval" = "auto" ; then
7462 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7463 echo "${ECHO_T}will be automatically detected" >&6
7464 WX_DEBUG="auto"
7465 else
7466 { { echo "$as_me:$LINENO: error:
7467 Unrecognized option value (allowed values: yes, auto)
7468 " >&5
7469 echo "$as_me: error:
7470 Unrecognized option value (allowed values: yes, auto)
7471 " >&2;}
7472 { (exit 1); exit 1; }; }
7479 # Check whether --with-wxversion or --without-wxversion was given.
7480 if test "${with_wxversion+set}" = set; then
7481 withval="$with_wxversion"
7483 else
7484 withval="auto"
7487 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7488 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7489 if test "$withval" = "auto" ; then
7490 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7491 echo "${ECHO_T}will be automatically detected" >&6
7492 WX_VERSION="auto"
7493 else
7495 wx_requested_major_version=`echo $withval | \
7496 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7497 wx_requested_minor_version=`echo $withval | \
7498 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7500 if test "${#wx_requested_major_version}" != "1" -o \
7501 "${#wx_requested_minor_version}" != "1" ; then
7502 { { echo "$as_me:$LINENO: error:
7503 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7504 " >&5
7505 echo "$as_me: error:
7506 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7507 " >&2;}
7508 { (exit 1); exit 1; }; }
7511 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7512 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7513 echo "${ECHO_T}$WX_VERSION" >&6
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7519 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7520 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7521 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7522 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7525 # Force using a static wxWidgets library if the executable is to be linked statically.
7526 if test ${enable_static:-no} = yes; then
7527 WX_SHARED=0
7530 # Force using a unicode build of the library
7531 WX_UNICODE=1
7532 DEBUG=$WX_DEBUG
7534 if test "$WX_SHARED" = "1" ; then
7535 WXCONFIG_FLAGS="--static=no "
7536 elif test "$WX_SHARED" = "0" ; then
7537 WXCONFIG_FLAGS="--static=yes "
7540 if test "$WX_DEBUG" = "1" ; then
7541 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7542 elif test "$WX_DEBUG" = "0" ; then
7543 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7546 if test "$WX_UNICODE" = "1" ; then
7547 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7548 elif test "$WX_UNICODE" = "0" ; then
7549 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7552 if test "$TOOLKIT" != "auto" ; then
7553 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7556 if test "$WX_VERSION" != "auto" ; then
7557 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7560 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7562 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7563 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7567 if test x${WX_CONFIG_NAME+set} != xset ; then
7568 WX_CONFIG_NAME=wx-config
7571 if test "x$wx_config_name" != x ; then
7572 WX_CONFIG_NAME="$wx_config_name"
7575 if test x$wx_config_exec_prefix != x ; then
7576 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7577 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7579 if test x$wx_config_prefix != x ; then
7580 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7581 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7583 if test "$cross_compiling" = "yes"; then
7584 wx_config_args="$wx_config_args --host=$host_alias"
7587 if test -x "$WX_CONFIG_NAME" ; then
7588 echo "$as_me:$LINENO: checking for wx-config" >&5
7589 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7590 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7591 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7592 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7593 else
7594 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7595 set dummy $WX_CONFIG_NAME; ac_word=$2
7596 echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 case $WX_CONFIG_PATH in
7602 [\\/]* | ?:[\\/]*)
7603 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7608 for as_dir in $as_dummy
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7618 done
7619 done
7621 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7623 esac
7625 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7627 if test -n "$WX_CONFIG_PATH"; then
7628 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7629 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7630 else
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7637 if test "$WX_CONFIG_PATH" != "no" ; then
7638 WX_VERSION_FULL=""
7640 min_wx_version=2.8.0
7641 if test -z "$WXCONFIG_FLAGS" ; then
7642 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7643 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7644 else
7645 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7646 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7649 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7651 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7652 wx_config_major_version=`echo $WX_VERSION_FULL | \
7653 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7654 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7655 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7656 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7657 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7659 wx_requested_major_version=`echo $min_wx_version | \
7660 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7661 wx_requested_minor_version=`echo $min_wx_version | \
7662 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7663 wx_requested_micro_version=`echo $min_wx_version | \
7664 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7667 wx_ver_ok=""
7668 if test "x$WX_VERSION_FULL" != x ; then
7669 if test $wx_config_major_version -gt $wx_requested_major_version; then
7670 wx_ver_ok=yes
7671 else
7672 if test $wx_config_major_version -eq $wx_requested_major_version; then
7673 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7674 wx_ver_ok=yes
7675 else
7676 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7677 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7678 wx_ver_ok=yes
7687 if test -n "$wx_ver_ok"; then
7689 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7690 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7691 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7693 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7694 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7695 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7696 if test "x$WX_LIBS_STATIC" = "x"; then
7697 echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6
7699 else
7700 echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7704 wx_has_cppflags=""
7705 if test $wx_config_major_version -gt 2; then
7706 wx_has_cppflags=yes
7707 else
7708 if test $wx_config_major_version -eq 2; then
7709 if test $wx_config_minor_version -gt 2; then
7710 wx_has_cppflags=yes
7711 else
7712 if test $wx_config_minor_version -eq 2; then
7713 if test $wx_config_micro_version -ge 6; then
7714 wx_has_cppflags=yes
7721 wx_has_rescomp=""
7722 if test $wx_config_major_version -gt 2; then
7723 wx_has_rescomp=yes
7724 else
7725 if test $wx_config_major_version -eq 2; then
7726 if test $wx_config_minor_version -ge 7; then
7727 wx_has_rescomp=yes
7731 if test "x$wx_has_rescomp" = x ; then
7732 WX_RESCOMP=
7733 else
7734 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7737 if test "x$wx_has_cppflags" = x ; then
7738 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7739 WX_CPPFLAGS=$WX_CFLAGS
7740 WX_CXXFLAGS=$WX_CFLAGS
7742 WX_CFLAGS_ONLY=$WX_CFLAGS
7743 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7744 else
7745 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7746 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7747 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7749 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7750 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7753 wxWin=1
7755 else
7757 if test "x$WX_VERSION_FULL" = x; then
7758 echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760 else
7761 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7762 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7765 WX_CFLAGS=""
7766 WX_CPPFLAGS=""
7767 WX_CXXFLAGS=""
7768 WX_LIBS=""
7769 WX_LIBS_STATIC=""
7770 WX_RESCOMP=""
7772 if test ! -z "$WXCONFIG_FLAGS"; then
7774 wx_error_message="
7775 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7776 build with the following settings:
7777 $WXCONFIG_FLAGS
7778 but such build is not available.
7780 To see the wxWidgets builds available on this system, please use
7781 'wx-config --list' command. To use the default build, returned by
7782 'wx-config --selected-config', use the options with their 'auto'
7783 default values."
7787 wx_error_message="
7788 The requested wxWidgets build couldn't be found.
7789 $wx_error_message
7791 If you still get this error, then check that 'wx-config' is
7792 in path, the directory where wxWidgets libraries are installed
7793 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7794 or equivalent variable and wxWidgets version is 2.8.0 or above."
7796 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7797 echo "$as_me: error: $wx_error_message" >&2;}
7798 { (exit 1); exit 1; }; }
7801 else
7803 WX_CFLAGS=""
7804 WX_CPPFLAGS=""
7805 WX_CXXFLAGS=""
7806 WX_LIBS=""
7807 WX_LIBS_STATIC=""
7808 WX_RESCOMP=""
7824 WX_VERSION_MAJOR="$wx_config_major_version"
7825 WX_VERSION_MINOR="$wx_config_minor_version"
7829 if test "$wxWin" != 1; then
7830 { { echo "$as_me:$LINENO: error:
7831 wxWidgets must be installed on your system but wx-config
7832 script couldn't be found. Please check that wx-config is
7833 in path or specified by --with-wx-config=path flag, the
7834 directory where wxWidgets libraries are installed (returned
7835 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7836 equivalent variable and wxWidgets version is 2.8.0 or above.
7837 " >&5
7838 echo "$as_me: error:
7839 wxWidgets must be installed on your system but wx-config
7840 script couldn't be found. Please check that wx-config is
7841 in path or specified by --with-wx-config=path flag, the
7842 directory where wxWidgets libraries are installed (returned
7843 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7844 equivalent variable and wxWidgets version is 2.8.0 or above.
7845 " >&2;}
7846 { (exit 1); exit 1; }; }
7849 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7850 if test $WX_VERSION -lt 26 ; then
7852 { { echo "$as_me:$LINENO: error:
7853 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7854 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7855 version of wxWidgets.
7856 " >&5
7857 echo "$as_me: error:
7858 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7859 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7860 version of wxWidgets.
7861 " >&2;}
7862 { (exit 1); exit 1; }; }
7865 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7867 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7868 echo "[dbg] Using wx-config --selected-config"
7869 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7873 if test $WX_SHARED = "1"; then
7874 STATIC=0
7875 elif test $WX_SHARED = "0"; then
7876 STATIC=1
7877 elif test $WX_SHARED = "auto"; then
7878 STATIC="auto"
7882 if test "$UNICODE" = "auto" ; then
7884 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7885 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7887 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7889 if test "$WX_UNICODE" != "0"; then
7890 WX_UNICODE=1
7891 echo "$as_me:$LINENO: result: yes" >&5
7892 echo "${ECHO_T}yes" >&6
7894 else
7895 WX_UNICODE=0
7896 echo "$as_me:$LINENO: result: no" >&5
7897 echo "${ECHO_T}no" >&6
7900 else
7902 WX_UNICODE=$UNICODE
7906 if test "$DEBUG" = "auto" ; then
7908 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7909 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7911 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7913 if test "$WX_DEBUG" != "0"; then
7914 WX_DEBUG=1
7915 echo "$as_me:$LINENO: result: yes" >&5
7916 echo "${ECHO_T}yes" >&6
7918 else
7919 WX_DEBUG=0
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7924 else
7926 WX_DEBUG=$DEBUG
7930 if test "$STATIC" = "auto" ; then
7932 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7933 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7935 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7937 if test "$WX_STATIC" != "0"; then
7938 WX_STATIC=1
7939 echo "$as_me:$LINENO: result: yes" >&5
7940 echo "${ECHO_T}yes" >&6
7942 else
7943 WX_STATIC=0
7944 echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6
7948 else
7950 WX_STATIC=$STATIC
7954 if test "$WX_STATIC" != "0"; then
7955 WX_SHARED=0
7956 else
7957 WX_SHARED=1
7964 if test "$TOOLKIT" = "auto" ; then
7966 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7967 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7969 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7970 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7971 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7972 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7973 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7974 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7975 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7976 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7977 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7978 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7980 WX_PORT="unknown"
7981 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7982 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7983 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7984 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7985 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7986 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7987 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7988 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7989 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7990 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7993 if test "$WX_PORT" = "unknown" ; then
7994 { { echo "$as_me:$LINENO: error:
7995 Cannot detect the currently installed wxWidgets port !
7996 Please check your 'wx-config --cxxflags'...
7997 " >&5
7998 echo "$as_me: error:
7999 Cannot detect the currently installed wxWidgets port !
8000 Please check your 'wx-config --cxxflags'...
8001 " >&2;}
8002 { (exit 1); exit 1; }; }
8005 echo "$as_me:$LINENO: result: $WX_PORT" >&5
8006 echo "${ECHO_T}$WX_PORT" >&6
8007 else
8009 if test -z "$TOOLKIT" ; then
8010 WX_PORT=$TOOLKIT
8011 else
8012 WX_PORT=$PORT
8018 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8019 echo "[dbg] Values of all WX_* options after final detection:"
8020 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8021 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8022 echo "[dbg] WX_SHARED: $WX_SHARED"
8023 echo "[dbg] WX_VERSION: $WX_VERSION"
8024 echo "[dbg] WX_PORT: $WX_PORT"
8027 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8028 { { echo "$as_me:$LINENO: error:
8029 Cannot build shared library against a static build of wxWidgets !
8030 This error happens because the wxWidgets build which was selected
8031 has been detected as static while you asked to build $PACKAGE_NAME
8032 as shared library and this is not possible.
8033 Use the '--disable-shared' option to build $PACKAGE_NAME
8034 as static library or '--with-wxshared' to use wxWidgets as shared library.
8035 " >&5
8036 echo "$as_me: error:
8037 Cannot build shared library against a static build of wxWidgets !
8038 This error happens because the wxWidgets build which was selected
8039 has been detected as static while you asked to build $PACKAGE_NAME
8040 as shared library and this is not possible.
8041 Use the '--disable-shared' option to build $PACKAGE_NAME
8042 as static library or '--with-wxshared' to use wxWidgets as shared library.
8043 " >&2;}
8044 { (exit 1); exit 1; }; }
8047 if test "$DEBUG" = "auto"; then
8048 DEBUG=$WX_DEBUG
8050 if test "$DEBUG" = "1"; then
8051 BUILD="debug"
8052 elif test "$DEBUG" = ""; then
8053 BUILD="release"
8056 if test "$UNICODE" = "auto"; then
8057 UNICODE=$WX_UNICODE
8059 if test "$SHARED" = "auto"; then
8060 SHARED=$WX_SHARED
8062 if test "$TOOLKIT" = "auto"; then
8063 TOOLKIT=$WX_PORT
8068 # We also need wxBase
8069 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8070 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8071 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8075 if test ${SYS:-unknown} = win32; then
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8079 set dummy ${ac_tool_prefix}windres; ac_word=$2
8080 echo "$as_me:$LINENO: checking for $ac_word" >&5
8081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8082 if test "${ac_cv_prog_RC+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 if test -n "$RC"; then
8086 ac_cv_prog_RC="$RC" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_RC="${ac_tool_prefix}windres"
8096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 break 2
8099 done
8100 done
8104 RC=$ac_cv_prog_RC
8105 if test -n "$RC"; then
8106 echo "$as_me:$LINENO: result: $RC" >&5
8107 echo "${ECHO_T}$RC" >&6
8108 else
8109 echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8114 if test -z "$ac_cv_prog_RC"; then
8115 ac_ct_RC=$RC
8116 # Extract the first word of "windres", so it can be a program name with args.
8117 set dummy windres; ac_word=$2
8118 echo "$as_me:$LINENO: checking for $ac_word" >&5
8119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 if test -n "$ac_ct_RC"; then
8124 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_ac_ct_RC="windres"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8137 done
8138 done
8140 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8143 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8144 if test -n "$ac_ct_RC"; then
8145 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8146 echo "${ECHO_T}$ac_ct_RC" >&6
8147 else
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8152 RC=$ac_ct_RC
8153 else
8154 RC="$ac_cv_prog_RC"
8157 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8163 # Check for libupnp
8164 if test "${ENABLE_UPNP:-yes}" = yes; then
8168 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 case $PKG_CONFIG in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8197 esac
8199 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8201 if test -n "$PKG_CONFIG"; then
8202 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8203 echo "${ECHO_T}$PKG_CONFIG" >&6
8204 else
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8210 if test -z "$ac_cv_path_PKG_CONFIG"; then
8211 ac_pt_PKG_CONFIG=$PKG_CONFIG
8212 # Extract the first word of "pkg-config", so it can be a program name with args.
8213 set dummy pkg-config; ac_word=$2
8214 echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8216 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 case $ac_pt_PKG_CONFIG in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8239 esac
8241 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8243 if test -n "$ac_pt_PKG_CONFIG"; then
8244 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8245 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8246 else
8247 echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6
8251 PKG_CONFIG=$ac_pt_PKG_CONFIG
8252 else
8253 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8257 if test -n "$PKG_CONFIG"; then
8258 _pkg_min_version=0.9.0
8259 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8260 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8261 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264 else
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8267 PKG_CONFIG=""
8273 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8274 if test "${with_libupnp_prefix+set}" = set; then
8275 withval="$with_libupnp_prefix"
8276 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8279 if test $cross_compiling = no; then
8280 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8281 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8282 if test -n "$PKG_CONFIG"; then
8283 if $PKG_CONFIG libupnp --exists; then
8284 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8285 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8286 result=yes
8287 resultstr=" (version $LIBUPNP_VERSION)"
8288 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8289 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8290 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8291 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8292 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8294 else
8295 result=no
8296 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8300 else
8301 result=no
8302 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8306 else
8307 result=no
8308 resultstr=" (pkg-config not found)"
8311 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8312 echo "${ECHO_T}$result$resultstr" >&6
8313 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8315 else
8316 result=no
8317 libupnp_error="cross compiling"
8321 if test ${result:-no} = yes; then
8322 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8323 else
8324 ENABLE_UPNP=disabled
8334 # Check for Crypto++
8337 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8338 if test "${with_crypto_prefix+set}" = set; then
8339 withval="$with_crypto_prefix"
8343 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8344 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8346 cryptopp_file_with_version="cryptlib.h"
8348 CRYPTOPP_STYLE="unknown"
8349 CRYPTOPP_LIB_NAME="unknown"
8350 cryptopp_includedir="unknown"
8351 CRYPTOPP_INCLUDE_PREFIX="unknown"
8352 cryptopp_libdir="unknown"
8354 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8355 if test -z "$CRYPTOPP_PREFIX"; then
8356 continue
8360 # Find the Cryptopp header
8361 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8363 CRYPTOPP_STYLE="sources"
8364 CRYPTOPP_LIB_NAME="cryptopp"
8365 cryptopp_includedir=
8366 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8367 cryptopp_libdir=
8368 break
8370 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8372 CRYPTOPP_STYLE="installed"
8373 CRYPTOPP_LIB_NAME="cryptopp"
8374 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8375 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8376 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8377 break
8379 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8381 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8382 CRYPTOPP_STYLE="gentoo_debian"
8383 CRYPTOPP_LIB_NAME="crypto++"
8384 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8385 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8386 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8387 break
8391 done
8393 if test $CRYPTOPP_STYLE = "unknown"; then
8394 result=no; resultstr=""
8395 else
8397 # Find out the crypto++ version and check against the minimum required
8398 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8399 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8400 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8401 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8403 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8405 result=yes
8406 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8407 if test -n "$cryptopp_includedir"; then
8408 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8409 else
8410 CRYPTOPP_CPPFLAGS=
8413 if test -n "$cryptopp_libdir"; then
8415 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8416 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8418 else
8420 CRYPTOPP_LDFLAGS=
8421 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8427 cat >>confdefs.h <<_ACEOF
8428 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8429 _ACEOF
8432 else
8434 result=no
8435 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8443 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8444 echo "${ECHO_T}$result$resultstr" >&6
8446 if test ${result:-no} = yes; then
8448 # Check for CryptoPP >= 5.5
8449 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8450 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8454 else
8456 { { echo "$as_me:$LINENO: error:
8457 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8458 Please try again with --with-crypto-prefix=/my_crypto_prefix
8459 (replace /my_crypto_prefix with a valid path to your crypto++
8460 installation directory)." >&5
8461 echo "$as_me: error:
8462 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8463 Please try again with --with-crypto-prefix=/my_crypto_prefix
8464 (replace /my_crypto_prefix with a valid path to your crypto++
8465 installation directory)." >&2;}
8466 { (exit 1); exit 1; }; }
8473 ac_ext=cc
8474 ac_cpp='$CXXCPP $CPPFLAGS'
8475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8482 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8483 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 #include <string>
8493 #ifndef __GLIBCXX__
8494 #error Non-GNU C++ library found.
8495 #endif
8498 _ACEOF
8499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev/null; then
8507 if test -s conftest.err; then
8508 ac_cpp_err=$ac_cxx_preproc_warn_flag
8509 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8510 else
8511 ac_cpp_err=
8513 else
8514 ac_cpp_err=yes
8516 if test -z "$ac_cpp_err"; then
8517 GLIBCXX=yes
8518 else
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 GLIBCXX=no
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8526 echo "${ECHO_T}$GLIBCXX" >&6
8529 mule_backup_CPPFLAGS="$CPPFLAGS"
8530 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8532 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8533 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 #include <wx/wx.h>
8543 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8544 #error No LargeFile support!
8545 #endif
8548 _ACEOF
8549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } >/dev/null; then
8557 if test -s conftest.err; then
8558 ac_cpp_err=$ac_cxx_preproc_warn_flag
8559 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8560 else
8561 ac_cpp_err=
8563 else
8564 ac_cpp_err=yes
8566 if test -z "$ac_cpp_err"; then
8568 echo "$as_me:$LINENO: result: yes" >&5
8569 echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8576 echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578 { { echo "$as_me:$LINENO: error:
8579 Support for large files in wxWidgets is required by aMule.
8580 To continue you must recompile wxWidgets with support for
8581 large files enabled." >&5
8582 echo "$as_me: error:
8583 Support for large files in wxWidgets is required by aMule.
8584 To continue you must recompile wxWidgets with support for
8585 large files enabled." >&2;}
8586 { (exit 1); exit 1; }; }
8589 rm -f conftest.err conftest.$ac_ext
8591 CPPFLAGS="$mule_backup_CPPFLAGS"
8594 # Check if the compiler is broken, wrt. exceptions.
8596 echo "$as_me:$LINENO: checking for exception-handling" >&5
8597 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8598 if test "$cross_compiling" = yes; then
8600 echo "$as_me:$LINENO: result: undeterminable" >&5
8601 echo "${ECHO_T}undeterminable" >&6
8602 { echo "$as_me:$LINENO: WARNING:
8603 Cross-compilation detected, so exception handling cannot be tested.
8604 Note that broken exception handling in your compiler may lead to
8605 unexpected crashes." >&5
8606 echo "$as_me: WARNING:
8607 Cross-compilation detected, so exception handling cannot be tested.
8608 Note that broken exception handling in your compiler may lead to
8609 unexpected crashes." >&2;}
8611 else
8612 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8621 main ()
8624 try {
8625 throw 1;
8626 } catch (int) {
8627 return 0;
8629 return 1;
8632 return 0;
8635 _ACEOF
8636 rm -f conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649 echo "${ECHO_T}yes" >&6
8651 else
8652 echo "$as_me: program exited with status $ac_status" >&5
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ( exit $ac_status )
8658 echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8661 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8662 { (exit 1); exit 1; }; }
8665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8670 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8671 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 #include <cxxabi.h>
8683 main ()
8686 int status;
8687 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8688 std::type_info *ti = abi::__cxa_current_exception_type();
8691 return 0;
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_cxx_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8720 cat >>confdefs.h <<\_ACEOF
8721 #define HAVE_CXXABI 1
8722 _ACEOF
8724 echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8732 echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8739 ac_ext=c
8740 ac_cpp='$CPP $CPPFLAGS'
8741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8746 # Check for bfd.h (to have proper backtraces without using wxExecute)
8748 echo "$as_me:$LINENO: checking for bfd" >&5
8749 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8750 mule_backup_LIBS="$LIBS"
8751 LIBS="-lbfd -liberty $LIBS"
8752 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8760 #include <ansidecl.h>
8761 #include <bfd.h>
8764 main ()
8767 char *dummy = bfd_errmsg(bfd_get_error());
8770 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8797 echo "$as_me:$LINENO: result: yes" >&5
8798 echo "${ECHO_T}yes" >&6
8799 BFD_CPPFLAGS="-DHAVE_BFD"
8800 BFD_LIBS="-lbfd -liberty"
8802 else
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 { echo "$as_me:$LINENO: WARNING:
8810 bfd.h not found or unusable, please install binutils development
8811 package if you are a developer or want to help testing aMule" >&5
8812 echo "$as_me: WARNING:
8813 bfd.h not found or unusable, please install binutils development
8814 package if you are a developer or want to help testing aMule" >&2;}
8817 rm -f conftest.err conftest.$ac_objext \
8818 conftest$ac_exeext conftest.$ac_ext
8819 LIBS="$mule_backup_LIBS"
8823 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8824 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 #include <execinfo.h>
8836 main ()
8839 void *bt[1];
8840 int n = backtrace(&bt, 1);
8841 const char **bt_syms = backtrace_symbols(bt, n);
8844 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_EXECINFO 1
8875 _ACEOF
8877 echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8885 echo "$as_me:$LINENO: result: no" >&5
8886 echo "${ECHO_T}no" >&6
8889 rm -f conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8893 # Ok, we have all needed libs, now checking for other stuff
8894 if test "$LEX" = "flex"; then
8896 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8897 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8899 extended_flex=`flex --help | grep header-file`
8900 if test -n "$extended_flex"; then
8901 HAVE_FLEX_EXTENDED=yes
8902 else
8903 HAVE_FLEX_EXTENDED=no
8906 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8907 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8909 if test $HAVE_FLEX_EXTENDED = no; then
8910 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8911 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8915 else
8916 HAVE_FLEX_EXTENDED=no
8920 # Flush standard test results for speeding cache
8921 cat >confcache <<\_ACEOF
8922 # This file is a shell script that caches the results of configure
8923 # tests run on this system so they can be shared between configure
8924 # scripts and configure runs, see configure's option --config-cache.
8925 # It is not useful on other systems. If it contains results you don't
8926 # want to keep, you may remove or edit it.
8928 # config.status only pays attention to the cache file if you give it
8929 # the --recheck option to rerun configure.
8931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8933 # following values.
8935 _ACEOF
8937 # The following way of writing the cache mishandles newlines in values,
8938 # but we know of no workaround that is simple, portable, and efficient.
8939 # So, don't put newlines in cache variables' values.
8940 # Ultrix sh set writes to stderr and can't be redirected directly,
8941 # and sets the high bit in the cache file unless we assign to the vars.
8943 (set) 2>&1 |
8944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8945 *ac_space=\ *)
8946 # `set' does not quote correctly, so add quotes (double-quote
8947 # substitution turns \\\\ into \\, and sed turns \\ into \).
8948 sed -n \
8949 "s/'/'\\\\''/g;
8950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8953 # `set' quotes correctly as required by POSIX, so do not add quotes.
8954 sed -n \
8955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8957 esac;
8959 sed '
8960 t clear
8961 : clear
8962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8963 t end
8964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8965 : end' >>confcache
8966 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8967 if test -w $cache_file; then
8968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8969 cat confcache >$cache_file
8970 else
8971 echo "not updating unwritable cache $cache_file"
8974 rm -f confcache
8976 # Checks for header files.
8977 echo "$as_me:$LINENO: checking for X" >&5
8978 echo $ECHO_N "checking for X... $ECHO_C" >&6
8981 # Check whether --with-x or --without-x was given.
8982 if test "${with_x+set}" = set; then
8983 withval="$with_x"
8986 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8987 if test "x$with_x" = xno; then
8988 # The user explicitly disabled X.
8989 have_x=disabled
8990 else
8991 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8992 # Both variables are already set.
8993 have_x=yes
8994 else
8995 if test "${ac_cv_have_x+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 # One or both of the vars are not set, and there is no cached value.
8999 ac_x_includes=no ac_x_libraries=no
9000 rm -fr conftest.dir
9001 if mkdir conftest.dir; then
9002 cd conftest.dir
9003 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9004 cat >Imakefile <<'_ACEOF'
9005 acfindx:
9006 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9007 _ACEOF
9008 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9010 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9011 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9012 for ac_extension in a so sl; do
9013 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9014 test -f $ac_im_libdir/libX11.$ac_extension; then
9015 ac_im_usrlibdir=$ac_im_libdir; break
9017 done
9018 # Screen out bogus values from the imake configuration. They are
9019 # bogus both because they are the default anyway, and because
9020 # using them would break gcc on systems where it needs fixed includes.
9021 case $ac_im_incroot in
9022 /usr/include) ;;
9023 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9024 esac
9025 case $ac_im_usrlibdir in
9026 /usr/lib | /lib) ;;
9027 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9028 esac
9030 cd ..
9031 rm -fr conftest.dir
9034 # Standard set of common directories for X headers.
9035 # Check X11 before X11Rn because it is often a symlink to the current release.
9036 ac_x_header_dirs='
9037 /usr/X11/include
9038 /usr/X11R6/include
9039 /usr/X11R5/include
9040 /usr/X11R4/include
9042 /usr/include/X11
9043 /usr/include/X11R6
9044 /usr/include/X11R5
9045 /usr/include/X11R4
9047 /usr/local/X11/include
9048 /usr/local/X11R6/include
9049 /usr/local/X11R5/include
9050 /usr/local/X11R4/include
9052 /usr/local/include/X11
9053 /usr/local/include/X11R6
9054 /usr/local/include/X11R5
9055 /usr/local/include/X11R4
9057 /usr/X386/include
9058 /usr/x386/include
9059 /usr/XFree86/include/X11
9061 /usr/include
9062 /usr/local/include
9063 /usr/unsupported/include
9064 /usr/athena/include
9065 /usr/local/x11r5/include
9066 /usr/lpp/Xamples/include
9068 /usr/openwin/include
9069 /usr/openwin/share/include'
9071 if test "$ac_x_includes" = no; then
9072 # Guess where to find include files, by looking for Intrinsic.h.
9073 # First, try using that file with no special directory specified.
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 #include <X11/Intrinsic.h>
9081 _ACEOF
9082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } >/dev/null; then
9090 if test -s conftest.err; then
9091 ac_cpp_err=$ac_c_preproc_warn_flag
9092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9093 else
9094 ac_cpp_err=
9096 else
9097 ac_cpp_err=yes
9099 if test -z "$ac_cpp_err"; then
9100 # We can compile using X headers with no special include directory.
9101 ac_x_includes=
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 for ac_dir in $ac_x_header_dirs; do
9107 if test -r "$ac_dir/X11/Intrinsic.h"; then
9108 ac_x_includes=$ac_dir
9109 break
9111 done
9113 rm -f conftest.err conftest.$ac_ext
9114 fi # $ac_x_includes = no
9116 if test "$ac_x_libraries" = no; then
9117 # Check for the libraries.
9118 # See if we find them without any special options.
9119 # Don't add to $LIBS permanently.
9120 ac_save_LIBS=$LIBS
9121 LIBS="-lXt $LIBS"
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <X11/Intrinsic.h>
9130 main ()
9132 XtMalloc (0)
9134 return 0;
9136 _ACEOF
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 LIBS=$ac_save_LIBS
9160 # We can link X programs with no special library path.
9161 ac_x_libraries=
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 LIBS=$ac_save_LIBS
9167 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9169 # Don't even attempt the hair of trying to link an X program!
9170 for ac_extension in a so sl; do
9171 if test -r $ac_dir/libXt.$ac_extension; then
9172 ac_x_libraries=$ac_dir
9173 break 2
9175 done
9176 done
9178 rm -f conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 fi # $ac_x_libraries = no
9182 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9183 # Didn't find X anywhere. Cache the known absence of X.
9184 ac_cv_have_x="have_x=no"
9185 else
9186 # Record where we found X for the cache.
9187 ac_cv_have_x="have_x=yes \
9188 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9193 eval "$ac_cv_have_x"
9194 fi # $with_x != no
9196 if test "$have_x" != yes; then
9197 echo "$as_me:$LINENO: result: $have_x" >&5
9198 echo "${ECHO_T}$have_x" >&6
9199 no_x=yes
9200 else
9201 # If each of the values was on the command line, it overrides each guess.
9202 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9203 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9204 # Update the cache value to reflect the command line values.
9205 ac_cv_have_x="have_x=yes \
9206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9207 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9208 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9211 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9212 # for constant arguments. Useless!
9213 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9214 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9215 if test "${ac_cv_working_alloca_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 #include <alloca.h>
9226 main ()
9228 char *p = (char *) alloca (2 * sizeof (int));
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_working_alloca_h=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_cv_working_alloca_h=no
9262 rm -f conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9265 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9266 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9267 if test $ac_cv_working_alloca_h = yes; then
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_ALLOCA_H 1
9271 _ACEOF
9275 echo "$as_me:$LINENO: checking for alloca" >&5
9276 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9277 if test "${ac_cv_func_alloca_works+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #ifdef __GNUC__
9287 # define alloca __builtin_alloca
9288 #else
9289 # ifdef _MSC_VER
9290 # include <malloc.h>
9291 # define alloca _alloca
9292 # else
9293 # if HAVE_ALLOCA_H
9294 # include <alloca.h>
9295 # else
9296 # ifdef _AIX
9297 #pragma alloca
9298 # else
9299 # ifndef alloca /* predefined by HP cc +Olibcalls */
9300 char *alloca ();
9301 # endif
9302 # endif
9303 # endif
9304 # endif
9305 #endif
9308 main ()
9310 char *p = (char *) alloca (1);
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_func_alloca_works=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_func_alloca_works=no
9344 rm -f conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9348 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9350 if test $ac_cv_func_alloca_works = yes; then
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_ALLOCA 1
9354 _ACEOF
9356 else
9357 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9358 # that cause trouble. Some versions do not even contain alloca or
9359 # contain a buggy version. If you still want to use their alloca,
9360 # use ar to extract alloca.o from them instead of compiling alloca.c.
9362 ALLOCA=alloca.$ac_objext
9364 cat >>confdefs.h <<\_ACEOF
9365 #define C_ALLOCA 1
9366 _ACEOF
9369 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9370 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9371 if test "${ac_cv_os_cray+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #if defined(CRAY) && ! defined(CRAY2)
9381 webecray
9382 #else
9383 wenotbecray
9384 #endif
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "webecray" >/dev/null 2>&1; then
9389 ac_cv_os_cray=yes
9390 else
9391 ac_cv_os_cray=no
9393 rm -f conftest*
9396 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9397 echo "${ECHO_T}$ac_cv_os_cray" >&6
9398 if test $ac_cv_os_cray = yes; then
9399 for ac_func in _getb67 GETB67 getb67; do
9400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9401 echo "$as_me:$LINENO: checking for $ac_func" >&5
9402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9403 if eval "test \"\${$as_ac_var+set}\" = set"; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define $ac_func innocuous_$ac_func
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char $ac_func (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9421 #ifdef __STDC__
9422 # include <limits.h>
9423 #else
9424 # include <assert.h>
9425 #endif
9427 #undef $ac_func
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 #ifdef __cplusplus
9431 extern "C"
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char $ac_func ();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 choke me
9442 #else
9443 char (*f) () = $ac_func;
9444 #endif
9445 #ifdef __cplusplus
9447 #endif
9450 main ()
9452 return f != $ac_func;
9454 return 0;
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 (eval $ac_try) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 eval "$as_ac_var=yes"
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 eval "$as_ac_var=no"
9486 rm -f conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9491 if test `eval echo '${'$as_ac_var'}'` = yes; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define CRAY_STACKSEG_END $ac_func
9495 _ACEOF
9497 break
9500 done
9503 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9504 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9505 if test "${ac_cv_c_stack_direction+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 if test "$cross_compiling" = yes; then
9509 ac_cv_c_stack_direction=0
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 find_stack_direction ()
9520 static char *addr = 0;
9521 auto char dummy;
9522 if (addr == 0)
9524 addr = &dummy;
9525 return find_stack_direction ();
9527 else
9528 return (&dummy > addr) ? 1 : -1;
9532 main ()
9534 exit (find_stack_direction () < 0);
9536 _ACEOF
9537 rm -f conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_c_stack_direction=1
9549 else
9550 echo "$as_me: program exited with status $ac_status" >&5
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ( exit $ac_status )
9555 ac_cv_c_stack_direction=-1
9557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9561 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9563 cat >>confdefs.h <<_ACEOF
9564 #define STACK_DIRECTION $ac_cv_c_stack_direction
9565 _ACEOF
9575 ac_header_dirent=no
9576 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9577 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9578 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <sys/types.h>
9590 #include <$ac_hdr>
9593 main ()
9595 if ((DIR *) 0)
9596 return 0;
9598 return 0;
9600 _ACEOF
9601 rm -f conftest.$ac_objext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9603 (eval $ac_compile) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 eval "$as_ac_Header=yes"
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 eval "$as_ac_Header=no"
9630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9635 cat >>confdefs.h <<_ACEOF
9636 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9637 _ACEOF
9639 ac_header_dirent=$ac_hdr; break
9642 done
9643 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9644 if test $ac_header_dirent = dirent.h; then
9645 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9647 if test "${ac_cv_search_opendir+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 ac_func_search_save_LIBS=$LIBS
9651 ac_cv_search_opendir=no
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="none required"
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9702 rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 if test "$ac_cv_search_opendir" = no; then
9705 for ac_lib in dir; do
9706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720 char opendir ();
9722 main ()
9724 opendir ();
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_search_opendir="-l$ac_lib"
9752 break
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9758 rm -f conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 done
9762 LIBS=$ac_func_search_save_LIBS
9764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9766 if test "$ac_cv_search_opendir" != no; then
9767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9771 else
9772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9774 if test "${ac_cv_search_opendir+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 ac_func_search_save_LIBS=$LIBS
9778 ac_cv_search_opendir=no
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 #endif
9790 /* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9792 char opendir ();
9794 main ()
9796 opendir ();
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_search_opendir="none required"
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 if test "$ac_cv_search_opendir" = no; then
9832 for ac_lib in x; do
9833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847 char opendir ();
9849 main ()
9851 opendir ();
9853 return 0;
9855 _ACEOF
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858 (eval $ac_link) 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag"
9866 || test ! -s conftest.err'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_search_opendir="-l$ac_lib"
9879 break
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9885 rm -f conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 done
9889 LIBS=$ac_func_search_save_LIBS
9891 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9892 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9893 if test "$ac_cv_search_opendir" != no; then
9894 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9902 if test "${ac_cv_header_stdc+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 #include <stdlib.h>
9912 #include <stdarg.h>
9913 #include <string.h>
9914 #include <float.h>
9917 main ()
9921 return 0;
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_header_stdc=yes
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_header_stdc=no
9953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9955 if test $ac_cv_header_stdc = yes; then
9956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 #include <string.h>
9965 _ACEOF
9966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967 $EGREP "memchr" >/dev/null 2>&1; then
9969 else
9970 ac_cv_header_stdc=no
9972 rm -f conftest*
9976 if test $ac_cv_header_stdc = yes; then
9977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <stdlib.h>
9986 _ACEOF
9987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9988 $EGREP "free" >/dev/null 2>&1; then
9990 else
9991 ac_cv_header_stdc=no
9993 rm -f conftest*
9997 if test $ac_cv_header_stdc = yes; then
9998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9999 if test "$cross_compiling" = yes; then
10001 else
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <ctype.h>
10009 #if ((' ' & 0x0FF) == 0x020)
10010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10012 #else
10013 # define ISLOWER(c) \
10014 (('a' <= (c) && (c) <= 'i') \
10015 || ('j' <= (c) && (c) <= 'r') \
10016 || ('s' <= (c) && (c) <= 'z'))
10017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10018 #endif
10020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10022 main ()
10024 int i;
10025 for (i = 0; i < 256; i++)
10026 if (XOR (islower (i), ISLOWER (i))
10027 || toupper (i) != TOUPPER (i))
10028 exit(2);
10029 exit (0);
10031 _ACEOF
10032 rm -f conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10044 else
10045 echo "$as_me: program exited with status $ac_status" >&5
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ( exit $ac_status )
10050 ac_cv_header_stdc=no
10052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10056 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10057 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10058 if test $ac_cv_header_stdc = yes; then
10060 cat >>confdefs.h <<\_ACEOF
10061 #define STDC_HEADERS 1
10062 _ACEOF
10098 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10109 else
10110 # Is the header compilable?
10111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 #include <$ac_header>
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_header_compiler=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_header_compiler=no
10151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10153 echo "${ECHO_T}$ac_header_compiler" >&6
10155 # Is the header present?
10156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <$ac_header>
10165 _ACEOF
10166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } >/dev/null; then
10174 if test -s conftest.err; then
10175 ac_cpp_err=$ac_c_preproc_warn_flag
10176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10177 else
10178 ac_cpp_err=
10180 else
10181 ac_cpp_err=yes
10183 if test -z "$ac_cpp_err"; then
10184 ac_header_preproc=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_header_preproc=no
10191 rm -f conftest.err conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 echo "${ECHO_T}$ac_header_preproc" >&6
10195 # So? What about this header?
10196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 yes:no: )
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc=yes
10204 no:yes:* )
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218 cat <<\_ASBOX
10219 ## ------------------------------ ##
10220 ## Report this to admin@amule.org ##
10221 ## ------------------------------ ##
10222 _ASBOX
10224 sed "s/^/$as_me: WARNING: /" >&2
10226 esac
10227 echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10239 cat >>confdefs.h <<_ACEOF
10240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10241 _ACEOF
10245 done
10247 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10248 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10249 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <sys/types.h>
10259 #include <sys/wait.h>
10260 #ifndef WEXITSTATUS
10261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10262 #endif
10263 #ifndef WIFEXITED
10264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10265 #endif
10268 main ()
10270 int s;
10271 wait (&s);
10272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10274 return 0;
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_header_sys_wait_h=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_header_sys_wait_h=no
10306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10309 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10310 if test $ac_cv_header_sys_wait_h = yes; then
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_SYS_WAIT_H 1
10314 _ACEOF
10319 # Checks for typedefs, structures, and compiler characteristics.
10320 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10321 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10322 if test "${ac_cv_header_stdbool_h+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325 cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h. */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10332 #include <stdbool.h>
10333 #ifndef bool
10334 # error bool is not defined
10335 #endif
10336 #ifndef false
10337 # error false is not defined
10338 #endif
10339 #if false
10340 # error false is not 0
10341 #endif
10342 #ifndef true
10343 # error true is not defined
10344 #endif
10345 #if true != 1
10346 # error true is not 1
10347 #endif
10348 #ifndef __bool_true_false_are_defined
10349 # error __bool_true_false_are_defined is not defined
10350 #endif
10352 struct s { _Bool s: 1; _Bool t; } s;
10354 char a[true == 1 ? 1 : -1];
10355 char b[false == 0 ? 1 : -1];
10356 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10357 char d[(bool) -0.5 == true ? 1 : -1];
10358 bool e = &s;
10359 char f[(_Bool) -0.0 == false ? 1 : -1];
10360 char g[true];
10361 char h[sizeof (_Bool)];
10362 char i[sizeof s.t];
10365 main ()
10367 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_header_stdbool_h=yes
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_cv_header_stdbool_h=no
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10404 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10405 echo "$as_me:$LINENO: checking for _Bool" >&5
10406 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10407 if test "${ac_cv_type__Bool+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410 cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h. */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 $ac_includes_default
10418 main ()
10420 if ((_Bool *) 0)
10421 return 0;
10422 if (sizeof (_Bool))
10423 return 0;
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_type__Bool=yes
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_cv_type__Bool=no
10457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10460 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10461 if test $ac_cv_type__Bool = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE__BOOL 1
10465 _ACEOF
10470 if test $ac_cv_header_stdbool_h = yes; then
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_STDBOOL_H 1
10474 _ACEOF
10478 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10479 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10480 if test "${ac_cv_c_const+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10491 main ()
10493 /* FIXME: Include the comments suggested by Paul. */
10494 #ifndef __cplusplus
10495 /* Ultrix mips cc rejects this. */
10496 typedef int charset[2];
10497 const charset x;
10498 /* SunOS 4.1.1 cc rejects this. */
10499 char const *const *ccp;
10500 char **p;
10501 /* NEC SVR4.0.2 mips cc rejects this. */
10502 struct point {int x, y;};
10503 static struct point const zero = {0,0};
10504 /* AIX XL C 1.02.0.0 rejects this.
10505 It does not let you subtract one const X* pointer from another in
10506 an arm of an if-expression whose if-part is not a constant
10507 expression */
10508 const char *g = "string";
10509 ccp = &g + (g ? g-g : 0);
10510 /* HPUX 7.0 cc rejects these. */
10511 ++ccp;
10512 p = (char**) ccp;
10513 ccp = (char const *const *) p;
10514 { /* SCO 3.2v4 cc rejects this. */
10515 char *t;
10516 char const *s = 0 ? (char *) 0 : (char const *) 0;
10518 *t++ = 0;
10520 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10521 int x[] = {25, 17};
10522 const int *foo = &x[0];
10523 ++foo;
10525 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10526 typedef const int *iptr;
10527 iptr p = 0;
10528 ++p;
10530 { /* AIX XL C 1.02.0.0 rejects this saying
10531 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10532 struct s { int j; const int *ap[3]; };
10533 struct s *b; b->j = 5;
10535 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10536 const int foo = 10;
10538 #endif
10541 return 0;
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_cv_c_const=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_c_const=no
10573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10576 echo "${ECHO_T}$ac_cv_c_const" >&6
10577 if test $ac_cv_c_const = no; then
10579 cat >>confdefs.h <<\_ACEOF
10580 #define const
10581 _ACEOF
10585 echo "$as_me:$LINENO: checking for inline" >&5
10586 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10587 if test "${ac_cv_c_inline+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 ac_cv_c_inline=no
10591 for ac_kw in inline __inline__ __inline; do
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 #ifndef __cplusplus
10599 typedef int foo_t;
10600 static $ac_kw foo_t static_foo () {return 0; }
10601 $ac_kw foo_t foo () {return 0; }
10602 #endif
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10607 (eval $ac_compile) 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag"
10615 || test ! -s conftest.err'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest.$ac_objext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_c_inline=$ac_kw; break
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10634 done
10637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10638 echo "${ECHO_T}$ac_cv_c_inline" >&6
10641 case $ac_cv_c_inline in
10642 inline | yes) ;;
10644 case $ac_cv_c_inline in
10645 no) ac_val=;;
10646 *) ac_val=$ac_cv_c_inline;;
10647 esac
10648 cat >>confdefs.h <<_ACEOF
10649 #ifndef __cplusplus
10650 #define inline $ac_val
10651 #endif
10652 _ACEOF
10654 esac
10656 echo "$as_me:$LINENO: checking for mode_t" >&5
10657 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10658 if test "${ac_cv_type_mode_t+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10669 main ()
10671 if ((mode_t *) 0)
10672 return 0;
10673 if (sizeof (mode_t))
10674 return 0;
10676 return 0;
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_type_mode_t=yes
10702 else
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_cv_type_mode_t=no
10708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10711 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10712 if test $ac_cv_type_mode_t = yes; then
10714 else
10716 cat >>confdefs.h <<_ACEOF
10717 #define mode_t int
10718 _ACEOF
10722 echo "$as_me:$LINENO: checking for off_t" >&5
10723 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10724 if test "${ac_cv_type_off_t+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10735 main ()
10737 if ((off_t *) 0)
10738 return 0;
10739 if (sizeof (off_t))
10740 return 0;
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_off_t=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_type_off_t=no
10774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10777 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10778 if test $ac_cv_type_off_t = yes; then
10780 else
10782 cat >>confdefs.h <<_ACEOF
10783 #define off_t long
10784 _ACEOF
10788 echo "$as_me:$LINENO: checking for size_t" >&5
10789 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10790 if test "${ac_cv_type_size_t+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10801 main ()
10803 if ((size_t *) 0)
10804 return 0;
10805 if (sizeof (size_t))
10806 return 0;
10808 return 0;
10810 _ACEOF
10811 rm -f conftest.$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -z "$ac_c_werror_flag"
10821 || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest.$ac_objext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_type_size_t=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_type_size_t=no
10840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10843 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10844 if test $ac_cv_type_size_t = yes; then
10846 else
10848 cat >>confdefs.h <<_ACEOF
10849 #define size_t unsigned
10850 _ACEOF
10854 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10855 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10856 if test "${ac_cv_header_time+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 #include <sys/types.h>
10866 #include <sys/time.h>
10867 #include <time.h>
10870 main ()
10872 if ((struct tm *) 0)
10873 return 0;
10875 return 0;
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag"
10888 || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_header_time=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_cv_header_time=no
10907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10910 echo "${ECHO_T}$ac_cv_header_time" >&6
10911 if test $ac_cv_header_time = yes; then
10913 cat >>confdefs.h <<\_ACEOF
10914 #define TIME_WITH_SYS_TIME 1
10915 _ACEOF
10919 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10920 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10921 if test "${ac_cv_struct_tm+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 #include <sys/types.h>
10931 #include <time.h>
10934 main ()
10936 struct tm *tp; tp->tm_sec;
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943 (eval $ac_compile) 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag"
10951 || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_struct_tm=time.h
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_cv_struct_tm=sys/time.h
10970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10973 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10974 if test $ac_cv_struct_tm = sys/time.h; then
10976 cat >>confdefs.h <<\_ACEOF
10977 #define TM_IN_SYS_TIME 1
10978 _ACEOF
10982 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10983 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10984 if test "${ac_cv_type_uid_t+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 #include <sys/types.h>
10995 _ACEOF
10996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10997 $EGREP "uid_t" >/dev/null 2>&1; then
10998 ac_cv_type_uid_t=yes
10999 else
11000 ac_cv_type_uid_t=no
11002 rm -f conftest*
11005 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11006 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11007 if test $ac_cv_type_uid_t = no; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define uid_t int
11011 _ACEOF
11014 cat >>confdefs.h <<\_ACEOF
11015 #define gid_t int
11016 _ACEOF
11020 echo "$as_me:$LINENO: checking for working volatile" >&5
11021 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11022 if test "${ac_cv_c_volatile+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11033 main ()
11036 volatile int x;
11037 int * volatile y;
11039 return 0;
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag"
11052 || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_c_volatile=yes
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_c_volatile=no
11071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11074 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11075 if test $ac_cv_c_volatile = no; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define volatile
11079 _ACEOF
11083 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11084 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11085 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 $ac_includes_default
11096 main ()
11098 if ((ptrdiff_t *) 0)
11099 return 0;
11100 if (sizeof (ptrdiff_t))
11101 return 0;
11103 return 0;
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_cv_type_ptrdiff_t=yes
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ac_cv_type_ptrdiff_t=no
11135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11138 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11139 if test $ac_cv_type_ptrdiff_t = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define HAVE_PTRDIFF_T 1
11143 _ACEOF
11149 # Checks for library functions.
11150 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11151 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11152 if test "${ac_cv_func_closedir_void+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155 if test "$cross_compiling" = yes; then
11156 ac_cv_func_closedir_void=yes
11157 else
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 $ac_includes_default
11165 #include <$ac_header_dirent>
11166 #ifndef __cplusplus
11167 int closedir ();
11168 #endif
11171 main ()
11173 exit (closedir (opendir (".")) != 0);
11175 return 0;
11177 _ACEOF
11178 rm -f conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_func_closedir_void=no
11190 else
11191 echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ( exit $ac_status )
11196 ac_cv_func_closedir_void=yes
11198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11201 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11202 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11203 if test $ac_cv_func_closedir_void = yes; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define CLOSEDIR_VOID 1
11207 _ACEOF
11211 if test $ac_cv_c_compiler_gnu = yes; then
11212 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11213 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11214 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 ac_pattern="Autoconf.*'x'"
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 #include <sgtty.h>
11225 Autoconf TIOCGETP
11226 _ACEOF
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11229 ac_cv_prog_gcc_traditional=yes
11230 else
11231 ac_cv_prog_gcc_traditional=no
11233 rm -f conftest*
11236 if test $ac_cv_prog_gcc_traditional = no; then
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <termio.h>
11244 Autoconf TCGETA
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11248 ac_cv_prog_gcc_traditional=yes
11250 rm -f conftest*
11254 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11255 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11256 if test $ac_cv_prog_gcc_traditional = yes; then
11257 CC="$CC -traditional"
11261 echo "$as_me:$LINENO: checking for pid_t" >&5
11262 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11263 if test "${ac_cv_type_pid_t+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11274 main ()
11276 if ((pid_t *) 0)
11277 return 0;
11278 if (sizeof (pid_t))
11279 return 0;
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_type_pid_t=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_cv_type_pid_t=no
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11315 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11316 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11317 if test $ac_cv_type_pid_t = yes; then
11319 else
11321 cat >>confdefs.h <<_ACEOF
11322 #define pid_t int
11323 _ACEOF
11329 for ac_header in unistd.h vfork.h
11331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333 echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11340 else
11341 # Is the header compilable?
11342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11344 cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h. */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11351 #include <$ac_header>
11352 _ACEOF
11353 rm -f conftest.$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_c_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_header_compiler=yes
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_header_compiler=no
11382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6
11386 # Is the header present?
11387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h. */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11396 _ACEOF
11397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11411 else
11412 ac_cpp_err=yes
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11422 rm -f conftest.err conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 echo "${ECHO_T}$ac_header_preproc" >&6
11426 # So? What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428 yes:no: )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc=yes
11435 no:yes:* )
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 cat <<\_ASBOX
11450 ## ------------------------------ ##
11451 ## Report this to admin@amule.org ##
11452 ## ------------------------------ ##
11453 _ASBOX
11455 sed "s/^/$as_me: WARNING: /" >&2
11457 esac
11458 echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 eval "$as_ac_Header=\$ac_header_preproc"
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 _ACEOF
11476 done
11480 for ac_func in fork vfork
11482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11483 echo "$as_me:$LINENO: checking for $ac_func" >&5
11484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_var+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11496 #define $ac_func innocuous_$ac_func
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11503 #ifdef __STDC__
11504 # include <limits.h>
11505 #else
11506 # include <assert.h>
11507 #endif
11509 #undef $ac_func
11511 /* Override any gcc2 internal prototype to avoid an error. */
11512 #ifdef __cplusplus
11513 extern "C"
11515 #endif
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11518 char $ac_func ();
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11523 choke me
11524 #else
11525 char (*f) () = $ac_func;
11526 #endif
11527 #ifdef __cplusplus
11529 #endif
11532 main ()
11534 return f != $ac_func;
11536 return 0;
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 eval "$as_ac_var=yes"
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 eval "$as_ac_var=no"
11568 rm -f conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11573 if test `eval echo '${'$as_ac_var'}'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 _ACEOF
11579 done
11581 if test "x$ac_cv_func_fork" = xyes; then
11582 echo "$as_me:$LINENO: checking for working fork" >&5
11583 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11584 if test "${ac_cv_func_fork_works+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 if test "$cross_compiling" = yes; then
11588 ac_cv_func_fork_works=cross
11589 else
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* By Ruediger Kuhlmann. */
11592 #include <sys/types.h>
11593 #if HAVE_UNISTD_H
11594 # include <unistd.h>
11595 #endif
11596 /* Some systems only have a dummy stub for fork() */
11597 int main ()
11599 if (fork() < 0)
11600 exit (1);
11601 exit (0);
11603 _ACEOF
11604 rm -f conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_func_fork_works=yes
11616 else
11617 echo "$as_me: program exited with status $ac_status" >&5
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ( exit $ac_status )
11622 ac_cv_func_fork_works=no
11624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11628 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11630 else
11631 ac_cv_func_fork_works=$ac_cv_func_fork
11633 if test "x$ac_cv_func_fork_works" = xcross; then
11634 case $host in
11635 *-*-amigaos* | *-*-msdosdjgpp*)
11636 # Override, as these systems have only a dummy fork() stub
11637 ac_cv_func_fork_works=no
11640 ac_cv_func_fork_works=yes
11642 esac
11643 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11644 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11646 ac_cv_func_vfork_works=$ac_cv_func_vfork
11647 if test "x$ac_cv_func_vfork" = xyes; then
11648 echo "$as_me:$LINENO: checking for working vfork" >&5
11649 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11650 if test "${ac_cv_func_vfork_works+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 if test "$cross_compiling" = yes; then
11654 ac_cv_func_vfork_works=cross
11655 else
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 /* Thanks to Paul Eggert for this test. */
11663 #include <stdio.h>
11664 #include <stdlib.h>
11665 #include <sys/types.h>
11666 #include <sys/stat.h>
11667 #include <sys/wait.h>
11668 #if HAVE_UNISTD_H
11669 # include <unistd.h>
11670 #endif
11671 #if HAVE_VFORK_H
11672 # include <vfork.h>
11673 #endif
11674 /* On some sparc systems, changes by the child to local and incoming
11675 argument registers are propagated back to the parent. The compiler
11676 is told about this with #include <vfork.h>, but some compilers
11677 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11678 static variable whose address is put into a register that is
11679 clobbered by the vfork. */
11680 static void
11681 #ifdef __cplusplus
11682 sparc_address_test (int arg)
11683 # else
11684 sparc_address_test (arg) int arg;
11685 #endif
11687 static pid_t child;
11688 if (!child) {
11689 child = vfork ();
11690 if (child < 0) {
11691 perror ("vfork");
11692 _exit(2);
11694 if (!child) {
11695 arg = getpid();
11696 write(-1, "", 0);
11697 _exit (arg);
11703 main ()
11705 pid_t parent = getpid ();
11706 pid_t child;
11708 sparc_address_test (0);
11710 child = vfork ();
11712 if (child == 0) {
11713 /* Here is another test for sparc vfork register problems. This
11714 test uses lots of local variables, at least as many local
11715 variables as main has allocated so far including compiler
11716 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11717 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11718 reuse the register of parent for one of the local variables,
11719 since it will think that parent can't possibly be used any more
11720 in this routine. Assigning to the local variable will thus
11721 munge parent in the parent process. */
11722 pid_t
11723 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11724 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11725 /* Convince the compiler that p..p7 are live; otherwise, it might
11726 use the same hardware register for all 8 local variables. */
11727 if (p != p1 || p != p2 || p != p3 || p != p4
11728 || p != p5 || p != p6 || p != p7)
11729 _exit(1);
11731 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11732 from child file descriptors. If the child closes a descriptor
11733 before it execs or exits, this munges the parent's descriptor
11734 as well. Test for this by closing stdout in the child. */
11735 _exit(close(fileno(stdout)) != 0);
11736 } else {
11737 int status;
11738 struct stat st;
11740 while (wait(&status) != child)
11742 exit(
11743 /* Was there some problem with vforking? */
11744 child < 0
11746 /* Did the child fail? (This shouldn't happen.) */
11747 || status
11749 /* Did the vfork/compiler bug occur? */
11750 || parent != getpid()
11752 /* Did the file descriptor bug occur? */
11753 || fstat(fileno(stdout), &st) != 0
11757 _ACEOF
11758 rm -f conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_func_vfork_works=yes
11770 else
11771 echo "$as_me: program exited with status $ac_status" >&5
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ( exit $ac_status )
11776 ac_cv_func_vfork_works=no
11778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11781 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11782 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11785 if test "x$ac_cv_func_fork_works" = xcross; then
11786 ac_cv_func_vfork_works=$ac_cv_func_vfork
11787 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11788 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11791 if test "x$ac_cv_func_vfork_works" = xyes; then
11793 cat >>confdefs.h <<\_ACEOF
11794 #define HAVE_WORKING_VFORK 1
11795 _ACEOF
11797 else
11799 cat >>confdefs.h <<\_ACEOF
11800 #define vfork fork
11801 _ACEOF
11804 if test "x$ac_cv_func_fork_works" = xyes; then
11806 cat >>confdefs.h <<\_ACEOF
11807 #define HAVE_WORKING_FORK 1
11808 _ACEOF
11812 if test x$SYS != xwin32; then
11814 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11815 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11816 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11817 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-lsun $LIBS"
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11829 /* Override any gcc2 internal prototype to avoid an error. */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 /* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11835 char getmntent ();
11837 main ()
11839 getmntent ();
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_lib_sun_getmntent=yes
11867 else
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_cv_lib_sun_getmntent=no
11873 rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11877 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11878 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11879 if test $ac_cv_lib_sun_getmntent = yes; then
11880 LIBS="-lsun $LIBS"
11881 else
11882 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11883 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11884 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lseq $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char getmntent ();
11904 main ()
11906 getmntent ();
11908 return 0;
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_c_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_seq_getmntent=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_cv_lib_seq_getmntent=no
11940 rm -f conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11945 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11946 if test $ac_cv_lib_seq_getmntent = yes; then
11947 LIBS="-lseq $LIBS"
11948 else
11949 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11950 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11951 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lgen $LIBS"
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969 char getmntent ();
11971 main ()
11973 getmntent ();
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_lib_gen_getmntent=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_cv_lib_gen_getmntent=no
12007 rm -f conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
12012 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
12013 if test $ac_cv_lib_gen_getmntent = yes; then
12014 LIBS="-lgen $LIBS"
12022 for ac_func in getmntent
12024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 echo "$as_me:$LINENO: checking for $ac_func" >&5
12026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12027 if eval "test \"\${$as_ac_var+set}\" = set"; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12038 #define $ac_func innocuous_$ac_func
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func (); below.
12042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 <limits.h> exists even on freestanding compilers. */
12045 #ifdef __STDC__
12046 # include <limits.h>
12047 #else
12048 # include <assert.h>
12049 #endif
12051 #undef $ac_func
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 #ifdef __cplusplus
12055 extern "C"
12057 #endif
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12060 char $ac_func ();
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12065 choke me
12066 #else
12067 char (*f) () = $ac_func;
12068 #endif
12069 #ifdef __cplusplus
12071 #endif
12074 main ()
12076 return f != $ac_func;
12078 return 0;
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12110 rm -f conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 _ACEOF
12121 done
12124 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12125 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12126 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 rm -f conftest.sym conftest.file
12130 echo >conftest.file
12131 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12132 if test "$cross_compiling" = yes; then
12133 ac_cv_func_lstat_dereferences_slashed_symlink=no
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12143 main ()
12145 struct stat sbuf;
12146 /* Linux will dereference the symlink and fail.
12147 That is better in the sense that it means we will not
12148 have to compile and use the lstat wrapper. */
12149 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12151 return 0;
12153 _ACEOF
12154 rm -f conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12166 else
12167 echo "$as_me: program exited with status $ac_status" >&5
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ( exit $ac_status )
12172 ac_cv_func_lstat_dereferences_slashed_symlink=no
12174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12176 else
12177 # If the `ln -s' command failed, then we probably don't even
12178 # have an lstat function.
12179 ac_cv_func_lstat_dereferences_slashed_symlink=no
12181 rm -f conftest.sym conftest.file
12184 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12185 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12187 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12189 cat >>confdefs.h <<_ACEOF
12190 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12191 _ACEOF
12194 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12195 case $LIBOBJS in
12196 "lstat.$ac_objext" | \
12197 *" lstat.$ac_objext" | \
12198 "lstat.$ac_objext "* | \
12199 *" lstat.$ac_objext "* ) ;;
12200 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12201 esac
12205 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12206 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12207 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 if test "$cross_compiling" = yes; then
12211 ac_cv_func_lstat_empty_string_bug=yes
12212 else
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12221 main ()
12223 struct stat sbuf;
12224 exit (lstat ("", &sbuf) ? 1 : 0);
12226 return 0;
12228 _ACEOF
12229 rm -f conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_func_lstat_empty_string_bug=yes
12241 else
12242 echo "$as_me: program exited with status $ac_status" >&5
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ( exit $ac_status )
12247 ac_cv_func_lstat_empty_string_bug=no
12249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12252 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12253 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12254 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12255 case $LIBOBJS in
12256 "lstat.$ac_objext" | \
12257 *" lstat.$ac_objext" | \
12258 "lstat.$ac_objext "* | \
12259 *" lstat.$ac_objext "* ) ;;
12260 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12261 esac
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12266 _ACEOF
12270 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12271 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12272 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 rm -f conftest.sym conftest.file
12276 echo >conftest.file
12277 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12278 if test "$cross_compiling" = yes; then
12279 ac_cv_func_lstat_dereferences_slashed_symlink=no
12280 else
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12289 main ()
12291 struct stat sbuf;
12292 /* Linux will dereference the symlink and fail.
12293 That is better in the sense that it means we will not
12294 have to compile and use the lstat wrapper. */
12295 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12297 return 0;
12299 _ACEOF
12300 rm -f conftest$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12312 else
12313 echo "$as_me: program exited with status $ac_status" >&5
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ( exit $ac_status )
12318 ac_cv_func_lstat_dereferences_slashed_symlink=no
12320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12322 else
12323 # If the `ln -s' command failed, then we probably don't even
12324 # have an lstat function.
12325 ac_cv_func_lstat_dereferences_slashed_symlink=no
12327 rm -f conftest.sym conftest.file
12330 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12331 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12333 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12335 cat >>confdefs.h <<_ACEOF
12336 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12337 _ACEOF
12340 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12341 case $LIBOBJS in
12342 "lstat.$ac_objext" | \
12343 *" lstat.$ac_objext" | \
12344 "lstat.$ac_objext "* | \
12345 *" lstat.$ac_objext "* ) ;;
12346 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12347 esac
12354 echo "$as_me:$LINENO: checking for working memcmp" >&5
12355 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12356 if test "${ac_cv_func_memcmp_working+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 else
12359 if test "$cross_compiling" = yes; then
12360 ac_cv_func_memcmp_working=no
12361 else
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12370 main ()
12373 /* Some versions of memcmp are not 8-bit clean. */
12374 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12375 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12376 exit (1);
12378 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12379 or more and with at least one buffer not starting on a 4-byte boundary.
12380 William Lewis provided this test program. */
12382 char foo[21];
12383 char bar[21];
12384 int i;
12385 for (i = 0; i < 4; i++)
12387 char *a = foo + i;
12388 char *b = bar + i;
12389 strcpy (a, "--------01111111");
12390 strcpy (b, "--------10000000");
12391 if (memcmp (a, b, 16) >= 0)
12392 exit (1);
12394 exit (0);
12398 return 0;
12400 _ACEOF
12401 rm -f conftest$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_func_memcmp_working=yes
12413 else
12414 echo "$as_me: program exited with status $ac_status" >&5
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ( exit $ac_status )
12419 ac_cv_func_memcmp_working=no
12421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12424 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12425 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12426 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12427 "memcmp.$ac_objext" | \
12428 *" memcmp.$ac_objext" | \
12429 "memcmp.$ac_objext "* | \
12430 *" memcmp.$ac_objext "* ) ;;
12431 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12432 esac
12437 for ac_header in stdlib.h unistd.h
12439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12441 echo "$as_me:$LINENO: checking for $ac_header" >&5
12442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12448 else
12449 # Is the header compilable?
12450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 $ac_includes_default
12459 #include <$ac_header>
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_header_compiler=yes
12484 else
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_compiler=no
12490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12492 echo "${ECHO_T}$ac_header_compiler" >&6
12494 # Is the header present?
12495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <$ac_header>
12504 _ACEOF
12505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } >/dev/null; then
12513 if test -s conftest.err; then
12514 ac_cpp_err=$ac_c_preproc_warn_flag
12515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12516 else
12517 ac_cpp_err=
12519 else
12520 ac_cpp_err=yes
12522 if test -z "$ac_cpp_err"; then
12523 ac_header_preproc=yes
12524 else
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ac_header_preproc=no
12530 rm -f conftest.err conftest.$ac_ext
12531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12532 echo "${ECHO_T}$ac_header_preproc" >&6
12534 # So? What about this header?
12535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12536 yes:no: )
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12541 ac_header_preproc=yes
12543 no:yes:* )
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12557 cat <<\_ASBOX
12558 ## ------------------------------ ##
12559 ## Report this to admin@amule.org ##
12560 ## ------------------------------ ##
12561 _ASBOX
12563 sed "s/^/$as_me: WARNING: /" >&2
12565 esac
12566 echo "$as_me:$LINENO: checking for $ac_header" >&5
12567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 eval "$as_ac_Header=\$ac_header_preproc"
12573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12580 _ACEOF
12584 done
12587 for ac_func in getpagesize
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_var+set}\" = set"; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603 #define $ac_func innocuous_$ac_func
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12610 #ifdef __STDC__
12611 # include <limits.h>
12612 #else
12613 # include <assert.h>
12614 #endif
12616 #undef $ac_func
12618 /* Override any gcc2 internal prototype to avoid an error. */
12619 #ifdef __cplusplus
12620 extern "C"
12622 #endif
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12625 char $ac_func ();
12626 /* The GNU C library defines this for functions which it implements
12627 to always fail with ENOSYS. Some functions are actually named
12628 something starting with __ and the normal name is an alias. */
12629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12630 choke me
12631 #else
12632 char (*f) () = $ac_func;
12633 #endif
12634 #ifdef __cplusplus
12636 #endif
12639 main ()
12641 return f != $ac_func;
12643 return 0;
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 eval "$as_ac_var=yes"
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 eval "$as_ac_var=no"
12675 rm -f conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12680 if test `eval echo '${'$as_ac_var'}'` = yes; then
12681 cat >>confdefs.h <<_ACEOF
12682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12683 _ACEOF
12686 done
12688 echo "$as_me:$LINENO: checking for working mmap" >&5
12689 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12690 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693 if test "$cross_compiling" = yes; then
12694 ac_cv_func_mmap_fixed_mapped=no
12695 else
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 $ac_includes_default
12703 /* malloc might have been renamed as rpl_malloc. */
12704 #undef malloc
12706 /* Thanks to Mike Haertel and Jim Avera for this test.
12707 Here is a matrix of mmap possibilities:
12708 mmap private not fixed
12709 mmap private fixed at somewhere currently unmapped
12710 mmap private fixed at somewhere already mapped
12711 mmap shared not fixed
12712 mmap shared fixed at somewhere currently unmapped
12713 mmap shared fixed at somewhere already mapped
12714 For private mappings, we should verify that changes cannot be read()
12715 back from the file, nor mmap's back from the file at a different
12716 address. (There have been systems where private was not correctly
12717 implemented like the infamous i386 svr4.0, and systems where the
12718 VM page cache was not coherent with the file system buffer cache
12719 like early versions of FreeBSD and possibly contemporary NetBSD.)
12720 For shared mappings, we should conversely verify that changes get
12721 propagated back to all the places they're supposed to be.
12723 Grep wants private fixed already mapped.
12724 The main things grep needs to know about mmap are:
12725 * does it exist and is it safe to write into the mmap'd area
12726 * how to use it (BSD variants) */
12728 #include <fcntl.h>
12729 #include <sys/mman.h>
12731 #if !STDC_HEADERS && !HAVE_STDLIB_H
12732 char *malloc ();
12733 #endif
12735 /* This mess was copied from the GNU getpagesize.h. */
12736 #if !HAVE_GETPAGESIZE
12737 /* Assume that all systems that can run configure have sys/param.h. */
12738 # if !HAVE_SYS_PARAM_H
12739 # define HAVE_SYS_PARAM_H 1
12740 # endif
12742 # ifdef _SC_PAGESIZE
12743 # define getpagesize() sysconf(_SC_PAGESIZE)
12744 # else /* no _SC_PAGESIZE */
12745 # if HAVE_SYS_PARAM_H
12746 # include <sys/param.h>
12747 # ifdef EXEC_PAGESIZE
12748 # define getpagesize() EXEC_PAGESIZE
12749 # else /* no EXEC_PAGESIZE */
12750 # ifdef NBPG
12751 # define getpagesize() NBPG * CLSIZE
12752 # ifndef CLSIZE
12753 # define CLSIZE 1
12754 # endif /* no CLSIZE */
12755 # else /* no NBPG */
12756 # ifdef NBPC
12757 # define getpagesize() NBPC
12758 # else /* no NBPC */
12759 # ifdef PAGESIZE
12760 # define getpagesize() PAGESIZE
12761 # endif /* PAGESIZE */
12762 # endif /* no NBPC */
12763 # endif /* no NBPG */
12764 # endif /* no EXEC_PAGESIZE */
12765 # else /* no HAVE_SYS_PARAM_H */
12766 # define getpagesize() 8192 /* punt totally */
12767 # endif /* no HAVE_SYS_PARAM_H */
12768 # endif /* no _SC_PAGESIZE */
12770 #endif /* no HAVE_GETPAGESIZE */
12773 main ()
12775 char *data, *data2, *data3;
12776 int i, pagesize;
12777 int fd;
12779 pagesize = getpagesize ();
12781 /* First, make a file with some known garbage in it. */
12782 data = (char *) malloc (pagesize);
12783 if (!data)
12784 exit (1);
12785 for (i = 0; i < pagesize; ++i)
12786 *(data + i) = rand ();
12787 umask (0);
12788 fd = creat ("conftest.mmap", 0600);
12789 if (fd < 0)
12790 exit (1);
12791 if (write (fd, data, pagesize) != pagesize)
12792 exit (1);
12793 close (fd);
12795 /* Next, try to mmap the file at a fixed address which already has
12796 something else allocated at it. If we can, also make sure that
12797 we see the same garbage. */
12798 fd = open ("conftest.mmap", O_RDWR);
12799 if (fd < 0)
12800 exit (1);
12801 data2 = (char *) malloc (2 * pagesize);
12802 if (!data2)
12803 exit (1);
12804 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12806 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12807 exit (1);
12808 for (i = 0; i < pagesize; ++i)
12809 if (*(data + i) != *(data2 + i))
12810 exit (1);
12812 /* Finally, make sure that changes to the mapped area do not
12813 percolate back to the file as seen by read(). (This is a bug on
12814 some variants of i386 svr4.0.) */
12815 for (i = 0; i < pagesize; ++i)
12816 *(data2 + i) = *(data2 + i) + 1;
12817 data3 = (char *) malloc (pagesize);
12818 if (!data3)
12819 exit (1);
12820 if (read (fd, data3, pagesize) != pagesize)
12821 exit (1);
12822 for (i = 0; i < pagesize; ++i)
12823 if (*(data + i) != *(data3 + i))
12824 exit (1);
12825 close (fd);
12826 exit (0);
12828 _ACEOF
12829 rm -f conftest$ac_exeext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831 (eval $ac_link) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_func_mmap_fixed_mapped=yes
12841 else
12842 echo "$as_me: program exited with status $ac_status" >&5
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ( exit $ac_status )
12847 ac_cv_func_mmap_fixed_mapped=no
12849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12852 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12853 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12854 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_MMAP 1
12858 _ACEOF
12861 rm -f conftest.mmap
12865 for ac_header in sys/select.h sys/socket.h
12867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12869 echo "$as_me:$LINENO: checking for $ac_header" >&5
12870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12876 else
12877 # Is the header compilable?
12878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <$ac_header>
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_header_compiler=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_header_compiler=no
12918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920 echo "${ECHO_T}$ac_header_compiler" >&6
12922 # Is the header present?
12923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <$ac_header>
12932 _ACEOF
12933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_c_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12944 else
12945 ac_cpp_err=
12947 else
12948 ac_cpp_err=yes
12950 if test -z "$ac_cpp_err"; then
12951 ac_header_preproc=yes
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 ac_header_preproc=no
12958 rm -f conftest.err conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 echo "${ECHO_T}$ac_header_preproc" >&6
12962 # So? What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12964 yes:no: )
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc=yes
12971 no:yes:* )
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12985 cat <<\_ASBOX
12986 ## ------------------------------ ##
12987 ## Report this to admin@amule.org ##
12988 ## ------------------------------ ##
12989 _ASBOX
12991 sed "s/^/$as_me: WARNING: /" >&2
12993 esac
12994 echo "$as_me:$LINENO: checking for $ac_header" >&5
12995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 eval "$as_ac_Header=\$ac_header_preproc"
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13008 _ACEOF
13012 done
13014 echo "$as_me:$LINENO: checking types of arguments for select" >&5
13015 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
13016 if test "${ac_cv_func_select_args+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13020 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
13021 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 #if HAVE_SYS_SELECT_H
13030 # include <sys/select.h>
13031 #endif
13032 #if HAVE_SYS_SOCKET_H
13033 # include <sys/socket.h>
13034 #endif
13037 main ()
13039 extern int select ($ac_arg1,
13040 $ac_arg234, $ac_arg234, $ac_arg234,
13041 $ac_arg5);
13043 return 0;
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag"
13056 || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13075 done
13076 done
13077 done
13078 # Provide a safe default value.
13079 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13082 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13083 echo "${ECHO_T}$ac_cv_func_select_args" >&6
13084 ac_save_IFS=$IFS; IFS=','
13085 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13086 IFS=$ac_save_IFS
13087 shift
13089 cat >>confdefs.h <<_ACEOF
13090 #define SELECT_TYPE_ARG1 $1
13091 _ACEOF
13094 cat >>confdefs.h <<_ACEOF
13095 #define SELECT_TYPE_ARG234 ($2)
13096 _ACEOF
13099 cat >>confdefs.h <<_ACEOF
13100 #define SELECT_TYPE_ARG5 ($3)
13101 _ACEOF
13103 rm -f conftest*
13105 echo "$as_me:$LINENO: checking for function prototypes" >&5
13106 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13107 if test "$ac_cv_prog_cc_stdc" != no; then
13108 echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6
13111 cat >>confdefs.h <<\_ACEOF
13112 #define PROTOTYPES 1
13113 _ACEOF
13116 cat >>confdefs.h <<\_ACEOF
13117 #define __PROTOTYPES 1
13118 _ACEOF
13120 else
13121 echo "$as_me:$LINENO: result: no" >&5
13122 echo "${ECHO_T}no" >&6
13125 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13126 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13127 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130 ac_cv_func_setvbuf_reversed=no
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <stdio.h>
13138 # if PROTOTYPES
13139 int (setvbuf) (FILE *, int, char *, size_t);
13140 # endif
13142 main ()
13144 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13146 return 0;
13148 _ACEOF
13149 rm -f conftest.$ac_objext conftest$ac_exeext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13151 (eval $ac_link) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <stdio.h>
13178 # if PROTOTYPES
13179 int (setvbuf) (FILE *, int, char *, size_t);
13180 # endif
13182 main ()
13184 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13186 return 0;
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191 (eval $ac_link) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 # It compiles and links either way, so it must not be declared
13212 # with a prototype and most likely this is a K&R C compiler.
13213 # Try running it.
13214 if test "$cross_compiling" = yes; then
13215 : # Assume setvbuf is not reversed when cross-compiling.
13216 else
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <stdio.h>
13225 main ()
13227 /* This call has the arguments reversed.
13228 A reversed system may check and see that the address of buf
13229 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13230 char buf;
13231 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13232 exit (1);
13233 putchar ('\r');
13234 exit (0); /* Non-reversed systems SEGV here. */
13236 return 0;
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_cv_func_setvbuf_reversed=yes
13251 else
13252 echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ( exit $ac_status )
13257 rm -f core *.core
13259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13261 ac_cv_func_setvbuf_reversed=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13267 rm -f conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 else
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13274 rm -f conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13278 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13279 if test $ac_cv_func_setvbuf_reversed = yes; then
13281 cat >>confdefs.h <<\_ACEOF
13282 #define SETVBUF_REVERSED 1
13283 _ACEOF
13287 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13288 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13289 if test "${ac_cv_type_signal+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <sys/types.h>
13299 #include <signal.h>
13300 #ifdef signal
13301 # undef signal
13302 #endif
13303 #ifdef __cplusplus
13304 extern "C" void (*signal (int, void (*)(int)))(int);
13305 #else
13306 void (*signal ()) ();
13307 #endif
13310 main ()
13312 int i;
13314 return 0;
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_type_signal=void
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 ac_cv_type_signal=int
13346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13348 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13349 echo "${ECHO_T}$ac_cv_type_signal" >&6
13351 cat >>confdefs.h <<_ACEOF
13352 #define RETSIGTYPE $ac_cv_type_signal
13353 _ACEOF
13356 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13357 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13358 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361 if test "$cross_compiling" = yes; then
13362 ac_cv_func_stat_empty_string_bug=yes
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 $ac_includes_default
13372 main ()
13374 struct stat sbuf;
13375 exit (stat ("", &sbuf) ? 1 : 0);
13377 return 0;
13379 _ACEOF
13380 rm -f conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_stat_empty_string_bug=yes
13392 else
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_stat_empty_string_bug=no
13400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13403 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13404 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13405 if test $ac_cv_func_stat_empty_string_bug = yes; then
13406 case $LIBOBJS in
13407 "stat.$ac_objext" | \
13408 *" stat.$ac_objext" | \
13409 "stat.$ac_objext "* | \
13410 *" stat.$ac_objext "* ) ;;
13411 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13412 esac
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_STAT_EMPTY_STRING_BUG 1
13417 _ACEOF
13422 for ac_func in strftime
13424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_func" >&5
13426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_var+set}\" = set"; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13438 #define $ac_func innocuous_$ac_func
13440 /* System header to define __stub macros and hopefully few prototypes,
13441 which can conflict with char $ac_func (); below.
13442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13443 <limits.h> exists even on freestanding compilers. */
13445 #ifdef __STDC__
13446 # include <limits.h>
13447 #else
13448 # include <assert.h>
13449 #endif
13451 #undef $ac_func
13453 /* Override any gcc2 internal prototype to avoid an error. */
13454 #ifdef __cplusplus
13455 extern "C"
13457 #endif
13458 /* We use char because int might match the return type of a gcc2
13459 builtin and then its argument prototype would still apply. */
13460 char $ac_func ();
13461 /* The GNU C library defines this for functions which it implements
13462 to always fail with ENOSYS. Some functions are actually named
13463 something starting with __ and the normal name is an alias. */
13464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13465 choke me
13466 #else
13467 char (*f) () = $ac_func;
13468 #endif
13469 #ifdef __cplusplus
13471 #endif
13474 main ()
13476 return f != $ac_func;
13478 return 0;
13480 _ACEOF
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 (eval $ac_link) 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag"
13491 || test ! -s conftest.err'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 eval "$as_ac_var=yes"
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 eval "$as_ac_var=no"
13510 rm -f conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13515 if test `eval echo '${'$as_ac_var'}'` = yes; then
13516 cat >>confdefs.h <<_ACEOF
13517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13518 _ACEOF
13520 else
13521 # strftime is in -lintl on SCO UNIX.
13522 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13523 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13524 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-lintl $LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13542 char strftime ();
13544 main ()
13546 strftime ();
13548 return 0;
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_intl_strftime=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_lib_intl_strftime=no
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13584 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13585 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13586 if test $ac_cv_lib_intl_strftime = yes; then
13587 cat >>confdefs.h <<\_ACEOF
13588 #define HAVE_STRFTIME 1
13589 _ACEOF
13591 LIBS="-lintl $LIBS"
13595 done
13597 echo "$as_me:$LINENO: checking for working strtod" >&5
13598 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13599 if test "${ac_cv_func_strtod+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 if test "$cross_compiling" = yes; then
13603 ac_cv_func_strtod=no
13604 else
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 double strtod ();
13614 main()
13617 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13618 char *string = " +69";
13619 char *term;
13620 double value;
13621 value = strtod (string, &term);
13622 if (value != 69 || term != (string + 4))
13623 exit (1);
13627 /* Under Solaris 2.4, strtod returns the wrong value for the
13628 terminating character under some conditions. */
13629 char *string = "NaN";
13630 char *term;
13631 strtod (string, &term);
13632 if (term != string && *(term - 1) == 0)
13633 exit (1);
13635 exit (0);
13638 _ACEOF
13639 rm -f conftest$ac_exeext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_func_strtod=yes
13651 else
13652 echo "$as_me: program exited with status $ac_status" >&5
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ( exit $ac_status )
13657 ac_cv_func_strtod=no
13659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13663 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13664 if test $ac_cv_func_strtod = no; then
13665 case $LIBOBJS in
13666 "strtod.$ac_objext" | \
13667 *" strtod.$ac_objext" | \
13668 "strtod.$ac_objext "* | \
13669 *" strtod.$ac_objext "* ) ;;
13670 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13671 esac
13673 echo "$as_me:$LINENO: checking for pow" >&5
13674 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13675 if test "${ac_cv_func_pow+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13686 #define pow innocuous_pow
13688 /* System header to define __stub macros and hopefully few prototypes,
13689 which can conflict with char pow (); below.
13690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13691 <limits.h> exists even on freestanding compilers. */
13693 #ifdef __STDC__
13694 # include <limits.h>
13695 #else
13696 # include <assert.h>
13697 #endif
13699 #undef pow
13701 /* Override any gcc2 internal prototype to avoid an error. */
13702 #ifdef __cplusplus
13703 extern "C"
13705 #endif
13706 /* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13708 char pow ();
13709 /* The GNU C library defines this for functions which it implements
13710 to always fail with ENOSYS. Some functions are actually named
13711 something starting with __ and the normal name is an alias. */
13712 #if defined (__stub_pow) || defined (__stub___pow)
13713 choke me
13714 #else
13715 char (*f) () = pow;
13716 #endif
13717 #ifdef __cplusplus
13719 #endif
13722 main ()
13724 return f != pow;
13726 return 0;
13728 _ACEOF
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 (eval $ac_link) 2>conftest.er1
13732 ac_status=$?
13733 grep -v '^ *+' conftest.er1 >conftest.err
13734 rm -f conftest.er1
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -z "$ac_c_werror_flag"
13739 || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_func_pow=yes
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_func_pow=no
13758 rm -f conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13762 echo "${ECHO_T}$ac_cv_func_pow" >&6
13764 if test $ac_cv_func_pow = no; then
13765 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13766 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13767 if test "${ac_cv_lib_m_pow+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lm $LIBS"
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any gcc2 internal prototype to avoid an error. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13785 char pow ();
13787 main ()
13789 pow ();
13791 return 0;
13793 _ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796 (eval $ac_link) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest$ac_exeext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_lib_m_pow=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_cv_lib_m_pow=no
13823 rm -f conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13825 LIBS=$ac_check_lib_save_LIBS
13827 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13828 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13829 if test $ac_cv_lib_m_pow = yes; then
13830 POW_LIB=-lm
13831 else
13832 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13833 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13841 for ac_func in vprintf
13843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13844 echo "$as_me:$LINENO: checking for $ac_func" >&5
13845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13846 if eval "test \"\${$as_ac_var+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h. */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13857 #define $ac_func innocuous_$ac_func
13859 /* System header to define __stub macros and hopefully few prototypes,
13860 which can conflict with char $ac_func (); below.
13861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13862 <limits.h> exists even on freestanding compilers. */
13864 #ifdef __STDC__
13865 # include <limits.h>
13866 #else
13867 # include <assert.h>
13868 #endif
13870 #undef $ac_func
13872 /* Override any gcc2 internal prototype to avoid an error. */
13873 #ifdef __cplusplus
13874 extern "C"
13876 #endif
13877 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13879 char $ac_func ();
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13884 choke me
13885 #else
13886 char (*f) () = $ac_func;
13887 #endif
13888 #ifdef __cplusplus
13890 #endif
13893 main ()
13895 return f != $ac_func;
13897 return 0;
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13902 (eval $ac_link) 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest$ac_exeext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 eval "$as_ac_var=yes"
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 eval "$as_ac_var=no"
13929 rm -f conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13934 if test `eval echo '${'$as_ac_var'}'` = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13937 _ACEOF
13939 echo "$as_me:$LINENO: checking for _doprnt" >&5
13940 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13941 if test "${ac_cv_func__doprnt+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13952 #define _doprnt innocuous__doprnt
13954 /* System header to define __stub macros and hopefully few prototypes,
13955 which can conflict with char _doprnt (); below.
13956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13957 <limits.h> exists even on freestanding compilers. */
13959 #ifdef __STDC__
13960 # include <limits.h>
13961 #else
13962 # include <assert.h>
13963 #endif
13965 #undef _doprnt
13967 /* Override any gcc2 internal prototype to avoid an error. */
13968 #ifdef __cplusplus
13969 extern "C"
13971 #endif
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13974 char _doprnt ();
13975 /* The GNU C library defines this for functions which it implements
13976 to always fail with ENOSYS. Some functions are actually named
13977 something starting with __ and the normal name is an alias. */
13978 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13979 choke me
13980 #else
13981 char (*f) () = _doprnt;
13982 #endif
13983 #ifdef __cplusplus
13985 #endif
13988 main ()
13990 return f != _doprnt;
13992 return 0;
13994 _ACEOF
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997 (eval $ac_link) 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_func__doprnt=yes
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_cv_func__doprnt=no
14024 rm -f conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14028 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14029 if test $ac_cv_func__doprnt = yes; then
14031 cat >>confdefs.h <<\_ACEOF
14032 #define HAVE_DOPRNT 1
14033 _ACEOF
14038 done
14041 if test $cross_compiling = yes -a $gnumalloc = yes; then
14043 { echo "$as_me:$LINENO: WARNING:
14044 configure cannot check whether malloc() and realloc() are GNU libc
14045 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14046 run configure with the --without-gnu-malloc switch." >&5
14047 echo "$as_me: WARNING:
14048 configure cannot check whether malloc() and realloc() are GNU libc
14049 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14050 run configure with the --without-gnu-malloc switch." >&2;}
14051 ac_cv_func_malloc_0_nonnull=yes
14052 ac_cv_func_realloc_0_nonnull=yes
14057 for ac_header in stdlib.h
14059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo "$as_me:$LINENO: checking for $ac_header" >&5
14062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14068 else
14069 # Is the header compilable?
14070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 $ac_includes_default
14079 #include <$ac_header>
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_header_compiler=yes
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_header_compiler=no
14110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14112 echo "${ECHO_T}$ac_header_compiler" >&6
14114 # Is the header present?
14115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 #include <$ac_header>
14124 _ACEOF
14125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } >/dev/null; then
14133 if test -s conftest.err; then
14134 ac_cpp_err=$ac_c_preproc_warn_flag
14135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14136 else
14137 ac_cpp_err=
14139 else
14140 ac_cpp_err=yes
14142 if test -z "$ac_cpp_err"; then
14143 ac_header_preproc=yes
14144 else
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ac_header_preproc=no
14150 rm -f conftest.err conftest.$ac_ext
14151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14152 echo "${ECHO_T}$ac_header_preproc" >&6
14154 # So? What about this header?
14155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14156 yes:no: )
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14161 ac_header_preproc=yes
14163 no:yes:* )
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14177 cat <<\_ASBOX
14178 ## ------------------------------ ##
14179 ## Report this to admin@amule.org ##
14180 ## ------------------------------ ##
14181 _ASBOX
14183 sed "s/^/$as_me: WARNING: /" >&2
14185 esac
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 eval "$as_ac_Header=\$ac_header_preproc"
14193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198 cat >>confdefs.h <<_ACEOF
14199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14200 _ACEOF
14204 done
14206 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14207 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14208 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211 if test "$cross_compiling" = yes; then
14212 ac_cv_func_malloc_0_nonnull=no
14213 else
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #if STDC_HEADERS || HAVE_STDLIB_H
14221 # include <stdlib.h>
14222 #else
14223 char *malloc ();
14224 #endif
14227 main ()
14229 exit (malloc (0) ? 0 : 1);
14231 return 0;
14233 _ACEOF
14234 rm -f conftest$ac_exeext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236 (eval $ac_link) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_func_malloc_0_nonnull=yes
14246 else
14247 echo "$as_me: program exited with status $ac_status" >&5
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ( exit $ac_status )
14252 ac_cv_func_malloc_0_nonnull=no
14254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14258 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14259 if test $ac_cv_func_malloc_0_nonnull = yes; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_MALLOC 1
14263 _ACEOF
14265 else
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_MALLOC 0
14268 _ACEOF
14270 case $LIBOBJS in
14271 "malloc.$ac_objext" | \
14272 *" malloc.$ac_objext" | \
14273 "malloc.$ac_objext "* | \
14274 *" malloc.$ac_objext "* ) ;;
14275 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
14276 esac
14279 cat >>confdefs.h <<\_ACEOF
14280 #define malloc rpl_malloc
14281 _ACEOF
14288 for ac_header in stdlib.h
14290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14299 else
14300 # Is the header compilable?
14301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14310 #include <$ac_header>
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_header_compiler=yes
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_header_compiler=no
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6
14345 # Is the header present?
14346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <$ac_header>
14355 _ACEOF
14356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } >/dev/null; then
14364 if test -s conftest.err; then
14365 ac_cpp_err=$ac_c_preproc_warn_flag
14366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14367 else
14368 ac_cpp_err=
14370 else
14371 ac_cpp_err=yes
14373 if test -z "$ac_cpp_err"; then
14374 ac_header_preproc=yes
14375 else
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 ac_header_preproc=no
14381 rm -f conftest.err conftest.$ac_ext
14382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 echo "${ECHO_T}$ac_header_preproc" >&6
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 yes:no: )
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14392 ac_header_preproc=yes
14394 no:yes:* )
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14408 cat <<\_ASBOX
14409 ## ------------------------------ ##
14410 ## Report this to admin@amule.org ##
14411 ## ------------------------------ ##
14412 _ASBOX
14414 sed "s/^/$as_me: WARNING: /" >&2
14416 esac
14417 echo "$as_me:$LINENO: checking for $ac_header" >&5
14418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422 eval "$as_ac_Header=\$ac_header_preproc"
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14429 cat >>confdefs.h <<_ACEOF
14430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14431 _ACEOF
14435 done
14437 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14438 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14439 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442 if test "$cross_compiling" = yes; then
14443 ac_cv_func_realloc_0_nonnull=no
14444 else
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #if STDC_HEADERS || HAVE_STDLIB_H
14452 # include <stdlib.h>
14453 #else
14454 char *realloc ();
14455 #endif
14458 main ()
14460 exit (realloc (0, 0) ? 0 : 1);
14462 return 0;
14464 _ACEOF
14465 rm -f conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_func_realloc_0_nonnull=yes
14477 else
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ( exit $ac_status )
14483 ac_cv_func_realloc_0_nonnull=no
14485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14489 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14490 if test $ac_cv_func_realloc_0_nonnull = yes; then
14492 cat >>confdefs.h <<\_ACEOF
14493 #define HAVE_REALLOC 1
14494 _ACEOF
14496 else
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_REALLOC 0
14499 _ACEOF
14501 case $LIBOBJS in
14502 "realloc.$ac_objext" | \
14503 *" realloc.$ac_objext" | \
14504 "realloc.$ac_objext "* | \
14505 *" realloc.$ac_objext "* ) ;;
14506 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14507 esac
14510 cat >>confdefs.h <<\_ACEOF
14511 #define realloc rpl_realloc
14512 _ACEOF
14551 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
14553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14554 echo "$as_me:$LINENO: checking for $ac_func" >&5
14555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_var+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14567 #define $ac_func innocuous_$ac_func
14569 /* System header to define __stub macros and hopefully few prototypes,
14570 which can conflict with char $ac_func (); below.
14571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14572 <limits.h> exists even on freestanding compilers. */
14574 #ifdef __STDC__
14575 # include <limits.h>
14576 #else
14577 # include <assert.h>
14578 #endif
14580 #undef $ac_func
14582 /* Override any gcc2 internal prototype to avoid an error. */
14583 #ifdef __cplusplus
14584 extern "C"
14586 #endif
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589 char $ac_func ();
14590 /* The GNU C library defines this for functions which it implements
14591 to always fail with ENOSYS. Some functions are actually named
14592 something starting with __ and the normal name is an alias. */
14593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14594 choke me
14595 #else
14596 char (*f) () = $ac_func;
14597 #endif
14598 #ifdef __cplusplus
14600 #endif
14603 main ()
14605 return f != $ac_func;
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612 (eval $ac_link) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest$ac_exeext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 eval "$as_ac_var=yes"
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 eval "$as_ac_var=no"
14639 rm -f conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14644 if test `eval echo '${'$as_ac_var'}'` = yes; then
14645 cat >>confdefs.h <<_ACEOF
14646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14647 _ACEOF
14650 done
14652 #-------------------------------------------------------------------------------
14653 # End of autoscan stuff
14654 #-------------------------------------------------------------------------------
14660 for ac_func in mkdir getrlimit setrlimit getopt_long
14662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14663 echo "$as_me:$LINENO: checking for $ac_func" >&5
14664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14665 if eval "test \"\${$as_ac_var+set}\" = set"; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14676 #define $ac_func innocuous_$ac_func
14678 /* System header to define __stub macros and hopefully few prototypes,
14679 which can conflict with char $ac_func (); below.
14680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14681 <limits.h> exists even on freestanding compilers. */
14683 #ifdef __STDC__
14684 # include <limits.h>
14685 #else
14686 # include <assert.h>
14687 #endif
14689 #undef $ac_func
14691 /* Override any gcc2 internal prototype to avoid an error. */
14692 #ifdef __cplusplus
14693 extern "C"
14695 #endif
14696 /* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14698 char $ac_func ();
14699 /* The GNU C library defines this for functions which it implements
14700 to always fail with ENOSYS. Some functions are actually named
14701 something starting with __ and the normal name is an alias. */
14702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14703 choke me
14704 #else
14705 char (*f) () = $ac_func;
14706 #endif
14707 #ifdef __cplusplus
14709 #endif
14712 main ()
14714 return f != $ac_func;
14716 return 0;
14718 _ACEOF
14719 rm -f conftest.$ac_objext conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721 (eval $ac_link) 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 eval "$as_ac_var=yes"
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 eval "$as_ac_var=no"
14748 rm -f conftest.err conftest.$ac_objext \
14749 conftest$ac_exeext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14756 _ACEOF
14759 done
14762 mule_backup_CPPFLAGS="$CPPFLAGS"
14763 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14764 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14765 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14766 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14777 main ()
14779 #ifndef strerror_r
14780 char *p = (char *) strerror_r;
14781 #endif
14784 return 0;
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>conftest.er1
14790 ac_status=$?
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_have_decl_strerror_r=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ac_cv_have_decl_strerror_r=no
14816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14819 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14820 if test $ac_cv_have_decl_strerror_r = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_DECL_STRERROR_R 1
14824 _ACEOF
14827 else
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_DECL_STRERROR_R 0
14830 _ACEOF
14837 for ac_func in strerror_r
14839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14840 echo "$as_me:$LINENO: checking for $ac_func" >&5
14841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14842 if eval "test \"\${$as_ac_var+set}\" = set"; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14853 #define $ac_func innocuous_$ac_func
14855 /* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char $ac_func (); below.
14857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14858 <limits.h> exists even on freestanding compilers. */
14860 #ifdef __STDC__
14861 # include <limits.h>
14862 #else
14863 # include <assert.h>
14864 #endif
14866 #undef $ac_func
14868 /* Override any gcc2 internal prototype to avoid an error. */
14869 #ifdef __cplusplus
14870 extern "C"
14872 #endif
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14875 char $ac_func ();
14876 /* The GNU C library defines this for functions which it implements
14877 to always fail with ENOSYS. Some functions are actually named
14878 something starting with __ and the normal name is an alias. */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 char (*f) () = $ac_func;
14883 #endif
14884 #ifdef __cplusplus
14886 #endif
14889 main ()
14891 return f != $ac_func;
14893 return 0;
14895 _ACEOF
14896 rm -f conftest.$ac_objext conftest$ac_exeext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>conftest.er1
14899 ac_status=$?
14900 grep -v '^ *+' conftest.er1 >conftest.err
14901 rm -f conftest.er1
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -z "$ac_c_werror_flag"
14906 || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 eval "$as_ac_var=yes"
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 eval "$as_ac_var=no"
14925 rm -f conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14930 if test `eval echo '${'$as_ac_var'}'` = yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14933 _ACEOF
14936 done
14938 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14939 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14940 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14944 ac_cv_func_strerror_r_char_p=no
14945 if test $ac_cv_have_decl_strerror_r = yes; then
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14954 main ()
14957 char buf[100];
14958 char x = *strerror_r (0, buf, sizeof buf);
14959 char *p = strerror_r (0, buf, sizeof buf);
14962 return 0;
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_func_strerror_r_char_p=yes
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14994 else
14995 # strerror_r is not declared. Choose between
14996 # systems that have relatively inaccessible declarations for the
14997 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14998 # former has a strerror_r that returns char*, while the latter
14999 # has a strerror_r that returns `int'.
15000 # This test should segfault on the DEC system.
15001 if test "$cross_compiling" = yes; then
15003 else
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h. */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 $ac_includes_default
15011 extern char *strerror_r ();
15013 main ()
15015 char buf[100];
15016 char x = *strerror_r (0, buf, sizeof buf);
15017 exit (!isalpha (x));
15019 return 0;
15021 _ACEOF
15022 rm -f conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_func_strerror_r_char_p=yes
15034 else
15035 echo "$as_me: program exited with status $ac_status" >&5
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15045 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15046 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15047 if test $ac_cv_func_strerror_r_char_p = yes; then
15049 cat >>confdefs.h <<\_ACEOF
15050 #define STRERROR_R_CHAR_P 1
15051 _ACEOF
15055 CPPFLAGS="$mule_backup_CPPFLAGS"
15057 # Look for a way to preallocate disk space for files.
15059 echo "$as_me:$LINENO: checking for fallocate" >&5
15060 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15061 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15069 #include <linux/falloc.h>
15072 main ()
15075 fallocate(0, 0, 0, 0);
15078 return 0;
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15084 (eval $ac_link) 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag"
15092 || test ! -s conftest.err'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_FALLOCATE 1
15109 _ACEOF
15111 echo "$as_me:$LINENO: result: yes" >&5
15112 echo "${ECHO_T}yes" >&6
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15119 echo "$as_me:$LINENO: result: no" >&5
15120 echo "${ECHO_T}no" >&6
15123 rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15127 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15128 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15137 #include <sys/sycall.h>
15138 #include <sys/types.h>
15139 #include <unistd.h>
15142 main ()
15145 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15148 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_SYS_FALLOCATE 1
15179 _ACEOF
15181 echo "$as_me:$LINENO: result: yes" >&5
15182 echo "${ECHO_T}yes" >&6
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15189 echo "$as_me:$LINENO: result: no" >&5
15190 echo "${ECHO_T}no" >&6
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15196 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15197 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15198 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 #define _XOPEN_SOURCE 600
15207 #include <stdlib.h>
15208 #ifdef HAVE_FCNTL_H
15209 # include <fcntl.h>
15210 #endif
15213 main ()
15216 posix_fallocate(0, 0, 0);
15219 return 0;
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_POSIX_FALLOCATE 1
15250 _ACEOF
15252 echo "$as_me:$LINENO: result: yes" >&5
15253 echo "${ECHO_T}yes" >&6
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15264 rm -f conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15268 # Checking Native Language Support
15271 MKINSTALLDIRS=
15272 if test -n "$ac_aux_dir"; then
15273 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15275 if test -z "$MKINSTALLDIRS"; then
15276 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15283 # Extract the first word of "msgfmt", so it can be a program name with args.
15284 set dummy msgfmt; ac_word=$2
15285 echo "$as_me:$LINENO: checking for $ac_word" >&5
15286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15287 if test "${ac_cv_path_MSGFMT+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 case "$MSGFMT" in
15292 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15296 for ac_dir in $PATH; do
15297 test -z "$ac_dir" && ac_dir=.
15298 if test -f $ac_dir/$ac_word; then
15299 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15300 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15301 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15302 break
15305 done
15306 IFS="$ac_save_ifs"
15307 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15309 esac
15311 MSGFMT="$ac_cv_path_MSGFMT"
15312 if test "$MSGFMT" != ":"; then
15313 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15314 echo "${ECHO_T}$MSGFMT" >&6
15315 else
15316 echo "$as_me:$LINENO: result: no" >&5
15317 echo "${ECHO_T}no" >&6
15320 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15321 set dummy gmsgfmt; ac_word=$2
15322 echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327 case $GMSGFMT in
15328 [\\/]* | ?:[\\/]*)
15329 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $PATH
15335 IFS=$as_save_IFS
15336 test -z "$as_dir" && as_dir=.
15337 for ac_exec_ext in '' $ac_executable_extensions; do
15338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15341 break 2
15343 done
15344 done
15346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15348 esac
15350 GMSGFMT=$ac_cv_path_GMSGFMT
15352 if test -n "$GMSGFMT"; then
15353 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15354 echo "${ECHO_T}$GMSGFMT" >&6
15355 else
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15361 # Extract the first word of "xgettext", so it can be a program name with args.
15362 set dummy xgettext; ac_word=$2
15363 echo "$as_me:$LINENO: checking for $ac_word" >&5
15364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15365 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368 case "$XGETTEXT" in
15370 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15374 for ac_dir in $PATH; do
15375 test -z "$ac_dir" && ac_dir=.
15376 if test -f $ac_dir/$ac_word; then
15377 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15378 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15379 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15380 break
15383 done
15384 IFS="$ac_save_ifs"
15385 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15387 esac
15389 XGETTEXT="$ac_cv_path_XGETTEXT"
15390 if test "$XGETTEXT" != ":"; then
15391 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15392 echo "${ECHO_T}$XGETTEXT" >&6
15393 else
15394 echo "$as_me:$LINENO: result: no" >&5
15395 echo "${ECHO_T}no" >&6
15398 rm -f messages.po
15400 # Extract the first word of "msgmerge", so it can be a program name with args.
15401 set dummy msgmerge; ac_word=$2
15402 echo "$as_me:$LINENO: checking for $ac_word" >&5
15403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15404 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407 case "$MSGMERGE" in
15409 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15413 for ac_dir in $PATH; do
15414 test -z "$ac_dir" && ac_dir=.
15415 if test -f $ac_dir/$ac_word; then
15416 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15417 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15418 break
15421 done
15422 IFS="$ac_save_ifs"
15423 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15425 esac
15427 MSGMERGE="$ac_cv_path_MSGMERGE"
15428 if test "$MSGMERGE" != ":"; then
15429 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15430 echo "${ECHO_T}$MSGMERGE" >&6
15431 else
15432 echo "$as_me:$LINENO: result: no" >&5
15433 echo "${ECHO_T}no" >&6
15437 if test "$GMSGFMT" != ":"; then
15438 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15439 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15441 else
15442 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15443 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15444 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15445 GMSGFMT=":"
15449 if test "$XGETTEXT" != ":"; then
15450 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15451 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15453 else
15454 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15455 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15456 XGETTEXT=":"
15458 rm -f messages.po
15461 ac_config_commands="$ac_config_commands default-1"
15464 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15465 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15466 if test "${ac_cv_search_strerror+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 else
15469 ac_func_search_save_LIBS=$LIBS
15470 ac_cv_search_strerror=no
15471 cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15478 /* Override any gcc2 internal prototype to avoid an error. */
15479 #ifdef __cplusplus
15480 extern "C"
15481 #endif
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15484 char strerror ();
15486 main ()
15488 strerror ();
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_search_strerror="none required"
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15521 rm -f conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 if test "$ac_cv_search_strerror" = no; then
15524 for ac_lib in cposix; do
15525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15526 cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15533 /* Override any gcc2 internal prototype to avoid an error. */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15539 char strerror ();
15541 main ()
15543 strerror ();
15545 return 0;
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest$ac_exeext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_search_strerror="-l$ac_lib"
15571 break
15572 else
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15577 rm -f conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15579 done
15581 LIBS=$ac_func_search_save_LIBS
15583 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15584 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15585 if test "$ac_cv_search_strerror" != no; then
15586 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15591 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15592 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15593 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 #include <features.h>
15604 #ifdef __GNU_LIBRARY__
15605 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15606 Lucky GNU user
15607 #endif
15608 #endif
15610 _ACEOF
15611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15612 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15613 ac_cv_gnu_library_2_1=yes
15614 else
15615 ac_cv_gnu_library_2_1=no
15617 rm -f conftest*
15622 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15623 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15625 GLIBC21="$ac_cv_gnu_library_2_1"
15630 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15631 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15632 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15636 if test "$cross_compiling" = yes; then
15638 # Guess based on the CPU.
15639 case "$host_cpu" in
15640 alpha* | i3456786 | m68k | s390*)
15641 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15643 gt_cv_int_divbyzero_sigfpe="guessing no";;
15644 esac
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15654 #include <stdlib.h>
15655 #include <signal.h>
15657 static void
15658 #ifdef __cplusplus
15659 sigfpe_handler (int sig)
15660 #else
15661 sigfpe_handler (sig) int sig;
15662 #endif
15664 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15665 exit (sig != SIGFPE);
15668 int x = 1;
15669 int y = 0;
15670 int z;
15671 int nan;
15673 int main ()
15675 signal (SIGFPE, sigfpe_handler);
15676 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15677 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15678 signal (SIGTRAP, sigfpe_handler);
15679 #endif
15680 /* Linux/SPARC yields signal SIGILL. */
15681 #if defined (__sparc__) && defined (__linux__)
15682 signal (SIGILL, sigfpe_handler);
15683 #endif
15685 z = x / y;
15686 nan = y / y;
15687 exit (1);
15690 _ACEOF
15691 rm -f conftest$ac_exeext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693 (eval $ac_link) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 gt_cv_int_divbyzero_sigfpe=yes
15703 else
15704 echo "$as_me: program exited with status $ac_status" >&5
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ( exit $ac_status )
15709 gt_cv_int_divbyzero_sigfpe=no
15711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15716 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15717 case "$gt_cv_int_divbyzero_sigfpe" in
15718 *yes) value=1;;
15719 *) value=0;;
15720 esac
15722 cat >>confdefs.h <<_ACEOF
15723 #define INTDIV0_RAISES_SIGFPE $value
15724 _ACEOF
15728 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15729 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15730 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <sys/types.h>
15740 #include <inttypes.h>
15742 main ()
15744 uintmax_t i = (uintmax_t) -1;
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 jm_ac_cv_header_inttypes_h=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 jm_ac_cv_header_inttypes_h=no
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15781 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15782 if test $jm_ac_cv_header_inttypes_h = yes; then
15784 cat >>confdefs.h <<_ACEOF
15785 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15786 _ACEOF
15791 echo "$as_me:$LINENO: checking for stdint.h" >&5
15792 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15793 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <sys/types.h>
15803 #include <stdint.h>
15805 main ()
15807 uintmax_t i = (uintmax_t) -1;
15809 return 0;
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 jm_ac_cv_header_stdint_h=yes
15835 else
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 jm_ac_cv_header_stdint_h=no
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15843 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15844 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15845 if test $jm_ac_cv_header_stdint_h = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_STDINT_H_WITH_UINTMAX 1
15849 _ACEOF
15854 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15855 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15856 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h. */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 unsigned long long ull = 1; int i = 63;
15867 main ()
15869 unsigned long long ullmax = (unsigned long long) -1;
15870 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15872 return 0;
15874 _ACEOF
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877 (eval $ac_link) 2>conftest.er1
15878 ac_status=$?
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
15884 { ac_try='test -z "$ac_c_werror_flag"
15885 || test ! -s conftest.err'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_cv_type_unsigned_long_long=yes
15898 else
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_cv_type_unsigned_long_long=no
15904 rm -f conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15907 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15908 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15909 if test $ac_cv_type_unsigned_long_long = yes; then
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_UNSIGNED_LONG_LONG 1
15913 _ACEOF
15920 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15922 test $ac_cv_type_unsigned_long_long = yes \
15923 && ac_type='unsigned long long' \
15924 || ac_type='unsigned long'
15926 cat >>confdefs.h <<_ACEOF
15927 #define uintmax_t $ac_type
15928 _ACEOF
15933 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15934 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15935 if test "${gt_cv_header_inttypes_h+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #include <inttypes.h>
15948 main ()
15952 return 0;
15954 _ACEOF
15955 rm -f conftest.$ac_objext
15956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15957 (eval $ac_compile) 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try='test -z "$ac_c_werror_flag"
15965 || test ! -s conftest.err'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest.$ac_objext'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 gt_cv_header_inttypes_h=yes
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 gt_cv_header_inttypes_h=no
15984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15988 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15989 if test $gt_cv_header_inttypes_h = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define HAVE_INTTYPES_H 1
15993 _ACEOF
15999 if test $gt_cv_header_inttypes_h = yes; then
16000 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16001 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16002 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h. */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 #include <inttypes.h>
16013 #ifdef PRId32
16014 char *p = PRId32;
16015 #endif
16018 main ()
16022 return 0;
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16028 ac_status=$?
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 gt_cv_inttypes_pri_broken=no
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 gt_cv_inttypes_pri_broken=yes
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16058 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16060 if test "$gt_cv_inttypes_pri_broken" = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define PRI_MACROS_BROKEN 1
16064 _ACEOF
16069 if test "X$prefix" = "XNONE"; then
16070 acl_final_prefix="$ac_default_prefix"
16071 else
16072 acl_final_prefix="$prefix"
16074 if test "X$exec_prefix" = "XNONE"; then
16075 acl_final_exec_prefix='${prefix}'
16076 else
16077 acl_final_exec_prefix="$exec_prefix"
16079 acl_save_prefix="$prefix"
16080 prefix="$acl_final_prefix"
16081 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16082 prefix="$acl_save_prefix"
16085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16086 if test "${with_gnu_ld+set}" = set; then
16087 withval="$with_gnu_ld"
16088 test "$withval" = no || with_gnu_ld=yes
16089 else
16090 with_gnu_ld=no
16092 ac_prog=ld
16093 if test "$GCC" = yes; then
16094 # Check if gcc -print-prog-name=ld gives a path.
16095 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16096 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16097 case $host in
16098 *-*-mingw*)
16099 # gcc leaves a trailing carriage return which upsets mingw
16100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16103 esac
16104 case $ac_prog in
16105 # Accept absolute paths.
16106 [\\/]* | [A-Za-z]:[\\/]*)
16107 re_direlt='/[^/][^/]*/\.\./'
16108 # Canonicalize the path of ld
16109 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16111 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16112 done
16113 test -z "$LD" && LD="$ac_prog"
16116 # If it fails, then pretend we aren't using GCC.
16117 ac_prog=ld
16120 # If it is relative, then search for the first ld in PATH.
16121 with_gnu_ld=unknown
16123 esac
16124 elif test "$with_gnu_ld" = yes; then
16125 echo "$as_me:$LINENO: checking for GNU ld" >&5
16126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16127 else
16128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16131 if test "${acl_cv_path_LD+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134 if test -z "$LD"; then
16135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16136 for ac_dir in $PATH; do
16137 test -z "$ac_dir" && ac_dir=.
16138 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16139 acl_cv_path_LD="$ac_dir/$ac_prog"
16140 # Check to see if the program is GNU ld. I'd rather use --version,
16141 # but apparently some GNU ld's only accept -v.
16142 # Break only if it was the GNU/non-GNU ld that we prefer.
16143 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16144 test "$with_gnu_ld" != no && break
16145 else
16146 test "$with_gnu_ld" != yes && break
16149 done
16150 IFS="$ac_save_ifs"
16151 else
16152 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16156 LD="$acl_cv_path_LD"
16157 if test -n "$LD"; then
16158 echo "$as_me:$LINENO: result: $LD" >&5
16159 echo "${ECHO_T}$LD" >&6
16160 else
16161 echo "$as_me:$LINENO: result: no" >&5
16162 echo "${ECHO_T}no" >&6
16164 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16165 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16166 { (exit 1); exit 1; }; }
16167 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16168 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16169 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16173 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16174 acl_cv_prog_gnu_ld=yes
16175 else
16176 acl_cv_prog_gnu_ld=no
16179 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16180 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16181 with_gnu_ld=$acl_cv_prog_gnu_ld
16185 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16186 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16187 if test "${acl_cv_rpath+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16191 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16192 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16193 . ./conftest.sh
16194 rm -f ./conftest.sh
16195 acl_cv_rpath=done
16198 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16199 echo "${ECHO_T}$acl_cv_rpath" >&6
16200 wl="$acl_cv_wl"
16201 libext="$acl_cv_libext"
16202 shlibext="$acl_cv_shlibext"
16203 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16204 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16205 hardcode_direct="$acl_cv_hardcode_direct"
16206 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16207 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16208 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16209 # Check whether --enable-rpath or --disable-rpath was given.
16210 if test "${enable_rpath+set}" = set; then
16211 enableval="$enable_rpath"
16213 else
16214 enable_rpath=yes
16223 use_additional=yes
16225 acl_save_prefix="$prefix"
16226 prefix="$acl_final_prefix"
16227 acl_save_exec_prefix="$exec_prefix"
16228 exec_prefix="$acl_final_exec_prefix"
16230 eval additional_includedir=\"$includedir\"
16231 eval additional_libdir=\"$libdir\"
16233 exec_prefix="$acl_save_exec_prefix"
16234 prefix="$acl_save_prefix"
16237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16238 if test "${with_libiconv_prefix+set}" = set; then
16239 withval="$with_libiconv_prefix"
16241 if test "X$withval" = "Xno"; then
16242 use_additional=no
16243 else
16244 if test "X$withval" = "X"; then
16246 acl_save_prefix="$prefix"
16247 prefix="$acl_final_prefix"
16248 acl_save_exec_prefix="$exec_prefix"
16249 exec_prefix="$acl_final_exec_prefix"
16251 eval additional_includedir=\"$includedir\"
16252 eval additional_libdir=\"$libdir\"
16254 exec_prefix="$acl_save_exec_prefix"
16255 prefix="$acl_save_prefix"
16257 else
16258 additional_includedir="$withval/include"
16259 additional_libdir="$withval/lib"
16264 LIBICONV=
16265 LTLIBICONV=
16266 INCICONV=
16267 rpathdirs=
16268 ltrpathdirs=
16269 names_already_handled=
16270 names_next_round='iconv '
16271 while test -n "$names_next_round"; do
16272 names_this_round="$names_next_round"
16273 names_next_round=
16274 for name in $names_this_round; do
16275 already_handled=
16276 for n in $names_already_handled; do
16277 if test "$n" = "$name"; then
16278 already_handled=yes
16279 break
16281 done
16282 if test -z "$already_handled"; then
16283 names_already_handled="$names_already_handled $name"
16284 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16285 eval value=\"\$HAVE_LIB$uppername\"
16286 if test -n "$value"; then
16287 if test "$value" = yes; then
16288 eval value=\"\$LIB$uppername\"
16289 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16290 eval value=\"\$LTLIB$uppername\"
16291 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16292 else
16295 else
16296 found_dir=
16297 found_la=
16298 found_so=
16299 found_a=
16300 if test $use_additional = yes; then
16301 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16302 found_dir="$additional_libdir"
16303 found_so="$additional_libdir/lib$name.$shlibext"
16304 if test -f "$additional_libdir/lib$name.la"; then
16305 found_la="$additional_libdir/lib$name.la"
16307 else
16308 if test -f "$additional_libdir/lib$name.$libext"; then
16309 found_dir="$additional_libdir"
16310 found_a="$additional_libdir/lib$name.$libext"
16311 if test -f "$additional_libdir/lib$name.la"; then
16312 found_la="$additional_libdir/lib$name.la"
16317 if test "X$found_dir" = "X"; then
16318 for x in $LDFLAGS $LTLIBICONV; do
16320 acl_save_prefix="$prefix"
16321 prefix="$acl_final_prefix"
16322 acl_save_exec_prefix="$exec_prefix"
16323 exec_prefix="$acl_final_exec_prefix"
16324 eval x=\"$x\"
16325 exec_prefix="$acl_save_exec_prefix"
16326 prefix="$acl_save_prefix"
16328 case "$x" in
16329 -L*)
16330 dir=`echo "X$x" | sed -e 's/^X-L//'`
16331 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16332 found_dir="$dir"
16333 found_so="$dir/lib$name.$shlibext"
16334 if test -f "$dir/lib$name.la"; then
16335 found_la="$dir/lib$name.la"
16337 else
16338 if test -f "$dir/lib$name.$libext"; then
16339 found_dir="$dir"
16340 found_a="$dir/lib$name.$libext"
16341 if test -f "$dir/lib$name.la"; then
16342 found_la="$dir/lib$name.la"
16347 esac
16348 if test "X$found_dir" != "X"; then
16349 break
16351 done
16353 if test "X$found_dir" != "X"; then
16354 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16355 if test "X$found_so" != "X"; then
16356 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16357 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16358 else
16359 haveit=
16360 for x in $ltrpathdirs; do
16361 if test "X$x" = "X$found_dir"; then
16362 haveit=yes
16363 break
16365 done
16366 if test -z "$haveit"; then
16367 ltrpathdirs="$ltrpathdirs $found_dir"
16369 if test "$hardcode_direct" = yes; then
16370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16371 else
16372 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16374 haveit=
16375 for x in $rpathdirs; do
16376 if test "X$x" = "X$found_dir"; then
16377 haveit=yes
16378 break
16380 done
16381 if test -z "$haveit"; then
16382 rpathdirs="$rpathdirs $found_dir"
16384 else
16385 haveit=
16386 for x in $LDFLAGS $LIBICONV; do
16388 acl_save_prefix="$prefix"
16389 prefix="$acl_final_prefix"
16390 acl_save_exec_prefix="$exec_prefix"
16391 exec_prefix="$acl_final_exec_prefix"
16392 eval x=\"$x\"
16393 exec_prefix="$acl_save_exec_prefix"
16394 prefix="$acl_save_prefix"
16396 if test "X$x" = "X-L$found_dir"; then
16397 haveit=yes
16398 break
16400 done
16401 if test -z "$haveit"; then
16402 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16404 if test "$hardcode_minus_L" != no; then
16405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16406 else
16407 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16412 else
16413 if test "X$found_a" != "X"; then
16414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16415 else
16416 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16419 additional_includedir=
16420 case "$found_dir" in
16421 */lib | */lib/)
16422 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16423 additional_includedir="$basedir/include"
16425 esac
16426 if test "X$additional_includedir" != "X"; then
16427 if test "X$additional_includedir" != "X/usr/include"; then
16428 haveit=
16429 if test "X$additional_includedir" = "X/usr/local/include"; then
16430 if test -n "$GCC"; then
16431 case $host_os in
16432 linux*) haveit=yes;;
16433 esac
16436 if test -z "$haveit"; then
16437 for x in $CPPFLAGS $INCICONV; do
16439 acl_save_prefix="$prefix"
16440 prefix="$acl_final_prefix"
16441 acl_save_exec_prefix="$exec_prefix"
16442 exec_prefix="$acl_final_exec_prefix"
16443 eval x=\"$x\"
16444 exec_prefix="$acl_save_exec_prefix"
16445 prefix="$acl_save_prefix"
16447 if test "X$x" = "X-I$additional_includedir"; then
16448 haveit=yes
16449 break
16451 done
16452 if test -z "$haveit"; then
16453 if test -d "$additional_includedir"; then
16454 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16460 if test -n "$found_la"; then
16461 save_libdir="$libdir"
16462 case "$found_la" in
16463 */* | *\\*) . "$found_la" ;;
16464 *) . "./$found_la" ;;
16465 esac
16466 libdir="$save_libdir"
16467 for dep in $dependency_libs; do
16468 case "$dep" in
16469 -L*)
16470 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16471 if test "X$additional_libdir" != "X/usr/lib"; then
16472 haveit=
16473 if test "X$additional_libdir" = "X/usr/local/lib"; then
16474 if test -n "$GCC"; then
16475 case $host_os in
16476 linux*) haveit=yes;;
16477 esac
16480 if test -z "$haveit"; then
16481 haveit=
16482 for x in $LDFLAGS $LIBICONV; do
16484 acl_save_prefix="$prefix"
16485 prefix="$acl_final_prefix"
16486 acl_save_exec_prefix="$exec_prefix"
16487 exec_prefix="$acl_final_exec_prefix"
16488 eval x=\"$x\"
16489 exec_prefix="$acl_save_exec_prefix"
16490 prefix="$acl_save_prefix"
16492 if test "X$x" = "X-L$additional_libdir"; then
16493 haveit=yes
16494 break
16496 done
16497 if test -z "$haveit"; then
16498 if test -d "$additional_libdir"; then
16499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16502 haveit=
16503 for x in $LDFLAGS $LTLIBICONV; do
16505 acl_save_prefix="$prefix"
16506 prefix="$acl_final_prefix"
16507 acl_save_exec_prefix="$exec_prefix"
16508 exec_prefix="$acl_final_exec_prefix"
16509 eval x=\"$x\"
16510 exec_prefix="$acl_save_exec_prefix"
16511 prefix="$acl_save_prefix"
16513 if test "X$x" = "X-L$additional_libdir"; then
16514 haveit=yes
16515 break
16517 done
16518 if test -z "$haveit"; then
16519 if test -d "$additional_libdir"; then
16520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16526 -R*)
16527 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16528 if test "$enable_rpath" != no; then
16529 haveit=
16530 for x in $rpathdirs; do
16531 if test "X$x" = "X$dir"; then
16532 haveit=yes
16533 break
16535 done
16536 if test -z "$haveit"; then
16537 rpathdirs="$rpathdirs $dir"
16539 haveit=
16540 for x in $ltrpathdirs; do
16541 if test "X$x" = "X$dir"; then
16542 haveit=yes
16543 break
16545 done
16546 if test -z "$haveit"; then
16547 ltrpathdirs="$ltrpathdirs $dir"
16551 -l*)
16552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16554 *.la)
16555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16558 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16561 esac
16562 done
16564 else
16565 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16570 done
16571 done
16572 if test "X$rpathdirs" != "X"; then
16573 if test -n "$hardcode_libdir_separator"; then
16574 alldirs=
16575 for found_dir in $rpathdirs; do
16576 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16577 done
16578 acl_save_libdir="$libdir"
16579 libdir="$alldirs"
16580 eval flag=\"$hardcode_libdir_flag_spec\"
16581 libdir="$acl_save_libdir"
16582 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16583 else
16584 for found_dir in $rpathdirs; do
16585 acl_save_libdir="$libdir"
16586 libdir="$found_dir"
16587 eval flag=\"$hardcode_libdir_flag_spec\"
16588 libdir="$acl_save_libdir"
16589 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16590 done
16593 if test "X$ltrpathdirs" != "X"; then
16594 for found_dir in $ltrpathdirs; do
16595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16596 done
16612 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16613 stdlib.h string.h unistd.h sys/param.h
16615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16617 echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16624 else
16625 # Is the header compilable?
16626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 $ac_includes_default
16635 #include <$ac_header>
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_header_compiler=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_compiler=no
16666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6
16670 # Is the header present?
16671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <$ac_header>
16680 _ACEOF
16681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } >/dev/null; then
16689 if test -s conftest.err; then
16690 ac_cpp_err=$ac_c_preproc_warn_flag
16691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16692 else
16693 ac_cpp_err=
16695 else
16696 ac_cpp_err=yes
16698 if test -z "$ac_cpp_err"; then
16699 ac_header_preproc=yes
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16733 cat <<\_ASBOX
16734 ## ------------------------------ ##
16735 ## Report this to admin@amule.org ##
16736 ## ------------------------------ ##
16737 _ASBOX
16739 sed "s/^/$as_me: WARNING: /" >&2
16741 esac
16742 echo "$as_me:$LINENO: checking for $ac_header" >&5
16743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747 eval "$as_ac_Header=\$ac_header_preproc"
16749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16756 _ACEOF
16760 done
16783 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16784 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16785 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16788 echo "$as_me:$LINENO: checking for $ac_func" >&5
16789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16790 if eval "test \"\${$as_ac_var+set}\" = set"; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793 cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h. */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16801 #define $ac_func innocuous_$ac_func
16803 /* System header to define __stub macros and hopefully few prototypes,
16804 which can conflict with char $ac_func (); below.
16805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16806 <limits.h> exists even on freestanding compilers. */
16808 #ifdef __STDC__
16809 # include <limits.h>
16810 #else
16811 # include <assert.h>
16812 #endif
16814 #undef $ac_func
16816 /* Override any gcc2 internal prototype to avoid an error. */
16817 #ifdef __cplusplus
16818 extern "C"
16820 #endif
16821 /* We use char because int might match the return type of a gcc2
16822 builtin and then its argument prototype would still apply. */
16823 char $ac_func ();
16824 /* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16828 choke me
16829 #else
16830 char (*f) () = $ac_func;
16831 #endif
16832 #ifdef __cplusplus
16834 #endif
16837 main ()
16839 return f != $ac_func;
16841 return 0;
16843 _ACEOF
16844 rm -f conftest.$ac_objext conftest$ac_exeext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 eval "$as_ac_var=no"
16873 rm -f conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16878 if test `eval echo '${'$as_ac_var'}'` = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16881 _ACEOF
16884 done
16892 am_save_CPPFLAGS="$CPPFLAGS"
16894 for element in $INCICONV; do
16895 haveit=
16896 for x in $CPPFLAGS; do
16898 acl_save_prefix="$prefix"
16899 prefix="$acl_final_prefix"
16900 acl_save_exec_prefix="$exec_prefix"
16901 exec_prefix="$acl_final_exec_prefix"
16902 eval x=\"$x\"
16903 exec_prefix="$acl_save_exec_prefix"
16904 prefix="$acl_save_prefix"
16906 if test "X$x" = "X$element"; then
16907 haveit=yes
16908 break
16910 done
16911 if test -z "$haveit"; then
16912 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16914 done
16917 echo "$as_me:$LINENO: checking for iconv" >&5
16918 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16919 if test "${am_cv_func_iconv+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16923 am_cv_func_iconv="no, consider installing GNU libiconv"
16924 am_cv_lib_iconv=no
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h. */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 #include <stdlib.h>
16932 #include <iconv.h>
16934 main ()
16936 iconv_t cd = iconv_open("","");
16937 iconv(cd,NULL,NULL,NULL,NULL);
16938 iconv_close(cd);
16940 return 0;
16942 _ACEOF
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945 (eval $ac_link) 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest$ac_exeext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 am_cv_func_iconv=yes
16966 else
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16971 rm -f conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973 if test "$am_cv_func_iconv" != yes; then
16974 am_save_LIBS="$LIBS"
16975 LIBS="$LIBS $LIBICONV"
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 #include <stdlib.h>
16983 #include <iconv.h>
16985 main ()
16987 iconv_t cd = iconv_open("","");
16988 iconv(cd,NULL,NULL,NULL,NULL);
16989 iconv_close(cd);
16991 return 0;
16993 _ACEOF
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest$ac_exeext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 am_cv_lib_iconv=yes
17017 am_cv_func_iconv=yes
17018 else
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17023 rm -f conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025 LIBS="$am_save_LIBS"
17029 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17030 echo "${ECHO_T}$am_cv_func_iconv" >&6
17031 if test "$am_cv_func_iconv" = yes; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_ICONV 1
17035 _ACEOF
17038 if test "$am_cv_lib_iconv" = yes; then
17039 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17040 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17041 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17042 echo "${ECHO_T}$LIBICONV" >&6
17043 else
17044 CPPFLAGS="$am_save_CPPFLAGS"
17045 LIBICONV=
17046 LTLIBICONV=
17051 if test "$am_cv_func_iconv" = yes; then
17052 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17053 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17054 if test "${am_cv_proto_iconv+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17058 cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h. */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17065 #include <stdlib.h>
17066 #include <iconv.h>
17067 extern
17068 #ifdef __cplusplus
17070 #endif
17071 #if defined(__STDC__) || defined(__cplusplus)
17072 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17073 #else
17074 size_t iconv();
17075 #endif
17078 main ()
17082 return 0;
17084 _ACEOF
17085 rm -f conftest.$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087 (eval $ac_compile) 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag"
17095 || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 am_cv_proto_iconv_arg1=""
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 am_cv_proto_iconv_arg1="const"
17114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17115 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17118 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17119 echo "$as_me:$LINENO: result: ${ac_t:-
17120 }$am_cv_proto_iconv" >&5
17121 echo "${ECHO_T}${ac_t:-
17122 }$am_cv_proto_iconv" >&6
17124 cat >>confdefs.h <<_ACEOF
17125 #define ICONV_CONST $am_cv_proto_iconv_arg1
17126 _ACEOF
17131 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17132 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17133 if test "${am_cv_langinfo_codeset+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <langinfo.h>
17144 main ()
17146 char* cs = nl_langinfo(CODESET);
17148 return 0;
17150 _ACEOF
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 am_cv_langinfo_codeset=yes
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 am_cv_langinfo_codeset=no
17180 rm -f conftest.err conftest.$ac_objext \
17181 conftest$ac_exeext conftest.$ac_ext
17184 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17185 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17186 if test $am_cv_langinfo_codeset = yes; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_LANGINFO_CODESET 1
17190 _ACEOF
17194 if test $ac_cv_header_locale_h = yes; then
17196 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17197 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17198 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 #include <locale.h>
17209 main ()
17211 return LC_MESSAGES
17213 return 0;
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag"
17226 || test ! -s conftest.err'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 am_cv_val_LC_MESSAGES=yes
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 am_cv_val_LC_MESSAGES=no
17245 rm -f conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17248 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17249 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17250 if test $am_cv_val_LC_MESSAGES = yes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_LC_MESSAGES 1
17254 _ACEOF
17260 for ac_prog in bison
17262 # Extract the first word of "$ac_prog", so it can be a program name with args.
17263 set dummy $ac_prog; ac_word=$2
17264 echo "$as_me:$LINENO: checking for $ac_word" >&5
17265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17266 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 if test -n "$INTLBISON"; then
17270 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17271 else
17272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273 for as_dir in $PATH
17275 IFS=$as_save_IFS
17276 test -z "$as_dir" && as_dir=.
17277 for ac_exec_ext in '' $ac_executable_extensions; do
17278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17279 ac_cv_prog_INTLBISON="$ac_prog"
17280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17281 break 2
17283 done
17284 done
17288 INTLBISON=$ac_cv_prog_INTLBISON
17289 if test -n "$INTLBISON"; then
17290 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17291 echo "${ECHO_T}$INTLBISON" >&6
17292 else
17293 echo "$as_me:$LINENO: result: no" >&5
17294 echo "${ECHO_T}no" >&6
17297 test -n "$INTLBISON" && break
17298 done
17300 if test -z "$INTLBISON"; then
17301 ac_verc_fail=yes
17302 else
17303 echo "$as_me:$LINENO: checking version of bison" >&5
17304 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17305 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17306 case $ac_prog_version in
17307 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17308 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17309 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17310 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17311 esac
17312 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17313 echo "${ECHO_T}$ac_prog_version" >&6
17315 if test $ac_verc_fail = yes; then
17316 INTLBISON=:
17321 # Check whether --with-language or --without-language was given.
17322 if test "${with_language+set}" = set; then
17323 withval="$with_language"
17324 if test "$withval" = "all"; then
17325 LINGUAS='%UNSET%'
17326 else
17327 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17346 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17347 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17348 # Check whether --enable-nls or --disable-nls was given.
17349 if test "${enable_nls+set}" = set; then
17350 enableval="$enable_nls"
17351 USE_NLS=$enableval
17352 else
17353 USE_NLS=yes
17355 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17356 echo "${ECHO_T}$USE_NLS" >&6
17360 BUILD_INCLUDED_LIBINTL=no
17361 USE_INCLUDED_LIBINTL=no
17363 LIBINTL=
17364 LTLIBINTL=
17365 POSUB=
17367 if test "$USE_NLS" = "yes"; then
17368 gt_use_preinstalled_gnugettext=no
17370 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17371 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17373 # Check whether --with-included-gettext or --without-included-gettext was given.
17374 if test "${with_included_gettext+set}" = set; then
17375 withval="$with_included_gettext"
17376 nls_cv_force_use_gnu_gettext=$withval
17377 else
17378 nls_cv_force_use_gnu_gettext=no
17380 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17381 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17383 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17384 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17391 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17392 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17393 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h. */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <libintl.h>
17403 extern int _nl_msg_cat_cntr;
17404 extern int *_nl_domain_bindings;
17406 main ()
17408 bindtextdomain ("", "");
17409 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17411 return 0;
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -z "$ac_c_werror_flag"
17424 || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 gt_cv_func_gnugettext2_libc=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 gt_cv_func_gnugettext2_libc=no
17443 rm -f conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17446 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17447 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17449 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17453 use_additional=yes
17455 acl_save_prefix="$prefix"
17456 prefix="$acl_final_prefix"
17457 acl_save_exec_prefix="$exec_prefix"
17458 exec_prefix="$acl_final_exec_prefix"
17460 eval additional_includedir=\"$includedir\"
17461 eval additional_libdir=\"$libdir\"
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17467 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17468 if test "${with_libintl_prefix+set}" = set; then
17469 withval="$with_libintl_prefix"
17471 if test "X$withval" = "Xno"; then
17472 use_additional=no
17473 else
17474 if test "X$withval" = "X"; then
17476 acl_save_prefix="$prefix"
17477 prefix="$acl_final_prefix"
17478 acl_save_exec_prefix="$exec_prefix"
17479 exec_prefix="$acl_final_exec_prefix"
17481 eval additional_includedir=\"$includedir\"
17482 eval additional_libdir=\"$libdir\"
17484 exec_prefix="$acl_save_exec_prefix"
17485 prefix="$acl_save_prefix"
17487 else
17488 additional_includedir="$withval/include"
17489 additional_libdir="$withval/lib"
17494 LIBINTL=
17495 LTLIBINTL=
17496 INCINTL=
17497 rpathdirs=
17498 ltrpathdirs=
17499 names_already_handled=
17500 names_next_round='intl '
17501 while test -n "$names_next_round"; do
17502 names_this_round="$names_next_round"
17503 names_next_round=
17504 for name in $names_this_round; do
17505 already_handled=
17506 for n in $names_already_handled; do
17507 if test "$n" = "$name"; then
17508 already_handled=yes
17509 break
17511 done
17512 if test -z "$already_handled"; then
17513 names_already_handled="$names_already_handled $name"
17514 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17515 eval value=\"\$HAVE_LIB$uppername\"
17516 if test -n "$value"; then
17517 if test "$value" = yes; then
17518 eval value=\"\$LIB$uppername\"
17519 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17520 eval value=\"\$LTLIB$uppername\"
17521 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17522 else
17525 else
17526 found_dir=
17527 found_la=
17528 found_so=
17529 found_a=
17530 if test $use_additional = yes; then
17531 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17532 found_dir="$additional_libdir"
17533 found_so="$additional_libdir/lib$name.$shlibext"
17534 if test -f "$additional_libdir/lib$name.la"; then
17535 found_la="$additional_libdir/lib$name.la"
17537 else
17538 if test -f "$additional_libdir/lib$name.$libext"; then
17539 found_dir="$additional_libdir"
17540 found_a="$additional_libdir/lib$name.$libext"
17541 if test -f "$additional_libdir/lib$name.la"; then
17542 found_la="$additional_libdir/lib$name.la"
17547 if test "X$found_dir" = "X"; then
17548 for x in $LDFLAGS $LTLIBINTL; do
17550 acl_save_prefix="$prefix"
17551 prefix="$acl_final_prefix"
17552 acl_save_exec_prefix="$exec_prefix"
17553 exec_prefix="$acl_final_exec_prefix"
17554 eval x=\"$x\"
17555 exec_prefix="$acl_save_exec_prefix"
17556 prefix="$acl_save_prefix"
17558 case "$x" in
17559 -L*)
17560 dir=`echo "X$x" | sed -e 's/^X-L//'`
17561 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17562 found_dir="$dir"
17563 found_so="$dir/lib$name.$shlibext"
17564 if test -f "$dir/lib$name.la"; then
17565 found_la="$dir/lib$name.la"
17567 else
17568 if test -f "$dir/lib$name.$libext"; then
17569 found_dir="$dir"
17570 found_a="$dir/lib$name.$libext"
17571 if test -f "$dir/lib$name.la"; then
17572 found_la="$dir/lib$name.la"
17577 esac
17578 if test "X$found_dir" != "X"; then
17579 break
17581 done
17583 if test "X$found_dir" != "X"; then
17584 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17585 if test "X$found_so" != "X"; then
17586 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17587 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17588 else
17589 haveit=
17590 for x in $ltrpathdirs; do
17591 if test "X$x" = "X$found_dir"; then
17592 haveit=yes
17593 break
17595 done
17596 if test -z "$haveit"; then
17597 ltrpathdirs="$ltrpathdirs $found_dir"
17599 if test "$hardcode_direct" = yes; then
17600 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17601 else
17602 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17603 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17604 haveit=
17605 for x in $rpathdirs; do
17606 if test "X$x" = "X$found_dir"; then
17607 haveit=yes
17608 break
17610 done
17611 if test -z "$haveit"; then
17612 rpathdirs="$rpathdirs $found_dir"
17614 else
17615 haveit=
17616 for x in $LDFLAGS $LIBINTL; do
17618 acl_save_prefix="$prefix"
17619 prefix="$acl_final_prefix"
17620 acl_save_exec_prefix="$exec_prefix"
17621 exec_prefix="$acl_final_exec_prefix"
17622 eval x=\"$x\"
17623 exec_prefix="$acl_save_exec_prefix"
17624 prefix="$acl_save_prefix"
17626 if test "X$x" = "X-L$found_dir"; then
17627 haveit=yes
17628 break
17630 done
17631 if test -z "$haveit"; then
17632 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17634 if test "$hardcode_minus_L" != no; then
17635 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17636 else
17637 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17642 else
17643 if test "X$found_a" != "X"; then
17644 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17645 else
17646 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17649 additional_includedir=
17650 case "$found_dir" in
17651 */lib | */lib/)
17652 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17653 additional_includedir="$basedir/include"
17655 esac
17656 if test "X$additional_includedir" != "X"; then
17657 if test "X$additional_includedir" != "X/usr/include"; then
17658 haveit=
17659 if test "X$additional_includedir" = "X/usr/local/include"; then
17660 if test -n "$GCC"; then
17661 case $host_os in
17662 linux*) haveit=yes;;
17663 esac
17666 if test -z "$haveit"; then
17667 for x in $CPPFLAGS $INCINTL; do
17669 acl_save_prefix="$prefix"
17670 prefix="$acl_final_prefix"
17671 acl_save_exec_prefix="$exec_prefix"
17672 exec_prefix="$acl_final_exec_prefix"
17673 eval x=\"$x\"
17674 exec_prefix="$acl_save_exec_prefix"
17675 prefix="$acl_save_prefix"
17677 if test "X$x" = "X-I$additional_includedir"; then
17678 haveit=yes
17679 break
17681 done
17682 if test -z "$haveit"; then
17683 if test -d "$additional_includedir"; then
17684 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17690 if test -n "$found_la"; then
17691 save_libdir="$libdir"
17692 case "$found_la" in
17693 */* | *\\*) . "$found_la" ;;
17694 *) . "./$found_la" ;;
17695 esac
17696 libdir="$save_libdir"
17697 for dep in $dependency_libs; do
17698 case "$dep" in
17699 -L*)
17700 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17701 if test "X$additional_libdir" != "X/usr/lib"; then
17702 haveit=
17703 if test "X$additional_libdir" = "X/usr/local/lib"; then
17704 if test -n "$GCC"; then
17705 case $host_os in
17706 linux*) haveit=yes;;
17707 esac
17710 if test -z "$haveit"; then
17711 haveit=
17712 for x in $LDFLAGS $LIBINTL; do
17714 acl_save_prefix="$prefix"
17715 prefix="$acl_final_prefix"
17716 acl_save_exec_prefix="$exec_prefix"
17717 exec_prefix="$acl_final_exec_prefix"
17718 eval x=\"$x\"
17719 exec_prefix="$acl_save_exec_prefix"
17720 prefix="$acl_save_prefix"
17722 if test "X$x" = "X-L$additional_libdir"; then
17723 haveit=yes
17724 break
17726 done
17727 if test -z "$haveit"; then
17728 if test -d "$additional_libdir"; then
17729 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17732 haveit=
17733 for x in $LDFLAGS $LTLIBINTL; do
17735 acl_save_prefix="$prefix"
17736 prefix="$acl_final_prefix"
17737 acl_save_exec_prefix="$exec_prefix"
17738 exec_prefix="$acl_final_exec_prefix"
17739 eval x=\"$x\"
17740 exec_prefix="$acl_save_exec_prefix"
17741 prefix="$acl_save_prefix"
17743 if test "X$x" = "X-L$additional_libdir"; then
17744 haveit=yes
17745 break
17747 done
17748 if test -z "$haveit"; then
17749 if test -d "$additional_libdir"; then
17750 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17756 -R*)
17757 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17758 if test "$enable_rpath" != no; then
17759 haveit=
17760 for x in $rpathdirs; do
17761 if test "X$x" = "X$dir"; then
17762 haveit=yes
17763 break
17765 done
17766 if test -z "$haveit"; then
17767 rpathdirs="$rpathdirs $dir"
17769 haveit=
17770 for x in $ltrpathdirs; do
17771 if test "X$x" = "X$dir"; then
17772 haveit=yes
17773 break
17775 done
17776 if test -z "$haveit"; then
17777 ltrpathdirs="$ltrpathdirs $dir"
17781 -l*)
17782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17784 *.la)
17785 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17788 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17791 esac
17792 done
17794 else
17795 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17796 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17800 done
17801 done
17802 if test "X$rpathdirs" != "X"; then
17803 if test -n "$hardcode_libdir_separator"; then
17804 alldirs=
17805 for found_dir in $rpathdirs; do
17806 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17807 done
17808 acl_save_libdir="$libdir"
17809 libdir="$alldirs"
17810 eval flag=\"$hardcode_libdir_flag_spec\"
17811 libdir="$acl_save_libdir"
17812 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17813 else
17814 for found_dir in $rpathdirs; do
17815 acl_save_libdir="$libdir"
17816 libdir="$found_dir"
17817 eval flag=\"$hardcode_libdir_flag_spec\"
17818 libdir="$acl_save_libdir"
17819 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17820 done
17823 if test "X$ltrpathdirs" != "X"; then
17824 for found_dir in $ltrpathdirs; do
17825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17826 done
17829 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17830 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17831 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 else
17834 gt_save_CPPFLAGS="$CPPFLAGS"
17835 CPPFLAGS="$CPPFLAGS $INCINTL"
17836 gt_save_LIBS="$LIBS"
17837 LIBS="$LIBS $LIBINTL"
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 #include <libintl.h>
17845 extern int _nl_msg_cat_cntr;
17846 extern
17847 #ifdef __cplusplus
17849 #endif
17850 const char *_nl_expand_alias ();
17852 main ()
17854 bindtextdomain ("", "");
17855 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17857 return 0;
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 gt_cv_func_gnugettext2_libintl=yes
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 gt_cv_func_gnugettext2_libintl=no
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17892 LIBS="$LIBS $LIBICONV"
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 #include <libintl.h>
17900 extern int _nl_msg_cat_cntr;
17901 extern
17902 #ifdef __cplusplus
17904 #endif
17905 const char *_nl_expand_alias ();
17907 main ()
17909 bindtextdomain ("", "");
17910 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17912 return 0;
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag"
17925 || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try='test -s conftest$ac_exeext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 LIBINTL="$LIBINTL $LIBICONV"
17938 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17939 gt_cv_func_gnugettext2_libintl=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17946 rm -f conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17949 CPPFLAGS="$gt_save_CPPFLAGS"
17950 LIBS="$gt_save_LIBS"
17952 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17953 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17956 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17957 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17958 && test "$PACKAGE" != gettext; }; then
17959 gt_use_preinstalled_gnugettext=yes
17960 else
17961 LIBINTL=
17962 LTLIBINTL=
17963 INCINTL=
17967 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17968 nls_cv_use_gnu_gettext=yes
17972 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17973 INTLOBJS="\$(GETTOBJS)"
17974 BUILD_INCLUDED_LIBINTL=yes
17975 USE_INCLUDED_LIBINTL=yes
17976 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17977 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17978 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17981 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17982 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17983 CATOBJEXT=.gmo
17987 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17988 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17990 cat >>confdefs.h <<\_ACEOF
17991 #define ENABLE_NLS 1
17992 _ACEOF
17994 else
17995 USE_NLS=no
17999 if test "$USE_NLS" = "yes"; then
18001 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18002 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18003 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18004 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18005 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18006 echo "${ECHO_T}$LIBINTL" >&6
18008 for element in $INCINTL; do
18009 haveit=
18010 for x in $CPPFLAGS; do
18012 acl_save_prefix="$prefix"
18013 prefix="$acl_final_prefix"
18014 acl_save_exec_prefix="$exec_prefix"
18015 exec_prefix="$acl_final_exec_prefix"
18016 eval x=\"$x\"
18017 exec_prefix="$acl_save_exec_prefix"
18018 prefix="$acl_save_prefix"
18020 if test "X$x" = "X$element"; then
18021 haveit=yes
18022 break
18024 done
18025 if test -z "$haveit"; then
18026 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18028 done
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE_GETTEXT 1
18035 _ACEOF
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_DCGETTEXT 1
18040 _ACEOF
18044 POSUB=po
18048 if test "$PACKAGE" = gettext; then
18049 BUILD_INCLUDED_LIBINTL=yes
18057 nls_cv_header_intl=
18058 nls_cv_header_libgt=
18060 DATADIRNAME=share
18063 INSTOBJEXT=.mo
18066 GENCAT=gencat
18069 INTL_LIBTOOL_SUFFIX_PREFIX=
18073 INTLLIBS="$LIBINTL"
18080 if test $USE_INCLUDED_LIBINTL = yes; then
18081 INCINTL=-I\${top_builddir}/intl
18085 if test x$USE_NLS = xyes; then
18087 echo "$as_me:$LINENO: checking for autopoint" >&5
18088 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18089 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18090 if test -n "$autopoint_version"; then
18092 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18093 echo "${ECHO_T}yes ($autopoint_version)" >&6
18096 else
18098 echo "$as_me:$LINENO: result: no" >&5
18099 echo "${ECHO_T}no" >&6
18100 USE_NLS=no
18107 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18108 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
18109 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
18113 if test ${USE_NLS:-no} = yes; then
18115 echo "$as_me:$LINENO: checking for requested languages" >&5
18116 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18117 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18119 if test "$AMULE_DAEMON" = "yes"; then
18121 if test -z "$LINGUAS"; then
18122 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18123 else
18125 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18126 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18130 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18132 else
18133 AMULE_DAEMON_MANPAGES=
18139 if test "$AMULECMD" = "yes"; then
18141 if test -z "$LINGUAS"; then
18142 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18143 else
18145 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18146 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18150 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18152 else
18153 AMULECMD_MANPAGES=
18159 if test "$WEB" = "yes"; then
18161 if test -z "$LINGUAS"; then
18162 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18163 else
18165 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18166 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18170 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18172 else
18173 WEB_MANPAGES=
18179 if test "$AMULE_GUI" = "yes"; then
18181 if test -z "$LINGUAS"; then
18182 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18183 else
18185 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18186 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18190 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18192 else
18193 AMULE_GUI_MANPAGES=
18199 if test "$CAS" = "yes"; then
18201 if test -z "$LINGUAS"; then
18202 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18203 else
18205 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18206 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18210 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18212 else
18213 CAS_MANPAGES=
18219 if test "$WXCAS" = "yes"; then
18221 if test -z "$LINGUAS"; then
18222 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18223 else
18225 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18226 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18230 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18232 else
18233 WXCAS_MANPAGES=
18239 if test "$ED2K" = "yes"; then
18241 if test -z "$LINGUAS"; then
18242 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18243 else
18245 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18246 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18250 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18252 else
18253 ED2K_MANPAGES=
18259 if test "$ALC" = "yes"; then
18261 if test -z "$LINGUAS"; then
18262 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18263 else
18265 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18266 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18270 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18272 else
18273 ALC_MANPAGES=
18279 if test "$ALCC" = "yes"; then
18281 if test -z "$LINGUAS"; then
18282 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18283 else
18285 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18286 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18290 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18292 else
18293 ALCC_MANPAGES=
18299 if test "$MONOLITHIC" = "yes"; then
18301 if test -z "$LINGUAS"; then
18302 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18303 else
18305 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18306 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18310 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18312 else
18313 MONOLITHIC_MANPAGES=
18318 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18319 echo "${ECHO_T}${LINGUAS:-all}" >&6
18326 # Flush standard test results for speeding cache
18327 cat >confcache <<\_ACEOF
18328 # This file is a shell script that caches the results of configure
18329 # tests run on this system so they can be shared between configure
18330 # scripts and configure runs, see configure's option --config-cache.
18331 # It is not useful on other systems. If it contains results you don't
18332 # want to keep, you may remove or edit it.
18334 # config.status only pays attention to the cache file if you give it
18335 # the --recheck option to rerun configure.
18337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18339 # following values.
18341 _ACEOF
18343 # The following way of writing the cache mishandles newlines in values,
18344 # but we know of no workaround that is simple, portable, and efficient.
18345 # So, don't put newlines in cache variables' values.
18346 # Ultrix sh set writes to stderr and can't be redirected directly,
18347 # and sets the high bit in the cache file unless we assign to the vars.
18349 (set) 2>&1 |
18350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18351 *ac_space=\ *)
18352 # `set' does not quote correctly, so add quotes (double-quote
18353 # substitution turns \\\\ into \\, and sed turns \\ into \).
18354 sed -n \
18355 "s/'/'\\\\''/g;
18356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18359 # `set' quotes correctly as required by POSIX, so do not add quotes.
18360 sed -n \
18361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18363 esac;
18365 sed '
18366 t clear
18367 : clear
18368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18369 t end
18370 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18371 : end' >>confcache
18372 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18373 if test -w $cache_file; then
18374 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18375 cat confcache >$cache_file
18376 else
18377 echo "not updating unwritable cache $cache_file"
18380 rm -f confcache
18382 # Other tests
18383 # aMule options
18386 # Check whether --enable-debug or --disable-debug was given.
18387 if test "${enable_debug+set}" = set; then
18388 enableval="$enable_debug"
18389 USE_DEBUG=${enableval:-yes}
18390 else
18391 USE_DEBUG=yes
18394 if test $USE_DEBUG = yes; then
18396 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18398 MULECFLAGS="$MULECFLAGS -g"
18399 MULECXXFLAGS="$MULECXXFLAGS -g"
18401 if test ${GLIBCXX:-no} = yes; then
18402 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18405 if test ${GCC:-no} = yes; then
18407 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18408 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18412 if test ${SYS:-unknown} = win32; then
18413 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18417 else
18419 if test ${GCC:-no} = yes; then
18421 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18422 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18431 # Check whether --enable-optimize or --disable-optimize was given.
18432 if test "${enable_optimize+set}" = set; then
18433 enableval="$enable_optimize"
18434 USE_OPTIMIZE=${enableval:-no}
18435 else
18436 USE_OPTIMIZE=no
18439 if test $USE_OPTIMIZE = yes; then
18441 MULECFLAGS="$MULECFLAGS -O2"
18442 MULECXXFLAGS="$MULECXXFLAGS -O2"
18448 # Check whether --enable-profile or --disable-profile was given.
18449 if test "${enable_profile+set}" = set; then
18450 enableval="$enable_profile"
18451 USE_PROFILE=${enableval:-no}
18452 else
18453 USE_PROFILE=no
18456 if test $USE_PROFILE = yes; then
18459 MULECFLAGS="$MULECFLAGS -pg"
18460 MULECXXFLAGS="$MULECXXFLAGS -pg"
18462 MULELDFLAGS="$MULELDFLAGS -pg"
18468 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18469 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18470 # Check whether --enable-static or --disable-static was given.
18471 if test "${enable_static+set}" = set; then
18472 enableval="$enable_static"
18473 if test ${enableval:-no} = yes; then
18474 MULELDFLAGS="$MULELDFLAGS -static"
18478 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18479 echo "${ECHO_T}${enableval:-no}" >&6
18481 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18484 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18485 echo "$as_me:$LINENO: checking for docdir" >&5
18486 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18487 if test -z "$docdir"; then
18488 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18491 echo "$as_me:$LINENO: result: $docdir" >&5
18492 echo "${ECHO_T}$docdir" >&6
18494 # Try to set the SVN checkout-date
18495 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18496 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18497 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18498 then
18499 svndate=`cat $srcdir/SVNDATE`
18500 elif test -d $srcdir/.svn # SVNDATE for svn
18501 then
18502 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18504 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18505 echo "${ECHO_T}${svndate:-None required}" >&6
18506 if test -n "$svndate"; then
18509 cat >>confdefs.h <<_ACEOF
18510 #define SVNDATE "$svndate"
18511 _ACEOF
18513 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18517 SVNDATE=$svndate
18521 # Check whether --with-denoise-level or --without-denoise-level was given.
18522 if test "${with_denoise_level+set}" = set; then
18523 withval="$with_denoise_level"
18527 echo "$as_me:$LINENO: checking denoising level" >&5
18528 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18529 if test ${with_denoise_level:-5} = yes; then
18530 with_denoise_level=5
18533 if test ${with_denoise_level:-5} = no; then
18534 with_denoise_level=0
18537 if test ${with_denoise_level:-5} -gt 4; then
18538 if test "${svndate:+set}" = "set"; then
18539 with_denoise_level=0
18540 else
18541 with_denoise_level=4
18546 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18547 echo "${ECHO_T}$with_denoise_level" >&6
18549 ac_config_commands="$ac_config_commands denoiser"
18555 if test x$WEB = xyes; then
18556 WEB_TRUE=
18557 WEB_FALSE='#'
18558 else
18559 WEB_TRUE='#'
18560 WEB_FALSE=
18565 if test x$ED2K = xyes; then
18566 ED2K_TRUE=
18567 ED2K_FALSE='#'
18568 else
18569 ED2K_TRUE='#'
18570 ED2K_FALSE=
18575 if test x$CAS = xyes; then
18576 CAS_TRUE=
18577 CAS_FALSE='#'
18578 else
18579 CAS_TRUE='#'
18580 CAS_FALSE=
18585 if test x$WXCAS = xyes; then
18586 WXCAS_TRUE=
18587 WXCAS_FALSE='#'
18588 else
18589 WXCAS_TRUE='#'
18590 WXCAS_FALSE=
18595 if test x$ALC = xyes; then
18596 ALC_TRUE=
18597 ALC_FALSE='#'
18598 else
18599 ALC_TRUE='#'
18600 ALC_FALSE=
18605 if test x$ALCC = xyes; then
18606 ALCC_TRUE=
18607 ALCC_FALSE='#'
18608 else
18609 ALCC_TRUE='#'
18610 ALCC_FALSE=
18615 if test x$AMULE_GUI = xyes; then
18616 AMULE_GUI_TRUE=
18617 AMULE_GUI_FALSE='#'
18618 else
18619 AMULE_GUI_TRUE='#'
18620 AMULE_GUI_FALSE=
18625 if test x$AMULE_DAEMON = xyes; then
18626 AMULE_DAEMON_TRUE=
18627 AMULE_DAEMON_FALSE='#'
18628 else
18629 AMULE_DAEMON_TRUE='#'
18630 AMULE_DAEMON_FALSE=
18635 if test x$AMULECMD = xyes; then
18636 COMPILE_CMD_TRUE=
18637 COMPILE_CMD_FALSE='#'
18638 else
18639 COMPILE_CMD_TRUE='#'
18640 COMPILE_CMD_FALSE=
18645 if test x$MONOLITHIC = xyes; then
18646 MONOLITHIC_TRUE=
18647 MONOLITHIC_FALSE='#'
18648 else
18649 MONOLITHIC_TRUE='#'
18650 MONOLITHIC_FALSE=
18655 if test x$XAS = xyes; then
18656 XAS_TRUE=
18657 XAS_FALSE='#'
18658 else
18659 XAS_TRUE='#'
18660 XAS_FALSE=
18665 if test x$ENABLE_UPNP = xyes; then
18666 ENABLE_UPNP_TRUE=
18667 ENABLE_UPNP_FALSE='#'
18668 else
18669 ENABLE_UPNP_TRUE='#'
18670 ENABLE_UPNP_FALSE=
18675 if test x$ENABLE_IP2COUNTRY = xyes; then
18676 ENABLE_IP2COUNTRY_TRUE=
18677 ENABLE_IP2COUNTRY_FALSE='#'
18678 else
18679 ENABLE_IP2COUNTRY_TRUE='#'
18680 ENABLE_IP2COUNTRY_FALSE=
18685 if test x$SYS = xwin32; then
18686 SYS_WIN32_TRUE=
18687 SYS_WIN32_FALSE='#'
18688 else
18689 SYS_WIN32_TRUE='#'
18690 SYS_WIN32_FALSE=
18695 if test x$SYS = xwin32 -a "$RC" != ":"; then
18696 NEED_RC_TRUE=
18697 NEED_RC_FALSE='#'
18698 else
18699 NEED_RC_TRUE='#'
18700 NEED_RC_FALSE=
18705 if test x$SYS = xdarwin; then
18706 NEED_CORESERVICES_TRUE=
18707 NEED_CORESERVICES_FALSE='#'
18708 else
18709 NEED_CORESERVICES_TRUE='#'
18710 NEED_CORESERVICES_FALSE=
18715 if test x$USE_NLS = xyes; then
18716 COMPILE_NLS_TRUE=
18717 COMPILE_NLS_FALSE='#'
18718 else
18719 COMPILE_NLS_TRUE='#'
18720 COMPILE_NLS_FALSE=
18725 if test x$HAVE_FLEX_EXTENDED = xyes; then
18726 GENERATE_FLEX_HEADER_TRUE=
18727 GENERATE_FLEX_HEADER_FALSE='#'
18728 else
18729 GENERATE_FLEX_HEADER_TRUE='#'
18730 GENERATE_FLEX_HEADER_FALSE=
18734 # Check for readline library
18735 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18737 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18738 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18739 if test "${vl_cv_lib_readline+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18743 ORIG_LIBS="$LIBS"
18744 for readline_lib in readline edit editline; do
18745 for termcap_lib in "" termcap curses ncurses; do
18746 if test -z "$termcap_lib"; then
18747 TRY_LIB="-l$readline_lib"
18748 else
18749 TRY_LIB="-l$readline_lib -l$termcap_lib"
18751 LIBS="$ORIG_LIBS $TRY_LIB"
18752 cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18759 /* Override any gcc2 internal prototype to avoid an error. */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 /* We use char because int might match the return type of a gcc2
18764 builtin and then its argument prototype would still apply. */
18765 char readline ();
18767 main ()
18769 readline ();
18771 return 0;
18773 _ACEOF
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag"
18784 || test ! -s conftest.err'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 vl_cv_lib_readline="$TRY_LIB"
18797 else
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18802 rm -f conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804 if test -n "$vl_cv_lib_readline"; then
18805 break
18807 done
18808 if test -n "$vl_cv_lib_readline"; then
18809 break
18811 done
18812 if test -z "$vl_cv_lib_readline"; then
18813 vl_cv_lib_readline="no"
18814 LIBS="$ORIG_LIBS"
18815 READLINE_LIBS=""
18816 else
18817 READLINE_LIBS="$vl_cv_lib_readline"
18821 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18822 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18824 if test "$vl_cv_lib_readline" != "no"; then
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_LIBREADLINE 1
18828 _ACEOF
18832 for ac_header in readline.h readline/readline.h
18834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18836 echo "$as_me:$LINENO: checking for $ac_header" >&5
18837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18843 else
18844 # Is the header compilable?
18845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h. */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 $ac_includes_default
18854 #include <$ac_header>
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_header_compiler=yes
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 ac_header_compiler=no
18885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18887 echo "${ECHO_T}$ac_header_compiler" >&6
18889 # Is the header present?
18890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 #include <$ac_header>
18899 _ACEOF
18900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18902 ac_status=$?
18903 grep -v '^ *+' conftest.er1 >conftest.err
18904 rm -f conftest.er1
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } >/dev/null; then
18908 if test -s conftest.err; then
18909 ac_cpp_err=$ac_c_preproc_warn_flag
18910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18911 else
18912 ac_cpp_err=
18914 else
18915 ac_cpp_err=yes
18917 if test -z "$ac_cpp_err"; then
18918 ac_header_preproc=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_header_preproc=no
18925 rm -f conftest.err conftest.$ac_ext
18926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18927 echo "${ECHO_T}$ac_header_preproc" >&6
18929 # So? What about this header?
18930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18931 yes:no: )
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18936 ac_header_preproc=yes
18938 no:yes:* )
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18952 cat <<\_ASBOX
18953 ## ------------------------------ ##
18954 ## Report this to admin@amule.org ##
18955 ## ------------------------------ ##
18956 _ASBOX
18958 sed "s/^/$as_me: WARNING: /" >&2
18960 esac
18961 echo "$as_me:$LINENO: checking for $ac_header" >&5
18962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 eval "$as_ac_Header=\$ac_header_preproc"
18968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18975 _ACEOF
18979 done
18981 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18982 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18983 if test "${vl_cv_lib_readline_history+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18987 vl_cv_lib_readline_history="no"
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18995 /* Override any gcc2 internal prototype to avoid an error. */
18996 #ifdef __cplusplus
18997 extern "C"
18998 #endif
18999 /* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19001 char add_history ();
19003 main ()
19005 add_history ();
19007 return 0;
19009 _ACEOF
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag"
19020 || test ! -s conftest.err'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest$ac_exeext'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 vl_cv_lib_readline_history="yes"
19033 else
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19038 rm -f conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19042 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19043 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19044 if test "$vl_cv_lib_readline_history" = "yes"; then
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE_READLINE_HISTORY 1
19048 _ACEOF
19052 for ac_header in history.h readline/history.h
19054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063 else
19064 # Is the header compilable?
19065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19074 #include <$ac_header>
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag"
19086 || test ! -s conftest.err'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_header_compiler=yes
19099 else
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 ac_header_compiler=no
19105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19107 echo "${ECHO_T}$ac_header_compiler" >&6
19109 # Is the header present?
19110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <$ac_header>
19119 _ACEOF
19120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } >/dev/null; then
19128 if test -s conftest.err; then
19129 ac_cpp_err=$ac_c_preproc_warn_flag
19130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19131 else
19132 ac_cpp_err=
19134 else
19135 ac_cpp_err=yes
19137 if test -z "$ac_cpp_err"; then
19138 ac_header_preproc=yes
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_header_preproc=no
19145 rm -f conftest.err conftest.$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19147 echo "${ECHO_T}$ac_header_preproc" >&6
19149 # So? What about this header?
19150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19151 yes:no: )
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19156 ac_header_preproc=yes
19158 no:yes:* )
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19172 cat <<\_ASBOX
19173 ## ------------------------------ ##
19174 ## Report this to admin@amule.org ##
19175 ## ------------------------------ ##
19176 _ASBOX
19178 sed "s/^/$as_me: WARNING: /" >&2
19180 esac
19181 echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186 eval "$as_ac_Header=\$ac_header_preproc"
19188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19195 _ACEOF
19199 done
19204 LIBS="$ORIG_LIBS"
19208 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19211 # Check whether --enable-ccache or --disable-ccache was given.
19212 if test "${enable_ccache+set}" = set; then
19213 enableval="$enable_ccache"
19218 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19219 if test "${with_ccache_prefix+set}" = set; then
19220 withval="$with_ccache_prefix"
19224 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19225 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19226 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19227 echo "${ECHO_T}${enable_ccache:-no}" >&6
19229 if test ${enable_ccache:-no} = yes; then
19231 echo "$as_me:$LINENO: checking for ccache presence" >&5
19232 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19233 if test -z "$with_ccache_prefix"; then
19235 ccache_full=`which ccache`
19236 with_ccache_prefix=`dirname ${ccache_full}`
19240 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19242 echo "$as_me:$LINENO: result: yes" >&5
19243 echo "${ECHO_T}yes" >&6
19244 CC="$with_ccache_prefix/ccache $CC"
19245 CXX="$with_ccache_prefix/ccache $CXX"
19246 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19248 else
19250 enable_ccache=no
19251 echo "$as_me:$LINENO: result: no" >&5
19252 echo "${ECHO_T}no" >&6
19261 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19263 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19265 if test x$SYS = xwin32; then
19266 ac_config_files="$ac_config_files version.rc"
19270 cat >confcache <<\_ACEOF
19271 # This file is a shell script that caches the results of configure
19272 # tests run on this system so they can be shared between configure
19273 # scripts and configure runs, see configure's option --config-cache.
19274 # It is not useful on other systems. If it contains results you don't
19275 # want to keep, you may remove or edit it.
19277 # config.status only pays attention to the cache file if you give it
19278 # the --recheck option to rerun configure.
19280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19282 # following values.
19284 _ACEOF
19286 # The following way of writing the cache mishandles newlines in values,
19287 # but we know of no workaround that is simple, portable, and efficient.
19288 # So, don't put newlines in cache variables' values.
19289 # Ultrix sh set writes to stderr and can't be redirected directly,
19290 # and sets the high bit in the cache file unless we assign to the vars.
19292 (set) 2>&1 |
19293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19294 *ac_space=\ *)
19295 # `set' does not quote correctly, so add quotes (double-quote
19296 # substitution turns \\\\ into \\, and sed turns \\ into \).
19297 sed -n \
19298 "s/'/'\\\\''/g;
19299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19302 # `set' quotes correctly as required by POSIX, so do not add quotes.
19303 sed -n \
19304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19306 esac;
19308 sed '
19309 t clear
19310 : clear
19311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19312 t end
19313 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19314 : end' >>confcache
19315 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19316 if test -w $cache_file; then
19317 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19318 cat confcache >$cache_file
19319 else
19320 echo "not updating unwritable cache $cache_file"
19323 rm -f confcache
19325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19326 # Let make expand exec_prefix.
19327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19331 # trailing colons and then remove the whole line if VPATH becomes empty
19332 # (actually we leave an empty line to preserve line numbers).
19333 if test "x$srcdir" = x.; then
19334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19335 s/:*\$(srcdir):*/:/;
19336 s/:*\${srcdir}:*/:/;
19337 s/:*@srcdir@:*/:/;
19338 s/^\([^=]*=[ ]*\):*/\1/;
19339 s/:*$//;
19340 s/^[^=]*=[ ]*$//;
19344 DEFS=-DHAVE_CONFIG_H
19346 ac_libobjs=
19347 ac_ltlibobjs=
19348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19349 # 1. Remove the extension, and $U if already installed.
19350 ac_i=`echo "$ac_i" |
19351 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19352 # 2. Add them.
19353 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19354 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19355 done
19356 LIBOBJS=$ac_libobjs
19358 LTLIBOBJS=$ac_ltlibobjs
19361 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19362 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19363 Usually this means the macro was only invoked conditionally." >&5
19364 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19365 Usually this means the macro was only invoked conditionally." >&2;}
19366 { (exit 1); exit 1; }; }
19368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19369 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19370 Usually this means the macro was only invoked conditionally." >&5
19371 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19372 Usually this means the macro was only invoked conditionally." >&2;}
19373 { (exit 1); exit 1; }; }
19375 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19376 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19377 Usually this means the macro was only invoked conditionally." >&5
19378 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19379 Usually this means the macro was only invoked conditionally." >&2;}
19380 { (exit 1); exit 1; }; }
19382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19383 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19384 Usually this means the macro was only invoked conditionally." >&5
19385 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19386 Usually this means the macro was only invoked conditionally." >&2;}
19387 { (exit 1); exit 1; }; }
19389 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"WEB\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"ED2K\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"CAS\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19410 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19411 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19412 Usually this means the macro was only invoked conditionally." >&5
19413 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19414 Usually this means the macro was only invoked conditionally." >&2;}
19415 { (exit 1); exit 1; }; }
19417 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19418 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19419 Usually this means the macro was only invoked conditionally." >&5
19420 echo "$as_me: error: conditional \"ALC\" was never defined.
19421 Usually this means the macro was only invoked conditionally." >&2;}
19422 { (exit 1); exit 1; }; }
19424 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19425 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19426 Usually this means the macro was only invoked conditionally." >&5
19427 echo "$as_me: error: conditional \"ALCC\" was never defined.
19428 Usually this means the macro was only invoked conditionally." >&2;}
19429 { (exit 1); exit 1; }; }
19431 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19432 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436 { (exit 1); exit 1; }; }
19438 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19439 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&5
19441 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19442 Usually this means the macro was only invoked conditionally." >&2;}
19443 { (exit 1); exit 1; }; }
19445 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19446 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19447 Usually this means the macro was only invoked conditionally." >&5
19448 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19449 Usually this means the macro was only invoked conditionally." >&2;}
19450 { (exit 1); exit 1; }; }
19452 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19453 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19454 Usually this means the macro was only invoked conditionally." >&5
19455 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19456 Usually this means the macro was only invoked conditionally." >&2;}
19457 { (exit 1); exit 1; }; }
19459 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19460 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19461 Usually this means the macro was only invoked conditionally." >&5
19462 echo "$as_me: error: conditional \"XAS\" was never defined.
19463 Usually this means the macro was only invoked conditionally." >&2;}
19464 { (exit 1); exit 1; }; }
19466 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19467 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19468 Usually this means the macro was only invoked conditionally." >&5
19469 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19470 Usually this means the macro was only invoked conditionally." >&2;}
19471 { (exit 1); exit 1; }; }
19473 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19474 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19475 Usually this means the macro was only invoked conditionally." >&5
19476 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19477 Usually this means the macro was only invoked conditionally." >&2;}
19478 { (exit 1); exit 1; }; }
19480 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19481 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19482 Usually this means the macro was only invoked conditionally." >&5
19483 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19484 Usually this means the macro was only invoked conditionally." >&2;}
19485 { (exit 1); exit 1; }; }
19487 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19488 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&5
19490 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&2;}
19492 { (exit 1); exit 1; }; }
19494 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19495 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&5
19497 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&2;}
19499 { (exit 1); exit 1; }; }
19501 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19502 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&5
19504 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&2;}
19506 { (exit 1); exit 1; }; }
19508 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19509 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&5
19511 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&2;}
19513 { (exit 1); exit 1; }; }
19516 : ${CONFIG_STATUS=./config.status}
19517 ac_clean_files_save=$ac_clean_files
19518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19519 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19520 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19521 cat >$CONFIG_STATUS <<_ACEOF
19522 #! $SHELL
19523 # Generated by $as_me.
19524 # Run this file to recreate the current configuration.
19525 # Compiler output produced by configure, useful for debugging
19526 # configure, is in config.log if it exists.
19528 debug=false
19529 ac_cs_recheck=false
19530 ac_cs_silent=false
19531 SHELL=\${CONFIG_SHELL-$SHELL}
19532 _ACEOF
19534 cat >>$CONFIG_STATUS <<\_ACEOF
19535 ## --------------------- ##
19536 ## M4sh Initialization. ##
19537 ## --------------------- ##
19539 # Be Bourne compatible
19540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19541 emulate sh
19542 NULLCMD=:
19543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19544 # is contrary to our usage. Disable this feature.
19545 alias -g '${1+"$@"}'='"$@"'
19546 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19547 set -o posix
19549 DUALCASE=1; export DUALCASE # for MKS sh
19551 # Support unset when possible.
19552 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19553 as_unset=unset
19554 else
19555 as_unset=false
19559 # Work around bugs in pre-3.0 UWIN ksh.
19560 $as_unset ENV MAIL MAILPATH
19561 PS1='$ '
19562 PS2='> '
19563 PS4='+ '
19565 # NLS nuisances.
19566 for as_var in \
19567 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19568 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19569 LC_TELEPHONE LC_TIME
19571 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19572 eval $as_var=C; export $as_var
19573 else
19574 $as_unset $as_var
19576 done
19578 # Required to use basename.
19579 if expr a : '\(a\)' >/dev/null 2>&1; then
19580 as_expr=expr
19581 else
19582 as_expr=false
19585 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19586 as_basename=basename
19587 else
19588 as_basename=false
19592 # Name of the executable.
19593 as_me=`$as_basename "$0" ||
19594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19595 X"$0" : 'X\(//\)$' \| \
19596 X"$0" : 'X\(/\)$' \| \
19597 . : '\(.\)' 2>/dev/null ||
19598 echo X/"$0" |
19599 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19600 /^X\/\(\/\/\)$/{ s//\1/; q; }
19601 /^X\/\(\/\).*/{ s//\1/; q; }
19602 s/.*/./; q'`
19605 # PATH needs CR, and LINENO needs CR and PATH.
19606 # Avoid depending upon Character Ranges.
19607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19610 as_cr_digits='0123456789'
19611 as_cr_alnum=$as_cr_Letters$as_cr_digits
19613 # The user is always right.
19614 if test "${PATH_SEPARATOR+set}" != set; then
19615 echo "#! /bin/sh" >conf$$.sh
19616 echo "exit 0" >>conf$$.sh
19617 chmod +x conf$$.sh
19618 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19619 PATH_SEPARATOR=';'
19620 else
19621 PATH_SEPARATOR=:
19623 rm -f conf$$.sh
19627 as_lineno_1=$LINENO
19628 as_lineno_2=$LINENO
19629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19630 test "x$as_lineno_1" != "x$as_lineno_2" &&
19631 test "x$as_lineno_3" = "x$as_lineno_2" || {
19632 # Find who we are. Look in the path if we contain no path at all
19633 # relative or not.
19634 case $0 in
19635 *[\\/]* ) as_myself=$0 ;;
19636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19637 for as_dir in $PATH
19639 IFS=$as_save_IFS
19640 test -z "$as_dir" && as_dir=.
19641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19642 done
19645 esac
19646 # We did not find ourselves, most probably we were run as `sh COMMAND'
19647 # in which case we are not to be found in the path.
19648 if test "x$as_myself" = x; then
19649 as_myself=$0
19651 if test ! -f "$as_myself"; then
19652 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19653 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19654 { (exit 1); exit 1; }; }
19656 case $CONFIG_SHELL in
19658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19661 IFS=$as_save_IFS
19662 test -z "$as_dir" && as_dir=.
19663 for as_base in sh bash ksh sh5; do
19664 case $as_dir in
19666 if ("$as_dir/$as_base" -c '
19667 as_lineno_1=$LINENO
19668 as_lineno_2=$LINENO
19669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19670 test "x$as_lineno_1" != "x$as_lineno_2" &&
19671 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19672 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19673 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19674 CONFIG_SHELL=$as_dir/$as_base
19675 export CONFIG_SHELL
19676 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19677 fi;;
19678 esac
19679 done
19680 done
19682 esac
19684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19685 # uniformly replaced by the line number. The first 'sed' inserts a
19686 # line-number line before each line; the second 'sed' does the real
19687 # work. The second script uses 'N' to pair each line-number line
19688 # with the numbered line, and appends trailing '-' during
19689 # substitution so that $LINENO is not a special case at line end.
19690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19691 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19692 sed '=' <$as_myself |
19693 sed '
19695 s,$,-,
19696 : loop
19697 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19698 t loop
19699 s,-$,,
19700 s,^['$as_cr_digits']*\n,,
19701 ' >$as_me.lineno &&
19702 chmod +x $as_me.lineno ||
19703 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19704 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19705 { (exit 1); exit 1; }; }
19707 # Don't try to exec as it changes $[0], causing all sort of problems
19708 # (the dirname of $[0] is not the place where we might find the
19709 # original and so on. Autoconf is especially sensible to this).
19710 . ./$as_me.lineno
19711 # Exit status is that of the last command.
19712 exit
19716 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19717 *c*,-n*) ECHO_N= ECHO_C='
19718 ' ECHO_T=' ' ;;
19719 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19720 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19721 esac
19723 if expr a : '\(a\)' >/dev/null 2>&1; then
19724 as_expr=expr
19725 else
19726 as_expr=false
19729 rm -f conf$$ conf$$.exe conf$$.file
19730 echo >conf$$.file
19731 if ln -s conf$$.file conf$$ 2>/dev/null; then
19732 # We could just check for DJGPP; but this test a) works b) is more generic
19733 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19734 if test -f conf$$.exe; then
19735 # Don't use ln at all; we don't have any links
19736 as_ln_s='cp -p'
19737 else
19738 as_ln_s='ln -s'
19740 elif ln conf$$.file conf$$ 2>/dev/null; then
19741 as_ln_s=ln
19742 else
19743 as_ln_s='cp -p'
19745 rm -f conf$$ conf$$.exe conf$$.file
19747 if mkdir -p . 2>/dev/null; then
19748 as_mkdir_p=:
19749 else
19750 test -d ./-p && rmdir ./-p
19751 as_mkdir_p=false
19754 as_executable_p="test -f"
19756 # Sed expression to map a string onto a valid CPP name.
19757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19759 # Sed expression to map a string onto a valid variable name.
19760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19763 # IFS
19764 # We need space, tab and new line, in precisely that order.
19765 as_nl='
19767 IFS=" $as_nl"
19769 # CDPATH.
19770 $as_unset CDPATH
19772 exec 6>&1
19774 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19775 # report actual input values of CONFIG_FILES etc. instead of their
19776 # values after options handling. Logging --version etc. is OK.
19777 exec 5>>config.log
19779 echo
19780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19781 ## Running $as_me. ##
19782 _ASBOX
19783 } >&5
19784 cat >&5 <<_CSEOF
19786 This file was extended by aMule $as_me SVN, which was
19787 generated by GNU Autoconf 2.59. Invocation command line was
19789 CONFIG_FILES = $CONFIG_FILES
19790 CONFIG_HEADERS = $CONFIG_HEADERS
19791 CONFIG_LINKS = $CONFIG_LINKS
19792 CONFIG_COMMANDS = $CONFIG_COMMANDS
19793 $ $0 $@
19795 _CSEOF
19796 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19797 echo >&5
19798 _ACEOF
19800 # Files that config.status was made for.
19801 if test -n "$ac_config_files"; then
19802 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19805 if test -n "$ac_config_headers"; then
19806 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19809 if test -n "$ac_config_links"; then
19810 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19813 if test -n "$ac_config_commands"; then
19814 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19817 cat >>$CONFIG_STATUS <<\_ACEOF
19819 ac_cs_usage="\
19820 \`$as_me' instantiates files from templates according to the
19821 current configuration.
19823 Usage: $0 [OPTIONS] [FILE]...
19825 -h, --help print this help, then exit
19826 -V, --version print version number, then exit
19827 -q, --quiet do not print progress messages
19828 -d, --debug don't remove temporary files
19829 --recheck update $as_me by reconfiguring in the same conditions
19830 --file=FILE[:TEMPLATE]
19831 instantiate the configuration file FILE
19832 --header=FILE[:TEMPLATE]
19833 instantiate the configuration header FILE
19835 Configuration files:
19836 $config_files
19838 Configuration headers:
19839 $config_headers
19841 Configuration commands:
19842 $config_commands
19844 Report bugs to <bug-autoconf@gnu.org>."
19845 _ACEOF
19847 cat >>$CONFIG_STATUS <<_ACEOF
19848 ac_cs_version="\\
19849 aMule config.status SVN
19850 configured by $0, generated by GNU Autoconf 2.59,
19851 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19853 Copyright (C) 2003 Free Software Foundation, Inc.
19854 This config.status script is free software; the Free Software Foundation
19855 gives unlimited permission to copy, distribute and modify it."
19856 srcdir=$srcdir
19857 INSTALL="$INSTALL"
19858 _ACEOF
19860 cat >>$CONFIG_STATUS <<\_ACEOF
19861 # If no file are specified by the user, then we need to provide default
19862 # value. By we need to know if files were specified by the user.
19863 ac_need_defaults=:
19864 while test $# != 0
19866 case $1 in
19867 --*=*)
19868 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19869 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19870 ac_shift=:
19873 ac_option=$1
19874 ac_optarg=$2
19875 ac_shift=shift
19877 *) # This is not an option, so the user has probably given explicit
19878 # arguments.
19879 ac_option=$1
19880 ac_need_defaults=false;;
19881 esac
19883 case $ac_option in
19884 # Handling of the options.
19885 _ACEOF
19886 cat >>$CONFIG_STATUS <<\_ACEOF
19887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19888 ac_cs_recheck=: ;;
19889 --version | --vers* | -V )
19890 echo "$ac_cs_version"; exit 0 ;;
19891 --he | --h)
19892 # Conflict between --help and --header
19893 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19894 Try \`$0 --help' for more information." >&5
19895 echo "$as_me: error: ambiguous option: $1
19896 Try \`$0 --help' for more information." >&2;}
19897 { (exit 1); exit 1; }; };;
19898 --help | --hel | -h )
19899 echo "$ac_cs_usage"; exit 0 ;;
19900 --debug | --d* | -d )
19901 debug=: ;;
19902 --file | --fil | --fi | --f )
19903 $ac_shift
19904 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19905 ac_need_defaults=false;;
19906 --header | --heade | --head | --hea )
19907 $ac_shift
19908 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19909 ac_need_defaults=false;;
19910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19912 ac_cs_silent=: ;;
19914 # This is an error.
19915 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19916 Try \`$0 --help' for more information." >&5
19917 echo "$as_me: error: unrecognized option: $1
19918 Try \`$0 --help' for more information." >&2;}
19919 { (exit 1); exit 1; }; } ;;
19921 *) ac_config_targets="$ac_config_targets $1" ;;
19923 esac
19924 shift
19925 done
19927 ac_configure_extra_args=
19929 if $ac_cs_silent; then
19930 exec 6>/dev/null
19931 ac_configure_extra_args="$ac_configure_extra_args --silent"
19934 _ACEOF
19935 cat >>$CONFIG_STATUS <<_ACEOF
19936 if \$ac_cs_recheck; then
19937 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19938 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19941 _ACEOF
19943 cat >>$CONFIG_STATUS <<_ACEOF
19945 # INIT-COMMANDS section.
19948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19949 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19950 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19951 # from automake.
19952 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19953 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19954 LINGUAS="${LINGUAS-%UNSET%}"
19956 denoiserlevel=$with_denoise_level
19958 _ACEOF
19962 cat >>$CONFIG_STATUS <<\_ACEOF
19963 for ac_config_target in $ac_config_targets
19965 case "$ac_config_target" in
19966 # Handling of arguments.
19967 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19968 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19969 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19970 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19971 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19972 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19973 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19974 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19975 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19976 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19977 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19978 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19979 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19980 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19981 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19982 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19983 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19984 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19985 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19986 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19987 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19988 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19989 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19990 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19991 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19992 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19993 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19994 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19995 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19996 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19997 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19998 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19999 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20000 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20001 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20002 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20003 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20004 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20005 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20006 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20007 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20009 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20010 { (exit 1); exit 1; }; };;
20011 esac
20012 done
20014 # If the user did not use the arguments to specify the items to instantiate,
20015 # then the envvar interface is used. Set only those that are not.
20016 # We use the long form for the default assignment because of an extremely
20017 # bizarre bug on SunOS 4.1.3.
20018 if $ac_need_defaults; then
20019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20024 # Have a temporary directory for convenience. Make it in the build tree
20025 # simply because there is no reason to put it here, and in addition,
20026 # creating and moving files from /tmp can sometimes cause problems.
20027 # Create a temporary directory, and hook for its removal unless debugging.
20028 $debug ||
20030 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20031 trap '{ (exit 1); exit 1; }' 1 2 13 15
20034 # Create a (secure) tmp directory for tmp files.
20037 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20038 test -n "$tmp" && test -d "$tmp"
20039 } ||
20041 tmp=./confstat$$-$RANDOM
20042 (umask 077 && mkdir $tmp)
20043 } ||
20045 echo "$me: cannot create a temporary directory in ." >&2
20046 { (exit 1); exit 1; }
20049 _ACEOF
20051 cat >>$CONFIG_STATUS <<_ACEOF
20054 # CONFIG_FILES section.
20057 # No need to generate the scripts if there are no CONFIG_FILES.
20058 # This happens for instance when ./config.status config.h
20059 if test -n "\$CONFIG_FILES"; then
20060 # Protect against being on the right side of a sed subst in config.status.
20061 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20062 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20063 s,@SHELL@,$SHELL,;t t
20064 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20065 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20066 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20067 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20068 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20069 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20070 s,@exec_prefix@,$exec_prefix,;t t
20071 s,@prefix@,$prefix,;t t
20072 s,@program_transform_name@,$program_transform_name,;t t
20073 s,@bindir@,$bindir,;t t
20074 s,@sbindir@,$sbindir,;t t
20075 s,@libexecdir@,$libexecdir,;t t
20076 s,@datadir@,$datadir,;t t
20077 s,@sysconfdir@,$sysconfdir,;t t
20078 s,@sharedstatedir@,$sharedstatedir,;t t
20079 s,@localstatedir@,$localstatedir,;t t
20080 s,@libdir@,$libdir,;t t
20081 s,@includedir@,$includedir,;t t
20082 s,@oldincludedir@,$oldincludedir,;t t
20083 s,@infodir@,$infodir,;t t
20084 s,@mandir@,$mandir,;t t
20085 s,@build_alias@,$build_alias,;t t
20086 s,@host_alias@,$host_alias,;t t
20087 s,@target_alias@,$target_alias,;t t
20088 s,@DEFS@,$DEFS,;t t
20089 s,@ECHO_C@,$ECHO_C,;t t
20090 s,@ECHO_N@,$ECHO_N,;t t
20091 s,@ECHO_T@,$ECHO_T,;t t
20092 s,@LIBS@,$LIBS,;t t
20093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20096 s,@CYGPATH_W@,$CYGPATH_W,;t t
20097 s,@PACKAGE@,$PACKAGE,;t t
20098 s,@VERSION@,$VERSION,;t t
20099 s,@ACLOCAL@,$ACLOCAL,;t t
20100 s,@AUTOCONF@,$AUTOCONF,;t t
20101 s,@AUTOMAKE@,$AUTOMAKE,;t t
20102 s,@AUTOHEADER@,$AUTOHEADER,;t t
20103 s,@MAKEINFO@,$MAKEINFO,;t t
20104 s,@install_sh@,$install_sh,;t t
20105 s,@STRIP@,$STRIP,;t t
20106 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20107 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20108 s,@mkdir_p@,$mkdir_p,;t t
20109 s,@AWK@,$AWK,;t t
20110 s,@SET_MAKE@,$SET_MAKE,;t t
20111 s,@am__leading_dot@,$am__leading_dot,;t t
20112 s,@AMTAR@,$AMTAR,;t t
20113 s,@am__tar@,$am__tar,;t t
20114 s,@am__untar@,$am__untar,;t t
20115 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20116 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20117 s,@MAINT@,$MAINT,;t t
20118 s,@build@,$build,;t t
20119 s,@build_cpu@,$build_cpu,;t t
20120 s,@build_vendor@,$build_vendor,;t t
20121 s,@build_os@,$build_os,;t t
20122 s,@host@,$host,;t t
20123 s,@host_cpu@,$host_cpu,;t t
20124 s,@host_vendor@,$host_vendor,;t t
20125 s,@host_os@,$host_os,;t t
20126 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20127 s,@X11LIBS@,$X11LIBS,;t t
20128 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20129 s,@MULECFLAGS@,$MULECFLAGS,;t t
20130 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20131 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20132 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20133 s,@CXX@,$CXX,;t t
20134 s,@CXXFLAGS@,$CXXFLAGS,;t t
20135 s,@LDFLAGS@,$LDFLAGS,;t t
20136 s,@CPPFLAGS@,$CPPFLAGS,;t t
20137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20138 s,@EXEEXT@,$EXEEXT,;t t
20139 s,@OBJEXT@,$OBJEXT,;t t
20140 s,@DEPDIR@,$DEPDIR,;t t
20141 s,@am__include@,$am__include,;t t
20142 s,@am__quote@,$am__quote,;t t
20143 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20144 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20145 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20146 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20147 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20148 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20149 s,@CXXCPP@,$CXXCPP,;t t
20150 s,@CC@,$CC,;t t
20151 s,@CFLAGS@,$CFLAGS,;t t
20152 s,@ac_ct_CC@,$ac_ct_CC,;t t
20153 s,@CCDEPMODE@,$CCDEPMODE,;t t
20154 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20155 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20156 s,@CPP@,$CPP,;t t
20157 s,@BUILD_CC@,$BUILD_CC,;t t
20158 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20159 s,@EXEEXT@,$EXEEXT,;t t
20160 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20161 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20162 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20163 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20164 s,@EGREP@,$EGREP,;t t
20165 s,@LEX@,$LEX,;t t
20166 s,@LEXLIB@,$LEXLIB,;t t
20167 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20168 s,@RANLIB@,$RANLIB,;t t
20169 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20170 s,@YACC@,$YACC,;t t
20171 s,@AR@,$AR,;t t
20172 s,@ac_ct_AR@,$ac_ct_AR,;t t
20173 s,@LD@,$LD,;t t
20174 s,@ac_ct_LD@,$ac_ct_LD,;t t
20175 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20176 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20177 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20178 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20179 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20180 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20181 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20182 s,@CAS_DEFS@,$CAS_DEFS,;t t
20183 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20184 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20185 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20186 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20187 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20188 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20189 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20190 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20191 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20192 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20193 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20194 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20195 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20196 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20197 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20198 s,@WX_LIBS@,$WX_LIBS,;t t
20199 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20200 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20201 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20202 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20203 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20204 s,@WX_UNICODE@,$WX_UNICODE,;t t
20205 s,@WX_DEBUG@,$WX_DEBUG,;t t
20206 s,@WX_SHARED@,$WX_SHARED,;t t
20207 s,@WX_PORT@,$WX_PORT,;t t
20208 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20209 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20210 s,@RC@,$RC,;t t
20211 s,@RCFLAGS@,$RCFLAGS,;t t
20212 s,@ac_ct_RC@,$ac_ct_RC,;t t
20213 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20214 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20215 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20216 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20217 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20218 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20219 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20220 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20221 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20222 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20223 s,@BFD_LIBS@,$BFD_LIBS,;t t
20224 s,@ALLOCA@,$ALLOCA,;t t
20225 s,@LIBOBJS@,$LIBOBJS,;t t
20226 s,@POW_LIB@,$POW_LIB,;t t
20227 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20228 s,@MSGFMT@,$MSGFMT,;t t
20229 s,@GMSGFMT@,$GMSGFMT,;t t
20230 s,@XGETTEXT@,$XGETTEXT,;t t
20231 s,@MSGMERGE@,$MSGMERGE,;t t
20232 s,@GLIBC21@,$GLIBC21,;t t
20233 s,@LIBICONV@,$LIBICONV,;t t
20234 s,@LTLIBICONV@,$LTLIBICONV,;t t
20235 s,@INTLBISON@,$INTLBISON,;t t
20236 s,@USE_NLS@,$USE_NLS,;t t
20237 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20238 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20239 s,@CATOBJEXT@,$CATOBJEXT,;t t
20240 s,@INTLOBJS@,$INTLOBJS,;t t
20241 s,@DATADIRNAME@,$DATADIRNAME,;t t
20242 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20243 s,@GENCAT@,$GENCAT,;t t
20244 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20245 s,@INTLLIBS@,$INTLLIBS,;t t
20246 s,@LIBINTL@,$LIBINTL,;t t
20247 s,@LTLIBINTL@,$LTLIBINTL,;t t
20248 s,@POSUB@,$POSUB,;t t
20249 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20250 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20251 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20252 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20253 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20254 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20255 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20256 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20257 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20258 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20259 s,@INCINTL@,$INCINTL,;t t
20260 s,@docdir@,$docdir,;t t
20261 s,@SVNDATE@,$SVNDATE,;t t
20262 s,@WEB_TRUE@,$WEB_TRUE,;t t
20263 s,@WEB_FALSE@,$WEB_FALSE,;t t
20264 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20265 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20266 s,@CAS_TRUE@,$CAS_TRUE,;t t
20267 s,@CAS_FALSE@,$CAS_FALSE,;t t
20268 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20269 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20270 s,@ALC_TRUE@,$ALC_TRUE,;t t
20271 s,@ALC_FALSE@,$ALC_FALSE,;t t
20272 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20273 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20274 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20275 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20276 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20277 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20278 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20279 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20280 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20281 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20282 s,@XAS_TRUE@,$XAS_TRUE,;t t
20283 s,@XAS_FALSE@,$XAS_FALSE,;t t
20284 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20285 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20286 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20287 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20288 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20289 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20290 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20291 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20292 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20293 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20294 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20295 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20296 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20297 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20298 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20300 CEOF
20302 _ACEOF
20304 cat >>$CONFIG_STATUS <<\_ACEOF
20305 # Split the substitutions into bite-sized pieces for seds with
20306 # small command number limits, like on Digital OSF/1 and HP-UX.
20307 ac_max_sed_lines=48
20308 ac_sed_frag=1 # Number of current file.
20309 ac_beg=1 # First line for current file.
20310 ac_end=$ac_max_sed_lines # Line after last line for current file.
20311 ac_more_lines=:
20312 ac_sed_cmds=
20313 while $ac_more_lines; do
20314 if test $ac_beg -gt 1; then
20315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20316 else
20317 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20319 if test ! -s $tmp/subs.frag; then
20320 ac_more_lines=false
20321 else
20322 # The purpose of the label and of the branching condition is to
20323 # speed up the sed processing (if there are no `@' at all, there
20324 # is no need to browse any of the substitutions).
20325 # These are the two extra sed commands mentioned above.
20326 (echo ':t
20327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20328 if test -z "$ac_sed_cmds"; then
20329 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20330 else
20331 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20333 ac_sed_frag=`expr $ac_sed_frag + 1`
20334 ac_beg=$ac_end
20335 ac_end=`expr $ac_end + $ac_max_sed_lines`
20337 done
20338 if test -z "$ac_sed_cmds"; then
20339 ac_sed_cmds=cat
20341 fi # test -n "$CONFIG_FILES"
20343 _ACEOF
20344 cat >>$CONFIG_STATUS <<\_ACEOF
20345 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20347 case $ac_file in
20348 - | *:- | *:-:* ) # input from stdin
20349 cat >$tmp/stdin
20350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20354 * ) ac_file_in=$ac_file.in ;;
20355 esac
20357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20360 X"$ac_file" : 'X\(//\)[^/]' \| \
20361 X"$ac_file" : 'X\(//\)$' \| \
20362 X"$ac_file" : 'X\(/\)' \| \
20363 . : '\(.\)' 2>/dev/null ||
20364 echo X"$ac_file" |
20365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20367 /^X\(\/\/\)$/{ s//\1/; q; }
20368 /^X\(\/\).*/{ s//\1/; q; }
20369 s/.*/./; q'`
20370 { if $as_mkdir_p; then
20371 mkdir -p "$ac_dir"
20372 else
20373 as_dir="$ac_dir"
20374 as_dirs=
20375 while test ! -d "$as_dir"; do
20376 as_dirs="$as_dir $as_dirs"
20377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20379 X"$as_dir" : 'X\(//\)[^/]' \| \
20380 X"$as_dir" : 'X\(//\)$' \| \
20381 X"$as_dir" : 'X\(/\)' \| \
20382 . : '\(.\)' 2>/dev/null ||
20383 echo X"$as_dir" |
20384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20386 /^X\(\/\/\)$/{ s//\1/; q; }
20387 /^X\(\/\).*/{ s//\1/; q; }
20388 s/.*/./; q'`
20389 done
20390 test ! -n "$as_dirs" || mkdir $as_dirs
20391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20393 { (exit 1); exit 1; }; }; }
20395 ac_builddir=.
20397 if test "$ac_dir" != .; then
20398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20399 # A "../" for each directory in $ac_dir_suffix.
20400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20401 else
20402 ac_dir_suffix= ac_top_builddir=
20405 case $srcdir in
20406 .) # No --srcdir option. We are building in place.
20407 ac_srcdir=.
20408 if test -z "$ac_top_builddir"; then
20409 ac_top_srcdir=.
20410 else
20411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20412 fi ;;
20413 [\\/]* | ?:[\\/]* ) # Absolute path.
20414 ac_srcdir=$srcdir$ac_dir_suffix;
20415 ac_top_srcdir=$srcdir ;;
20416 *) # Relative path.
20417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20419 esac
20421 # Do not use `cd foo && pwd` to compute absolute paths, because
20422 # the directories may not exist.
20423 case `pwd` in
20424 .) ac_abs_builddir="$ac_dir";;
20426 case "$ac_dir" in
20427 .) ac_abs_builddir=`pwd`;;
20428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20430 esac;;
20431 esac
20432 case $ac_abs_builddir in
20433 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20435 case ${ac_top_builddir}. in
20436 .) ac_abs_top_builddir=$ac_abs_builddir;;
20437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20439 esac;;
20440 esac
20441 case $ac_abs_builddir in
20442 .) ac_abs_srcdir=$ac_srcdir;;
20444 case $ac_srcdir in
20445 .) ac_abs_srcdir=$ac_abs_builddir;;
20446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20448 esac;;
20449 esac
20450 case $ac_abs_builddir in
20451 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20453 case $ac_top_srcdir in
20454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20457 esac;;
20458 esac
20461 case $INSTALL in
20462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20463 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20464 esac
20466 if test x"$ac_file" != x-; then
20467 { echo "$as_me:$LINENO: creating $ac_file" >&5
20468 echo "$as_me: creating $ac_file" >&6;}
20469 rm -f "$ac_file"
20471 # Let's still pretend it is `configure' which instantiates (i.e., don't
20472 # use $as_me), people would be surprised to read:
20473 # /* config.h. Generated by config.status. */
20474 if test x"$ac_file" = x-; then
20475 configure_input=
20476 else
20477 configure_input="$ac_file. "
20479 configure_input=$configure_input"Generated from `echo $ac_file_in |
20480 sed 's,.*/,,'` by configure."
20482 # First look for the input files in the build tree, otherwise in the
20483 # src tree.
20484 ac_file_inputs=`IFS=:
20485 for f in $ac_file_in; do
20486 case $f in
20487 -) echo $tmp/stdin ;;
20488 [\\/$]*)
20489 # Absolute (can't be DOS-style, as IFS=:)
20490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20491 echo "$as_me: error: cannot find input file: $f" >&2;}
20492 { (exit 1); exit 1; }; }
20493 echo "$f";;
20494 *) # Relative
20495 if test -f "$f"; then
20496 # Build tree
20497 echo "$f"
20498 elif test -f "$srcdir/$f"; then
20499 # Source tree
20500 echo "$srcdir/$f"
20501 else
20502 # /dev/null tree
20503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20504 echo "$as_me: error: cannot find input file: $f" >&2;}
20505 { (exit 1); exit 1; }; }
20506 fi;;
20507 esac
20508 done` || { (exit 1); exit 1; }
20509 _ACEOF
20510 cat >>$CONFIG_STATUS <<_ACEOF
20511 sed "$ac_vpsub
20512 $extrasub
20513 _ACEOF
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20517 s,@configure_input@,$configure_input,;t t
20518 s,@srcdir@,$ac_srcdir,;t t
20519 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20520 s,@top_srcdir@,$ac_top_srcdir,;t t
20521 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20522 s,@builddir@,$ac_builddir,;t t
20523 s,@abs_builddir@,$ac_abs_builddir,;t t
20524 s,@top_builddir@,$ac_top_builddir,;t t
20525 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20526 s,@INSTALL@,$ac_INSTALL,;t t
20527 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20528 rm -f $tmp/stdin
20529 if test x"$ac_file" != x-; then
20530 mv $tmp/out $ac_file
20531 else
20532 cat $tmp/out
20533 rm -f $tmp/out
20536 done
20537 _ACEOF
20538 cat >>$CONFIG_STATUS <<\_ACEOF
20541 # CONFIG_HEADER section.
20544 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20545 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20547 # ac_d sets the value in "#define NAME VALUE" lines.
20548 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20549 ac_dB='[ ].*$,\1#\2'
20550 ac_dC=' '
20551 ac_dD=',;t'
20552 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20553 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20554 ac_uB='$,\1#\2define\3'
20555 ac_uC=' '
20556 ac_uD=',;t'
20558 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20560 case $ac_file in
20561 - | *:- | *:-:* ) # input from stdin
20562 cat >$tmp/stdin
20563 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20565 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20567 * ) ac_file_in=$ac_file.in ;;
20568 esac
20570 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20571 echo "$as_me: creating $ac_file" >&6;}
20573 # First look for the input files in the build tree, otherwise in the
20574 # src tree.
20575 ac_file_inputs=`IFS=:
20576 for f in $ac_file_in; do
20577 case $f in
20578 -) echo $tmp/stdin ;;
20579 [\\/$]*)
20580 # Absolute (can't be DOS-style, as IFS=:)
20581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20582 echo "$as_me: error: cannot find input file: $f" >&2;}
20583 { (exit 1); exit 1; }; }
20584 # Do quote $f, to prevent DOS paths from being IFS'd.
20585 echo "$f";;
20586 *) # Relative
20587 if test -f "$f"; then
20588 # Build tree
20589 echo "$f"
20590 elif test -f "$srcdir/$f"; then
20591 # Source tree
20592 echo "$srcdir/$f"
20593 else
20594 # /dev/null tree
20595 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20596 echo "$as_me: error: cannot find input file: $f" >&2;}
20597 { (exit 1); exit 1; }; }
20598 fi;;
20599 esac
20600 done` || { (exit 1); exit 1; }
20601 # Remove the trailing spaces.
20602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20604 _ACEOF
20606 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20607 # `conftest.undefs', that substitutes the proper values into
20608 # config.h.in to produce config.h. The first handles `#define'
20609 # templates, and the second `#undef' templates.
20610 # And first: Protect against being on the right side of a sed subst in
20611 # config.status. Protect against being in an unquoted here document
20612 # in config.status.
20613 rm -f conftest.defines conftest.undefs
20614 # Using a here document instead of a string reduces the quoting nightmare.
20615 # Putting comments in sed scripts is not portable.
20617 # `end' is used to avoid that the second main sed command (meant for
20618 # 0-ary CPP macros) applies to n-ary macro definitions.
20619 # See the Autoconf documentation for `clear'.
20620 cat >confdef2sed.sed <<\_ACEOF
20621 s/[\\&,]/\\&/g
20622 s,[\\$`],\\&,g
20623 t clear
20624 : clear
20625 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20626 t end
20627 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20628 : end
20629 _ACEOF
20630 # If some macros were called several times there might be several times
20631 # the same #defines, which is useless. Nevertheless, we may not want to
20632 # sort them, since we want the *last* AC-DEFINE to be honored.
20633 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20634 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20635 rm -f confdef2sed.sed
20637 # This sed command replaces #undef with comments. This is necessary, for
20638 # example, in the case of _POSIX_SOURCE, which is predefined and required
20639 # on some systems where configure will not decide to define it.
20640 cat >>conftest.undefs <<\_ACEOF
20641 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20642 _ACEOF
20644 # Break up conftest.defines because some shells have a limit on the size
20645 # of here documents, and old seds have small limits too (100 cmds).
20646 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20647 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20648 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20649 echo ' :' >>$CONFIG_STATUS
20650 rm -f conftest.tail
20651 while grep . conftest.defines >/dev/null
20653 # Write a limited-size here document to $tmp/defines.sed.
20654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20655 # Speed up: don't consider the non `#define' lines.
20656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20657 # Work around the forget-to-reset-the-flag bug.
20658 echo 't clr' >>$CONFIG_STATUS
20659 echo ': clr' >>$CONFIG_STATUS
20660 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20661 echo 'CEOF
20662 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20663 rm -f $tmp/in
20664 mv $tmp/out $tmp/in
20665 ' >>$CONFIG_STATUS
20666 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20667 rm -f conftest.defines
20668 mv conftest.tail conftest.defines
20669 done
20670 rm -f conftest.defines
20671 echo ' fi # grep' >>$CONFIG_STATUS
20672 echo >>$CONFIG_STATUS
20674 # Break up conftest.undefs because some shells have a limit on the size
20675 # of here documents, and old seds have small limits too (100 cmds).
20676 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20677 rm -f conftest.tail
20678 while grep . conftest.undefs >/dev/null
20680 # Write a limited-size here document to $tmp/undefs.sed.
20681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20682 # Speed up: don't consider the non `#undef'
20683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20684 # Work around the forget-to-reset-the-flag bug.
20685 echo 't clr' >>$CONFIG_STATUS
20686 echo ': clr' >>$CONFIG_STATUS
20687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20688 echo 'CEOF
20689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20690 rm -f $tmp/in
20691 mv $tmp/out $tmp/in
20692 ' >>$CONFIG_STATUS
20693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20694 rm -f conftest.undefs
20695 mv conftest.tail conftest.undefs
20696 done
20697 rm -f conftest.undefs
20699 cat >>$CONFIG_STATUS <<\_ACEOF
20700 # Let's still pretend it is `configure' which instantiates (i.e., don't
20701 # use $as_me), people would be surprised to read:
20702 # /* config.h. Generated by config.status. */
20703 if test x"$ac_file" = x-; then
20704 echo "/* Generated by configure. */" >$tmp/config.h
20705 else
20706 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20708 cat $tmp/in >>$tmp/config.h
20709 rm -f $tmp/in
20710 if test x"$ac_file" != x-; then
20711 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20712 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20713 echo "$as_me: $ac_file is unchanged" >&6;}
20714 else
20715 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20717 X"$ac_file" : 'X\(//\)[^/]' \| \
20718 X"$ac_file" : 'X\(//\)$' \| \
20719 X"$ac_file" : 'X\(/\)' \| \
20720 . : '\(.\)' 2>/dev/null ||
20721 echo X"$ac_file" |
20722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20724 /^X\(\/\/\)$/{ s//\1/; q; }
20725 /^X\(\/\).*/{ s//\1/; q; }
20726 s/.*/./; q'`
20727 { if $as_mkdir_p; then
20728 mkdir -p "$ac_dir"
20729 else
20730 as_dir="$ac_dir"
20731 as_dirs=
20732 while test ! -d "$as_dir"; do
20733 as_dirs="$as_dir $as_dirs"
20734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20736 X"$as_dir" : 'X\(//\)[^/]' \| \
20737 X"$as_dir" : 'X\(//\)$' \| \
20738 X"$as_dir" : 'X\(/\)' \| \
20739 . : '\(.\)' 2>/dev/null ||
20740 echo X"$as_dir" |
20741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20743 /^X\(\/\/\)$/{ s//\1/; q; }
20744 /^X\(\/\).*/{ s//\1/; q; }
20745 s/.*/./; q'`
20746 done
20747 test ! -n "$as_dirs" || mkdir $as_dirs
20748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20750 { (exit 1); exit 1; }; }; }
20752 rm -f $ac_file
20753 mv $tmp/config.h $ac_file
20755 else
20756 cat $tmp/config.h
20757 rm -f $tmp/config.h
20759 # Compute $ac_file's index in $config_headers.
20760 _am_stamp_count=1
20761 for _am_header in $config_headers :; do
20762 case $_am_header in
20763 $ac_file | $ac_file:* )
20764 break ;;
20766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20767 esac
20768 done
20769 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20770 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 X$ac_file : 'X\(//\)[^/]' \| \
20772 X$ac_file : 'X\(//\)$' \| \
20773 X$ac_file : 'X\(/\)' \| \
20774 . : '\(.\)' 2>/dev/null ||
20775 echo X$ac_file |
20776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20778 /^X\(\/\/\)$/{ s//\1/; q; }
20779 /^X\(\/\).*/{ s//\1/; q; }
20780 s/.*/./; q'`/stamp-h$_am_stamp_count
20781 done
20782 _ACEOF
20783 cat >>$CONFIG_STATUS <<\_ACEOF
20786 # CONFIG_COMMANDS section.
20788 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20789 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20790 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20791 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20792 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20793 X"$ac_dest" : 'X\(//\)[^/]' \| \
20794 X"$ac_dest" : 'X\(//\)$' \| \
20795 X"$ac_dest" : 'X\(/\)' \| \
20796 . : '\(.\)' 2>/dev/null ||
20797 echo X"$ac_dest" |
20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20800 /^X\(\/\/\)$/{ s//\1/; q; }
20801 /^X\(\/\).*/{ s//\1/; q; }
20802 s/.*/./; q'`
20803 { if $as_mkdir_p; then
20804 mkdir -p "$ac_dir"
20805 else
20806 as_dir="$ac_dir"
20807 as_dirs=
20808 while test ! -d "$as_dir"; do
20809 as_dirs="$as_dir $as_dirs"
20810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20812 X"$as_dir" : 'X\(//\)[^/]' \| \
20813 X"$as_dir" : 'X\(//\)$' \| \
20814 X"$as_dir" : 'X\(/\)' \| \
20815 . : '\(.\)' 2>/dev/null ||
20816 echo X"$as_dir" |
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20819 /^X\(\/\/\)$/{ s//\1/; q; }
20820 /^X\(\/\).*/{ s//\1/; q; }
20821 s/.*/./; q'`
20822 done
20823 test ! -n "$as_dirs" || mkdir $as_dirs
20824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20826 { (exit 1); exit 1; }; }; }
20828 ac_builddir=.
20830 if test "$ac_dir" != .; then
20831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20832 # A "../" for each directory in $ac_dir_suffix.
20833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20834 else
20835 ac_dir_suffix= ac_top_builddir=
20838 case $srcdir in
20839 .) # No --srcdir option. We are building in place.
20840 ac_srcdir=.
20841 if test -z "$ac_top_builddir"; then
20842 ac_top_srcdir=.
20843 else
20844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20845 fi ;;
20846 [\\/]* | ?:[\\/]* ) # Absolute path.
20847 ac_srcdir=$srcdir$ac_dir_suffix;
20848 ac_top_srcdir=$srcdir ;;
20849 *) # Relative path.
20850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20852 esac
20854 # Do not use `cd foo && pwd` to compute absolute paths, because
20855 # the directories may not exist.
20856 case `pwd` in
20857 .) ac_abs_builddir="$ac_dir";;
20859 case "$ac_dir" in
20860 .) ac_abs_builddir=`pwd`;;
20861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20862 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20863 esac;;
20864 esac
20865 case $ac_abs_builddir in
20866 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20868 case ${ac_top_builddir}. in
20869 .) ac_abs_top_builddir=$ac_abs_builddir;;
20870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20872 esac;;
20873 esac
20874 case $ac_abs_builddir in
20875 .) ac_abs_srcdir=$ac_srcdir;;
20877 case $ac_srcdir in
20878 .) ac_abs_srcdir=$ac_abs_builddir;;
20879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20881 esac;;
20882 esac
20883 case $ac_abs_builddir in
20884 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20886 case $ac_top_srcdir in
20887 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20890 esac;;
20891 esac
20894 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20895 echo "$as_me: executing $ac_dest commands" >&6;}
20896 case $ac_dest in
20897 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20898 # Strip MF so we end up with the name of the file.
20899 mf=`echo "$mf" | sed -e 's/:.*$//'`
20900 # Check whether this is an Automake generated Makefile or not.
20901 # We used to match only the files named `Makefile.in', but
20902 # some people rename them; so instead we look at the file content.
20903 # Grep'ing the first line is not enough: some people post-process
20904 # each Makefile.in and add a new line on top of each file to say so.
20905 # So let's grep whole file.
20906 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20907 dirpart=`(dirname "$mf") 2>/dev/null ||
20908 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909 X"$mf" : 'X\(//\)[^/]' \| \
20910 X"$mf" : 'X\(//\)$' \| \
20911 X"$mf" : 'X\(/\)' \| \
20912 . : '\(.\)' 2>/dev/null ||
20913 echo X"$mf" |
20914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916 /^X\(\/\/\)$/{ s//\1/; q; }
20917 /^X\(\/\).*/{ s//\1/; q; }
20918 s/.*/./; q'`
20919 else
20920 continue
20922 # Extract the definition of DEPDIR, am__include, and am__quote
20923 # from the Makefile without running `make'.
20924 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20925 test -z "$DEPDIR" && continue
20926 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20927 test -z "am__include" && continue
20928 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20929 # When using ansi2knr, U may be empty or an underscore; expand it
20930 U=`sed -n 's/^U = //p' < "$mf"`
20931 # Find all dependency output files, they are included files with
20932 # $(DEPDIR) in their names. We invoke sed twice because it is the
20933 # simplest approach to changing $(DEPDIR) to its actual value in the
20934 # expansion.
20935 for file in `sed -n "
20936 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20937 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20938 # Make sure the directory exists.
20939 test -f "$dirpart/$file" && continue
20940 fdir=`(dirname "$file") 2>/dev/null ||
20941 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942 X"$file" : 'X\(//\)[^/]' \| \
20943 X"$file" : 'X\(//\)$' \| \
20944 X"$file" : 'X\(/\)' \| \
20945 . : '\(.\)' 2>/dev/null ||
20946 echo X"$file" |
20947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20949 /^X\(\/\/\)$/{ s//\1/; q; }
20950 /^X\(\/\).*/{ s//\1/; q; }
20951 s/.*/./; q'`
20952 { if $as_mkdir_p; then
20953 mkdir -p $dirpart/$fdir
20954 else
20955 as_dir=$dirpart/$fdir
20956 as_dirs=
20957 while test ! -d "$as_dir"; do
20958 as_dirs="$as_dir $as_dirs"
20959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$as_dir" : 'X\(//\)[^/]' \| \
20962 X"$as_dir" : 'X\(//\)$' \| \
20963 X"$as_dir" : 'X\(/\)' \| \
20964 . : '\(.\)' 2>/dev/null ||
20965 echo X"$as_dir" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20968 /^X\(\/\/\)$/{ s//\1/; q; }
20969 /^X\(\/\).*/{ s//\1/; q; }
20970 s/.*/./; q'`
20971 done
20972 test ! -n "$as_dirs" || mkdir $as_dirs
20973 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20974 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20975 { (exit 1); exit 1; }; }; }
20977 # echo "creating $dirpart/$file"
20978 echo '# dummy' > "$dirpart/$file"
20979 done
20980 done
20982 default-1 )
20983 for ac_file in $CONFIG_FILES; do
20984 # Support "outfile[:infile[:infile...]]"
20985 case "$ac_file" in
20986 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20987 esac
20988 # PO directories have a Makefile.in generated from Makefile.in.in.
20989 case "$ac_file" in */Makefile.in)
20990 # Adjust a relative srcdir.
20991 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20992 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20993 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20994 # In autoconf-2.13 it is called $ac_given_srcdir.
20995 # In autoconf-2.50 it is called $srcdir.
20996 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20997 case "$ac_given_srcdir" in
20998 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20999 /*) top_srcdir="$ac_given_srcdir" ;;
21000 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21001 esac
21002 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21003 rm -f "$ac_dir/POTFILES"
21004 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21005 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21006 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21007 # on $ac_dir but don't depend on user-specified configuration
21008 # parameters.
21009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21010 # The LINGUAS file contains the set of available languages.
21011 if test -n "$ALL_LINGUAS"; then
21012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21014 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21015 # Hide the ALL_LINGUAS assigment from automake.
21016 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21018 case "$ac_given_srcdir" in
21019 .) srcdirpre= ;;
21020 *) srcdirpre='$(srcdir)/' ;;
21021 esac
21022 POFILES=
21023 GMOFILES=
21024 UPDATEPOFILES=
21025 DUMMYPOFILES=
21026 for lang in $ALL_LINGUAS; do
21027 POFILES="$POFILES $srcdirpre$lang.po"
21028 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21029 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21030 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21031 done
21032 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21033 # environment variable.
21034 INST_LINGUAS=
21035 if test -n "$ALL_LINGUAS"; then
21036 for presentlang in $ALL_LINGUAS; do
21037 useit=no
21038 if test "%UNSET%" != "$LINGUAS"; then
21039 desiredlanguages="$LINGUAS"
21040 else
21041 desiredlanguages="$ALL_LINGUAS"
21043 for desiredlang in $desiredlanguages; do
21044 # Use the presentlang catalog if desiredlang is
21045 # a. equal to presentlang, or
21046 # b. a variant of presentlang (because in this case,
21047 # presentlang can be used as a fallback for messages
21048 # which are not translated in the desiredlang catalog).
21049 case "$desiredlang" in
21050 "$presentlang"*) useit=yes;;
21051 esac
21052 done
21053 if test $useit = yes; then
21054 INST_LINGUAS="$INST_LINGUAS $presentlang"
21056 done
21058 CATALOGS=
21059 if test -n "$INST_LINGUAS"; then
21060 for lang in $INST_LINGUAS; do
21061 CATALOGS="$CATALOGS $lang.gmo"
21062 done
21064 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21065 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21066 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21067 if test -f "$f"; then
21068 case "$f" in
21069 *.orig | *.bak | *~) ;;
21070 *) cat "$f" >> "$ac_dir/Makefile" ;;
21071 esac
21073 done
21076 esac
21077 done ;;
21078 denoiser ) if test $denoiserlevel -gt 0; then
21079 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21080 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21081 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21082 for i in `find . -name 'Makefile' -print`; do
21083 if test -n "`head -n 1 $i | grep '^#'`"; then
21084 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21086 done
21087 fi ;;
21088 esac
21089 done
21090 _ACEOF
21092 cat >>$CONFIG_STATUS <<\_ACEOF
21094 { (exit 0); exit 0; }
21095 _ACEOF
21096 chmod +x $CONFIG_STATUS
21097 ac_clean_files=$ac_clean_files_save
21100 # configure is writing to config.log, and then calls config.status.
21101 # config.status does its own redirection, appending to config.log.
21102 # Unfortunately, on DOS this fails, as config.log is still kept open
21103 # by configure, so config.status won't be able to write to it; its
21104 # output is simply discarded. So we exec the FD to /dev/null,
21105 # effectively closing config.log, so it can be properly (re)opened and
21106 # appended to by config.status. When coming back to configure, we
21107 # need to make the FD available again.
21108 if test "$no_create" != yes; then
21109 ac_cs_success=:
21110 ac_config_status_args=
21111 test "$silent" = yes &&
21112 ac_config_status_args="$ac_config_status_args --quiet"
21113 exec 5>/dev/null
21114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21115 exec 5>>config.log
21116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21117 # would make configure fail if this is the last instruction.
21118 $ac_cs_success || { (exit 1); exit 1; }
21122 echo
21123 echo
21124 echo " Configure script has finished system check."
21125 echo
21126 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21127 echo
21128 echo " aMule enabled options:"
21129 echo
21130 echo " **** aMule Core ****"
21131 echo " Prefix where aMule should be installed? ${prefix:-none}"
21132 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21133 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21134 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21135 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21136 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21137 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21138 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21139 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21140 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21141 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21143 echo
21144 echo " **** aMule TextClient ****"
21145 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21146 echo
21147 echo " **** aMule WebServer ****"
21148 echo " Should aMule WebServer be built? ${WEB:-no}"
21149 echo
21150 echo " **** aMule ED2K Links Handler ****"
21151 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21152 echo
21153 echo " **** aMuleLinkCreator ****"
21154 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21155 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21156 echo
21157 echo " **** aMule Statistics ****"
21158 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21159 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21160 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21162 echo
21163 echo " **** General Libraries and Tools ****"
21164 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21165 echo " Libraries aMule will use to build:"
21166 wxinfo="$WX_PORT"
21167 if test $WX_DEBUG -eq 1; then
21168 wxinfo="$wxinfo,debug"
21171 if test $WX_SHARED -eq 1; then
21172 wxinfo="$wxinfo,shared"
21173 else
21174 wxinfo="$wxinfo,static"
21177 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21178 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21179 if test -n "$with_libupnp_prefix"; then
21180 libupnp_place=" (in $with_libupnp_prefix)"
21183 if test x${ENABLE_UPNP} = xyes; then
21184 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21187 if test x${WEB:-no} != xno; then
21188 if test $regex_found = no; then
21189 regex_found="Not detected"
21190 else
21191 if test -z "$REGEX_LIB"; then
21192 regex_found=system
21193 else
21194 regex_found="standalone (in $REGEX_LIB)"
21199 echo " regex $regex_found"
21201 if test ${enable_nls:-yes} = yes; then
21202 if test x$USE_NLS = xno; then
21203 libintl_found="Not detected"
21204 else
21205 if test x$USE_INCLUDED_LIBINTL = xyes; then
21206 libintl_found="included"
21207 else
21208 libintl_found="system"
21213 echo " libintl $libintl_found"
21215 if test x$LIBPNG_VERSION != xnot_needed; then
21216 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21218 if test x$GDLIB_VERSION != xnot_needed; then
21219 echo " libgd ${GDLIB_VERSION:-Not detected}"
21221 echo " zlib ${ZLIB_VERSION:-Not detected}"
21222 if test x$WEB = xdisabled; then
21223 echo ""
21224 echo ""
21225 echo "WARNING! amuleweb has been disabled because configure could not find"
21226 echo "a POSIX compliant regex library."
21227 echo ""
21229 if test -z "$LIBPNG_VERSION"; then
21230 echo ""
21231 echo ""
21232 echo "WARNING! libpng >= 1.2.0 not found."
21233 echo "amuleweb will be compiled but file download progress bar images will NOT be generated."
21234 echo ""
21236 if test x$ENABLE_UPNP = xdisabled; then
21237 echo ""
21238 echo ""
21239 echo "WARNING! UPnP code has been disabled because ${libupnp_error}."
21240 echo ""