Upstream tarball 9892
[amule.git] / configure
blob6e048a485e1ccf1622752d4fb2ab37f409ce114a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB 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 LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
795 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
806 cat <<_ACEOF
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
816 Configuration:
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 System types:
866 --build=BUILD configure for building on BUILD [guessed]
867 --host=HOST cross-compile to build programs to run on HOST [BUILD]
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of aMule SVN:";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --disable-upnp do not compile UPnP code
895 --enable-xas install xas XChat2 plugin
896 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
897 --enable-geoip compile with GeoIP IP2Country library
898 --enable-mmap enable using mapped memory if supported
899 --disable-rpath do not hardcode runtime library paths
900 --disable-nls do not use Native Language Support
901 --disable-debug disable additional debugging output
902 --enable-optimize enable code optimization
903 --enable-profile enable code profiling
904 --enable-static produce a statically linked executable
905 --enable-ccache enable ccache support for fast recompilation
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --without-gnu-malloc Don't assume that we use GNU libc compatible
911 malloc/realloc when cross-compiling
912 --with-zlib=PREFIX use zlib in PREFIX
913 --with-gdlib-prefix=PREFIX
914 prefix where gdlib is installed (optional)
915 --with-gdlib-config=CONFIG
916 gdlib-config script to use (optional)
917 --with-libpng-prefix=PREFIX
918 prefix where libpng is installed (optional)
919 --with-libpng-config=CONFIG
920 libpng-config script to use (optional)
921 --with-geoip-headers=DIR
922 GeoIP include files location
923 --with-geoip-lib=DIR GeoIP library location
924 --with-geoip-static Explicitly link GeoIP statically (default=no)
925 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
926 --with-wx-config=CONFIG wx-config script to use (optional)
927 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
928 --with-wx-exec-prefix=PREFIX
929 Exec prefix where wxWidgets is installed (optional)
930 --with-toolkit Build against a specific wxWidgets toolkit (default
931 is auto)
932 --with-wxshared Force building against a shared build of wxWidgets,
933 even if --disable-shared is given (default is auto)
934 --with-wxdebug Force building against a debug build of wxWidgets,
935 even if --disable-debug is given (default is auto)
936 --with-wxversion Build against a specific version of wxWidgets
937 (default is auto)
938 --with-libupnp-prefix=PREFIX
939 UPnP library location
940 --with-crypto-prefix=PREFIX
941 prefix where crypto++ is installed
942 --with-language=<langs> Specify a comma-separated list of languages you want
943 to have installed. See po/LINGUAS for available
944 languages
945 --with-gnu-ld assume the C compiler uses GNU ld default=no
946 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
947 --without-libiconv-prefix don't search for libiconv in includedir and libdir
948 --with-included-gettext use the GNU gettext library included here
949 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
950 --without-libintl-prefix don't search for libintl in includedir and libdir
951 --with-denoise-level=<level>
952 Specifies denoising level (0-4):
953 0 - Do nothing
954 4 - Suppress all normal output
955 (for more information see
956 src/utils/scripts/denoiser.rules)
958 --with-ccache-prefix=PREFIX
959 prefix where ccache is installed
961 Some influential environment variables:
962 CXX C++ compiler command
963 CXXFLAGS C++ compiler flags
964 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
965 nonstandard directory <lib dir>
966 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
967 headers in a nonstandard directory <include dir>
968 CXXCPP C++ preprocessor
969 CC C compiler command
970 CFLAGS C compiler flags
971 CPP C preprocessor
972 RC Resource Compiler
973 RCFLAGS Resource Compiler Flags
974 PKG_CONFIG path to pkg-config utility
976 Use these variables to override the choices made by `configure' or to help
977 it to find libraries and programs with nonstandard names/locations.
979 Report bugs to <admin@amule.org>.
980 _ACEOF
983 if test "$ac_init_help" = "recursive"; then
984 # If there are subdirs, report their specific --help.
985 ac_popdir=`pwd`
986 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
987 test -d $ac_dir || continue
988 ac_builddir=.
990 if test "$ac_dir" != .; then
991 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
992 # A "../" for each directory in $ac_dir_suffix.
993 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
994 else
995 ac_dir_suffix= ac_top_builddir=
998 case $srcdir in
999 .) # No --srcdir option. We are building in place.
1000 ac_srcdir=.
1001 if test -z "$ac_top_builddir"; then
1002 ac_top_srcdir=.
1003 else
1004 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1005 fi ;;
1006 [\\/]* | ?:[\\/]* ) # Absolute path.
1007 ac_srcdir=$srcdir$ac_dir_suffix;
1008 ac_top_srcdir=$srcdir ;;
1009 *) # Relative path.
1010 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1011 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1012 esac
1014 # Do not use `cd foo && pwd` to compute absolute paths, because
1015 # the directories may not exist.
1016 case `pwd` in
1017 .) ac_abs_builddir="$ac_dir";;
1019 case "$ac_dir" in
1020 .) ac_abs_builddir=`pwd`;;
1021 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1022 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1023 esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1028 case ${ac_top_builddir}. in
1029 .) ac_abs_top_builddir=$ac_abs_builddir;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1032 esac;;
1033 esac
1034 case $ac_abs_builddir in
1035 .) ac_abs_srcdir=$ac_srcdir;;
1037 case $ac_srcdir in
1038 .) ac_abs_srcdir=$ac_abs_builddir;;
1039 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1040 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1041 esac;;
1042 esac
1043 case $ac_abs_builddir in
1044 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1046 case $ac_top_srcdir in
1047 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1048 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1050 esac;;
1051 esac
1053 cd $ac_dir
1054 # Check for guested configure; otherwise get Cygnus style configure.
1055 if test -f $ac_srcdir/configure.gnu; then
1056 echo
1057 $SHELL $ac_srcdir/configure.gnu --help=recursive
1058 elif test -f $ac_srcdir/configure; then
1059 echo
1060 $SHELL $ac_srcdir/configure --help=recursive
1061 elif test -f $ac_srcdir/configure.ac ||
1062 test -f $ac_srcdir/configure.in; then
1063 echo
1064 $ac_configure --help
1065 else
1066 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1068 cd $ac_popdir
1069 done
1072 test -n "$ac_init_help" && exit 0
1073 if $ac_init_version; then
1074 cat <<\_ACEOF
1075 aMule configure SVN
1076 generated by GNU Autoconf 2.59
1078 Copyright (C) 2003 Free Software Foundation, Inc.
1079 This configure script is free software; the Free Software Foundation
1080 gives unlimited permission to copy, distribute and modify it.
1081 _ACEOF
1082 exit 0
1084 exec 5>config.log
1085 cat >&5 <<_ACEOF
1086 This file contains any messages produced by compilers while
1087 running configure, to aid debugging if configure makes a mistake.
1089 It was created by aMule $as_me SVN, which was
1090 generated by GNU Autoconf 2.59. Invocation command line was
1092 $ $0 $@
1094 _ACEOF
1096 cat <<_ASUNAME
1097 ## --------- ##
1098 ## Platform. ##
1099 ## --------- ##
1101 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1102 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1103 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1104 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1105 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1107 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1108 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1110 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1111 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1112 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1113 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1114 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1115 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1116 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1118 _ASUNAME
1120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1121 for as_dir in $PATH
1123 IFS=$as_save_IFS
1124 test -z "$as_dir" && as_dir=.
1125 echo "PATH: $as_dir"
1126 done
1128 } >&5
1130 cat >&5 <<_ACEOF
1133 ## ----------- ##
1134 ## Core tests. ##
1135 ## ----------- ##
1137 _ACEOF
1140 # Keep a trace of the command line.
1141 # Strip out --no-create and --no-recursion so they do not pile up.
1142 # Strip out --silent because we don't want to record it for future runs.
1143 # Also quote any args containing shell meta-characters.
1144 # Make two passes to allow for proper duplicate-argument suppression.
1145 ac_configure_args=
1146 ac_configure_args0=
1147 ac_configure_args1=
1148 ac_sep=
1149 ac_must_keep_next=false
1150 for ac_pass in 1 2
1152 for ac_arg
1154 case $ac_arg in
1155 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 continue ;;
1159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1161 esac
1162 case $ac_pass in
1163 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1165 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1166 if test $ac_must_keep_next = true; then
1167 ac_must_keep_next=false # Got value, back to normal.
1168 else
1169 case $ac_arg in
1170 *=* | --config-cache | -C | -disable-* | --disable-* \
1171 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1172 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1173 | -with-* | --with-* | -without-* | --without-* | --x)
1174 case "$ac_configure_args0 " in
1175 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1176 esac
1178 -* ) ac_must_keep_next=true ;;
1179 esac
1181 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1182 # Get rid of the leading space.
1183 ac_sep=" "
1185 esac
1186 done
1187 done
1188 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1189 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1191 # When interrupted or exit'd, cleanup temporary files, and complete
1192 # config.log. We remove comments because anyway the quotes in there
1193 # would cause problems or look ugly.
1194 # WARNING: Be sure not to use single quotes in there, as some shells,
1195 # such as our DU 5.0 friend, will then `close' the trap.
1196 trap 'exit_status=$?
1197 # Save into config.log some information that might help in debugging.
1199 echo
1201 cat <<\_ASBOX
1202 ## ---------------- ##
1203 ## Cache variables. ##
1204 ## ---------------- ##
1205 _ASBOX
1206 echo
1207 # The following way of writing the cache mishandles newlines in values,
1209 (set) 2>&1 |
1210 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1211 *ac_space=\ *)
1212 sed -n \
1213 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217 sed -n \
1218 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1220 esac;
1222 echo
1224 cat <<\_ASBOX
1225 ## ----------------- ##
1226 ## Output variables. ##
1227 ## ----------------- ##
1228 _ASBOX
1229 echo
1230 for ac_var in $ac_subst_vars
1232 eval ac_val=$`echo $ac_var`
1233 echo "$ac_var='"'"'$ac_val'"'"'"
1234 done | sort
1235 echo
1237 if test -n "$ac_subst_files"; then
1238 cat <<\_ASBOX
1239 ## ------------- ##
1240 ## Output files. ##
1241 ## ------------- ##
1242 _ASBOX
1243 echo
1244 for ac_var in $ac_subst_files
1246 eval ac_val=$`echo $ac_var`
1247 echo "$ac_var='"'"'$ac_val'"'"'"
1248 done | sort
1249 echo
1252 if test -s confdefs.h; then
1253 cat <<\_ASBOX
1254 ## ----------- ##
1255 ## confdefs.h. ##
1256 ## ----------- ##
1257 _ASBOX
1258 echo
1259 sed "/^$/d" confdefs.h | sort
1260 echo
1262 test "$ac_signal" != 0 &&
1263 echo "$as_me: caught signal $ac_signal"
1264 echo "$as_me: exit $exit_status"
1265 } >&5
1266 rm -f core *.core &&
1267 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1268 exit $exit_status
1270 for ac_signal in 1 2 13 15; do
1271 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1272 done
1273 ac_signal=0
1275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1276 rm -rf conftest* confdefs.h
1277 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1278 echo >confdefs.h
1280 # Predefined preprocessor variables.
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_NAME "$PACKAGE_NAME"
1284 _ACEOF
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1294 _ACEOF
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_STRING "$PACKAGE_STRING"
1299 _ACEOF
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1304 _ACEOF
1307 # Let the site file select an alternate cache file if it wants to.
1308 # Prefer explicitly selected file to automatically selected ones.
1309 if test -z "$CONFIG_SITE"; then
1310 if test "x$prefix" != xNONE; then
1311 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1312 else
1313 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1316 for ac_site_file in $CONFIG_SITE; do
1317 if test -r "$ac_site_file"; then
1318 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1319 echo "$as_me: loading site script $ac_site_file" >&6;}
1320 sed 's/^/| /' "$ac_site_file" >&5
1321 . "$ac_site_file"
1323 done
1325 if test -r "$cache_file"; then
1326 # Some versions of bash will fail to source /dev/null (special
1327 # files actually), so we avoid doing that.
1328 if test -f "$cache_file"; then
1329 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1330 echo "$as_me: loading cache $cache_file" >&6;}
1331 case $cache_file in
1332 [\\/]* | ?:[\\/]* ) . $cache_file;;
1333 *) . ./$cache_file;;
1334 esac
1336 else
1337 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1338 echo "$as_me: creating cache $cache_file" >&6;}
1339 >$cache_file
1342 # Check that the precious variables saved in the cache have kept the same
1343 # value.
1344 ac_cache_corrupted=false
1345 for ac_var in `(set) 2>&1 |
1346 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1348 eval ac_new_set=\$ac_env_${ac_var}_set
1349 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1350 eval ac_new_val="\$ac_env_${ac_var}_value"
1351 case $ac_old_set,$ac_new_set in
1352 set,)
1353 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1354 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1355 ac_cache_corrupted=: ;;
1356 ,set)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,);;
1362 if test "x$ac_old_val" != "x$ac_new_val"; then
1363 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1364 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1365 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1366 echo "$as_me: former value: $ac_old_val" >&2;}
1367 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1368 echo "$as_me: current value: $ac_new_val" >&2;}
1369 ac_cache_corrupted=:
1370 fi;;
1371 esac
1372 # Pass precious variables to config.status.
1373 if test "$ac_new_set" = set; then
1374 case $ac_new_val in
1375 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1376 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1377 *) ac_arg=$ac_var=$ac_new_val ;;
1378 esac
1379 case " $ac_configure_args " in
1380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1381 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1382 esac
1384 done
1385 if $ac_cache_corrupted; then
1386 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1387 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1388 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1389 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1390 { (exit 1); exit 1; }; }
1393 ac_ext=c
1394 ac_cpp='$CPP $CPPFLAGS'
1395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1425 am__api_version="1.9"
1426 ac_aux_dir=
1427 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1428 if test -f $ac_dir/install-sh; then
1429 ac_aux_dir=$ac_dir
1430 ac_install_sh="$ac_aux_dir/install-sh -c"
1431 break
1432 elif test -f $ac_dir/install.sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install.sh -c"
1435 break
1436 elif test -f $ac_dir/shtool; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/shtool install -c"
1439 break
1441 done
1442 if test -z "$ac_aux_dir"; then
1443 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1444 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1445 { (exit 1); exit 1; }; }
1447 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1448 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1449 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1451 # Find a good install program. We prefer a C program (faster),
1452 # so one script is as good as another. But avoid the broken or
1453 # incompatible versions:
1454 # SysV /etc/install, /usr/sbin/install
1455 # SunOS /usr/etc/install
1456 # IRIX /sbin/install
1457 # AIX /bin/install
1458 # AmigaOS /C/install, which installs bootblocks on floppy discs
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # OS/2's system install, which has a completely different semantic
1463 # ./install, which can be erroneously created by make from ./install.sh.
1464 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1465 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1466 if test -z "$INSTALL"; then
1467 if test "${ac_cv_path_install+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 # Account for people who put trailing slashes in PATH elements.
1476 case $as_dir/ in
1477 ./ | .// | /cC/* | \
1478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1479 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1480 /usr/ucb/* ) ;;
1482 # OSF1 and SCO ODT 3.0 have their own names for install.
1483 # Don't use installbsd from OSF since it installs stuff as root
1484 # by default.
1485 for ac_prog in ginstall scoinst install; do
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1488 if test $ac_prog = install &&
1489 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1490 # AIX install. It has an incompatible calling convention.
1492 elif test $ac_prog = install &&
1493 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # program-specific install script used by HP pwplus--don't use.
1496 else
1497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1498 break 3
1501 done
1502 done
1504 esac
1505 done
1509 if test "${ac_cv_path_install+set}" = set; then
1510 INSTALL=$ac_cv_path_install
1511 else
1512 # As a last resort, use the slow shell script. We don't cache a
1513 # path for INSTALL within a source directory, because that will
1514 # break other packages using the cache if that directory is
1515 # removed, or if the path is relative.
1516 INSTALL=$ac_install_sh
1519 echo "$as_me:$LINENO: result: $INSTALL" >&5
1520 echo "${ECHO_T}$INSTALL" >&6
1522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1523 # It thinks the first close brace ends the variable substitution.
1524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1530 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1531 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1532 # Just in case
1533 sleep 1
1534 echo timestamp > conftest.file
1535 # Do `set' in a subshell so we don't clobber the current shell's
1536 # arguments. Must try -L first in case configure is actually a
1537 # symlink; some systems play weird games with the mod time of symlinks
1538 # (eg FreeBSD returns the mod time of the symlink's containing
1539 # directory).
1540 if (
1541 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1542 if test "$*" = "X"; then
1543 # -L didn't work.
1544 set X `ls -t $srcdir/configure conftest.file`
1546 rm -f conftest.file
1547 if test "$*" != "X $srcdir/configure conftest.file" \
1548 && test "$*" != "X conftest.file $srcdir/configure"; then
1550 # If neither matched, then we have a broken ls. This can happen
1551 # if, for instance, CONFIG_SHELL is bash and it inherits a
1552 # broken ls alias from the environment. This has actually
1553 # happened. Such a system could not be considered "sane".
1554 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1555 alias in your environment" >&5
1556 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1557 alias in your environment" >&2;}
1558 { (exit 1); exit 1; }; }
1561 test "$2" = conftest.file
1563 then
1564 # Ok.
1566 else
1567 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1568 Check your system clock" >&5
1569 echo "$as_me: error: newly created file is older than distributed files!
1570 Check your system clock" >&2;}
1571 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1575 test "$program_prefix" != NONE &&
1576 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1577 # Use a double $ so make ignores it.
1578 test "$program_suffix" != NONE &&
1579 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1580 # Double any \ or $. echo might interpret backslashes.
1581 # By default was `s,x,x', remove it if useless.
1582 cat <<\_ACEOF >conftest.sed
1583 s/[\\$]/&&/g;s/;s,x,x,$//
1584 _ACEOF
1585 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1586 rm conftest.sed
1588 # expand $ac_aux_dir to an absolute path
1589 am_aux_dir=`cd $ac_aux_dir && pwd`
1591 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1592 # Use eval to expand $SHELL
1593 if eval "$MISSING --run true"; then
1594 am_missing_run="$MISSING --run "
1595 else
1596 am_missing_run=
1597 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1598 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1601 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1602 # We used to keeping the `.' as first argument, in order to
1603 # allow $(mkdir_p) to be used without argument. As in
1604 # $(mkdir_p) $(somedir)
1605 # where $(somedir) is conditionally defined. However this is wrong
1606 # for two reasons:
1607 # 1. if the package is installed by a user who cannot write `.'
1608 # make install will fail,
1609 # 2. the above comment should most certainly read
1610 # $(mkdir_p) $(DESTDIR)$(somedir)
1611 # so it does not work when $(somedir) is undefined and
1612 # $(DESTDIR) is not.
1613 # To support the latter case, we have to write
1614 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1615 # so the `.' trick is pointless.
1616 mkdir_p='mkdir -p --'
1617 else
1618 # On NextStep and OpenStep, the `mkdir' command does not
1619 # recognize any option. It will interpret all options as
1620 # directories to create, and then abort because `.' already
1621 # exists.
1622 for d in ./-p ./--version;
1624 test -d $d && rmdir $d
1625 done
1626 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1627 if test -f "$ac_aux_dir/mkinstalldirs"; then
1628 mkdir_p='$(mkinstalldirs)'
1629 else
1630 mkdir_p='$(install_sh) -d'
1634 for ac_prog in gawk mawk nawk awk
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_AWK+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$AWK"; then
1644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_AWK="$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1657 done
1658 done
1662 AWK=$ac_cv_prog_AWK
1663 if test -n "$AWK"; then
1664 echo "$as_me:$LINENO: result: $AWK" >&5
1665 echo "${ECHO_T}$AWK" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$AWK" && break
1672 done
1674 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1675 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1677 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 cat >conftest.make <<\_ACEOF
1681 all:
1682 @echo 'ac_maketemp="$(MAKE)"'
1683 _ACEOF
1684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1685 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1686 if test -n "$ac_maketemp"; then
1687 eval ac_cv_prog_make_${ac_make}_set=yes
1688 else
1689 eval ac_cv_prog_make_${ac_make}_set=no
1691 rm -f conftest.make
1693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1694 echo "$as_me:$LINENO: result: yes" >&5
1695 echo "${ECHO_T}yes" >&6
1696 SET_MAKE=
1697 else
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 SET_MAKE="MAKE=${MAKE-make}"
1703 rm -rf .tst 2>/dev/null
1704 mkdir .tst 2>/dev/null
1705 if test -d .tst; then
1706 am__leading_dot=.
1707 else
1708 am__leading_dot=_
1710 rmdir .tst 2>/dev/null
1712 # test to see if srcdir already configured
1713 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1714 test -f $srcdir/config.status; then
1715 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1716 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1717 { (exit 1); exit 1; }; }
1720 # test whether we have cygpath
1721 if test -z "$CYGPATH_W"; then
1722 if (cygpath --version) >/dev/null 2>/dev/null; then
1723 CYGPATH_W='cygpath -w'
1724 else
1725 CYGPATH_W=echo
1730 # Define the identity of the package.
1731 PACKAGE='amule'
1732 VERSION='SVN'
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE "$PACKAGE"
1737 _ACEOF
1740 cat >>confdefs.h <<_ACEOF
1741 #define VERSION "$VERSION"
1742 _ACEOF
1744 # Some tools Automake needs.
1746 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1749 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1752 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1755 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1758 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1760 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1762 # Installed binaries are usually stripped using `strip' when the user
1763 # run `make install-strip'. However `strip' might not be the right
1764 # tool to use in cross-compilation environments, therefore Automake
1765 # will honor the `STRIP' environment variable to overrule this program.
1766 if test "$cross_compiling" != no; then
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}strip; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_STRIP+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$STRIP"; then
1776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1789 done
1790 done
1794 STRIP=$ac_cv_prog_STRIP
1795 if test -n "$STRIP"; then
1796 echo "$as_me:$LINENO: result: $STRIP" >&5
1797 echo "${ECHO_T}$STRIP" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_STRIP"; then
1805 ac_ct_STRIP=$STRIP
1806 # Extract the first word of "strip", so it can be a program name with args.
1807 set dummy strip; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$ac_ct_STRIP"; then
1814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_STRIP="strip"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1827 done
1828 done
1830 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834 if test -n "$ac_ct_STRIP"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836 echo "${ECHO_T}$ac_ct_STRIP" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 STRIP=$ac_ct_STRIP
1843 else
1844 STRIP="$ac_cv_prog_STRIP"
1848 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1850 # We need awk for the "check" target. The system "awk" is bad on
1851 # some platforms.
1852 # Always define AMTAR for backward compatibility.
1854 AMTAR=${AMTAR-"${am_missing_run}tar"}
1856 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1864 ac_config_headers="$ac_config_headers config.h"
1866 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1867 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1868 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1869 if test "${enable_maintainer_mode+set}" = set; then
1870 enableval="$enable_maintainer_mode"
1871 USE_MAINTAINER_MODE=$enableval
1872 else
1873 USE_MAINTAINER_MODE=no
1875 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1876 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1879 if test $USE_MAINTAINER_MODE = yes; then
1880 MAINTAINER_MODE_TRUE=
1881 MAINTAINER_MODE_FALSE='#'
1882 else
1883 MAINTAINER_MODE_TRUE='#'
1884 MAINTAINER_MODE_FALSE=
1887 MAINT=$MAINTAINER_MODE_TRUE
1891 # Make sure we can run config.sub.
1892 $ac_config_sub sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1894 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 ac_cv_build_alias=$build_alias
1903 test -z "$ac_cv_build_alias" &&
1904 ac_cv_build_alias=`$ac_config_guess`
1905 test -z "$ac_cv_build_alias" &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1911 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6
1917 build=$ac_cv_build
1918 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1919 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1920 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1923 echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1925 if test "${ac_cv_host+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 ac_cv_host_alias=$host_alias
1929 test -z "$ac_cv_host_alias" &&
1930 ac_cv_host_alias=$ac_cv_build_alias
1931 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1933 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1938 echo "${ECHO_T}$ac_cv_host" >&6
1939 host=$ac_cv_host
1940 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1941 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1942 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1946 case "${host_os}" in
1947 darwin*)
1948 SYS=darwin
1949 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1950 MULELDFLAGS="-bind_at_load"
1951 touch src/Scanner.cpp
1953 openbsd*)
1954 SYS=openbsd
1955 LIBS="$LIBS -L/usr/local/lib"
1956 MULECPPFLAGS="-D__OPENBSD__"
1958 *cygwin* | *mingw32*)
1959 SYS=win32
1960 MULECPPFLAGS="-DNOMINMAX"
1962 solaris*)
1963 SYS=solaris
1964 RESOLV_LIB="-lresolv -lnsl"
1965 LIBS="$LIBS -lrt"
1967 *netbsd*)
1968 SYS=netbsd
1969 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1970 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1971 # Still, we prepend them, instead of adding, so the user may override them.
1972 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1973 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1975 *irix*)
1976 SYS=irix
1977 MULECPPFLAGS="-D__IRIX__"
1980 SYS=unknown
1982 esac
1984 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1985 if test ${SYS:-unknown} != win32; then
1987 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1988 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1989 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1991 MULELDFLAGS="$MULELDFLAGS -pthread"
1992 echo "$as_me:$LINENO: result: yes" >&5
1993 echo "${ECHO_T}yes" >&6
1995 else
1997 MULELDFLAGS="$MULELDFLAGS -lpthread"
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2009 mule_backup_CFLAGS="$CFLAGS"
2010 mule_backup_CXXFLAGS="$CXXFLAGS"
2011 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2012 ac_ext=cc
2013 ac_cpp='$CXXCPP $CPPFLAGS'
2014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CXX+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CXX"; then
2028 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2046 CXX=$ac_cv_prog_CXX
2047 if test -n "$CXX"; then
2048 echo "$as_me:$LINENO: result: $CXX" >&5
2049 echo "${ECHO_T}$CXX" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CXX" && break
2056 done
2058 if test -z "$CXX"; then
2059 ac_ct_CXX=$CXX
2060 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CXX"; then
2070 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CXX="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2089 if test -n "$ac_ct_CXX"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2091 echo "${ECHO_T}$ac_ct_CXX" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CXX" && break
2098 done
2099 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2101 CXX=$ac_ct_CXX
2105 # Provide some information about the compiler.
2106 echo "$as_me:$LINENO:" \
2107 "checking for C++ compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110 (eval $ac_compiler --version </dev/null >&5) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115 (eval $ac_compiler -v </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120 (eval $ac_compiler -V </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2144 # of exeext.
2145 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2146 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149 (eval $ac_link_default) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Find the output, starting from the most likely. This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # resort.
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2159 ac_cv_exeext=
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2163 test -f "$ac_file" || continue
2164 case $ac_file in
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2167 conftest.$ac_ext )
2168 # This is the source file.
2170 [ab].out )
2171 # We found the default executable, but exeext='' is most
2172 # certainly right.
2173 break;;
2174 *.* )
2175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # FIXME: I believe we export ac_cv_exeext for Libtool,
2177 # but it would be cool to find out if it's true. Does anybody
2178 # maintain Libtool? --akim.
2179 export ac_cv_exeext
2180 break;;
2182 break;;
2183 esac
2184 done
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C++ compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2200 # Check the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2203 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 cross_compiling=no
2214 else
2215 if test "$cross_compiling" = maybe; then
2216 cross_compiling=yes
2217 else
2218 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C++ compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243 (eval $ac_link) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2250 # `rm'.
2251 for ac_file in conftest.exe conftest conftest.*; do
2252 test -f "$ac_file" || continue
2253 case $ac_file in
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256 export ac_cv_exeext
2257 break;;
2258 * ) break;;
2259 esac
2260 done
2261 else
2262 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2275 ac_exeext=$EXEEXT
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2289 main ()
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.o conftest.obj
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; then
2302 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2303 case $ac_file in
2304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2306 break;;
2307 esac
2308 done
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2323 echo "${ECHO_T}$ac_cv_objext" >&6
2324 OBJEXT=$ac_cv_objext
2325 ac_objext=$OBJEXT
2326 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2327 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2328 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h. */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2339 main ()
2341 #ifndef __GNUC__
2342 choke me
2343 #endif
2346 return 0;
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_cxx_werror_flag"
2359 || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_compiler_gnu=yes
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_compiler_gnu=no
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2384 GXX=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CXXFLAGS=${CXXFLAGS+set}
2386 ac_save_CXXFLAGS=$CXXFLAGS
2387 CXXFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2389 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cxx_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h. */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2401 main ()
2405 return 0;
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_cxx_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 ac_cv_prog_cxx_g=yes
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 ac_cv_prog_cxx_g=no
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2441 if test "$ac_test_CXXFLAGS" = set; then
2442 CXXFLAGS=$ac_save_CXXFLAGS
2443 elif test $ac_cv_prog_cxx_g = yes; then
2444 if test "$GXX" = yes; then
2445 CXXFLAGS="-g -O2"
2446 else
2447 CXXFLAGS="-g"
2449 else
2450 if test "$GXX" = yes; then
2451 CXXFLAGS="-O2"
2452 else
2453 CXXFLAGS=
2456 for ac_declaration in \
2457 '' \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2462 'void exit (int);'
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470 $ac_declaration
2471 #include <stdlib.h>
2473 main ()
2475 exit (42);
2477 return 0;
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2483 ac_status=$?
2484 grep -v '^ *+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_cxx_werror_flag"
2490 || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 continue
2509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516 $ac_declaration
2518 main ()
2520 exit (42);
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_cxx_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 break
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567 DEPDIR="${am__leading_dot}deps"
2569 ac_config_commands="$ac_config_commands depfiles"
2572 am_make=${MAKE-make}
2573 cat > confinc << 'END'
2574 am__doit:
2575 @echo done
2576 .PHONY: am__doit
2578 # If we don't find an include directive, just comment out the code.
2579 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2580 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2581 am__include="#"
2582 am__quote=
2583 _am_result=none
2584 # First try GNU make style include.
2585 echo "include confinc" > confmf
2586 # We grep out `Entering directory' and `Leaving directory'
2587 # messages which can occur if `w' ends up in MAKEFLAGS.
2588 # In particular we don't look at `^make:' because GNU make might
2589 # be invoked under some other name (usually "gmake"), in which
2590 # case it prints its new name instead of `make'.
2591 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2592 am__include=include
2593 am__quote=
2594 _am_result=GNU
2596 # Now try BSD make style include.
2597 if test "$am__include" = "#"; then
2598 echo '.include "confinc"' > confmf
2599 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2600 am__include=.include
2601 am__quote="\""
2602 _am_result=BSD
2607 echo "$as_me:$LINENO: result: $_am_result" >&5
2608 echo "${ECHO_T}$_am_result" >&6
2609 rm -f confinc confmf
2611 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2612 if test "${enable_dependency_tracking+set}" = set; then
2613 enableval="$enable_dependency_tracking"
2616 if test "x$enable_dependency_tracking" != xno; then
2617 am_depcomp="$ac_aux_dir/depcomp"
2618 AMDEPBACKSLASH='\'
2622 if test "x$enable_dependency_tracking" != xno; then
2623 AMDEP_TRUE=
2624 AMDEP_FALSE='#'
2625 else
2626 AMDEP_TRUE='#'
2627 AMDEP_FALSE=
2633 depcc="$CXX" am_compiler_list=
2635 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2636 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2637 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2641 # We make a subdir and do the tests there. Otherwise we can end up
2642 # making bogus files that we don't know about and never remove. For
2643 # instance it was reported that on HP-UX the gcc test will end up
2644 # making a dummy file named `D' -- because `-MD' means `put the output
2645 # in D'.
2646 mkdir conftest.dir
2647 # Copy depcomp to subdir because otherwise we won't find it if we're
2648 # using a relative directory.
2649 cp "$am_depcomp" conftest.dir
2650 cd conftest.dir
2651 # We will build objects and dependencies in a subdirectory because
2652 # it helps to detect inapplicable dependency modes. For instance
2653 # both Tru64's cc and ICC support -MD to output dependencies as a
2654 # side effect of compilation, but ICC will put the dependencies in
2655 # the current directory while Tru64 will put them in the object
2656 # directory.
2657 mkdir sub
2659 am_cv_CXX_dependencies_compiler_type=none
2660 if test "$am_compiler_list" = ""; then
2661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2663 for depmode in $am_compiler_list; do
2664 # Setup a source with many dependencies, because some compilers
2665 # like to wrap large dependency lists on column 80 (with \), and
2666 # we should not choose a depcomp mode which is confused by this.
2668 # We need to recreate these files for each test, as the compiler may
2669 # overwrite some of them when testing with obscure command lines.
2670 # This happens at least with the AIX C compiler.
2671 : > sub/conftest.c
2672 for i in 1 2 3 4 5 6; do
2673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2675 # Solaris 8's {/usr,}/bin/sh.
2676 touch sub/conftst$i.h
2677 done
2678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2680 case $depmode in
2681 nosideeffect)
2682 # after this tag, mechanisms are not by side-effect, so they'll
2683 # only be used when explicitly requested
2684 if test "x$enable_dependency_tracking" = xyes; then
2685 continue
2686 else
2687 break
2690 none) break ;;
2691 esac
2692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2693 # mode. It turns out that the SunPro C++ compiler does not properly
2694 # handle `-M -o', and we need to detect this.
2695 if depmode=$depmode \
2696 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2698 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2699 >/dev/null 2>conftest.err &&
2700 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2701 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2702 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2703 # icc doesn't choke on unknown options, it will just issue warnings
2704 # or remarks (even with -Werror). So we grep stderr for any message
2705 # that says an option was ignored or not supported.
2706 # When given -MP, icc 7.0 and 7.1 complain thusly:
2707 # icc: Command line warning: ignoring option '-M'; no argument required
2708 # The diagnosis changed in icc 8.0:
2709 # icc: Command line remark: option '-MP' not supported
2710 if (grep 'ignoring option' conftest.err ||
2711 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2712 am_cv_CXX_dependencies_compiler_type=$depmode
2713 break
2716 done
2718 cd ..
2719 rm -rf conftest.dir
2720 else
2721 am_cv_CXX_dependencies_compiler_type=none
2725 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2726 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2727 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2732 test "x$enable_dependency_tracking" != xno \
2733 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2734 am__fastdepCXX_TRUE=
2735 am__fastdepCXX_FALSE='#'
2736 else
2737 am__fastdepCXX_TRUE='#'
2738 am__fastdepCXX_FALSE=
2742 ac_ext=cc
2743 ac_cpp='$CXXCPP $CPPFLAGS'
2744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2747 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2748 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2749 if test -z "$CXXCPP"; then
2750 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 # Double quotes because CXXCPP needs to be expanded
2754 for CXXCPP in "$CXX -E" "/lib/cpp"
2756 ac_preproc_ok=false
2757 for ac_cxx_preproc_warn_flag in '' yes
2759 # Use a header file that comes with gcc, so configuring glibc
2760 # with a fresh cross-compiler works.
2761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762 # <limits.h> exists even on freestanding compilers.
2763 # On the NeXT, cc -E runs the code through the compiler's parser,
2764 # not just through cpp. "Syntax error" is here to catch this case.
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #ifdef __STDC__
2772 # include <limits.h>
2773 #else
2774 # include <assert.h>
2775 #endif
2776 Syntax error
2777 _ACEOF
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev/null; then
2786 if test -s conftest.err; then
2787 ac_cpp_err=$ac_cxx_preproc_warn_flag
2788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2789 else
2790 ac_cpp_err=
2792 else
2793 ac_cpp_err=yes
2795 if test -z "$ac_cpp_err"; then
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 # Broken: fails on valid input.
2802 continue
2804 rm -f conftest.err conftest.$ac_ext
2806 # OK, works on sane cases. Now check whether non-existent headers
2807 # can be detected and how.
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 #include <ac_nonexistent.h>
2815 _ACEOF
2816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null; then
2824 if test -s conftest.err; then
2825 ac_cpp_err=$ac_cxx_preproc_warn_flag
2826 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2827 else
2828 ac_cpp_err=
2830 else
2831 ac_cpp_err=yes
2833 if test -z "$ac_cpp_err"; then
2834 # Broken: success on invalid input.
2835 continue
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 # Passes both tests.
2841 ac_preproc_ok=:
2842 break
2844 rm -f conftest.err conftest.$ac_ext
2846 done
2847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2848 rm -f conftest.err conftest.$ac_ext
2849 if $ac_preproc_ok; then
2850 break
2853 done
2854 ac_cv_prog_CXXCPP=$CXXCPP
2857 CXXCPP=$ac_cv_prog_CXXCPP
2858 else
2859 ac_cv_prog_CXXCPP=$CXXCPP
2861 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2862 echo "${ECHO_T}$CXXCPP" >&6
2863 ac_preproc_ok=false
2864 for ac_cxx_preproc_warn_flag in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883 Syntax error
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_cxx_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2896 else
2897 ac_cpp_err=
2899 else
2900 ac_cpp_err=yes
2902 if test -z "$ac_cpp_err"; then
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2909 continue
2911 rm -f conftest.err conftest.$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_cxx_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2942 continue
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 # Passes both tests.
2948 ac_preproc_ok=:
2949 break
2951 rm -f conftest.err conftest.$ac_ext
2953 done
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2958 else
2959 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3014 if test -z "$ac_cv_prog_CC"; then
3015 ac_ct_CC=$CC
3016 # Extract the first word of "gcc", so it can be a program name with args.
3017 set dummy gcc; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_CC="gcc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3045 echo "${ECHO_T}$ac_ct_CC" >&6
3046 else
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3051 CC=$ac_ct_CC
3052 else
3053 CC="$ac_cv_prog_CC"
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_CC+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_CC="${ac_tool_prefix}cc"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 echo "$as_me:$LINENO: result: $CC" >&5
3087 echo "${ECHO_T}$CC" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3094 if test -z "$ac_cv_prog_CC"; then
3095 ac_ct_CC=$CC
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_ac_ct_CC="cc"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125 echo "${ECHO_T}$ac_ct_CC" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3131 CC=$ac_ct_CC
3132 else
3133 CC="$ac_cv_prog_CC"
3137 if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139 set dummy cc; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 ac_prog_rejected=no
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157 ac_prog_rejected=yes
3158 continue
3160 ac_cv_prog_CC="cc"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 echo "$as_me:$LINENO: result: $CC" >&5
3184 echo "${ECHO_T}$CC" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog in cl
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 echo "$as_me:$LINENO: result: $CC" >&5
3224 echo "${ECHO_T}$CC" >&6
3225 else
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3230 test -n "$CC" && break
3231 done
3233 if test -z "$CC"; then
3234 ac_ct_CC=$CC
3235 for ac_prog in cl
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3266 echo "${ECHO_T}$ac_ct_CC" >&6
3267 else
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3272 test -n "$ac_ct_CC" && break
3273 done
3275 CC=$ac_ct_CC
3281 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: no acceptable C compiler found in \$PATH
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3287 # Provide some information about the compiler.
3288 echo "$as_me:$LINENO:" \
3289 "checking for C compiler version" >&5
3290 ac_compiler=`set X $ac_compile; echo $2`
3291 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3292 (eval $ac_compiler --version </dev/null >&5) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3297 (eval $ac_compiler -v </dev/null >&5) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }
3301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3302 (eval $ac_compiler -V </dev/null >&5) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }
3307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag"
3340 || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_compiler_gnu=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_compiler_gnu=no
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 CFLAGS="-g"
3369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 main ()
3386 return 0;
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_prog_cc_g=yes
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 ac_cv_prog_cc_g=no
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 ac_cv_prog_cc_stdc=no
3443 ac_save_CC=$CC
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3458 char **p;
3459 int i;
3461 return p[i];
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std1 is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std1. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3489 main ()
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 return 0;
3495 _ACEOF
3496 # Don't try gcc -ansi; that turns off useful extensions and
3497 # breaks some systems' header files.
3498 # AIX -qlanglvl=ansi
3499 # Ultrix and OSF/1 -std1
3500 # HP-UX 10.20 and later -Ae
3501 # HP-UX older versions -Aa -D_HPUX_SOURCE
3502 # SVR4 -Xc -D__EXTENSIONS__
3503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3505 CC="$ac_save_CC $ac_arg"
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_cc_stdc=$ac_arg
3529 break
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 rm -f conftest.err conftest.$ac_objext
3536 done
3537 rm -f conftest.$ac_ext conftest.$ac_objext
3538 CC=$ac_save_CC
3542 case "x$ac_cv_prog_cc_stdc" in
3543 x|xno)
3544 echo "$as_me:$LINENO: result: none needed" >&5
3545 echo "${ECHO_T}none needed" >&6 ;;
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3549 CC="$CC $ac_cv_prog_cc_stdc" ;;
3550 esac
3552 # Some people use a C++ compiler to compile C. Since we use `exit',
3553 # in C++ we need to declare it. In case someone uses the same compiler
3554 # for both compiling C and C++ we need to have the C++ compiler decide
3555 # the declaration of exit, since it's the most demanding environment.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #ifndef __cplusplus
3558 choke me
3559 #endif
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 for ac_declaration in \
3584 '' \
3585 'extern "C" void std::exit (int) throw (); using std::exit;' \
3586 'extern "C" void std::exit (int); using std::exit;' \
3587 'extern "C" void exit (int) throw ();' \
3588 'extern "C" void exit (int);' \
3589 'void exit (int);'
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 $ac_declaration
3598 #include <stdlib.h>
3600 main ()
3602 exit (42);
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 continue
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 $ac_declaration
3645 main ()
3647 exit (42);
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 break
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681 done
3682 rm -f conftest*
3683 if test -n "$ac_declaration"; then
3684 echo '#ifdef __cplusplus' >>confdefs.h
3685 echo $ac_declaration >>confdefs.h
3686 echo '#endif' >>confdefs.h
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 depcc="$CC" am_compiler_list=
3703 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3704 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3705 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709 # We make a subdir and do the tests there. Otherwise we can end up
3710 # making bogus files that we don't know about and never remove. For
3711 # instance it was reported that on HP-UX the gcc test will end up
3712 # making a dummy file named `D' -- because `-MD' means `put the output
3713 # in D'.
3714 mkdir conftest.dir
3715 # Copy depcomp to subdir because otherwise we won't find it if we're
3716 # using a relative directory.
3717 cp "$am_depcomp" conftest.dir
3718 cd conftest.dir
3719 # We will build objects and dependencies in a subdirectory because
3720 # it helps to detect inapplicable dependency modes. For instance
3721 # both Tru64's cc and ICC support -MD to output dependencies as a
3722 # side effect of compilation, but ICC will put the dependencies in
3723 # the current directory while Tru64 will put them in the object
3724 # directory.
3725 mkdir sub
3727 am_cv_CC_dependencies_compiler_type=none
3728 if test "$am_compiler_list" = ""; then
3729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731 for depmode in $am_compiler_list; do
3732 # Setup a source with many dependencies, because some compilers
3733 # like to wrap large dependency lists on column 80 (with \), and
3734 # we should not choose a depcomp mode which is confused by this.
3736 # We need to recreate these files for each test, as the compiler may
3737 # overwrite some of them when testing with obscure command lines.
3738 # This happens at least with the AIX C compiler.
3739 : > sub/conftest.c
3740 for i in 1 2 3 4 5 6; do
3741 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3743 # Solaris 8's {/usr,}/bin/sh.
3744 touch sub/conftst$i.h
3745 done
3746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748 case $depmode in
3749 nosideeffect)
3750 # after this tag, mechanisms are not by side-effect, so they'll
3751 # only be used when explicitly requested
3752 if test "x$enable_dependency_tracking" = xyes; then
3753 continue
3754 else
3755 break
3758 none) break ;;
3759 esac
3760 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761 # mode. It turns out that the SunPro C++ compiler does not properly
3762 # handle `-M -o', and we need to detect this.
3763 if depmode=$depmode \
3764 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3765 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3766 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3767 >/dev/null 2>conftest.err &&
3768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3771 # icc doesn't choke on unknown options, it will just issue warnings
3772 # or remarks (even with -Werror). So we grep stderr for any message
3773 # that says an option was ignored or not supported.
3774 # When given -MP, icc 7.0 and 7.1 complain thusly:
3775 # icc: Command line warning: ignoring option '-M'; no argument required
3776 # The diagnosis changed in icc 8.0:
3777 # icc: Command line remark: option '-MP' not supported
3778 if (grep 'ignoring option' conftest.err ||
3779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3780 am_cv_CC_dependencies_compiler_type=$depmode
3781 break
3784 done
3786 cd ..
3787 rm -rf conftest.dir
3788 else
3789 am_cv_CC_dependencies_compiler_type=none
3793 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800 test "x$enable_dependency_tracking" != xno \
3801 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3802 am__fastdepCC_TRUE=
3803 am__fastdepCC_FALSE='#'
3804 else
3805 am__fastdepCC_TRUE='#'
3806 am__fastdepCC_FALSE=
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3817 # On Suns, sometimes $CPP names a directory.
3818 if test -n "$CPP" && test -d "$CPP"; then
3819 CPP=
3821 if test -z "$CPP"; then
3822 if test "${ac_cv_prog_CPP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 # Double quotes because CPP needs to be expanded
3826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3828 ac_preproc_ok=false
3829 for ac_c_preproc_warn_flag in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #ifdef __STDC__
3844 # include <limits.h>
3845 #else
3846 # include <assert.h>
3847 #endif
3848 Syntax error
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Broken: fails on valid input.
3874 continue
3876 rm -f conftest.err conftest.$ac_ext
3878 # OK, works on sane cases. Now check whether non-existent headers
3879 # can be detected and how.
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null; then
3896 if test -s conftest.err; then
3897 ac_cpp_err=$ac_c_preproc_warn_flag
3898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 else
3900 ac_cpp_err=
3902 else
3903 ac_cpp_err=yes
3905 if test -z "$ac_cpp_err"; then
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3916 rm -f conftest.err conftest.$ac_ext
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3922 break
3925 done
3926 ac_cv_prog_CPP=$CPP
3929 CPP=$ac_cv_prog_CPP
3930 else
3931 ac_cv_prog_CPP=$CPP
3933 echo "$as_me:$LINENO: result: $CPP" >&5
3934 echo "${ECHO_T}$CPP" >&6
3935 ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 #ifdef __STDC__
3951 # include <limits.h>
3952 #else
3953 # include <assert.h>
3954 #endif
3955 Syntax error
3956 _ACEOF
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 else
3969 ac_cpp_err=
3971 else
3972 ac_cpp_err=yes
3974 if test -z "$ac_cpp_err"; then
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 # Broken: fails on valid input.
3981 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether non-existent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev/null; then
4003 if test -s conftest.err; then
4004 ac_cpp_err=$ac_c_preproc_warn_flag
4005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 else
4007 ac_cpp_err=
4009 else
4010 ac_cpp_err=yes
4012 if test -z "$ac_cpp_err"; then
4013 # Broken: success on invalid input.
4014 continue
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4023 rm -f conftest.err conftest.$ac_ext
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then
4030 else
4031 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details." >&5
4033 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." >&2;}
4035 { (exit 1); exit 1; }; }
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 if test "$cross_compiling" = yes; then
4045 ac_build_prefix=
4046 test -n "$build_alias" && ac_build_prefix=$build_alias-
4049 # Even if we're cross-compiling, we want a compiler here
4050 # that is not a cross-compiler.
4051 saved_cross=$cross_compiling
4052 cross_compiling=no
4054 ac_ext=c
4055 ac_cpp='$CPP $BUILD_CPPFLAGS'
4056 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 if test -n "$ac_build_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4061 set dummy ${ac_build_prefix}gcc; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 if test -n "$BUILD_CC"; then
4068 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4086 BUILD_CC=$ac_cv_prog_BUILD_CC
4087 if test -n "$BUILD_CC"; then
4088 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4089 echo "${ECHO_T}$BUILD_CC" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4096 if test -z "$ac_cv_prog_BUILD_CC"; then
4097 ac_ct_BUILD_CC=$BUILD_CC
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$ac_ct_BUILD_CC"; then
4106 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4124 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4125 if test -n "$ac_ct_BUILD_CC"; then
4126 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4127 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4133 BUILD_CC=$ac_ct_BUILD_CC
4134 else
4135 BUILD_CC="$ac_cv_prog_BUILD_CC"
4138 if test -z "$BUILD_CC"; then
4139 if test -n "$ac_build_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4141 set dummy ${ac_build_prefix}cc; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 if test -n "$BUILD_CC"; then
4148 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4166 BUILD_CC=$ac_cv_prog_BUILD_CC
4167 if test -n "$BUILD_CC"; then
4168 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4169 echo "${ECHO_T}$BUILD_CC" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4176 if test -z "$ac_cv_prog_BUILD_CC"; then
4177 ac_ct_BUILD_CC=$BUILD_CC
4178 # Extract the first word of "cc", so it can be a program name with args.
4179 set dummy cc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 if test -n "$ac_ct_BUILD_CC"; then
4186 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_BUILD_CC="cc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4204 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4205 if test -n "$ac_ct_BUILD_CC"; then
4206 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4207 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4208 else
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4213 BUILD_CC=$ac_ct_BUILD_CC
4214 else
4215 BUILD_CC="$ac_cv_prog_BUILD_CC"
4219 if test -z "$BUILD_CC"; then
4220 # Extract the first word of "cc", so it can be a program name with args.
4221 set dummy cc; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 if test -n "$BUILD_CC"; then
4228 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4229 else
4230 ac_prog_rejected=no
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4239 ac_prog_rejected=yes
4240 continue
4242 ac_cv_prog_BUILD_CC="cc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4249 if test $ac_prog_rejected = yes; then
4250 # We found a bogon in the path, so make sure we never use it.
4251 set dummy $ac_cv_prog_BUILD_CC
4252 shift
4253 if test $# != 0; then
4254 # We chose a different compiler from the bogus one.
4255 # However, it has the same basename, so the bogon will be chosen
4256 # first if we set BUILD_CC to just the basename; use the full file name.
4257 shift
4258 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4263 BUILD_CC=$ac_cv_prog_BUILD_CC
4264 if test -n "$BUILD_CC"; then
4265 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4266 echo "${ECHO_T}$BUILD_CC" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4273 if test -z "$BUILD_CC"; then
4274 if test -n "$ac_build_prefix"; then
4275 for ac_prog in cl
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 if test -n "$BUILD_CC"; then
4285 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4298 done
4299 done
4303 BUILD_CC=$ac_cv_prog_BUILD_CC
4304 if test -n "$BUILD_CC"; then
4305 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4306 echo "${ECHO_T}$BUILD_CC" >&6
4307 else
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 test -n "$BUILD_CC" && break
4313 done
4315 if test -z "$BUILD_CC"; then
4316 ac_ct_BUILD_CC=$BUILD_CC
4317 for ac_prog in cl
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 if test -n "$ac_ct_BUILD_CC"; then
4327 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4345 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4346 if test -n "$ac_ct_BUILD_CC"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4348 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4349 else
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 test -n "$ac_ct_BUILD_CC" && break
4355 done
4357 BUILD_CC=$ac_ct_BUILD_CC
4363 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." >&2;}
4367 { (exit 1); exit 1; }; }
4369 # Provide some information about the compiler.
4370 echo "$as_me:$LINENO:" \
4371 "checking for C compiler version" >&5
4372 ac_compiler=`set X $ac_compile; echo $2`
4373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4374 (eval $ac_compiler --version </dev/null >&5) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }
4378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4379 (eval $ac_compiler -v </dev/null >&5) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }
4383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4384 (eval $ac_compiler -V </dev/null >&5) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4397 main ()
4401 return 0;
4403 _ACEOF
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4408 # of exeext.
4409 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4410 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4411 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4413 (eval $ac_link_default) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; then
4417 # Find the output, starting from the most likely. This scheme is
4418 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4419 # resort.
4421 # Be careful to initialize this variable, since it used to be cached.
4422 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4423 ac_cv_build_exeext=
4424 # b.out is created by i960 compilers.
4425 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4427 test -f "$ac_file" || continue
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4431 conftest.$ac_ext )
4432 # This is the source file.
4434 [ab].out )
4435 # We found the default executable, but exeext='' is most
4436 # certainly right.
4437 break;;
4438 *.* )
4439 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4440 # FIXME: I believe we export ac_cv_exeext for Libtool,
4441 # but it would be cool to find out if it's true. Does anybody
4442 # maintain Libtool? --akim.
4443 export ac_cv_build_exeext
4444 break;;
4446 break;;
4447 esac
4448 done
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: C compiler cannot create executables
4456 See \`config.log' for more details." >&2;}
4457 { (exit 77); exit 77; }; }
4460 ac_build_exeext=$ac_cv_build_exeext
4461 echo "$as_me:$LINENO: result: $ac_file" >&5
4462 echo "${ECHO_T}$ac_file" >&6
4464 # Check the compiler produces executables we can run. If not, either
4465 # the compiler is broken, or we cross compile.
4466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4469 # If not cross compiling, check that we can run a simple program.
4470 if test "$cross_compiling" != yes; then
4471 if { ac_try='./$ac_file'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 cross_compiling=no
4478 else
4479 if test "$cross_compiling" = maybe; then
4480 cross_compiling=yes
4481 else
4482 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4483 If you meant to cross compile, use \`--host'.
4484 See \`config.log' for more details." >&5
4485 echo "$as_me: error: cannot run C compiled programs.
4486 If you meant to cross compile, use \`--host'.
4487 See \`config.log' for more details." >&2;}
4488 { (exit 1); exit 1; }; }
4492 echo "$as_me:$LINENO: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4495 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4496 ac_clean_files=$ac_clean_files_save
4497 # Check the compiler produces executables we can run. If not, either
4498 # the compiler is broken, or we cross compile.
4499 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4500 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4501 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4502 echo "${ECHO_T}$cross_compiling" >&6
4504 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4505 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; then
4511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4513 # work properly (i.e., refer to `conftest.exe'), while it won't with
4514 # `rm'.
4515 for ac_file in conftest.exe conftest conftest.*; do
4516 test -f "$ac_file" || continue
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4519 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 export ac_cv_build_exeext
4521 break;;
4522 * ) break;;
4523 esac
4524 done
4525 else
4526 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4527 See \`config.log' for more details." >&5
4528 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4529 See \`config.log' for more details." >&2;}
4530 { (exit 1); exit 1; }; }
4533 rm -f conftest$ac_cv_build_exeext
4534 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4535 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4537 rm -f conftest.$ac_ext
4538 BUILD_EXEEXT=$ac_cv_build_exeext
4539 ac_build_exeext=$BUILD_EXEEXT
4542 # Restore configuration environment
4543 cross_compiling=$saved_cross
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 else
4552 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4555 CFLAGS="$mule_backup_CFLAGS"
4556 CXXFLAGS="$mule_backup_CXXFLAGS"
4557 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4558 for ac_prog in gawk mawk nawk awk
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_AWK+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 if test -n "$AWK"; then
4568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_AWK="$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4586 AWK=$ac_cv_prog_AWK
4587 if test -n "$AWK"; then
4588 echo "$as_me:$LINENO: result: $AWK" >&5
4589 echo "${ECHO_T}$AWK" >&6
4590 else
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4595 test -n "$AWK" && break
4596 done
4598 echo "$as_me:$LINENO: checking for egrep" >&5
4599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4600 if test "${ac_cv_prog_egrep+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4604 then ac_cv_prog_egrep='grep -E'
4605 else ac_cv_prog_egrep='egrep'
4608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4610 EGREP=$ac_cv_prog_egrep
4613 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4614 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4616 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 cat >conftest.make <<\_ACEOF
4620 all:
4621 @echo 'ac_maketemp="$(MAKE)"'
4622 _ACEOF
4623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4624 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4625 if test -n "$ac_maketemp"; then
4626 eval ac_cv_prog_make_${ac_make}_set=yes
4627 else
4628 eval ac_cv_prog_make_${ac_make}_set=no
4630 rm -f conftest.make
4632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4633 echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4635 SET_MAKE=
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 SET_MAKE="MAKE=${MAKE-make}"
4643 for ac_prog in flex lex
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_LEX+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$LEX"; then
4653 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_LEX="$ac_prog"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4671 LEX=$ac_cv_prog_LEX
4672 if test -n "$LEX"; then
4673 echo "$as_me:$LINENO: result: $LEX" >&5
4674 echo "${ECHO_T}$LEX" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 test -n "$LEX" && break
4681 done
4682 test -n "$LEX" || LEX=":"
4684 if test -z "$LEXLIB"
4685 then
4686 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4687 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4688 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 ac_check_lib_save_LIBS=$LIBS
4692 LIBS="-lfl $LIBS"
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 /* Override any gcc2 internal prototype to avoid an error. */
4701 #ifdef __cplusplus
4702 extern "C"
4703 #endif
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706 char yywrap ();
4708 main ()
4710 yywrap ();
4712 return 0;
4714 _ACEOF
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_lib_fl_yywrap=yes
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_cv_lib_fl_yywrap=no
4744 rm -f conftest.err conftest.$ac_objext \
4745 conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
4748 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4749 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4750 if test $ac_cv_lib_fl_yywrap = yes; then
4751 LEXLIB="-lfl"
4752 else
4753 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4754 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4755 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 ac_check_lib_save_LIBS=$LIBS
4759 LIBS="-ll $LIBS"
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 #ifdef __cplusplus
4769 extern "C"
4770 #endif
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char yywrap ();
4775 main ()
4777 yywrap ();
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_lib_l_yywrap=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_cv_lib_l_yywrap=no
4811 rm -f conftest.err conftest.$ac_objext \
4812 conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4816 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4817 if test $ac_cv_lib_l_yywrap = yes; then
4818 LEXLIB="-ll"
4825 if test "x$LEX" != "x:"; then
4826 echo "$as_me:$LINENO: checking lex output file root" >&5
4827 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4828 if test "${ac_cv_prog_lex_root+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 # The minimal lex program is just a single line: %%. But some broken lexes
4832 # (Solaris, I think it was) want two %% lines, so accommodate them.
4833 cat >conftest.l <<_ACEOF
4836 _ACEOF
4837 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4838 (eval $LEX conftest.l) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }
4842 if test -f lex.yy.c; then
4843 ac_cv_prog_lex_root=lex.yy
4844 elif test -f lexyy.c; then
4845 ac_cv_prog_lex_root=lexyy
4846 else
4847 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4848 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4849 { (exit 1); exit 1; }; }
4852 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4853 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4854 rm -f conftest.l
4855 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4857 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4858 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4859 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 # POSIX says lex can declare yytext either as a pointer or an array; the
4863 # default is implementation-dependent. Figure out which it is, since
4864 # not all implementations provide the %pointer and %array declarations.
4865 ac_cv_prog_lex_yytext_pointer=no
4866 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4867 ac_save_LIBS=$LIBS
4868 LIBS="$LIBS $LEXLIB"
4869 cat >conftest.$ac_ext <<_ACEOF
4870 `cat $LEX_OUTPUT_ROOT.c`
4871 _ACEOF
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 ac_cv_prog_lex_yytext_pointer=yes
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4900 rm -f conftest.err conftest.$ac_objext \
4901 conftest$ac_exeext conftest.$ac_ext
4902 LIBS=$ac_save_LIBS
4903 rm -f "${LEX_OUTPUT_ROOT}.c"
4906 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4907 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4908 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4910 cat >>confdefs.h <<\_ACEOF
4911 #define YYTEXT_POINTER 1
4912 _ACEOF
4917 # Find a good install program. We prefer a C program (faster),
4918 # so one script is as good as another. But avoid the broken or
4919 # incompatible versions:
4920 # SysV /etc/install, /usr/sbin/install
4921 # SunOS /usr/etc/install
4922 # IRIX /sbin/install
4923 # AIX /bin/install
4924 # AmigaOS /C/install, which installs bootblocks on floppy discs
4925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4928 # OS/2's system install, which has a completely different semantic
4929 # ./install, which can be erroneously created by make from ./install.sh.
4930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4932 if test -z "$INSTALL"; then
4933 if test "${ac_cv_path_install+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 # Account for people who put trailing slashes in PATH elements.
4942 case $as_dir/ in
4943 ./ | .// | /cC/* | \
4944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4946 /usr/ucb/* ) ;;
4948 # OSF1 and SCO ODT 3.0 have their own names for install.
4949 # Don't use installbsd from OSF since it installs stuff as root
4950 # by default.
4951 for ac_prog in ginstall scoinst install; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4954 if test $ac_prog = install &&
4955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4956 # AIX install. It has an incompatible calling convention.
4958 elif test $ac_prog = install &&
4959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4960 # program-specific install script used by HP pwplus--don't use.
4962 else
4963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964 break 3
4967 done
4968 done
4970 esac
4971 done
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL=$ac_cv_path_install
4977 else
4978 # As a last resort, use the slow shell script. We don't cache a
4979 # path for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the path is relative.
4982 INSTALL=$ac_install_sh
4985 echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_RANLIB+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$RANLIB"; then
5005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5023 RANLIB=$ac_cv_prog_RANLIB
5024 if test -n "$RANLIB"; then
5025 echo "$as_me:$LINENO: result: $RANLIB" >&5
5026 echo "${ECHO_T}$RANLIB" >&6
5027 else
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5033 if test -z "$ac_cv_prog_RANLIB"; then
5034 ac_ct_RANLIB=$RANLIB
5035 # Extract the first word of "ranlib", so it can be a program name with args.
5036 set dummy ranlib; ac_word=$2
5037 echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 if test -n "$ac_ct_RANLIB"; then
5043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_ac_ct_RANLIB="ranlib"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5059 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5062 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5063 if test -n "$ac_ct_RANLIB"; then
5064 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5065 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5066 else
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5071 RANLIB=$ac_ct_RANLIB
5072 else
5073 RANLIB="$ac_cv_prog_RANLIB"
5076 for ac_prog in 'bison -y' byacc
5078 # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_prog_YACC+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 if test -n "$YACC"; then
5086 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_YACC="$ac_prog"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5104 YACC=$ac_cv_prog_YACC
5105 if test -n "$YACC"; then
5106 echo "$as_me:$LINENO: result: $YACC" >&5
5107 echo "${ECHO_T}$YACC" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5113 test -n "$YACC" && break
5114 done
5115 test -n "$YACC" || YACC="yacc"
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_RANLIB+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5145 RANLIB=$ac_cv_prog_RANLIB
5146 if test -n "$RANLIB"; then
5147 echo "$as_me:$LINENO: result: $RANLIB" >&5
5148 echo "${ECHO_T}$RANLIB" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5155 if test -z "$ac_cv_prog_RANLIB"; then
5156 ac_ct_RANLIB=$RANLIB
5157 # Extract the first word of "ranlib", so it can be a program name with args.
5158 set dummy ranlib; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_RANLIB"; then
5165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_RANLIB="ranlib"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5184 if test -n "$ac_ct_RANLIB"; then
5185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 RANLIB=$ac_ct_RANLIB
5193 else
5194 RANLIB="$ac_cv_prog_RANLIB"
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}strip; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_STRIP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 if test -n "$STRIP"; then
5206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5224 STRIP=$ac_cv_prog_STRIP
5225 if test -n "$STRIP"; then
5226 echo "$as_me:$LINENO: result: $STRIP" >&5
5227 echo "${ECHO_T}$STRIP" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5234 if test -z "$ac_cv_prog_STRIP"; then
5235 ac_ct_STRIP=$STRIP
5236 # Extract the first word of "strip", so it can be a program name with args.
5237 set dummy strip; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$ac_ct_STRIP"; then
5244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_ac_ct_STRIP="strip"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263 if test -n "$ac_ct_STRIP"; then
5264 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5265 echo "${ECHO_T}$ac_ct_STRIP" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 STRIP=$ac_ct_STRIP
5272 else
5273 STRIP="$ac_cv_prog_STRIP"
5276 if test -n "$ac_tool_prefix"; then
5277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}ar; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_AR+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$AR"; then
5285 ac_cv_prog_AR="$AR" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_AR="${ac_tool_prefix}ar"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5303 AR=$ac_cv_prog_AR
5304 if test -n "$AR"; then
5305 echo "$as_me:$LINENO: result: $AR" >&5
5306 echo "${ECHO_T}$AR" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5313 if test -z "$ac_cv_prog_AR"; then
5314 ac_ct_AR=$AR
5315 # Extract the first word of "ar", so it can be a program name with args.
5316 set dummy ar; ac_word=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$ac_ct_AR"; then
5323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_ac_ct_AR="ar"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5342 if test -n "$ac_ct_AR"; then
5343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5344 echo "${ECHO_T}$ac_ct_AR" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5350 AR=$ac_ct_AR
5351 else
5352 AR="$ac_cv_prog_AR"
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ld; ac_word=$2
5358 echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360 if test "${ac_cv_prog_LD+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 if test -n "$LD"; then
5364 ac_cv_prog_LD="$LD" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_LD="${ac_tool_prefix}ld"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5382 LD=$ac_cv_prog_LD
5383 if test -n "$LD"; then
5384 echo "$as_me:$LINENO: result: $LD" >&5
5385 echo "${ECHO_T}$LD" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5392 if test -z "$ac_cv_prog_LD"; then
5393 ac_ct_LD=$LD
5394 # Extract the first word of "ld", so it can be a program name with args.
5395 set dummy ld; ac_word=$2
5396 echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5398 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 if test -n "$ac_ct_LD"; then
5402 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_LD="ld"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5420 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5421 if test -n "$ac_ct_LD"; then
5422 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5423 echo "${ECHO_T}$ac_ct_LD" >&6
5424 else
5425 echo "$as_me:$LINENO: result: no" >&5
5426 echo "${ECHO_T}no" >&6
5429 LD=$ac_ct_LD
5430 else
5431 LD="$ac_cv_prog_LD"
5435 # Check whether --enable-monolithic or --disable-monolithic was given.
5436 if test "${enable_monolithic+set}" = set; then
5437 enableval="$enable_monolithic"
5438 MONOLITHIC=$enableval
5439 else
5440 MONOLITHIC=yes
5443 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5444 if test "${enable_amule_daemon+set}" = set; then
5445 enableval="$enable_amule_daemon"
5446 AMULE_DAEMON=$enableval
5447 else
5448 AMULE_DAEMON=no
5451 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5452 if test "${enable_amulecmd+set}" = set; then
5453 enableval="$enable_amulecmd"
5454 AMULECMD=$enableval
5455 else
5456 AMULECMD=no
5459 # Check whether --enable-webserver or --disable-webserver was given.
5460 if test "${enable_webserver+set}" = set; then
5461 enableval="$enable_webserver"
5462 WEB=$enableval
5463 else
5464 WEB=no
5467 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5468 if test "${enable_amule_gui+set}" = set; then
5469 enableval="$enable_amule_gui"
5470 AMULE_GUI=$enableval
5471 else
5472 AMULE_GUI=no
5475 # Check whether --enable-cas or --disable-cas was given.
5476 if test "${enable_cas+set}" = set; then
5477 enableval="$enable_cas"
5478 CAS=$enableval
5479 else
5480 CAS=no
5483 # Check whether --enable-wxcas or --disable-wxcas was given.
5484 if test "${enable_wxcas+set}" = set; then
5485 enableval="$enable_wxcas"
5486 WXCAS=$enableval
5487 else
5488 WXCAS=no
5491 # Check whether --enable-ed2k or --disable-ed2k was given.
5492 if test "${enable_ed2k+set}" = set; then
5493 enableval="$enable_ed2k"
5494 ED2K=$enableval
5495 else
5496 ED2K=yes
5499 # Check whether --enable-alc or --disable-alc was given.
5500 if test "${enable_alc+set}" = set; then
5501 enableval="$enable_alc"
5502 ALC=$enableval
5503 else
5504 ALC=no
5507 # Check whether --enable-alcc or --disable-alcc was given.
5508 if test "${enable_alcc+set}" = set; then
5509 enableval="$enable_alcc"
5510 ALCC=$enableval
5511 else
5512 ALCC=no
5515 # Check whether --enable-monolithic or --disable-monolithic was given.
5516 if test "${enable_monolithic+set}" = set; then
5517 enableval="$enable_monolithic"
5518 MONOLITHIC=$enableval
5519 else
5520 MONOLITHIC=yes
5523 # Check whether --enable-upnp or --disable-upnp was given.
5524 if test "${enable_upnp+set}" = set; then
5525 enableval="$enable_upnp"
5526 ENABLE_UPNP=$enableval
5527 else
5528 ENABLE_UPNP=yes
5531 # Check whether --enable-xas or --disable-xas was given.
5532 if test "${enable_xas+set}" = set; then
5533 enableval="$enable_xas"
5534 XAS=$enableval
5535 else
5536 XAS=no
5539 # Check whether --enable-fileview or --disable-fileview was given.
5540 if test "${enable_fileview+set}" = set; then
5541 enableval="$enable_fileview"
5542 FILEVIEW=$enableval
5543 else
5544 FILEVIEW=no
5547 # Default is yes, because they're most likely compatible.
5548 # However, this is only used when cross-compiling.
5550 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5551 if test "${with_gnu_malloc+set}" = set; then
5552 withval="$with_gnu_malloc"
5553 gnumalloc=$withval
5554 else
5555 gnumalloc=yes
5559 # Checking for libs before all other stuff to break
5560 # configure as soon as possible in case of a missing one
5561 # to avoid losing too much time
5563 # Check for zlib
5566 # Check whether --with-zlib or --without-zlib was given.
5567 if test "${with_zlib+set}" = set; then
5568 withval="$with_zlib"
5572 case "${with_zlib:-yes}" in
5574 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5575 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5576 { (exit 1); exit 1; }; }
5578 yes | sys)
5581 zlib_prefix="$with_zlib"
5582 esac
5584 mule_backup_CPPFLAGS="$CPPFLAGS"
5585 mule_backup_LDFLAGS="$LDFLAGS"
5586 mule_backup_LIBS="$LIBS"
5587 if test -n "$zlib_prefix"; then
5589 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5590 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5591 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5592 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5594 else
5596 ZLIB_CPPFLAGS=
5597 ZLIB_LDFLAGS=
5601 ZLIB_LIBS="-lz"
5602 LIBS="$ZLIB_LIBS $LIBS"
5604 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5605 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5606 if test "$cross_compiling" = yes; then
5608 result=no
5609 z_version=
5610 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5618 #include <zlib.h>
5619 #include <stdio.h>
5622 main ()
5625 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5626 zlibVersion();
5629 return 0;
5632 _ACEOF
5633 rm -f conftest.$ac_objext conftest$ac_exeext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest$ac_exeext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5656 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5657 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5658 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5659 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5660 if test "$cross_zver_max" -gt "1"; then
5661 result=yes
5662 elif test "$cross_zver_max" -eq "1"; then
5664 if test "$cross_zver_mid" -gt "1"; then
5665 result=yes
5666 elif test "$cross_zver_mid" -eq "1"; then
5667 if test "$cross_zver_min" -ge "4"; then
5668 result=yes
5676 if test ${result:-no} = yes; then
5677 z_version=" (version $ZLIB_VERSION)"
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5686 rm -f conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $result$z_version" >&5
5689 echo "${ECHO_T}$result$z_version" >&6
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5700 #include <zlib.h>
5701 #include <stdio.h>
5704 main ()
5706 char *zver = zlibVersion();
5707 FILE *f=fopen("conftestval", "w");
5708 if (!f) return 1;
5709 fprintf(f, "%s",
5710 zver[0] > '1' ||
5711 (zver[0] == '1' &&
5712 (zver[2] > '1' ||
5713 (zver[2] == '1' &&
5714 zver[4] >= '4'))) ? "yes" : "no");
5715 fclose(f);
5716 f=fopen("conftestver", "w");
5717 if (f) {
5718 fprintf(f, "%s", ZLIB_VERSION);
5719 fclose(f);
5723 return 0;
5726 _ACEOF
5727 rm -f conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5739 if test -f conftestval; then
5740 result=`cat conftestval`
5741 else
5742 result=no
5745 if test ${result:-no} = yes; then
5747 if test -f conftestver; then
5749 ZLIB_VERSION=`cat conftestver`
5750 z_version=" (version $ZLIB_VERSION)"
5752 else
5753 z_version=
5759 echo "$as_me:$LINENO: result: $result$z_version" >&5
5760 echo "${ECHO_T}$result$z_version" >&6
5762 else
5763 echo "$as_me: program exited with status $ac_status" >&5
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ( exit $ac_status )
5769 result=no
5770 echo "$as_me:$LINENO: result: $result" >&5
5771 echo "${ECHO_T}$result" >&6
5774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5777 CPPFLAGS="$mule_backup_CPPFLAGS"
5778 LDFLAGS="$mule_backup_LDFLAGS"
5779 LIBS="$mule_backup_LIBS"
5781 if test ${result:-no} = no; then
5783 ZLIB_CPPFLAGS=
5784 ZLIB_LDFLAGS=
5785 ZLIB_LIBS=
5786 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5787 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5788 { (exit 1); exit 1; }; }
5795 if test x$CAS = xyes; then
5797 # Check for gd
5799 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5801 if test "${ac_cv_header_stdc+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <stdlib.h>
5811 #include <stdarg.h>
5812 #include <string.h>
5813 #include <float.h>
5816 main ()
5820 return 0;
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag"
5833 || test ! -s conftest.err'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_cv_header_stdc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_cv_header_stdc=no
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5854 if test $ac_cv_header_stdc = yes; then
5855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <string.h>
5864 _ACEOF
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "memchr" >/dev/null 2>&1; then
5868 else
5869 ac_cv_header_stdc=no
5871 rm -f conftest*
5875 if test $ac_cv_header_stdc = yes; then
5876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <stdlib.h>
5885 _ACEOF
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev/null 2>&1; then
5889 else
5890 ac_cv_header_stdc=no
5892 rm -f conftest*
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ctype.h>
5908 #if ((' ' & 0x0FF) == 0x020)
5909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5911 #else
5912 # define ISLOWER(c) \
5913 (('a' <= (c) && (c) <= 'i') \
5914 || ('j' <= (c) && (c) <= 'r') \
5915 || ('s' <= (c) && (c) <= 'z'))
5916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #endif
5919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5921 main ()
5923 int i;
5924 for (i = 0; i < 256; i++)
5925 if (XOR (islower (i), ISLOWER (i))
5926 || toupper (i) != TOUPPER (i))
5927 exit(2);
5928 exit (0);
5930 _ACEOF
5931 rm -f conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5943 else
5944 echo "$as_me: program exited with status $ac_status" >&5
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ( exit $ac_status )
5949 ac_cv_header_stdc=no
5951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5956 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5957 if test $ac_cv_header_stdc = yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define STDC_HEADERS 1
5961 _ACEOF
5965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5976 inttypes.h stdint.h unistd.h
5978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 echo "$as_me:$LINENO: checking for $ac_header" >&5
5980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5992 #include <$ac_header>
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 eval "$as_ac_Header=yes"
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 eval "$as_ac_Header=no"
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6030 _ACEOF
6034 done
6039 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6040 if test "${with_gdlib_prefix+set}" = set; then
6041 withval="$with_gdlib_prefix"
6045 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6046 if test "${with_gdlib_config+set}" = set; then
6047 withval="$with_gdlib_config"
6051 GDLIB_VERSION=
6053 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6054 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6055 GDLIB_CONFIG_NAME=gdlib-config
6058 if test -n "$with_gdlib_config"; then
6059 GDLIB_CONFIG_NAME="$with_gdlib_config"
6063 # deal with optional prefix
6064 if test -n "$with_gdlib_prefix"; then
6065 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6069 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6070 if test -x "$GDLIB_CONFIG_NAME"; then
6072 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6073 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6074 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6075 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6076 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6078 else
6079 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6080 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 case $GDLIB_CONFIG_PATH in
6087 [\\/]* | ?:[\\/]*)
6088 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6093 for as_dir in $as_dummy
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6106 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6108 esac
6110 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6112 if test -n "$GDLIB_CONFIG_PATH"; then
6113 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6114 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6115 else
6116 echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6123 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6125 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6126 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6127 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6129 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6130 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6131 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6132 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6134 gdlib_ver_ok=
6135 if test $gdlib_config_major_version -gt 2; then
6136 gdlib_ver_ok=yes
6137 elif test $gdlib_config_major_version -eq 2; then
6139 if test $gdlib_config_minor_version -gt 0; then
6140 gdlib_ver_ok=yes
6141 elif test $gdlib_config_minor_version -eq 0; then
6142 if test $gdlib_config_micro_version -ge 0; then
6143 gdlib_ver_ok=yes
6152 if test -z "$gdlib_ver_ok"; then
6154 if test -z "$GDLIB_VERSION"; then
6155 echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6
6157 else
6159 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6160 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6161 GDLIB_VERSION=
6166 else
6168 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6169 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6170 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6171 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6172 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6173 mule_backup_CFLAGS="$CFLAGS"
6174 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6175 if test "${ac_cv_header_gd_h+set}" = set; then
6176 echo "$as_me:$LINENO: checking for gd.h" >&5
6177 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6178 if test "${ac_cv_header_gd_h+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6182 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6183 else
6184 # Is the header compilable?
6185 echo "$as_me:$LINENO: checking gd.h usability" >&5
6186 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194 #include <gd.h>
6195 _ACEOF
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_header_compiler=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_header_compiler=no
6225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6227 echo "${ECHO_T}$ac_header_compiler" >&6
6229 # Is the header present?
6230 echo "$as_me:$LINENO: checking gd.h presence" >&5
6231 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <gd.h>
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251 else
6252 ac_cpp_err=
6254 else
6255 ac_cpp_err=yes
6257 if test -z "$ac_cpp_err"; then
6258 ac_header_preproc=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_header_preproc=no
6265 rm -f conftest.err conftest.$ac_ext
6266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6267 echo "${ECHO_T}$ac_header_preproc" >&6
6269 # So? What about this header?
6270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 yes:no: )
6272 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6273 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6275 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6276 ac_header_preproc=yes
6278 no:yes:* )
6279 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6280 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6282 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6284 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6286 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6290 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6292 cat <<\_ASBOX
6293 ## ------------------------------ ##
6294 ## Report this to admin@amule.org ##
6295 ## ------------------------------ ##
6296 _ASBOX
6298 sed "s/^/$as_me: WARNING: /" >&2
6300 esac
6301 echo "$as_me:$LINENO: checking for gd.h" >&5
6302 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6303 if test "${ac_cv_header_gd_h+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 ac_cv_header_gd_h=$ac_header_preproc
6308 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6309 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6312 if test $ac_cv_header_gd_h = yes; then
6314 else
6315 GDLIB_VERSION=
6319 CFLAGS="$mule_backup_CFLAGS"
6327 if test -n "$GDLIB_VERSION"; then
6329 CAS_DEFS="-D__GD__"
6330 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6332 else
6333 CAS_DEFS=
6339 if test -z "$CAS_DEFS"; then
6340 { echo "$as_me:$LINENO: WARNING:
6341 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6342 Please check that gdlib-config is in your default path, check out
6343 LD_LIBRARY_PATH or equivalent variable.
6344 Or this might also be that your gdlib-config has other name.
6345 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6346 (replace /usr/bin/gdlib-config with a valid path to your
6347 gdlib-config).
6348 If you use compiled packages check if you have devel pack installed.
6349 To download the latest version check http://www.boutell.com/gd for
6350 sources." >&5
6351 echo "$as_me: WARNING:
6352 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6353 Please check that gdlib-config is in your default path, check out
6354 LD_LIBRARY_PATH or equivalent variable.
6355 Or this might also be that your gdlib-config has other name.
6356 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6357 (replace /usr/bin/gdlib-config with a valid path to your
6358 gdlib-config).
6359 If you use compiled packages check if you have devel pack installed.
6360 To download the latest version check http://www.boutell.com/gd for
6361 sources." >&2;}
6362 _mule_warning_0=yes
6363 _mule_has_warnings=yes
6368 else
6369 GDLIB_VERSION="not_needed"
6374 if test x$WEB = xyes; then
6377 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6378 if test "${with_libpng_prefix+set}" = set; then
6379 withval="$with_libpng_prefix"
6383 # Check whether --with-libpng-config or --without-libpng-config was given.
6384 if test "${with_libpng_config+set}" = set; then
6385 withval="$with_libpng_config"
6389 LIBPNG_VERSION=
6391 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6392 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6393 LIBPNG_CONFIG_NAME=libpng-config
6396 if test -n "$with_libpng_config"; then
6397 LIBPNG_CONFIG_NAME="$with_libpng_config"
6401 # deal with optional prefix
6402 if test -n "$with_libpng_prefix"; then
6403 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6407 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6408 if test -x "$LIBPNG_CONFIG_NAME"; then
6410 echo "$as_me:$LINENO: checking for libpng-config" >&5
6411 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6412 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6413 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6414 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6416 else
6417 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6418 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6419 echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 case $LIBPNG_CONFIG_PATH in
6425 [\\/]* | ?:[\\/]*)
6426 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6431 for as_dir in $as_dummy
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6444 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6446 esac
6448 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6450 if test -n "$LIBPNG_CONFIG_PATH"; then
6451 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6452 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6
6461 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6463 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6464 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6466 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6468 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6469 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6470 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6471 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6473 libpng_ver_ok=
6474 if test $libpng_config_major_version -gt 1; then
6475 libpng_ver_ok=yes
6476 elif test $libpng_config_major_version -eq 1; then
6478 if test $libpng_config_minor_version -gt 2; then
6479 libpng_ver_ok=yes
6480 elif test $libpng_config_minor_version -eq 2; then
6481 if test $libpng_config_micro_version -ge 0; then
6482 libpng_ver_ok=yes
6491 if test -z "$libpng_ver_ok"; then
6493 if test -z "$LIBPNG_VERSION"; then
6494 echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6
6496 else
6498 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6499 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6500 LIBPNG_VERSION=
6505 else
6507 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6508 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6509 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6510 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6511 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6519 if test -n "$LIBPNG_VERSION"; then
6520 AMULEWEB_DEFS="-DWITH_LIBPNG"
6521 else
6523 { echo "$as_me:$LINENO: WARNING:
6524 libpng >= 1.2.0 not found.
6525 amuleweb will be compiled but file download progress bar images will
6526 NOT be generated." >&5
6527 echo "$as_me: WARNING:
6528 libpng >= 1.2.0 not found.
6529 amuleweb will be compiled but file download progress bar images will
6530 NOT be generated." >&2;}
6531 _mule_warning_1=yes
6532 _mule_has_warnings=yes
6541 else
6542 LIBPNG_VERSION="not_needed"
6547 # Check for perl File::Copy
6548 echo "$as_me:$LINENO: checking for File::Copy" >&5
6549 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6550 if perl -e "require File::Copy" 2>/dev/null; then
6551 echo "$as_me:$LINENO: result: ok" >&5
6552 echo "${ECHO_T}ok" >&6
6553 else
6554 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6555 echo "$as_me: error: File::Copy perl module is required" >&2;}
6556 { (exit 1); exit 1; }; }
6561 # Check if we need the GUI
6562 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6563 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6564 if test x$MONOLITHIC = xyes; then
6565 need_gui=yes
6568 if test x$WXCAS = xyes; then
6569 need_gui=yes
6572 if test x$ALC = xyes; then
6573 need_gui=yes
6576 if test x$AMULE_GUI = xyes; then
6577 need_gui=yes
6580 if test x${need_gui:+set} != xset; then
6581 need_gui=no
6584 echo "$as_me:$LINENO: result: $need_gui" >&5
6585 echo "${ECHO_T}$need_gui" >&6
6587 # Check if we need to install skins
6588 if test x$MONOLITHIC = xyes; then
6589 INSTALL_SKINS=yes
6592 if test x$AMULE_GUI = xyes; then
6593 INSTALL_SKINS=yes
6596 if test x${INSTALL_SKINS:+set} != xset; then
6597 INSTALL_SKINS=no
6601 # Check for GeoIP (required for IP2Country capability)
6603 # Check whether --enable-geoip or --disable-geoip was given.
6604 if test "${enable_geoip+set}" = set; then
6605 enableval="$enable_geoip"
6606 ENABLE_IP2COUNTRY=$enableval
6607 else
6608 ENABLE_IP2COUNTRY=no
6611 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6614 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6615 if test "${with_geoip_headers+set}" = set; then
6616 withval="$with_geoip_headers"
6617 GEOIP_CPPFLAGS="-I$withval"
6620 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6621 if test "${with_geoip_lib+set}" = set; then
6622 withval="$with_geoip_lib"
6623 GEOIP_LDFLAGS="-L$withval"
6626 mule_backup_CPPFLAGS="$CPPFLAGS"
6627 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6628 mule_backup_LDFLAGS="$LDFLAGS"
6629 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6631 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6632 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6633 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6634 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6638 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6639 else
6640 # Is the header compilable?
6641 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6642 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6650 #include <GeoIP.h>
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag"
6662 || test ! -s conftest.err'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; } &&
6668 { ac_try='test -s conftest.$ac_objext'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 (eval $ac_try) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; }; then
6674 ac_header_compiler=yes
6675 else
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 ac_header_compiler=no
6681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6683 echo "${ECHO_T}$ac_header_compiler" >&6
6685 # Is the header present?
6686 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6687 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <GeoIP.h>
6695 _ACEOF
6696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } >/dev/null; then
6704 if test -s conftest.err; then
6705 ac_cpp_err=$ac_c_preproc_warn_flag
6706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6707 else
6708 ac_cpp_err=
6710 else
6711 ac_cpp_err=yes
6713 if test -z "$ac_cpp_err"; then
6714 ac_header_preproc=yes
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_header_preproc=no
6721 rm -f conftest.err conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6723 echo "${ECHO_T}$ac_header_preproc" >&6
6725 # So? What about this header?
6726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6727 yes:no: )
6728 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6729 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6730 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6731 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6732 ac_header_preproc=yes
6734 no:yes:* )
6735 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6736 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6738 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6740 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6742 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6744 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6746 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6748 cat <<\_ASBOX
6749 ## ------------------------------ ##
6750 ## Report this to admin@amule.org ##
6751 ## ------------------------------ ##
6752 _ASBOX
6754 sed "s/^/$as_me: WARNING: /" >&2
6756 esac
6757 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6758 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6759 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 ac_cv_header_GeoIP_h=$ac_header_preproc
6764 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6765 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6768 if test $ac_cv_header_GeoIP_h = yes; then
6770 if test x$SYS = xwin32; then
6772 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6773 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6774 # Actually, we might not need any if GeoIP is linked as a .dll
6775 # - but that's even harder to check for
6776 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6784 #include <GeoIP.h>
6785 #ifdef _WINSOCK2_H
6786 I do know it's not the best approach, but at least works with MinGW stock headers.
6787 (tested with w32api-3.12)
6788 #endif
6791 main ()
6795 return 0;
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6822 GEOIP_WINSOCK_LIB="-lwsock32"
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6829 GEOIP_WINSOCK_LIB="-lws2_32"
6832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6834 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6838 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6839 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6840 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 ac_check_lib_save_LIBS=$LIBS
6844 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char GeoIP_open ();
6860 main ()
6862 GeoIP_open ();
6864 return 0;
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869 (eval $ac_link) 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -z "$ac_c_werror_flag"
6877 || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try='test -s conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 ac_cv_lib_GeoIP_GeoIP_open=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_lib_GeoIP_GeoIP_open=no
6896 rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6900 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6901 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6902 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6905 cat >>confdefs.h <<\_ACEOF
6906 #define SUPPORT_GEOIP 1
6907 _ACEOF
6909 GEOIP_LIBS="-lGeoIP"
6910 if test x$SYS = xwin32; then
6911 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6914 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6916 # Check whether --with-geoip-static or --without-geoip-static was given.
6917 if test "${with_geoip_static+set}" = set; then
6918 withval="$with_geoip_static"
6920 if test "$withval" != "no" -a ${enable_static:-no} = no; then
6922 mule_backup_LIBS="$LIBS"
6923 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6924 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6932 #include <GeoIP.h>
6935 main ()
6938 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
6941 return 0;
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6968 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6975 { echo "$as_me:$LINENO: WARNING:
6976 Cannot link GeoIP statically, because your linker ($LD) does not
6977 support it." >&5
6978 echo "$as_me: WARNING:
6979 Cannot link GeoIP statically, because your linker ($LD) does not
6980 support it." >&2;}
6981 _mule_warning_2=yes
6982 _mule_has_warnings=yes
6986 rm -f conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 LIBS="$mule_backup_LIBS"
6995 else
6997 ENABLE_IP2COUNTRY=disabled
6998 { echo "$as_me:$LINENO: WARNING:
6999 GeoIP support has been disabled because the GeoIP libraries were not
7000 found" >&5
7001 echo "$as_me: WARNING:
7002 GeoIP support has been disabled because the GeoIP libraries were not
7003 found" >&2;}
7004 _mule_warning_3=yes
7005 _mule_has_warnings=yes
7011 else
7013 ENABLE_IP2COUNTRY=disabled
7014 { echo "$as_me:$LINENO: WARNING:
7015 GeoIP support has been disabled because the GeoIP header files were
7016 not found" >&5
7017 echo "$as_me: WARNING:
7018 GeoIP support has been disabled because the GeoIP header files were
7019 not found" >&2;}
7020 _mule_warning_4=yes
7021 _mule_has_warnings=yes
7028 CPPFLAGS="$mule_backup_CPPFLAGS"
7029 LDFLAGS="$mule_backup_LDFLAGS"
7035 # Check for wx
7038 # Check whether --with-wxdir or --without-wxdir was given.
7039 if test "${with_wxdir+set}" = set; then
7040 withval="$with_wxdir"
7041 wx_config_name="$withval/wx-config"
7042 wx_config_args="--inplace"
7045 # Check whether --with-wx-config or --without-wx-config was given.
7046 if test "${with_wx_config+set}" = set; then
7047 withval="$with_wx_config"
7048 wx_config_name="$withval"
7051 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7052 if test "${with_wx_prefix+set}" = set; then
7053 withval="$with_wx_prefix"
7054 wx_config_prefix="$withval"
7055 else
7056 wx_config_prefix=""
7059 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7060 if test "${with_wx_exec_prefix+set}" = set; then
7061 withval="$with_wx_exec_prefix"
7062 wx_config_exec_prefix="$withval"
7063 else
7064 wx_config_exec_prefix=""
7078 # Check whether --with-toolkit or --without-toolkit was given.
7079 if test "${with_toolkit+set}" = set; then
7080 withval="$with_toolkit"
7082 else
7083 withval="auto"
7086 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7087 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7088 if test "$withval" = "auto" ; then
7089 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7090 echo "${ECHO_T}will be automatically detected" >&6
7091 TOOLKIT="auto"
7092 else
7093 TOOLKIT="$withval"
7095 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7096 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7097 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7098 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7099 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7100 "$TOOLKIT" != "osx_cocoa"; then
7101 { { echo "$as_me:$LINENO: error:
7102 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7103 " >&5
7104 echo "$as_me: error:
7105 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7106 " >&2;}
7107 { (exit 1); exit 1; }; }
7110 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7111 echo "${ECHO_T}$TOOLKIT" >&6
7118 # Check whether --with-wxshared or --without-wxshared was given.
7119 if test "${with_wxshared+set}" = set; then
7120 withval="$with_wxshared"
7122 else
7123 withval="auto"
7126 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7127 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7128 if test "$withval" = "yes" ; then
7129 echo "$as_me:$LINENO: result: yes" >&5
7130 echo "${ECHO_T}yes" >&6
7131 WX_SHARED=1
7133 elif test "1" = "1" -a "$withval" = "no" ; then
7134 echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6
7136 WX_SHARED=0
7137 elif test "$withval" = "auto" ; then
7138 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7139 echo "${ECHO_T}will be automatically detected" >&6
7140 WX_SHARED="auto"
7141 else
7142 { { echo "$as_me:$LINENO: error:
7143 Unrecognized option value (allowed values: yes, auto)
7144 " >&5
7145 echo "$as_me: error:
7146 Unrecognized option value (allowed values: yes, auto)
7147 " >&2;}
7148 { (exit 1); exit 1; }; }
7155 # Check whether --with-wxdebug or --without-wxdebug was given.
7156 if test "${with_wxdebug+set}" = set; then
7157 withval="$with_wxdebug"
7159 else
7160 withval="auto"
7163 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7164 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7165 if test "$withval" = "yes" ; then
7166 echo "$as_me:$LINENO: result: yes" >&5
7167 echo "${ECHO_T}yes" >&6
7168 WX_DEBUG=1
7170 elif test "1" = "1" -a "$withval" = "no" ; then
7171 echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7173 WX_DEBUG=0
7174 elif test "$withval" = "auto" ; then
7175 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7176 echo "${ECHO_T}will be automatically detected" >&6
7177 WX_DEBUG="auto"
7178 else
7179 { { echo "$as_me:$LINENO: error:
7180 Unrecognized option value (allowed values: yes, auto)
7181 " >&5
7182 echo "$as_me: error:
7183 Unrecognized option value (allowed values: yes, auto)
7184 " >&2;}
7185 { (exit 1); exit 1; }; }
7192 # Check whether --with-wxversion or --without-wxversion was given.
7193 if test "${with_wxversion+set}" = set; then
7194 withval="$with_wxversion"
7196 else
7197 withval="auto"
7200 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7201 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7202 if test "$withval" = "auto" ; then
7203 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7204 echo "${ECHO_T}will be automatically detected" >&6
7205 WX_VERSION="auto"
7206 else
7208 wx_requested_major_version=`echo $withval | \
7209 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7210 wx_requested_minor_version=`echo $withval | \
7211 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7213 if test "${#wx_requested_major_version}" != "1" -o \
7214 "${#wx_requested_minor_version}" != "1" ; then
7215 { { echo "$as_me:$LINENO: error:
7216 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7217 " >&5
7218 echo "$as_me: error:
7219 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7220 " >&2;}
7221 { (exit 1); exit 1; }; }
7224 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7225 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7226 echo "${ECHO_T}$WX_VERSION" >&6
7230 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7231 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7232 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7233 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7234 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7235 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7238 # Force using a static wxWidgets library if the executable is to be linked statically.
7239 if test ${enable_static:-no} = yes; then
7240 WX_SHARED=0
7243 # Force using a unicode build of the library
7244 WX_UNICODE=1
7245 DEBUG=$WX_DEBUG
7247 if test "$WX_SHARED" = "1" ; then
7248 WXCONFIG_FLAGS="--static=no "
7249 elif test "$WX_SHARED" = "0" ; then
7250 WXCONFIG_FLAGS="--static=yes "
7253 if test "$WX_DEBUG" = "1" ; then
7254 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7255 elif test "$WX_DEBUG" = "0" ; then
7256 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7259 if test "$WX_UNICODE" = "1" ; then
7260 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7261 elif test "$WX_UNICODE" = "0" ; then
7262 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7265 if test "$TOOLKIT" != "auto" ; then
7266 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7269 if test "$WX_VERSION" != "auto" ; then
7270 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7273 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7275 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7276 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7280 if test x${WX_CONFIG_NAME+set} != xset ; then
7281 WX_CONFIG_NAME=wx-config
7284 if test "x$wx_config_name" != x ; then
7285 WX_CONFIG_NAME="$wx_config_name"
7288 if test x$wx_config_exec_prefix != x ; then
7289 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7290 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7292 if test x$wx_config_prefix != x ; then
7293 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7294 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7296 if test "$cross_compiling" = "yes"; then
7297 wx_config_args="$wx_config_args --host=$host_alias"
7300 if test -x "$WX_CONFIG_NAME" ; then
7301 echo "$as_me:$LINENO: checking for wx-config" >&5
7302 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7303 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7304 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7305 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7306 else
7307 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7308 set dummy $WX_CONFIG_NAME; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 case $WX_CONFIG_PATH in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7321 for as_dir in $as_dummy
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7331 done
7332 done
7334 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7336 esac
7338 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7340 if test -n "$WX_CONFIG_PATH"; then
7341 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7342 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7343 else
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7350 if test "$WX_CONFIG_PATH" != "no" ; then
7351 WX_VERSION_FULL=""
7353 min_wx_version=2.8.8
7354 if test -z "$WXCONFIG_FLAGS" ; then
7355 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7356 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7357 else
7358 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7359 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7362 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7364 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7365 wx_config_major_version=`echo $WX_VERSION_FULL | \
7366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7367 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7369 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7370 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7372 wx_requested_major_version=`echo $min_wx_version | \
7373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7374 wx_requested_minor_version=`echo $min_wx_version | \
7375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7376 wx_requested_micro_version=`echo $min_wx_version | \
7377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7380 wx_ver_ok=""
7381 if test "x$WX_VERSION_FULL" != x ; then
7382 if test $wx_config_major_version -gt $wx_requested_major_version; then
7383 wx_ver_ok=yes
7384 else
7385 if test $wx_config_major_version -eq $wx_requested_major_version; then
7386 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7387 wx_ver_ok=yes
7388 else
7389 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7390 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7391 wx_ver_ok=yes
7400 if test -n "$wx_ver_ok"; then
7402 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7403 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7404 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7406 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7407 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7408 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7409 if test "x$WX_LIBS_STATIC" = "x"; then
7410 echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7412 else
7413 echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7417 wx_has_cppflags=""
7418 if test $wx_config_major_version -gt 2; then
7419 wx_has_cppflags=yes
7420 else
7421 if test $wx_config_major_version -eq 2; then
7422 if test $wx_config_minor_version -gt 2; then
7423 wx_has_cppflags=yes
7424 else
7425 if test $wx_config_minor_version -eq 2; then
7426 if test $wx_config_micro_version -ge 6; then
7427 wx_has_cppflags=yes
7434 wx_has_rescomp=""
7435 if test $wx_config_major_version -gt 2; then
7436 wx_has_rescomp=yes
7437 else
7438 if test $wx_config_major_version -eq 2; then
7439 if test $wx_config_minor_version -ge 7; then
7440 wx_has_rescomp=yes
7444 if test "x$wx_has_rescomp" = x ; then
7445 WX_RESCOMP=
7446 else
7447 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7450 if test "x$wx_has_cppflags" = x ; then
7451 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7452 WX_CPPFLAGS=$WX_CFLAGS
7453 WX_CXXFLAGS=$WX_CFLAGS
7455 WX_CFLAGS_ONLY=$WX_CFLAGS
7456 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7457 else
7458 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7459 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7460 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7462 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7463 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7466 wxWin=1
7468 else
7470 if test "x$WX_VERSION_FULL" = x; then
7471 echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7473 else
7474 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7475 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7478 WX_CFLAGS=""
7479 WX_CPPFLAGS=""
7480 WX_CXXFLAGS=""
7481 WX_LIBS=""
7482 WX_LIBS_STATIC=""
7483 WX_RESCOMP=""
7485 if test ! -z "$WXCONFIG_FLAGS"; then
7487 wx_error_message="
7488 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7489 build with the following settings:
7490 $WXCONFIG_FLAGS
7491 but such build is not available.
7493 To see the wxWidgets builds available on this system, please use
7494 'wx-config --list' command. To use the default build, returned by
7495 'wx-config --selected-config', use the options with their 'auto'
7496 default values."
7500 wx_error_message="
7501 The requested wxWidgets build couldn't be found.
7502 $wx_error_message
7504 If you still get this error, then check that 'wx-config' is
7505 in path, the directory where wxWidgets libraries are installed
7506 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7507 or equivalent variable and wxWidgets version is 2.8.8 or above."
7509 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7510 echo "$as_me: error: $wx_error_message" >&2;}
7511 { (exit 1); exit 1; }; }
7514 else
7516 WX_CFLAGS=""
7517 WX_CPPFLAGS=""
7518 WX_CXXFLAGS=""
7519 WX_LIBS=""
7520 WX_LIBS_STATIC=""
7521 WX_RESCOMP=""
7537 WX_VERSION_MAJOR="$wx_config_major_version"
7538 WX_VERSION_MINOR="$wx_config_minor_version"
7542 if test "$wxWin" != 1; then
7543 { { echo "$as_me:$LINENO: error:
7544 wxWidgets must be installed on your system but wx-config
7545 script couldn't be found. Please check that wx-config is
7546 in path or specified by --with-wx-config=path flag, the
7547 directory where wxWidgets libraries are installed (returned
7548 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7549 equivalent variable and wxWidgets version is 2.8.8 or above.
7550 " >&5
7551 echo "$as_me: error:
7552 wxWidgets must be installed on your system but wx-config
7553 script couldn't be found. Please check that wx-config is
7554 in path or specified by --with-wx-config=path flag, the
7555 directory where wxWidgets libraries are installed (returned
7556 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7557 equivalent variable and wxWidgets version is 2.8.8 or above.
7558 " >&2;}
7559 { (exit 1); exit 1; }; }
7562 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7563 if test $WX_VERSION -lt 26 ; then
7565 { { echo "$as_me:$LINENO: error:
7566 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7567 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7568 version of wxWidgets.
7569 " >&5
7570 echo "$as_me: error:
7571 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7572 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7573 version of wxWidgets.
7574 " >&2;}
7575 { (exit 1); exit 1; }; }
7578 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7580 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7581 echo "[dbg] Using wx-config --selected-config"
7582 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7586 if test $WX_SHARED = "1"; then
7587 STATIC=0
7588 elif test $WX_SHARED = "0"; then
7589 STATIC=1
7590 elif test $WX_SHARED = "auto"; then
7591 STATIC="auto"
7595 if test "$UNICODE" = "auto" ; then
7597 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7598 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7600 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7602 if test "$WX_UNICODE" != "0"; then
7603 WX_UNICODE=1
7604 echo "$as_me:$LINENO: result: yes" >&5
7605 echo "${ECHO_T}yes" >&6
7607 else
7608 WX_UNICODE=0
7609 echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7613 else
7615 WX_UNICODE=$UNICODE
7619 if test "$DEBUG" = "auto" ; then
7621 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7622 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7624 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7626 if test "$WX_DEBUG" != "0"; then
7627 WX_DEBUG=1
7628 echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7631 else
7632 WX_DEBUG=0
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7637 else
7639 WX_DEBUG=$DEBUG
7643 if test "$STATIC" = "auto" ; then
7645 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7646 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7648 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7650 if test "$WX_STATIC" != "0"; then
7651 WX_STATIC=1
7652 echo "$as_me:$LINENO: result: yes" >&5
7653 echo "${ECHO_T}yes" >&6
7655 else
7656 WX_STATIC=0
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7661 else
7663 WX_STATIC=$STATIC
7667 if test "$WX_STATIC" != "0"; then
7668 WX_SHARED=0
7669 else
7670 WX_SHARED=1
7677 if test "$TOOLKIT" = "auto" ; then
7679 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7680 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7682 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7683 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7684 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7685 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7686 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7687 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7688 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7689 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7690 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7691 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7692 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7694 WX_PORT="unknown"
7695 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7696 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7697 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7698 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7699 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7700 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7701 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7702 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7703 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7704 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7705 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7708 if test "$WX_PORT" = "unknown" ; then
7709 { { echo "$as_me:$LINENO: error:
7710 Cannot detect the currently installed wxWidgets port !
7711 Please check your 'wx-config --cxxflags'...
7712 " >&5
7713 echo "$as_me: error:
7714 Cannot detect the currently installed wxWidgets port !
7715 Please check your 'wx-config --cxxflags'...
7716 " >&2;}
7717 { (exit 1); exit 1; }; }
7720 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7721 echo "${ECHO_T}$WX_PORT" >&6
7722 else
7724 if test -n "$TOOLKIT" ; then
7725 WX_PORT=$TOOLKIT
7726 else
7727 WX_PORT=$PORT
7733 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7734 echo "[dbg] Values of all WX_* options after final detection:"
7735 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7736 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7737 echo "[dbg] WX_SHARED: $WX_SHARED"
7738 echo "[dbg] WX_VERSION: $WX_VERSION"
7739 echo "[dbg] WX_PORT: $WX_PORT"
7742 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7743 { { echo "$as_me:$LINENO: error:
7744 Cannot build shared library against a static build of wxWidgets !
7745 This error happens because the wxWidgets build which was selected
7746 has been detected as static while you asked to build $PACKAGE_NAME
7747 as shared library and this is not possible.
7748 Use the '--disable-shared' option to build $PACKAGE_NAME
7749 as static library or '--with-wxshared' to use wxWidgets as shared library.
7750 " >&5
7751 echo "$as_me: error:
7752 Cannot build shared library against a static build of wxWidgets !
7753 This error happens because the wxWidgets build which was selected
7754 has been detected as static while you asked to build $PACKAGE_NAME
7755 as shared library and this is not possible.
7756 Use the '--disable-shared' option to build $PACKAGE_NAME
7757 as static library or '--with-wxshared' to use wxWidgets as shared library.
7758 " >&2;}
7759 { (exit 1); exit 1; }; }
7762 if test "$DEBUG" = "auto"; then
7763 DEBUG=$WX_DEBUG
7765 if test "$DEBUG" = "1"; then
7766 BUILD="debug"
7767 elif test "$DEBUG" = ""; then
7768 BUILD="release"
7771 if test "$UNICODE" = "auto"; then
7772 UNICODE=$WX_UNICODE
7774 if test "$SHARED" = "auto"; then
7775 SHARED=$WX_SHARED
7777 if test "$TOOLKIT" = "auto"; then
7778 TOOLKIT=$WX_PORT
7783 # We also need wxBase
7784 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7785 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7786 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7790 if test ${need_gui} = yes -a "${WX_PORT}" = base; then
7791 { { echo "$as_me:$LINENO: error:
7792 The selected components need a wxWidgets library with GUI,
7793 but your installation is base-only. Please install a GUI
7794 enabled version of wxWidgets and then retry.
7795 " >&5
7796 echo "$as_me: error:
7797 The selected components need a wxWidgets library with GUI,
7798 but your installation is base-only. Please install a GUI
7799 enabled version of wxWidgets and then retry.
7800 " >&2;}
7801 { (exit 1); exit 1; }; }
7806 if test ${SYS:-unknown} = win32; then
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}windres; ac_word=$2
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813 if test "${ac_cv_prog_RC+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 if test -n "$RC"; then
7817 ac_cv_prog_RC="$RC" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_RC="${ac_tool_prefix}windres"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7835 RC=$ac_cv_prog_RC
7836 if test -n "$RC"; then
7837 echo "$as_me:$LINENO: result: $RC" >&5
7838 echo "${ECHO_T}$RC" >&6
7839 else
7840 echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6
7845 if test -z "$ac_cv_prog_RC"; then
7846 ac_ct_RC=$RC
7847 # Extract the first word of "windres", so it can be a program name with args.
7848 set dummy windres; ac_word=$2
7849 echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7851 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854 if test -n "$ac_ct_RC"; then
7855 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_RC="windres"
7865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7871 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7874 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7875 if test -n "$ac_ct_RC"; then
7876 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7877 echo "${ECHO_T}$ac_ct_RC" >&6
7878 else
7879 echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7883 RC=$ac_ct_RC
7884 else
7885 RC="$ac_cv_prog_RC"
7888 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7894 # Check for libupnp
7895 if test "${ENABLE_UPNP:-yes}" = yes; then
7899 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 case $PKG_CONFIG in
7909 [\\/]* | ?:[\\/]*)
7910 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7924 done
7925 done
7928 esac
7930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7932 if test -n "$PKG_CONFIG"; then
7933 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7934 echo "${ECHO_T}$PKG_CONFIG" >&6
7935 else
7936 echo "$as_me:$LINENO: result: no" >&5
7937 echo "${ECHO_T}no" >&6
7941 if test -z "$ac_cv_path_PKG_CONFIG"; then
7942 ac_pt_PKG_CONFIG=$PKG_CONFIG
7943 # Extract the first word of "pkg-config", so it can be a program name with args.
7944 set dummy pkg-config; ac_word=$2
7945 echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 case $ac_pt_PKG_CONFIG in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7970 esac
7972 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7974 if test -n "$ac_pt_PKG_CONFIG"; then
7975 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7976 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7977 else
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7982 PKG_CONFIG=$ac_pt_PKG_CONFIG
7983 else
7984 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7988 if test -n "$PKG_CONFIG"; then
7989 _pkg_min_version=0.9.0
7990 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7991 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7992 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7993 echo "$as_me:$LINENO: result: yes" >&5
7994 echo "${ECHO_T}yes" >&6
7995 else
7996 echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6
7998 PKG_CONFIG=""
8004 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8005 if test "${with_libupnp_prefix+set}" = set; then
8006 withval="$with_libupnp_prefix"
8007 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8010 if test $cross_compiling = no; then
8012 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8013 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8014 if test -n "$PKG_CONFIG"; then
8016 if $PKG_CONFIG libupnp --exists; then
8018 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8019 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8021 result=yes
8022 resultstr=" (version $LIBUPNP_VERSION)"
8023 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8024 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8025 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8026 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8027 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8029 else
8031 result=no
8032 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8037 else
8039 result=no
8040 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8045 else
8047 result=no
8048 resultstr=" (pkg-config not found)"
8052 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8053 echo "${ECHO_T}$result$resultstr" >&6
8054 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8056 else
8058 result=no
8059 libupnp_error="cross compiling"
8064 if test ${result:-no} = yes; then
8065 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8066 else
8067 ENABLE_UPNP=disabled
8068 { echo "$as_me:$LINENO: WARNING:
8069 UPnP code has been disabled because ${libupnp_error}." >&5
8070 echo "$as_me: WARNING:
8071 UPnP code has been disabled because ${libupnp_error}." >&2;}
8072 _mule_warning_5=yes
8073 _mule_has_warnings=yes
8084 # Check for Crypto++
8087 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8088 if test "${with_crypto_prefix+set}" = set; then
8089 withval="$with_crypto_prefix"
8093 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8094 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8096 cryptopp_file_with_version="cryptlib.h"
8098 CRYPTOPP_STYLE="unknown"
8099 CRYPTOPP_LIB_NAME="unknown"
8100 cryptopp_includedir="unknown"
8101 CRYPTOPP_INCLUDE_PREFIX="unknown"
8102 cryptopp_libdir="unknown"
8104 if test -n "$with_crypto_prefix"; then
8106 CRYPTOPP_PREFIX="$with_crypto_prefix"
8107 # Find the Cryptopp header in the user-provided location
8108 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8110 CRYPTOPP_STYLE="sources"
8111 CRYPTOPP_LIB_NAME="cryptopp"
8112 cryptopp_includedir=
8113 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8114 cryptopp_libdir=
8116 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8118 CRYPTOPP_STYLE="installed"
8119 CRYPTOPP_LIB_NAME="cryptopp"
8120 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8121 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8122 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8124 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8126 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8127 CRYPTOPP_STYLE="gentoo_debian"
8128 CRYPTOPP_LIB_NAME="crypto++"
8129 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8130 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8131 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8136 else
8138 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8139 # Find the Cryptopp header in system locations
8140 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8142 CRYPTOPP_STYLE="sources"
8143 CRYPTOPP_LIB_NAME="cryptopp"
8144 cryptopp_includedir=
8145 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8146 cryptopp_libdir=
8147 break
8149 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8151 CRYPTOPP_STYLE="installed"
8152 CRYPTOPP_LIB_NAME="cryptopp"
8153 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8154 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8155 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8156 break
8158 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8160 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8161 CRYPTOPP_STYLE="gentoo_debian"
8162 CRYPTOPP_LIB_NAME="crypto++"
8163 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8164 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8165 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8166 break
8170 done
8175 if test $CRYPTOPP_STYLE = "unknown"; then
8176 result=no; resultstr=""
8177 else
8179 # Find out the crypto++ version and check against the minimum required
8180 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8181 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8182 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8183 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8185 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8187 result=yes
8188 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8189 if test -n "$cryptopp_includedir"; then
8190 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8191 else
8192 CRYPTOPP_CPPFLAGS=
8195 if test -n "$cryptopp_libdir"; then
8197 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8198 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8200 else
8202 CRYPTOPP_LDFLAGS=
8203 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8209 cat >>confdefs.h <<_ACEOF
8210 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8211 _ACEOF
8214 else
8216 result=no
8217 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8225 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8226 echo "${ECHO_T}$result$resultstr" >&6
8228 if test ${result:-no} = yes; then
8230 # Check for CryptoPP >= 5.5
8231 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8232 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8236 else
8238 { { echo "$as_me:$LINENO: error:
8239 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8240 Please try again with --with-crypto-prefix=/my_crypto_prefix
8241 (replace /my_crypto_prefix with a valid path to your crypto++
8242 installation directory)." >&5
8243 echo "$as_me: error:
8244 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8245 Please try again with --with-crypto-prefix=/my_crypto_prefix
8246 (replace /my_crypto_prefix with a valid path to your crypto++
8247 installation directory)." >&2;}
8248 { (exit 1); exit 1; }; }
8255 ac_ext=cc
8256 ac_cpp='$CXXCPP $CPPFLAGS'
8257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8264 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8265 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 #include <string>
8275 #ifndef __GLIBCXX__
8276 #error Non-GNU C++ library found.
8277 #endif
8280 _ACEOF
8281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } >/dev/null; then
8289 if test -s conftest.err; then
8290 ac_cpp_err=$ac_cxx_preproc_warn_flag
8291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8292 else
8293 ac_cpp_err=
8295 else
8296 ac_cpp_err=yes
8298 if test -z "$ac_cpp_err"; then
8299 GLIBCXX=yes
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 GLIBCXX=no
8306 rm -f conftest.err conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8308 echo "${ECHO_T}$GLIBCXX" >&6
8311 mule_backup_CPPFLAGS="$CPPFLAGS"
8312 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8314 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8315 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 #include <wx/wx.h>
8325 #include <wx/filefn.h>
8326 #ifndef wxHAS_LARGE_FILES
8327 #error No LargeFile support!
8328 #endif
8331 _ACEOF
8332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } >/dev/null; then
8340 if test -s conftest.err; then
8341 ac_cpp_err=$ac_cxx_preproc_warn_flag
8342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8343 else
8344 ac_cpp_err=
8346 else
8347 ac_cpp_err=yes
8349 if test -z "$ac_cpp_err"; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352 echo "${ECHO_T}yes" >&6
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361 { { echo "$as_me:$LINENO: error:
8362 Support for large files in wxWidgets is required by aMule.
8363 To continue you must recompile wxWidgets with support for
8364 large files enabled." >&5
8365 echo "$as_me: error:
8366 Support for large files in wxWidgets is required by aMule.
8367 To continue you must recompile wxWidgets with support for
8368 large files enabled." >&2;}
8369 { (exit 1); exit 1; }; }
8372 rm -f conftest.err conftest.$ac_ext
8374 CPPFLAGS="$mule_backup_CPPFLAGS"
8377 # Check if the compiler is broken, wrt. exceptions.
8379 echo "$as_me:$LINENO: checking for exception-handling" >&5
8380 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8381 if test "$cross_compiling" = yes; then
8383 echo "$as_me:$LINENO: result: undeterminable" >&5
8384 echo "${ECHO_T}undeterminable" >&6
8385 { echo "$as_me:$LINENO: WARNING:
8386 Cross-compilation detected, so exception handling cannot be tested.
8387 Note that broken exception handling in your compiler may lead to
8388 unexpected crashes." >&5
8389 echo "$as_me: WARNING:
8390 Cross-compilation detected, so exception handling cannot be tested.
8391 Note that broken exception handling in your compiler may lead to
8392 unexpected crashes." >&2;}
8393 _mule_warning_6=yes
8394 _mule_has_warnings=yes
8397 else
8398 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8407 main ()
8410 try {
8411 throw 1;
8412 } catch (int) {
8413 return 0;
8415 return 1;
8418 return 0;
8421 _ACEOF
8422 rm -f conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435 echo "${ECHO_T}yes" >&6
8437 else
8438 echo "$as_me: program exited with status $ac_status" >&5
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ( exit $ac_status )
8444 echo "$as_me:$LINENO: result: no" >&5
8445 echo "${ECHO_T}no" >&6
8446 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8447 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8448 { (exit 1); exit 1; }; }
8451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8457 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8466 #include <cxxabi.h>
8469 main ()
8472 int status;
8473 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8474 std::type_info *ti = abi::__cxa_current_exception_type();
8477 return 0;
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_cxx_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HAVE_CXXABI 1
8508 _ACEOF
8510 echo "$as_me:$LINENO: result: yes" >&5
8511 echo "${ECHO_T}yes" >&6
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6
8522 rm -f conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8525 ac_ext=c
8526 ac_cpp='$CPP $CPPFLAGS'
8527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8532 # Ok, we have all needed libs, now checking for other stuff
8533 if test "$LEX" = "flex"; then
8535 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8536 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8538 extended_flex=`flex --help | grep header-file`
8539 if test -n "$extended_flex"; then
8540 HAVE_FLEX_EXTENDED=yes
8541 else
8542 HAVE_FLEX_EXTENDED=no
8545 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8546 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8548 if test $HAVE_FLEX_EXTENDED = no; then
8549 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8550 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8554 else
8555 HAVE_FLEX_EXTENDED=no
8559 # Flush standard test results for speeding cache
8560 cat >confcache <<\_ACEOF
8561 # This file is a shell script that caches the results of configure
8562 # tests run on this system so they can be shared between configure
8563 # scripts and configure runs, see configure's option --config-cache.
8564 # It is not useful on other systems. If it contains results you don't
8565 # want to keep, you may remove or edit it.
8567 # config.status only pays attention to the cache file if you give it
8568 # the --recheck option to rerun configure.
8570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8572 # following values.
8574 _ACEOF
8576 # The following way of writing the cache mishandles newlines in values,
8577 # but we know of no workaround that is simple, portable, and efficient.
8578 # So, don't put newlines in cache variables' values.
8579 # Ultrix sh set writes to stderr and can't be redirected directly,
8580 # and sets the high bit in the cache file unless we assign to the vars.
8582 (set) 2>&1 |
8583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8584 *ac_space=\ *)
8585 # `set' does not quote correctly, so add quotes (double-quote
8586 # substitution turns \\\\ into \\, and sed turns \\ into \).
8587 sed -n \
8588 "s/'/'\\\\''/g;
8589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8592 # `set' quotes correctly as required by POSIX, so do not add quotes.
8593 sed -n \
8594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8596 esac;
8598 sed '
8599 t clear
8600 : clear
8601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8602 t end
8603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8604 : end' >>confcache
8605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8606 if test -w $cache_file; then
8607 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8608 cat confcache >$cache_file
8609 else
8610 echo "not updating unwritable cache $cache_file"
8613 rm -f confcache
8615 # Checks for header files.
8616 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8617 # for constant arguments. Useless!
8618 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8619 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8620 if test "${ac_cv_working_alloca_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 #include <alloca.h>
8631 main ()
8633 char *p = (char *) alloca (2 * sizeof (int));
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_working_alloca_h=yes
8661 else
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_working_alloca_h=no
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8671 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8672 if test $ac_cv_working_alloca_h = yes; then
8674 cat >>confdefs.h <<\_ACEOF
8675 #define HAVE_ALLOCA_H 1
8676 _ACEOF
8680 echo "$as_me:$LINENO: checking for alloca" >&5
8681 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8682 if test "${ac_cv_func_alloca_works+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #ifdef __GNUC__
8692 # define alloca __builtin_alloca
8693 #else
8694 # ifdef _MSC_VER
8695 # include <malloc.h>
8696 # define alloca _alloca
8697 # else
8698 # if HAVE_ALLOCA_H
8699 # include <alloca.h>
8700 # else
8701 # ifdef _AIX
8702 #pragma alloca
8703 # else
8704 # ifndef alloca /* predefined by HP cc +Olibcalls */
8705 char *alloca ();
8706 # endif
8707 # endif
8708 # endif
8709 # endif
8710 #endif
8713 main ()
8715 char *p = (char *) alloca (1);
8717 return 0;
8719 _ACEOF
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_func_alloca_works=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_func_alloca_works=no
8749 rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8753 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8755 if test $ac_cv_func_alloca_works = yes; then
8757 cat >>confdefs.h <<\_ACEOF
8758 #define HAVE_ALLOCA 1
8759 _ACEOF
8761 else
8762 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8763 # that cause trouble. Some versions do not even contain alloca or
8764 # contain a buggy version. If you still want to use their alloca,
8765 # use ar to extract alloca.o from them instead of compiling alloca.c.
8767 ALLOCA=alloca.$ac_objext
8769 cat >>confdefs.h <<\_ACEOF
8770 #define C_ALLOCA 1
8771 _ACEOF
8774 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8775 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8776 if test "${ac_cv_os_cray+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 #if defined(CRAY) && ! defined(CRAY2)
8786 webecray
8787 #else
8788 wenotbecray
8789 #endif
8791 _ACEOF
8792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8793 $EGREP "webecray" >/dev/null 2>&1; then
8794 ac_cv_os_cray=yes
8795 else
8796 ac_cv_os_cray=no
8798 rm -f conftest*
8801 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8802 echo "${ECHO_T}$ac_cv_os_cray" >&6
8803 if test $ac_cv_os_cray = yes; then
8804 for ac_func in _getb67 GETB67 getb67; do
8805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8806 echo "$as_me:$LINENO: checking for $ac_func" >&5
8807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8808 if eval "test \"\${$as_ac_var+set}\" = set"; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8819 #define $ac_func innocuous_$ac_func
8821 /* System header to define __stub macros and hopefully few prototypes,
8822 which can conflict with char $ac_func (); below.
8823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8824 <limits.h> exists even on freestanding compilers. */
8826 #ifdef __STDC__
8827 # include <limits.h>
8828 #else
8829 # include <assert.h>
8830 #endif
8832 #undef $ac_func
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 #ifdef __cplusplus
8836 extern "C"
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8841 char $ac_func ();
8842 /* The GNU C library defines this for functions which it implements
8843 to always fail with ENOSYS. Some functions are actually named
8844 something starting with __ and the normal name is an alias. */
8845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8846 choke me
8847 #else
8848 char (*f) () = $ac_func;
8849 #endif
8850 #ifdef __cplusplus
8852 #endif
8855 main ()
8857 return f != $ac_func;
8859 return 0;
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 eval "$as_ac_var=yes"
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 eval "$as_ac_var=no"
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8896 if test `eval echo '${'$as_ac_var'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define CRAY_STACKSEG_END $ac_func
8900 _ACEOF
8902 break
8905 done
8908 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8909 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8910 if test "${ac_cv_c_stack_direction+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 if test "$cross_compiling" = yes; then
8914 ac_cv_c_stack_direction=0
8915 else
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8923 find_stack_direction ()
8925 static char *addr = 0;
8926 auto char dummy;
8927 if (addr == 0)
8929 addr = &dummy;
8930 return find_stack_direction ();
8932 else
8933 return (&dummy > addr) ? 1 : -1;
8937 main ()
8939 exit (find_stack_direction () < 0);
8941 _ACEOF
8942 rm -f conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_c_stack_direction=1
8954 else
8955 echo "$as_me: program exited with status $ac_status" >&5
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ( exit $ac_status )
8960 ac_cv_c_stack_direction=-1
8962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8966 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8968 cat >>confdefs.h <<_ACEOF
8969 #define STACK_DIRECTION $ac_cv_c_stack_direction
8970 _ACEOF
8980 ac_header_dirent=no
8981 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8982 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8983 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8984 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 #include <sys/types.h>
8995 #include <$ac_hdr>
8998 main ()
9000 if ((DIR *) 0)
9001 return 0;
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -z "$ac_c_werror_flag"
9016 || test ! -s conftest.err'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; } &&
9022 { ac_try='test -s conftest.$ac_objext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 eval "$as_ac_Header=yes"
9029 else
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9033 eval "$as_ac_Header=no"
9035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9042 _ACEOF
9044 ac_header_dirent=$ac_hdr; break
9047 done
9048 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9049 if test $ac_header_dirent = dirent.h; then
9050 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9051 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9052 if test "${ac_cv_search_opendir+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 ac_func_search_save_LIBS=$LIBS
9056 ac_cv_search_opendir=no
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 #ifdef __cplusplus
9066 extern "C"
9067 #endif
9068 /* We use char because int might match the return type of a gcc2
9069 builtin and then its argument prototype would still apply. */
9070 char opendir ();
9072 main ()
9074 opendir ();
9076 return 0;
9078 _ACEOF
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9081 (eval $ac_link) 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag"
9089 || test ! -s conftest.err'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 ac_cv_search_opendir="none required"
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 if test "$ac_cv_search_opendir" = no; then
9110 for ac_lib in dir; do
9111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 #endif
9123 /* We use char because int might match the return type of a gcc2
9124 builtin and then its argument prototype would still apply. */
9125 char opendir ();
9127 main ()
9129 opendir ();
9131 return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_search_opendir="-l$ac_lib"
9157 break
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9163 rm -f conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 done
9167 LIBS=$ac_func_search_save_LIBS
9169 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9170 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9171 if test "$ac_cv_search_opendir" != no; then
9172 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9176 else
9177 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9179 if test "${ac_cv_search_opendir+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 ac_func_search_save_LIBS=$LIBS
9183 ac_cv_search_opendir=no
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9191 /* Override any gcc2 internal prototype to avoid an error. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9197 char opendir ();
9199 main ()
9201 opendir ();
9203 return 0;
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_cv_search_opendir="none required"
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9234 rm -f conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 if test "$ac_cv_search_opendir" = no; then
9237 for ac_lib in x; do
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9246 /* Override any gcc2 internal prototype to avoid an error. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 #endif
9250 /* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9252 char opendir ();
9254 main ()
9256 opendir ();
9258 return 0;
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_search_opendir="-l$ac_lib"
9284 break
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 done
9294 LIBS=$ac_func_search_save_LIBS
9296 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9297 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9298 if test "$ac_cv_search_opendir" != no; then
9299 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9307 if test "${ac_cv_header_stdc+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 #include <stdlib.h>
9317 #include <stdarg.h>
9318 #include <string.h>
9319 #include <float.h>
9322 main ()
9326 return 0;
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_header_stdc=yes
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_header_stdc=no
9358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9360 if test $ac_cv_header_stdc = yes; then
9361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <string.h>
9370 _ACEOF
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "memchr" >/dev/null 2>&1; then
9374 else
9375 ac_cv_header_stdc=no
9377 rm -f conftest*
9381 if test $ac_cv_header_stdc = yes; then
9382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <stdlib.h>
9391 _ACEOF
9392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $EGREP "free" >/dev/null 2>&1; then
9395 else
9396 ac_cv_header_stdc=no
9398 rm -f conftest*
9402 if test $ac_cv_header_stdc = yes; then
9403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9404 if test "$cross_compiling" = yes; then
9406 else
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 #include <ctype.h>
9414 #if ((' ' & 0x0FF) == 0x020)
9415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9417 #else
9418 # define ISLOWER(c) \
9419 (('a' <= (c) && (c) <= 'i') \
9420 || ('j' <= (c) && (c) <= 'r') \
9421 || ('s' <= (c) && (c) <= 'z'))
9422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9423 #endif
9425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9427 main ()
9429 int i;
9430 for (i = 0; i < 256; i++)
9431 if (XOR (islower (i), ISLOWER (i))
9432 || toupper (i) != TOUPPER (i))
9433 exit(2);
9434 exit (0);
9436 _ACEOF
9437 rm -f conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9449 else
9450 echo "$as_me: program exited with status $ac_status" >&5
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ( exit $ac_status )
9455 ac_cv_header_stdc=no
9457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9463 if test $ac_cv_header_stdc = yes; then
9465 cat >>confdefs.h <<\_ACEOF
9466 #define STDC_HEADERS 1
9467 _ACEOF
9505 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9509 echo "$as_me:$LINENO: checking for $ac_header" >&5
9510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9516 else
9517 # Is the header compilable?
9518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 #include <$ac_header>
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag"
9539 || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_header_compiler=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_header_compiler=no
9558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 echo "${ECHO_T}$ac_header_compiler" >&6
9562 # Is the header present?
9563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 #include <$ac_header>
9572 _ACEOF
9573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } >/dev/null; then
9581 if test -s conftest.err; then
9582 ac_cpp_err=$ac_c_preproc_warn_flag
9583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9584 else
9585 ac_cpp_err=
9587 else
9588 ac_cpp_err=yes
9590 if test -z "$ac_cpp_err"; then
9591 ac_header_preproc=yes
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_header_preproc=no
9598 rm -f conftest.err conftest.$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 echo "${ECHO_T}$ac_header_preproc" >&6
9602 # So? What about this header?
9603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9604 yes:no: )
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9609 ac_header_preproc=yes
9611 no:yes:* )
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9625 cat <<\_ASBOX
9626 ## ------------------------------ ##
9627 ## Report this to admin@amule.org ##
9628 ## ------------------------------ ##
9629 _ASBOX
9631 sed "s/^/$as_me: WARNING: /" >&2
9633 esac
9634 echo "$as_me:$LINENO: checking for $ac_header" >&5
9635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 eval "$as_ac_Header=\$ac_header_preproc"
9641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9648 _ACEOF
9652 done
9654 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9655 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9656 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 #include <sys/types.h>
9666 #include <sys/wait.h>
9667 #ifndef WEXITSTATUS
9668 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9669 #endif
9670 #ifndef WIFEXITED
9671 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9672 #endif
9675 main ()
9677 int s;
9678 wait (&s);
9679 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9686 (eval $ac_compile) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_header_sys_wait_h=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_header_sys_wait_h=no
9713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9716 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9717 if test $ac_cv_header_sys_wait_h = yes; then
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_SYS_WAIT_H 1
9721 _ACEOF
9726 # Checks for typedefs, structures, and compiler characteristics.
9727 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9728 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9729 if test "${ac_cv_header_stdbool_h+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9739 #include <stdbool.h>
9740 #ifndef bool
9741 # error bool is not defined
9742 #endif
9743 #ifndef false
9744 # error false is not defined
9745 #endif
9746 #if false
9747 # error false is not 0
9748 #endif
9749 #ifndef true
9750 # error true is not defined
9751 #endif
9752 #if true != 1
9753 # error true is not 1
9754 #endif
9755 #ifndef __bool_true_false_are_defined
9756 # error __bool_true_false_are_defined is not defined
9757 #endif
9759 struct s { _Bool s: 1; _Bool t; } s;
9761 char a[true == 1 ? 1 : -1];
9762 char b[false == 0 ? 1 : -1];
9763 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9764 char d[(bool) -0.5 == true ? 1 : -1];
9765 bool e = &s;
9766 char f[(_Bool) -0.0 == false ? 1 : -1];
9767 char g[true];
9768 char h[sizeof (_Bool)];
9769 char i[sizeof s.t];
9772 main ()
9774 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 ac_cv_header_stdbool_h=yes
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_cv_header_stdbool_h=no
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9811 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9812 echo "$as_me:$LINENO: checking for _Bool" >&5
9813 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9814 if test "${ac_cv_type__Bool+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9825 main ()
9827 if ((_Bool *) 0)
9828 return 0;
9829 if (sizeof (_Bool))
9830 return 0;
9832 return 0;
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837 (eval $ac_compile) 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest.$ac_objext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_type__Bool=yes
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_cv_type__Bool=no
9864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9867 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9868 if test $ac_cv_type__Bool = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define HAVE__BOOL 1
9872 _ACEOF
9877 if test $ac_cv_header_stdbool_h = yes; then
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_STDBOOL_H 1
9881 _ACEOF
9885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9887 if test "${ac_cv_c_const+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9898 main ()
9900 /* FIXME: Include the comments suggested by Paul. */
9901 #ifndef __cplusplus
9902 /* Ultrix mips cc rejects this. */
9903 typedef int charset[2];
9904 const charset x;
9905 /* SunOS 4.1.1 cc rejects this. */
9906 char const *const *ccp;
9907 char **p;
9908 /* NEC SVR4.0.2 mips cc rejects this. */
9909 struct point {int x, y;};
9910 static struct point const zero = {0,0};
9911 /* AIX XL C 1.02.0.0 rejects this.
9912 It does not let you subtract one const X* pointer from another in
9913 an arm of an if-expression whose if-part is not a constant
9914 expression */
9915 const char *g = "string";
9916 ccp = &g + (g ? g-g : 0);
9917 /* HPUX 7.0 cc rejects these. */
9918 ++ccp;
9919 p = (char**) ccp;
9920 ccp = (char const *const *) p;
9921 { /* SCO 3.2v4 cc rejects this. */
9922 char *t;
9923 char const *s = 0 ? (char *) 0 : (char const *) 0;
9925 *t++ = 0;
9927 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9928 int x[] = {25, 17};
9929 const int *foo = &x[0];
9930 ++foo;
9932 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9933 typedef const int *iptr;
9934 iptr p = 0;
9935 ++p;
9937 { /* AIX XL C 1.02.0.0 rejects this saying
9938 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9939 struct s { int j; const int *ap[3]; };
9940 struct s *b; b->j = 5;
9942 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9943 const int foo = 10;
9945 #endif
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953 (eval $ac_compile) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_c_const=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_c_const=no
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9983 echo "${ECHO_T}$ac_cv_c_const" >&6
9984 if test $ac_cv_c_const = no; then
9986 cat >>confdefs.h <<\_ACEOF
9987 #define const
9988 _ACEOF
9992 echo "$as_me:$LINENO: checking for inline" >&5
9993 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9994 if test "${ac_cv_c_inline+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 ac_cv_c_inline=no
9998 for ac_kw in inline __inline__ __inline; do
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #ifndef __cplusplus
10006 typedef int foo_t;
10007 static $ac_kw foo_t static_foo () {return 0; }
10008 $ac_kw foo_t foo () {return 0; }
10009 #endif
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest.$ac_objext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_c_inline=$ac_kw; break
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 done
10044 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10045 echo "${ECHO_T}$ac_cv_c_inline" >&6
10048 case $ac_cv_c_inline in
10049 inline | yes) ;;
10051 case $ac_cv_c_inline in
10052 no) ac_val=;;
10053 *) ac_val=$ac_cv_c_inline;;
10054 esac
10055 cat >>confdefs.h <<_ACEOF
10056 #ifndef __cplusplus
10057 #define inline $ac_val
10058 #endif
10059 _ACEOF
10061 esac
10063 echo "$as_me:$LINENO: checking for mode_t" >&5
10064 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10065 if test "${ac_cv_type_mode_t+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10076 main ()
10078 if ((mode_t *) 0)
10079 return 0;
10080 if (sizeof (mode_t))
10081 return 0;
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088 (eval $ac_compile) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_type_mode_t=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_type_mode_t=no
10115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10118 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10119 if test $ac_cv_type_mode_t = yes; then
10121 else
10123 cat >>confdefs.h <<_ACEOF
10124 #define mode_t int
10125 _ACEOF
10129 echo "$as_me:$LINENO: checking for off_t" >&5
10130 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10131 if test "${ac_cv_type_off_t+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 $ac_includes_default
10142 main ()
10144 if ((off_t *) 0)
10145 return 0;
10146 if (sizeof (off_t))
10147 return 0;
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>conftest.er1
10155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag"
10162 || test ! -s conftest.err'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest.$ac_objext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_cv_type_off_t=yes
10175 else
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 ac_cv_type_off_t=no
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10184 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10185 if test $ac_cv_type_off_t = yes; then
10187 else
10189 cat >>confdefs.h <<_ACEOF
10190 #define off_t long
10191 _ACEOF
10195 echo "$as_me:$LINENO: checking for size_t" >&5
10196 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10197 if test "${ac_cv_type_size_t+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10208 main ()
10210 if ((size_t *) 0)
10211 return 0;
10212 if (sizeof (size_t))
10213 return 0;
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_type_size_t=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_type_size_t=no
10247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10250 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10251 if test $ac_cv_type_size_t = yes; then
10253 else
10255 cat >>confdefs.h <<_ACEOF
10256 #define size_t unsigned
10257 _ACEOF
10261 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10262 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10263 if test "${ac_cv_header_time+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 #include <sys/types.h>
10273 #include <sys/time.h>
10274 #include <time.h>
10277 main ()
10279 if ((struct tm *) 0)
10280 return 0;
10282 return 0;
10284 _ACEOF
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_header_time=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_header_time=no
10314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10317 echo "${ECHO_T}$ac_cv_header_time" >&6
10318 if test $ac_cv_header_time = yes; then
10320 cat >>confdefs.h <<\_ACEOF
10321 #define TIME_WITH_SYS_TIME 1
10322 _ACEOF
10326 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10327 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10328 if test "${ac_cv_struct_tm+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <sys/types.h>
10338 #include <time.h>
10341 main ()
10343 struct tm *tp; tp->tm_sec;
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350 (eval $ac_compile) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag"
10358 || test ! -s conftest.err'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest.$ac_objext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_struct_tm=time.h
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_cv_struct_tm=sys/time.h
10377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10380 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10381 if test $ac_cv_struct_tm = sys/time.h; then
10383 cat >>confdefs.h <<\_ACEOF
10384 #define TM_IN_SYS_TIME 1
10385 _ACEOF
10389 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10390 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10391 if test "${ac_cv_type_uid_t+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 #include <sys/types.h>
10402 _ACEOF
10403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10404 $EGREP "uid_t" >/dev/null 2>&1; then
10405 ac_cv_type_uid_t=yes
10406 else
10407 ac_cv_type_uid_t=no
10409 rm -f conftest*
10412 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10413 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10414 if test $ac_cv_type_uid_t = no; then
10416 cat >>confdefs.h <<\_ACEOF
10417 #define uid_t int
10418 _ACEOF
10421 cat >>confdefs.h <<\_ACEOF
10422 #define gid_t int
10423 _ACEOF
10427 echo "$as_me:$LINENO: checking for working volatile" >&5
10428 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10429 if test "${ac_cv_c_volatile+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10440 main ()
10443 volatile int x;
10444 int * volatile y;
10446 return 0;
10448 _ACEOF
10449 rm -f conftest.$ac_objext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451 (eval $ac_compile) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_c_volatile=yes
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 ac_cv_c_volatile=no
10478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10481 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10482 if test $ac_cv_c_volatile = no; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define volatile
10486 _ACEOF
10490 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10491 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10492 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10503 main ()
10505 if ((ptrdiff_t *) 0)
10506 return 0;
10507 if (sizeof (ptrdiff_t))
10508 return 0;
10510 return 0;
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_type_ptrdiff_t=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 ac_cv_type_ptrdiff_t=no
10542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10545 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10546 if test $ac_cv_type_ptrdiff_t = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define HAVE_PTRDIFF_T 1
10550 _ACEOF
10556 # Checks for library functions.
10557 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10558 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10559 if test "${ac_cv_func_closedir_void+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 if test "$cross_compiling" = yes; then
10563 ac_cv_func_closedir_void=yes
10564 else
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 $ac_includes_default
10572 #include <$ac_header_dirent>
10573 #ifndef __cplusplus
10574 int closedir ();
10575 #endif
10578 main ()
10580 exit (closedir (opendir (".")) != 0);
10582 return 0;
10584 _ACEOF
10585 rm -f conftest$ac_exeext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_cv_func_closedir_void=no
10597 else
10598 echo "$as_me: program exited with status $ac_status" >&5
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ( exit $ac_status )
10603 ac_cv_func_closedir_void=yes
10605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10608 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10609 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10610 if test $ac_cv_func_closedir_void = yes; then
10612 cat >>confdefs.h <<\_ACEOF
10613 #define CLOSEDIR_VOID 1
10614 _ACEOF
10618 if test $ac_cv_c_compiler_gnu = yes; then
10619 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10620 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10621 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 ac_pattern="Autoconf.*'x'"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #include <sgtty.h>
10632 Autoconf TIOCGETP
10633 _ACEOF
10634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10635 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10636 ac_cv_prog_gcc_traditional=yes
10637 else
10638 ac_cv_prog_gcc_traditional=no
10640 rm -f conftest*
10643 if test $ac_cv_prog_gcc_traditional = no; then
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <termio.h>
10651 Autoconf TCGETA
10652 _ACEOF
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10655 ac_cv_prog_gcc_traditional=yes
10657 rm -f conftest*
10661 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10662 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10663 if test $ac_cv_prog_gcc_traditional = yes; then
10664 CC="$CC -traditional"
10668 echo "$as_me:$LINENO: checking for pid_t" >&5
10669 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10670 if test "${ac_cv_type_pid_t+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 $ac_includes_default
10681 main ()
10683 if ((pid_t *) 0)
10684 return 0;
10685 if (sizeof (pid_t))
10686 return 0;
10688 return 0;
10690 _ACEOF
10691 rm -f conftest.$ac_objext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10693 (eval $ac_compile) 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag"
10701 || test ! -s conftest.err'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_type_pid_t=yes
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_cv_type_pid_t=no
10720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10724 if test $ac_cv_type_pid_t = yes; then
10726 else
10728 cat >>confdefs.h <<_ACEOF
10729 #define pid_t int
10730 _ACEOF
10736 for ac_header in unistd.h vfork.h
10738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10740 echo "$as_me:$LINENO: checking for $ac_header" >&5
10741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10747 else
10748 # Is the header compilable?
10749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 $ac_includes_default
10758 #include <$ac_header>
10759 _ACEOF
10760 rm -f conftest.$ac_objext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10762 (eval $ac_compile) 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest.$ac_objext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_header_compiler=yes
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_header_compiler=no
10789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10791 echo "${ECHO_T}$ac_header_compiler" >&6
10793 # Is the header present?
10794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 #include <$ac_header>
10803 _ACEOF
10804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } >/dev/null; then
10812 if test -s conftest.err; then
10813 ac_cpp_err=$ac_c_preproc_warn_flag
10814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10815 else
10816 ac_cpp_err=
10818 else
10819 ac_cpp_err=yes
10821 if test -z "$ac_cpp_err"; then
10822 ac_header_preproc=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_preproc=no
10829 rm -f conftest.err conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10831 echo "${ECHO_T}$ac_header_preproc" >&6
10833 # So? What about this header?
10834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10835 yes:no: )
10836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10840 ac_header_preproc=yes
10842 no:yes:* )
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10856 cat <<\_ASBOX
10857 ## ------------------------------ ##
10858 ## Report this to admin@amule.org ##
10859 ## ------------------------------ ##
10860 _ASBOX
10862 sed "s/^/$as_me: WARNING: /" >&2
10864 esac
10865 echo "$as_me:$LINENO: checking for $ac_header" >&5
10866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 eval "$as_ac_Header=\$ac_header_preproc"
10872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10879 _ACEOF
10883 done
10887 for ac_func in fork vfork
10889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10890 echo "$as_me:$LINENO: checking for $ac_func" >&5
10891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_var+set}\" = set"; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h. */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10903 #define $ac_func innocuous_$ac_func
10905 /* System header to define __stub macros and hopefully few prototypes,
10906 which can conflict with char $ac_func (); below.
10907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10908 <limits.h> exists even on freestanding compilers. */
10910 #ifdef __STDC__
10911 # include <limits.h>
10912 #else
10913 # include <assert.h>
10914 #endif
10916 #undef $ac_func
10918 /* Override any gcc2 internal prototype to avoid an error. */
10919 #ifdef __cplusplus
10920 extern "C"
10922 #endif
10923 /* We use char because int might match the return type of a gcc2
10924 builtin and then its argument prototype would still apply. */
10925 char $ac_func ();
10926 /* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 choke me
10931 #else
10932 char (*f) () = $ac_func;
10933 #endif
10934 #ifdef __cplusplus
10936 #endif
10939 main ()
10941 return f != $ac_func;
10943 return 0;
10945 _ACEOF
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10948 (eval $ac_link) 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_c_werror_flag"
10956 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest$ac_exeext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 eval "$as_ac_var=yes"
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 eval "$as_ac_var=no"
10975 rm -f conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10980 if test `eval echo '${'$as_ac_var'}'` = yes; then
10981 cat >>confdefs.h <<_ACEOF
10982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10983 _ACEOF
10986 done
10988 if test "x$ac_cv_func_fork" = xyes; then
10989 echo "$as_me:$LINENO: checking for working fork" >&5
10990 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10991 if test "${ac_cv_func_fork_works+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 if test "$cross_compiling" = yes; then
10995 ac_cv_func_fork_works=cross
10996 else
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* By Ruediger Kuhlmann. */
10999 #include <sys/types.h>
11000 #if HAVE_UNISTD_H
11001 # include <unistd.h>
11002 #endif
11003 /* Some systems only have a dummy stub for fork() */
11004 int main ()
11006 if (fork() < 0)
11007 exit (1);
11008 exit (0);
11010 _ACEOF
11011 rm -f conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_cv_func_fork_works=yes
11023 else
11024 echo "$as_me: program exited with status $ac_status" >&5
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ( exit $ac_status )
11029 ac_cv_func_fork_works=no
11031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11034 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11035 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11037 else
11038 ac_cv_func_fork_works=$ac_cv_func_fork
11040 if test "x$ac_cv_func_fork_works" = xcross; then
11041 case $host in
11042 *-*-amigaos* | *-*-msdosdjgpp*)
11043 # Override, as these systems have only a dummy fork() stub
11044 ac_cv_func_fork_works=no
11047 ac_cv_func_fork_works=yes
11049 esac
11050 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11051 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11053 ac_cv_func_vfork_works=$ac_cv_func_vfork
11054 if test "x$ac_cv_func_vfork" = xyes; then
11055 echo "$as_me:$LINENO: checking for working vfork" >&5
11056 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11057 if test "${ac_cv_func_vfork_works+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060 if test "$cross_compiling" = yes; then
11061 ac_cv_func_vfork_works=cross
11062 else
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 /* Thanks to Paul Eggert for this test. */
11070 #include <stdio.h>
11071 #include <stdlib.h>
11072 #include <sys/types.h>
11073 #include <sys/stat.h>
11074 #include <sys/wait.h>
11075 #if HAVE_UNISTD_H
11076 # include <unistd.h>
11077 #endif
11078 #if HAVE_VFORK_H
11079 # include <vfork.h>
11080 #endif
11081 /* On some sparc systems, changes by the child to local and incoming
11082 argument registers are propagated back to the parent. The compiler
11083 is told about this with #include <vfork.h>, but some compilers
11084 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11085 static variable whose address is put into a register that is
11086 clobbered by the vfork. */
11087 static void
11088 #ifdef __cplusplus
11089 sparc_address_test (int arg)
11090 # else
11091 sparc_address_test (arg) int arg;
11092 #endif
11094 static pid_t child;
11095 if (!child) {
11096 child = vfork ();
11097 if (child < 0) {
11098 perror ("vfork");
11099 _exit(2);
11101 if (!child) {
11102 arg = getpid();
11103 write(-1, "", 0);
11104 _exit (arg);
11110 main ()
11112 pid_t parent = getpid ();
11113 pid_t child;
11115 sparc_address_test (0);
11117 child = vfork ();
11119 if (child == 0) {
11120 /* Here is another test for sparc vfork register problems. This
11121 test uses lots of local variables, at least as many local
11122 variables as main has allocated so far including compiler
11123 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11124 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11125 reuse the register of parent for one of the local variables,
11126 since it will think that parent can't possibly be used any more
11127 in this routine. Assigning to the local variable will thus
11128 munge parent in the parent process. */
11129 pid_t
11130 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11131 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11132 /* Convince the compiler that p..p7 are live; otherwise, it might
11133 use the same hardware register for all 8 local variables. */
11134 if (p != p1 || p != p2 || p != p3 || p != p4
11135 || p != p5 || p != p6 || p != p7)
11136 _exit(1);
11138 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11139 from child file descriptors. If the child closes a descriptor
11140 before it execs or exits, this munges the parent's descriptor
11141 as well. Test for this by closing stdout in the child. */
11142 _exit(close(fileno(stdout)) != 0);
11143 } else {
11144 int status;
11145 struct stat st;
11147 while (wait(&status) != child)
11149 exit(
11150 /* Was there some problem with vforking? */
11151 child < 0
11153 /* Did the child fail? (This shouldn't happen.) */
11154 || status
11156 /* Did the vfork/compiler bug occur? */
11157 || parent != getpid()
11159 /* Did the file descriptor bug occur? */
11160 || fstat(fileno(stdout), &st) != 0
11164 _ACEOF
11165 rm -f conftest$ac_exeext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_func_vfork_works=yes
11177 else
11178 echo "$as_me: program exited with status $ac_status" >&5
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ( exit $ac_status )
11183 ac_cv_func_vfork_works=no
11185 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11188 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11189 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11192 if test "x$ac_cv_func_fork_works" = xcross; then
11193 ac_cv_func_vfork_works=$ac_cv_func_vfork
11194 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11195 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11198 if test "x$ac_cv_func_vfork_works" = xyes; then
11200 cat >>confdefs.h <<\_ACEOF
11201 #define HAVE_WORKING_VFORK 1
11202 _ACEOF
11204 else
11206 cat >>confdefs.h <<\_ACEOF
11207 #define vfork fork
11208 _ACEOF
11211 if test "x$ac_cv_func_fork_works" = xyes; then
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_WORKING_FORK 1
11215 _ACEOF
11219 if test x$SYS != xwin32; then
11221 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11222 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11223 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11224 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lsun $LIBS"
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11236 /* Override any gcc2 internal prototype to avoid an error. */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 /* We use char because int might match the return type of a gcc2
11241 builtin and then its argument prototype would still apply. */
11242 char getmntent ();
11244 main ()
11246 getmntent ();
11248 return 0;
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 ac_cv_lib_sun_getmntent=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_cv_lib_sun_getmntent=no
11280 rm -f conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11282 LIBS=$ac_check_lib_save_LIBS
11284 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11285 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11286 if test $ac_cv_lib_sun_getmntent = yes; then
11287 LIBS="-lsun $LIBS"
11288 else
11289 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11290 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11291 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-lseq $LIBS"
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h. */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11303 /* Override any gcc2 internal prototype to avoid an error. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char getmntent ();
11311 main ()
11313 getmntent ();
11315 return 0;
11317 _ACEOF
11318 rm -f conftest.$ac_objext conftest$ac_exeext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_lib_seq_getmntent=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_lib_seq_getmntent=no
11347 rm -f conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11352 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11353 if test $ac_cv_lib_seq_getmntent = yes; then
11354 LIBS="-lseq $LIBS"
11355 else
11356 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11357 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11358 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-lgen $LIBS"
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11370 /* Override any gcc2 internal prototype to avoid an error. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 /* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */
11376 char getmntent ();
11378 main ()
11380 getmntent ();
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_lib_gen_getmntent=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_cv_lib_gen_getmntent=no
11414 rm -f conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11418 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11419 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11420 if test $ac_cv_lib_gen_getmntent = yes; then
11421 LIBS="-lgen $LIBS"
11429 for ac_func in getmntent
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_var+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445 #define $ac_func innocuous_$ac_func
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11452 #ifdef __STDC__
11453 # include <limits.h>
11454 #else
11455 # include <assert.h>
11456 #endif
11458 #undef $ac_func
11460 /* Override any gcc2 internal prototype to avoid an error. */
11461 #ifdef __cplusplus
11462 extern "C"
11464 #endif
11465 /* We use char because int might match the return type of a gcc2
11466 builtin and then its argument prototype would still apply. */
11467 char $ac_func ();
11468 /* The GNU C library defines this for functions which it implements
11469 to always fail with ENOSYS. Some functions are actually named
11470 something starting with __ and the normal name is an alias. */
11471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11472 choke me
11473 #else
11474 char (*f) () = $ac_func;
11475 #endif
11476 #ifdef __cplusplus
11478 #endif
11481 main ()
11483 return f != $ac_func;
11485 return 0;
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 eval "$as_ac_var=no"
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11528 done
11531 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11532 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11533 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 rm -f conftest.sym conftest.file
11537 echo >conftest.file
11538 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11539 if test "$cross_compiling" = yes; then
11540 ac_cv_func_lstat_dereferences_slashed_symlink=no
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 $ac_includes_default
11550 main ()
11552 struct stat sbuf;
11553 /* Linux will dereference the symlink and fail.
11554 That is better in the sense that it means we will not
11555 have to compile and use the lstat wrapper. */
11556 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11558 return 0;
11560 _ACEOF
11561 rm -f conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11573 else
11574 echo "$as_me: program exited with status $ac_status" >&5
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ( exit $ac_status )
11579 ac_cv_func_lstat_dereferences_slashed_symlink=no
11581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11583 else
11584 # If the `ln -s' command failed, then we probably don't even
11585 # have an lstat function.
11586 ac_cv_func_lstat_dereferences_slashed_symlink=no
11588 rm -f conftest.sym conftest.file
11591 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11592 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11594 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11596 cat >>confdefs.h <<_ACEOF
11597 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11598 _ACEOF
11601 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11602 case $LIBOBJS in
11603 "lstat.$ac_objext" | \
11604 *" lstat.$ac_objext" | \
11605 "lstat.$ac_objext "* | \
11606 *" lstat.$ac_objext "* ) ;;
11607 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11608 esac
11612 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11613 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11614 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 if test "$cross_compiling" = yes; then
11618 ac_cv_func_lstat_empty_string_bug=yes
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 $ac_includes_default
11628 main ()
11630 struct stat sbuf;
11631 exit (lstat ("", &sbuf) ? 1 : 0);
11633 return 0;
11635 _ACEOF
11636 rm -f conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_func_lstat_empty_string_bug=yes
11648 else
11649 echo "$as_me: program exited with status $ac_status" >&5
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ( exit $ac_status )
11654 ac_cv_func_lstat_empty_string_bug=no
11656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11660 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11661 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11662 case $LIBOBJS in
11663 "lstat.$ac_objext" | \
11664 *" lstat.$ac_objext" | \
11665 "lstat.$ac_objext "* | \
11666 *" lstat.$ac_objext "* ) ;;
11667 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11668 esac
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11673 _ACEOF
11677 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11678 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11679 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 rm -f conftest.sym conftest.file
11683 echo >conftest.file
11684 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11685 if test "$cross_compiling" = yes; then
11686 ac_cv_func_lstat_dereferences_slashed_symlink=no
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 $ac_includes_default
11696 main ()
11698 struct stat sbuf;
11699 /* Linux will dereference the symlink and fail.
11700 That is better in the sense that it means we will not
11701 have to compile and use the lstat wrapper. */
11702 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11704 return 0;
11706 _ACEOF
11707 rm -f conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11719 else
11720 echo "$as_me: program exited with status $ac_status" >&5
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ( exit $ac_status )
11725 ac_cv_func_lstat_dereferences_slashed_symlink=no
11727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11729 else
11730 # If the `ln -s' command failed, then we probably don't even
11731 # have an lstat function.
11732 ac_cv_func_lstat_dereferences_slashed_symlink=no
11734 rm -f conftest.sym conftest.file
11737 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11738 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11740 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11742 cat >>confdefs.h <<_ACEOF
11743 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11744 _ACEOF
11747 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11748 case $LIBOBJS in
11749 "lstat.$ac_objext" | \
11750 *" lstat.$ac_objext" | \
11751 "lstat.$ac_objext "* | \
11752 *" lstat.$ac_objext "* ) ;;
11753 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11754 esac
11761 echo "$as_me:$LINENO: checking for working memcmp" >&5
11762 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11763 if test "${ac_cv_func_memcmp_working+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766 if test "$cross_compiling" = yes; then
11767 ac_cv_func_memcmp_working=no
11768 else
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 $ac_includes_default
11777 main ()
11780 /* Some versions of memcmp are not 8-bit clean. */
11781 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11782 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11783 exit (1);
11785 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11786 or more and with at least one buffer not starting on a 4-byte boundary.
11787 William Lewis provided this test program. */
11789 char foo[21];
11790 char bar[21];
11791 int i;
11792 for (i = 0; i < 4; i++)
11794 char *a = foo + i;
11795 char *b = bar + i;
11796 strcpy (a, "--------01111111");
11797 strcpy (b, "--------10000000");
11798 if (memcmp (a, b, 16) >= 0)
11799 exit (1);
11801 exit (0);
11805 return 0;
11807 _ACEOF
11808 rm -f conftest$ac_exeext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_func_memcmp_working=yes
11820 else
11821 echo "$as_me: program exited with status $ac_status" >&5
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ( exit $ac_status )
11826 ac_cv_func_memcmp_working=no
11828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11831 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11832 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11833 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
11834 "memcmp.$ac_objext" | \
11835 *" memcmp.$ac_objext" | \
11836 "memcmp.$ac_objext "* | \
11837 *" memcmp.$ac_objext "* ) ;;
11838 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
11839 esac
11844 for ac_header in sys/select.h sys/socket.h
11846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11848 echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11855 else
11856 # Is the header compilable?
11857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <$ac_header>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_header_compiler=yes
11891 else
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_header_compiler=no
11897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11899 echo "${ECHO_T}$ac_header_compiler" >&6
11901 # Is the header present?
11902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 #include <$ac_header>
11911 _ACEOF
11912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11913 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
11920 if test -s conftest.err; then
11921 ac_cpp_err=$ac_c_preproc_warn_flag
11922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11923 else
11924 ac_cpp_err=
11926 else
11927 ac_cpp_err=yes
11929 if test -z "$ac_cpp_err"; then
11930 ac_header_preproc=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_header_preproc=no
11937 rm -f conftest.err conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11939 echo "${ECHO_T}$ac_header_preproc" >&6
11941 # So? What about this header?
11942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11943 yes:no: )
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11948 ac_header_preproc=yes
11950 no:yes:* )
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11964 cat <<\_ASBOX
11965 ## ------------------------------ ##
11966 ## Report this to admin@amule.org ##
11967 ## ------------------------------ ##
11968 _ASBOX
11970 sed "s/^/$as_me: WARNING: /" >&2
11972 esac
11973 echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 eval "$as_ac_Header=\$ac_header_preproc"
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11987 _ACEOF
11991 done
11993 echo "$as_me:$LINENO: checking types of arguments for select" >&5
11994 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
11995 if test "${ac_cv_func_select_args+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11999 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12000 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #if HAVE_SYS_SELECT_H
12009 # include <sys/select.h>
12010 #endif
12011 #if HAVE_SYS_SOCKET_H
12012 # include <sys/socket.h>
12013 #endif
12016 main ()
12018 extern int select ($ac_arg1,
12019 $ac_arg234, $ac_arg234, $ac_arg234,
12020 $ac_arg5);
12022 return 0;
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027 (eval $ac_compile) 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag"
12035 || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12048 else
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054 done
12055 done
12056 done
12057 # Provide a safe default value.
12058 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12061 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12062 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12063 ac_save_IFS=$IFS; IFS=','
12064 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12065 IFS=$ac_save_IFS
12066 shift
12068 cat >>confdefs.h <<_ACEOF
12069 #define SELECT_TYPE_ARG1 $1
12070 _ACEOF
12073 cat >>confdefs.h <<_ACEOF
12074 #define SELECT_TYPE_ARG234 ($2)
12075 _ACEOF
12078 cat >>confdefs.h <<_ACEOF
12079 #define SELECT_TYPE_ARG5 ($3)
12080 _ACEOF
12082 rm -f conftest*
12084 echo "$as_me:$LINENO: checking for function prototypes" >&5
12085 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12086 if test "$ac_cv_prog_cc_stdc" != no; then
12087 echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6
12090 cat >>confdefs.h <<\_ACEOF
12091 #define PROTOTYPES 1
12092 _ACEOF
12095 cat >>confdefs.h <<\_ACEOF
12096 #define __PROTOTYPES 1
12097 _ACEOF
12099 else
12100 echo "$as_me:$LINENO: result: no" >&5
12101 echo "${ECHO_T}no" >&6
12104 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12105 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12106 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 ac_cv_func_setvbuf_reversed=no
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include <stdio.h>
12117 # if PROTOTYPES
12118 int (setvbuf) (FILE *, int, char *, size_t);
12119 # endif
12121 main ()
12123 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12125 return 0;
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130 (eval $ac_link) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 #include <stdio.h>
12157 # if PROTOTYPES
12158 int (setvbuf) (FILE *, int, char *, size_t);
12159 # endif
12161 main ()
12163 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 # It compiles and links either way, so it must not be declared
12191 # with a prototype and most likely this is a K&R C compiler.
12192 # Try running it.
12193 if test "$cross_compiling" = yes; then
12194 : # Assume setvbuf is not reversed when cross-compiling.
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #include <stdio.h>
12204 main ()
12206 /* This call has the arguments reversed.
12207 A reversed system may check and see that the address of buf
12208 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12209 char buf;
12210 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12211 exit (1);
12212 putchar ('\r');
12213 exit (0); /* Non-reversed systems SEGV here. */
12215 return 0;
12217 _ACEOF
12218 rm -f conftest$ac_exeext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_func_setvbuf_reversed=yes
12230 else
12231 echo "$as_me: program exited with status $ac_status" >&5
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ( exit $ac_status )
12236 rm -f core *.core
12238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12240 ac_cv_func_setvbuf_reversed=yes
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12253 rm -f conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12256 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12257 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12258 if test $ac_cv_func_setvbuf_reversed = yes; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define SETVBUF_REVERSED 1
12262 _ACEOF
12266 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12267 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12268 if test "${ac_cv_type_signal+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 #include <sys/types.h>
12278 #include <signal.h>
12279 #ifdef signal
12280 # undef signal
12281 #endif
12282 #ifdef __cplusplus
12283 extern "C" void (*signal (int, void (*)(int)))(int);
12284 #else
12285 void (*signal ()) ();
12286 #endif
12289 main ()
12291 int i;
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_type_signal=void
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_type_signal=int
12325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12328 echo "${ECHO_T}$ac_cv_type_signal" >&6
12330 cat >>confdefs.h <<_ACEOF
12331 #define RETSIGTYPE $ac_cv_type_signal
12332 _ACEOF
12335 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12336 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12337 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 if test "$cross_compiling" = yes; then
12341 ac_cv_func_stat_empty_string_bug=yes
12342 else
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12351 main ()
12353 struct stat sbuf;
12354 exit (stat ("", &sbuf) ? 1 : 0);
12356 return 0;
12358 _ACEOF
12359 rm -f conftest$ac_exeext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_func_stat_empty_string_bug=yes
12371 else
12372 echo "$as_me: program exited with status $ac_status" >&5
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ( exit $ac_status )
12377 ac_cv_func_stat_empty_string_bug=no
12379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12383 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12384 if test $ac_cv_func_stat_empty_string_bug = yes; then
12385 case $LIBOBJS in
12386 "stat.$ac_objext" | \
12387 *" stat.$ac_objext" | \
12388 "stat.$ac_objext "* | \
12389 *" stat.$ac_objext "* ) ;;
12390 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12391 esac
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_STAT_EMPTY_STRING_BUG 1
12396 _ACEOF
12401 for ac_func in strftime
12403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12404 echo "$as_me:$LINENO: checking for $ac_func" >&5
12405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12406 if eval "test \"\${$as_ac_var+set}\" = set"; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12417 #define $ac_func innocuous_$ac_func
12419 /* System header to define __stub macros and hopefully few prototypes,
12420 which can conflict with char $ac_func (); below.
12421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12422 <limits.h> exists even on freestanding compilers. */
12424 #ifdef __STDC__
12425 # include <limits.h>
12426 #else
12427 # include <assert.h>
12428 #endif
12430 #undef $ac_func
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 #ifdef __cplusplus
12434 extern "C"
12436 #endif
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12439 char $ac_func ();
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 char (*f) () = $ac_func;
12447 #endif
12448 #ifdef __cplusplus
12450 #endif
12453 main ()
12455 return f != $ac_func;
12457 return 0;
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 eval "$as_ac_var=yes"
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 eval "$as_ac_var=no"
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12494 if test `eval echo '${'$as_ac_var'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 _ACEOF
12499 else
12500 # strftime is in -lintl on SCO UNIX.
12501 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12502 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12503 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-lintl $LIBS"
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char strftime ();
12523 main ()
12525 strftime ();
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_intl_strftime=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_lib_intl_strftime=no
12559 rm -f conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12564 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12565 if test $ac_cv_lib_intl_strftime = yes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_STRFTIME 1
12568 _ACEOF
12570 LIBS="-lintl $LIBS"
12574 done
12576 echo "$as_me:$LINENO: checking for working strtod" >&5
12577 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12578 if test "${ac_cv_func_strtod+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 if test "$cross_compiling" = yes; then
12582 ac_cv_func_strtod=no
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 double strtod ();
12593 main()
12596 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12597 char *string = " +69";
12598 char *term;
12599 double value;
12600 value = strtod (string, &term);
12601 if (value != 69 || term != (string + 4))
12602 exit (1);
12606 /* Under Solaris 2.4, strtod returns the wrong value for the
12607 terminating character under some conditions. */
12608 char *string = "NaN";
12609 char *term;
12610 strtod (string, &term);
12611 if (term != string && *(term - 1) == 0)
12612 exit (1);
12614 exit (0);
12617 _ACEOF
12618 rm -f conftest$ac_exeext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_cv_func_strtod=yes
12630 else
12631 echo "$as_me: program exited with status $ac_status" >&5
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ( exit $ac_status )
12636 ac_cv_func_strtod=no
12638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12641 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12642 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12643 if test $ac_cv_func_strtod = no; then
12644 case $LIBOBJS in
12645 "strtod.$ac_objext" | \
12646 *" strtod.$ac_objext" | \
12647 "strtod.$ac_objext "* | \
12648 *" strtod.$ac_objext "* ) ;;
12649 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12650 esac
12652 echo "$as_me:$LINENO: checking for pow" >&5
12653 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12654 if test "${ac_cv_func_pow+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12665 #define pow innocuous_pow
12667 /* System header to define __stub macros and hopefully few prototypes,
12668 which can conflict with char pow (); below.
12669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12670 <limits.h> exists even on freestanding compilers. */
12672 #ifdef __STDC__
12673 # include <limits.h>
12674 #else
12675 # include <assert.h>
12676 #endif
12678 #undef pow
12680 /* Override any gcc2 internal prototype to avoid an error. */
12681 #ifdef __cplusplus
12682 extern "C"
12684 #endif
12685 /* We use char because int might match the return type of a gcc2
12686 builtin and then its argument prototype would still apply. */
12687 char pow ();
12688 /* The GNU C library defines this for functions which it implements
12689 to always fail with ENOSYS. Some functions are actually named
12690 something starting with __ and the normal name is an alias. */
12691 #if defined (__stub_pow) || defined (__stub___pow)
12692 choke me
12693 #else
12694 char (*f) () = pow;
12695 #endif
12696 #ifdef __cplusplus
12698 #endif
12701 main ()
12703 return f != pow;
12705 return 0;
12707 _ACEOF
12708 rm -f conftest.$ac_objext conftest$ac_exeext
12709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12710 (eval $ac_link) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -z "$ac_c_werror_flag"
12718 || test ! -s conftest.err'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } &&
12724 { ac_try='test -s conftest$ac_exeext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_cv_func_pow=yes
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_cv_func_pow=no
12737 rm -f conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12741 echo "${ECHO_T}$ac_cv_func_pow" >&6
12743 if test $ac_cv_func_pow = no; then
12744 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12745 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12746 if test "${ac_cv_lib_m_pow+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lm $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any gcc2 internal prototype to avoid an error. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12764 char pow ();
12766 main ()
12768 pow ();
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag"
12783 || test ! -s conftest.err'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_lib_m_pow=yes
12796 else
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_cv_lib_m_pow=no
12802 rm -f conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12806 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12807 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12808 if test $ac_cv_lib_m_pow = yes; then
12809 POW_LIB=-lm
12810 else
12811 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12812 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12820 for ac_func in vprintf
12822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823 echo "$as_me:$LINENO: checking for $ac_func" >&5
12824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12825 if eval "test \"\${$as_ac_var+set}\" = set"; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define $ac_func innocuous_$ac_func
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12843 #ifdef __STDC__
12844 # include <limits.h>
12845 #else
12846 # include <assert.h>
12847 #endif
12849 #undef $ac_func
12851 /* Override any gcc2 internal prototype to avoid an error. */
12852 #ifdef __cplusplus
12853 extern "C"
12855 #endif
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char $ac_func ();
12859 /* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12863 choke me
12864 #else
12865 char (*f) () = $ac_func;
12866 #endif
12867 #ifdef __cplusplus
12869 #endif
12872 main ()
12874 return f != $ac_func;
12876 return 0;
12878 _ACEOF
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881 (eval $ac_link) 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_c_werror_flag"
12889 || test ! -s conftest.err'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 eval "$as_ac_var=yes"
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 eval "$as_ac_var=no"
12908 rm -f conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12913 if test `eval echo '${'$as_ac_var'}'` = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12916 _ACEOF
12918 echo "$as_me:$LINENO: checking for _doprnt" >&5
12919 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
12920 if test "${ac_cv_func__doprnt+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12931 #define _doprnt innocuous__doprnt
12933 /* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char _doprnt (); below.
12935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 <limits.h> exists even on freestanding compilers. */
12938 #ifdef __STDC__
12939 # include <limits.h>
12940 #else
12941 # include <assert.h>
12942 #endif
12944 #undef _doprnt
12946 /* Override any gcc2 internal prototype to avoid an error. */
12947 #ifdef __cplusplus
12948 extern "C"
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char _doprnt ();
12954 /* The GNU C library defines this for functions which it implements
12955 to always fail with ENOSYS. Some functions are actually named
12956 something starting with __ and the normal name is an alias. */
12957 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12958 choke me
12959 #else
12960 char (*f) () = _doprnt;
12961 #endif
12962 #ifdef __cplusplus
12964 #endif
12967 main ()
12969 return f != _doprnt;
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_func__doprnt=yes
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_cv_func__doprnt=no
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13007 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13008 if test $ac_cv_func__doprnt = yes; then
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_DOPRNT 1
13012 _ACEOF
13017 done
13020 if test $cross_compiling = yes -a $gnumalloc = yes; then
13022 { echo "$as_me:$LINENO: WARNING:
13023 configure cannot check whether malloc() and realloc() are GNU libc
13024 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13025 run configure with the --without-gnu-malloc switch." >&5
13026 echo "$as_me: WARNING:
13027 configure cannot check whether malloc() and realloc() are GNU libc
13028 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13029 run configure with the --without-gnu-malloc switch." >&2;}
13030 _mule_warning_7=yes
13031 _mule_has_warnings=yes
13033 ac_cv_func_malloc_0_nonnull=yes
13034 ac_cv_func_realloc_0_nonnull=yes
13039 for ac_header in stdlib.h
13041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13043 echo "$as_me:$LINENO: checking for $ac_header" >&5
13044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13050 else
13051 # Is the header compilable?
13052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <$ac_header>
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag"
13073 || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_header_compiler=yes
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 ac_header_compiler=no
13092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13094 echo "${ECHO_T}$ac_header_compiler" >&6
13096 # Is the header present?
13097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h. */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 #include <$ac_header>
13106 _ACEOF
13107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } >/dev/null; then
13115 if test -s conftest.err; then
13116 ac_cpp_err=$ac_c_preproc_warn_flag
13117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13118 else
13119 ac_cpp_err=
13121 else
13122 ac_cpp_err=yes
13124 if test -z "$ac_cpp_err"; then
13125 ac_header_preproc=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_header_preproc=no
13132 rm -f conftest.err conftest.$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6
13136 # So? What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13138 yes:no: )
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13143 ac_header_preproc=yes
13145 no:yes:* )
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13159 cat <<\_ASBOX
13160 ## ------------------------------ ##
13161 ## Report this to admin@amule.org ##
13162 ## ------------------------------ ##
13163 _ASBOX
13165 sed "s/^/$as_me: WARNING: /" >&2
13167 esac
13168 echo "$as_me:$LINENO: checking for $ac_header" >&5
13169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173 eval "$as_ac_Header=\$ac_header_preproc"
13175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13180 cat >>confdefs.h <<_ACEOF
13181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13182 _ACEOF
13186 done
13188 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13189 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13190 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 if test "$cross_compiling" = yes; then
13194 ac_cv_func_malloc_0_nonnull=no
13195 else
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 #if STDC_HEADERS || HAVE_STDLIB_H
13203 # include <stdlib.h>
13204 #else
13205 char *malloc ();
13206 #endif
13209 main ()
13211 exit (malloc (0) ? 0 : 1);
13213 return 0;
13215 _ACEOF
13216 rm -f conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_func_malloc_0_nonnull=yes
13228 else
13229 echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ( exit $ac_status )
13234 ac_cv_func_malloc_0_nonnull=no
13236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13240 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13241 if test $ac_cv_func_malloc_0_nonnull = yes; then
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_MALLOC 1
13245 _ACEOF
13247 else
13248 cat >>confdefs.h <<\_ACEOF
13249 #define HAVE_MALLOC 0
13250 _ACEOF
13252 case $LIBOBJS in
13253 "malloc.$ac_objext" | \
13254 *" malloc.$ac_objext" | \
13255 "malloc.$ac_objext "* | \
13256 *" malloc.$ac_objext "* ) ;;
13257 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13258 esac
13261 cat >>confdefs.h <<\_ACEOF
13262 #define malloc rpl_malloc
13263 _ACEOF
13270 for ac_header in stdlib.h
13272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13274 echo "$as_me:$LINENO: checking for $ac_header" >&5
13275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13281 else
13282 # Is the header compilable?
13283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 $ac_includes_default
13292 #include <$ac_header>
13293 _ACEOF
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_c_werror_flag"
13304 || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_header_compiler=yes
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_header_compiler=no
13323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13325 echo "${ECHO_T}$ac_header_compiler" >&6
13327 # Is the header present?
13328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <$ac_header>
13337 _ACEOF
13338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } >/dev/null; then
13346 if test -s conftest.err; then
13347 ac_cpp_err=$ac_c_preproc_warn_flag
13348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13349 else
13350 ac_cpp_err=
13352 else
13353 ac_cpp_err=yes
13355 if test -z "$ac_cpp_err"; then
13356 ac_header_preproc=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_preproc=no
13363 rm -f conftest.err conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13365 echo "${ECHO_T}$ac_header_preproc" >&6
13367 # So? What about this header?
13368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13369 yes:no: )
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13374 ac_header_preproc=yes
13376 no:yes:* )
13377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13390 cat <<\_ASBOX
13391 ## ------------------------------ ##
13392 ## Report this to admin@amule.org ##
13393 ## ------------------------------ ##
13394 _ASBOX
13396 sed "s/^/$as_me: WARNING: /" >&2
13398 esac
13399 echo "$as_me:$LINENO: checking for $ac_header" >&5
13400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404 eval "$as_ac_Header=\$ac_header_preproc"
13406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13411 cat >>confdefs.h <<_ACEOF
13412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13413 _ACEOF
13417 done
13419 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13420 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13421 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 if test "$cross_compiling" = yes; then
13425 ac_cv_func_realloc_0_nonnull=no
13426 else
13427 cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h. */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 #if STDC_HEADERS || HAVE_STDLIB_H
13434 # include <stdlib.h>
13435 #else
13436 char *realloc ();
13437 #endif
13440 main ()
13442 exit (realloc (0, 0) ? 0 : 1);
13444 return 0;
13446 _ACEOF
13447 rm -f conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_func_realloc_0_nonnull=yes
13459 else
13460 echo "$as_me: program exited with status $ac_status" >&5
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ( exit $ac_status )
13465 ac_cv_func_realloc_0_nonnull=no
13467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13470 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13471 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13472 if test $ac_cv_func_realloc_0_nonnull = yes; then
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_REALLOC 1
13476 _ACEOF
13478 else
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_REALLOC 0
13481 _ACEOF
13483 case $LIBOBJS in
13484 "realloc.$ac_objext" | \
13485 *" realloc.$ac_objext" | \
13486 "realloc.$ac_objext "* | \
13487 *" realloc.$ac_objext "* ) ;;
13488 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13489 esac
13492 cat >>confdefs.h <<\_ACEOF
13493 #define realloc rpl_realloc
13494 _ACEOF
13533 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13536 echo "$as_me:$LINENO: checking for $ac_func" >&5
13537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13538 if eval "test \"\${$as_ac_var+set}\" = set"; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13549 #define $ac_func innocuous_$ac_func
13551 /* System header to define __stub macros and hopefully few prototypes,
13552 which can conflict with char $ac_func (); below.
13553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13554 <limits.h> exists even on freestanding compilers. */
13556 #ifdef __STDC__
13557 # include <limits.h>
13558 #else
13559 # include <assert.h>
13560 #endif
13562 #undef $ac_func
13564 /* Override any gcc2 internal prototype to avoid an error. */
13565 #ifdef __cplusplus
13566 extern "C"
13568 #endif
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13571 char $ac_func ();
13572 /* The GNU C library defines this for functions which it implements
13573 to always fail with ENOSYS. Some functions are actually named
13574 something starting with __ and the normal name is an alias. */
13575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13576 choke me
13577 #else
13578 char (*f) () = $ac_func;
13579 #endif
13580 #ifdef __cplusplus
13582 #endif
13585 main ()
13587 return f != $ac_func;
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest$ac_exeext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 eval "$as_ac_var=yes"
13615 else
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 eval "$as_ac_var=no"
13621 rm -f conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13626 if test `eval echo '${'$as_ac_var'}'` = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13629 _ACEOF
13632 done
13634 #-------------------------------------------------------------------------------
13635 # End of autoscan stuff
13636 #-------------------------------------------------------------------------------
13642 for ac_func in mkdir getrlimit setrlimit getopt_long
13644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13645 echo "$as_me:$LINENO: checking for $ac_func" >&5
13646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13647 if eval "test \"\${$as_ac_var+set}\" = set"; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h. */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13658 #define $ac_func innocuous_$ac_func
13660 /* System header to define __stub macros and hopefully few prototypes,
13661 which can conflict with char $ac_func (); below.
13662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13663 <limits.h> exists even on freestanding compilers. */
13665 #ifdef __STDC__
13666 # include <limits.h>
13667 #else
13668 # include <assert.h>
13669 #endif
13671 #undef $ac_func
13673 /* Override any gcc2 internal prototype to avoid an error. */
13674 #ifdef __cplusplus
13675 extern "C"
13677 #endif
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13680 char $ac_func ();
13681 /* The GNU C library defines this for functions which it implements
13682 to always fail with ENOSYS. Some functions are actually named
13683 something starting with __ and the normal name is an alias. */
13684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13685 choke me
13686 #else
13687 char (*f) () = $ac_func;
13688 #endif
13689 #ifdef __cplusplus
13691 #endif
13694 main ()
13696 return f != $ac_func;
13698 return 0;
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag"
13711 || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 eval "$as_ac_var=yes"
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 eval "$as_ac_var=no"
13730 rm -f conftest.err conftest.$ac_objext \
13731 conftest$ac_exeext conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13735 if test `eval echo '${'$as_ac_var'}'` = yes; then
13736 cat >>confdefs.h <<_ACEOF
13737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13738 _ACEOF
13741 done
13744 # Check whether --enable-mmap or --disable-mmap was given.
13745 if test "${enable_mmap+set}" = set; then
13746 enableval="$enable_mmap"
13750 if test ${enable_mmap:-no} = yes; then
13753 for ac_header in sys/mman.h
13755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13757 echo "$as_me:$LINENO: checking for $ac_header" >&5
13758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13764 else
13765 # Is the header compilable?
13766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h. */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 $ac_includes_default
13775 #include <$ac_header>
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_header_compiler=yes
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_header_compiler=no
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13808 echo "${ECHO_T}$ac_header_compiler" >&6
13810 # Is the header present?
13811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <$ac_header>
13820 _ACEOF
13821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } >/dev/null; then
13829 if test -s conftest.err; then
13830 ac_cpp_err=$ac_c_preproc_warn_flag
13831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13832 else
13833 ac_cpp_err=
13835 else
13836 ac_cpp_err=yes
13838 if test -z "$ac_cpp_err"; then
13839 ac_header_preproc=yes
13840 else
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13844 ac_header_preproc=no
13846 rm -f conftest.err conftest.$ac_ext
13847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13848 echo "${ECHO_T}$ac_header_preproc" >&6
13850 # So? What about this header?
13851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13852 yes:no: )
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13857 ac_header_preproc=yes
13859 no:yes:* )
13860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13873 cat <<\_ASBOX
13874 ## ------------------------------ ##
13875 ## Report this to admin@amule.org ##
13876 ## ------------------------------ ##
13877 _ASBOX
13879 sed "s/^/$as_me: WARNING: /" >&2
13881 esac
13882 echo "$as_me:$LINENO: checking for $ac_header" >&5
13883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 eval "$as_ac_Header=\$ac_header_preproc"
13889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13894 cat >>confdefs.h <<_ACEOF
13895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13896 _ACEOF
13900 done
13904 for ac_header in stdlib.h unistd.h
13906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13908 echo "$as_me:$LINENO: checking for $ac_header" >&5
13909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13915 else
13916 # Is the header compilable?
13917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 $ac_includes_default
13926 #include <$ac_header>
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930 (eval $ac_compile) 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest.$ac_objext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_header_compiler=yes
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_header_compiler=no
13957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6
13961 # Is the header present?
13962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <$ac_header>
13971 _ACEOF
13972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } >/dev/null; then
13980 if test -s conftest.err; then
13981 ac_cpp_err=$ac_c_preproc_warn_flag
13982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13983 else
13984 ac_cpp_err=
13986 else
13987 ac_cpp_err=yes
13989 if test -z "$ac_cpp_err"; then
13990 ac_header_preproc=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_header_preproc=no
13997 rm -f conftest.err conftest.$ac_ext
13998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13999 echo "${ECHO_T}$ac_header_preproc" >&6
14001 # So? What about this header?
14002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 yes:no: )
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14008 ac_header_preproc=yes
14010 no:yes:* )
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14024 cat <<\_ASBOX
14025 ## ------------------------------ ##
14026 ## Report this to admin@amule.org ##
14027 ## ------------------------------ ##
14028 _ASBOX
14030 sed "s/^/$as_me: WARNING: /" >&2
14032 esac
14033 echo "$as_me:$LINENO: checking for $ac_header" >&5
14034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038 eval "$as_ac_Header=\$ac_header_preproc"
14040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14045 cat >>confdefs.h <<_ACEOF
14046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14047 _ACEOF
14051 done
14054 for ac_func in getpagesize
14056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_var+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14070 #define $ac_func innocuous_$ac_func
14072 /* System header to define __stub macros and hopefully few prototypes,
14073 which can conflict with char $ac_func (); below.
14074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14075 <limits.h> exists even on freestanding compilers. */
14077 #ifdef __STDC__
14078 # include <limits.h>
14079 #else
14080 # include <assert.h>
14081 #endif
14083 #undef $ac_func
14085 /* Override any gcc2 internal prototype to avoid an error. */
14086 #ifdef __cplusplus
14087 extern "C"
14089 #endif
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14092 char $ac_func ();
14093 /* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097 choke me
14098 #else
14099 char (*f) () = $ac_func;
14100 #endif
14101 #ifdef __cplusplus
14103 #endif
14106 main ()
14108 return f != $ac_func;
14110 return 0;
14112 _ACEOF
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 (eval $ac_link) 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag"
14123 || test ! -s conftest.err'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest$ac_exeext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 eval "$as_ac_var=yes"
14136 else
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 eval "$as_ac_var=no"
14142 rm -f conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14147 if test `eval echo '${'$as_ac_var'}'` = yes; then
14148 cat >>confdefs.h <<_ACEOF
14149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14150 _ACEOF
14153 done
14155 echo "$as_me:$LINENO: checking for working mmap" >&5
14156 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 if test "$cross_compiling" = yes; then
14161 ac_cv_func_mmap_fixed_mapped=no
14162 else
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 $ac_includes_default
14170 /* malloc might have been renamed as rpl_malloc. */
14171 #undef malloc
14173 /* Thanks to Mike Haertel and Jim Avera for this test.
14174 Here is a matrix of mmap possibilities:
14175 mmap private not fixed
14176 mmap private fixed at somewhere currently unmapped
14177 mmap private fixed at somewhere already mapped
14178 mmap shared not fixed
14179 mmap shared fixed at somewhere currently unmapped
14180 mmap shared fixed at somewhere already mapped
14181 For private mappings, we should verify that changes cannot be read()
14182 back from the file, nor mmap's back from the file at a different
14183 address. (There have been systems where private was not correctly
14184 implemented like the infamous i386 svr4.0, and systems where the
14185 VM page cache was not coherent with the file system buffer cache
14186 like early versions of FreeBSD and possibly contemporary NetBSD.)
14187 For shared mappings, we should conversely verify that changes get
14188 propagated back to all the places they're supposed to be.
14190 Grep wants private fixed already mapped.
14191 The main things grep needs to know about mmap are:
14192 * does it exist and is it safe to write into the mmap'd area
14193 * how to use it (BSD variants) */
14195 #include <fcntl.h>
14196 #include <sys/mman.h>
14198 #if !STDC_HEADERS && !HAVE_STDLIB_H
14199 char *malloc ();
14200 #endif
14202 /* This mess was copied from the GNU getpagesize.h. */
14203 #if !HAVE_GETPAGESIZE
14204 /* Assume that all systems that can run configure have sys/param.h. */
14205 # if !HAVE_SYS_PARAM_H
14206 # define HAVE_SYS_PARAM_H 1
14207 # endif
14209 # ifdef _SC_PAGESIZE
14210 # define getpagesize() sysconf(_SC_PAGESIZE)
14211 # else /* no _SC_PAGESIZE */
14212 # if HAVE_SYS_PARAM_H
14213 # include <sys/param.h>
14214 # ifdef EXEC_PAGESIZE
14215 # define getpagesize() EXEC_PAGESIZE
14216 # else /* no EXEC_PAGESIZE */
14217 # ifdef NBPG
14218 # define getpagesize() NBPG * CLSIZE
14219 # ifndef CLSIZE
14220 # define CLSIZE 1
14221 # endif /* no CLSIZE */
14222 # else /* no NBPG */
14223 # ifdef NBPC
14224 # define getpagesize() NBPC
14225 # else /* no NBPC */
14226 # ifdef PAGESIZE
14227 # define getpagesize() PAGESIZE
14228 # endif /* PAGESIZE */
14229 # endif /* no NBPC */
14230 # endif /* no NBPG */
14231 # endif /* no EXEC_PAGESIZE */
14232 # else /* no HAVE_SYS_PARAM_H */
14233 # define getpagesize() 8192 /* punt totally */
14234 # endif /* no HAVE_SYS_PARAM_H */
14235 # endif /* no _SC_PAGESIZE */
14237 #endif /* no HAVE_GETPAGESIZE */
14240 main ()
14242 char *data, *data2, *data3;
14243 int i, pagesize;
14244 int fd;
14246 pagesize = getpagesize ();
14248 /* First, make a file with some known garbage in it. */
14249 data = (char *) malloc (pagesize);
14250 if (!data)
14251 exit (1);
14252 for (i = 0; i < pagesize; ++i)
14253 *(data + i) = rand ();
14254 umask (0);
14255 fd = creat ("conftest.mmap", 0600);
14256 if (fd < 0)
14257 exit (1);
14258 if (write (fd, data, pagesize) != pagesize)
14259 exit (1);
14260 close (fd);
14262 /* Next, try to mmap the file at a fixed address which already has
14263 something else allocated at it. If we can, also make sure that
14264 we see the same garbage. */
14265 fd = open ("conftest.mmap", O_RDWR);
14266 if (fd < 0)
14267 exit (1);
14268 data2 = (char *) malloc (2 * pagesize);
14269 if (!data2)
14270 exit (1);
14271 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14272 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14273 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14274 exit (1);
14275 for (i = 0; i < pagesize; ++i)
14276 if (*(data + i) != *(data2 + i))
14277 exit (1);
14279 /* Finally, make sure that changes to the mapped area do not
14280 percolate back to the file as seen by read(). (This is a bug on
14281 some variants of i386 svr4.0.) */
14282 for (i = 0; i < pagesize; ++i)
14283 *(data2 + i) = *(data2 + i) + 1;
14284 data3 = (char *) malloc (pagesize);
14285 if (!data3)
14286 exit (1);
14287 if (read (fd, data3, pagesize) != pagesize)
14288 exit (1);
14289 for (i = 0; i < pagesize; ++i)
14290 if (*(data + i) != *(data3 + i))
14291 exit (1);
14292 close (fd);
14293 exit (0);
14295 _ACEOF
14296 rm -f conftest$ac_exeext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14298 (eval $ac_link) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_cv_func_mmap_fixed_mapped=yes
14308 else
14309 echo "$as_me: program exited with status $ac_status" >&5
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ( exit $ac_status )
14314 ac_cv_func_mmap_fixed_mapped=no
14316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14319 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14320 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14321 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_MMAP 1
14325 _ACEOF
14328 rm -f conftest.mmap
14332 for ac_func in munmap sysconf
14334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14335 echo "$as_me:$LINENO: checking for $ac_func" >&5
14336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_var+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14348 #define $ac_func innocuous_$ac_func
14350 /* System header to define __stub macros and hopefully few prototypes,
14351 which can conflict with char $ac_func (); below.
14352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14353 <limits.h> exists even on freestanding compilers. */
14355 #ifdef __STDC__
14356 # include <limits.h>
14357 #else
14358 # include <assert.h>
14359 #endif
14361 #undef $ac_func
14363 /* Override any gcc2 internal prototype to avoid an error. */
14364 #ifdef __cplusplus
14365 extern "C"
14367 #endif
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370 char $ac_func ();
14371 /* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14375 choke me
14376 #else
14377 char (*f) () = $ac_func;
14378 #endif
14379 #ifdef __cplusplus
14381 #endif
14384 main ()
14386 return f != $ac_func;
14388 return 0;
14390 _ACEOF
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_c_werror_flag"
14401 || test ! -s conftest.err'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 eval "$as_ac_var=yes"
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 eval "$as_ac_var=no"
14420 rm -f conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14425 if test `eval echo '${'$as_ac_var'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14428 _ACEOF
14431 done
14433 if test $ac_cv_func_sysconf = yes; then
14435 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14436 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14437 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14445 #include <unistd.h>
14448 main ()
14451 return sysconf(_SC_PAGESIZE);
14454 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_c_werror_flag"
14468 || test ! -s conftest.err'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try='test -s conftest$ac_exeext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14481 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14482 echo "${ECHO_T}_SC_PAGESIZE" >&6
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE__SC_PAGESIZE 1
14486 _ACEOF
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14494 cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14502 #include <unistd.h>
14505 main ()
14508 return sysconf(_SC_PAGE_SIZE);
14511 return 0;
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14538 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14539 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14541 cat >>confdefs.h <<\_ACEOF
14542 #define HAVE__SC_PAGE_SIZE 1
14543 _ACEOF
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14551 echo "$as_me:$LINENO: result: none" >&5
14552 echo "${ECHO_T}none" >&6
14555 rm -f conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14559 rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14565 else
14567 # fake the result of the test for munmap() for the gettext macros
14568 ac_cv_func_munmap=no
14574 mule_backup_CPPFLAGS="$CPPFLAGS"
14575 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14576 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14577 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14578 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14589 main ()
14591 #ifndef strerror_r
14592 char *p = (char *) strerror_r;
14593 #endif
14596 return 0;
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag"
14609 || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_have_decl_strerror_r=yes
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_cv_have_decl_strerror_r=no
14628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14630 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14631 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14632 if test $ac_cv_have_decl_strerror_r = yes; then
14634 cat >>confdefs.h <<_ACEOF
14635 #define HAVE_DECL_STRERROR_R 1
14636 _ACEOF
14639 else
14640 cat >>confdefs.h <<_ACEOF
14641 #define HAVE_DECL_STRERROR_R 0
14642 _ACEOF
14649 for ac_func in strerror_r
14651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14652 echo "$as_me:$LINENO: checking for $ac_func" >&5
14653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14654 if eval "test \"\${$as_ac_var+set}\" = set"; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14665 #define $ac_func innocuous_$ac_func
14667 /* System header to define __stub macros and hopefully few prototypes,
14668 which can conflict with char $ac_func (); below.
14669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14670 <limits.h> exists even on freestanding compilers. */
14672 #ifdef __STDC__
14673 # include <limits.h>
14674 #else
14675 # include <assert.h>
14676 #endif
14678 #undef $ac_func
14680 /* Override any gcc2 internal prototype to avoid an error. */
14681 #ifdef __cplusplus
14682 extern "C"
14684 #endif
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14687 char $ac_func ();
14688 /* The GNU C library defines this for functions which it implements
14689 to always fail with ENOSYS. Some functions are actually named
14690 something starting with __ and the normal name is an alias. */
14691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 choke me
14693 #else
14694 char (*f) () = $ac_func;
14695 #endif
14696 #ifdef __cplusplus
14698 #endif
14701 main ()
14703 return f != $ac_func;
14705 return 0;
14707 _ACEOF
14708 rm -f conftest.$ac_objext conftest$ac_exeext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710 (eval $ac_link) 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag"
14718 || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 eval "$as_ac_var=yes"
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 eval "$as_ac_var=no"
14737 rm -f conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14742 if test `eval echo '${'$as_ac_var'}'` = yes; then
14743 cat >>confdefs.h <<_ACEOF
14744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14745 _ACEOF
14748 done
14750 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14751 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14752 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14756 ac_cv_func_strerror_r_char_p=no
14757 if test $ac_cv_have_decl_strerror_r = yes; then
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h. */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14766 main ()
14769 char buf[100];
14770 char x = *strerror_r (0, buf, sizeof buf);
14771 char *p = strerror_r (0, buf, sizeof buf);
14774 return 0;
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779 (eval $ac_compile) 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -z "$ac_c_werror_flag"
14787 || test ! -s conftest.err'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; } &&
14793 { ac_try='test -s conftest.$ac_objext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_cv_func_strerror_r_char_p=yes
14800 else
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14806 else
14807 # strerror_r is not declared. Choose between
14808 # systems that have relatively inaccessible declarations for the
14809 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14810 # former has a strerror_r that returns char*, while the latter
14811 # has a strerror_r that returns `int'.
14812 # This test should segfault on the DEC system.
14813 if test "$cross_compiling" = yes; then
14815 else
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14823 extern char *strerror_r ();
14825 main ()
14827 char buf[100];
14828 char x = *strerror_r (0, buf, sizeof buf);
14829 exit (!isalpha (x));
14831 return 0;
14833 _ACEOF
14834 rm -f conftest$ac_exeext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14836 (eval $ac_link) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_cv_func_strerror_r_char_p=yes
14846 else
14847 echo "$as_me: program exited with status $ac_status" >&5
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14858 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14859 if test $ac_cv_func_strerror_r_char_p = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define STRERROR_R_CHAR_P 1
14863 _ACEOF
14867 CPPFLAGS="$mule_backup_CPPFLAGS"
14869 # Look for a way to preallocate disk space for files.
14871 echo "$as_me:$LINENO: checking for fallocate" >&5
14872 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14873 mule_backup_CPPFLAGS="$CPPFLAGS"
14874 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14875 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14883 #define _GNU_SOURCE
14884 #ifdef HAVE_FCNTL_H
14885 # include <fcntl.h>
14886 #endif
14887 #include <linux/falloc.h>
14890 main ()
14893 fallocate(0, 0, 0, 0);
14896 return 0;
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_FALLOCATE 1
14927 _ACEOF
14929 echo "$as_me:$LINENO: result: yes" >&5
14930 echo "${ECHO_T}yes" >&6
14932 else
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14937 echo "$as_me:$LINENO: result: no" >&5
14938 echo "${ECHO_T}no" >&6
14941 rm -f conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14943 CPPFLAGS="$mule_backup_CPPFLAGS"
14946 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14947 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14948 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 #include <sys/syscall.h>
14957 #include <sys/types.h>
14958 #include <unistd.h>
14961 main ()
14964 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14967 return 0;
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 (eval $ac_link) 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag"
14981 || test ! -s conftest.err'
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); }; } &&
14987 { ac_try='test -s conftest$ac_exeext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_SYS_FALLOCATE 1
14998 _ACEOF
15000 echo "$as_me:$LINENO: result: yes" >&5
15001 echo "${ECHO_T}yes" >&6
15003 else
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15012 rm -f conftest.err conftest.$ac_objext \
15013 conftest$ac_exeext conftest.$ac_ext
15015 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15016 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h. */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15025 #define _XOPEN_SOURCE 600
15026 #include <stdlib.h>
15027 #ifdef HAVE_FCNTL_H
15028 # include <fcntl.h>
15029 #endif
15032 main ()
15035 posix_fallocate(0, 0, 0);
15038 return 0;
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_POSIX_FALLOCATE 1
15069 _ACEOF
15071 echo "$as_me:$LINENO: result: yes" >&5
15072 echo "${ECHO_T}yes" >&6
15074 else
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15079 echo "$as_me:$LINENO: result: no" >&5
15080 echo "${ECHO_T}no" >&6
15083 rm -f conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15087 # Checking Native Language Support
15090 MKINSTALLDIRS=
15091 if test -n "$ac_aux_dir"; then
15092 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15094 if test -z "$MKINSTALLDIRS"; then
15095 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15102 # Extract the first word of "msgfmt", so it can be a program name with args.
15103 set dummy msgfmt; ac_word=$2
15104 echo "$as_me:$LINENO: checking for $ac_word" >&5
15105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15106 if test "${ac_cv_path_MSGFMT+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109 case "$MSGFMT" in
15111 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15115 for ac_dir in $PATH; do
15116 test -z "$ac_dir" && ac_dir=.
15117 if test -f $ac_dir/$ac_word; then
15118 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15119 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15120 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15121 break
15124 done
15125 IFS="$ac_save_ifs"
15126 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15128 esac
15130 MSGFMT="$ac_cv_path_MSGFMT"
15131 if test "$MSGFMT" != ":"; then
15132 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15133 echo "${ECHO_T}$MSGFMT" >&6
15134 else
15135 echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15139 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15140 set dummy gmsgfmt; ac_word=$2
15141 echo "$as_me:$LINENO: checking for $ac_word" >&5
15142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15143 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146 case $GMSGFMT in
15147 [\\/]* | ?:[\\/]*)
15148 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152 for as_dir in $PATH
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
15156 for ac_exec_ext in '' $ac_executable_extensions; do
15157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15158 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15160 break 2
15162 done
15163 done
15165 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15167 esac
15169 GMSGFMT=$ac_cv_path_GMSGFMT
15171 if test -n "$GMSGFMT"; then
15172 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15173 echo "${ECHO_T}$GMSGFMT" >&6
15174 else
15175 echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15180 # Extract the first word of "xgettext", so it can be a program name with args.
15181 set dummy xgettext; ac_word=$2
15182 echo "$as_me:$LINENO: checking for $ac_word" >&5
15183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 case "$XGETTEXT" in
15189 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15193 for ac_dir in $PATH; do
15194 test -z "$ac_dir" && ac_dir=.
15195 if test -f $ac_dir/$ac_word; then
15196 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15197 (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
15198 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15199 break
15202 done
15203 IFS="$ac_save_ifs"
15204 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15206 esac
15208 XGETTEXT="$ac_cv_path_XGETTEXT"
15209 if test "$XGETTEXT" != ":"; then
15210 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15211 echo "${ECHO_T}$XGETTEXT" >&6
15212 else
15213 echo "$as_me:$LINENO: result: no" >&5
15214 echo "${ECHO_T}no" >&6
15217 rm -f messages.po
15219 # Extract the first word of "msgmerge", so it can be a program name with args.
15220 set dummy msgmerge; ac_word=$2
15221 echo "$as_me:$LINENO: checking for $ac_word" >&5
15222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15223 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 case "$MSGMERGE" in
15228 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15232 for ac_dir in $PATH; do
15233 test -z "$ac_dir" && ac_dir=.
15234 if test -f $ac_dir/$ac_word; then
15235 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15236 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15237 break
15240 done
15241 IFS="$ac_save_ifs"
15242 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15244 esac
15246 MSGMERGE="$ac_cv_path_MSGMERGE"
15247 if test "$MSGMERGE" != ":"; then
15248 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15249 echo "${ECHO_T}$MSGMERGE" >&6
15250 else
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15256 if test "$GMSGFMT" != ":"; then
15257 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15258 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15260 else
15261 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15262 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15263 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15264 GMSGFMT=":"
15268 if test "$XGETTEXT" != ":"; then
15269 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15270 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15272 else
15273 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15274 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15275 XGETTEXT=":"
15277 rm -f messages.po
15280 ac_config_commands="$ac_config_commands default-1"
15283 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15284 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15285 if test "${ac_cv_search_strerror+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 ac_func_search_save_LIBS=$LIBS
15289 ac_cv_search_strerror=no
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 /* Override any gcc2 internal prototype to avoid an error. */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303 char strerror ();
15305 main ()
15307 strerror ();
15309 return 0;
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_search_strerror="none required"
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15340 rm -f conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15342 if test "$ac_cv_search_strerror" = no; then
15343 for ac_lib in cposix; do
15344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h. */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15352 /* Override any gcc2 internal prototype to avoid an error. */
15353 #ifdef __cplusplus
15354 extern "C"
15355 #endif
15356 /* We use char because int might match the return type of a gcc2
15357 builtin and then its argument prototype would still apply. */
15358 char strerror ();
15360 main ()
15362 strerror ();
15364 return 0;
15366 _ACEOF
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369 (eval $ac_link) 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_search_strerror="-l$ac_lib"
15390 break
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15396 rm -f conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 done
15400 LIBS=$ac_func_search_save_LIBS
15402 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15403 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15404 if test "$ac_cv_search_strerror" != no; then
15405 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15410 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15411 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15412 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15422 #include <features.h>
15423 #ifdef __GNU_LIBRARY__
15424 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15425 Lucky GNU user
15426 #endif
15427 #endif
15429 _ACEOF
15430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15431 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15432 ac_cv_gnu_library_2_1=yes
15433 else
15434 ac_cv_gnu_library_2_1=no
15436 rm -f conftest*
15441 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15442 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15444 GLIBC21="$ac_cv_gnu_library_2_1"
15449 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15450 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15451 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15455 if test "$cross_compiling" = yes; then
15457 # Guess based on the CPU.
15458 case "$host_cpu" in
15459 alpha* | i3456786 | m68k | s390*)
15460 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15462 gt_cv_int_divbyzero_sigfpe="guessing no";;
15463 esac
15465 else
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 #include <stdlib.h>
15474 #include <signal.h>
15476 static void
15477 #ifdef __cplusplus
15478 sigfpe_handler (int sig)
15479 #else
15480 sigfpe_handler (sig) int sig;
15481 #endif
15483 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15484 exit (sig != SIGFPE);
15487 int x = 1;
15488 int y = 0;
15489 int z;
15490 int nan;
15492 int main ()
15494 signal (SIGFPE, sigfpe_handler);
15495 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15496 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15497 signal (SIGTRAP, sigfpe_handler);
15498 #endif
15499 /* Linux/SPARC yields signal SIGILL. */
15500 #if defined (__sparc__) && defined (__linux__)
15501 signal (SIGILL, sigfpe_handler);
15502 #endif
15504 z = x / y;
15505 nan = y / y;
15506 exit (1);
15509 _ACEOF
15510 rm -f conftest$ac_exeext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15512 (eval $ac_link) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 gt_cv_int_divbyzero_sigfpe=yes
15522 else
15523 echo "$as_me: program exited with status $ac_status" >&5
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ( exit $ac_status )
15528 gt_cv_int_divbyzero_sigfpe=no
15530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15534 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15535 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15536 case "$gt_cv_int_divbyzero_sigfpe" in
15537 *yes) value=1;;
15538 *) value=0;;
15539 esac
15541 cat >>confdefs.h <<_ACEOF
15542 #define INTDIV0_RAISES_SIGFPE $value
15543 _ACEOF
15547 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15548 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15549 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 #include <sys/types.h>
15559 #include <inttypes.h>
15561 main ()
15563 uintmax_t i = (uintmax_t) -1;
15565 return 0;
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570 (eval $ac_compile) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag"
15578 || test ! -s conftest.err'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 jm_ac_cv_header_inttypes_h=yes
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 jm_ac_cv_header_inttypes_h=no
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15600 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15601 if test $jm_ac_cv_header_inttypes_h = yes; then
15603 cat >>confdefs.h <<_ACEOF
15604 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15605 _ACEOF
15610 echo "$as_me:$LINENO: checking for stdint.h" >&5
15611 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15612 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <sys/types.h>
15622 #include <stdint.h>
15624 main ()
15626 uintmax_t i = (uintmax_t) -1;
15628 return 0;
15630 _ACEOF
15631 rm -f conftest.$ac_objext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15633 (eval $ac_compile) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 jm_ac_cv_header_stdint_h=yes
15654 else
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 jm_ac_cv_header_stdint_h=no
15660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15662 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15663 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15664 if test $jm_ac_cv_header_stdint_h = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define HAVE_STDINT_H_WITH_UINTMAX 1
15668 _ACEOF
15673 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15674 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15675 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 unsigned long long ull = 1; int i = 63;
15686 main ()
15688 unsigned long long ullmax = (unsigned long long) -1;
15689 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_cv_type_unsigned_long_long=yes
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_cv_type_unsigned_long_long=no
15723 rm -f conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15727 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15728 if test $ac_cv_type_unsigned_long_long = yes; then
15730 cat >>confdefs.h <<\_ACEOF
15731 #define HAVE_UNSIGNED_LONG_LONG 1
15732 _ACEOF
15739 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15741 test $ac_cv_type_unsigned_long_long = yes \
15742 && ac_type='unsigned long long' \
15743 || ac_type='unsigned long'
15745 cat >>confdefs.h <<_ACEOF
15746 #define uintmax_t $ac_type
15747 _ACEOF
15752 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15753 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15754 if test "${gt_cv_header_inttypes_h+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 #include <sys/types.h>
15765 #include <inttypes.h>
15767 main ()
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 gt_cv_header_inttypes_h=yes
15797 else
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 gt_cv_header_inttypes_h=no
15803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15807 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15808 if test $gt_cv_header_inttypes_h = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_INTTYPES_H 1
15812 _ACEOF
15818 if test $gt_cv_header_inttypes_h = yes; then
15819 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15820 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15821 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <inttypes.h>
15832 #ifdef PRId32
15833 char *p = PRId32;
15834 #endif
15837 main ()
15841 return 0;
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 gt_cv_inttypes_pri_broken=no
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 gt_cv_inttypes_pri_broken=yes
15873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15877 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15879 if test "$gt_cv_inttypes_pri_broken" = yes; then
15881 cat >>confdefs.h <<_ACEOF
15882 #define PRI_MACROS_BROKEN 1
15883 _ACEOF
15888 if test "X$prefix" = "XNONE"; then
15889 acl_final_prefix="$ac_default_prefix"
15890 else
15891 acl_final_prefix="$prefix"
15893 if test "X$exec_prefix" = "XNONE"; then
15894 acl_final_exec_prefix='${prefix}'
15895 else
15896 acl_final_exec_prefix="$exec_prefix"
15898 acl_save_prefix="$prefix"
15899 prefix="$acl_final_prefix"
15900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15901 prefix="$acl_save_prefix"
15904 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15905 if test "${with_gnu_ld+set}" = set; then
15906 withval="$with_gnu_ld"
15907 test "$withval" = no || with_gnu_ld=yes
15908 else
15909 with_gnu_ld=no
15911 ac_prog=ld
15912 if test "$GCC" = yes; then
15913 # Check if gcc -print-prog-name=ld gives a path.
15914 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15915 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15916 case $host in
15917 *-*-mingw*)
15918 # gcc leaves a trailing carriage return which upsets mingw
15919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15922 esac
15923 case $ac_prog in
15924 # Accept absolute paths.
15925 [\\/]* | [A-Za-z]:[\\/]*)
15926 re_direlt='/[^/][^/]*/\.\./'
15927 # Canonicalize the path of ld
15928 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15930 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15931 done
15932 test -z "$LD" && LD="$ac_prog"
15935 # If it fails, then pretend we aren't using GCC.
15936 ac_prog=ld
15939 # If it is relative, then search for the first ld in PATH.
15940 with_gnu_ld=unknown
15942 esac
15943 elif test "$with_gnu_ld" = yes; then
15944 echo "$as_me:$LINENO: checking for GNU ld" >&5
15945 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15946 else
15947 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15948 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15950 if test "${acl_cv_path_LD+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953 if test -z "$LD"; then
15954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15955 for ac_dir in $PATH; do
15956 test -z "$ac_dir" && ac_dir=.
15957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15958 acl_cv_path_LD="$ac_dir/$ac_prog"
15959 # Check to see if the program is GNU ld. I'd rather use --version,
15960 # but apparently some GNU ld's only accept -v.
15961 # Break only if it was the GNU/non-GNU ld that we prefer.
15962 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15963 test "$with_gnu_ld" != no && break
15964 else
15965 test "$with_gnu_ld" != yes && break
15968 done
15969 IFS="$ac_save_ifs"
15970 else
15971 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15975 LD="$acl_cv_path_LD"
15976 if test -n "$LD"; then
15977 echo "$as_me:$LINENO: result: $LD" >&5
15978 echo "${ECHO_T}$LD" >&6
15979 else
15980 echo "$as_me:$LINENO: result: no" >&5
15981 echo "${ECHO_T}no" >&6
15983 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15984 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15985 { (exit 1); exit 1; }; }
15986 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15987 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15988 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15992 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15993 acl_cv_prog_gnu_ld=yes
15994 else
15995 acl_cv_prog_gnu_ld=no
15998 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15999 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16000 with_gnu_ld=$acl_cv_prog_gnu_ld
16004 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16005 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16006 if test "${acl_cv_rpath+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16010 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16011 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16012 . ./conftest.sh
16013 rm -f ./conftest.sh
16014 acl_cv_rpath=done
16017 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16018 echo "${ECHO_T}$acl_cv_rpath" >&6
16019 wl="$acl_cv_wl"
16020 libext="$acl_cv_libext"
16021 shlibext="$acl_cv_shlibext"
16022 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16023 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16024 hardcode_direct="$acl_cv_hardcode_direct"
16025 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16026 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16027 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16028 # Check whether --enable-rpath or --disable-rpath was given.
16029 if test "${enable_rpath+set}" = set; then
16030 enableval="$enable_rpath"
16032 else
16033 enable_rpath=yes
16042 use_additional=yes
16044 acl_save_prefix="$prefix"
16045 prefix="$acl_final_prefix"
16046 acl_save_exec_prefix="$exec_prefix"
16047 exec_prefix="$acl_final_exec_prefix"
16049 eval additional_includedir=\"$includedir\"
16050 eval additional_libdir=\"$libdir\"
16052 exec_prefix="$acl_save_exec_prefix"
16053 prefix="$acl_save_prefix"
16056 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16057 if test "${with_libiconv_prefix+set}" = set; then
16058 withval="$with_libiconv_prefix"
16060 if test "X$withval" = "Xno"; then
16061 use_additional=no
16062 else
16063 if test "X$withval" = "X"; then
16065 acl_save_prefix="$prefix"
16066 prefix="$acl_final_prefix"
16067 acl_save_exec_prefix="$exec_prefix"
16068 exec_prefix="$acl_final_exec_prefix"
16070 eval additional_includedir=\"$includedir\"
16071 eval additional_libdir=\"$libdir\"
16073 exec_prefix="$acl_save_exec_prefix"
16074 prefix="$acl_save_prefix"
16076 else
16077 additional_includedir="$withval/include"
16078 additional_libdir="$withval/lib"
16083 LIBICONV=
16084 LTLIBICONV=
16085 INCICONV=
16086 rpathdirs=
16087 ltrpathdirs=
16088 names_already_handled=
16089 names_next_round='iconv '
16090 while test -n "$names_next_round"; do
16091 names_this_round="$names_next_round"
16092 names_next_round=
16093 for name in $names_this_round; do
16094 already_handled=
16095 for n in $names_already_handled; do
16096 if test "$n" = "$name"; then
16097 already_handled=yes
16098 break
16100 done
16101 if test -z "$already_handled"; then
16102 names_already_handled="$names_already_handled $name"
16103 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16104 eval value=\"\$HAVE_LIB$uppername\"
16105 if test -n "$value"; then
16106 if test "$value" = yes; then
16107 eval value=\"\$LIB$uppername\"
16108 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16109 eval value=\"\$LTLIB$uppername\"
16110 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16111 else
16114 else
16115 found_dir=
16116 found_la=
16117 found_so=
16118 found_a=
16119 if test $use_additional = yes; then
16120 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16121 found_dir="$additional_libdir"
16122 found_so="$additional_libdir/lib$name.$shlibext"
16123 if test -f "$additional_libdir/lib$name.la"; then
16124 found_la="$additional_libdir/lib$name.la"
16126 else
16127 if test -f "$additional_libdir/lib$name.$libext"; then
16128 found_dir="$additional_libdir"
16129 found_a="$additional_libdir/lib$name.$libext"
16130 if test -f "$additional_libdir/lib$name.la"; then
16131 found_la="$additional_libdir/lib$name.la"
16136 if test "X$found_dir" = "X"; then
16137 for x in $LDFLAGS $LTLIBICONV; do
16139 acl_save_prefix="$prefix"
16140 prefix="$acl_final_prefix"
16141 acl_save_exec_prefix="$exec_prefix"
16142 exec_prefix="$acl_final_exec_prefix"
16143 eval x=\"$x\"
16144 exec_prefix="$acl_save_exec_prefix"
16145 prefix="$acl_save_prefix"
16147 case "$x" in
16148 -L*)
16149 dir=`echo "X$x" | sed -e 's/^X-L//'`
16150 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16151 found_dir="$dir"
16152 found_so="$dir/lib$name.$shlibext"
16153 if test -f "$dir/lib$name.la"; then
16154 found_la="$dir/lib$name.la"
16156 else
16157 if test -f "$dir/lib$name.$libext"; then
16158 found_dir="$dir"
16159 found_a="$dir/lib$name.$libext"
16160 if test -f "$dir/lib$name.la"; then
16161 found_la="$dir/lib$name.la"
16166 esac
16167 if test "X$found_dir" != "X"; then
16168 break
16170 done
16172 if test "X$found_dir" != "X"; then
16173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16174 if test "X$found_so" != "X"; then
16175 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16176 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16177 else
16178 haveit=
16179 for x in $ltrpathdirs; do
16180 if test "X$x" = "X$found_dir"; then
16181 haveit=yes
16182 break
16184 done
16185 if test -z "$haveit"; then
16186 ltrpathdirs="$ltrpathdirs $found_dir"
16188 if test "$hardcode_direct" = yes; then
16189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16190 else
16191 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16193 haveit=
16194 for x in $rpathdirs; do
16195 if test "X$x" = "X$found_dir"; then
16196 haveit=yes
16197 break
16199 done
16200 if test -z "$haveit"; then
16201 rpathdirs="$rpathdirs $found_dir"
16203 else
16204 haveit=
16205 for x in $LDFLAGS $LIBICONV; do
16207 acl_save_prefix="$prefix"
16208 prefix="$acl_final_prefix"
16209 acl_save_exec_prefix="$exec_prefix"
16210 exec_prefix="$acl_final_exec_prefix"
16211 eval x=\"$x\"
16212 exec_prefix="$acl_save_exec_prefix"
16213 prefix="$acl_save_prefix"
16215 if test "X$x" = "X-L$found_dir"; then
16216 haveit=yes
16217 break
16219 done
16220 if test -z "$haveit"; then
16221 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16223 if test "$hardcode_minus_L" != no; then
16224 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16225 else
16226 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16231 else
16232 if test "X$found_a" != "X"; then
16233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16234 else
16235 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16238 additional_includedir=
16239 case "$found_dir" in
16240 */lib | */lib/)
16241 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16242 additional_includedir="$basedir/include"
16244 esac
16245 if test "X$additional_includedir" != "X"; then
16246 if test "X$additional_includedir" != "X/usr/include"; then
16247 haveit=
16248 if test "X$additional_includedir" = "X/usr/local/include"; then
16249 if test -n "$GCC"; then
16250 case $host_os in
16251 linux*) haveit=yes;;
16252 esac
16255 if test -z "$haveit"; then
16256 for x in $CPPFLAGS $INCICONV; do
16258 acl_save_prefix="$prefix"
16259 prefix="$acl_final_prefix"
16260 acl_save_exec_prefix="$exec_prefix"
16261 exec_prefix="$acl_final_exec_prefix"
16262 eval x=\"$x\"
16263 exec_prefix="$acl_save_exec_prefix"
16264 prefix="$acl_save_prefix"
16266 if test "X$x" = "X-I$additional_includedir"; then
16267 haveit=yes
16268 break
16270 done
16271 if test -z "$haveit"; then
16272 if test -d "$additional_includedir"; then
16273 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16279 if test -n "$found_la"; then
16280 save_libdir="$libdir"
16281 case "$found_la" in
16282 */* | *\\*) . "$found_la" ;;
16283 *) . "./$found_la" ;;
16284 esac
16285 libdir="$save_libdir"
16286 for dep in $dependency_libs; do
16287 case "$dep" in
16288 -L*)
16289 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16290 if test "X$additional_libdir" != "X/usr/lib"; then
16291 haveit=
16292 if test "X$additional_libdir" = "X/usr/local/lib"; then
16293 if test -n "$GCC"; then
16294 case $host_os in
16295 linux*) haveit=yes;;
16296 esac
16299 if test -z "$haveit"; then
16300 haveit=
16301 for x in $LDFLAGS $LIBICONV; do
16303 acl_save_prefix="$prefix"
16304 prefix="$acl_final_prefix"
16305 acl_save_exec_prefix="$exec_prefix"
16306 exec_prefix="$acl_final_exec_prefix"
16307 eval x=\"$x\"
16308 exec_prefix="$acl_save_exec_prefix"
16309 prefix="$acl_save_prefix"
16311 if test "X$x" = "X-L$additional_libdir"; then
16312 haveit=yes
16313 break
16315 done
16316 if test -z "$haveit"; then
16317 if test -d "$additional_libdir"; then
16318 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16321 haveit=
16322 for x in $LDFLAGS $LTLIBICONV; do
16324 acl_save_prefix="$prefix"
16325 prefix="$acl_final_prefix"
16326 acl_save_exec_prefix="$exec_prefix"
16327 exec_prefix="$acl_final_exec_prefix"
16328 eval x=\"$x\"
16329 exec_prefix="$acl_save_exec_prefix"
16330 prefix="$acl_save_prefix"
16332 if test "X$x" = "X-L$additional_libdir"; then
16333 haveit=yes
16334 break
16336 done
16337 if test -z "$haveit"; then
16338 if test -d "$additional_libdir"; then
16339 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16345 -R*)
16346 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16347 if test "$enable_rpath" != no; then
16348 haveit=
16349 for x in $rpathdirs; do
16350 if test "X$x" = "X$dir"; then
16351 haveit=yes
16352 break
16354 done
16355 if test -z "$haveit"; then
16356 rpathdirs="$rpathdirs $dir"
16358 haveit=
16359 for x in $ltrpathdirs; do
16360 if test "X$x" = "X$dir"; then
16361 haveit=yes
16362 break
16364 done
16365 if test -z "$haveit"; then
16366 ltrpathdirs="$ltrpathdirs $dir"
16370 -l*)
16371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16373 *.la)
16374 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16377 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16378 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16380 esac
16381 done
16383 else
16384 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16389 done
16390 done
16391 if test "X$rpathdirs" != "X"; then
16392 if test -n "$hardcode_libdir_separator"; then
16393 alldirs=
16394 for found_dir in $rpathdirs; do
16395 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16396 done
16397 acl_save_libdir="$libdir"
16398 libdir="$alldirs"
16399 eval flag=\"$hardcode_libdir_flag_spec\"
16400 libdir="$acl_save_libdir"
16401 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16402 else
16403 for found_dir in $rpathdirs; do
16404 acl_save_libdir="$libdir"
16405 libdir="$found_dir"
16406 eval flag=\"$hardcode_libdir_flag_spec\"
16407 libdir="$acl_save_libdir"
16408 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16409 done
16412 if test "X$ltrpathdirs" != "X"; then
16413 for found_dir in $ltrpathdirs; do
16414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16415 done
16431 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16432 stdlib.h string.h unistd.h sys/param.h
16434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16436 echo "$as_me:$LINENO: checking for $ac_header" >&5
16437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16443 else
16444 # Is the header compilable?
16445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 #include <$ac_header>
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458 (eval $ac_compile) 2>conftest.er1
16459 ac_status=$?
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -z "$ac_c_werror_flag"
16466 || test ! -s conftest.err'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_header_compiler=yes
16479 else
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_compiler=no
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16487 echo "${ECHO_T}$ac_header_compiler" >&6
16489 # Is the header present?
16490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <$ac_header>
16499 _ACEOF
16500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } >/dev/null; then
16508 if test -s conftest.err; then
16509 ac_cpp_err=$ac_c_preproc_warn_flag
16510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16511 else
16512 ac_cpp_err=
16514 else
16515 ac_cpp_err=yes
16517 if test -z "$ac_cpp_err"; then
16518 ac_header_preproc=yes
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_header_preproc=no
16525 rm -f conftest.err conftest.$ac_ext
16526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16527 echo "${ECHO_T}$ac_header_preproc" >&6
16529 # So? What about this header?
16530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16531 yes:no: )
16532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16536 ac_header_preproc=yes
16538 no:yes:* )
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16552 cat <<\_ASBOX
16553 ## ------------------------------ ##
16554 ## Report this to admin@amule.org ##
16555 ## ------------------------------ ##
16556 _ASBOX
16558 sed "s/^/$as_me: WARNING: /" >&2
16560 esac
16561 echo "$as_me:$LINENO: checking for $ac_header" >&5
16562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566 eval "$as_ac_Header=\$ac_header_preproc"
16568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16573 cat >>confdefs.h <<_ACEOF
16574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16575 _ACEOF
16579 done
16602 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16603 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16604 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16607 echo "$as_me:$LINENO: checking for $ac_func" >&5
16608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16609 if eval "test \"\${$as_ac_var+set}\" = set"; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16620 #define $ac_func innocuous_$ac_func
16622 /* System header to define __stub macros and hopefully few prototypes,
16623 which can conflict with char $ac_func (); below.
16624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16625 <limits.h> exists even on freestanding compilers. */
16627 #ifdef __STDC__
16628 # include <limits.h>
16629 #else
16630 # include <assert.h>
16631 #endif
16633 #undef $ac_func
16635 /* Override any gcc2 internal prototype to avoid an error. */
16636 #ifdef __cplusplus
16637 extern "C"
16639 #endif
16640 /* We use char because int might match the return type of a gcc2
16641 builtin and then its argument prototype would still apply. */
16642 char $ac_func ();
16643 /* The GNU C library defines this for functions which it implements
16644 to always fail with ENOSYS. Some functions are actually named
16645 something starting with __ and the normal name is an alias. */
16646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16647 choke me
16648 #else
16649 char (*f) () = $ac_func;
16650 #endif
16651 #ifdef __cplusplus
16653 #endif
16656 main ()
16658 return f != $ac_func;
16660 return 0;
16662 _ACEOF
16663 rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16665 (eval $ac_link) 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest$ac_exeext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 eval "$as_ac_var=yes"
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 eval "$as_ac_var=no"
16692 rm -f conftest.err conftest.$ac_objext \
16693 conftest$ac_exeext conftest.$ac_ext
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16697 if test `eval echo '${'$as_ac_var'}'` = yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16700 _ACEOF
16703 done
16711 am_save_CPPFLAGS="$CPPFLAGS"
16713 for element in $INCICONV; do
16714 haveit=
16715 for x in $CPPFLAGS; do
16717 acl_save_prefix="$prefix"
16718 prefix="$acl_final_prefix"
16719 acl_save_exec_prefix="$exec_prefix"
16720 exec_prefix="$acl_final_exec_prefix"
16721 eval x=\"$x\"
16722 exec_prefix="$acl_save_exec_prefix"
16723 prefix="$acl_save_prefix"
16725 if test "X$x" = "X$element"; then
16726 haveit=yes
16727 break
16729 done
16730 if test -z "$haveit"; then
16731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16733 done
16736 echo "$as_me:$LINENO: checking for iconv" >&5
16737 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16738 if test "${am_cv_func_iconv+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16742 am_cv_func_iconv="no, consider installing GNU libiconv"
16743 am_cv_lib_iconv=no
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <stdlib.h>
16751 #include <iconv.h>
16753 main ()
16755 iconv_t cd = iconv_open("","");
16756 iconv(cd,NULL,NULL,NULL,NULL);
16757 iconv_close(cd);
16759 return 0;
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16764 (eval $ac_link) 2>conftest.er1
16765 ac_status=$?
16766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag"
16772 || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 am_cv_func_iconv=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16790 rm -f conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16792 if test "$am_cv_func_iconv" != yes; then
16793 am_save_LIBS="$LIBS"
16794 LIBS="$LIBS $LIBICONV"
16795 cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h. */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 #include <stdlib.h>
16802 #include <iconv.h>
16804 main ()
16806 iconv_t cd = iconv_open("","");
16807 iconv(cd,NULL,NULL,NULL,NULL);
16808 iconv_close(cd);
16810 return 0;
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 am_cv_lib_iconv=yes
16836 am_cv_func_iconv=yes
16837 else
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16842 rm -f conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS="$am_save_LIBS"
16848 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16849 echo "${ECHO_T}$am_cv_func_iconv" >&6
16850 if test "$am_cv_func_iconv" = yes; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_ICONV 1
16854 _ACEOF
16857 if test "$am_cv_lib_iconv" = yes; then
16858 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16859 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16860 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16861 echo "${ECHO_T}$LIBICONV" >&6
16862 else
16863 CPPFLAGS="$am_save_CPPFLAGS"
16864 LIBICONV=
16865 LTLIBICONV=
16870 if test "$am_cv_func_iconv" = yes; then
16871 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16872 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16873 if test "${am_cv_proto_iconv+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16884 #include <stdlib.h>
16885 #include <iconv.h>
16886 extern
16887 #ifdef __cplusplus
16889 #endif
16890 #if defined(__STDC__) || defined(__cplusplus)
16891 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16892 #else
16893 size_t iconv();
16894 #endif
16897 main ()
16901 return 0;
16903 _ACEOF
16904 rm -f conftest.$ac_objext
16905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16906 (eval $ac_compile) 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } &&
16913 { ac_try='test -z "$ac_c_werror_flag"
16914 || test ! -s conftest.err'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 am_cv_proto_iconv_arg1=""
16927 else
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 am_cv_proto_iconv_arg1="const"
16933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16934 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);"
16937 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16938 echo "$as_me:$LINENO: result: ${ac_t:-
16939 }$am_cv_proto_iconv" >&5
16940 echo "${ECHO_T}${ac_t:-
16941 }$am_cv_proto_iconv" >&6
16943 cat >>confdefs.h <<_ACEOF
16944 #define ICONV_CONST $am_cv_proto_iconv_arg1
16945 _ACEOF
16950 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16951 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16952 if test "${am_cv_langinfo_codeset+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 #include <langinfo.h>
16963 main ()
16965 char* cs = nl_langinfo(CODESET);
16967 return 0;
16969 _ACEOF
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag"
16980 || test ! -s conftest.err'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 am_cv_langinfo_codeset=yes
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 am_cv_langinfo_codeset=no
16999 rm -f conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17003 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17004 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17005 if test $am_cv_langinfo_codeset = yes; then
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_LANGINFO_CODESET 1
17009 _ACEOF
17013 if test $ac_cv_header_locale_h = yes; then
17015 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17016 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17017 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 #include <locale.h>
17028 main ()
17030 return LC_MESSAGES
17032 return 0;
17034 _ACEOF
17035 rm -f conftest.$ac_objext conftest$ac_exeext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17037 (eval $ac_link) 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest$ac_exeext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 am_cv_val_LC_MESSAGES=yes
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 am_cv_val_LC_MESSAGES=no
17064 rm -f conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17067 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17068 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17069 if test $am_cv_val_LC_MESSAGES = yes; then
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_LC_MESSAGES 1
17073 _ACEOF
17079 for ac_prog in bison
17081 # Extract the first word of "$ac_prog", so it can be a program name with args.
17082 set dummy $ac_prog; ac_word=$2
17083 echo "$as_me:$LINENO: checking for $ac_word" >&5
17084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17085 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088 if test -n "$INTLBISON"; then
17089 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17090 else
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17094 IFS=$as_save_IFS
17095 test -z "$as_dir" && as_dir=.
17096 for ac_exec_ext in '' $ac_executable_extensions; do
17097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17098 ac_cv_prog_INTLBISON="$ac_prog"
17099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17100 break 2
17102 done
17103 done
17107 INTLBISON=$ac_cv_prog_INTLBISON
17108 if test -n "$INTLBISON"; then
17109 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17110 echo "${ECHO_T}$INTLBISON" >&6
17111 else
17112 echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17116 test -n "$INTLBISON" && break
17117 done
17119 if test -z "$INTLBISON"; then
17120 ac_verc_fail=yes
17121 else
17122 echo "$as_me:$LINENO: checking version of bison" >&5
17123 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17124 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17125 case $ac_prog_version in
17126 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17127 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17128 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17129 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17130 esac
17131 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17132 echo "${ECHO_T}$ac_prog_version" >&6
17134 if test $ac_verc_fail = yes; then
17135 INTLBISON=:
17140 # Check whether --with-language or --without-language was given.
17141 if test "${with_language+set}" = set; then
17142 withval="$with_language"
17143 if test "$withval" != "all"; then
17144 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17163 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17164 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17165 # Check whether --enable-nls or --disable-nls was given.
17166 if test "${enable_nls+set}" = set; then
17167 enableval="$enable_nls"
17168 USE_NLS=$enableval
17169 else
17170 USE_NLS=yes
17172 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17173 echo "${ECHO_T}$USE_NLS" >&6
17177 BUILD_INCLUDED_LIBINTL=no
17178 USE_INCLUDED_LIBINTL=no
17180 LIBINTL=
17181 LTLIBINTL=
17182 POSUB=
17184 if test "$USE_NLS" = "yes"; then
17185 gt_use_preinstalled_gnugettext=no
17187 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17188 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17190 # Check whether --with-included-gettext or --without-included-gettext was given.
17191 if test "${with_included_gettext+set}" = set; then
17192 withval="$with_included_gettext"
17193 nls_cv_force_use_gnu_gettext=$withval
17194 else
17195 nls_cv_force_use_gnu_gettext=no
17197 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17198 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17200 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17201 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17208 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17209 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17210 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <libintl.h>
17220 extern int _nl_msg_cat_cntr;
17221 extern int *_nl_domain_bindings;
17223 main ()
17225 bindtextdomain ("", "");
17226 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17228 return 0;
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233 (eval $ac_link) 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 gt_cv_func_gnugettext2_libc=yes
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 gt_cv_func_gnugettext2_libc=no
17260 rm -f conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17264 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17266 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17270 use_additional=yes
17272 acl_save_prefix="$prefix"
17273 prefix="$acl_final_prefix"
17274 acl_save_exec_prefix="$exec_prefix"
17275 exec_prefix="$acl_final_exec_prefix"
17277 eval additional_includedir=\"$includedir\"
17278 eval additional_libdir=\"$libdir\"
17280 exec_prefix="$acl_save_exec_prefix"
17281 prefix="$acl_save_prefix"
17284 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17285 if test "${with_libintl_prefix+set}" = set; then
17286 withval="$with_libintl_prefix"
17288 if test "X$withval" = "Xno"; then
17289 use_additional=no
17290 else
17291 if test "X$withval" = "X"; then
17293 acl_save_prefix="$prefix"
17294 prefix="$acl_final_prefix"
17295 acl_save_exec_prefix="$exec_prefix"
17296 exec_prefix="$acl_final_exec_prefix"
17298 eval additional_includedir=\"$includedir\"
17299 eval additional_libdir=\"$libdir\"
17301 exec_prefix="$acl_save_exec_prefix"
17302 prefix="$acl_save_prefix"
17304 else
17305 additional_includedir="$withval/include"
17306 additional_libdir="$withval/lib"
17311 LIBINTL=
17312 LTLIBINTL=
17313 INCINTL=
17314 rpathdirs=
17315 ltrpathdirs=
17316 names_already_handled=
17317 names_next_round='intl '
17318 while test -n "$names_next_round"; do
17319 names_this_round="$names_next_round"
17320 names_next_round=
17321 for name in $names_this_round; do
17322 already_handled=
17323 for n in $names_already_handled; do
17324 if test "$n" = "$name"; then
17325 already_handled=yes
17326 break
17328 done
17329 if test -z "$already_handled"; then
17330 names_already_handled="$names_already_handled $name"
17331 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17332 eval value=\"\$HAVE_LIB$uppername\"
17333 if test -n "$value"; then
17334 if test "$value" = yes; then
17335 eval value=\"\$LIB$uppername\"
17336 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17337 eval value=\"\$LTLIB$uppername\"
17338 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17339 else
17342 else
17343 found_dir=
17344 found_la=
17345 found_so=
17346 found_a=
17347 if test $use_additional = yes; then
17348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17349 found_dir="$additional_libdir"
17350 found_so="$additional_libdir/lib$name.$shlibext"
17351 if test -f "$additional_libdir/lib$name.la"; then
17352 found_la="$additional_libdir/lib$name.la"
17354 else
17355 if test -f "$additional_libdir/lib$name.$libext"; then
17356 found_dir="$additional_libdir"
17357 found_a="$additional_libdir/lib$name.$libext"
17358 if test -f "$additional_libdir/lib$name.la"; then
17359 found_la="$additional_libdir/lib$name.la"
17364 if test "X$found_dir" = "X"; then
17365 for x in $LDFLAGS $LTLIBINTL; do
17367 acl_save_prefix="$prefix"
17368 prefix="$acl_final_prefix"
17369 acl_save_exec_prefix="$exec_prefix"
17370 exec_prefix="$acl_final_exec_prefix"
17371 eval x=\"$x\"
17372 exec_prefix="$acl_save_exec_prefix"
17373 prefix="$acl_save_prefix"
17375 case "$x" in
17376 -L*)
17377 dir=`echo "X$x" | sed -e 's/^X-L//'`
17378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17379 found_dir="$dir"
17380 found_so="$dir/lib$name.$shlibext"
17381 if test -f "$dir/lib$name.la"; then
17382 found_la="$dir/lib$name.la"
17384 else
17385 if test -f "$dir/lib$name.$libext"; then
17386 found_dir="$dir"
17387 found_a="$dir/lib$name.$libext"
17388 if test -f "$dir/lib$name.la"; then
17389 found_la="$dir/lib$name.la"
17394 esac
17395 if test "X$found_dir" != "X"; then
17396 break
17398 done
17400 if test "X$found_dir" != "X"; then
17401 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17402 if test "X$found_so" != "X"; then
17403 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17405 else
17406 haveit=
17407 for x in $ltrpathdirs; do
17408 if test "X$x" = "X$found_dir"; then
17409 haveit=yes
17410 break
17412 done
17413 if test -z "$haveit"; then
17414 ltrpathdirs="$ltrpathdirs $found_dir"
17416 if test "$hardcode_direct" = yes; then
17417 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17418 else
17419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17420 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17421 haveit=
17422 for x in $rpathdirs; do
17423 if test "X$x" = "X$found_dir"; then
17424 haveit=yes
17425 break
17427 done
17428 if test -z "$haveit"; then
17429 rpathdirs="$rpathdirs $found_dir"
17431 else
17432 haveit=
17433 for x in $LDFLAGS $LIBINTL; do
17435 acl_save_prefix="$prefix"
17436 prefix="$acl_final_prefix"
17437 acl_save_exec_prefix="$exec_prefix"
17438 exec_prefix="$acl_final_exec_prefix"
17439 eval x=\"$x\"
17440 exec_prefix="$acl_save_exec_prefix"
17441 prefix="$acl_save_prefix"
17443 if test "X$x" = "X-L$found_dir"; then
17444 haveit=yes
17445 break
17447 done
17448 if test -z "$haveit"; then
17449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17451 if test "$hardcode_minus_L" != no; then
17452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17453 else
17454 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17459 else
17460 if test "X$found_a" != "X"; then
17461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17462 else
17463 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17466 additional_includedir=
17467 case "$found_dir" in
17468 */lib | */lib/)
17469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17470 additional_includedir="$basedir/include"
17472 esac
17473 if test "X$additional_includedir" != "X"; then
17474 if test "X$additional_includedir" != "X/usr/include"; then
17475 haveit=
17476 if test "X$additional_includedir" = "X/usr/local/include"; then
17477 if test -n "$GCC"; then
17478 case $host_os in
17479 linux*) haveit=yes;;
17480 esac
17483 if test -z "$haveit"; then
17484 for x in $CPPFLAGS $INCINTL; do
17486 acl_save_prefix="$prefix"
17487 prefix="$acl_final_prefix"
17488 acl_save_exec_prefix="$exec_prefix"
17489 exec_prefix="$acl_final_exec_prefix"
17490 eval x=\"$x\"
17491 exec_prefix="$acl_save_exec_prefix"
17492 prefix="$acl_save_prefix"
17494 if test "X$x" = "X-I$additional_includedir"; then
17495 haveit=yes
17496 break
17498 done
17499 if test -z "$haveit"; then
17500 if test -d "$additional_includedir"; then
17501 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17507 if test -n "$found_la"; then
17508 save_libdir="$libdir"
17509 case "$found_la" in
17510 */* | *\\*) . "$found_la" ;;
17511 *) . "./$found_la" ;;
17512 esac
17513 libdir="$save_libdir"
17514 for dep in $dependency_libs; do
17515 case "$dep" in
17516 -L*)
17517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17518 if test "X$additional_libdir" != "X/usr/lib"; then
17519 haveit=
17520 if test "X$additional_libdir" = "X/usr/local/lib"; then
17521 if test -n "$GCC"; then
17522 case $host_os in
17523 linux*) haveit=yes;;
17524 esac
17527 if test -z "$haveit"; then
17528 haveit=
17529 for x in $LDFLAGS $LIBINTL; do
17531 acl_save_prefix="$prefix"
17532 prefix="$acl_final_prefix"
17533 acl_save_exec_prefix="$exec_prefix"
17534 exec_prefix="$acl_final_exec_prefix"
17535 eval x=\"$x\"
17536 exec_prefix="$acl_save_exec_prefix"
17537 prefix="$acl_save_prefix"
17539 if test "X$x" = "X-L$additional_libdir"; then
17540 haveit=yes
17541 break
17543 done
17544 if test -z "$haveit"; then
17545 if test -d "$additional_libdir"; then
17546 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17549 haveit=
17550 for x in $LDFLAGS $LTLIBINTL; do
17552 acl_save_prefix="$prefix"
17553 prefix="$acl_final_prefix"
17554 acl_save_exec_prefix="$exec_prefix"
17555 exec_prefix="$acl_final_exec_prefix"
17556 eval x=\"$x\"
17557 exec_prefix="$acl_save_exec_prefix"
17558 prefix="$acl_save_prefix"
17560 if test "X$x" = "X-L$additional_libdir"; then
17561 haveit=yes
17562 break
17564 done
17565 if test -z "$haveit"; then
17566 if test -d "$additional_libdir"; then
17567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17573 -R*)
17574 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17575 if test "$enable_rpath" != no; then
17576 haveit=
17577 for x in $rpathdirs; do
17578 if test "X$x" = "X$dir"; then
17579 haveit=yes
17580 break
17582 done
17583 if test -z "$haveit"; then
17584 rpathdirs="$rpathdirs $dir"
17586 haveit=
17587 for x in $ltrpathdirs; do
17588 if test "X$x" = "X$dir"; then
17589 haveit=yes
17590 break
17592 done
17593 if test -z "$haveit"; then
17594 ltrpathdirs="$ltrpathdirs $dir"
17598 -l*)
17599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17601 *.la)
17602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17605 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17608 esac
17609 done
17611 else
17612 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17617 done
17618 done
17619 if test "X$rpathdirs" != "X"; then
17620 if test -n "$hardcode_libdir_separator"; then
17621 alldirs=
17622 for found_dir in $rpathdirs; do
17623 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17624 done
17625 acl_save_libdir="$libdir"
17626 libdir="$alldirs"
17627 eval flag=\"$hardcode_libdir_flag_spec\"
17628 libdir="$acl_save_libdir"
17629 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17630 else
17631 for found_dir in $rpathdirs; do
17632 acl_save_libdir="$libdir"
17633 libdir="$found_dir"
17634 eval flag=\"$hardcode_libdir_flag_spec\"
17635 libdir="$acl_save_libdir"
17636 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17637 done
17640 if test "X$ltrpathdirs" != "X"; then
17641 for found_dir in $ltrpathdirs; do
17642 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17643 done
17646 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17647 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17648 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 gt_save_CPPFLAGS="$CPPFLAGS"
17652 CPPFLAGS="$CPPFLAGS $INCINTL"
17653 gt_save_LIBS="$LIBS"
17654 LIBS="$LIBS $LIBINTL"
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <libintl.h>
17662 extern int _nl_msg_cat_cntr;
17663 extern
17664 #ifdef __cplusplus
17666 #endif
17667 const char *_nl_expand_alias ();
17669 main ()
17671 bindtextdomain ("", "");
17672 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17674 return 0;
17676 _ACEOF
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_c_werror_flag"
17687 || test ! -s conftest.err'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest$ac_exeext'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 gt_cv_func_gnugettext2_libintl=yes
17700 else
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 gt_cv_func_gnugettext2_libintl=no
17706 rm -f conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17709 LIBS="$LIBS $LIBICONV"
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 #include <libintl.h>
17717 extern int _nl_msg_cat_cntr;
17718 extern
17719 #ifdef __cplusplus
17721 #endif
17722 const char *_nl_expand_alias ();
17724 main ()
17726 bindtextdomain ("", "");
17727 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17729 return 0;
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 LIBINTL="$LIBINTL $LIBICONV"
17755 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17756 gt_cv_func_gnugettext2_libintl=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17763 rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17766 CPPFLAGS="$gt_save_CPPFLAGS"
17767 LIBS="$gt_save_LIBS"
17769 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17770 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17773 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17774 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17775 && test "$PACKAGE" != gettext; }; then
17776 gt_use_preinstalled_gnugettext=yes
17777 else
17778 LIBINTL=
17779 LTLIBINTL=
17780 INCINTL=
17784 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17785 nls_cv_use_gnu_gettext=yes
17789 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17790 INTLOBJS="\$(GETTOBJS)"
17791 BUILD_INCLUDED_LIBINTL=yes
17792 USE_INCLUDED_LIBINTL=yes
17793 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17794 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17795 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17798 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17799 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17800 CATOBJEXT=.gmo
17804 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17805 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17807 cat >>confdefs.h <<\_ACEOF
17808 #define ENABLE_NLS 1
17809 _ACEOF
17811 else
17812 USE_NLS=no
17816 if test "$USE_NLS" = "yes"; then
17818 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17819 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17820 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17821 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17822 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17823 echo "${ECHO_T}$LIBINTL" >&6
17825 for element in $INCINTL; do
17826 haveit=
17827 for x in $CPPFLAGS; do
17829 acl_save_prefix="$prefix"
17830 prefix="$acl_final_prefix"
17831 acl_save_exec_prefix="$exec_prefix"
17832 exec_prefix="$acl_final_exec_prefix"
17833 eval x=\"$x\"
17834 exec_prefix="$acl_save_exec_prefix"
17835 prefix="$acl_save_prefix"
17837 if test "X$x" = "X$element"; then
17838 haveit=yes
17839 break
17841 done
17842 if test -z "$haveit"; then
17843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17845 done
17850 cat >>confdefs.h <<\_ACEOF
17851 #define HAVE_GETTEXT 1
17852 _ACEOF
17855 cat >>confdefs.h <<\_ACEOF
17856 #define HAVE_DCGETTEXT 1
17857 _ACEOF
17861 POSUB=po
17865 if test "$PACKAGE" = gettext; then
17866 BUILD_INCLUDED_LIBINTL=yes
17874 nls_cv_header_intl=
17875 nls_cv_header_libgt=
17877 DATADIRNAME=share
17880 INSTOBJEXT=.mo
17883 GENCAT=gencat
17886 INTL_LIBTOOL_SUFFIX_PREFIX=
17890 INTLLIBS="$LIBINTL"
17897 if test $USE_INCLUDED_LIBINTL = yes; then
17898 INCINTL=-I\${top_builddir}/intl
17902 if test x$USE_NLS = xyes; then
17904 echo "$as_me:$LINENO: checking for autopoint" >&5
17905 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17906 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17907 if test -n "$autopoint_version"; then
17909 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17910 echo "${ECHO_T}yes ($autopoint_version)" >&6
17913 else
17915 echo "$as_me:$LINENO: result: no" >&5
17916 echo "${ECHO_T}no" >&6
17917 USE_NLS=no
17924 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
17925 { echo "$as_me:$LINENO: WARNING:
17926 You need to install GNU gettext/gettext-tools to compile aMule with
17927 i18n support." >&5
17928 echo "$as_me: WARNING:
17929 You need to install GNU gettext/gettext-tools to compile aMule with
17930 i18n support." >&2;}
17931 _mule_warning_8=yes
17932 _mule_has_warnings=yes
17937 if test ${USE_NLS:-no} = yes; then
17939 echo "$as_me:$LINENO: checking for requested languages" >&5
17940 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17941 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17943 if test "$AMULE_DAEMON" = "yes"; then
17945 if test -z "$LINGUAS"; then
17946 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17947 else
17949 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17950 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17954 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17956 else
17957 AMULE_DAEMON_MANPAGES=
17963 if test "$AMULECMD" = "yes"; then
17965 if test -z "$LINGUAS"; then
17966 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17967 else
17969 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17970 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17974 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17976 else
17977 AMULECMD_MANPAGES=
17983 if test "$WEB" = "yes"; then
17985 if test -z "$LINGUAS"; then
17986 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17987 else
17989 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17990 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17994 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
17996 else
17997 WEB_MANPAGES=
18003 if test "$AMULE_GUI" = "yes"; then
18005 if test -z "$LINGUAS"; then
18006 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18007 else
18009 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18010 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18014 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18016 else
18017 AMULE_GUI_MANPAGES=
18023 if test "$CAS" = "yes"; then
18025 if test -z "$LINGUAS"; then
18026 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18027 else
18029 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18030 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18034 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18036 else
18037 CAS_MANPAGES=
18043 if test "$WXCAS" = "yes"; then
18045 if test -z "$LINGUAS"; then
18046 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18047 else
18049 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18050 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18054 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18056 else
18057 WXCAS_MANPAGES=
18063 if test "$ED2K" = "yes"; then
18065 if test -z "$LINGUAS"; then
18066 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18067 else
18069 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18070 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18074 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18076 else
18077 ED2K_MANPAGES=
18083 if test "$ALC" = "yes"; then
18085 if test -z "$LINGUAS"; then
18086 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18087 else
18089 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18090 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18094 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18096 else
18097 ALC_MANPAGES=
18103 if test "$ALCC" = "yes"; then
18105 if test -z "$LINGUAS"; then
18106 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18107 else
18109 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18110 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18114 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18116 else
18117 ALCC_MANPAGES=
18123 if test "$MONOLITHIC" = "yes"; then
18125 if test -z "$LINGUAS"; then
18126 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18127 else
18129 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18130 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18134 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18136 else
18137 MONOLITHIC_MANPAGES=
18142 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18143 echo "${ECHO_T}${LINGUAS:-all}" >&6
18150 # Check for bfd.h (to have proper backtraces without using wxExecute)
18152 echo "$as_me:$LINENO: checking for bfd" >&5
18153 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18154 result=no
18155 for bfd_ldadd in "" "${LIBINTL}"; do
18156 mule_backup_LIBS="$LIBS"
18157 mule_backup_LDFLAGS="$LDFLAGS"
18158 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18159 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18160 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18168 #include <ansidecl.h>
18169 #include <bfd.h>
18172 main ()
18175 char *dummy = bfd_errmsg(bfd_get_error());
18178 return 0;
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18184 (eval $ac_link) 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag"
18192 || test ! -s conftest.err'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest$ac_exeext'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18205 result=yes
18206 BFD_CPPFLAGS="-DHAVE_BFD"
18207 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18208 LIBS="$mule_backup_LIBS"
18209 LDFLAGS="$mule_backup_LDFLAGS"
18210 break
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 LIBS="$mule_backup_LIBS"
18220 LDFLAGS="$mule_backup_LDFLAGS"
18221 done
18223 echo "$as_me:$LINENO: result: $result" >&5
18224 echo "${ECHO_T}$result" >&6
18226 if test $result = no; then
18227 { echo "$as_me:$LINENO: WARNING:
18228 bfd.h not found or unusable, please install binutils development
18229 package if you are a developer or want to help testing aMule" >&5
18230 echo "$as_me: WARNING:
18231 bfd.h not found or unusable, please install binutils development
18232 package if you are a developer or want to help testing aMule" >&2;}
18233 _mule_warning_9=yes
18234 _mule_has_warnings=yes
18241 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18242 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18243 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h. */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18251 #include <execinfo.h>
18254 main ()
18257 void *bt[1];
18258 int n = backtrace(&bt, 1);
18259 const char **bt_syms = backtrace_symbols(bt, n);
18262 return 0;
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268 (eval $ac_link) 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18291 cat >>confdefs.h <<\_ACEOF
18292 #define HAVE_EXECINFO 1
18293 _ACEOF
18295 echo "$as_me:$LINENO: result: yes" >&5
18296 echo "${ECHO_T}yes" >&6
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18303 echo "$as_me:$LINENO: result: no" >&5
18304 echo "${ECHO_T}no" >&6
18307 rm -f conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18311 # Flush standard test results for speeding cache
18312 cat >confcache <<\_ACEOF
18313 # This file is a shell script that caches the results of configure
18314 # tests run on this system so they can be shared between configure
18315 # scripts and configure runs, see configure's option --config-cache.
18316 # It is not useful on other systems. If it contains results you don't
18317 # want to keep, you may remove or edit it.
18319 # config.status only pays attention to the cache file if you give it
18320 # the --recheck option to rerun configure.
18322 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18323 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18324 # following values.
18326 _ACEOF
18328 # The following way of writing the cache mishandles newlines in values,
18329 # but we know of no workaround that is simple, portable, and efficient.
18330 # So, don't put newlines in cache variables' values.
18331 # Ultrix sh set writes to stderr and can't be redirected directly,
18332 # and sets the high bit in the cache file unless we assign to the vars.
18334 (set) 2>&1 |
18335 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18336 *ac_space=\ *)
18337 # `set' does not quote correctly, so add quotes (double-quote
18338 # substitution turns \\\\ into \\, and sed turns \\ into \).
18339 sed -n \
18340 "s/'/'\\\\''/g;
18341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18344 # `set' quotes correctly as required by POSIX, so do not add quotes.
18345 sed -n \
18346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18348 esac;
18350 sed '
18351 t clear
18352 : clear
18353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18354 t end
18355 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18356 : end' >>confcache
18357 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18358 if test -w $cache_file; then
18359 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18360 cat confcache >$cache_file
18361 else
18362 echo "not updating unwritable cache $cache_file"
18365 rm -f confcache
18367 # Other tests
18368 # aMule options
18371 # Check whether --enable-debug or --disable-debug was given.
18372 if test "${enable_debug+set}" = set; then
18373 enableval="$enable_debug"
18374 USE_DEBUG=${enableval:-yes}
18375 else
18376 USE_DEBUG=yes
18379 if test $USE_DEBUG = yes; then
18381 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18383 MULECFLAGS="$MULECFLAGS -g"
18384 MULECXXFLAGS="$MULECXXFLAGS -g"
18386 if test ${GLIBCXX:-no} = yes; then
18387 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18390 if test ${GCC:-no} = yes; then
18392 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18393 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18397 if test ${SYS:-unknown} = win32; then
18398 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18402 else
18404 if test ${GCC:-no} = yes; then
18406 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18407 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18416 # Check whether --enable-optimize or --disable-optimize was given.
18417 if test "${enable_optimize+set}" = set; then
18418 enableval="$enable_optimize"
18419 USE_OPTIMIZE=${enableval:-no}
18420 else
18421 USE_OPTIMIZE=no
18424 if test $USE_OPTIMIZE = yes; then
18426 MULECFLAGS="$MULECFLAGS -O2"
18427 MULECXXFLAGS="$MULECXXFLAGS -O2"
18433 # Check whether --enable-profile or --disable-profile was given.
18434 if test "${enable_profile+set}" = set; then
18435 enableval="$enable_profile"
18436 USE_PROFILE=${enableval:-no}
18437 else
18438 USE_PROFILE=no
18441 if test $USE_PROFILE = yes; then
18444 MULECFLAGS="$MULECFLAGS -pg"
18445 MULECXXFLAGS="$MULECXXFLAGS -pg"
18447 MULELDFLAGS="$MULELDFLAGS -pg"
18453 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18454 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18455 # Check whether --enable-static or --disable-static was given.
18456 if test "${enable_static+set}" = set; then
18457 enableval="$enable_static"
18458 if test ${enableval:-no} = yes; then
18459 MULELDFLAGS="$MULELDFLAGS -static"
18463 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18464 echo "${ECHO_T}${enableval:-no}" >&6
18466 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18469 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18470 echo "$as_me:$LINENO: checking for docdir" >&5
18471 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18472 if test -z "$docdir"; then
18473 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18476 echo "$as_me:$LINENO: result: $docdir" >&5
18477 echo "${ECHO_T}$docdir" >&6
18479 # Try to set the SVN checkout-date
18480 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18481 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18482 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18483 then
18484 svndate="rev. `cat $srcdir/.svn-revision`"
18485 elif test -d $srcdir/.svn # SVNDATE for svn
18486 then
18487 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18489 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18490 echo "${ECHO_T}${svndate:-None required}" >&6
18491 if test -n "$svndate"; then
18494 cat >>confdefs.h <<_ACEOF
18495 #define SVNDATE "$svndate"
18496 _ACEOF
18498 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18502 SVNDATE=$svndate
18506 # Check whether --with-denoise-level or --without-denoise-level was given.
18507 if test "${with_denoise_level+set}" = set; then
18508 withval="$with_denoise_level"
18512 echo "$as_me:$LINENO: checking denoising level" >&5
18513 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18514 if test ${with_denoise_level:-5} = yes; then
18515 with_denoise_level=5
18518 if test ${with_denoise_level:-5} = no; then
18519 with_denoise_level=0
18522 if test ${with_denoise_level:-5} -gt 4; then
18523 if test "${svndate:+set}" = "set"; then
18524 with_denoise_level=0
18525 else
18526 with_denoise_level=4
18531 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18532 echo "${ECHO_T}$with_denoise_level" >&6
18534 ac_config_commands="$ac_config_commands denoiser"
18540 if test x$WEB = xyes; then
18541 WEB_TRUE=
18542 WEB_FALSE='#'
18543 else
18544 WEB_TRUE='#'
18545 WEB_FALSE=
18550 if test x$ED2K = xyes; then
18551 ED2K_TRUE=
18552 ED2K_FALSE='#'
18553 else
18554 ED2K_TRUE='#'
18555 ED2K_FALSE=
18560 if test x$CAS = xyes; then
18561 CAS_TRUE=
18562 CAS_FALSE='#'
18563 else
18564 CAS_TRUE='#'
18565 CAS_FALSE=
18570 if test x$WXCAS = xyes; then
18571 WXCAS_TRUE=
18572 WXCAS_FALSE='#'
18573 else
18574 WXCAS_TRUE='#'
18575 WXCAS_FALSE=
18580 if test x$ALC = xyes; then
18581 ALC_TRUE=
18582 ALC_FALSE='#'
18583 else
18584 ALC_TRUE='#'
18585 ALC_FALSE=
18590 if test x$ALCC = xyes; then
18591 ALCC_TRUE=
18592 ALCC_FALSE='#'
18593 else
18594 ALCC_TRUE='#'
18595 ALCC_FALSE=
18600 if test x$AMULE_GUI = xyes; then
18601 AMULE_GUI_TRUE=
18602 AMULE_GUI_FALSE='#'
18603 else
18604 AMULE_GUI_TRUE='#'
18605 AMULE_GUI_FALSE=
18610 if test x$AMULE_DAEMON = xyes; then
18611 AMULE_DAEMON_TRUE=
18612 AMULE_DAEMON_FALSE='#'
18613 else
18614 AMULE_DAEMON_TRUE='#'
18615 AMULE_DAEMON_FALSE=
18620 if test x$AMULECMD = xyes; then
18621 COMPILE_CMD_TRUE=
18622 COMPILE_CMD_FALSE='#'
18623 else
18624 COMPILE_CMD_TRUE='#'
18625 COMPILE_CMD_FALSE=
18630 if test x$MONOLITHIC = xyes; then
18631 MONOLITHIC_TRUE=
18632 MONOLITHIC_FALSE='#'
18633 else
18634 MONOLITHIC_TRUE='#'
18635 MONOLITHIC_FALSE=
18640 if test x$XAS = xyes; then
18641 XAS_TRUE=
18642 XAS_FALSE='#'
18643 else
18644 XAS_TRUE='#'
18645 XAS_FALSE=
18650 if test x$FILEVIEW = xyes; then
18651 FILEVIEW_TRUE=
18652 FILEVIEW_FALSE='#'
18653 else
18654 FILEVIEW_TRUE='#'
18655 FILEVIEW_FALSE=
18660 if test x$ENABLE_UPNP = xyes; then
18661 ENABLE_UPNP_TRUE=
18662 ENABLE_UPNP_FALSE='#'
18663 else
18664 ENABLE_UPNP_TRUE='#'
18665 ENABLE_UPNP_FALSE=
18670 if test x$ENABLE_IP2COUNTRY = xyes; then
18671 ENABLE_IP2COUNTRY_TRUE=
18672 ENABLE_IP2COUNTRY_FALSE='#'
18673 else
18674 ENABLE_IP2COUNTRY_TRUE='#'
18675 ENABLE_IP2COUNTRY_FALSE=
18680 if test x$SYS = xwin32; then
18681 SYS_WIN32_TRUE=
18682 SYS_WIN32_FALSE='#'
18683 else
18684 SYS_WIN32_TRUE='#'
18685 SYS_WIN32_FALSE=
18690 if test x$SYS = xwin32 -a "$RC" != ":"; then
18691 NEED_RC_TRUE=
18692 NEED_RC_FALSE='#'
18693 else
18694 NEED_RC_TRUE='#'
18695 NEED_RC_FALSE=
18700 if test x$SYS = xdarwin; then
18701 NEED_CORESERVICES_TRUE=
18702 NEED_CORESERVICES_FALSE='#'
18703 else
18704 NEED_CORESERVICES_TRUE='#'
18705 NEED_CORESERVICES_FALSE=
18710 if test x$USE_NLS = xyes; then
18711 COMPILE_NLS_TRUE=
18712 COMPILE_NLS_FALSE='#'
18713 else
18714 COMPILE_NLS_TRUE='#'
18715 COMPILE_NLS_FALSE=
18720 if test x$HAVE_FLEX_EXTENDED = xyes; then
18721 GENERATE_FLEX_HEADER_TRUE=
18722 GENERATE_FLEX_HEADER_FALSE='#'
18723 else
18724 GENERATE_FLEX_HEADER_TRUE='#'
18725 GENERATE_FLEX_HEADER_FALSE=
18730 if test x$INSTALL_SKINS = xyes; then
18731 INSTALL_SKINS_TRUE=
18732 INSTALL_SKINS_FALSE='#'
18733 else
18734 INSTALL_SKINS_TRUE='#'
18735 INSTALL_SKINS_FALSE=
18739 # Check for readline library
18740 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18742 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18743 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18744 if test "${vl_cv_lib_readline+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18748 ORIG_LIBS="$LIBS"
18749 for readline_lib in readline edit editline; do
18750 for termcap_lib in "" termcap curses ncurses; do
18751 if test -z "$termcap_lib"; then
18752 TRY_LIB="-l$readline_lib"
18753 else
18754 TRY_LIB="-l$readline_lib -l$termcap_lib"
18756 LIBS="$ORIG_LIBS $TRY_LIB"
18757 cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h. */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18764 /* Override any gcc2 internal prototype to avoid an error. */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 /* We use char because int might match the return type of a gcc2
18769 builtin and then its argument prototype would still apply. */
18770 char readline ();
18772 main ()
18774 readline ();
18776 return 0;
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 vl_cv_lib_readline="$TRY_LIB"
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18807 rm -f conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 if test -n "$vl_cv_lib_readline"; then
18810 break
18812 done
18813 if test -n "$vl_cv_lib_readline"; then
18814 break
18816 done
18817 if test -z "$vl_cv_lib_readline"; then
18818 vl_cv_lib_readline="no"
18819 LIBS="$ORIG_LIBS"
18820 READLINE_LIBS=""
18821 else
18822 READLINE_LIBS="$vl_cv_lib_readline"
18826 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18827 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18829 if test "$vl_cv_lib_readline" != "no"; then
18831 cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_LIBREADLINE 1
18833 _ACEOF
18837 for ac_header in readline.h readline/readline.h
18839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18841 echo "$as_me:$LINENO: checking for $ac_header" >&5
18842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18848 else
18849 # Is the header compilable?
18850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 $ac_includes_default
18859 #include <$ac_header>
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18863 (eval $ac_compile) 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag"
18871 || test ! -s conftest.err'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest.$ac_objext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_header_compiler=yes
18884 else
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_header_compiler=no
18890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18892 echo "${ECHO_T}$ac_header_compiler" >&6
18894 # Is the header present?
18895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18897 cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h. */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 #include <$ac_header>
18904 _ACEOF
18905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } >/dev/null; then
18913 if test -s conftest.err; then
18914 ac_cpp_err=$ac_c_preproc_warn_flag
18915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18916 else
18917 ac_cpp_err=
18919 else
18920 ac_cpp_err=yes
18922 if test -z "$ac_cpp_err"; then
18923 ac_header_preproc=yes
18924 else
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_header_preproc=no
18930 rm -f conftest.err conftest.$ac_ext
18931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18932 echo "${ECHO_T}$ac_header_preproc" >&6
18934 # So? What about this header?
18935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18936 yes:no: )
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18941 ac_header_preproc=yes
18943 no:yes:* )
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18957 cat <<\_ASBOX
18958 ## ------------------------------ ##
18959 ## Report this to admin@amule.org ##
18960 ## ------------------------------ ##
18961 _ASBOX
18963 sed "s/^/$as_me: WARNING: /" >&2
18965 esac
18966 echo "$as_me:$LINENO: checking for $ac_header" >&5
18967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971 eval "$as_ac_Header=\$ac_header_preproc"
18973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18980 _ACEOF
18984 done
18986 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18987 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18988 if test "${vl_cv_lib_readline_history+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18992 vl_cv_lib_readline_history="no"
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* Override any gcc2 internal prototype to avoid an error. */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 /* We use char because int might match the return type of a gcc2
19005 builtin and then its argument prototype would still apply. */
19006 char add_history ();
19008 main ()
19010 add_history ();
19012 return 0;
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19017 (eval $ac_link) 2>conftest.er1
19018 ac_status=$?
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag"
19025 || test ! -s conftest.err'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } &&
19031 { ac_try='test -s conftest$ac_exeext'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 vl_cv_lib_readline_history="yes"
19038 else
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19043 rm -f conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19047 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19048 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19049 if test "$vl_cv_lib_readline_history" = "yes"; then
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_READLINE_HISTORY 1
19053 _ACEOF
19057 for ac_header in history.h readline/history.h
19059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19061 echo "$as_me:$LINENO: checking for $ac_header" >&5
19062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19068 else
19069 # Is the header compilable?
19070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h. */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 $ac_includes_default
19079 #include <$ac_header>
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19083 (eval $ac_compile) 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_c_werror_flag"
19091 || test ! -s conftest.err'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest.$ac_objext'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_header_compiler=yes
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_header_compiler=no
19110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19112 echo "${ECHO_T}$ac_header_compiler" >&6
19114 # Is the header present?
19115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h. */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include <$ac_header>
19124 _ACEOF
19125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } >/dev/null; then
19133 if test -s conftest.err; then
19134 ac_cpp_err=$ac_c_preproc_warn_flag
19135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19136 else
19137 ac_cpp_err=
19139 else
19140 ac_cpp_err=yes
19142 if test -z "$ac_cpp_err"; then
19143 ac_header_preproc=yes
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_header_preproc=no
19150 rm -f conftest.err conftest.$ac_ext
19151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19152 echo "${ECHO_T}$ac_header_preproc" >&6
19154 # So? What about this header?
19155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19156 yes:no: )
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19161 ac_header_preproc=yes
19163 no:yes:* )
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19177 cat <<\_ASBOX
19178 ## ------------------------------ ##
19179 ## Report this to admin@amule.org ##
19180 ## ------------------------------ ##
19181 _ASBOX
19183 sed "s/^/$as_me: WARNING: /" >&2
19185 esac
19186 echo "$as_me:$LINENO: checking for $ac_header" >&5
19187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191 eval "$as_ac_Header=\$ac_header_preproc"
19193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19198 cat >>confdefs.h <<_ACEOF
19199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 _ACEOF
19204 done
19209 LIBS="$ORIG_LIBS"
19213 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19216 # Check whether --enable-ccache or --disable-ccache was given.
19217 if test "${enable_ccache+set}" = set; then
19218 enableval="$enable_ccache"
19223 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19224 if test "${with_ccache_prefix+set}" = set; then
19225 withval="$with_ccache_prefix"
19229 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19230 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19231 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19232 echo "${ECHO_T}${enable_ccache:-no}" >&6
19234 if test ${enable_ccache:-no} = yes; then
19236 echo "$as_me:$LINENO: checking for ccache presence" >&5
19237 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19238 if test -z "$with_ccache_prefix"; then
19240 ccache_full=`which ccache`
19241 with_ccache_prefix=`dirname ${ccache_full}`
19245 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19247 echo "$as_me:$LINENO: result: yes" >&5
19248 echo "${ECHO_T}yes" >&6
19249 CC="$with_ccache_prefix/ccache $CC"
19250 CXX="$with_ccache_prefix/ccache $CXX"
19251 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19253 else
19255 enable_ccache=no
19256 echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6
19266 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19268 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19270 if test x$SYS = xwin32; then
19271 ac_config_files="$ac_config_files version.rc"
19275 cat >confcache <<\_ACEOF
19276 # This file is a shell script that caches the results of configure
19277 # tests run on this system so they can be shared between configure
19278 # scripts and configure runs, see configure's option --config-cache.
19279 # It is not useful on other systems. If it contains results you don't
19280 # want to keep, you may remove or edit it.
19282 # config.status only pays attention to the cache file if you give it
19283 # the --recheck option to rerun configure.
19285 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19286 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19287 # following values.
19289 _ACEOF
19291 # The following way of writing the cache mishandles newlines in values,
19292 # but we know of no workaround that is simple, portable, and efficient.
19293 # So, don't put newlines in cache variables' values.
19294 # Ultrix sh set writes to stderr and can't be redirected directly,
19295 # and sets the high bit in the cache file unless we assign to the vars.
19297 (set) 2>&1 |
19298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19299 *ac_space=\ *)
19300 # `set' does not quote correctly, so add quotes (double-quote
19301 # substitution turns \\\\ into \\, and sed turns \\ into \).
19302 sed -n \
19303 "s/'/'\\\\''/g;
19304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19307 # `set' quotes correctly as required by POSIX, so do not add quotes.
19308 sed -n \
19309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19311 esac;
19313 sed '
19314 t clear
19315 : clear
19316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19317 t end
19318 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19319 : end' >>confcache
19320 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19321 if test -w $cache_file; then
19322 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19323 cat confcache >$cache_file
19324 else
19325 echo "not updating unwritable cache $cache_file"
19328 rm -f confcache
19330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19331 # Let make expand exec_prefix.
19332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19336 # trailing colons and then remove the whole line if VPATH becomes empty
19337 # (actually we leave an empty line to preserve line numbers).
19338 if test "x$srcdir" = x.; then
19339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19340 s/:*\$(srcdir):*/:/;
19341 s/:*\${srcdir}:*/:/;
19342 s/:*@srcdir@:*/:/;
19343 s/^\([^=]*=[ ]*\):*/\1/;
19344 s/:*$//;
19345 s/^[^=]*=[ ]*$//;
19349 DEFS=-DHAVE_CONFIG_H
19351 ac_libobjs=
19352 ac_ltlibobjs=
19353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19354 # 1. Remove the extension, and $U if already installed.
19355 ac_i=`echo "$ac_i" |
19356 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19357 # 2. Add them.
19358 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19359 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19360 done
19361 LIBOBJS=$ac_libobjs
19363 LTLIBOBJS=$ac_ltlibobjs
19366 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19367 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19368 Usually this means the macro was only invoked conditionally." >&5
19369 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19370 Usually this means the macro was only invoked conditionally." >&2;}
19371 { (exit 1); exit 1; }; }
19373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19374 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&5
19376 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19377 Usually this means the macro was only invoked conditionally." >&2;}
19378 { (exit 1); exit 1; }; }
19380 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&5
19383 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19384 Usually this means the macro was only invoked conditionally." >&2;}
19385 { (exit 1); exit 1; }; }
19387 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19388 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19389 Usually this means the macro was only invoked conditionally." >&5
19390 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&2;}
19392 { (exit 1); exit 1; }; }
19394 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19395 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19396 Usually this means the macro was only invoked conditionally." >&5
19397 echo "$as_me: error: conditional \"WEB\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&2;}
19399 { (exit 1); exit 1; }; }
19401 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19402 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19403 Usually this means the macro was only invoked conditionally." >&5
19404 echo "$as_me: error: conditional \"ED2K\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&2;}
19406 { (exit 1); exit 1; }; }
19408 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19409 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19410 Usually this means the macro was only invoked conditionally." >&5
19411 echo "$as_me: error: conditional \"CAS\" was never defined.
19412 Usually this means the macro was only invoked conditionally." >&2;}
19413 { (exit 1); exit 1; }; }
19415 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19416 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19417 Usually this means the macro was only invoked conditionally." >&5
19418 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19419 Usually this means the macro was only invoked conditionally." >&2;}
19420 { (exit 1); exit 1; }; }
19422 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19423 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19424 Usually this means the macro was only invoked conditionally." >&5
19425 echo "$as_me: error: conditional \"ALC\" was never defined.
19426 Usually this means the macro was only invoked conditionally." >&2;}
19427 { (exit 1); exit 1; }; }
19429 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19430 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19431 Usually this means the macro was only invoked conditionally." >&5
19432 echo "$as_me: error: conditional \"ALCC\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&2;}
19434 { (exit 1); exit 1; }; }
19436 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19437 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19438 Usually this means the macro was only invoked conditionally." >&5
19439 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&2;}
19441 { (exit 1); exit 1; }; }
19443 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19444 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19445 Usually this means the macro was only invoked conditionally." >&5
19446 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19447 Usually this means the macro was only invoked conditionally." >&2;}
19448 { (exit 1); exit 1; }; }
19450 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19451 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19452 Usually this means the macro was only invoked conditionally." >&5
19453 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19454 Usually this means the macro was only invoked conditionally." >&2;}
19455 { (exit 1); exit 1; }; }
19457 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19458 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19459 Usually this means the macro was only invoked conditionally." >&5
19460 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19461 Usually this means the macro was only invoked conditionally." >&2;}
19462 { (exit 1); exit 1; }; }
19464 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19465 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19466 Usually this means the macro was only invoked conditionally." >&5
19467 echo "$as_me: error: conditional \"XAS\" was never defined.
19468 Usually this means the macro was only invoked conditionally." >&2;}
19469 { (exit 1); exit 1; }; }
19471 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19472 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19473 Usually this means the macro was only invoked conditionally." >&5
19474 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19475 Usually this means the macro was only invoked conditionally." >&2;}
19476 { (exit 1); exit 1; }; }
19478 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19479 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19480 Usually this means the macro was only invoked conditionally." >&5
19481 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19482 Usually this means the macro was only invoked conditionally." >&2;}
19483 { (exit 1); exit 1; }; }
19485 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19486 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19487 Usually this means the macro was only invoked conditionally." >&5
19488 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&2;}
19490 { (exit 1); exit 1; }; }
19492 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19493 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19494 Usually this means the macro was only invoked conditionally." >&5
19495 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&2;}
19497 { (exit 1); exit 1; }; }
19499 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19500 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19501 Usually this means the macro was only invoked conditionally." >&5
19502 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&2;}
19504 { (exit 1); exit 1; }; }
19506 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19507 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19508 Usually this means the macro was only invoked conditionally." >&5
19509 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&2;}
19511 { (exit 1); exit 1; }; }
19513 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19514 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19515 Usually this means the macro was only invoked conditionally." >&5
19516 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19517 Usually this means the macro was only invoked conditionally." >&2;}
19518 { (exit 1); exit 1; }; }
19520 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19521 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19522 Usually this means the macro was only invoked conditionally." >&5
19523 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19524 Usually this means the macro was only invoked conditionally." >&2;}
19525 { (exit 1); exit 1; }; }
19527 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19528 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19529 Usually this means the macro was only invoked conditionally." >&5
19530 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19531 Usually this means the macro was only invoked conditionally." >&2;}
19532 { (exit 1); exit 1; }; }
19535 : ${CONFIG_STATUS=./config.status}
19536 ac_clean_files_save=$ac_clean_files
19537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19538 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19539 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19540 cat >$CONFIG_STATUS <<_ACEOF
19541 #! $SHELL
19542 # Generated by $as_me.
19543 # Run this file to recreate the current configuration.
19544 # Compiler output produced by configure, useful for debugging
19545 # configure, is in config.log if it exists.
19547 debug=false
19548 ac_cs_recheck=false
19549 ac_cs_silent=false
19550 SHELL=\${CONFIG_SHELL-$SHELL}
19551 _ACEOF
19553 cat >>$CONFIG_STATUS <<\_ACEOF
19554 ## --------------------- ##
19555 ## M4sh Initialization. ##
19556 ## --------------------- ##
19558 # Be Bourne compatible
19559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19560 emulate sh
19561 NULLCMD=:
19562 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19563 # is contrary to our usage. Disable this feature.
19564 alias -g '${1+"$@"}'='"$@"'
19565 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19566 set -o posix
19568 DUALCASE=1; export DUALCASE # for MKS sh
19570 # Support unset when possible.
19571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19572 as_unset=unset
19573 else
19574 as_unset=false
19578 # Work around bugs in pre-3.0 UWIN ksh.
19579 $as_unset ENV MAIL MAILPATH
19580 PS1='$ '
19581 PS2='> '
19582 PS4='+ '
19584 # NLS nuisances.
19585 for as_var in \
19586 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19587 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19588 LC_TELEPHONE LC_TIME
19590 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19591 eval $as_var=C; export $as_var
19592 else
19593 $as_unset $as_var
19595 done
19597 # Required to use basename.
19598 if expr a : '\(a\)' >/dev/null 2>&1; then
19599 as_expr=expr
19600 else
19601 as_expr=false
19604 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19605 as_basename=basename
19606 else
19607 as_basename=false
19611 # Name of the executable.
19612 as_me=`$as_basename "$0" ||
19613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19614 X"$0" : 'X\(//\)$' \| \
19615 X"$0" : 'X\(/\)$' \| \
19616 . : '\(.\)' 2>/dev/null ||
19617 echo X/"$0" |
19618 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19619 /^X\/\(\/\/\)$/{ s//\1/; q; }
19620 /^X\/\(\/\).*/{ s//\1/; q; }
19621 s/.*/./; q'`
19624 # PATH needs CR, and LINENO needs CR and PATH.
19625 # Avoid depending upon Character Ranges.
19626 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19627 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19628 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19629 as_cr_digits='0123456789'
19630 as_cr_alnum=$as_cr_Letters$as_cr_digits
19632 # The user is always right.
19633 if test "${PATH_SEPARATOR+set}" != set; then
19634 echo "#! /bin/sh" >conf$$.sh
19635 echo "exit 0" >>conf$$.sh
19636 chmod +x conf$$.sh
19637 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19638 PATH_SEPARATOR=';'
19639 else
19640 PATH_SEPARATOR=:
19642 rm -f conf$$.sh
19646 as_lineno_1=$LINENO
19647 as_lineno_2=$LINENO
19648 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19649 test "x$as_lineno_1" != "x$as_lineno_2" &&
19650 test "x$as_lineno_3" = "x$as_lineno_2" || {
19651 # Find who we are. Look in the path if we contain no path at all
19652 # relative or not.
19653 case $0 in
19654 *[\\/]* ) as_myself=$0 ;;
19655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656 for as_dir in $PATH
19658 IFS=$as_save_IFS
19659 test -z "$as_dir" && as_dir=.
19660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19661 done
19664 esac
19665 # We did not find ourselves, most probably we were run as `sh COMMAND'
19666 # in which case we are not to be found in the path.
19667 if test "x$as_myself" = x; then
19668 as_myself=$0
19670 if test ! -f "$as_myself"; then
19671 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19672 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19673 { (exit 1); exit 1; }; }
19675 case $CONFIG_SHELL in
19677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19680 IFS=$as_save_IFS
19681 test -z "$as_dir" && as_dir=.
19682 for as_base in sh bash ksh sh5; do
19683 case $as_dir in
19685 if ("$as_dir/$as_base" -c '
19686 as_lineno_1=$LINENO
19687 as_lineno_2=$LINENO
19688 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19689 test "x$as_lineno_1" != "x$as_lineno_2" &&
19690 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19691 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19692 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19693 CONFIG_SHELL=$as_dir/$as_base
19694 export CONFIG_SHELL
19695 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19696 fi;;
19697 esac
19698 done
19699 done
19701 esac
19703 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19704 # uniformly replaced by the line number. The first 'sed' inserts a
19705 # line-number line before each line; the second 'sed' does the real
19706 # work. The second script uses 'N' to pair each line-number line
19707 # with the numbered line, and appends trailing '-' during
19708 # substitution so that $LINENO is not a special case at line end.
19709 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19710 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19711 sed '=' <$as_myself |
19712 sed '
19714 s,$,-,
19715 : loop
19716 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19717 t loop
19718 s,-$,,
19719 s,^['$as_cr_digits']*\n,,
19720 ' >$as_me.lineno &&
19721 chmod +x $as_me.lineno ||
19722 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19723 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19724 { (exit 1); exit 1; }; }
19726 # Don't try to exec as it changes $[0], causing all sort of problems
19727 # (the dirname of $[0] is not the place where we might find the
19728 # original and so on. Autoconf is especially sensible to this).
19729 . ./$as_me.lineno
19730 # Exit status is that of the last command.
19731 exit
19735 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19736 *c*,-n*) ECHO_N= ECHO_C='
19737 ' ECHO_T=' ' ;;
19738 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19739 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19740 esac
19742 if expr a : '\(a\)' >/dev/null 2>&1; then
19743 as_expr=expr
19744 else
19745 as_expr=false
19748 rm -f conf$$ conf$$.exe conf$$.file
19749 echo >conf$$.file
19750 if ln -s conf$$.file conf$$ 2>/dev/null; then
19751 # We could just check for DJGPP; but this test a) works b) is more generic
19752 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19753 if test -f conf$$.exe; then
19754 # Don't use ln at all; we don't have any links
19755 as_ln_s='cp -p'
19756 else
19757 as_ln_s='ln -s'
19759 elif ln conf$$.file conf$$ 2>/dev/null; then
19760 as_ln_s=ln
19761 else
19762 as_ln_s='cp -p'
19764 rm -f conf$$ conf$$.exe conf$$.file
19766 if mkdir -p . 2>/dev/null; then
19767 as_mkdir_p=:
19768 else
19769 test -d ./-p && rmdir ./-p
19770 as_mkdir_p=false
19773 as_executable_p="test -f"
19775 # Sed expression to map a string onto a valid CPP name.
19776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19778 # Sed expression to map a string onto a valid variable name.
19779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19782 # IFS
19783 # We need space, tab and new line, in precisely that order.
19784 as_nl='
19786 IFS=" $as_nl"
19788 # CDPATH.
19789 $as_unset CDPATH
19791 exec 6>&1
19793 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19794 # report actual input values of CONFIG_FILES etc. instead of their
19795 # values after options handling. Logging --version etc. is OK.
19796 exec 5>>config.log
19798 echo
19799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19800 ## Running $as_me. ##
19801 _ASBOX
19802 } >&5
19803 cat >&5 <<_CSEOF
19805 This file was extended by aMule $as_me SVN, which was
19806 generated by GNU Autoconf 2.59. Invocation command line was
19808 CONFIG_FILES = $CONFIG_FILES
19809 CONFIG_HEADERS = $CONFIG_HEADERS
19810 CONFIG_LINKS = $CONFIG_LINKS
19811 CONFIG_COMMANDS = $CONFIG_COMMANDS
19812 $ $0 $@
19814 _CSEOF
19815 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19816 echo >&5
19817 _ACEOF
19819 # Files that config.status was made for.
19820 if test -n "$ac_config_files"; then
19821 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19824 if test -n "$ac_config_headers"; then
19825 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19828 if test -n "$ac_config_links"; then
19829 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19832 if test -n "$ac_config_commands"; then
19833 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19836 cat >>$CONFIG_STATUS <<\_ACEOF
19838 ac_cs_usage="\
19839 \`$as_me' instantiates files from templates according to the
19840 current configuration.
19842 Usage: $0 [OPTIONS] [FILE]...
19844 -h, --help print this help, then exit
19845 -V, --version print version number, then exit
19846 -q, --quiet do not print progress messages
19847 -d, --debug don't remove temporary files
19848 --recheck update $as_me by reconfiguring in the same conditions
19849 --file=FILE[:TEMPLATE]
19850 instantiate the configuration file FILE
19851 --header=FILE[:TEMPLATE]
19852 instantiate the configuration header FILE
19854 Configuration files:
19855 $config_files
19857 Configuration headers:
19858 $config_headers
19860 Configuration commands:
19861 $config_commands
19863 Report bugs to <bug-autoconf@gnu.org>."
19864 _ACEOF
19866 cat >>$CONFIG_STATUS <<_ACEOF
19867 ac_cs_version="\\
19868 aMule config.status SVN
19869 configured by $0, generated by GNU Autoconf 2.59,
19870 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19872 Copyright (C) 2003 Free Software Foundation, Inc.
19873 This config.status script is free software; the Free Software Foundation
19874 gives unlimited permission to copy, distribute and modify it."
19875 srcdir=$srcdir
19876 INSTALL="$INSTALL"
19877 _ACEOF
19879 cat >>$CONFIG_STATUS <<\_ACEOF
19880 # If no file are specified by the user, then we need to provide default
19881 # value. By we need to know if files were specified by the user.
19882 ac_need_defaults=:
19883 while test $# != 0
19885 case $1 in
19886 --*=*)
19887 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19888 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19889 ac_shift=:
19892 ac_option=$1
19893 ac_optarg=$2
19894 ac_shift=shift
19896 *) # This is not an option, so the user has probably given explicit
19897 # arguments.
19898 ac_option=$1
19899 ac_need_defaults=false;;
19900 esac
19902 case $ac_option in
19903 # Handling of the options.
19904 _ACEOF
19905 cat >>$CONFIG_STATUS <<\_ACEOF
19906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19907 ac_cs_recheck=: ;;
19908 --version | --vers* | -V )
19909 echo "$ac_cs_version"; exit 0 ;;
19910 --he | --h)
19911 # Conflict between --help and --header
19912 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19913 Try \`$0 --help' for more information." >&5
19914 echo "$as_me: error: ambiguous option: $1
19915 Try \`$0 --help' for more information." >&2;}
19916 { (exit 1); exit 1; }; };;
19917 --help | --hel | -h )
19918 echo "$ac_cs_usage"; exit 0 ;;
19919 --debug | --d* | -d )
19920 debug=: ;;
19921 --file | --fil | --fi | --f )
19922 $ac_shift
19923 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19924 ac_need_defaults=false;;
19925 --header | --heade | --head | --hea )
19926 $ac_shift
19927 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19928 ac_need_defaults=false;;
19929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19931 ac_cs_silent=: ;;
19933 # This is an error.
19934 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19935 Try \`$0 --help' for more information." >&5
19936 echo "$as_me: error: unrecognized option: $1
19937 Try \`$0 --help' for more information." >&2;}
19938 { (exit 1); exit 1; }; } ;;
19940 *) ac_config_targets="$ac_config_targets $1" ;;
19942 esac
19943 shift
19944 done
19946 ac_configure_extra_args=
19948 if $ac_cs_silent; then
19949 exec 6>/dev/null
19950 ac_configure_extra_args="$ac_configure_extra_args --silent"
19953 _ACEOF
19954 cat >>$CONFIG_STATUS <<_ACEOF
19955 if \$ac_cs_recheck; then
19956 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19957 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19960 _ACEOF
19962 cat >>$CONFIG_STATUS <<_ACEOF
19964 # INIT-COMMANDS section.
19967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19968 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19969 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19970 # from automake.
19971 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19972 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19973 LINGUAS="${LINGUAS-%UNSET%}"
19975 denoiserlevel=$with_denoise_level
19977 _ACEOF
19981 cat >>$CONFIG_STATUS <<\_ACEOF
19982 for ac_config_target in $ac_config_targets
19984 case "$ac_config_target" in
19985 # Handling of arguments.
19986 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19987 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19988 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19989 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19990 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19991 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19992 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19993 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19994 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19995 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19996 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19997 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19998 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19999 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20000 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20001 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20002 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20003 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20004 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20005 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20006 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20007 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20008 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20009 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20010 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20011 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20012 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20013 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20014 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20015 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20016 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20017 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20018 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20019 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20020 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20021 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20022 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20023 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20025 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20026 { (exit 1); exit 1; }; };;
20027 esac
20028 done
20030 # If the user did not use the arguments to specify the items to instantiate,
20031 # then the envvar interface is used. Set only those that are not.
20032 # We use the long form for the default assignment because of an extremely
20033 # bizarre bug on SunOS 4.1.3.
20034 if $ac_need_defaults; then
20035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20040 # Have a temporary directory for convenience. Make it in the build tree
20041 # simply because there is no reason to put it here, and in addition,
20042 # creating and moving files from /tmp can sometimes cause problems.
20043 # Create a temporary directory, and hook for its removal unless debugging.
20044 $debug ||
20046 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20047 trap '{ (exit 1); exit 1; }' 1 2 13 15
20050 # Create a (secure) tmp directory for tmp files.
20053 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20054 test -n "$tmp" && test -d "$tmp"
20055 } ||
20057 tmp=./confstat$$-$RANDOM
20058 (umask 077 && mkdir $tmp)
20059 } ||
20061 echo "$me: cannot create a temporary directory in ." >&2
20062 { (exit 1); exit 1; }
20065 _ACEOF
20067 cat >>$CONFIG_STATUS <<_ACEOF
20070 # CONFIG_FILES section.
20073 # No need to generate the scripts if there are no CONFIG_FILES.
20074 # This happens for instance when ./config.status config.h
20075 if test -n "\$CONFIG_FILES"; then
20076 # Protect against being on the right side of a sed subst in config.status.
20077 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20078 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20079 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20080 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20081 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20082 s,@SHELL@,$SHELL,;t t
20083 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20084 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20085 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20086 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20087 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20088 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20089 s,@exec_prefix@,$exec_prefix,;t t
20090 s,@prefix@,$prefix,;t t
20091 s,@program_transform_name@,$program_transform_name,;t t
20092 s,@bindir@,$bindir,;t t
20093 s,@sbindir@,$sbindir,;t t
20094 s,@libexecdir@,$libexecdir,;t t
20095 s,@datadir@,$datadir,;t t
20096 s,@sysconfdir@,$sysconfdir,;t t
20097 s,@sharedstatedir@,$sharedstatedir,;t t
20098 s,@localstatedir@,$localstatedir,;t t
20099 s,@libdir@,$libdir,;t t
20100 s,@includedir@,$includedir,;t t
20101 s,@oldincludedir@,$oldincludedir,;t t
20102 s,@infodir@,$infodir,;t t
20103 s,@mandir@,$mandir,;t t
20104 s,@build_alias@,$build_alias,;t t
20105 s,@host_alias@,$host_alias,;t t
20106 s,@target_alias@,$target_alias,;t t
20107 s,@DEFS@,$DEFS,;t t
20108 s,@ECHO_C@,$ECHO_C,;t t
20109 s,@ECHO_N@,$ECHO_N,;t t
20110 s,@ECHO_T@,$ECHO_T,;t t
20111 s,@LIBS@,$LIBS,;t t
20112 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20113 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20114 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20115 s,@CYGPATH_W@,$CYGPATH_W,;t t
20116 s,@PACKAGE@,$PACKAGE,;t t
20117 s,@VERSION@,$VERSION,;t t
20118 s,@ACLOCAL@,$ACLOCAL,;t t
20119 s,@AUTOCONF@,$AUTOCONF,;t t
20120 s,@AUTOMAKE@,$AUTOMAKE,;t t
20121 s,@AUTOHEADER@,$AUTOHEADER,;t t
20122 s,@MAKEINFO@,$MAKEINFO,;t t
20123 s,@install_sh@,$install_sh,;t t
20124 s,@STRIP@,$STRIP,;t t
20125 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20126 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20127 s,@mkdir_p@,$mkdir_p,;t t
20128 s,@AWK@,$AWK,;t t
20129 s,@SET_MAKE@,$SET_MAKE,;t t
20130 s,@am__leading_dot@,$am__leading_dot,;t t
20131 s,@AMTAR@,$AMTAR,;t t
20132 s,@am__tar@,$am__tar,;t t
20133 s,@am__untar@,$am__untar,;t t
20134 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20135 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20136 s,@MAINT@,$MAINT,;t t
20137 s,@build@,$build,;t t
20138 s,@build_cpu@,$build_cpu,;t t
20139 s,@build_vendor@,$build_vendor,;t t
20140 s,@build_os@,$build_os,;t t
20141 s,@host@,$host,;t t
20142 s,@host_cpu@,$host_cpu,;t t
20143 s,@host_vendor@,$host_vendor,;t t
20144 s,@host_os@,$host_os,;t t
20145 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20146 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20147 s,@MULECFLAGS@,$MULECFLAGS,;t t
20148 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20149 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20150 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20151 s,@CXX@,$CXX,;t t
20152 s,@CXXFLAGS@,$CXXFLAGS,;t t
20153 s,@LDFLAGS@,$LDFLAGS,;t t
20154 s,@CPPFLAGS@,$CPPFLAGS,;t t
20155 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20156 s,@EXEEXT@,$EXEEXT,;t t
20157 s,@OBJEXT@,$OBJEXT,;t t
20158 s,@DEPDIR@,$DEPDIR,;t t
20159 s,@am__include@,$am__include,;t t
20160 s,@am__quote@,$am__quote,;t t
20161 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20162 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20163 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20164 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20165 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20166 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20167 s,@CXXCPP@,$CXXCPP,;t t
20168 s,@CC@,$CC,;t t
20169 s,@CFLAGS@,$CFLAGS,;t t
20170 s,@ac_ct_CC@,$ac_ct_CC,;t t
20171 s,@CCDEPMODE@,$CCDEPMODE,;t t
20172 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20173 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20174 s,@CPP@,$CPP,;t t
20175 s,@BUILD_CC@,$BUILD_CC,;t t
20176 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20177 s,@EXEEXT@,$EXEEXT,;t t
20178 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20179 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20180 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20181 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20182 s,@EGREP@,$EGREP,;t t
20183 s,@LEX@,$LEX,;t t
20184 s,@LEXLIB@,$LEXLIB,;t t
20185 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20186 s,@RANLIB@,$RANLIB,;t t
20187 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20188 s,@YACC@,$YACC,;t t
20189 s,@AR@,$AR,;t t
20190 s,@ac_ct_AR@,$ac_ct_AR,;t t
20191 s,@LD@,$LD,;t t
20192 s,@ac_ct_LD@,$ac_ct_LD,;t t
20193 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20194 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20195 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20196 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20197 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20198 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20199 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20200 s,@CAS_DEFS@,$CAS_DEFS,;t t
20201 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20202 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20203 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20204 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20205 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20206 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20207 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20208 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20209 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20210 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20211 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20212 s,@WX_LIBS@,$WX_LIBS,;t t
20213 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20214 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20215 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20216 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20217 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20218 s,@WX_UNICODE@,$WX_UNICODE,;t t
20219 s,@WX_DEBUG@,$WX_DEBUG,;t t
20220 s,@WX_SHARED@,$WX_SHARED,;t t
20221 s,@WX_PORT@,$WX_PORT,;t t
20222 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20223 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20224 s,@RC@,$RC,;t t
20225 s,@RCFLAGS@,$RCFLAGS,;t t
20226 s,@ac_ct_RC@,$ac_ct_RC,;t t
20227 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20228 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20229 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20230 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20231 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20232 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20233 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20234 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20235 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20236 s,@ALLOCA@,$ALLOCA,;t t
20237 s,@LIBOBJS@,$LIBOBJS,;t t
20238 s,@POW_LIB@,$POW_LIB,;t t
20239 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20240 s,@MSGFMT@,$MSGFMT,;t t
20241 s,@GMSGFMT@,$GMSGFMT,;t t
20242 s,@XGETTEXT@,$XGETTEXT,;t t
20243 s,@MSGMERGE@,$MSGMERGE,;t t
20244 s,@GLIBC21@,$GLIBC21,;t t
20245 s,@LIBICONV@,$LIBICONV,;t t
20246 s,@LTLIBICONV@,$LTLIBICONV,;t t
20247 s,@INTLBISON@,$INTLBISON,;t t
20248 s,@USE_NLS@,$USE_NLS,;t t
20249 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20250 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20251 s,@CATOBJEXT@,$CATOBJEXT,;t t
20252 s,@INTLOBJS@,$INTLOBJS,;t t
20253 s,@DATADIRNAME@,$DATADIRNAME,;t t
20254 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20255 s,@GENCAT@,$GENCAT,;t t
20256 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20257 s,@INTLLIBS@,$INTLLIBS,;t t
20258 s,@LIBINTL@,$LIBINTL,;t t
20259 s,@LTLIBINTL@,$LTLIBINTL,;t t
20260 s,@POSUB@,$POSUB,;t t
20261 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20262 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20263 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20264 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20265 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20266 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20267 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20268 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20269 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20270 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20271 s,@INCINTL@,$INCINTL,;t t
20272 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20273 s,@BFD_LIBS@,$BFD_LIBS,;t t
20274 s,@docdir@,$docdir,;t t
20275 s,@SVNDATE@,$SVNDATE,;t t
20276 s,@WEB_TRUE@,$WEB_TRUE,;t t
20277 s,@WEB_FALSE@,$WEB_FALSE,;t t
20278 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20279 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20280 s,@CAS_TRUE@,$CAS_TRUE,;t t
20281 s,@CAS_FALSE@,$CAS_FALSE,;t t
20282 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20283 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20284 s,@ALC_TRUE@,$ALC_TRUE,;t t
20285 s,@ALC_FALSE@,$ALC_FALSE,;t t
20286 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20287 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20288 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20289 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20290 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20291 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20292 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20293 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20294 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20295 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20296 s,@XAS_TRUE@,$XAS_TRUE,;t t
20297 s,@XAS_FALSE@,$XAS_FALSE,;t t
20298 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20299 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20300 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20301 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20302 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20303 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20304 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20305 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20306 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20307 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20308 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20309 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20310 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20311 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20312 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20313 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20314 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20315 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20316 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20318 CEOF
20320 _ACEOF
20322 cat >>$CONFIG_STATUS <<\_ACEOF
20323 # Split the substitutions into bite-sized pieces for seds with
20324 # small command number limits, like on Digital OSF/1 and HP-UX.
20325 ac_max_sed_lines=48
20326 ac_sed_frag=1 # Number of current file.
20327 ac_beg=1 # First line for current file.
20328 ac_end=$ac_max_sed_lines # Line after last line for current file.
20329 ac_more_lines=:
20330 ac_sed_cmds=
20331 while $ac_more_lines; do
20332 if test $ac_beg -gt 1; then
20333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20334 else
20335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20337 if test ! -s $tmp/subs.frag; then
20338 ac_more_lines=false
20339 else
20340 # The purpose of the label and of the branching condition is to
20341 # speed up the sed processing (if there are no `@' at all, there
20342 # is no need to browse any of the substitutions).
20343 # These are the two extra sed commands mentioned above.
20344 (echo ':t
20345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20346 if test -z "$ac_sed_cmds"; then
20347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20348 else
20349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20351 ac_sed_frag=`expr $ac_sed_frag + 1`
20352 ac_beg=$ac_end
20353 ac_end=`expr $ac_end + $ac_max_sed_lines`
20355 done
20356 if test -z "$ac_sed_cmds"; then
20357 ac_sed_cmds=cat
20359 fi # test -n "$CONFIG_FILES"
20361 _ACEOF
20362 cat >>$CONFIG_STATUS <<\_ACEOF
20363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20365 case $ac_file in
20366 - | *:- | *:-:* ) # input from stdin
20367 cat >$tmp/stdin
20368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20372 * ) ac_file_in=$ac_file.in ;;
20373 esac
20375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20378 X"$ac_file" : 'X\(//\)[^/]' \| \
20379 X"$ac_file" : 'X\(//\)$' \| \
20380 X"$ac_file" : 'X\(/\)' \| \
20381 . : '\(.\)' 2>/dev/null ||
20382 echo X"$ac_file" |
20383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20385 /^X\(\/\/\)$/{ s//\1/; q; }
20386 /^X\(\/\).*/{ s//\1/; q; }
20387 s/.*/./; q'`
20388 { if $as_mkdir_p; then
20389 mkdir -p "$ac_dir"
20390 else
20391 as_dir="$ac_dir"
20392 as_dirs=
20393 while test ! -d "$as_dir"; do
20394 as_dirs="$as_dir $as_dirs"
20395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397 X"$as_dir" : 'X\(//\)[^/]' \| \
20398 X"$as_dir" : 'X\(//\)$' \| \
20399 X"$as_dir" : 'X\(/\)' \| \
20400 . : '\(.\)' 2>/dev/null ||
20401 echo X"$as_dir" |
20402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20404 /^X\(\/\/\)$/{ s//\1/; q; }
20405 /^X\(\/\).*/{ s//\1/; q; }
20406 s/.*/./; q'`
20407 done
20408 test ! -n "$as_dirs" || mkdir $as_dirs
20409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20411 { (exit 1); exit 1; }; }; }
20413 ac_builddir=.
20415 if test "$ac_dir" != .; then
20416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20417 # A "../" for each directory in $ac_dir_suffix.
20418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20419 else
20420 ac_dir_suffix= ac_top_builddir=
20423 case $srcdir in
20424 .) # No --srcdir option. We are building in place.
20425 ac_srcdir=.
20426 if test -z "$ac_top_builddir"; then
20427 ac_top_srcdir=.
20428 else
20429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20430 fi ;;
20431 [\\/]* | ?:[\\/]* ) # Absolute path.
20432 ac_srcdir=$srcdir$ac_dir_suffix;
20433 ac_top_srcdir=$srcdir ;;
20434 *) # Relative path.
20435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20437 esac
20439 # Do not use `cd foo && pwd` to compute absolute paths, because
20440 # the directories may not exist.
20441 case `pwd` in
20442 .) ac_abs_builddir="$ac_dir";;
20444 case "$ac_dir" in
20445 .) ac_abs_builddir=`pwd`;;
20446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20448 esac;;
20449 esac
20450 case $ac_abs_builddir in
20451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20453 case ${ac_top_builddir}. in
20454 .) ac_abs_top_builddir=$ac_abs_builddir;;
20455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20457 esac;;
20458 esac
20459 case $ac_abs_builddir in
20460 .) ac_abs_srcdir=$ac_srcdir;;
20462 case $ac_srcdir in
20463 .) ac_abs_srcdir=$ac_abs_builddir;;
20464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20466 esac;;
20467 esac
20468 case $ac_abs_builddir in
20469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20471 case $ac_top_srcdir in
20472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20475 esac;;
20476 esac
20479 case $INSTALL in
20480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20481 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20482 esac
20484 if test x"$ac_file" != x-; then
20485 { echo "$as_me:$LINENO: creating $ac_file" >&5
20486 echo "$as_me: creating $ac_file" >&6;}
20487 rm -f "$ac_file"
20489 # Let's still pretend it is `configure' which instantiates (i.e., don't
20490 # use $as_me), people would be surprised to read:
20491 # /* config.h. Generated by config.status. */
20492 if test x"$ac_file" = x-; then
20493 configure_input=
20494 else
20495 configure_input="$ac_file. "
20497 configure_input=$configure_input"Generated from `echo $ac_file_in |
20498 sed 's,.*/,,'` by configure."
20500 # First look for the input files in the build tree, otherwise in the
20501 # src tree.
20502 ac_file_inputs=`IFS=:
20503 for f in $ac_file_in; do
20504 case $f in
20505 -) echo $tmp/stdin ;;
20506 [\\/$]*)
20507 # Absolute (can't be DOS-style, as IFS=:)
20508 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20509 echo "$as_me: error: cannot find input file: $f" >&2;}
20510 { (exit 1); exit 1; }; }
20511 echo "$f";;
20512 *) # Relative
20513 if test -f "$f"; then
20514 # Build tree
20515 echo "$f"
20516 elif test -f "$srcdir/$f"; then
20517 # Source tree
20518 echo "$srcdir/$f"
20519 else
20520 # /dev/null tree
20521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20522 echo "$as_me: error: cannot find input file: $f" >&2;}
20523 { (exit 1); exit 1; }; }
20524 fi;;
20525 esac
20526 done` || { (exit 1); exit 1; }
20527 _ACEOF
20528 cat >>$CONFIG_STATUS <<_ACEOF
20529 sed "$ac_vpsub
20530 $extrasub
20531 _ACEOF
20532 cat >>$CONFIG_STATUS <<\_ACEOF
20534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20535 s,@configure_input@,$configure_input,;t t
20536 s,@srcdir@,$ac_srcdir,;t t
20537 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20538 s,@top_srcdir@,$ac_top_srcdir,;t t
20539 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20540 s,@builddir@,$ac_builddir,;t t
20541 s,@abs_builddir@,$ac_abs_builddir,;t t
20542 s,@top_builddir@,$ac_top_builddir,;t t
20543 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20544 s,@INSTALL@,$ac_INSTALL,;t t
20545 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20546 rm -f $tmp/stdin
20547 if test x"$ac_file" != x-; then
20548 mv $tmp/out $ac_file
20549 else
20550 cat $tmp/out
20551 rm -f $tmp/out
20554 done
20555 _ACEOF
20556 cat >>$CONFIG_STATUS <<\_ACEOF
20559 # CONFIG_HEADER section.
20562 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20563 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20565 # ac_d sets the value in "#define NAME VALUE" lines.
20566 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20567 ac_dB='[ ].*$,\1#\2'
20568 ac_dC=' '
20569 ac_dD=',;t'
20570 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20571 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20572 ac_uB='$,\1#\2define\3'
20573 ac_uC=' '
20574 ac_uD=',;t'
20576 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20578 case $ac_file in
20579 - | *:- | *:-:* ) # input from stdin
20580 cat >$tmp/stdin
20581 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20583 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20585 * ) ac_file_in=$ac_file.in ;;
20586 esac
20588 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20589 echo "$as_me: creating $ac_file" >&6;}
20591 # First look for the input files in the build tree, otherwise in the
20592 # src tree.
20593 ac_file_inputs=`IFS=:
20594 for f in $ac_file_in; do
20595 case $f in
20596 -) echo $tmp/stdin ;;
20597 [\\/$]*)
20598 # Absolute (can't be DOS-style, as IFS=:)
20599 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20600 echo "$as_me: error: cannot find input file: $f" >&2;}
20601 { (exit 1); exit 1; }; }
20602 # Do quote $f, to prevent DOS paths from being IFS'd.
20603 echo "$f";;
20604 *) # Relative
20605 if test -f "$f"; then
20606 # Build tree
20607 echo "$f"
20608 elif test -f "$srcdir/$f"; then
20609 # Source tree
20610 echo "$srcdir/$f"
20611 else
20612 # /dev/null tree
20613 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20614 echo "$as_me: error: cannot find input file: $f" >&2;}
20615 { (exit 1); exit 1; }; }
20616 fi;;
20617 esac
20618 done` || { (exit 1); exit 1; }
20619 # Remove the trailing spaces.
20620 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20622 _ACEOF
20624 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20625 # `conftest.undefs', that substitutes the proper values into
20626 # config.h.in to produce config.h. The first handles `#define'
20627 # templates, and the second `#undef' templates.
20628 # And first: Protect against being on the right side of a sed subst in
20629 # config.status. Protect against being in an unquoted here document
20630 # in config.status.
20631 rm -f conftest.defines conftest.undefs
20632 # Using a here document instead of a string reduces the quoting nightmare.
20633 # Putting comments in sed scripts is not portable.
20635 # `end' is used to avoid that the second main sed command (meant for
20636 # 0-ary CPP macros) applies to n-ary macro definitions.
20637 # See the Autoconf documentation for `clear'.
20638 cat >confdef2sed.sed <<\_ACEOF
20639 s/[\\&,]/\\&/g
20640 s,[\\$`],\\&,g
20641 t clear
20642 : clear
20643 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20644 t end
20645 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20646 : end
20647 _ACEOF
20648 # If some macros were called several times there might be several times
20649 # the same #defines, which is useless. Nevertheless, we may not want to
20650 # sort them, since we want the *last* AC-DEFINE to be honored.
20651 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20652 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20653 rm -f confdef2sed.sed
20655 # This sed command replaces #undef with comments. This is necessary, for
20656 # example, in the case of _POSIX_SOURCE, which is predefined and required
20657 # on some systems where configure will not decide to define it.
20658 cat >>conftest.undefs <<\_ACEOF
20659 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20660 _ACEOF
20662 # Break up conftest.defines because some shells have a limit on the size
20663 # of here documents, and old seds have small limits too (100 cmds).
20664 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20665 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20666 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20667 echo ' :' >>$CONFIG_STATUS
20668 rm -f conftest.tail
20669 while grep . conftest.defines >/dev/null
20671 # Write a limited-size here document to $tmp/defines.sed.
20672 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20673 # Speed up: don't consider the non `#define' lines.
20674 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20675 # Work around the forget-to-reset-the-flag bug.
20676 echo 't clr' >>$CONFIG_STATUS
20677 echo ': clr' >>$CONFIG_STATUS
20678 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20679 echo 'CEOF
20680 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20681 rm -f $tmp/in
20682 mv $tmp/out $tmp/in
20683 ' >>$CONFIG_STATUS
20684 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20685 rm -f conftest.defines
20686 mv conftest.tail conftest.defines
20687 done
20688 rm -f conftest.defines
20689 echo ' fi # grep' >>$CONFIG_STATUS
20690 echo >>$CONFIG_STATUS
20692 # Break up conftest.undefs because some shells have a limit on the size
20693 # of here documents, and old seds have small limits too (100 cmds).
20694 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20695 rm -f conftest.tail
20696 while grep . conftest.undefs >/dev/null
20698 # Write a limited-size here document to $tmp/undefs.sed.
20699 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20700 # Speed up: don't consider the non `#undef'
20701 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20702 # Work around the forget-to-reset-the-flag bug.
20703 echo 't clr' >>$CONFIG_STATUS
20704 echo ': clr' >>$CONFIG_STATUS
20705 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20706 echo 'CEOF
20707 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20708 rm -f $tmp/in
20709 mv $tmp/out $tmp/in
20710 ' >>$CONFIG_STATUS
20711 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20712 rm -f conftest.undefs
20713 mv conftest.tail conftest.undefs
20714 done
20715 rm -f conftest.undefs
20717 cat >>$CONFIG_STATUS <<\_ACEOF
20718 # Let's still pretend it is `configure' which instantiates (i.e., don't
20719 # use $as_me), people would be surprised to read:
20720 # /* config.h. Generated by config.status. */
20721 if test x"$ac_file" = x-; then
20722 echo "/* Generated by configure. */" >$tmp/config.h
20723 else
20724 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20726 cat $tmp/in >>$tmp/config.h
20727 rm -f $tmp/in
20728 if test x"$ac_file" != x-; then
20729 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20730 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20731 echo "$as_me: $ac_file is unchanged" >&6;}
20732 else
20733 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20735 X"$ac_file" : 'X\(//\)[^/]' \| \
20736 X"$ac_file" : 'X\(//\)$' \| \
20737 X"$ac_file" : 'X\(/\)' \| \
20738 . : '\(.\)' 2>/dev/null ||
20739 echo X"$ac_file" |
20740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20742 /^X\(\/\/\)$/{ s//\1/; q; }
20743 /^X\(\/\).*/{ s//\1/; q; }
20744 s/.*/./; q'`
20745 { if $as_mkdir_p; then
20746 mkdir -p "$ac_dir"
20747 else
20748 as_dir="$ac_dir"
20749 as_dirs=
20750 while test ! -d "$as_dir"; do
20751 as_dirs="$as_dir $as_dirs"
20752 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754 X"$as_dir" : 'X\(//\)[^/]' \| \
20755 X"$as_dir" : 'X\(//\)$' \| \
20756 X"$as_dir" : 'X\(/\)' \| \
20757 . : '\(.\)' 2>/dev/null ||
20758 echo X"$as_dir" |
20759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761 /^X\(\/\/\)$/{ s//\1/; q; }
20762 /^X\(\/\).*/{ s//\1/; q; }
20763 s/.*/./; q'`
20764 done
20765 test ! -n "$as_dirs" || mkdir $as_dirs
20766 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20767 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20768 { (exit 1); exit 1; }; }; }
20770 rm -f $ac_file
20771 mv $tmp/config.h $ac_file
20773 else
20774 cat $tmp/config.h
20775 rm -f $tmp/config.h
20777 # Compute $ac_file's index in $config_headers.
20778 _am_stamp_count=1
20779 for _am_header in $config_headers :; do
20780 case $_am_header in
20781 $ac_file | $ac_file:* )
20782 break ;;
20784 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20785 esac
20786 done
20787 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20788 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20789 X$ac_file : 'X\(//\)[^/]' \| \
20790 X$ac_file : 'X\(//\)$' \| \
20791 X$ac_file : 'X\(/\)' \| \
20792 . : '\(.\)' 2>/dev/null ||
20793 echo X$ac_file |
20794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20796 /^X\(\/\/\)$/{ s//\1/; q; }
20797 /^X\(\/\).*/{ s//\1/; q; }
20798 s/.*/./; q'`/stamp-h$_am_stamp_count
20799 done
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<\_ACEOF
20804 # CONFIG_COMMANDS section.
20806 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20807 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20808 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20809 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20810 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20811 X"$ac_dest" : 'X\(//\)[^/]' \| \
20812 X"$ac_dest" : 'X\(//\)$' \| \
20813 X"$ac_dest" : 'X\(/\)' \| \
20814 . : '\(.\)' 2>/dev/null ||
20815 echo X"$ac_dest" |
20816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20818 /^X\(\/\/\)$/{ s//\1/; q; }
20819 /^X\(\/\).*/{ s//\1/; q; }
20820 s/.*/./; q'`
20821 { if $as_mkdir_p; then
20822 mkdir -p "$ac_dir"
20823 else
20824 as_dir="$ac_dir"
20825 as_dirs=
20826 while test ! -d "$as_dir"; do
20827 as_dirs="$as_dir $as_dirs"
20828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20830 X"$as_dir" : 'X\(//\)[^/]' \| \
20831 X"$as_dir" : 'X\(//\)$' \| \
20832 X"$as_dir" : 'X\(/\)' \| \
20833 . : '\(.\)' 2>/dev/null ||
20834 echo X"$as_dir" |
20835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20837 /^X\(\/\/\)$/{ s//\1/; q; }
20838 /^X\(\/\).*/{ s//\1/; q; }
20839 s/.*/./; q'`
20840 done
20841 test ! -n "$as_dirs" || mkdir $as_dirs
20842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20843 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20844 { (exit 1); exit 1; }; }; }
20846 ac_builddir=.
20848 if test "$ac_dir" != .; then
20849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20850 # A "../" for each directory in $ac_dir_suffix.
20851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20852 else
20853 ac_dir_suffix= ac_top_builddir=
20856 case $srcdir in
20857 .) # No --srcdir option. We are building in place.
20858 ac_srcdir=.
20859 if test -z "$ac_top_builddir"; then
20860 ac_top_srcdir=.
20861 else
20862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20863 fi ;;
20864 [\\/]* | ?:[\\/]* ) # Absolute path.
20865 ac_srcdir=$srcdir$ac_dir_suffix;
20866 ac_top_srcdir=$srcdir ;;
20867 *) # Relative path.
20868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20870 esac
20872 # Do not use `cd foo && pwd` to compute absolute paths, because
20873 # the directories may not exist.
20874 case `pwd` in
20875 .) ac_abs_builddir="$ac_dir";;
20877 case "$ac_dir" in
20878 .) ac_abs_builddir=`pwd`;;
20879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20881 esac;;
20882 esac
20883 case $ac_abs_builddir in
20884 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20886 case ${ac_top_builddir}. in
20887 .) ac_abs_top_builddir=$ac_abs_builddir;;
20888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20890 esac;;
20891 esac
20892 case $ac_abs_builddir in
20893 .) ac_abs_srcdir=$ac_srcdir;;
20895 case $ac_srcdir in
20896 .) ac_abs_srcdir=$ac_abs_builddir;;
20897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20899 esac;;
20900 esac
20901 case $ac_abs_builddir in
20902 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20904 case $ac_top_srcdir in
20905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20908 esac;;
20909 esac
20912 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20913 echo "$as_me: executing $ac_dest commands" >&6;}
20914 case $ac_dest in
20915 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20916 # Strip MF so we end up with the name of the file.
20917 mf=`echo "$mf" | sed -e 's/:.*$//'`
20918 # Check whether this is an Automake generated Makefile or not.
20919 # We used to match only the files named `Makefile.in', but
20920 # some people rename them; so instead we look at the file content.
20921 # Grep'ing the first line is not enough: some people post-process
20922 # each Makefile.in and add a new line on top of each file to say so.
20923 # So let's grep whole file.
20924 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20925 dirpart=`(dirname "$mf") 2>/dev/null ||
20926 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20927 X"$mf" : 'X\(//\)[^/]' \| \
20928 X"$mf" : 'X\(//\)$' \| \
20929 X"$mf" : 'X\(/\)' \| \
20930 . : '\(.\)' 2>/dev/null ||
20931 echo X"$mf" |
20932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20934 /^X\(\/\/\)$/{ s//\1/; q; }
20935 /^X\(\/\).*/{ s//\1/; q; }
20936 s/.*/./; q'`
20937 else
20938 continue
20940 # Extract the definition of DEPDIR, am__include, and am__quote
20941 # from the Makefile without running `make'.
20942 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20943 test -z "$DEPDIR" && continue
20944 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20945 test -z "am__include" && continue
20946 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20947 # When using ansi2knr, U may be empty or an underscore; expand it
20948 U=`sed -n 's/^U = //p' < "$mf"`
20949 # Find all dependency output files, they are included files with
20950 # $(DEPDIR) in their names. We invoke sed twice because it is the
20951 # simplest approach to changing $(DEPDIR) to its actual value in the
20952 # expansion.
20953 for file in `sed -n "
20954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20956 # Make sure the directory exists.
20957 test -f "$dirpart/$file" && continue
20958 fdir=`(dirname "$file") 2>/dev/null ||
20959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20960 X"$file" : 'X\(//\)[^/]' \| \
20961 X"$file" : 'X\(//\)$' \| \
20962 X"$file" : 'X\(/\)' \| \
20963 . : '\(.\)' 2>/dev/null ||
20964 echo X"$file" |
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20967 /^X\(\/\/\)$/{ s//\1/; q; }
20968 /^X\(\/\).*/{ s//\1/; q; }
20969 s/.*/./; q'`
20970 { if $as_mkdir_p; then
20971 mkdir -p $dirpart/$fdir
20972 else
20973 as_dir=$dirpart/$fdir
20974 as_dirs=
20975 while test ! -d "$as_dir"; do
20976 as_dirs="$as_dir $as_dirs"
20977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$as_dir" : 'X\(//\)[^/]' \| \
20980 X"$as_dir" : 'X\(//\)$' \| \
20981 X"$as_dir" : 'X\(/\)' \| \
20982 . : '\(.\)' 2>/dev/null ||
20983 echo X"$as_dir" |
20984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20986 /^X\(\/\/\)$/{ s//\1/; q; }
20987 /^X\(\/\).*/{ s//\1/; q; }
20988 s/.*/./; q'`
20989 done
20990 test ! -n "$as_dirs" || mkdir $as_dirs
20991 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20992 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20993 { (exit 1); exit 1; }; }; }
20995 # echo "creating $dirpart/$file"
20996 echo '# dummy' > "$dirpart/$file"
20997 done
20998 done
21000 default-1 )
21001 for ac_file in $CONFIG_FILES; do
21002 # Support "outfile[:infile[:infile...]]"
21003 case "$ac_file" in
21004 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21005 esac
21006 # PO directories have a Makefile.in generated from Makefile.in.in.
21007 case "$ac_file" in */Makefile.in)
21008 # Adjust a relative srcdir.
21009 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21010 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21011 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21012 # In autoconf-2.13 it is called $ac_given_srcdir.
21013 # In autoconf-2.50 it is called $srcdir.
21014 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21015 case "$ac_given_srcdir" in
21016 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21017 /*) top_srcdir="$ac_given_srcdir" ;;
21018 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21019 esac
21020 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21021 rm -f "$ac_dir/POTFILES"
21022 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21023 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21024 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21025 # on $ac_dir but don't depend on user-specified configuration
21026 # parameters.
21027 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21028 # The LINGUAS file contains the set of available languages.
21029 if test -n "$ALL_LINGUAS"; then
21030 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21032 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21033 # Hide the ALL_LINGUAS assigment from automake.
21034 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21036 case "$ac_given_srcdir" in
21037 .) srcdirpre= ;;
21038 *) srcdirpre='$(srcdir)/' ;;
21039 esac
21040 POFILES=
21041 GMOFILES=
21042 UPDATEPOFILES=
21043 DUMMYPOFILES=
21044 for lang in $ALL_LINGUAS; do
21045 POFILES="$POFILES $srcdirpre$lang.po"
21046 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21047 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21048 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21049 done
21050 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21051 # environment variable.
21052 INST_LINGUAS=
21053 if test -n "$ALL_LINGUAS"; then
21054 for presentlang in $ALL_LINGUAS; do
21055 useit=no
21056 if test "%UNSET%" != "$LINGUAS"; then
21057 desiredlanguages="$LINGUAS"
21058 else
21059 desiredlanguages="$ALL_LINGUAS"
21061 for desiredlang in $desiredlanguages; do
21062 # Use the presentlang catalog if desiredlang is
21063 # a. equal to presentlang, or
21064 # b. a variant of presentlang (because in this case,
21065 # presentlang can be used as a fallback for messages
21066 # which are not translated in the desiredlang catalog).
21067 case "$desiredlang" in
21068 "$presentlang"*) useit=yes;;
21069 esac
21070 done
21071 if test $useit = yes; then
21072 INST_LINGUAS="$INST_LINGUAS $presentlang"
21074 done
21076 CATALOGS=
21077 if test -n "$INST_LINGUAS"; then
21078 for lang in $INST_LINGUAS; do
21079 CATALOGS="$CATALOGS $lang.gmo"
21080 done
21082 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21083 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"
21084 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21085 if test -f "$f"; then
21086 case "$f" in
21087 *.orig | *.bak | *~) ;;
21088 *) cat "$f" >> "$ac_dir/Makefile" ;;
21089 esac
21091 done
21094 esac
21095 done ;;
21096 denoiser ) if test $denoiserlevel -gt 0; then
21097 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21098 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" \
21099 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21100 for i in `find . -name 'Makefile' -print`; do
21101 if test -n "`head -n 1 $i | grep '^#'`"; then
21102 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21104 done
21105 fi ;;
21106 esac
21107 done
21108 _ACEOF
21110 cat >>$CONFIG_STATUS <<\_ACEOF
21112 { (exit 0); exit 0; }
21113 _ACEOF
21114 chmod +x $CONFIG_STATUS
21115 ac_clean_files=$ac_clean_files_save
21118 # configure is writing to config.log, and then calls config.status.
21119 # config.status does its own redirection, appending to config.log.
21120 # Unfortunately, on DOS this fails, as config.log is still kept open
21121 # by configure, so config.status won't be able to write to it; its
21122 # output is simply discarded. So we exec the FD to /dev/null,
21123 # effectively closing config.log, so it can be properly (re)opened and
21124 # appended to by config.status. When coming back to configure, we
21125 # need to make the FD available again.
21126 if test "$no_create" != yes; then
21127 ac_cs_success=:
21128 ac_config_status_args=
21129 test "$silent" = yes &&
21130 ac_config_status_args="$ac_config_status_args --quiet"
21131 exec 5>/dev/null
21132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21133 exec 5>>config.log
21134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21135 # would make configure fail if this is the last instruction.
21136 $ac_cs_success || { (exit 1); exit 1; }
21140 if test -n "$svndate"; then
21141 SVN_REVISION=" ($svndate)"
21142 else
21143 SVN_REVISION=
21147 echo
21148 echo
21149 echo " Configure script has finished system check."
21150 echo
21151 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21152 echo
21153 echo " aMule enabled options:"
21154 echo
21155 echo " **** aMule Core ****"
21156 echo " Prefix where aMule should be installed? ${prefix:-none}"
21157 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21158 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21159 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21160 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21161 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21162 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21163 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21164 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21165 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21166 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21168 echo
21169 echo " **** aMule TextClient ****"
21170 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21171 echo
21172 echo " **** aMule WebServer ****"
21173 echo " Should aMule WebServer be built? ${WEB:-no}"
21174 echo
21175 echo " **** aMule ED2K Links Handler ****"
21176 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21177 echo
21178 echo " **** aMuleLinkCreator ****"
21179 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21180 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21181 echo
21182 echo " **** aMule Statistics ****"
21183 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21184 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21185 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21187 echo
21188 echo " **** General Libraries and Tools ****"
21189 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21190 echo " Libraries aMule will use to build:"
21191 wxinfo="$WX_PORT"
21192 if test $WX_DEBUG -eq 1; then
21193 wxinfo="$wxinfo,debug"
21196 if test $WX_SHARED -eq 1; then
21197 wxinfo="$wxinfo,shared"
21198 else
21199 wxinfo="$wxinfo,static"
21202 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21203 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21204 if test -n "$with_libupnp_prefix"; then
21205 libupnp_place=" (in $with_libupnp_prefix)"
21208 if test x${ENABLE_UPNP} = xyes; then
21209 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21212 if test ${enable_nls:-yes} = yes; then
21213 if test x$USE_NLS = xno; then
21214 libintl_found="Not detected"
21215 else
21216 if test x$USE_INCLUDED_LIBINTL = xyes; then
21217 libintl_found="included"
21218 else
21219 libintl_found="system"
21224 echo " libintl $libintl_found"
21226 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21227 geoip_style=system
21228 else
21229 geoip_style=user
21232 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21233 echo " libGeoIP ${geoip_style}"
21236 if test x$LIBPNG_VERSION != xnot_needed; then
21237 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21239 if test x$GDLIB_VERSION != xnot_needed; then
21240 echo " libgd ${GDLIB_VERSION:-Not detected}"
21242 echo " zlib ${ZLIB_VERSION:-Not detected}"
21243 if test ${_mule_has_warnings:-no} = yes; then
21244 echo ""
21245 echo ""
21246 echo " *** Warnings during configuration ***"
21248 if test ${_mule_warning_0:-no} = yes; then
21249 cat <<_MULEEOT
21251 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21252 Please check that gdlib-config is in your default path, check out
21253 LD_LIBRARY_PATH or equivalent variable.
21254 Or this might also be that your gdlib-config has other name.
21255 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21256 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21257 If you use compiled packages check if you have devel pack installed.
21258 To download the latest version check http://www.boutell.com/gd for sources.
21259 _MULEEOT
21261 if test ${_mule_warning_1:-no} = yes; then
21262 cat <<_MULEEOT
21264 * libpng >= 1.2.0 not found.
21265 amuleweb will be compiled but file download progress bar images will NOT be
21266 generated.
21267 _MULEEOT
21269 if test ${_mule_warning_2:-no} = yes; then
21270 cat <<_MULEEOT
21272 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21273 _MULEEOT
21275 if test ${_mule_warning_3:-no} = yes; then
21276 cat <<_MULEEOT
21278 * GeoIP support has been disabled because the GeoIP libraries were not found
21279 _MULEEOT
21281 if test ${_mule_warning_4:-no} = yes; then
21282 cat <<_MULEEOT
21284 * GeoIP support has been disabled because the GeoIP header files were not
21285 found
21286 _MULEEOT
21288 if test ${_mule_warning_5:-no} = yes; then
21289 cat <<_MULEEOT
21291 * UPnP code has been disabled because ${libupnp_error}.
21292 _MULEEOT
21294 if test ${_mule_warning_6:-no} = yes; then
21295 cat <<_MULEEOT
21297 * Cross-compilation detected, so exception handling cannot be tested.
21298 Note that broken exception handling in your compiler may lead to unexpected
21299 crashes.
21300 _MULEEOT
21302 if test ${_mule_warning_7:-no} = yes; then
21303 cat <<_MULEEOT
21305 * configure cannot check whether malloc() and realloc() are GNU libc
21306 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21307 configure with the --without-gnu-malloc switch.
21308 _MULEEOT
21310 if test ${_mule_warning_8:-no} = yes; then
21311 cat <<_MULEEOT
21313 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21314 support.
21315 _MULEEOT
21317 if test ${_mule_warning_9:-no} = yes; then
21318 cat <<_MULEEOT
21320 * bfd.h not found or unusable, please install binutils development package if
21321 you are a developer or want to help testing aMule
21322 _MULEEOT