Upstream tarball 9410
[amule.git] / configure
blobb4185220ae2ec8cf4e8fa35bba9119c8fefeee5b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS BFD_CPPFLAGS BFD_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
795 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
806 cat <<_ACEOF
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
816 Configuration:
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 X features:
866 --x-includes=DIR X include files are in DIR
867 --x-libraries=DIR X library files are in DIR
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of aMule SVN:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --without-gnu-malloc Don't assume that we use GNU libc compatible
913 malloc/realloc when cross-compiling
914 --with-zlib=PREFIX use zlib in PREFIX
915 --with-gdlib-prefix=PREFIX
916 prefix where gdlib is installed (optional)
917 --with-gdlib-config=CONFIG
918 gdlib-config script to use (optional)
919 --with-libpng-prefix=PREFIX
920 prefix where libpng is installed (optional)
921 --with-libpng-config=CONFIG
922 libpng-config script to use (optional)
923 --with-geoip-headers=DIR
924 GeoIP include files location
925 --with-geoip-lib=DIR GeoIP library location
926 --with-geoip-static Explicitly link GeoIP statically (default=no)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
928 --with-wx-config=CONFIG wx-config script to use (optional)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed (optional)
932 --with-toolkit Build against a specific wxWidgets toolkit (default
933 is auto)
934 --with-wxshared Force building against a shared build of wxWidgets,
935 even if --disable-shared is given (default is auto)
936 --with-wxdebug Force building against a debug build of wxWidgets,
937 even if --disable-debug is given (default is auto)
938 --with-wxversion Build against a specific version of wxWidgets
939 (default is auto)
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto++ is installed
944 --with-x use the X Window System
945 --with-language=<langs> Specify a comma-separated list of languages you want
946 to have installed. See po/LINGUAS for available
947 languages
948 --with-gnu-ld assume the C compiler uses GNU ld default=no
949 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
950 --without-libiconv-prefix don't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search for libintl in includedir and libdir
954 --with-denoise-level=<level>
955 Specifies denoising level (0-4):
956 0 - Do nothing
957 4 - Suppress all normal output
958 (for more information see
959 src/utils/scripts/denoiser.rules)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables:
965 CXX C++ compiler command
966 CXXFLAGS C++ compiler flags
967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
968 nonstandard directory <lib dir>
969 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
970 headers in a nonstandard directory <include dir>
971 CXXCPP C++ preprocessor
972 CC C compiler command
973 CFLAGS C compiler flags
974 CPP C preprocessor
975 RC Resource Compiler
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by `configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
983 _ACEOF
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
988 ac_popdir=`pwd`
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
991 ac_builddir=.
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
997 else
998 ac_dir_suffix= ac_top_builddir=
1001 case $srcdir in
1002 .) # No --srcdir option. We are building in place.
1003 ac_srcdir=.
1004 if test -z "$ac_top_builddir"; then
1005 ac_top_srcdir=.
1006 else
1007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1008 fi ;;
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1012 *) # Relative path.
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1015 esac
1017 # Do not use `cd foo && pwd` to compute absolute paths, because
1018 # the directories may not exist.
1019 case `pwd` in
1020 .) ac_abs_builddir="$ac_dir";;
1022 case "$ac_dir" in
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1026 esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1035 esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1040 case $ac_srcdir in
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1044 esac;;
1045 esac
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 esac;;
1054 esac
1056 cd $ac_dir
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1059 echo
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1062 echo
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1066 echo
1067 $ac_configure --help
1068 else
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 cd $ac_popdir
1072 done
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1077 cat <<\_ACEOF
1078 aMule configure SVN
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1084 _ACEOF
1085 exit 0
1087 exec 5>config.log
1088 cat >&5 <<_ACEOF
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1095 $ $0 $@
1097 _ACEOF
1099 cat <<_ASUNAME
1100 ## --------- ##
1101 ## Platform. ##
1102 ## --------- ##
1104 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1105 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1106 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1107 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1108 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1110 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1111 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1113 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1114 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1115 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1116 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1117 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1118 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1119 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1121 _ASUNAME
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1124 for as_dir in $PATH
1126 IFS=$as_save_IFS
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1129 done
1131 } >&5
1133 cat >&5 <<_ACEOF
1136 ## ----------- ##
1137 ## Core tests. ##
1138 ## ----------- ##
1140 _ACEOF
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1148 ac_configure_args=
1149 ac_configure_args0=
1150 ac_configure_args1=
1151 ac_sep=
1152 ac_must_keep_next=false
1153 for ac_pass in 1 2
1155 for ac_arg
1157 case $ac_arg in
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 continue ;;
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164 esac
1165 case $ac_pass in
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1171 else
1172 case $ac_arg in
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1179 esac
1181 -* ) ac_must_keep_next=true ;;
1182 esac
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1186 ac_sep=" "
1188 esac
1189 done
1190 done
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1202 echo
1204 cat <<\_ASBOX
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1208 _ASBOX
1209 echo
1210 # The following way of writing the cache mishandles newlines in values,
1212 (set) 2>&1 |
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1214 *ac_space=\ *)
1215 sed -n \
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220 sed -n \
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223 esac;
1225 echo
1227 cat <<\_ASBOX
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1231 _ASBOX
1232 echo
1233 for ac_var in $ac_subst_vars
1235 eval ac_val=$`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1237 done | sort
1238 echo
1240 if test -n "$ac_subst_files"; then
1241 cat <<\_ASBOX
1242 ## ------------- ##
1243 ## Output files. ##
1244 ## ------------- ##
1245 _ASBOX
1246 echo
1247 for ac_var in $ac_subst_files
1249 eval ac_val=$`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1251 done | sort
1252 echo
1255 if test -s confdefs.h; then
1256 cat <<\_ASBOX
1257 ## ----------- ##
1258 ## confdefs.h. ##
1259 ## ----------- ##
1260 _ASBOX
1261 echo
1262 sed "/^$/d" confdefs.h | sort
1263 echo
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1268 } >&5
1269 rm -f core *.core &&
1270 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1271 exit $exit_status
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1275 done
1276 ac_signal=0
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1281 echo >confdefs.h
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1287 _ACEOF
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1292 _ACEOF
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1297 _ACEOF
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1302 _ACEOF
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1307 _ACEOF
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1315 else
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's/^/| /' "$ac_site_file" >&5
1324 . "$ac_site_file"
1326 done
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1334 case $cache_file in
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1337 esac
1339 else
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1342 >$cache_file
1345 # Check that the precious variables saved in the cache have kept the same
1346 # value.
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1355 set,)
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1359 ,set)
1360 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1363 ,);;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1367 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1373 fi;;
1374 esac
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1377 case $ac_new_val in
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1381 esac
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1385 esac
1387 done
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1392 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1429 ac_aux_dir=
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1434 break
1435 elif test -f $ac_dir/install.sh; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1438 break
1439 elif test -f $ac_dir/shtool; then
1440 ac_aux_dir=$ac_dir
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1442 break
1444 done
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1460 # AIX /bin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 # Account for people who put trailing slashes in PATH elements.
1479 case $as_dir/ in
1480 ./ | .// | /cC/* | \
1481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483 /usr/ucb/* ) ;;
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1487 # by default.
1488 for ac_prog in ginstall scoinst install; do
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1499 else
1500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501 break 3
1504 done
1505 done
1507 esac
1508 done
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL=$ac_cv_path_install
1514 else
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535 # Just in case
1536 sleep 1
1537 echo timestamp > conftest.file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1542 # directory).
1543 if (
1544 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1546 # -L didn't work.
1547 set X `ls -t $srcdir/configure conftest.file`
1549 rm -f conftest.file
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.file
1566 then
1567 # Ok.
1569 else
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE &&
1579 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE &&
1582 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF >conftest.sed
1586 s/[\\$]/&&/g;s/;s,x,x,$//
1587 _ACEOF
1588 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589 rm conftest.sed
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir=`cd $ac_aux_dir && pwd`
1594 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run="$MISSING --run "
1598 else
1599 am_missing_run=
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1609 # for two reasons:
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p='mkdir -p --'
1620 else
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1624 # exists.
1625 for d in ./-p ./--version;
1627 test -d $d && rmdir $d
1628 done
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p='$(mkinstalldirs)'
1632 else
1633 mkdir_p='$(install_sh) -d'
1637 for ac_prog in gawk mawk nawk awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 AWK=$ac_cv_prog_AWK
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1675 done
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 cat >conftest.make <<\_ACEOF
1684 all:
1685 @echo 'ac_maketemp="$(MAKE)"'
1686 _ACEOF
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_${ac_make}_set=yes
1691 else
1692 eval ac_cv_prog_make_${ac_make}_set=no
1694 rm -f conftest.make
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 SET_MAKE=
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE="MAKE=${MAKE-make}"
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1709 am__leading_dot=.
1710 else
1711 am__leading_dot=_
1713 rmdir .tst 2>/dev/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1727 else
1728 CYGPATH_W=echo
1733 # Define the identity of the package.
1734 PACKAGE='amule'
1735 VERSION='SVN'
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1747 # Some tools Automake needs.
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}strip; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1797 STRIP=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1801 else
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1808 ac_ct_STRIP=$STRIP
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1830 done
1831 done
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 STRIP=$ac_ct_STRIP
1846 else
1847 STRIP="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1854 # some platforms.
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR=${AMTAR-"${am_missing_run}tar"}
1859 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1867 ac_config_headers="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE=$enableval
1875 else
1876 USE_MAINTAINER_MODE=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE=
1884 MAINTAINER_MODE_FALSE='#'
1885 else
1886 MAINTAINER_MODE_TRUE='#'
1887 MAINTAINER_MODE_FALSE=
1890 MAINT=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 ac_cv_build_alias=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1920 build=$ac_cv_build
1921 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 ac_cv_host_alias=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias=$ac_cv_build_alias
1934 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1942 host=$ac_cv_host
1943 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1950 darwin*)
1951 SYS=darwin
1952 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS="-bind_at_load"
1954 touch src/Scanner.cpp
1956 openbsd*)
1957 SYS=openbsd
1958 LIBS="$LIBS -L/usr/local/lib"
1959 X11LIBS="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS="-D__OPENBSD__"
1962 *cygwin* | *mingw32*)
1963 SYS=win32
1964 MULECPPFLAGS="-DNOMINMAX"
1966 solaris*)
1967 SYS=solaris
1968 RESOLV_LIB="-lresolv -lnsl"
1969 X11LIBS="-lX11"
1970 LIBS="$LIBS -lrt"
1972 *netbsd*)
1973 SYS=netbsd
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 SYS=unknown
1983 esac
1985 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1986 if test ${SYS:-unknown} != win32; then
1988 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1989 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1990 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1992 MULELDFLAGS="$MULELDFLAGS -pthread"
1993 echo "$as_me:$LINENO: result: yes" >&5
1994 echo "${ECHO_T}yes" >&6
1996 else
1998 MULELDFLAGS="$MULELDFLAGS -lpthread"
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2010 mule_backup_CFLAGS="$CFLAGS"
2011 mule_backup_CXXFLAGS="$CXXFLAGS"
2012 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2013 ac_ext=cc
2014 ac_cpp='$CXXCPP $CPPFLAGS'
2015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CXX+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CXX"; then
2029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2047 CXX=$ac_cv_prog_CXX
2048 if test -n "$CXX"; then
2049 echo "$as_me:$LINENO: result: $CXX" >&5
2050 echo "${ECHO_T}$CXX" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$CXX" && break
2057 done
2059 if test -z "$CXX"; then
2060 ac_ct_CXX=$CXX
2061 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$ac_ct_CXX"; then
2071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CXX="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2089 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2090 if test -n "$ac_ct_CXX"; then
2091 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2092 echo "${ECHO_T}$ac_ct_CXX" >&6
2093 else
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2098 test -n "$ac_ct_CXX" && break
2099 done
2100 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2102 CXX=$ac_ct_CXX
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO:" \
2108 "checking for C++ compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2111 (eval $ac_compiler --version </dev/null >&5) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2116 (eval $ac_compiler -v </dev/null >&5) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2121 (eval $ac_compiler -V </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 main ()
2138 return 0;
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2147 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2156 # resort.
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 ac_cv_exeext=
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 test -f "$ac_file" || continue
2165 case $ac_file in
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168 conftest.$ac_ext )
2169 # This is the source file.
2171 [ab].out )
2172 # We found the default executable, but exeext='' is most
2173 # certainly right.
2174 break;;
2175 *.* )
2176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2180 export ac_cv_exeext
2181 break;;
2183 break;;
2184 esac
2185 done
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C++ compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2204 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 cross_compiling=no
2215 else
2216 if test "$cross_compiling" = maybe; then
2217 cross_compiling=yes
2218 else
2219 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C++ compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 # `rm'.
2252 for ac_file in conftest.exe conftest conftest.*; do
2253 test -f "$ac_file" || continue
2254 case $ac_file in
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 export ac_cv_exeext
2258 break;;
2259 * ) break;;
2260 esac
2261 done
2262 else
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2276 ac_exeext=$EXEEXT
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2290 main ()
2294 return 0;
2296 _ACEOF
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 break;;
2308 esac
2309 done
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2340 main ()
2342 #ifndef __GNUC__
2343 choke me
2344 #endif
2347 return 0;
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_cxx_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 (eval $ac_try) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_compiler_gnu=yes
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 ac_compiler_gnu=no
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2383 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2385 GXX=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CXXFLAGS=${CXXFLAGS+set}
2387 ac_save_CXXFLAGS=$CXXFLAGS
2388 CXXFLAGS="-g"
2389 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2390 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cxx_g+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2402 main ()
2406 return 0;
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cxx_g=yes
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 ac_cv_prog_cxx_g=no
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2442 if test "$ac_test_CXXFLAGS" = set; then
2443 CXXFLAGS=$ac_save_CXXFLAGS
2444 elif test $ac_cv_prog_cxx_g = yes; then
2445 if test "$GXX" = yes; then
2446 CXXFLAGS="-g -O2"
2447 else
2448 CXXFLAGS="-g"
2450 else
2451 if test "$GXX" = yes; then
2452 CXXFLAGS="-O2"
2453 else
2454 CXXFLAGS=
2457 for ac_declaration in \
2458 '' \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2463 'void exit (int);'
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 $ac_declaration
2472 #include <stdlib.h>
2474 main ()
2476 exit (42);
2478 return 0;
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_cxx_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 continue
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 $ac_declaration
2519 main ()
2521 exit (42);
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 break
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 done
2556 rm -f conftest*
2557 if test -n "$ac_declaration"; then
2558 echo '#ifdef __cplusplus' >>confdefs.h
2559 echo $ac_declaration >>confdefs.h
2560 echo '#endif' >>confdefs.h
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 DEPDIR="${am__leading_dot}deps"
2570 ac_config_commands="$ac_config_commands depfiles"
2573 am_make=${MAKE-make}
2574 cat > confinc << 'END'
2575 am__doit:
2576 @echo done
2577 .PHONY: am__doit
2579 # If we don't find an include directive, just comment out the code.
2580 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2581 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2582 am__include="#"
2583 am__quote=
2584 _am_result=none
2585 # First try GNU make style include.
2586 echo "include confinc" > confmf
2587 # We grep out `Entering directory' and `Leaving directory'
2588 # messages which can occur if `w' ends up in MAKEFLAGS.
2589 # In particular we don't look at `^make:' because GNU make might
2590 # be invoked under some other name (usually "gmake"), in which
2591 # case it prints its new name instead of `make'.
2592 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2593 am__include=include
2594 am__quote=
2595 _am_result=GNU
2597 # Now try BSD make style include.
2598 if test "$am__include" = "#"; then
2599 echo '.include "confinc"' > confmf
2600 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2601 am__include=.include
2602 am__quote="\""
2603 _am_result=BSD
2608 echo "$as_me:$LINENO: result: $_am_result" >&5
2609 echo "${ECHO_T}$_am_result" >&6
2610 rm -f confinc confmf
2612 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2613 if test "${enable_dependency_tracking+set}" = set; then
2614 enableval="$enable_dependency_tracking"
2617 if test "x$enable_dependency_tracking" != xno; then
2618 am_depcomp="$ac_aux_dir/depcomp"
2619 AMDEPBACKSLASH='\'
2623 if test "x$enable_dependency_tracking" != xno; then
2624 AMDEP_TRUE=
2625 AMDEP_FALSE='#'
2626 else
2627 AMDEP_TRUE='#'
2628 AMDEP_FALSE=
2634 depcc="$CXX" am_compiler_list=
2636 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2637 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2638 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2642 # We make a subdir and do the tests there. Otherwise we can end up
2643 # making bogus files that we don't know about and never remove. For
2644 # instance it was reported that on HP-UX the gcc test will end up
2645 # making a dummy file named `D' -- because `-MD' means `put the output
2646 # in D'.
2647 mkdir conftest.dir
2648 # Copy depcomp to subdir because otherwise we won't find it if we're
2649 # using a relative directory.
2650 cp "$am_depcomp" conftest.dir
2651 cd conftest.dir
2652 # We will build objects and dependencies in a subdirectory because
2653 # it helps to detect inapplicable dependency modes. For instance
2654 # both Tru64's cc and ICC support -MD to output dependencies as a
2655 # side effect of compilation, but ICC will put the dependencies in
2656 # the current directory while Tru64 will put them in the object
2657 # directory.
2658 mkdir sub
2660 am_cv_CXX_dependencies_compiler_type=none
2661 if test "$am_compiler_list" = ""; then
2662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2664 for depmode in $am_compiler_list; do
2665 # Setup a source with many dependencies, because some compilers
2666 # like to wrap large dependency lists on column 80 (with \), and
2667 # we should not choose a depcomp mode which is confused by this.
2669 # We need to recreate these files for each test, as the compiler may
2670 # overwrite some of them when testing with obscure command lines.
2671 # This happens at least with the AIX C compiler.
2672 : > sub/conftest.c
2673 for i in 1 2 3 4 5 6; do
2674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2676 # Solaris 8's {/usr,}/bin/sh.
2677 touch sub/conftst$i.h
2678 done
2679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2681 case $depmode in
2682 nosideeffect)
2683 # after this tag, mechanisms are not by side-effect, so they'll
2684 # only be used when explicitly requested
2685 if test "x$enable_dependency_tracking" = xyes; then
2686 continue
2687 else
2688 break
2691 none) break ;;
2692 esac
2693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2694 # mode. It turns out that the SunPro C++ compiler does not properly
2695 # handle `-M -o', and we need to detect this.
2696 if depmode=$depmode \
2697 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2699 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2700 >/dev/null 2>conftest.err &&
2701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2702 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2704 # icc doesn't choke on unknown options, it will just issue warnings
2705 # or remarks (even with -Werror). So we grep stderr for any message
2706 # that says an option was ignored or not supported.
2707 # When given -MP, icc 7.0 and 7.1 complain thusly:
2708 # icc: Command line warning: ignoring option '-M'; no argument required
2709 # The diagnosis changed in icc 8.0:
2710 # icc: Command line remark: option '-MP' not supported
2711 if (grep 'ignoring option' conftest.err ||
2712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2713 am_cv_CXX_dependencies_compiler_type=$depmode
2714 break
2717 done
2719 cd ..
2720 rm -rf conftest.dir
2721 else
2722 am_cv_CXX_dependencies_compiler_type=none
2726 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2727 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2728 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2733 test "x$enable_dependency_tracking" != xno \
2734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2735 am__fastdepCXX_TRUE=
2736 am__fastdepCXX_FALSE='#'
2737 else
2738 am__fastdepCXX_TRUE='#'
2739 am__fastdepCXX_FALSE=
2743 ac_ext=cc
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2748 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2749 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2750 if test -z "$CXXCPP"; then
2751 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 # Double quotes because CXXCPP needs to be expanded
2755 for CXXCPP in "$CXX -E" "/lib/cpp"
2757 ac_preproc_ok=false
2758 for ac_cxx_preproc_warn_flag in '' yes
2760 # Use a header file that comes with gcc, so configuring glibc
2761 # with a fresh cross-compiler works.
2762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 # <limits.h> exists even on freestanding compilers.
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp. "Syntax error" is here to catch this case.
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #ifdef __STDC__
2773 # include <limits.h>
2774 #else
2775 # include <assert.h>
2776 #endif
2777 Syntax error
2778 _ACEOF
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev/null; then
2787 if test -s conftest.err; then
2788 ac_cpp_err=$ac_cxx_preproc_warn_flag
2789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2790 else
2791 ac_cpp_err=
2793 else
2794 ac_cpp_err=yes
2796 if test -z "$ac_cpp_err"; then
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Broken: fails on valid input.
2803 continue
2805 rm -f conftest.err conftest.$ac_ext
2807 # OK, works on sane cases. Now check whether non-existent headers
2808 # can be detected and how.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #include <ac_nonexistent.h>
2816 _ACEOF
2817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } >/dev/null; then
2825 if test -s conftest.err; then
2826 ac_cpp_err=$ac_cxx_preproc_warn_flag
2827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2828 else
2829 ac_cpp_err=
2831 else
2832 ac_cpp_err=yes
2834 if test -z "$ac_cpp_err"; then
2835 # Broken: success on invalid input.
2836 continue
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 # Passes both tests.
2842 ac_preproc_ok=:
2843 break
2845 rm -f conftest.err conftest.$ac_ext
2847 done
2848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2849 rm -f conftest.err conftest.$ac_ext
2850 if $ac_preproc_ok; then
2851 break
2854 done
2855 ac_cv_prog_CXXCPP=$CXXCPP
2858 CXXCPP=$ac_cv_prog_CXXCPP
2859 else
2860 ac_cv_prog_CXXCPP=$CXXCPP
2862 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2863 echo "${ECHO_T}$CXXCPP" >&6
2864 ac_preproc_ok=false
2865 for ac_cxx_preproc_warn_flag in '' yes
2867 # Use a header file that comes with gcc, so configuring glibc
2868 # with a fresh cross-compiler works.
2869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 # <limits.h> exists even on freestanding compilers.
2871 # On the NeXT, cc -E runs the code through the compiler's parser,
2872 # not just through cpp. "Syntax error" is here to catch this case.
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 #ifdef __STDC__
2880 # include <limits.h>
2881 #else
2882 # include <assert.h>
2883 #endif
2884 Syntax error
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_cxx_preproc_warn_flag
2896 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2897 else
2898 ac_cpp_err=
2900 else
2901 ac_cpp_err=yes
2903 if test -z "$ac_cpp_err"; then
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Broken: fails on valid input.
2910 continue
2912 rm -f conftest.err conftest.$ac_ext
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2923 _ACEOF
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_cxx_preproc_warn_flag
2934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2935 else
2936 ac_cpp_err=
2938 else
2939 ac_cpp_err=yes
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2943 continue
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Passes both tests.
2949 ac_preproc_ok=:
2950 break
2952 rm -f conftest.err conftest.$ac_ext
2954 done
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.$ac_ext
2957 if $ac_preproc_ok; then
2959 else
2960 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018 set dummy gcc; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="gcc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 echo "${ECHO_T}$ac_ct_CC" >&6
3047 else
3048 echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3052 CC=$ac_ct_CC
3053 else
3054 CC="$ac_cv_prog_CC"
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_CC"; then
3096 ac_ct_CC=$CC
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC="cc"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 echo "${ECHO_T}$ac_ct_CC" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3132 CC=$ac_ct_CC
3133 else
3134 CC="$ac_cv_prog_CC"
3138 if test -z "$CC"; then
3139 # Extract the first word of "cc", so it can be a program name with args.
3140 set dummy cc; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 ac_prog_rejected=no
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected=yes
3159 continue
3161 ac_cv_prog_CC="cc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3168 if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 echo "$as_me:$LINENO: result: $CC" >&5
3185 echo "${ECHO_T}$CC" >&6
3186 else
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6
3226 else
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3231 test -n "$CC" && break
3232 done
3234 if test -z "$CC"; then
3235 ac_ct_CC=$CC
3236 for ac_prog in cl
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 test -n "$ac_ct_CC" && break
3274 done
3276 CC=$ac_ct_CC
3282 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details." >&5
3284 echo "$as_me: error: no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3288 # Provide some information about the compiler.
3289 echo "$as_me:$LINENO:" \
3290 "checking for C compiler version" >&5
3291 ac_compiler=`set X $ac_compile; echo $2`
3292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3293 (eval $ac_compiler --version </dev/null >&5) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3298 (eval $ac_compiler -v </dev/null >&5) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3303 (eval $ac_compiler -V </dev/null >&5) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3308 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 main ()
3323 #ifndef __GNUC__
3324 choke me
3325 #endif
3328 return 0;
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_compiler_gnu=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ac_compiler_gnu=no
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 CFLAGS="-g"
3370 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3383 main ()
3387 return 0;
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_prog_cc_g=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_cv_prog_cc_g=no
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3427 CFLAGS="-g -O2"
3428 else
3429 CFLAGS="-g"
3431 else
3432 if test "$GCC" = yes; then
3433 CFLAGS="-O2"
3434 else
3435 CFLAGS=
3438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 ac_cv_prog_cc_stdc=no
3444 ac_save_CC=$CC
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <stdarg.h>
3452 #include <stdio.h>
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3459 char **p;
3460 int i;
3462 return p[i];
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3466 char *s;
3467 va_list v;
3468 va_start (v,p);
3469 s = g (p, va_arg (v,int));
3470 va_end (v);
3471 return s;
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std1 is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std1. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 # Don't try gcc -ansi; that turns off useful extensions and
3498 # breaks some systems' header files.
3499 # AIX -qlanglvl=ansi
3500 # Ultrix and OSF/1 -std1
3501 # HP-UX 10.20 and later -Ae
3502 # HP-UX older versions -Aa -D_HPUX_SOURCE
3503 # SVR4 -Xc -D__EXTENSIONS__
3504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC="$ac_save_CC $ac_arg"
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_cc_stdc=$ac_arg
3530 break
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext
3537 done
3538 rm -f conftest.$ac_ext conftest.$ac_objext
3539 CC=$ac_save_CC
3543 case "x$ac_cv_prog_cc_stdc" in
3544 x|xno)
3545 echo "$as_me:$LINENO: result: none needed" >&5
3546 echo "${ECHO_T}none needed" >&6 ;;
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3550 CC="$CC $ac_cv_prog_cc_stdc" ;;
3551 esac
3553 # Some people use a C++ compiler to compile C. Since we use `exit',
3554 # in C++ we need to declare it. In case someone uses the same compiler
3555 # for both compiling C and C++ we need to have the C++ compiler decide
3556 # the declaration of exit, since it's the most demanding environment.
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #ifndef __cplusplus
3559 choke me
3560 #endif
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 for ac_declaration in \
3585 '' \
3586 'extern "C" void std::exit (int) throw (); using std::exit;' \
3587 'extern "C" void std::exit (int); using std::exit;' \
3588 'extern "C" void exit (int) throw ();' \
3589 'extern "C" void exit (int);' \
3590 'void exit (int);'
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_declaration
3599 #include <stdlib.h>
3601 main ()
3603 exit (42);
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 continue
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_declaration
3646 main ()
3648 exit (42);
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 break
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682 done
3683 rm -f conftest*
3684 if test -n "$ac_declaration"; then
3685 echo '#ifdef __cplusplus' >>confdefs.h
3686 echo $ac_declaration >>confdefs.h
3687 echo '#endif' >>confdefs.h
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 depcc="$CC" am_compiler_list=
3704 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3706 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # in D'.
3715 mkdir conftest.dir
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3719 cd conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3725 # directory.
3726 mkdir sub
3728 am_cv_CC_dependencies_compiler_type=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 for depmode in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3740 : > sub/conftest.c
3741 for i in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3744 # Solaris 8's {/usr,}/bin/sh.
3745 touch sub/conftst$i.h
3746 done
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749 case $depmode in
3750 nosideeffect)
3751 # after this tag, mechanisms are not by side-effect, so they'll
3752 # only be used when explicitly requested
3753 if test "x$enable_dependency_tracking" = xyes; then
3754 continue
3755 else
3756 break
3759 none) break ;;
3760 esac
3761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3762 # mode. It turns out that the SunPro C++ compiler does not properly
3763 # handle `-M -o', and we need to detect this.
3764 if depmode=$depmode \
3765 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3767 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3768 >/dev/null 2>conftest.err &&
3769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772 # icc doesn't choke on unknown options, it will just issue warnings
3773 # or remarks (even with -Werror). So we grep stderr for any message
3774 # that says an option was ignored or not supported.
3775 # When given -MP, icc 7.0 and 7.1 complain thusly:
3776 # icc: Command line warning: ignoring option '-M'; no argument required
3777 # The diagnosis changed in icc 8.0:
3778 # icc: Command line remark: option '-MP' not supported
3779 if (grep 'ignoring option' conftest.err ||
3780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781 am_cv_CC_dependencies_compiler_type=$depmode
3782 break
3785 done
3787 cd ..
3788 rm -rf conftest.dir
3789 else
3790 am_cv_CC_dependencies_compiler_type=none
3794 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_TRUE=
3804 am__fastdepCC_FALSE='#'
3805 else
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3820 CPP=
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849 Syntax error
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862 else
3863 ac_cpp_err=
3865 else
3866 ac_cpp_err=yes
3868 if test -z "$ac_cpp_err"; then
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Broken: fails on valid input.
3875 continue
3877 rm -f conftest.err conftest.$ac_ext
3879 # OK, works on sane cases. Now check whether non-existent headers
3880 # can be detected and how.
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900 else
3901 ac_cpp_err=
3903 else
3904 ac_cpp_err=yes
3906 if test -z "$ac_cpp_err"; then
3907 # Broken: success on invalid input.
3908 continue
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3917 rm -f conftest.err conftest.$ac_ext
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3923 break
3926 done
3927 ac_cv_prog_CPP=$CPP
3930 CPP=$ac_cv_prog_CPP
3931 else
3932 ac_cv_prog_CPP=$CPP
3934 echo "$as_me:$LINENO: result: $CPP" >&5
3935 echo "${ECHO_T}$CPP" >&6
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3969 else
3970 ac_cpp_err=
3972 else
3973 ac_cpp_err=yes
3975 if test -z "$ac_cpp_err"; then
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Broken: fails on valid input.
3982 continue
3984 rm -f conftest.err conftest.$ac_ext
3986 # OK, works on sane cases. Now check whether non-existent headers
3987 # can be detected and how.
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev/null; then
4004 if test -s conftest.err; then
4005 ac_cpp_err=$ac_c_preproc_warn_flag
4006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007 else
4008 ac_cpp_err=
4010 else
4011 ac_cpp_err=yes
4013 if test -z "$ac_cpp_err"; then
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 # Passes both tests.
4021 ac_preproc_ok=:
4022 break
4024 rm -f conftest.err conftest.$ac_ext
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4031 else
4032 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4033 See \`config.log' for more details." >&5
4034 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&2;}
4036 { (exit 1); exit 1; }; }
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test "$cross_compiling" = yes; then
4046 ac_build_prefix=
4047 test -n "$build_alias" && ac_build_prefix=$build_alias-
4050 # Even if we're cross-compiling, we want a compiler here
4051 # that is not a cross-compiler.
4052 saved_cross=$cross_compiling
4053 cross_compiling=no
4055 ac_ext=c
4056 ac_cpp='$CPP $BUILD_CPPFLAGS'
4057 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 if test -n "$ac_build_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062 set dummy ${ac_build_prefix}gcc; ac_word=$2
4063 echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4065 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$BUILD_CC"; then
4069 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4087 BUILD_CC=$ac_cv_prog_BUILD_CC
4088 if test -n "$BUILD_CC"; then
4089 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4090 echo "${ECHO_T}$BUILD_CC" >&6
4091 else
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4097 if test -z "$ac_cv_prog_BUILD_CC"; then
4098 ac_ct_BUILD_CC=$BUILD_CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$ac_ct_BUILD_CC"; then
4107 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4125 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4126 if test -n "$ac_ct_BUILD_CC"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4128 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 BUILD_CC=$ac_ct_BUILD_CC
4135 else
4136 BUILD_CC="$ac_cv_prog_BUILD_CC"
4139 if test -z "$BUILD_CC"; then
4140 if test -n "$ac_build_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4142 set dummy ${ac_build_prefix}cc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$BUILD_CC"; then
4149 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4167 BUILD_CC=$ac_cv_prog_BUILD_CC
4168 if test -n "$BUILD_CC"; then
4169 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4170 echo "${ECHO_T}$BUILD_CC" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4177 if test -z "$ac_cv_prog_BUILD_CC"; then
4178 ac_ct_BUILD_CC=$BUILD_CC
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test -n "$ac_ct_BUILD_CC"; then
4187 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_BUILD_CC="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4205 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4206 if test -n "$ac_ct_BUILD_CC"; then
4207 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4208 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4209 else
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4214 BUILD_CC=$ac_ct_BUILD_CC
4215 else
4216 BUILD_CC="$ac_cv_prog_BUILD_CC"
4220 if test -z "$BUILD_CC"; then
4221 # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$BUILD_CC"; then
4229 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4230 else
4231 ac_prog_rejected=no
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4240 ac_prog_rejected=yes
4241 continue
4243 ac_cv_prog_BUILD_CC="cc"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4250 if test $ac_prog_rejected = yes; then
4251 # We found a bogon in the path, so make sure we never use it.
4252 set dummy $ac_cv_prog_BUILD_CC
4253 shift
4254 if test $# != 0; then
4255 # We chose a different compiler from the bogus one.
4256 # However, it has the same basename, so the bogon will be chosen
4257 # first if we set BUILD_CC to just the basename; use the full file name.
4258 shift
4259 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4264 BUILD_CC=$ac_cv_prog_BUILD_CC
4265 if test -n "$BUILD_CC"; then
4266 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4267 echo "${ECHO_T}$BUILD_CC" >&6
4268 else
4269 echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4274 if test -z "$BUILD_CC"; then
4275 if test -n "$ac_build_prefix"; then
4276 for ac_prog in cl
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4304 BUILD_CC=$ac_cv_prog_BUILD_CC
4305 if test -n "$BUILD_CC"; then
4306 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4307 echo "${ECHO_T}$BUILD_CC" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4313 test -n "$BUILD_CC" && break
4314 done
4316 if test -z "$BUILD_CC"; then
4317 ac_ct_BUILD_CC=$BUILD_CC
4318 for ac_prog in cl
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -n "$ac_ct_BUILD_CC"; then
4328 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4346 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4347 if test -n "$ac_ct_BUILD_CC"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4349 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4350 else
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 test -n "$ac_ct_BUILD_CC" && break
4356 done
4358 BUILD_CC=$ac_ct_BUILD_CC
4364 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details." >&5
4366 echo "$as_me: error: no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Provide some information about the compiler.
4371 echo "$as_me:$LINENO:" \
4372 "checking for C compiler version" >&5
4373 ac_compiler=`set X $ac_compile; echo $2`
4374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4375 (eval $ac_compiler --version </dev/null >&5) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4380 (eval $ac_compiler -v </dev/null >&5) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4385 (eval $ac_compiler -V </dev/null >&5) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4398 main ()
4402 return 0;
4404 _ACEOF
4405 ac_clean_files_save=$ac_clean_files
4406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4407 # Try to create an executable without -o first, disregard a.out.
4408 # It will help us diagnose broken compilers, and finding out an intuition
4409 # of exeext.
4410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4414 (eval $ac_link_default) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; then
4418 # Find the output, starting from the most likely. This scheme is
4419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4420 # resort.
4422 # Be careful to initialize this variable, since it used to be cached.
4423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4424 ac_cv_build_exeext=
4425 # b.out is created by i960 compilers.
4426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4428 test -f "$ac_file" || continue
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4432 conftest.$ac_ext )
4433 # This is the source file.
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 # FIXME: I believe we export ac_cv_exeext for Libtool,
4442 # but it would be cool to find out if it's true. Does anybody
4443 # maintain Libtool? --akim.
4444 export ac_cv_build_exeext
4445 break;;
4447 break;;
4448 esac
4449 done
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&2;}
4458 { (exit 77); exit 77; }; }
4461 ac_build_exeext=$ac_cv_build_exeext
4462 echo "$as_me:$LINENO: result: $ac_file" >&5
4463 echo "${ECHO_T}$ac_file" >&6
4465 # Check the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472 if { ac_try='./$ac_file'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 cross_compiling=no
4479 else
4480 if test "$cross_compiling" = maybe; then
4481 cross_compiling=yes
4482 else
4483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6
4496 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4497 ac_clean_files=$ac_clean_files_save
4498 # Check the compiler produces executables we can run. If not, either
4499 # the compiler is broken, or we cross compile.
4500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6
4505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4514 # work properly (i.e., refer to `conftest.exe'), while it won't with
4515 # `rm'.
4516 for ac_file in conftest.exe conftest conftest.*; do
4517 test -f "$ac_file" || continue
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4520 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4521 export ac_cv_build_exeext
4522 break;;
4523 * ) break;;
4524 esac
4525 done
4526 else
4527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4530 See \`config.log' for more details." >&2;}
4531 { (exit 1); exit 1; }; }
4534 rm -f conftest$ac_cv_build_exeext
4535 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4536 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4538 rm -f conftest.$ac_ext
4539 BUILD_EXEEXT=$ac_cv_build_exeext
4540 ac_build_exeext=$BUILD_EXEEXT
4543 # Restore configuration environment
4544 cross_compiling=$saved_cross
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 else
4553 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4556 CFLAGS="$mule_backup_CFLAGS"
4557 CXXFLAGS="$mule_backup_CXXFLAGS"
4558 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4559 for ac_prog in gawk mawk nawk awk
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_AWK+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$AWK"; then
4569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_AWK="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4587 AWK=$ac_cv_prog_AWK
4588 if test -n "$AWK"; then
4589 echo "$as_me:$LINENO: result: $AWK" >&5
4590 echo "${ECHO_T}$AWK" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$AWK" && break
4597 done
4599 echo "$as_me:$LINENO: checking for egrep" >&5
4600 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4601 if test "${ac_cv_prog_egrep+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4605 then ac_cv_prog_egrep='grep -E'
4606 else ac_cv_prog_egrep='egrep'
4609 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4610 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4611 EGREP=$ac_cv_prog_egrep
4614 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4616 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4617 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.make <<\_ACEOF
4621 all:
4622 @echo 'ac_maketemp="$(MAKE)"'
4623 _ACEOF
4624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4625 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4626 if test -n "$ac_maketemp"; then
4627 eval ac_cv_prog_make_${ac_make}_set=yes
4628 else
4629 eval ac_cv_prog_make_${ac_make}_set=no
4631 rm -f conftest.make
4633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636 SET_MAKE=
4637 else
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 SET_MAKE="MAKE=${MAKE-make}"
4644 for ac_prog in flex lex
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_LEX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 if test -n "$LEX"; then
4654 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_LEX="$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4672 LEX=$ac_cv_prog_LEX
4673 if test -n "$LEX"; then
4674 echo "$as_me:$LINENO: result: $LEX" >&5
4675 echo "${ECHO_T}$LEX" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4681 test -n "$LEX" && break
4682 done
4683 test -n "$LEX" || LEX=":"
4685 if test -z "$LEXLIB"
4686 then
4687 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4688 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4689 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 ac_check_lib_save_LIBS=$LIBS
4693 LIBS="-lfl $LIBS"
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 #ifdef __cplusplus
4703 extern "C"
4704 #endif
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707 char yywrap ();
4709 main ()
4711 yywrap ();
4713 return 0;
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718 (eval $ac_link) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_fl_yywrap=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_cv_lib_fl_yywrap=no
4745 rm -f conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
4747 LIBS=$ac_check_lib_save_LIBS
4749 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4750 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4751 if test $ac_cv_lib_fl_yywrap = yes; then
4752 LEXLIB="-lfl"
4753 else
4754 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4755 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4756 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759 ac_check_lib_save_LIBS=$LIBS
4760 LIBS="-ll $LIBS"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 #ifdef __cplusplus
4770 extern "C"
4771 #endif
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4774 char yywrap ();
4776 main ()
4778 yywrap ();
4780 return 0;
4782 _ACEOF
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785 (eval $ac_link) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest$ac_exeext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_lib_l_yywrap=yes
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 ac_cv_lib_l_yywrap=no
4812 rm -f conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4817 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4818 if test $ac_cv_lib_l_yywrap = yes; then
4819 LEXLIB="-ll"
4826 if test "x$LEX" != "x:"; then
4827 echo "$as_me:$LINENO: checking lex output file root" >&5
4828 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4829 if test "${ac_cv_prog_lex_root+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 # The minimal lex program is just a single line: %%. But some broken lexes
4833 # (Solaris, I think it was) want two %% lines, so accommodate them.
4834 cat >conftest.l <<_ACEOF
4837 _ACEOF
4838 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4839 (eval $LEX conftest.l) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }
4843 if test -f lex.yy.c; then
4844 ac_cv_prog_lex_root=lex.yy
4845 elif test -f lexyy.c; then
4846 ac_cv_prog_lex_root=lexyy
4847 else
4848 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4849 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4850 { (exit 1); exit 1; }; }
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4854 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4855 rm -f conftest.l
4856 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4858 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4859 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4860 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 # POSIX says lex can declare yytext either as a pointer or an array; the
4864 # default is implementation-dependent. Figure out which it is, since
4865 # not all implementations provide the %pointer and %array declarations.
4866 ac_cv_prog_lex_yytext_pointer=no
4867 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4868 ac_save_LIBS=$LIBS
4869 LIBS="$LIBS $LEXLIB"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 `cat $LEX_OUTPUT_ROOT.c`
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_prog_lex_yytext_pointer=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -f conftest.err conftest.$ac_objext \
4902 conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_save_LIBS
4904 rm -f "${LEX_OUTPUT_ROOT}.c"
4907 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4908 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4909 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define YYTEXT_POINTER 1
4913 _ACEOF
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4924 # AIX /bin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943 case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4955 if test $ac_prog = install &&
4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4963 else
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4968 done
4969 done
4971 esac
4972 done
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL=$ac_cv_path_install
4978 else
4979 # As a last resort, use the slow shell script. We don't cache a
4980 # path for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the path is relative.
4983 INSTALL=$ac_install_sh
4986 echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB=$ac_ct_RANLIB
5073 else
5074 RANLIB="$ac_cv_prog_RANLIB"
5077 for ac_prog in 'bison -y' byacc
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_YACC+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test -n "$YACC"; then
5087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_YACC="$ac_prog"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5105 YACC=$ac_cv_prog_YACC
5106 if test -n "$YACC"; then
5107 echo "$as_me:$LINENO: result: $YACC" >&5
5108 echo "${ECHO_T}$YACC" >&6
5109 else
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 test -n "$YACC" && break
5115 done
5116 test -n "$YACC" || YACC="yacc"
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_RANLIB+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$RANLIB"; then
5128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5146 RANLIB=$ac_cv_prog_RANLIB
5147 if test -n "$RANLIB"; then
5148 echo "$as_me:$LINENO: result: $RANLIB" >&5
5149 echo "${ECHO_T}$RANLIB" >&6
5150 else
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5156 if test -z "$ac_cv_prog_RANLIB"; then
5157 ac_ct_RANLIB=$RANLIB
5158 # Extract the first word of "ranlib", so it can be a program name with args.
5159 set dummy ranlib; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$ac_ct_RANLIB"; then
5166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_RANLIB="ranlib"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB=$ac_ct_RANLIB
5194 else
5195 RANLIB="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}strip; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5225 STRIP=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5236 ac_ct_STRIP=$STRIP
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5264 if test -n "$ac_ct_STRIP"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5266 echo "${ECHO_T}$ac_ct_STRIP" >&6
5267 else
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 STRIP=$ac_ct_STRIP
5273 else
5274 STRIP="$ac_cv_prog_STRIP"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}ar; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_AR+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if test -n "$AR"; then
5286 ac_cv_prog_AR="$AR" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_AR="${ac_tool_prefix}ar"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5304 AR=$ac_cv_prog_AR
5305 if test -n "$AR"; then
5306 echo "$as_me:$LINENO: result: $AR" >&5
5307 echo "${ECHO_T}$AR" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_AR"; then
5315 ac_ct_AR=$AR
5316 # Extract the first word of "ar", so it can be a program name with args.
5317 set dummy ar; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$ac_ct_AR"; then
5324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_AR="ar"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5342 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5343 if test -n "$ac_ct_AR"; then
5344 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5345 echo "${ECHO_T}$ac_ct_AR" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 AR=$ac_ct_AR
5352 else
5353 AR="$ac_cv_prog_AR"
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ld; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_LD+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$LD"; then
5365 ac_cv_prog_LD="$LD" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_LD="${ac_tool_prefix}ld"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5383 LD=$ac_cv_prog_LD
5384 if test -n "$LD"; then
5385 echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5393 if test -z "$ac_cv_prog_LD"; then
5394 ac_ct_LD=$LD
5395 # Extract the first word of "ld", so it can be a program name with args.
5396 set dummy ld; ac_word=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 if test -n "$ac_ct_LD"; then
5403 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_ac_ct_LD="ld"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5421 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5422 if test -n "$ac_ct_LD"; then
5423 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5424 echo "${ECHO_T}$ac_ct_LD" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5430 LD=$ac_ct_LD
5431 else
5432 LD="$ac_cv_prog_LD"
5436 # Check whether --enable-monolithic or --disable-monolithic was given.
5437 if test "${enable_monolithic+set}" = set; then
5438 enableval="$enable_monolithic"
5439 MONOLITHIC=$enableval
5440 else
5441 MONOLITHIC=yes
5444 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5445 if test "${enable_amule_daemon+set}" = set; then
5446 enableval="$enable_amule_daemon"
5447 AMULE_DAEMON=$enableval
5448 else
5449 AMULE_DAEMON=no
5452 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5453 if test "${enable_amulecmd+set}" = set; then
5454 enableval="$enable_amulecmd"
5455 AMULECMD=$enableval
5456 else
5457 AMULECMD=no
5460 # Check whether --enable-webserver or --disable-webserver was given.
5461 if test "${enable_webserver+set}" = set; then
5462 enableval="$enable_webserver"
5463 WEB=$enableval
5464 else
5465 WEB=no
5468 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5469 if test "${enable_amule_gui+set}" = set; then
5470 enableval="$enable_amule_gui"
5471 AMULE_GUI=$enableval
5472 else
5473 AMULE_GUI=no
5476 # Check whether --enable-cas or --disable-cas was given.
5477 if test "${enable_cas+set}" = set; then
5478 enableval="$enable_cas"
5479 CAS=$enableval
5480 else
5481 CAS=no
5484 # Check whether --enable-wxcas or --disable-wxcas was given.
5485 if test "${enable_wxcas+set}" = set; then
5486 enableval="$enable_wxcas"
5487 WXCAS=$enableval
5488 else
5489 WXCAS=no
5492 # Check whether --enable-ed2k or --disable-ed2k was given.
5493 if test "${enable_ed2k+set}" = set; then
5494 enableval="$enable_ed2k"
5495 ED2K=$enableval
5496 else
5497 ED2K=yes
5500 # Check whether --enable-alc or --disable-alc was given.
5501 if test "${enable_alc+set}" = set; then
5502 enableval="$enable_alc"
5503 ALC=$enableval
5504 else
5505 ALC=no
5508 # Check whether --enable-alcc or --disable-alcc was given.
5509 if test "${enable_alcc+set}" = set; then
5510 enableval="$enable_alcc"
5511 ALCC=$enableval
5512 else
5513 ALCC=no
5516 # Check whether --enable-monolithic or --disable-monolithic was given.
5517 if test "${enable_monolithic+set}" = set; then
5518 enableval="$enable_monolithic"
5519 MONOLITHIC=$enableval
5520 else
5521 MONOLITHIC=yes
5524 # Check whether --enable-upnp or --disable-upnp was given.
5525 if test "${enable_upnp+set}" = set; then
5526 enableval="$enable_upnp"
5527 ENABLE_UPNP=$enableval
5528 else
5529 ENABLE_UPNP=yes
5532 # Check whether --enable-xas or --disable-xas was given.
5533 if test "${enable_xas+set}" = set; then
5534 enableval="$enable_xas"
5535 XAS=$enableval
5536 else
5537 XAS=no
5540 # Default is yes, because they're most likely compatible.
5541 # However, this is only used when cross-compiling.
5543 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5544 if test "${with_gnu_malloc+set}" = set; then
5545 withval="$with_gnu_malloc"
5546 gnumalloc=$withval
5547 else
5548 gnumalloc=yes
5552 # Checking for libs before all other stuff to break
5553 # configure as soon as possible in case of a missing one
5554 # to avoid losing too much time
5556 # Check for zlib
5559 # Check whether --with-zlib or --without-zlib was given.
5560 if test "${with_zlib+set}" = set; then
5561 withval="$with_zlib"
5565 case "${with_zlib:-yes}" in
5567 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5568 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5569 { (exit 1); exit 1; }; }
5571 yes | sys)
5574 zlib_prefix="$with_zlib"
5575 esac
5577 mule_backup_CPPFLAGS="$CPPFLAGS"
5578 mule_backup_LDFLAGS="$LDFLAGS"
5579 mule_backup_LIBS="$LIBS"
5580 if test -n "$zlib_prefix"; then
5582 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5583 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5584 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5585 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5587 else
5589 ZLIB_CPPFLAGS=
5590 ZLIB_LDFLAGS=
5594 ZLIB_LIBS="-lz"
5595 LIBS="$ZLIB_LIBS $LIBS"
5597 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5598 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5599 if test "$cross_compiling" = yes; then
5601 result=no
5602 z_version=
5603 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5611 #include <zlib.h>
5612 #include <stdio.h>
5615 main ()
5618 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5619 zlibVersion();
5622 return 0;
5625 _ACEOF
5626 rm -f conftest.$ac_objext conftest$ac_exeext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest$ac_exeext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5649 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5650 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5651 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5652 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5653 if test "$cross_zver_max" -gt "1"; then
5654 result=yes
5655 elif test "$cross_zver_max" -eq "1"; then
5657 if test "$cross_zver_mid" -gt "1"; then
5658 result=yes
5659 elif test "$cross_zver_mid" -eq "1"; then
5660 if test "$cross_zver_min" -ge "4"; then
5661 result=yes
5669 if test ${result:-no} = yes; then
5670 z_version=" (version $ZLIB_VERSION)"
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 rm -f conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $result$z_version" >&5
5682 echo "${ECHO_T}$result$z_version" >&6
5684 else
5685 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5693 #include <zlib.h>
5694 #include <stdio.h>
5697 main ()
5699 char *zver = zlibVersion();
5700 FILE *f=fopen("conftestval", "w");
5701 if (!f) return 1;
5702 fprintf(f, "%s",
5703 zver[0] > '1' ||
5704 (zver[0] == '1' &&
5705 (zver[2] > '1' ||
5706 (zver[2] == '1' &&
5707 zver[4] >= '4'))) ? "yes" : "no");
5708 fclose(f);
5709 f=fopen("conftestver", "w");
5710 if (f) {
5711 fprintf(f, "%s", ZLIB_VERSION);
5712 fclose(f);
5716 return 0;
5719 _ACEOF
5720 rm -f conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5732 if test -f conftestval; then
5733 result=`cat conftestval`
5734 else
5735 result=no
5738 if test ${result:-no} = yes; then
5740 if test -f conftestver; then
5742 ZLIB_VERSION=`cat conftestver`
5743 z_version=" (version $ZLIB_VERSION)"
5745 else
5746 z_version=
5752 echo "$as_me:$LINENO: result: $result$z_version" >&5
5753 echo "${ECHO_T}$result$z_version" >&6
5755 else
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ( exit $ac_status )
5762 result=no
5763 echo "$as_me:$LINENO: result: $result" >&5
5764 echo "${ECHO_T}$result" >&6
5767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770 CPPFLAGS="$mule_backup_CPPFLAGS"
5771 LDFLAGS="$mule_backup_LDFLAGS"
5772 LIBS="$mule_backup_LIBS"
5774 if test ${result:-no} = no; then
5776 ZLIB_CPPFLAGS=
5777 ZLIB_LDFLAGS=
5778 ZLIB_LIBS=
5779 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5780 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5781 { (exit 1); exit 1; }; }
5788 if test x$CAS = xyes; then
5790 # Check for gd
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <stdlib.h>
5804 #include <stdarg.h>
5805 #include <string.h>
5806 #include <float.h>
5809 main ()
5813 return 0;
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_header_stdc=yes
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 ac_cv_header_stdc=no
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <string.h>
5857 _ACEOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 $EGREP "memchr" >/dev/null 2>&1; then
5861 else
5862 ac_cv_header_stdc=no
5864 rm -f conftest*
5868 if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <stdlib.h>
5878 _ACEOF
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 $EGREP "free" >/dev/null 2>&1; then
5882 else
5883 ac_cv_header_stdc=no
5885 rm -f conftest*
5889 if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <ctype.h>
5901 #if ((' ' & 0x0FF) == 0x020)
5902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5904 #else
5905 # define ISLOWER(c) \
5906 (('a' <= (c) && (c) <= 'i') \
5907 || ('j' <= (c) && (c) <= 'r') \
5908 || ('s' <= (c) && (c) <= 'z'))
5909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5910 #endif
5912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914 main ()
5916 int i;
5917 for (i = 0; i < 256; i++)
5918 if (XOR (islower (i), ISLOWER (i))
5919 || toupper (i) != TOUPPER (i))
5920 exit(2);
5921 exit (0);
5923 _ACEOF
5924 rm -f conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5936 else
5937 echo "$as_me: program exited with status $ac_status" >&5
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ( exit $ac_status )
5942 ac_cv_header_stdc=no
5944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950 if test $ac_cv_header_stdc = yes; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define STDC_HEADERS 1
5954 _ACEOF
5958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5969 inttypes.h stdint.h unistd.h
5971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 #include <$ac_header>
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_Header=yes"
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 eval "$as_ac_Header=no"
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 _ACEOF
6027 done
6032 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6033 if test "${with_gdlib_prefix+set}" = set; then
6034 withval="$with_gdlib_prefix"
6038 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6039 if test "${with_gdlib_config+set}" = set; then
6040 withval="$with_gdlib_config"
6044 GDLIB_VERSION=
6046 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6047 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6048 GDLIB_CONFIG_NAME=gdlib-config
6051 if test -n "$with_gdlib_config"; then
6052 GDLIB_CONFIG_NAME="$with_gdlib_config"
6056 # deal with optional prefix
6057 if test -n "$with_gdlib_prefix"; then
6058 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6062 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6063 if test -x "$GDLIB_CONFIG_NAME"; then
6065 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6066 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6067 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6068 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6069 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6071 else
6072 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6073 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 case $GDLIB_CONFIG_PATH in
6080 [\\/]* | ?:[\\/]*)
6081 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6086 for as_dir in $as_dummy
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6099 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6101 esac
6103 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6105 if test -n "$GDLIB_CONFIG_PATH"; then
6106 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6107 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6108 else
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6116 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6118 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6119 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6120 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6122 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6123 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6124 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6125 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6127 gdlib_ver_ok=
6128 if test $gdlib_config_major_version -gt 2; then
6129 gdlib_ver_ok=yes
6130 elif test $gdlib_config_major_version -eq 2; then
6132 if test $gdlib_config_minor_version -gt 0; then
6133 gdlib_ver_ok=yes
6134 elif test $gdlib_config_minor_version -eq 0; then
6135 if test $gdlib_config_micro_version -ge 0; then
6136 gdlib_ver_ok=yes
6145 if test -z "$gdlib_ver_ok"; then
6147 if test -z "$GDLIB_VERSION"; then
6148 echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6150 else
6152 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6153 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6154 GDLIB_VERSION=
6159 else
6161 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6162 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6163 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6164 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6165 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6166 mule_backup_CFLAGS="$CFLAGS"
6167 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6168 if test "${ac_cv_header_gd_h+set}" = set; then
6169 echo "$as_me:$LINENO: checking for gd.h" >&5
6170 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6171 if test "${ac_cv_header_gd_h+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6176 else
6177 # Is the header compilable?
6178 echo "$as_me:$LINENO: checking gd.h usability" >&5
6179 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 #include <gd.h>
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_header_compiler=yes
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_header_compiler=no
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 echo "${ECHO_T}$ac_header_compiler" >&6
6222 # Is the header present?
6223 echo "$as_me:$LINENO: checking gd.h presence" >&5
6224 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <gd.h>
6232 _ACEOF
6233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } >/dev/null; then
6241 if test -s conftest.err; then
6242 ac_cpp_err=$ac_c_preproc_warn_flag
6243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6244 else
6245 ac_cpp_err=
6247 else
6248 ac_cpp_err=yes
6250 if test -z "$ac_cpp_err"; then
6251 ac_header_preproc=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_header_preproc=no
6258 rm -f conftest.err conftest.$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264 yes:no: )
6265 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc=yes
6271 no:yes:* )
6272 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6285 cat <<\_ASBOX
6286 ## ------------------------------ ##
6287 ## Report this to admin@amule.org ##
6288 ## ------------------------------ ##
6289 _ASBOX
6291 sed "s/^/$as_me: WARNING: /" >&2
6293 esac
6294 echo "$as_me:$LINENO: checking for gd.h" >&5
6295 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6296 if test "${ac_cv_header_gd_h+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 ac_cv_header_gd_h=$ac_header_preproc
6301 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6302 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6305 if test $ac_cv_header_gd_h = yes; then
6307 else
6308 GDLIB_VERSION=
6312 CFLAGS="$mule_backup_CFLAGS"
6320 if test -n "$GDLIB_VERSION"; then
6322 CAS_DEFS="-D__GD__"
6323 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6325 else
6326 CAS_DEFS=
6332 if test -z "$CAS_DEFS"; then
6333 { echo "$as_me:$LINENO: WARNING:
6334 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6335 Please check that gdlib-config is in your default path, check out
6336 LD_LIBRARY_PATH or equivalent variable.
6337 Or this might also be that your gdlib-config has other name.
6338 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6339 (replace /usr/bin/gdlib-config with a valid path to your
6340 gdlib-config).
6341 If you use compiled packages check if you have devel pack installed.
6342 To download the latest version check http://www.boutell.com/gd for
6343 sources." >&5
6344 echo "$as_me: WARNING:
6345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6346 Please check that gdlib-config is in your default path, check out
6347 LD_LIBRARY_PATH or equivalent variable.
6348 Or this might also be that your gdlib-config has other name.
6349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6350 (replace /usr/bin/gdlib-config with a valid path to your
6351 gdlib-config).
6352 If you use compiled packages check if you have devel pack installed.
6353 To download the latest version check http://www.boutell.com/gd for
6354 sources." >&2;}
6355 _mule_warning_0=yes
6356 _mule_has_warnings=yes
6361 else
6362 GDLIB_VERSION="not_needed"
6367 if test x$WEB = xyes; then
6370 for ac_header in sys/types.h
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 else
6382 # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 #include <$ac_header>
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_header_compiler=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_compiler=no
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6437 _ACEOF
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
6448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6449 else
6450 ac_cpp_err=
6452 else
6453 ac_cpp_err=yes
6455 if test -z "$ac_cpp_err"; then
6456 ac_header_preproc=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_header_preproc=no
6463 rm -f conftest.err conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6476 no:yes:* )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 cat <<\_ASBOX
6491 ## ------------------------------ ##
6492 ## Report this to admin@amule.org ##
6493 ## ------------------------------ ##
6494 _ASBOX
6496 sed "s/^/$as_me: WARNING: /" >&2
6498 esac
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6517 done
6519 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6520 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6521 regex_found=no
6522 for REGEX_LIBS in '' -lgnurx -lregex; do
6523 mule_backup_LIBS="$LIBS"
6524 LIBS="$REGEX_LIBS $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 #ifdef HAVE_SYS_TYPES_H
6534 # include <sys/types.h>
6535 #endif
6536 #include <regex.h>
6539 main ()
6542 regex_t preg;
6543 regcomp(&preg, "", REG_EXTENDED);
6544 regmatch_t *pmatch;
6545 regexec(&preg, "", 0, pmatch, 0);
6546 regfree(&preg);
6549 return 0;
6552 _ACEOF
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6576 LIBS="$mule_backup_LIBS"
6577 regex_found=yes
6578 break;
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 LIBS="$mule_backup_LIBS"
6586 rm -f conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 done
6589 echo "$as_me:$LINENO: result: $regex_found" >&5
6590 echo "${ECHO_T}$regex_found" >&6
6591 if test $regex_found = yes; then
6593 else
6595 WEB=disabled
6596 { echo "$as_me:$LINENO: WARNING:
6597 amuleweb has been disabled because configure could not find a POSIX
6598 compliant regex library." >&5
6599 echo "$as_me: WARNING:
6600 amuleweb has been disabled because configure could not find a POSIX
6601 compliant regex library." >&2;}
6602 _mule_warning_1=yes
6603 _mule_has_warnings=yes
6612 if test x$WEB = xyes; then
6615 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6616 if test "${with_libpng_prefix+set}" = set; then
6617 withval="$with_libpng_prefix"
6621 # Check whether --with-libpng-config or --without-libpng-config was given.
6622 if test "${with_libpng_config+set}" = set; then
6623 withval="$with_libpng_config"
6627 LIBPNG_VERSION=
6629 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6630 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6631 LIBPNG_CONFIG_NAME=libpng-config
6634 if test -n "$with_libpng_config"; then
6635 LIBPNG_CONFIG_NAME="$with_libpng_config"
6639 # deal with optional prefix
6640 if test -n "$with_libpng_prefix"; then
6641 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6645 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6646 if test -x "$LIBPNG_CONFIG_NAME"; then
6648 echo "$as_me:$LINENO: checking for libpng-config" >&5
6649 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6650 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6651 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6652 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6654 else
6655 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6656 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 case $LIBPNG_CONFIG_PATH in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6669 for as_dir in $as_dummy
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6679 done
6680 done
6682 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6684 esac
6686 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6688 if test -n "$LIBPNG_CONFIG_PATH"; then
6689 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6690 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6691 else
6692 echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6
6699 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6701 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6702 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6704 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6706 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6707 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6708 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6709 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6711 libpng_ver_ok=
6712 if test $libpng_config_major_version -gt 1; then
6713 libpng_ver_ok=yes
6714 elif test $libpng_config_major_version -eq 1; then
6716 if test $libpng_config_minor_version -gt 2; then
6717 libpng_ver_ok=yes
6718 elif test $libpng_config_minor_version -eq 2; then
6719 if test $libpng_config_micro_version -ge 0; then
6720 libpng_ver_ok=yes
6729 if test -z "$libpng_ver_ok"; then
6731 if test -z "$LIBPNG_VERSION"; then
6732 echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6734 else
6736 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6737 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6738 LIBPNG_VERSION=
6743 else
6745 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6746 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6747 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6748 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6749 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6757 if test -n "$LIBPNG_VERSION"; then
6758 AMULEWEB_DEFS="-DWITH_LIBPNG"
6759 else
6761 { echo "$as_me:$LINENO: WARNING:
6762 libpng >= 1.2.0 not found.
6763 amuleweb will be compiled but file download progress bar images will
6764 NOT be generated." >&5
6765 echo "$as_me: WARNING:
6766 libpng >= 1.2.0 not found.
6767 amuleweb will be compiled but file download progress bar images will
6768 NOT be generated." >&2;}
6769 _mule_warning_2=yes
6770 _mule_has_warnings=yes
6779 else
6780 LIBPNG_VERSION="not_needed"
6785 # Check for perl File::Copy
6786 echo "$as_me:$LINENO: checking for File::Copy" >&5
6787 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6788 if perl -e "require File::Copy" 2>/dev/null; then
6789 echo "$as_me:$LINENO: result: ok" >&5
6790 echo "${ECHO_T}ok" >&6
6791 else
6792 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6793 echo "$as_me: error: File::Copy perl module is required" >&2;}
6794 { (exit 1); exit 1; }; }
6799 # Check if we need the GUI
6800 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6801 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6802 if test x$MONOLITHIC = xyes; then
6803 need_gui=yes
6806 if test x$WXCAS = xyes; then
6807 need_gui=yes
6810 if test x$ALC = xyes; then
6811 need_gui=yes
6814 if test x$AMULE_GUI = xyes; then
6815 need_gui=yes
6818 if test x${need_gui:+set} != xset; then
6819 need_gui=no
6822 echo "$as_me:$LINENO: result: $need_gui" >&5
6823 echo "${ECHO_T}$need_gui" >&6
6825 # Check if we need to install skins
6826 if test x$MONOLITHIC = xyes; then
6827 INSTALL_SKINS=yes
6830 if test x$AMULE_GUI = xyes; then
6831 INSTALL_SKINS=yes
6834 if test x${INSTALL_SKINS:+set} != xset; then
6835 INSTALL_SKINS=no
6839 # Check for GeoIP (required for IP2Country capability)
6841 # Check whether --enable-geoip or --disable-geoip was given.
6842 if test "${enable_geoip+set}" = set; then
6843 enableval="$enable_geoip"
6844 ENABLE_IP2COUNTRY=$enableval
6845 else
6846 ENABLE_IP2COUNTRY=no
6849 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6852 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6853 if test "${with_geoip_headers+set}" = set; then
6854 withval="$with_geoip_headers"
6855 GEOIP_CPPFLAGS="-I$withval"
6858 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6859 if test "${with_geoip_lib+set}" = set; then
6860 withval="$with_geoip_lib"
6861 GEOIP_LDFLAGS="-L$withval"
6864 mule_backup_CPPFLAGS="$CPPFLAGS"
6865 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6866 mule_backup_LDFLAGS="$LDFLAGS"
6867 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6868 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6869 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6870 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6871 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6875 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6876 else
6877 # Is the header compilable?
6878 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6879 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6887 #include <GeoIP.h>
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_header_compiler=yes
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_header_compiler=no
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6920 echo "${ECHO_T}$ac_header_compiler" >&6
6922 # Is the header present?
6923 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6924 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6925 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. */
6931 #include <GeoIP.h>
6932 _ACEOF
6933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null; then
6941 if test -s conftest.err; then
6942 ac_cpp_err=$ac_c_preproc_warn_flag
6943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6944 else
6945 ac_cpp_err=
6947 else
6948 ac_cpp_err=yes
6950 if test -z "$ac_cpp_err"; then
6951 ac_header_preproc=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_header_preproc=no
6958 rm -f conftest.err conftest.$ac_ext
6959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6960 echo "${ECHO_T}$ac_header_preproc" >&6
6962 # So? What about this header?
6963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6964 yes:no: )
6965 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6966 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6968 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6969 ac_header_preproc=yes
6971 no:yes:* )
6972 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6973 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6975 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6977 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6979 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6981 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6983 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6985 cat <<\_ASBOX
6986 ## ------------------------------ ##
6987 ## Report this to admin@amule.org ##
6988 ## ------------------------------ ##
6989 _ASBOX
6991 sed "s/^/$as_me: WARNING: /" >&2
6993 esac
6994 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6995 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6996 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 ac_cv_header_GeoIP_h=$ac_header_preproc
7001 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7002 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7005 if test $ac_cv_header_GeoIP_h = yes; then
7007 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7008 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7009 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lGeoIP $LIBS"
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 #ifdef __cplusplus
7023 extern "C"
7024 #endif
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7027 char GeoIP_open ();
7029 main ()
7031 GeoIP_open ();
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_lib_GeoIP_GeoIP_open=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_lib_GeoIP_GeoIP_open=no
7065 rm -f conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067 LIBS=$ac_check_lib_save_LIBS
7069 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7070 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7071 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7074 cat >>confdefs.h <<\_ACEOF
7075 #define SUPPORT_GEOIP 1
7076 _ACEOF
7078 GEOIP_LIBS="-lGeoIP"
7079 if test x$SYS = xwin32; then
7080 GEOIP_LIBS="$GEOIP_LIBS -lwsock32"
7083 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7085 # Check whether --with-geoip-static or --without-geoip-static was given.
7086 if test "${with_geoip_static+set}" = set; then
7087 withval="$with_geoip_static"
7089 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7091 mule_backup_LIBS="$LIBS"
7092 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7093 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7101 #include <GeoIP.h>
7104 main ()
7107 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7110 return 0;
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7137 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7144 { echo "$as_me:$LINENO: WARNING:
7145 Cannot link GeoIP statically, because your linker ($LD) does not
7146 support it." >&5
7147 echo "$as_me: WARNING:
7148 Cannot link GeoIP statically, because your linker ($LD) does not
7149 support it." >&2;}
7150 _mule_warning_3=yes
7151 _mule_has_warnings=yes
7155 rm -f conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7157 LIBS="$mule_backup_LIBS"
7164 else
7166 ENABLE_IP2COUNTRY=disabled
7167 { echo "$as_me:$LINENO: WARNING:
7168 GeoIP support has been disabled because the GeoIP libraries were not
7169 found" >&5
7170 echo "$as_me: WARNING:
7171 GeoIP support has been disabled because the GeoIP libraries were not
7172 found" >&2;}
7173 _mule_warning_4=yes
7174 _mule_has_warnings=yes
7180 else
7182 ENABLE_IP2COUNTRY=disabled
7183 { echo "$as_me:$LINENO: WARNING:
7184 GeoIP support has been disabled because the GeoIP header files were
7185 not found" >&5
7186 echo "$as_me: WARNING:
7187 GeoIP support has been disabled because the GeoIP header files were
7188 not found" >&2;}
7189 _mule_warning_5=yes
7190 _mule_has_warnings=yes
7197 CPPFLAGS="$mule_backup_CPPFLAGS"
7198 LDFLAGS="$mule_backup_LDFLAGS"
7204 # Check for wx
7207 # Check whether --with-wxdir or --without-wxdir was given.
7208 if test "${with_wxdir+set}" = set; then
7209 withval="$with_wxdir"
7210 wx_config_name="$withval/wx-config"
7211 wx_config_args="--inplace"
7214 # Check whether --with-wx-config or --without-wx-config was given.
7215 if test "${with_wx_config+set}" = set; then
7216 withval="$with_wx_config"
7217 wx_config_name="$withval"
7220 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7221 if test "${with_wx_prefix+set}" = set; then
7222 withval="$with_wx_prefix"
7223 wx_config_prefix="$withval"
7224 else
7225 wx_config_prefix=""
7228 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7229 if test "${with_wx_exec_prefix+set}" = set; then
7230 withval="$with_wx_exec_prefix"
7231 wx_config_exec_prefix="$withval"
7232 else
7233 wx_config_exec_prefix=""
7247 # Check whether --with-toolkit or --without-toolkit was given.
7248 if test "${with_toolkit+set}" = set; then
7249 withval="$with_toolkit"
7251 else
7252 withval="auto"
7255 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7256 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7257 if test "$withval" = "auto" ; then
7258 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7259 echo "${ECHO_T}will be automatically detected" >&6
7260 TOOLKIT="auto"
7261 else
7262 TOOLKIT="$withval"
7264 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7265 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7266 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7267 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7268 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7269 { { echo "$as_me:$LINENO: error:
7270 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7271 " >&5
7272 echo "$as_me: error:
7273 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7274 " >&2;}
7275 { (exit 1); exit 1; }; }
7278 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7279 echo "${ECHO_T}$TOOLKIT" >&6
7286 # Check whether --with-wxshared or --without-wxshared was given.
7287 if test "${with_wxshared+set}" = set; then
7288 withval="$with_wxshared"
7290 else
7291 withval="auto"
7294 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7295 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7296 if test "$withval" = "yes" ; then
7297 echo "$as_me:$LINENO: result: yes" >&5
7298 echo "${ECHO_T}yes" >&6
7299 WX_SHARED=1
7301 elif test "1" = "1" -a "$withval" = "no" ; then
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 WX_SHARED=0
7305 elif test "$withval" = "auto" ; then
7306 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7307 echo "${ECHO_T}will be automatically detected" >&6
7308 WX_SHARED="auto"
7309 else
7310 { { echo "$as_me:$LINENO: error:
7311 Unrecognized option value (allowed values: yes, auto)
7312 " >&5
7313 echo "$as_me: error:
7314 Unrecognized option value (allowed values: yes, auto)
7315 " >&2;}
7316 { (exit 1); exit 1; }; }
7323 # Check whether --with-wxdebug or --without-wxdebug was given.
7324 if test "${with_wxdebug+set}" = set; then
7325 withval="$with_wxdebug"
7327 else
7328 withval="auto"
7331 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7332 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7333 if test "$withval" = "yes" ; then
7334 echo "$as_me:$LINENO: result: yes" >&5
7335 echo "${ECHO_T}yes" >&6
7336 WX_DEBUG=1
7338 elif test "1" = "1" -a "$withval" = "no" ; then
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 WX_DEBUG=0
7342 elif test "$withval" = "auto" ; then
7343 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7344 echo "${ECHO_T}will be automatically detected" >&6
7345 WX_DEBUG="auto"
7346 else
7347 { { echo "$as_me:$LINENO: error:
7348 Unrecognized option value (allowed values: yes, auto)
7349 " >&5
7350 echo "$as_me: error:
7351 Unrecognized option value (allowed values: yes, auto)
7352 " >&2;}
7353 { (exit 1); exit 1; }; }
7360 # Check whether --with-wxversion or --without-wxversion was given.
7361 if test "${with_wxversion+set}" = set; then
7362 withval="$with_wxversion"
7364 else
7365 withval="auto"
7368 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7369 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7370 if test "$withval" = "auto" ; then
7371 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7372 echo "${ECHO_T}will be automatically detected" >&6
7373 WX_VERSION="auto"
7374 else
7376 wx_requested_major_version=`echo $withval | \
7377 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7378 wx_requested_minor_version=`echo $withval | \
7379 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7381 if test "${#wx_requested_major_version}" != "1" -o \
7382 "${#wx_requested_minor_version}" != "1" ; then
7383 { { echo "$as_me:$LINENO: error:
7384 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7385 " >&5
7386 echo "$as_me: error:
7387 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7388 " >&2;}
7389 { (exit 1); exit 1; }; }
7392 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7393 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7394 echo "${ECHO_T}$WX_VERSION" >&6
7398 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7399 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7400 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7401 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7402 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7403 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7406 # Force using a static wxWidgets library if the executable is to be linked statically.
7407 if test ${enable_static:-no} = yes; then
7408 WX_SHARED=0
7411 # Force using a unicode build of the library
7412 WX_UNICODE=1
7413 DEBUG=$WX_DEBUG
7415 if test "$WX_SHARED" = "1" ; then
7416 WXCONFIG_FLAGS="--static=no "
7417 elif test "$WX_SHARED" = "0" ; then
7418 WXCONFIG_FLAGS="--static=yes "
7421 if test "$WX_DEBUG" = "1" ; then
7422 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7423 elif test "$WX_DEBUG" = "0" ; then
7424 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7427 if test "$WX_UNICODE" = "1" ; then
7428 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7429 elif test "$WX_UNICODE" = "0" ; then
7430 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7433 if test "$TOOLKIT" != "auto" ; then
7434 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7437 if test "$WX_VERSION" != "auto" ; then
7438 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7441 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7443 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7444 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7448 if test x${WX_CONFIG_NAME+set} != xset ; then
7449 WX_CONFIG_NAME=wx-config
7452 if test "x$wx_config_name" != x ; then
7453 WX_CONFIG_NAME="$wx_config_name"
7456 if test x$wx_config_exec_prefix != x ; then
7457 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7458 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7460 if test x$wx_config_prefix != x ; then
7461 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7462 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7464 if test "$cross_compiling" = "yes"; then
7465 wx_config_args="$wx_config_args --host=$host_alias"
7468 if test -x "$WX_CONFIG_NAME" ; then
7469 echo "$as_me:$LINENO: checking for wx-config" >&5
7470 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7471 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7472 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7473 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7474 else
7475 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7476 set dummy $WX_CONFIG_NAME; ac_word=$2
7477 echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 case $WX_CONFIG_PATH in
7483 [\\/]* | ?:[\\/]*)
7484 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7489 for as_dir in $as_dummy
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7499 done
7500 done
7502 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7504 esac
7506 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7508 if test -n "$WX_CONFIG_PATH"; then
7509 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7510 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7518 if test "$WX_CONFIG_PATH" != "no" ; then
7519 WX_VERSION_FULL=""
7521 min_wx_version=2.8.0
7522 if test -z "$WXCONFIG_FLAGS" ; then
7523 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7524 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7525 else
7526 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7527 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7530 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7532 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7533 wx_config_major_version=`echo $WX_VERSION_FULL | \
7534 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7535 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7536 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7537 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7540 wx_requested_major_version=`echo $min_wx_version | \
7541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7542 wx_requested_minor_version=`echo $min_wx_version | \
7543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7544 wx_requested_micro_version=`echo $min_wx_version | \
7545 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7548 wx_ver_ok=""
7549 if test "x$WX_VERSION_FULL" != x ; then
7550 if test $wx_config_major_version -gt $wx_requested_major_version; then
7551 wx_ver_ok=yes
7552 else
7553 if test $wx_config_major_version -eq $wx_requested_major_version; then
7554 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7555 wx_ver_ok=yes
7556 else
7557 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7558 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7559 wx_ver_ok=yes
7568 if test -n "$wx_ver_ok"; then
7570 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7571 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7572 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7574 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7575 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7576 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7577 if test "x$WX_LIBS_STATIC" = "x"; then
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580 else
7581 echo "$as_me:$LINENO: result: yes" >&5
7582 echo "${ECHO_T}yes" >&6
7585 wx_has_cppflags=""
7586 if test $wx_config_major_version -gt 2; then
7587 wx_has_cppflags=yes
7588 else
7589 if test $wx_config_major_version -eq 2; then
7590 if test $wx_config_minor_version -gt 2; then
7591 wx_has_cppflags=yes
7592 else
7593 if test $wx_config_minor_version -eq 2; then
7594 if test $wx_config_micro_version -ge 6; then
7595 wx_has_cppflags=yes
7602 wx_has_rescomp=""
7603 if test $wx_config_major_version -gt 2; then
7604 wx_has_rescomp=yes
7605 else
7606 if test $wx_config_major_version -eq 2; then
7607 if test $wx_config_minor_version -ge 7; then
7608 wx_has_rescomp=yes
7612 if test "x$wx_has_rescomp" = x ; then
7613 WX_RESCOMP=
7614 else
7615 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7618 if test "x$wx_has_cppflags" = x ; then
7619 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7620 WX_CPPFLAGS=$WX_CFLAGS
7621 WX_CXXFLAGS=$WX_CFLAGS
7623 WX_CFLAGS_ONLY=$WX_CFLAGS
7624 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7625 else
7626 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7627 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7628 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7630 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7631 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7634 wxWin=1
7636 else
7638 if test "x$WX_VERSION_FULL" = x; then
7639 echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7643 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7646 WX_CFLAGS=""
7647 WX_CPPFLAGS=""
7648 WX_CXXFLAGS=""
7649 WX_LIBS=""
7650 WX_LIBS_STATIC=""
7651 WX_RESCOMP=""
7653 if test ! -z "$WXCONFIG_FLAGS"; then
7655 wx_error_message="
7656 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7657 build with the following settings:
7658 $WXCONFIG_FLAGS
7659 but such build is not available.
7661 To see the wxWidgets builds available on this system, please use
7662 'wx-config --list' command. To use the default build, returned by
7663 'wx-config --selected-config', use the options with their 'auto'
7664 default values."
7668 wx_error_message="
7669 The requested wxWidgets build couldn't be found.
7670 $wx_error_message
7672 If you still get this error, then check that 'wx-config' is
7673 in path, the directory where wxWidgets libraries are installed
7674 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7675 or equivalent variable and wxWidgets version is 2.8.0 or above."
7677 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7678 echo "$as_me: error: $wx_error_message" >&2;}
7679 { (exit 1); exit 1; }; }
7682 else
7684 WX_CFLAGS=""
7685 WX_CPPFLAGS=""
7686 WX_CXXFLAGS=""
7687 WX_LIBS=""
7688 WX_LIBS_STATIC=""
7689 WX_RESCOMP=""
7705 WX_VERSION_MAJOR="$wx_config_major_version"
7706 WX_VERSION_MINOR="$wx_config_minor_version"
7710 if test "$wxWin" != 1; then
7711 { { echo "$as_me:$LINENO: error:
7712 wxWidgets must be installed on your system but wx-config
7713 script couldn't be found. Please check that wx-config is
7714 in path or specified by --with-wx-config=path flag, the
7715 directory where wxWidgets libraries are installed (returned
7716 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7717 equivalent variable and wxWidgets version is 2.8.0 or above.
7718 " >&5
7719 echo "$as_me: error:
7720 wxWidgets must be installed on your system but wx-config
7721 script couldn't be found. Please check that wx-config is
7722 in path or specified by --with-wx-config=path flag, the
7723 directory where wxWidgets libraries are installed (returned
7724 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7725 equivalent variable and wxWidgets version is 2.8.0 or above.
7726 " >&2;}
7727 { (exit 1); exit 1; }; }
7730 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7731 if test $WX_VERSION -lt 26 ; then
7733 { { echo "$as_me:$LINENO: error:
7734 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7735 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7736 version of wxWidgets.
7737 " >&5
7738 echo "$as_me: error:
7739 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7740 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7741 version of wxWidgets.
7742 " >&2;}
7743 { (exit 1); exit 1; }; }
7746 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7748 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7749 echo "[dbg] Using wx-config --selected-config"
7750 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7754 if test $WX_SHARED = "1"; then
7755 STATIC=0
7756 elif test $WX_SHARED = "0"; then
7757 STATIC=1
7758 elif test $WX_SHARED = "auto"; then
7759 STATIC="auto"
7763 if test "$UNICODE" = "auto" ; then
7765 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7766 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7768 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7770 if test "$WX_UNICODE" != "0"; then
7771 WX_UNICODE=1
7772 echo "$as_me:$LINENO: result: yes" >&5
7773 echo "${ECHO_T}yes" >&6
7775 else
7776 WX_UNICODE=0
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7781 else
7783 WX_UNICODE=$UNICODE
7787 if test "$DEBUG" = "auto" ; then
7789 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7790 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7792 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7794 if test "$WX_DEBUG" != "0"; then
7795 WX_DEBUG=1
7796 echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7799 else
7800 WX_DEBUG=0
7801 echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6
7805 else
7807 WX_DEBUG=$DEBUG
7811 if test "$STATIC" = "auto" ; then
7813 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7814 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7816 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7818 if test "$WX_STATIC" != "0"; then
7819 WX_STATIC=1
7820 echo "$as_me:$LINENO: result: yes" >&5
7821 echo "${ECHO_T}yes" >&6
7823 else
7824 WX_STATIC=0
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7829 else
7831 WX_STATIC=$STATIC
7835 if test "$WX_STATIC" != "0"; then
7836 WX_SHARED=0
7837 else
7838 WX_SHARED=1
7845 if test "$TOOLKIT" = "auto" ; then
7847 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7848 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7850 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7851 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7852 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7853 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7854 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7855 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7856 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7857 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7858 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7859 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7861 WX_PORT="unknown"
7862 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7863 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7864 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7865 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7866 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7867 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7868 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7869 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7870 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7871 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7874 if test "$WX_PORT" = "unknown" ; then
7875 { { echo "$as_me:$LINENO: error:
7876 Cannot detect the currently installed wxWidgets port !
7877 Please check your 'wx-config --cxxflags'...
7878 " >&5
7879 echo "$as_me: error:
7880 Cannot detect the currently installed wxWidgets port !
7881 Please check your 'wx-config --cxxflags'...
7882 " >&2;}
7883 { (exit 1); exit 1; }; }
7886 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7887 echo "${ECHO_T}$WX_PORT" >&6
7888 else
7890 if test -z "$TOOLKIT" ; then
7891 WX_PORT=$TOOLKIT
7892 else
7893 WX_PORT=$PORT
7899 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7900 echo "[dbg] Values of all WX_* options after final detection:"
7901 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7902 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7903 echo "[dbg] WX_SHARED: $WX_SHARED"
7904 echo "[dbg] WX_VERSION: $WX_VERSION"
7905 echo "[dbg] WX_PORT: $WX_PORT"
7908 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7909 { { echo "$as_me:$LINENO: error:
7910 Cannot build shared library against a static build of wxWidgets !
7911 This error happens because the wxWidgets build which was selected
7912 has been detected as static while you asked to build $PACKAGE_NAME
7913 as shared library and this is not possible.
7914 Use the '--disable-shared' option to build $PACKAGE_NAME
7915 as static library or '--with-wxshared' to use wxWidgets as shared library.
7916 " >&5
7917 echo "$as_me: error:
7918 Cannot build shared library against a static build of wxWidgets !
7919 This error happens because the wxWidgets build which was selected
7920 has been detected as static while you asked to build $PACKAGE_NAME
7921 as shared library and this is not possible.
7922 Use the '--disable-shared' option to build $PACKAGE_NAME
7923 as static library or '--with-wxshared' to use wxWidgets as shared library.
7924 " >&2;}
7925 { (exit 1); exit 1; }; }
7928 if test "$DEBUG" = "auto"; then
7929 DEBUG=$WX_DEBUG
7931 if test "$DEBUG" = "1"; then
7932 BUILD="debug"
7933 elif test "$DEBUG" = ""; then
7934 BUILD="release"
7937 if test "$UNICODE" = "auto"; then
7938 UNICODE=$WX_UNICODE
7940 if test "$SHARED" = "auto"; then
7941 SHARED=$WX_SHARED
7943 if test "$TOOLKIT" = "auto"; then
7944 TOOLKIT=$WX_PORT
7949 # We also need wxBase
7950 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7951 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7952 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7956 if test ${SYS:-unknown} = win32; then
7958 if test -n "$ac_tool_prefix"; then
7959 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7960 set dummy ${ac_tool_prefix}windres; ac_word=$2
7961 echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7963 if test "${ac_cv_prog_RC+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 if test -n "$RC"; then
7967 ac_cv_prog_RC="$RC" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_RC="${ac_tool_prefix}windres"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7985 RC=$ac_cv_prog_RC
7986 if test -n "$RC"; then
7987 echo "$as_me:$LINENO: result: $RC" >&5
7988 echo "${ECHO_T}$RC" >&6
7989 else
7990 echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7995 if test -z "$ac_cv_prog_RC"; then
7996 ac_ct_RC=$RC
7997 # Extract the first word of "windres", so it can be a program name with args.
7998 set dummy windres; ac_word=$2
7999 echo "$as_me:$LINENO: checking for $ac_word" >&5
8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8001 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 if test -n "$ac_ct_RC"; then
8005 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_ac_ct_RC="windres"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8018 done
8019 done
8021 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8024 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8025 if test -n "$ac_ct_RC"; then
8026 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8027 echo "${ECHO_T}$ac_ct_RC" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8033 RC=$ac_ct_RC
8034 else
8035 RC="$ac_cv_prog_RC"
8038 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8044 # Check for libupnp
8045 if test "${ENABLE_UPNP:-yes}" = yes; then
8049 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8050 if test -n "$ac_tool_prefix"; then
8051 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8052 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8053 echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 case $PKG_CONFIG in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8078 esac
8080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8082 if test -n "$PKG_CONFIG"; then
8083 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8084 echo "${ECHO_T}$PKG_CONFIG" >&6
8085 else
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8091 if test -z "$ac_cv_path_PKG_CONFIG"; then
8092 ac_pt_PKG_CONFIG=$PKG_CONFIG
8093 # Extract the first word of "pkg-config", so it can be a program name with args.
8094 set dummy pkg-config; ac_word=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 case $ac_pt_PKG_CONFIG in
8101 [\\/]* | ?:[\\/]*)
8102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 break 2
8116 done
8117 done
8120 esac
8122 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8124 if test -n "$ac_pt_PKG_CONFIG"; then
8125 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8126 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6
8132 PKG_CONFIG=$ac_pt_PKG_CONFIG
8133 else
8134 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8138 if test -n "$PKG_CONFIG"; then
8139 _pkg_min_version=0.9.0
8140 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8141 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8142 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8143 echo "$as_me:$LINENO: result: yes" >&5
8144 echo "${ECHO_T}yes" >&6
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148 PKG_CONFIG=""
8154 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8155 if test "${with_libupnp_prefix+set}" = set; then
8156 withval="$with_libupnp_prefix"
8157 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8160 if test $cross_compiling = no; then
8161 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8162 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8163 if test -n "$PKG_CONFIG"; then
8164 if $PKG_CONFIG libupnp --exists; then
8165 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8166 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8167 result=yes
8168 resultstr=" (version $LIBUPNP_VERSION)"
8169 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8170 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8171 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8172 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8173 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8175 else
8176 result=no
8177 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8181 else
8182 result=no
8183 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8187 else
8188 result=no
8189 resultstr=" (pkg-config not found)"
8192 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8193 echo "${ECHO_T}$result$resultstr" >&6
8194 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8196 else
8197 result=no
8198 libupnp_error="cross compiling"
8202 if test ${result:-no} = yes; then
8203 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8204 else
8205 ENABLE_UPNP=disabled
8206 { echo "$as_me:$LINENO: WARNING:
8207 UPnP code has been disabled because ${libupnp_error}." >&5
8208 echo "$as_me: WARNING:
8209 UPnP code has been disabled because ${libupnp_error}." >&2;}
8210 _mule_warning_6=yes
8211 _mule_has_warnings=yes
8222 # Check for Crypto++
8225 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8226 if test "${with_crypto_prefix+set}" = set; then
8227 withval="$with_crypto_prefix"
8231 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8232 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8234 cryptopp_file_with_version="cryptlib.h"
8236 CRYPTOPP_STYLE="unknown"
8237 CRYPTOPP_LIB_NAME="unknown"
8238 cryptopp_includedir="unknown"
8239 CRYPTOPP_INCLUDE_PREFIX="unknown"
8240 cryptopp_libdir="unknown"
8242 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8243 if test -z "$CRYPTOPP_PREFIX"; then
8244 continue
8248 # Find the Cryptopp header
8249 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8251 CRYPTOPP_STYLE="sources"
8252 CRYPTOPP_LIB_NAME="cryptopp"
8253 cryptopp_includedir=
8254 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8255 cryptopp_libdir=
8256 break
8258 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8260 CRYPTOPP_STYLE="installed"
8261 CRYPTOPP_LIB_NAME="cryptopp"
8262 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8263 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8264 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8265 break
8267 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8269 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8270 CRYPTOPP_STYLE="gentoo_debian"
8271 CRYPTOPP_LIB_NAME="crypto++"
8272 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8273 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8274 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8275 break
8279 done
8281 if test $CRYPTOPP_STYLE = "unknown"; then
8282 result=no; resultstr=""
8283 else
8285 # Find out the crypto++ version and check against the minimum required
8286 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8287 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8288 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8289 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8291 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8293 result=yes
8294 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8295 if test -n "$cryptopp_includedir"; then
8296 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8297 else
8298 CRYPTOPP_CPPFLAGS=
8301 if test -n "$cryptopp_libdir"; then
8303 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8304 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8306 else
8308 CRYPTOPP_LDFLAGS=
8309 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8315 cat >>confdefs.h <<_ACEOF
8316 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8317 _ACEOF
8320 else
8322 result=no
8323 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8331 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8332 echo "${ECHO_T}$result$resultstr" >&6
8334 if test ${result:-no} = yes; then
8336 # Check for CryptoPP >= 5.5
8337 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8338 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8342 else
8344 { { echo "$as_me:$LINENO: error:
8345 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8346 Please try again with --with-crypto-prefix=/my_crypto_prefix
8347 (replace /my_crypto_prefix with a valid path to your crypto++
8348 installation directory)." >&5
8349 echo "$as_me: error:
8350 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8351 Please try again with --with-crypto-prefix=/my_crypto_prefix
8352 (replace /my_crypto_prefix with a valid path to your crypto++
8353 installation directory)." >&2;}
8354 { (exit 1); exit 1; }; }
8361 ac_ext=cc
8362 ac_cpp='$CXXCPP $CPPFLAGS'
8363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8370 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8371 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h. */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8380 #include <string>
8381 #ifndef __GLIBCXX__
8382 #error Non-GNU C++ library found.
8383 #endif
8386 _ACEOF
8387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } >/dev/null; then
8395 if test -s conftest.err; then
8396 ac_cpp_err=$ac_cxx_preproc_warn_flag
8397 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8398 else
8399 ac_cpp_err=
8401 else
8402 ac_cpp_err=yes
8404 if test -z "$ac_cpp_err"; then
8405 GLIBCXX=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 GLIBCXX=no
8412 rm -f conftest.err conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8414 echo "${ECHO_T}$GLIBCXX" >&6
8417 mule_backup_CPPFLAGS="$CPPFLAGS"
8418 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8420 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8421 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8430 #include <wx/wx.h>
8431 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8432 #error No LargeFile support!
8433 #endif
8436 _ACEOF
8437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_cxx_preproc_warn_flag
8447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8448 else
8449 ac_cpp_err=
8451 else
8452 ac_cpp_err=yes
8454 if test -z "$ac_cpp_err"; then
8456 echo "$as_me:$LINENO: result: yes" >&5
8457 echo "${ECHO_T}yes" >&6
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8464 echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8466 { { echo "$as_me:$LINENO: error:
8467 Support for large files in wxWidgets is required by aMule.
8468 To continue you must recompile wxWidgets with support for
8469 large files enabled." >&5
8470 echo "$as_me: error:
8471 Support for large files in wxWidgets is required by aMule.
8472 To continue you must recompile wxWidgets with support for
8473 large files enabled." >&2;}
8474 { (exit 1); exit 1; }; }
8477 rm -f conftest.err conftest.$ac_ext
8479 CPPFLAGS="$mule_backup_CPPFLAGS"
8482 # Check if the compiler is broken, wrt. exceptions.
8484 echo "$as_me:$LINENO: checking for exception-handling" >&5
8485 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8486 if test "$cross_compiling" = yes; then
8488 echo "$as_me:$LINENO: result: undeterminable" >&5
8489 echo "${ECHO_T}undeterminable" >&6
8490 { echo "$as_me:$LINENO: WARNING:
8491 Cross-compilation detected, so exception handling cannot be tested.
8492 Note that broken exception handling in your compiler may lead to
8493 unexpected crashes." >&5
8494 echo "$as_me: WARNING:
8495 Cross-compilation detected, so exception handling cannot be tested.
8496 Note that broken exception handling in your compiler may lead to
8497 unexpected crashes." >&2;}
8498 _mule_warning_7=yes
8499 _mule_has_warnings=yes
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8512 main ()
8515 try {
8516 throw 1;
8517 } catch (int) {
8518 return 0;
8520 return 1;
8523 return 0;
8526 _ACEOF
8527 rm -f conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529 (eval $ac_link) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8539 echo "$as_me:$LINENO: result: yes" >&5
8540 echo "${ECHO_T}yes" >&6
8542 else
8543 echo "$as_me: program exited with status $ac_status" >&5
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ( exit $ac_status )
8549 echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6
8551 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8552 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8553 { (exit 1); exit 1; }; }
8556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8561 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8562 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 #include <cxxabi.h>
8574 main ()
8577 int status;
8578 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8579 std::type_info *ti = abi::__cxa_current_exception_type();
8582 return 0;
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_cxx_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8611 cat >>confdefs.h <<\_ACEOF
8612 #define HAVE_CXXABI 1
8613 _ACEOF
8615 echo "$as_me:$LINENO: result: yes" >&5
8616 echo "${ECHO_T}yes" >&6
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8623 echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8627 rm -f conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8630 ac_ext=c
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8637 # Check for bfd.h (to have proper backtraces without using wxExecute)
8639 echo "$as_me:$LINENO: checking for bfd" >&5
8640 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8641 mule_backup_LIBS="$LIBS"
8642 mule_backup_LDFLAGS="$LDFLAGS"
8643 LIBS="-lbfd -liberty ${ZLIB_LIBS} $LIBS"
8644 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
8645 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8653 #include <ansidecl.h>
8654 #include <bfd.h>
8657 main ()
8660 char *dummy = bfd_errmsg(bfd_get_error());
8663 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8690 echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8692 BFD_CPPFLAGS="-DHAVE_BFD"
8693 BFD_LIBS="-lbfd -liberty"
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8702 { echo "$as_me:$LINENO: WARNING:
8703 bfd.h not found or unusable, please install binutils development
8704 package if you are a developer or want to help testing aMule" >&5
8705 echo "$as_me: WARNING:
8706 bfd.h not found or unusable, please install binutils development
8707 package if you are a developer or want to help testing aMule" >&2;}
8708 _mule_warning_8=yes
8709 _mule_has_warnings=yes
8713 rm -f conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715 LIBS="$mule_backup_LIBS"
8716 LDFLAGS="$mule_backup_LDFLAGS"
8720 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8721 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 #include <execinfo.h>
8733 main ()
8736 void *bt[1];
8737 int n = backtrace(&bt, 1);
8738 const char **bt_syms = backtrace_symbols(bt, n);
8741 return 0;
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8770 cat >>confdefs.h <<\_ACEOF
8771 #define HAVE_EXECINFO 1
8772 _ACEOF
8774 echo "$as_me:$LINENO: result: yes" >&5
8775 echo "${ECHO_T}yes" >&6
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8782 echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8790 # Ok, we have all needed libs, now checking for other stuff
8791 if test "$LEX" = "flex"; then
8793 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8794 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8796 extended_flex=`flex --help | grep header-file`
8797 if test -n "$extended_flex"; then
8798 HAVE_FLEX_EXTENDED=yes
8799 else
8800 HAVE_FLEX_EXTENDED=no
8803 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8804 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8806 if test $HAVE_FLEX_EXTENDED = no; then
8807 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8808 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8812 else
8813 HAVE_FLEX_EXTENDED=no
8817 # Flush standard test results for speeding cache
8818 cat >confcache <<\_ACEOF
8819 # This file is a shell script that caches the results of configure
8820 # tests run on this system so they can be shared between configure
8821 # scripts and configure runs, see configure's option --config-cache.
8822 # It is not useful on other systems. If it contains results you don't
8823 # want to keep, you may remove or edit it.
8825 # config.status only pays attention to the cache file if you give it
8826 # the --recheck option to rerun configure.
8828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8830 # following values.
8832 _ACEOF
8834 # The following way of writing the cache mishandles newlines in values,
8835 # but we know of no workaround that is simple, portable, and efficient.
8836 # So, don't put newlines in cache variables' values.
8837 # Ultrix sh set writes to stderr and can't be redirected directly,
8838 # and sets the high bit in the cache file unless we assign to the vars.
8840 (set) 2>&1 |
8841 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8842 *ac_space=\ *)
8843 # `set' does not quote correctly, so add quotes (double-quote
8844 # substitution turns \\\\ into \\, and sed turns \\ into \).
8845 sed -n \
8846 "s/'/'\\\\''/g;
8847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8850 # `set' quotes correctly as required by POSIX, so do not add quotes.
8851 sed -n \
8852 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8854 esac;
8856 sed '
8857 t clear
8858 : clear
8859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8860 t end
8861 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8862 : end' >>confcache
8863 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8864 if test -w $cache_file; then
8865 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8866 cat confcache >$cache_file
8867 else
8868 echo "not updating unwritable cache $cache_file"
8871 rm -f confcache
8873 # Checks for header files.
8874 echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6
8878 # Check whether --with-x or --without-x was given.
8879 if test "${with_x+set}" = set; then
8880 withval="$with_x"
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8886 have_x=disabled
8887 else
8888 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8889 # Both variables are already set.
8890 have_x=yes
8891 else
8892 if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -fr conftest.dir
8898 if mkdir conftest.dir; then
8899 cd conftest.dir
8900 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8901 cat >Imakefile <<'_ACEOF'
8902 acfindx:
8903 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8904 _ACEOF
8905 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8906 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8907 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8908 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8909 for ac_extension in a so sl; do
8910 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8911 test -f $ac_im_libdir/libX11.$ac_extension; then
8912 ac_im_usrlibdir=$ac_im_libdir; break
8914 done
8915 # Screen out bogus values from the imake configuration. They are
8916 # bogus both because they are the default anyway, and because
8917 # using them would break gcc on systems where it needs fixed includes.
8918 case $ac_im_incroot in
8919 /usr/include) ;;
8920 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8921 esac
8922 case $ac_im_usrlibdir in
8923 /usr/lib | /lib) ;;
8924 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8925 esac
8927 cd ..
8928 rm -fr conftest.dir
8931 # Standard set of common directories for X headers.
8932 # Check X11 before X11Rn because it is often a symlink to the current release.
8933 ac_x_header_dirs='
8934 /usr/X11/include
8935 /usr/X11R6/include
8936 /usr/X11R5/include
8937 /usr/X11R4/include
8939 /usr/include/X11
8940 /usr/include/X11R6
8941 /usr/include/X11R5
8942 /usr/include/X11R4
8944 /usr/local/X11/include
8945 /usr/local/X11R6/include
8946 /usr/local/X11R5/include
8947 /usr/local/X11R4/include
8949 /usr/local/include/X11
8950 /usr/local/include/X11R6
8951 /usr/local/include/X11R5
8952 /usr/local/include/X11R4
8954 /usr/X386/include
8955 /usr/x386/include
8956 /usr/XFree86/include/X11
8958 /usr/include
8959 /usr/local/include
8960 /usr/unsupported/include
8961 /usr/athena/include
8962 /usr/local/x11r5/include
8963 /usr/lpp/Xamples/include
8965 /usr/openwin/include
8966 /usr/openwin/share/include'
8968 if test "$ac_x_includes" = no; then
8969 # Guess where to find include files, by looking for Intrinsic.h.
8970 # First, try using that file with no special directory specified.
8971 cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h. */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 #include <X11/Intrinsic.h>
8978 _ACEOF
8979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } >/dev/null; then
8987 if test -s conftest.err; then
8988 ac_cpp_err=$ac_c_preproc_warn_flag
8989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8990 else
8991 ac_cpp_err=
8993 else
8994 ac_cpp_err=yes
8996 if test -z "$ac_cpp_err"; then
8997 # We can compile using X headers with no special include directory.
8998 ac_x_includes=
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 for ac_dir in $ac_x_header_dirs; do
9004 if test -r "$ac_dir/X11/Intrinsic.h"; then
9005 ac_x_includes=$ac_dir
9006 break
9008 done
9010 rm -f conftest.err conftest.$ac_ext
9011 fi # $ac_x_includes = no
9013 if test "$ac_x_libraries" = no; then
9014 # Check for the libraries.
9015 # See if we find them without any special options.
9016 # Don't add to $LIBS permanently.
9017 ac_save_LIBS=$LIBS
9018 LIBS="-lXt $LIBS"
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <X11/Intrinsic.h>
9027 main ()
9029 XtMalloc (0)
9031 return 0;
9033 _ACEOF
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try='test -s conftest$ac_exeext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 LIBS=$ac_save_LIBS
9057 # We can link X programs with no special library path.
9058 ac_x_libraries=
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 LIBS=$ac_save_LIBS
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r $ac_dir/libXt.$ac_extension; then
9069 ac_x_libraries=$ac_dir
9070 break 2
9072 done
9073 done
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 fi # $ac_x_libraries = no
9079 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9080 # Didn't find X anywhere. Cache the known absence of X.
9081 ac_cv_have_x="have_x=no"
9082 else
9083 # Record where we found X for the cache.
9084 ac_cv_have_x="have_x=yes \
9085 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9090 eval "$ac_cv_have_x"
9091 fi # $with_x != no
9093 if test "$have_x" != yes; then
9094 echo "$as_me:$LINENO: result: $have_x" >&5
9095 echo "${ECHO_T}$have_x" >&6
9096 no_x=yes
9097 else
9098 # If each of the values was on the command line, it overrides each guess.
9099 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9100 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9101 # Update the cache value to reflect the command line values.
9102 ac_cv_have_x="have_x=yes \
9103 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9104 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9105 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9108 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9109 # for constant arguments. Useless!
9110 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9111 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9112 if test "${ac_cv_working_alloca_h+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 #include <alloca.h>
9123 main ()
9125 char *p = (char *) alloca (2 * sizeof (int));
9127 return 0;
9129 _ACEOF
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_working_alloca_h=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_cv_working_alloca_h=no
9159 rm -f conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9163 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9164 if test $ac_cv_working_alloca_h = yes; then
9166 cat >>confdefs.h <<\_ACEOF
9167 #define HAVE_ALLOCA_H 1
9168 _ACEOF
9172 echo "$as_me:$LINENO: checking for alloca" >&5
9173 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9174 if test "${ac_cv_func_alloca_works+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 #ifdef __GNUC__
9184 # define alloca __builtin_alloca
9185 #else
9186 # ifdef _MSC_VER
9187 # include <malloc.h>
9188 # define alloca _alloca
9189 # else
9190 # if HAVE_ALLOCA_H
9191 # include <alloca.h>
9192 # else
9193 # ifdef _AIX
9194 #pragma alloca
9195 # else
9196 # ifndef alloca /* predefined by HP cc +Olibcalls */
9197 char *alloca ();
9198 # endif
9199 # endif
9200 # endif
9201 # endif
9202 #endif
9205 main ()
9207 char *p = (char *) alloca (1);
9209 return 0;
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214 (eval $ac_link) 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag"
9222 || test ! -s conftest.err'
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); }; } &&
9228 { ac_try='test -s conftest$ac_exeext'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_cv_func_alloca_works=yes
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_cv_func_alloca_works=no
9241 rm -f conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9244 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9245 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9247 if test $ac_cv_func_alloca_works = yes; then
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_ALLOCA 1
9251 _ACEOF
9253 else
9254 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9255 # that cause trouble. Some versions do not even contain alloca or
9256 # contain a buggy version. If you still want to use their alloca,
9257 # use ar to extract alloca.o from them instead of compiling alloca.c.
9259 ALLOCA=alloca.$ac_objext
9261 cat >>confdefs.h <<\_ACEOF
9262 #define C_ALLOCA 1
9263 _ACEOF
9266 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9267 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9268 if test "${ac_cv_os_cray+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 #if defined(CRAY) && ! defined(CRAY2)
9278 webecray
9279 #else
9280 wenotbecray
9281 #endif
9283 _ACEOF
9284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9285 $EGREP "webecray" >/dev/null 2>&1; then
9286 ac_cv_os_cray=yes
9287 else
9288 ac_cv_os_cray=no
9290 rm -f conftest*
9293 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9294 echo "${ECHO_T}$ac_cv_os_cray" >&6
9295 if test $ac_cv_os_cray = yes; then
9296 for ac_func in _getb67 GETB67 getb67; do
9297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9298 echo "$as_me:$LINENO: checking for $ac_func" >&5
9299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9300 if eval "test \"\${$as_ac_var+set}\" = set"; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9311 #define $ac_func innocuous_$ac_func
9313 /* System header to define __stub macros and hopefully few prototypes,
9314 which can conflict with char $ac_func (); below.
9315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 <limits.h> exists even on freestanding compilers. */
9318 #ifdef __STDC__
9319 # include <limits.h>
9320 #else
9321 # include <assert.h>
9322 #endif
9324 #undef $ac_func
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 #ifdef __cplusplus
9328 extern "C"
9330 #endif
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9333 char $ac_func ();
9334 /* The GNU C library defines this for functions which it implements
9335 to always fail with ENOSYS. Some functions are actually named
9336 something starting with __ and the normal name is an alias. */
9337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9338 choke me
9339 #else
9340 char (*f) () = $ac_func;
9341 #endif
9342 #ifdef __cplusplus
9344 #endif
9347 main ()
9349 return f != $ac_func;
9351 return 0;
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 eval "$as_ac_var=yes"
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 eval "$as_ac_var=no"
9383 rm -f conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9388 if test `eval echo '${'$as_ac_var'}'` = yes; then
9390 cat >>confdefs.h <<_ACEOF
9391 #define CRAY_STACKSEG_END $ac_func
9392 _ACEOF
9394 break
9397 done
9400 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9401 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9402 if test "${ac_cv_c_stack_direction+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 if test "$cross_compiling" = yes; then
9406 ac_cv_c_stack_direction=0
9407 else
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9415 find_stack_direction ()
9417 static char *addr = 0;
9418 auto char dummy;
9419 if (addr == 0)
9421 addr = &dummy;
9422 return find_stack_direction ();
9424 else
9425 return (&dummy > addr) ? 1 : -1;
9429 main ()
9431 exit (find_stack_direction () < 0);
9433 _ACEOF
9434 rm -f conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_c_stack_direction=1
9446 else
9447 echo "$as_me: program exited with status $ac_status" >&5
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ( exit $ac_status )
9452 ac_cv_c_stack_direction=-1
9454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9458 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9460 cat >>confdefs.h <<_ACEOF
9461 #define STACK_DIRECTION $ac_cv_c_stack_direction
9462 _ACEOF
9472 ac_header_dirent=no
9473 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9474 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9475 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9476 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <sys/types.h>
9487 #include <$ac_hdr>
9490 main ()
9492 if ((DIR *) 0)
9493 return 0;
9495 return 0;
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 eval "$as_ac_Header=yes"
9521 else
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 eval "$as_ac_Header=no"
9527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9534 _ACEOF
9536 ac_header_dirent=$ac_hdr; break
9539 done
9540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9541 if test $ac_header_dirent = dirent.h; then
9542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9544 if test "${ac_cv_search_opendir+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 ac_func_search_save_LIBS=$LIBS
9548 ac_cv_search_opendir=no
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562 char opendir ();
9564 main ()
9566 opendir ();
9568 return 0;
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_search_opendir="none required"
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 if test "$ac_cv_search_opendir" = no; then
9602 for ac_lib in dir; do
9603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 /* Override any gcc2 internal prototype to avoid an error. */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9617 char opendir ();
9619 main ()
9621 opendir ();
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_search_opendir="-l$ac_lib"
9649 break
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9655 rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 done
9659 LIBS=$ac_func_search_save_LIBS
9661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9663 if test "$ac_cv_search_opendir" != no; then
9664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9668 else
9669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9671 if test "${ac_cv_search_opendir+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_func_search_save_LIBS=$LIBS
9675 ac_cv_search_opendir=no
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689 char opendir ();
9691 main ()
9693 opendir ();
9695 return 0;
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_search_opendir="none required"
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 if test "$ac_cv_search_opendir" = no; then
9729 for ac_lib in x; do
9730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9738 /* Override any gcc2 internal prototype to avoid an error. */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744 char opendir ();
9746 main ()
9748 opendir ();
9750 return 0;
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_cv_search_opendir="-l$ac_lib"
9776 break
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9782 rm -f conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 done
9786 LIBS=$ac_func_search_save_LIBS
9788 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9789 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9790 if test "$ac_cv_search_opendir" != no; then
9791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9799 if test "${ac_cv_header_stdc+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <stdlib.h>
9809 #include <stdarg.h>
9810 #include <string.h>
9811 #include <float.h>
9814 main ()
9818 return 0;
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest.$ac_objext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_header_stdc=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_header_stdc=no
9850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9852 if test $ac_cv_header_stdc = yes; then
9853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 #include <string.h>
9862 _ACEOF
9863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9864 $EGREP "memchr" >/dev/null 2>&1; then
9866 else
9867 ac_cv_header_stdc=no
9869 rm -f conftest*
9873 if test $ac_cv_header_stdc = yes; then
9874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <stdlib.h>
9883 _ACEOF
9884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9885 $EGREP "free" >/dev/null 2>&1; then
9887 else
9888 ac_cv_header_stdc=no
9890 rm -f conftest*
9894 if test $ac_cv_header_stdc = yes; then
9895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9896 if test "$cross_compiling" = yes; then
9898 else
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 #include <ctype.h>
9906 #if ((' ' & 0x0FF) == 0x020)
9907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9909 #else
9910 # define ISLOWER(c) \
9911 (('a' <= (c) && (c) <= 'i') \
9912 || ('j' <= (c) && (c) <= 'r') \
9913 || ('s' <= (c) && (c) <= 'z'))
9914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9915 #endif
9917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9919 main ()
9921 int i;
9922 for (i = 0; i < 256; i++)
9923 if (XOR (islower (i), ISLOWER (i))
9924 || toupper (i) != TOUPPER (i))
9925 exit(2);
9926 exit (0);
9928 _ACEOF
9929 rm -f conftest$ac_exeext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931 (eval $ac_link) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9941 else
9942 echo "$as_me: program exited with status $ac_status" >&5
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ( exit $ac_status )
9947 ac_cv_header_stdc=no
9949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9955 if test $ac_cv_header_stdc = yes; then
9957 cat >>confdefs.h <<\_ACEOF
9958 #define STDC_HEADERS 1
9959 _ACEOF
9996 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 sys/mman.h unistd.h
9998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10000 echo "$as_me:$LINENO: checking for $ac_header" >&5
10001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10007 else
10008 # Is the header compilable?
10009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h. */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 $ac_includes_default
10018 #include <$ac_header>
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022 (eval $ac_compile) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest.$ac_objext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_header_compiler=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_header_compiler=no
10049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10051 echo "${ECHO_T}$ac_header_compiler" >&6
10053 # Is the header present?
10054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <$ac_header>
10063 _ACEOF
10064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } >/dev/null; then
10072 if test -s conftest.err; then
10073 ac_cpp_err=$ac_c_preproc_warn_flag
10074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10075 else
10076 ac_cpp_err=
10078 else
10079 ac_cpp_err=yes
10081 if test -z "$ac_cpp_err"; then
10082 ac_header_preproc=yes
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_header_preproc=no
10089 rm -f conftest.err conftest.$ac_ext
10090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10091 echo "${ECHO_T}$ac_header_preproc" >&6
10093 # So? What about this header?
10094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10095 yes:no: )
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10100 ac_header_preproc=yes
10102 no:yes:* )
10103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10116 cat <<\_ASBOX
10117 ## ------------------------------ ##
10118 ## Report this to admin@amule.org ##
10119 ## ------------------------------ ##
10120 _ASBOX
10122 sed "s/^/$as_me: WARNING: /" >&2
10124 esac
10125 echo "$as_me:$LINENO: checking for $ac_header" >&5
10126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 eval "$as_ac_Header=\$ac_header_preproc"
10132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10137 cat >>confdefs.h <<_ACEOF
10138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10139 _ACEOF
10143 done
10145 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10146 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10147 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <sys/types.h>
10157 #include <sys/wait.h>
10158 #ifndef WEXITSTATUS
10159 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10160 #endif
10161 #ifndef WIFEXITED
10162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10163 #endif
10166 main ()
10168 int s;
10169 wait (&s);
10170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest.$ac_objext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_header_sys_wait_h=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_header_sys_wait_h=no
10204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10206 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10207 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10208 if test $ac_cv_header_sys_wait_h = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_SYS_WAIT_H 1
10212 _ACEOF
10217 # Checks for typedefs, structures, and compiler characteristics.
10218 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10219 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10220 if test "${ac_cv_header_stdbool_h+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 #include <stdbool.h>
10231 #ifndef bool
10232 # error bool is not defined
10233 #endif
10234 #ifndef false
10235 # error false is not defined
10236 #endif
10237 #if false
10238 # error false is not 0
10239 #endif
10240 #ifndef true
10241 # error true is not defined
10242 #endif
10243 #if true != 1
10244 # error true is not 1
10245 #endif
10246 #ifndef __bool_true_false_are_defined
10247 # error __bool_true_false_are_defined is not defined
10248 #endif
10250 struct s { _Bool s: 1; _Bool t; } s;
10252 char a[true == 1 ? 1 : -1];
10253 char b[false == 0 ? 1 : -1];
10254 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10255 char d[(bool) -0.5 == true ? 1 : -1];
10256 bool e = &s;
10257 char f[(_Bool) -0.0 == false ? 1 : -1];
10258 char g[true];
10259 char h[sizeof (_Bool)];
10260 char i[sizeof s.t];
10263 main ()
10265 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10267 return 0;
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_header_stdbool_h=yes
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_header_stdbool_h=no
10299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10302 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10303 echo "$as_me:$LINENO: checking for _Bool" >&5
10304 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10305 if test "${ac_cv_type__Bool+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 $ac_includes_default
10316 main ()
10318 if ((_Bool *) 0)
10319 return 0;
10320 if (sizeof (_Bool))
10321 return 0;
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest.$ac_objext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_type__Bool=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_type__Bool=no
10355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10358 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10359 if test $ac_cv_type__Bool = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE__BOOL 1
10363 _ACEOF
10368 if test $ac_cv_header_stdbool_h = yes; then
10370 cat >>confdefs.h <<\_ACEOF
10371 #define HAVE_STDBOOL_H 1
10372 _ACEOF
10376 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10377 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10378 if test "${ac_cv_c_const+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10389 main ()
10391 /* FIXME: Include the comments suggested by Paul. */
10392 #ifndef __cplusplus
10393 /* Ultrix mips cc rejects this. */
10394 typedef int charset[2];
10395 const charset x;
10396 /* SunOS 4.1.1 cc rejects this. */
10397 char const *const *ccp;
10398 char **p;
10399 /* NEC SVR4.0.2 mips cc rejects this. */
10400 struct point {int x, y;};
10401 static struct point const zero = {0,0};
10402 /* AIX XL C 1.02.0.0 rejects this.
10403 It does not let you subtract one const X* pointer from another in
10404 an arm of an if-expression whose if-part is not a constant
10405 expression */
10406 const char *g = "string";
10407 ccp = &g + (g ? g-g : 0);
10408 /* HPUX 7.0 cc rejects these. */
10409 ++ccp;
10410 p = (char**) ccp;
10411 ccp = (char const *const *) p;
10412 { /* SCO 3.2v4 cc rejects this. */
10413 char *t;
10414 char const *s = 0 ? (char *) 0 : (char const *) 0;
10416 *t++ = 0;
10418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10419 int x[] = {25, 17};
10420 const int *foo = &x[0];
10421 ++foo;
10423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10424 typedef const int *iptr;
10425 iptr p = 0;
10426 ++p;
10428 { /* AIX XL C 1.02.0.0 rejects this saying
10429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10430 struct s { int j; const int *ap[3]; };
10431 struct s *b; b->j = 5;
10433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10434 const int foo = 10;
10436 #endif
10439 return 0;
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_cv_c_const=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_c_const=no
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10474 echo "${ECHO_T}$ac_cv_c_const" >&6
10475 if test $ac_cv_c_const = no; then
10477 cat >>confdefs.h <<\_ACEOF
10478 #define const
10479 _ACEOF
10483 echo "$as_me:$LINENO: checking for inline" >&5
10484 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10485 if test "${ac_cv_c_inline+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 ac_cv_c_inline=no
10489 for ac_kw in inline __inline__ __inline; do
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 #ifndef __cplusplus
10497 typedef int foo_t;
10498 static $ac_kw foo_t static_foo () {return 0; }
10499 $ac_kw foo_t foo () {return 0; }
10500 #endif
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest.$ac_objext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_c_inline=$ac_kw; break
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532 done
10535 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10536 echo "${ECHO_T}$ac_cv_c_inline" >&6
10539 case $ac_cv_c_inline in
10540 inline | yes) ;;
10542 case $ac_cv_c_inline in
10543 no) ac_val=;;
10544 *) ac_val=$ac_cv_c_inline;;
10545 esac
10546 cat >>confdefs.h <<_ACEOF
10547 #ifndef __cplusplus
10548 #define inline $ac_val
10549 #endif
10550 _ACEOF
10552 esac
10554 echo "$as_me:$LINENO: checking for mode_t" >&5
10555 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10556 if test "${ac_cv_type_mode_t+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h. */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10567 main ()
10569 if ((mode_t *) 0)
10570 return 0;
10571 if (sizeof (mode_t))
10572 return 0;
10574 return 0;
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag"
10587 || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_cv_type_mode_t=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_type_mode_t=no
10606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10609 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10610 if test $ac_cv_type_mode_t = yes; then
10612 else
10614 cat >>confdefs.h <<_ACEOF
10615 #define mode_t int
10616 _ACEOF
10620 echo "$as_me:$LINENO: checking for off_t" >&5
10621 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10622 if test "${ac_cv_type_off_t+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
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 $ac_includes_default
10633 main ()
10635 if ((off_t *) 0)
10636 return 0;
10637 if (sizeof (off_t))
10638 return 0;
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645 (eval $ac_compile) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest.$ac_objext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_type_off_t=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_cv_type_off_t=no
10672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10675 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10676 if test $ac_cv_type_off_t = yes; then
10678 else
10680 cat >>confdefs.h <<_ACEOF
10681 #define off_t long
10682 _ACEOF
10686 echo "$as_me:$LINENO: checking for size_t" >&5
10687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10688 if test "${ac_cv_type_size_t+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 $ac_includes_default
10699 main ()
10701 if ((size_t *) 0)
10702 return 0;
10703 if (sizeof (size_t))
10704 return 0;
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest.$ac_objext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_type_size_t=yes
10732 else
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_type_size_t=no
10738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10741 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10742 if test $ac_cv_type_size_t = yes; then
10744 else
10746 cat >>confdefs.h <<_ACEOF
10747 #define size_t unsigned
10748 _ACEOF
10752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10754 if test "${ac_cv_header_time+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <sys/types.h>
10764 #include <sys/time.h>
10765 #include <time.h>
10768 main ()
10770 if ((struct tm *) 0)
10771 return 0;
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_c_werror_flag"
10786 || test ! -s conftest.err'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest.$ac_objext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_header_time=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_header_time=no
10805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10808 echo "${ECHO_T}$ac_cv_header_time" >&6
10809 if test $ac_cv_header_time = yes; then
10811 cat >>confdefs.h <<\_ACEOF
10812 #define TIME_WITH_SYS_TIME 1
10813 _ACEOF
10817 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10818 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10819 if test "${ac_cv_struct_tm+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 #include <sys/types.h>
10829 #include <time.h>
10832 main ()
10834 struct tm *tp; tp->tm_sec;
10836 return 0;
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_cv_struct_tm=time.h
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_cv_struct_tm=sys/time.h
10868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10871 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10872 if test $ac_cv_struct_tm = sys/time.h; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define TM_IN_SYS_TIME 1
10876 _ACEOF
10880 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10881 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10882 if test "${ac_cv_type_uid_t+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <sys/types.h>
10893 _ACEOF
10894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10895 $EGREP "uid_t" >/dev/null 2>&1; then
10896 ac_cv_type_uid_t=yes
10897 else
10898 ac_cv_type_uid_t=no
10900 rm -f conftest*
10903 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10904 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10905 if test $ac_cv_type_uid_t = no; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define uid_t int
10909 _ACEOF
10912 cat >>confdefs.h <<\_ACEOF
10913 #define gid_t int
10914 _ACEOF
10918 echo "$as_me:$LINENO: checking for working volatile" >&5
10919 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10920 if test "${ac_cv_c_volatile+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10931 main ()
10934 volatile int x;
10935 int * volatile y;
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10962 ac_cv_c_volatile=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_cv_c_volatile=no
10969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10971 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10972 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10973 if test $ac_cv_c_volatile = no; then
10975 cat >>confdefs.h <<\_ACEOF
10976 #define volatile
10977 _ACEOF
10981 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10982 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10983 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 $ac_includes_default
10994 main ()
10996 if ((ptrdiff_t *) 0)
10997 return 0;
10998 if (sizeof (ptrdiff_t))
10999 return 0;
11001 return 0;
11003 _ACEOF
11004 rm -f conftest.$ac_objext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006 (eval $ac_compile) 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag"
11014 || test ! -s conftest.err'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_type_ptrdiff_t=yes
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_cv_type_ptrdiff_t=no
11033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11036 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11037 if test $ac_cv_type_ptrdiff_t = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_PTRDIFF_T 1
11041 _ACEOF
11047 # Checks for library functions.
11048 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11049 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11050 if test "${ac_cv_func_closedir_void+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 if test "$cross_compiling" = yes; then
11054 ac_cv_func_closedir_void=yes
11055 else
11056 cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h. */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 $ac_includes_default
11063 #include <$ac_header_dirent>
11064 #ifndef __cplusplus
11065 int closedir ();
11066 #endif
11069 main ()
11071 exit (closedir (opendir (".")) != 0);
11073 return 0;
11075 _ACEOF
11076 rm -f conftest$ac_exeext
11077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11078 (eval $ac_link) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_func_closedir_void=no
11088 else
11089 echo "$as_me: program exited with status $ac_status" >&5
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 ( exit $ac_status )
11094 ac_cv_func_closedir_void=yes
11096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11099 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11100 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11101 if test $ac_cv_func_closedir_void = yes; then
11103 cat >>confdefs.h <<\_ACEOF
11104 #define CLOSEDIR_VOID 1
11105 _ACEOF
11109 if test $ac_cv_c_compiler_gnu = yes; then
11110 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11111 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11112 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 ac_pattern="Autoconf.*'x'"
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <sgtty.h>
11123 Autoconf TIOCGETP
11124 _ACEOF
11125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11126 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11127 ac_cv_prog_gcc_traditional=yes
11128 else
11129 ac_cv_prog_gcc_traditional=no
11131 rm -f conftest*
11134 if test $ac_cv_prog_gcc_traditional = no; then
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 #include <termio.h>
11142 Autoconf TCGETA
11143 _ACEOF
11144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11145 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11146 ac_cv_prog_gcc_traditional=yes
11148 rm -f conftest*
11152 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11153 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11154 if test $ac_cv_prog_gcc_traditional = yes; then
11155 CC="$CC -traditional"
11159 echo "$as_me:$LINENO: checking for pid_t" >&5
11160 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11161 if test "${ac_cv_type_pid_t+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11172 main ()
11174 if ((pid_t *) 0)
11175 return 0;
11176 if (sizeof (pid_t))
11177 return 0;
11179 return 0;
11181 _ACEOF
11182 rm -f conftest.$ac_objext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11184 (eval $ac_compile) 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -z "$ac_c_werror_flag"
11192 || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest.$ac_objext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_type_pid_t=yes
11205 else
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 ac_cv_type_pid_t=no
11211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11213 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11214 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11215 if test $ac_cv_type_pid_t = yes; then
11217 else
11219 cat >>confdefs.h <<_ACEOF
11220 #define pid_t int
11221 _ACEOF
11227 for ac_header in unistd.h vfork.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11238 else
11239 # Is the header compilable?
11240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 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_objext'
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_header_compiler=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_header_compiler=no
11280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6
11284 # Is the header present?
11285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11294 _ACEOF
11295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11306 else
11307 ac_cpp_err=
11309 else
11310 ac_cpp_err=yes
11312 if test -z "$ac_cpp_err"; then
11313 ac_header_preproc=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_header_preproc=no
11320 rm -f conftest.err conftest.$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11322 echo "${ECHO_T}$ac_header_preproc" >&6
11324 # So? What about this header?
11325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 yes:no: )
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11331 ac_header_preproc=yes
11333 no:yes:* )
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11347 cat <<\_ASBOX
11348 ## ------------------------------ ##
11349 ## Report this to admin@amule.org ##
11350 ## ------------------------------ ##
11351 _ASBOX
11353 sed "s/^/$as_me: WARNING: /" >&2
11355 esac
11356 echo "$as_me:$LINENO: checking for $ac_header" >&5
11357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 eval "$as_ac_Header=\$ac_header_preproc"
11363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370 _ACEOF
11374 done
11378 for ac_func in fork vfork
11380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11381 echo "$as_me:$LINENO: checking for $ac_func" >&5
11382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11383 if eval "test \"\${$as_ac_var+set}\" = set"; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h. */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11394 #define $ac_func innocuous_$ac_func
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11401 #ifdef __STDC__
11402 # include <limits.h>
11403 #else
11404 # include <assert.h>
11405 #endif
11407 #undef $ac_func
11409 /* Override any gcc2 internal prototype to avoid an error. */
11410 #ifdef __cplusplus
11411 extern "C"
11413 #endif
11414 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */
11416 char $ac_func ();
11417 /* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11421 choke me
11422 #else
11423 char (*f) () = $ac_func;
11424 #endif
11425 #ifdef __cplusplus
11427 #endif
11430 main ()
11432 return f != $ac_func;
11434 return 0;
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 eval "$as_ac_var=yes"
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 eval "$as_ac_var=no"
11466 rm -f conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11474 _ACEOF
11477 done
11479 if test "x$ac_cv_func_fork" = xyes; then
11480 echo "$as_me:$LINENO: checking for working fork" >&5
11481 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11482 if test "${ac_cv_func_fork_works+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 if test "$cross_compiling" = yes; then
11486 ac_cv_func_fork_works=cross
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* By Ruediger Kuhlmann. */
11490 #include <sys/types.h>
11491 #if HAVE_UNISTD_H
11492 # include <unistd.h>
11493 #endif
11494 /* Some systems only have a dummy stub for fork() */
11495 int main ()
11497 if (fork() < 0)
11498 exit (1);
11499 exit (0);
11501 _ACEOF
11502 rm -f conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 ac_cv_func_fork_works=yes
11514 else
11515 echo "$as_me: program exited with status $ac_status" >&5
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ( exit $ac_status )
11520 ac_cv_func_fork_works=no
11522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11526 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11528 else
11529 ac_cv_func_fork_works=$ac_cv_func_fork
11531 if test "x$ac_cv_func_fork_works" = xcross; then
11532 case $host in
11533 *-*-amigaos* | *-*-msdosdjgpp*)
11534 # Override, as these systems have only a dummy fork() stub
11535 ac_cv_func_fork_works=no
11538 ac_cv_func_fork_works=yes
11540 esac
11541 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11542 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11544 ac_cv_func_vfork_works=$ac_cv_func_vfork
11545 if test "x$ac_cv_func_vfork" = xyes; then
11546 echo "$as_me:$LINENO: checking for working vfork" >&5
11547 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11548 if test "${ac_cv_func_vfork_works+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 if test "$cross_compiling" = yes; then
11552 ac_cv_func_vfork_works=cross
11553 else
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 /* Thanks to Paul Eggert for this test. */
11561 #include <stdio.h>
11562 #include <stdlib.h>
11563 #include <sys/types.h>
11564 #include <sys/stat.h>
11565 #include <sys/wait.h>
11566 #if HAVE_UNISTD_H
11567 # include <unistd.h>
11568 #endif
11569 #if HAVE_VFORK_H
11570 # include <vfork.h>
11571 #endif
11572 /* On some sparc systems, changes by the child to local and incoming
11573 argument registers are propagated back to the parent. The compiler
11574 is told about this with #include <vfork.h>, but some compilers
11575 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11576 static variable whose address is put into a register that is
11577 clobbered by the vfork. */
11578 static void
11579 #ifdef __cplusplus
11580 sparc_address_test (int arg)
11581 # else
11582 sparc_address_test (arg) int arg;
11583 #endif
11585 static pid_t child;
11586 if (!child) {
11587 child = vfork ();
11588 if (child < 0) {
11589 perror ("vfork");
11590 _exit(2);
11592 if (!child) {
11593 arg = getpid();
11594 write(-1, "", 0);
11595 _exit (arg);
11601 main ()
11603 pid_t parent = getpid ();
11604 pid_t child;
11606 sparc_address_test (0);
11608 child = vfork ();
11610 if (child == 0) {
11611 /* Here is another test for sparc vfork register problems. This
11612 test uses lots of local variables, at least as many local
11613 variables as main has allocated so far including compiler
11614 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11615 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11616 reuse the register of parent for one of the local variables,
11617 since it will think that parent can't possibly be used any more
11618 in this routine. Assigning to the local variable will thus
11619 munge parent in the parent process. */
11620 pid_t
11621 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11622 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11623 /* Convince the compiler that p..p7 are live; otherwise, it might
11624 use the same hardware register for all 8 local variables. */
11625 if (p != p1 || p != p2 || p != p3 || p != p4
11626 || p != p5 || p != p6 || p != p7)
11627 _exit(1);
11629 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11630 from child file descriptors. If the child closes a descriptor
11631 before it execs or exits, this munges the parent's descriptor
11632 as well. Test for this by closing stdout in the child. */
11633 _exit(close(fileno(stdout)) != 0);
11634 } else {
11635 int status;
11636 struct stat st;
11638 while (wait(&status) != child)
11640 exit(
11641 /* Was there some problem with vforking? */
11642 child < 0
11644 /* Did the child fail? (This shouldn't happen.) */
11645 || status
11647 /* Did the vfork/compiler bug occur? */
11648 || parent != getpid()
11650 /* Did the file descriptor bug occur? */
11651 || fstat(fileno(stdout), &st) != 0
11655 _ACEOF
11656 rm -f conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_func_vfork_works=yes
11668 else
11669 echo "$as_me: program exited with status $ac_status" >&5
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ( exit $ac_status )
11674 ac_cv_func_vfork_works=no
11676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11679 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11680 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11683 if test "x$ac_cv_func_fork_works" = xcross; then
11684 ac_cv_func_vfork_works=$ac_cv_func_vfork
11685 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11686 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11689 if test "x$ac_cv_func_vfork_works" = xyes; then
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_WORKING_VFORK 1
11693 _ACEOF
11695 else
11697 cat >>confdefs.h <<\_ACEOF
11698 #define vfork fork
11699 _ACEOF
11702 if test "x$ac_cv_func_fork_works" = xyes; then
11704 cat >>confdefs.h <<\_ACEOF
11705 #define HAVE_WORKING_FORK 1
11706 _ACEOF
11710 if test x$SYS != xwin32; then
11712 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11713 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11714 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11715 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-lsun $LIBS"
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11727 /* Override any gcc2 internal prototype to avoid an error. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 /* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733 char getmntent ();
11735 main ()
11737 getmntent ();
11739 return 0;
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_lib_sun_getmntent=yes
11765 else
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_lib_sun_getmntent=no
11771 rm -f conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11776 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11777 if test $ac_cv_lib_sun_getmntent = yes; then
11778 LIBS="-lsun $LIBS"
11779 else
11780 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11781 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11782 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-lseq $LIBS"
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11794 /* Override any gcc2 internal prototype to avoid an error. */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 /* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11800 char getmntent ();
11802 main ()
11804 getmntent ();
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_lib_seq_getmntent=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_lib_seq_getmntent=no
11838 rm -f conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11842 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11843 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11844 if test $ac_cv_lib_seq_getmntent = yes; then
11845 LIBS="-lseq $LIBS"
11846 else
11847 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11848 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11849 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-lgen $LIBS"
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11861 /* Override any gcc2 internal prototype to avoid an error. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 /* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867 char getmntent ();
11869 main ()
11871 getmntent ();
11873 return 0;
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_lib_gen_getmntent=yes
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_cv_lib_gen_getmntent=no
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11910 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11911 if test $ac_cv_lib_gen_getmntent = yes; then
11912 LIBS="-lgen $LIBS"
11920 for ac_func in getmntent
11922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 echo "$as_me:$LINENO: checking for $ac_func" >&5
11924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11925 if eval "test \"\${$as_ac_var+set}\" = set"; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11936 #define $ac_func innocuous_$ac_func
11938 /* System header to define __stub macros and hopefully few prototypes,
11939 which can conflict with char $ac_func (); below.
11940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11941 <limits.h> exists even on freestanding compilers. */
11943 #ifdef __STDC__
11944 # include <limits.h>
11945 #else
11946 # include <assert.h>
11947 #endif
11949 #undef $ac_func
11951 /* Override any gcc2 internal prototype to avoid an error. */
11952 #ifdef __cplusplus
11953 extern "C"
11955 #endif
11956 /* We use char because int might match the return type of a gcc2
11957 builtin and then its argument prototype would still apply. */
11958 char $ac_func ();
11959 /* The GNU C library defines this for functions which it implements
11960 to always fail with ENOSYS. Some functions are actually named
11961 something starting with __ and the normal name is an alias. */
11962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11963 choke me
11964 #else
11965 char (*f) () = $ac_func;
11966 #endif
11967 #ifdef __cplusplus
11969 #endif
11972 main ()
11974 return f != $ac_func;
11976 return 0;
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981 (eval $ac_link) 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 eval "$as_ac_var=yes"
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 eval "$as_ac_var=no"
12008 rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12013 if test `eval echo '${'$as_ac_var'}'` = yes; then
12014 cat >>confdefs.h <<_ACEOF
12015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 _ACEOF
12019 done
12022 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12023 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12024 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 rm -f conftest.sym conftest.file
12028 echo >conftest.file
12029 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12030 if test "$cross_compiling" = yes; then
12031 ac_cv_func_lstat_dereferences_slashed_symlink=no
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12041 main ()
12043 struct stat sbuf;
12044 /* Linux will dereference the symlink and fail.
12045 That is better in the sense that it means we will not
12046 have to compile and use the lstat wrapper. */
12047 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12049 return 0;
12051 _ACEOF
12052 rm -f conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12064 else
12065 echo "$as_me: program exited with status $ac_status" >&5
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ( exit $ac_status )
12070 ac_cv_func_lstat_dereferences_slashed_symlink=no
12072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12074 else
12075 # If the `ln -s' command failed, then we probably don't even
12076 # have an lstat function.
12077 ac_cv_func_lstat_dereferences_slashed_symlink=no
12079 rm -f conftest.sym conftest.file
12082 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12083 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12085 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12087 cat >>confdefs.h <<_ACEOF
12088 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12089 _ACEOF
12092 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12093 case $LIBOBJS in
12094 "lstat.$ac_objext" | \
12095 *" lstat.$ac_objext" | \
12096 "lstat.$ac_objext "* | \
12097 *" lstat.$ac_objext "* ) ;;
12098 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12099 esac
12103 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12104 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12105 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 if test "$cross_compiling" = yes; then
12109 ac_cv_func_lstat_empty_string_bug=yes
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 $ac_includes_default
12119 main ()
12121 struct stat sbuf;
12122 exit (lstat ("", &sbuf) ? 1 : 0);
12124 return 0;
12126 _ACEOF
12127 rm -f conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_cv_func_lstat_empty_string_bug=yes
12139 else
12140 echo "$as_me: program exited with status $ac_status" >&5
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ( exit $ac_status )
12145 ac_cv_func_lstat_empty_string_bug=no
12147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12150 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12151 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12152 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12153 case $LIBOBJS in
12154 "lstat.$ac_objext" | \
12155 *" lstat.$ac_objext" | \
12156 "lstat.$ac_objext "* | \
12157 *" lstat.$ac_objext "* ) ;;
12158 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12159 esac
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12164 _ACEOF
12168 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12169 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12170 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173 rm -f conftest.sym conftest.file
12174 echo >conftest.file
12175 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12176 if test "$cross_compiling" = yes; then
12177 ac_cv_func_lstat_dereferences_slashed_symlink=no
12178 else
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h. */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 $ac_includes_default
12187 main ()
12189 struct stat sbuf;
12190 /* Linux will dereference the symlink and fail.
12191 That is better in the sense that it means we will not
12192 have to compile and use the lstat wrapper. */
12193 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12195 return 0;
12197 _ACEOF
12198 rm -f conftest$ac_exeext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200 (eval $ac_link) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12210 else
12211 echo "$as_me: program exited with status $ac_status" >&5
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ( exit $ac_status )
12216 ac_cv_func_lstat_dereferences_slashed_symlink=no
12218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12220 else
12221 # If the `ln -s' command failed, then we probably don't even
12222 # have an lstat function.
12223 ac_cv_func_lstat_dereferences_slashed_symlink=no
12225 rm -f conftest.sym conftest.file
12228 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12229 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12231 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12233 cat >>confdefs.h <<_ACEOF
12234 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12235 _ACEOF
12238 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12239 case $LIBOBJS in
12240 "lstat.$ac_objext" | \
12241 *" lstat.$ac_objext" | \
12242 "lstat.$ac_objext "* | \
12243 *" lstat.$ac_objext "* ) ;;
12244 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12245 esac
12252 echo "$as_me:$LINENO: checking for working memcmp" >&5
12253 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12254 if test "${ac_cv_func_memcmp_working+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 if test "$cross_compiling" = yes; then
12258 ac_cv_func_memcmp_working=no
12259 else
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12268 main ()
12271 /* Some versions of memcmp are not 8-bit clean. */
12272 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12273 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12274 exit (1);
12276 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12277 or more and with at least one buffer not starting on a 4-byte boundary.
12278 William Lewis provided this test program. */
12280 char foo[21];
12281 char bar[21];
12282 int i;
12283 for (i = 0; i < 4; i++)
12285 char *a = foo + i;
12286 char *b = bar + i;
12287 strcpy (a, "--------01111111");
12288 strcpy (b, "--------10000000");
12289 if (memcmp (a, b, 16) >= 0)
12290 exit (1);
12292 exit (0);
12296 return 0;
12298 _ACEOF
12299 rm -f conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_func_memcmp_working=yes
12311 else
12312 echo "$as_me: program exited with status $ac_status" >&5
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ( exit $ac_status )
12317 ac_cv_func_memcmp_working=no
12319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12322 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12323 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12324 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12325 "memcmp.$ac_objext" | \
12326 *" memcmp.$ac_objext" | \
12327 "memcmp.$ac_objext "* | \
12328 *" memcmp.$ac_objext "* ) ;;
12329 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12330 esac
12335 for ac_header in stdlib.h unistd.h
12337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12339 echo "$as_me:$LINENO: checking for $ac_header" >&5
12340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12346 else
12347 # Is the header compilable?
12348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 $ac_includes_default
12357 #include <$ac_header>
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_header_compiler=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_header_compiler=no
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12390 echo "${ECHO_T}$ac_header_compiler" >&6
12392 # Is the header present?
12393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12395 cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 #include <$ac_header>
12402 _ACEOF
12403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } >/dev/null; then
12411 if test -s conftest.err; then
12412 ac_cpp_err=$ac_c_preproc_warn_flag
12413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12414 else
12415 ac_cpp_err=
12417 else
12418 ac_cpp_err=yes
12420 if test -z "$ac_cpp_err"; then
12421 ac_header_preproc=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_header_preproc=no
12428 rm -f conftest.err conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12430 echo "${ECHO_T}$ac_header_preproc" >&6
12432 # So? What about this header?
12433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12434 yes:no: )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12439 ac_header_preproc=yes
12441 no:yes:* )
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12455 cat <<\_ASBOX
12456 ## ------------------------------ ##
12457 ## Report this to admin@amule.org ##
12458 ## ------------------------------ ##
12459 _ASBOX
12461 sed "s/^/$as_me: WARNING: /" >&2
12463 esac
12464 echo "$as_me:$LINENO: checking for $ac_header" >&5
12465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469 eval "$as_ac_Header=\$ac_header_preproc"
12471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478 _ACEOF
12482 done
12485 for ac_func in getpagesize
12487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488 echo "$as_me:$LINENO: checking for $ac_func" >&5
12489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12490 if eval "test \"\${$as_ac_var+set}\" = set"; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h. */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501 #define $ac_func innocuous_$ac_func
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12508 #ifdef __STDC__
12509 # include <limits.h>
12510 #else
12511 # include <assert.h>
12512 #endif
12514 #undef $ac_func
12516 /* Override any gcc2 internal prototype to avoid an error. */
12517 #ifdef __cplusplus
12518 extern "C"
12520 #endif
12521 /* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523 char $ac_func ();
12524 /* The GNU C library defines this for functions which it implements
12525 to always fail with ENOSYS. Some functions are actually named
12526 something starting with __ and the normal name is an alias. */
12527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12528 choke me
12529 #else
12530 char (*f) () = $ac_func;
12531 #endif
12532 #ifdef __cplusplus
12534 #endif
12537 main ()
12539 return f != $ac_func;
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12546 (eval $ac_link) 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -z "$ac_c_werror_flag"
12554 || test ! -s conftest.err'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; } &&
12560 { ac_try='test -s conftest$ac_exeext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 eval "$as_ac_var=yes"
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 eval "$as_ac_var=no"
12573 rm -f conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12578 if test `eval echo '${'$as_ac_var'}'` = yes; then
12579 cat >>confdefs.h <<_ACEOF
12580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12581 _ACEOF
12584 done
12586 echo "$as_me:$LINENO: checking for working mmap" >&5
12587 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12588 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 if test "$cross_compiling" = yes; then
12592 ac_cv_func_mmap_fixed_mapped=no
12593 else
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12601 /* malloc might have been renamed as rpl_malloc. */
12602 #undef malloc
12604 /* Thanks to Mike Haertel and Jim Avera for this test.
12605 Here is a matrix of mmap possibilities:
12606 mmap private not fixed
12607 mmap private fixed at somewhere currently unmapped
12608 mmap private fixed at somewhere already mapped
12609 mmap shared not fixed
12610 mmap shared fixed at somewhere currently unmapped
12611 mmap shared fixed at somewhere already mapped
12612 For private mappings, we should verify that changes cannot be read()
12613 back from the file, nor mmap's back from the file at a different
12614 address. (There have been systems where private was not correctly
12615 implemented like the infamous i386 svr4.0, and systems where the
12616 VM page cache was not coherent with the file system buffer cache
12617 like early versions of FreeBSD and possibly contemporary NetBSD.)
12618 For shared mappings, we should conversely verify that changes get
12619 propagated back to all the places they're supposed to be.
12621 Grep wants private fixed already mapped.
12622 The main things grep needs to know about mmap are:
12623 * does it exist and is it safe to write into the mmap'd area
12624 * how to use it (BSD variants) */
12626 #include <fcntl.h>
12627 #include <sys/mman.h>
12629 #if !STDC_HEADERS && !HAVE_STDLIB_H
12630 char *malloc ();
12631 #endif
12633 /* This mess was copied from the GNU getpagesize.h. */
12634 #if !HAVE_GETPAGESIZE
12635 /* Assume that all systems that can run configure have sys/param.h. */
12636 # if !HAVE_SYS_PARAM_H
12637 # define HAVE_SYS_PARAM_H 1
12638 # endif
12640 # ifdef _SC_PAGESIZE
12641 # define getpagesize() sysconf(_SC_PAGESIZE)
12642 # else /* no _SC_PAGESIZE */
12643 # if HAVE_SYS_PARAM_H
12644 # include <sys/param.h>
12645 # ifdef EXEC_PAGESIZE
12646 # define getpagesize() EXEC_PAGESIZE
12647 # else /* no EXEC_PAGESIZE */
12648 # ifdef NBPG
12649 # define getpagesize() NBPG * CLSIZE
12650 # ifndef CLSIZE
12651 # define CLSIZE 1
12652 # endif /* no CLSIZE */
12653 # else /* no NBPG */
12654 # ifdef NBPC
12655 # define getpagesize() NBPC
12656 # else /* no NBPC */
12657 # ifdef PAGESIZE
12658 # define getpagesize() PAGESIZE
12659 # endif /* PAGESIZE */
12660 # endif /* no NBPC */
12661 # endif /* no NBPG */
12662 # endif /* no EXEC_PAGESIZE */
12663 # else /* no HAVE_SYS_PARAM_H */
12664 # define getpagesize() 8192 /* punt totally */
12665 # endif /* no HAVE_SYS_PARAM_H */
12666 # endif /* no _SC_PAGESIZE */
12668 #endif /* no HAVE_GETPAGESIZE */
12671 main ()
12673 char *data, *data2, *data3;
12674 int i, pagesize;
12675 int fd;
12677 pagesize = getpagesize ();
12679 /* First, make a file with some known garbage in it. */
12680 data = (char *) malloc (pagesize);
12681 if (!data)
12682 exit (1);
12683 for (i = 0; i < pagesize; ++i)
12684 *(data + i) = rand ();
12685 umask (0);
12686 fd = creat ("conftest.mmap", 0600);
12687 if (fd < 0)
12688 exit (1);
12689 if (write (fd, data, pagesize) != pagesize)
12690 exit (1);
12691 close (fd);
12693 /* Next, try to mmap the file at a fixed address which already has
12694 something else allocated at it. If we can, also make sure that
12695 we see the same garbage. */
12696 fd = open ("conftest.mmap", O_RDWR);
12697 if (fd < 0)
12698 exit (1);
12699 data2 = (char *) malloc (2 * pagesize);
12700 if (!data2)
12701 exit (1);
12702 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12703 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12704 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12705 exit (1);
12706 for (i = 0; i < pagesize; ++i)
12707 if (*(data + i) != *(data2 + i))
12708 exit (1);
12710 /* Finally, make sure that changes to the mapped area do not
12711 percolate back to the file as seen by read(). (This is a bug on
12712 some variants of i386 svr4.0.) */
12713 for (i = 0; i < pagesize; ++i)
12714 *(data2 + i) = *(data2 + i) + 1;
12715 data3 = (char *) malloc (pagesize);
12716 if (!data3)
12717 exit (1);
12718 if (read (fd, data3, pagesize) != pagesize)
12719 exit (1);
12720 for (i = 0; i < pagesize; ++i)
12721 if (*(data + i) != *(data3 + i))
12722 exit (1);
12723 close (fd);
12724 exit (0);
12726 _ACEOF
12727 rm -f conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_func_mmap_fixed_mapped=yes
12739 else
12740 echo "$as_me: program exited with status $ac_status" >&5
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12744 ( exit $ac_status )
12745 ac_cv_func_mmap_fixed_mapped=no
12747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12751 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12752 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_MMAP 1
12756 _ACEOF
12759 rm -f conftest.mmap
12763 for ac_header in sys/select.h sys/socket.h
12765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12767 echo "$as_me:$LINENO: checking for $ac_header" >&5
12768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12774 else
12775 # Is the header compilable?
12776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 $ac_includes_default
12785 #include <$ac_header>
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -z "$ac_c_werror_flag"
12797 || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_header_compiler=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_compiler=no
12816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12818 echo "${ECHO_T}$ac_header_compiler" >&6
12820 # Is the header present?
12821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 #include <$ac_header>
12830 _ACEOF
12831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } >/dev/null; then
12839 if test -s conftest.err; then
12840 ac_cpp_err=$ac_c_preproc_warn_flag
12841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12842 else
12843 ac_cpp_err=
12845 else
12846 ac_cpp_err=yes
12848 if test -z "$ac_cpp_err"; then
12849 ac_header_preproc=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_header_preproc=no
12856 rm -f conftest.err conftest.$ac_ext
12857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 yes:no: )
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12869 no:yes:* )
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12883 cat <<\_ASBOX
12884 ## ------------------------------ ##
12885 ## Report this to admin@amule.org ##
12886 ## ------------------------------ ##
12887 _ASBOX
12889 sed "s/^/$as_me: WARNING: /" >&2
12891 esac
12892 echo "$as_me:$LINENO: checking for $ac_header" >&5
12893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897 eval "$as_ac_Header=\$ac_header_preproc"
12899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12904 cat >>confdefs.h <<_ACEOF
12905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12906 _ACEOF
12910 done
12912 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12913 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12914 if test "${ac_cv_func_select_args+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12918 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12919 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h. */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 $ac_includes_default
12927 #if HAVE_SYS_SELECT_H
12928 # include <sys/select.h>
12929 #endif
12930 #if HAVE_SYS_SOCKET_H
12931 # include <sys/socket.h>
12932 #endif
12935 main ()
12937 extern int select ($ac_arg1,
12938 $ac_arg234, $ac_arg234, $ac_arg234,
12939 $ac_arg5);
12941 return 0;
12943 _ACEOF
12944 rm -f conftest.$ac_objext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag"
12954 || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12967 else
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12973 done
12974 done
12975 done
12976 # Provide a safe default value.
12977 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12980 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12981 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12982 ac_save_IFS=$IFS; IFS=','
12983 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12984 IFS=$ac_save_IFS
12985 shift
12987 cat >>confdefs.h <<_ACEOF
12988 #define SELECT_TYPE_ARG1 $1
12989 _ACEOF
12992 cat >>confdefs.h <<_ACEOF
12993 #define SELECT_TYPE_ARG234 ($2)
12994 _ACEOF
12997 cat >>confdefs.h <<_ACEOF
12998 #define SELECT_TYPE_ARG5 ($3)
12999 _ACEOF
13001 rm -f conftest*
13003 echo "$as_me:$LINENO: checking for function prototypes" >&5
13004 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13005 if test "$ac_cv_prog_cc_stdc" != no; then
13006 echo "$as_me:$LINENO: result: yes" >&5
13007 echo "${ECHO_T}yes" >&6
13009 cat >>confdefs.h <<\_ACEOF
13010 #define PROTOTYPES 1
13011 _ACEOF
13014 cat >>confdefs.h <<\_ACEOF
13015 #define __PROTOTYPES 1
13016 _ACEOF
13018 else
13019 echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6
13023 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13024 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13025 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_cv_func_setvbuf_reversed=no
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13035 #include <stdio.h>
13036 # if PROTOTYPES
13037 int (setvbuf) (FILE *, int, char *, size_t);
13038 # endif
13040 main ()
13042 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13044 return 0;
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075 #include <stdio.h>
13076 # if PROTOTYPES
13077 int (setvbuf) (FILE *, int, char *, size_t);
13078 # endif
13080 main ()
13082 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13084 return 0;
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
13096 { ac_try='test -z "$ac_c_werror_flag"
13097 || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 # It compiles and links either way, so it must not be declared
13110 # with a prototype and most likely this is a K&R C compiler.
13111 # Try running it.
13112 if test "$cross_compiling" = yes; then
13113 : # Assume setvbuf is not reversed when cross-compiling.
13114 else
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h. */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <stdio.h>
13123 main ()
13125 /* This call has the arguments reversed.
13126 A reversed system may check and see that the address of buf
13127 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13128 char buf;
13129 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13130 exit (1);
13131 putchar ('\r');
13132 exit (0); /* Non-reversed systems SEGV here. */
13134 return 0;
13136 _ACEOF
13137 rm -f conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_func_setvbuf_reversed=yes
13149 else
13150 echo "$as_me: program exited with status $ac_status" >&5
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ( exit $ac_status )
13155 rm -f core *.core
13157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13159 ac_cv_func_setvbuf_reversed=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13165 rm -f conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13172 rm -f conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13176 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13177 if test $ac_cv_func_setvbuf_reversed = yes; then
13179 cat >>confdefs.h <<\_ACEOF
13180 #define SETVBUF_REVERSED 1
13181 _ACEOF
13185 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13186 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13187 if test "${ac_cv_type_signal+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <sys/types.h>
13197 #include <signal.h>
13198 #ifdef signal
13199 # undef signal
13200 #endif
13201 #ifdef __cplusplus
13202 extern "C" void (*signal (int, void (*)(int)))(int);
13203 #else
13204 void (*signal ()) ();
13205 #endif
13208 main ()
13210 int i;
13212 return 0;
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_type_signal=void
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_type_signal=int
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13247 echo "${ECHO_T}$ac_cv_type_signal" >&6
13249 cat >>confdefs.h <<_ACEOF
13250 #define RETSIGTYPE $ac_cv_type_signal
13251 _ACEOF
13254 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13255 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13256 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 if test "$cross_compiling" = yes; then
13260 ac_cv_func_stat_empty_string_bug=yes
13261 else
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h. */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13270 main ()
13272 struct stat sbuf;
13273 exit (stat ("", &sbuf) ? 1 : 0);
13275 return 0;
13277 _ACEOF
13278 rm -f conftest$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_func_stat_empty_string_bug=yes
13290 else
13291 echo "$as_me: program exited with status $ac_status" >&5
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ( exit $ac_status )
13296 ac_cv_func_stat_empty_string_bug=no
13298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13301 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13302 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13303 if test $ac_cv_func_stat_empty_string_bug = yes; then
13304 case $LIBOBJS in
13305 "stat.$ac_objext" | \
13306 *" stat.$ac_objext" | \
13307 "stat.$ac_objext "* | \
13308 *" stat.$ac_objext "* ) ;;
13309 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13310 esac
13313 cat >>confdefs.h <<_ACEOF
13314 #define HAVE_STAT_EMPTY_STRING_BUG 1
13315 _ACEOF
13320 for ac_func in strftime
13322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 echo "$as_me:$LINENO: checking for $ac_func" >&5
13324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13325 if eval "test \"\${$as_ac_var+set}\" = set"; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13336 #define $ac_func innocuous_$ac_func
13338 /* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char $ac_func (); below.
13340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13341 <limits.h> exists even on freestanding compilers. */
13343 #ifdef __STDC__
13344 # include <limits.h>
13345 #else
13346 # include <assert.h>
13347 #endif
13349 #undef $ac_func
13351 /* Override any gcc2 internal prototype to avoid an error. */
13352 #ifdef __cplusplus
13353 extern "C"
13355 #endif
13356 /* We use char because int might match the return type of a gcc2
13357 builtin and then its argument prototype would still apply. */
13358 char $ac_func ();
13359 /* The GNU C library defines this for functions which it implements
13360 to always fail with ENOSYS. Some functions are actually named
13361 something starting with __ and the normal name is an alias. */
13362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13363 choke me
13364 #else
13365 char (*f) () = $ac_func;
13366 #endif
13367 #ifdef __cplusplus
13369 #endif
13372 main ()
13374 return f != $ac_func;
13376 return 0;
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag"
13389 || test ! -s conftest.err'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 eval "$as_ac_var=yes"
13402 else
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 eval "$as_ac_var=no"
13408 rm -f conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13413 if test `eval echo '${'$as_ac_var'}'` = yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13416 _ACEOF
13418 else
13419 # strftime is in -lintl on SCO UNIX.
13420 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13421 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13422 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lintl $LIBS"
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. */
13434 /* Override any gcc2 internal prototype to avoid an error. */
13435 #ifdef __cplusplus
13436 extern "C"
13437 #endif
13438 /* We use char because int might match the return type of a gcc2
13439 builtin and then its argument prototype would still apply. */
13440 char strftime ();
13442 main ()
13444 strftime ();
13446 return 0;
13448 _ACEOF
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -z "$ac_c_werror_flag"
13459 || test ! -s conftest.err'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_lib_intl_strftime=yes
13472 else
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 ac_cv_lib_intl_strftime=no
13478 rm -f conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13483 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13484 if test $ac_cv_lib_intl_strftime = yes; then
13485 cat >>confdefs.h <<\_ACEOF
13486 #define HAVE_STRFTIME 1
13487 _ACEOF
13489 LIBS="-lintl $LIBS"
13493 done
13495 echo "$as_me:$LINENO: checking for working strtod" >&5
13496 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13497 if test "${ac_cv_func_strtod+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 if test "$cross_compiling" = yes; then
13501 ac_cv_func_strtod=no
13502 else
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 double strtod ();
13512 main()
13515 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13516 char *string = " +69";
13517 char *term;
13518 double value;
13519 value = strtod (string, &term);
13520 if (value != 69 || term != (string + 4))
13521 exit (1);
13525 /* Under Solaris 2.4, strtod returns the wrong value for the
13526 terminating character under some conditions. */
13527 char *string = "NaN";
13528 char *term;
13529 strtod (string, &term);
13530 if (term != string && *(term - 1) == 0)
13531 exit (1);
13533 exit (0);
13536 _ACEOF
13537 rm -f conftest$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_func_strtod=yes
13549 else
13550 echo "$as_me: program exited with status $ac_status" >&5
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ( exit $ac_status )
13555 ac_cv_func_strtod=no
13557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13560 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13561 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13562 if test $ac_cv_func_strtod = no; then
13563 case $LIBOBJS in
13564 "strtod.$ac_objext" | \
13565 *" strtod.$ac_objext" | \
13566 "strtod.$ac_objext "* | \
13567 *" strtod.$ac_objext "* ) ;;
13568 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13569 esac
13571 echo "$as_me:$LINENO: checking for pow" >&5
13572 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13573 if test "${ac_cv_func_pow+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13584 #define pow innocuous_pow
13586 /* System header to define __stub macros and hopefully few prototypes,
13587 which can conflict with char pow (); below.
13588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13589 <limits.h> exists even on freestanding compilers. */
13591 #ifdef __STDC__
13592 # include <limits.h>
13593 #else
13594 # include <assert.h>
13595 #endif
13597 #undef pow
13599 /* Override any gcc2 internal prototype to avoid an error. */
13600 #ifdef __cplusplus
13601 extern "C"
13603 #endif
13604 /* We use char because int might match the return type of a gcc2
13605 builtin and then its argument prototype would still apply. */
13606 char pow ();
13607 /* The GNU C library defines this for functions which it implements
13608 to always fail with ENOSYS. Some functions are actually named
13609 something starting with __ and the normal name is an alias. */
13610 #if defined (__stub_pow) || defined (__stub___pow)
13611 choke me
13612 #else
13613 char (*f) () = pow;
13614 #endif
13615 #ifdef __cplusplus
13617 #endif
13620 main ()
13622 return f != pow;
13624 return 0;
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_func_pow=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_func_pow=no
13656 rm -f conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13659 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13660 echo "${ECHO_T}$ac_cv_func_pow" >&6
13662 if test $ac_cv_func_pow = no; then
13663 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13664 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13665 if test "${ac_cv_lib_m_pow+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lm $LIBS"
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13677 /* Override any gcc2 internal prototype to avoid an error. */
13678 #ifdef __cplusplus
13679 extern "C"
13680 #endif
13681 /* We use char because int might match the return type of a gcc2
13682 builtin and then its argument prototype would still apply. */
13683 char pow ();
13685 main ()
13687 pow ();
13689 return 0;
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_m_pow=yes
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_cv_lib_m_pow=no
13721 rm -f conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13726 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13727 if test $ac_cv_lib_m_pow = yes; then
13728 POW_LIB=-lm
13729 else
13730 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13731 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13739 for ac_func in vprintf
13741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13742 echo "$as_me:$LINENO: checking for $ac_func" >&5
13743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13744 if eval "test \"\${$as_ac_var+set}\" = set"; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13755 #define $ac_func innocuous_$ac_func
13757 /* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char $ac_func (); below.
13759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13760 <limits.h> exists even on freestanding compilers. */
13762 #ifdef __STDC__
13763 # include <limits.h>
13764 #else
13765 # include <assert.h>
13766 #endif
13768 #undef $ac_func
13770 /* Override any gcc2 internal prototype to avoid an error. */
13771 #ifdef __cplusplus
13772 extern "C"
13774 #endif
13775 /* We use char because int might match the return type of a gcc2
13776 builtin and then its argument prototype would still apply. */
13777 char $ac_func ();
13778 /* The GNU C library defines this for functions which it implements
13779 to always fail with ENOSYS. Some functions are actually named
13780 something starting with __ and the normal name is an alias. */
13781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13782 choke me
13783 #else
13784 char (*f) () = $ac_func;
13785 #endif
13786 #ifdef __cplusplus
13788 #endif
13791 main ()
13793 return f != $ac_func;
13795 return 0;
13797 _ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 eval "$as_ac_var=yes"
13821 else
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 eval "$as_ac_var=no"
13827 rm -f conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13832 if test `eval echo '${'$as_ac_var'}'` = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13835 _ACEOF
13837 echo "$as_me:$LINENO: checking for _doprnt" >&5
13838 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13839 if test "${ac_cv_func__doprnt+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13850 #define _doprnt innocuous__doprnt
13852 /* System header to define __stub macros and hopefully few prototypes,
13853 which can conflict with char _doprnt (); below.
13854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13855 <limits.h> exists even on freestanding compilers. */
13857 #ifdef __STDC__
13858 # include <limits.h>
13859 #else
13860 # include <assert.h>
13861 #endif
13863 #undef _doprnt
13865 /* Override any gcc2 internal prototype to avoid an error. */
13866 #ifdef __cplusplus
13867 extern "C"
13869 #endif
13870 /* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13872 char _doprnt ();
13873 /* The GNU C library defines this for functions which it implements
13874 to always fail with ENOSYS. Some functions are actually named
13875 something starting with __ and the normal name is an alias. */
13876 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13877 choke me
13878 #else
13879 char (*f) () = _doprnt;
13880 #endif
13881 #ifdef __cplusplus
13883 #endif
13886 main ()
13888 return f != _doprnt;
13890 return 0;
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_func__doprnt=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_func__doprnt=no
13922 rm -f conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13925 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13926 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13927 if test $ac_cv_func__doprnt = yes; then
13929 cat >>confdefs.h <<\_ACEOF
13930 #define HAVE_DOPRNT 1
13931 _ACEOF
13936 done
13939 if test $cross_compiling = yes -a $gnumalloc = yes; then
13941 { echo "$as_me:$LINENO: WARNING:
13942 configure cannot check whether malloc() and realloc() are GNU libc
13943 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13944 run configure with the --without-gnu-malloc switch." >&5
13945 echo "$as_me: WARNING:
13946 configure cannot check whether malloc() and realloc() are GNU libc
13947 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13948 run configure with the --without-gnu-malloc switch." >&2;}
13949 _mule_warning_9=yes
13950 _mule_has_warnings=yes
13952 ac_cv_func_malloc_0_nonnull=yes
13953 ac_cv_func_realloc_0_nonnull=yes
13958 for ac_header in stdlib.h
13960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo "$as_me:$LINENO: checking for $ac_header" >&5
13963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969 else
13970 # Is the header compilable?
13971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13980 #include <$ac_header>
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_header_compiler=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_compiler=no
14011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14013 echo "${ECHO_T}$ac_header_compiler" >&6
14015 # Is the header present?
14016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14018 cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h. */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 #include <$ac_header>
14025 _ACEOF
14026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14028 ac_status=$?
14029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } >/dev/null; then
14034 if test -s conftest.err; then
14035 ac_cpp_err=$ac_c_preproc_warn_flag
14036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14037 else
14038 ac_cpp_err=
14040 else
14041 ac_cpp_err=yes
14043 if test -z "$ac_cpp_err"; then
14044 ac_header_preproc=yes
14045 else
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_header_preproc=no
14051 rm -f conftest.err conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053 echo "${ECHO_T}$ac_header_preproc" >&6
14055 # So? What about this header?
14056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14057 yes:no: )
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14062 ac_header_preproc=yes
14064 no:yes:* )
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14078 cat <<\_ASBOX
14079 ## ------------------------------ ##
14080 ## Report this to admin@amule.org ##
14081 ## ------------------------------ ##
14082 _ASBOX
14084 sed "s/^/$as_me: WARNING: /" >&2
14086 esac
14087 echo "$as_me:$LINENO: checking for $ac_header" >&5
14088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092 eval "$as_ac_Header=\$ac_header_preproc"
14094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14099 cat >>confdefs.h <<_ACEOF
14100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14101 _ACEOF
14105 done
14107 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14108 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14109 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 if test "$cross_compiling" = yes; then
14113 ac_cv_func_malloc_0_nonnull=no
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 #if STDC_HEADERS || HAVE_STDLIB_H
14122 # include <stdlib.h>
14123 #else
14124 char *malloc ();
14125 #endif
14128 main ()
14130 exit (malloc (0) ? 0 : 1);
14132 return 0;
14134 _ACEOF
14135 rm -f conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_func_malloc_0_nonnull=yes
14147 else
14148 echo "$as_me: program exited with status $ac_status" >&5
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ( exit $ac_status )
14153 ac_cv_func_malloc_0_nonnull=no
14155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14159 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14160 if test $ac_cv_func_malloc_0_nonnull = yes; then
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_MALLOC 1
14164 _ACEOF
14166 else
14167 cat >>confdefs.h <<\_ACEOF
14168 #define HAVE_MALLOC 0
14169 _ACEOF
14171 case $LIBOBJS in
14172 "malloc.$ac_objext" | \
14173 *" malloc.$ac_objext" | \
14174 "malloc.$ac_objext "* | \
14175 *" malloc.$ac_objext "* ) ;;
14176 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
14177 esac
14180 cat >>confdefs.h <<\_ACEOF
14181 #define malloc rpl_malloc
14182 _ACEOF
14189 for ac_header in stdlib.h
14191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14193 echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200 else
14201 # Is the header compilable?
14202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14211 #include <$ac_header>
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_header_compiler=yes
14236 else
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_header_compiler=no
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14244 echo "${ECHO_T}$ac_header_compiler" >&6
14246 # Is the header present?
14247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 #include <$ac_header>
14256 _ACEOF
14257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } >/dev/null; then
14265 if test -s conftest.err; then
14266 ac_cpp_err=$ac_c_preproc_warn_flag
14267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14268 else
14269 ac_cpp_err=
14271 else
14272 ac_cpp_err=yes
14274 if test -z "$ac_cpp_err"; then
14275 ac_header_preproc=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_header_preproc=no
14282 rm -f conftest.err conftest.$ac_ext
14283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6
14286 # So? What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14288 yes:no: )
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293 ac_header_preproc=yes
14295 no:yes:* )
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14309 cat <<\_ASBOX
14310 ## ------------------------------ ##
14311 ## Report this to admin@amule.org ##
14312 ## ------------------------------ ##
14313 _ASBOX
14315 sed "s/^/$as_me: WARNING: /" >&2
14317 esac
14318 echo "$as_me:$LINENO: checking for $ac_header" >&5
14319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323 eval "$as_ac_Header=\$ac_header_preproc"
14325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14330 cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 _ACEOF
14336 done
14338 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14339 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14340 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343 if test "$cross_compiling" = yes; then
14344 ac_cv_func_realloc_0_nonnull=no
14345 else
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #if STDC_HEADERS || HAVE_STDLIB_H
14353 # include <stdlib.h>
14354 #else
14355 char *realloc ();
14356 #endif
14359 main ()
14361 exit (realloc (0, 0) ? 0 : 1);
14363 return 0;
14365 _ACEOF
14366 rm -f conftest$ac_exeext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368 (eval $ac_link) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_func_realloc_0_nonnull=yes
14378 else
14379 echo "$as_me: program exited with status $ac_status" >&5
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ( exit $ac_status )
14384 ac_cv_func_realloc_0_nonnull=no
14386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14390 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14391 if test $ac_cv_func_realloc_0_nonnull = yes; then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_REALLOC 1
14395 _ACEOF
14397 else
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_REALLOC 0
14400 _ACEOF
14402 case $LIBOBJS in
14403 "realloc.$ac_objext" | \
14404 *" realloc.$ac_objext" | \
14405 "realloc.$ac_objext "* | \
14406 *" realloc.$ac_objext "* ) ;;
14407 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14408 esac
14411 cat >>confdefs.h <<\_ACEOF
14412 #define realloc rpl_realloc
14413 _ACEOF
14453 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul mmap
14455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14456 echo "$as_me:$LINENO: checking for $ac_func" >&5
14457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14458 if eval "test \"\${$as_ac_var+set}\" = set"; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14469 #define $ac_func innocuous_$ac_func
14471 /* System header to define __stub macros and hopefully few prototypes,
14472 which can conflict with char $ac_func (); below.
14473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14474 <limits.h> exists even on freestanding compilers. */
14476 #ifdef __STDC__
14477 # include <limits.h>
14478 #else
14479 # include <assert.h>
14480 #endif
14482 #undef $ac_func
14484 /* Override any gcc2 internal prototype to avoid an error. */
14485 #ifdef __cplusplus
14486 extern "C"
14488 #endif
14489 /* We use char because int might match the return type of a gcc2
14490 builtin and then its argument prototype would still apply. */
14491 char $ac_func ();
14492 /* The GNU C library defines this for functions which it implements
14493 to always fail with ENOSYS. Some functions are actually named
14494 something starting with __ and the normal name is an alias. */
14495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14496 choke me
14497 #else
14498 char (*f) () = $ac_func;
14499 #endif
14500 #ifdef __cplusplus
14502 #endif
14505 main ()
14507 return f != $ac_func;
14509 return 0;
14511 _ACEOF
14512 rm -f conftest.$ac_objext conftest$ac_exeext
14513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14514 (eval $ac_link) 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag"
14522 || test ! -s conftest.err'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest$ac_exeext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 eval "$as_ac_var=yes"
14535 else
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 eval "$as_ac_var=no"
14541 rm -f conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14546 if test `eval echo '${'$as_ac_var'}'` = yes; then
14547 cat >>confdefs.h <<_ACEOF
14548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14549 _ACEOF
14552 done
14554 #-------------------------------------------------------------------------------
14555 # End of autoscan stuff
14556 #-------------------------------------------------------------------------------
14562 for ac_func in mkdir getrlimit setrlimit getopt_long
14564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14565 echo "$as_me:$LINENO: checking for $ac_func" >&5
14566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14567 if eval "test \"\${$as_ac_var+set}\" = set"; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14578 #define $ac_func innocuous_$ac_func
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char $ac_func (); below.
14582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583 <limits.h> exists even on freestanding compilers. */
14585 #ifdef __STDC__
14586 # include <limits.h>
14587 #else
14588 # include <assert.h>
14589 #endif
14591 #undef $ac_func
14593 /* Override any gcc2 internal prototype to avoid an error. */
14594 #ifdef __cplusplus
14595 extern "C"
14597 #endif
14598 /* We use char because int might match the return type of a gcc2
14599 builtin and then its argument prototype would still apply. */
14600 char $ac_func ();
14601 /* The GNU C library defines this for functions which it implements
14602 to always fail with ENOSYS. Some functions are actually named
14603 something starting with __ and the normal name is an alias. */
14604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14605 choke me
14606 #else
14607 char (*f) () = $ac_func;
14608 #endif
14609 #ifdef __cplusplus
14611 #endif
14614 main ()
14616 return f != $ac_func;
14618 return 0;
14620 _ACEOF
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 eval "$as_ac_var=yes"
14644 else
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 eval "$as_ac_var=no"
14650 rm -f conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14655 if test `eval echo '${'$as_ac_var'}'` = yes; then
14656 cat >>confdefs.h <<_ACEOF
14657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14658 _ACEOF
14661 done
14664 mule_backup_CPPFLAGS="$CPPFLAGS"
14665 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14666 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14667 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14668 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 $ac_includes_default
14679 main ()
14681 #ifndef strerror_r
14682 char *p = (char *) strerror_r;
14683 #endif
14686 return 0;
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_c_werror_flag"
14699 || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_have_decl_strerror_r=yes
14712 else
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_have_decl_strerror_r=no
14718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14721 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14722 if test $ac_cv_have_decl_strerror_r = yes; then
14724 cat >>confdefs.h <<_ACEOF
14725 #define HAVE_DECL_STRERROR_R 1
14726 _ACEOF
14729 else
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_DECL_STRERROR_R 0
14732 _ACEOF
14739 for ac_func in strerror_r
14741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14742 echo "$as_me:$LINENO: checking for $ac_func" >&5
14743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14744 if eval "test \"\${$as_ac_var+set}\" = set"; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h. */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14755 #define $ac_func innocuous_$ac_func
14757 /* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char $ac_func (); below.
14759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14760 <limits.h> exists even on freestanding compilers. */
14762 #ifdef __STDC__
14763 # include <limits.h>
14764 #else
14765 # include <assert.h>
14766 #endif
14768 #undef $ac_func
14770 /* Override any gcc2 internal prototype to avoid an error. */
14771 #ifdef __cplusplus
14772 extern "C"
14774 #endif
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777 char $ac_func ();
14778 /* The GNU C library defines this for functions which it implements
14779 to always fail with ENOSYS. Some functions are actually named
14780 something starting with __ and the normal name is an alias. */
14781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14782 choke me
14783 #else
14784 char (*f) () = $ac_func;
14785 #endif
14786 #ifdef __cplusplus
14788 #endif
14791 main ()
14793 return f != $ac_func;
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 eval "$as_ac_var=yes"
14821 else
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 eval "$as_ac_var=no"
14827 rm -f conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14832 if test `eval echo '${'$as_ac_var'}'` = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 _ACEOF
14838 done
14840 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14841 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14842 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14846 ac_cv_func_strerror_r_char_p=no
14847 if test $ac_cv_have_decl_strerror_r = yes; then
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 $ac_includes_default
14856 main ()
14859 char buf[100];
14860 char x = *strerror_r (0, buf, sizeof buf);
14861 char *p = strerror_r (0, buf, sizeof buf);
14864 return 0;
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_func_strerror_r_char_p=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14896 else
14897 # strerror_r is not declared. Choose between
14898 # systems that have relatively inaccessible declarations for the
14899 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14900 # former has a strerror_r that returns char*, while the latter
14901 # has a strerror_r that returns `int'.
14902 # This test should segfault on the DEC system.
14903 if test "$cross_compiling" = yes; then
14905 else
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 $ac_includes_default
14913 extern char *strerror_r ();
14915 main ()
14917 char buf[100];
14918 char x = *strerror_r (0, buf, sizeof buf);
14919 exit (!isalpha (x));
14921 return 0;
14923 _ACEOF
14924 rm -f conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_func_strerror_r_char_p=yes
14936 else
14937 echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14947 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14948 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14949 if test $ac_cv_func_strerror_r_char_p = yes; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define STRERROR_R_CHAR_P 1
14953 _ACEOF
14957 CPPFLAGS="$mule_backup_CPPFLAGS"
14959 # Look for a way to preallocate disk space for files.
14961 echo "$as_me:$LINENO: checking for fallocate" >&5
14962 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14963 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 #include <linux/falloc.h>
14974 main ()
14977 fallocate(0, 0, 0, 0);
14980 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_FALLOCATE 1
15011 _ACEOF
15013 echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15025 rm -f conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15029 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15030 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15039 #include <sys/sycall.h>
15040 #include <sys/types.h>
15041 #include <unistd.h>
15044 main ()
15047 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15050 return 0;
15053 _ACEOF
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15056 (eval $ac_link) 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag"
15064 || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest$ac_exeext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE_SYS_FALLOCATE 1
15081 _ACEOF
15083 echo "$as_me:$LINENO: result: yes" >&5
15084 echo "${ECHO_T}yes" >&6
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15091 echo "$as_me:$LINENO: result: no" >&5
15092 echo "${ECHO_T}no" >&6
15095 rm -f conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15098 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15099 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15100 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 #define _XOPEN_SOURCE 600
15109 #include <stdlib.h>
15110 #ifdef HAVE_FCNTL_H
15111 # include <fcntl.h>
15112 #endif
15115 main ()
15118 posix_fallocate(0, 0, 0);
15121 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127 (eval $ac_link) 2>conftest.er1
15128 ac_status=$?
15129 grep -v '^ *+' conftest.er1 >conftest.err
15130 rm -f conftest.er1
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -z "$ac_c_werror_flag"
15135 || test ! -s conftest.err'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_POSIX_FALLOCATE 1
15152 _ACEOF
15154 echo "$as_me:$LINENO: result: yes" >&5
15155 echo "${ECHO_T}yes" >&6
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15162 echo "$as_me:$LINENO: result: no" >&5
15163 echo "${ECHO_T}no" >&6
15166 rm -f conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15170 # Checking Native Language Support
15173 MKINSTALLDIRS=
15174 if test -n "$ac_aux_dir"; then
15175 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15177 if test -z "$MKINSTALLDIRS"; then
15178 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15185 # Extract the first word of "msgfmt", so it can be a program name with args.
15186 set dummy msgfmt; ac_word=$2
15187 echo "$as_me:$LINENO: checking for $ac_word" >&5
15188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15189 if test "${ac_cv_path_MSGFMT+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192 case "$MSGFMT" in
15194 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15198 for ac_dir in $PATH; do
15199 test -z "$ac_dir" && ac_dir=.
15200 if test -f $ac_dir/$ac_word; then
15201 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15202 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15203 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15204 break
15207 done
15208 IFS="$ac_save_ifs"
15209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15211 esac
15213 MSGFMT="$ac_cv_path_MSGFMT"
15214 if test "$MSGFMT" != ":"; then
15215 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15216 echo "${ECHO_T}$MSGFMT" >&6
15217 else
15218 echo "$as_me:$LINENO: result: no" >&5
15219 echo "${ECHO_T}no" >&6
15222 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15223 set dummy gmsgfmt; ac_word=$2
15224 echo "$as_me:$LINENO: checking for $ac_word" >&5
15225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15226 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 case $GMSGFMT in
15230 [\\/]* | ?:[\\/]*)
15231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15235 for as_dir in $PATH
15237 IFS=$as_save_IFS
15238 test -z "$as_dir" && as_dir=.
15239 for ac_exec_ext in '' $ac_executable_extensions; do
15240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15243 break 2
15245 done
15246 done
15248 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15250 esac
15252 GMSGFMT=$ac_cv_path_GMSGFMT
15254 if test -n "$GMSGFMT"; then
15255 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15256 echo "${ECHO_T}$GMSGFMT" >&6
15257 else
15258 echo "$as_me:$LINENO: result: no" >&5
15259 echo "${ECHO_T}no" >&6
15263 # Extract the first word of "xgettext", so it can be a program name with args.
15264 set dummy xgettext; ac_word=$2
15265 echo "$as_me:$LINENO: checking for $ac_word" >&5
15266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15267 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 case "$XGETTEXT" in
15272 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15276 for ac_dir in $PATH; do
15277 test -z "$ac_dir" && ac_dir=.
15278 if test -f $ac_dir/$ac_word; then
15279 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15280 (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
15281 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15282 break
15285 done
15286 IFS="$ac_save_ifs"
15287 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15289 esac
15291 XGETTEXT="$ac_cv_path_XGETTEXT"
15292 if test "$XGETTEXT" != ":"; then
15293 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15294 echo "${ECHO_T}$XGETTEXT" >&6
15295 else
15296 echo "$as_me:$LINENO: result: no" >&5
15297 echo "${ECHO_T}no" >&6
15300 rm -f messages.po
15302 # Extract the first word of "msgmerge", so it can be a program name with args.
15303 set dummy msgmerge; ac_word=$2
15304 echo "$as_me:$LINENO: checking for $ac_word" >&5
15305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15306 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309 case "$MSGMERGE" in
15311 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15315 for ac_dir in $PATH; do
15316 test -z "$ac_dir" && ac_dir=.
15317 if test -f $ac_dir/$ac_word; then
15318 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15319 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15320 break
15323 done
15324 IFS="$ac_save_ifs"
15325 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15327 esac
15329 MSGMERGE="$ac_cv_path_MSGMERGE"
15330 if test "$MSGMERGE" != ":"; then
15331 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15332 echo "${ECHO_T}$MSGMERGE" >&6
15333 else
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15339 if test "$GMSGFMT" != ":"; then
15340 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15341 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15343 else
15344 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15345 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15346 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15347 GMSGFMT=":"
15351 if test "$XGETTEXT" != ":"; then
15352 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15353 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15355 else
15356 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15357 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15358 XGETTEXT=":"
15360 rm -f messages.po
15363 ac_config_commands="$ac_config_commands default-1"
15366 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15367 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15368 if test "${ac_cv_search_strerror+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 ac_func_search_save_LIBS=$LIBS
15372 ac_cv_search_strerror=no
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15380 /* Override any gcc2 internal prototype to avoid an error. */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 /* We use char because int might match the return type of a gcc2
15385 builtin and then its argument prototype would still apply. */
15386 char strerror ();
15388 main ()
15390 strerror ();
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397 (eval $ac_link) 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag"
15405 || test ! -s conftest.err'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try='test -s conftest$ac_exeext'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417 ac_cv_search_strerror="none required"
15418 else
15419 echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15423 rm -f conftest.err conftest.$ac_objext \
15424 conftest$ac_exeext conftest.$ac_ext
15425 if test "$ac_cv_search_strerror" = no; then
15426 for ac_lib in cposix; do
15427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15435 /* Override any gcc2 internal prototype to avoid an error. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15441 char strerror ();
15443 main ()
15445 strerror ();
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452 (eval $ac_link) 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_search_strerror="-l$ac_lib"
15473 break
15474 else
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15479 rm -f conftest.err conftest.$ac_objext \
15480 conftest$ac_exeext conftest.$ac_ext
15481 done
15483 LIBS=$ac_func_search_save_LIBS
15485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15487 if test "$ac_cv_search_strerror" != no; then
15488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15493 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15494 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15495 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15505 #include <features.h>
15506 #ifdef __GNU_LIBRARY__
15507 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15508 Lucky GNU user
15509 #endif
15510 #endif
15512 _ACEOF
15513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15514 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15515 ac_cv_gnu_library_2_1=yes
15516 else
15517 ac_cv_gnu_library_2_1=no
15519 rm -f conftest*
15524 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15525 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15527 GLIBC21="$ac_cv_gnu_library_2_1"
15532 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15533 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15534 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15538 if test "$cross_compiling" = yes; then
15540 # Guess based on the CPU.
15541 case "$host_cpu" in
15542 alpha* | i3456786 | m68k | s390*)
15543 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15545 gt_cv_int_divbyzero_sigfpe="guessing no";;
15546 esac
15548 else
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 #include <stdlib.h>
15557 #include <signal.h>
15559 static void
15560 #ifdef __cplusplus
15561 sigfpe_handler (int sig)
15562 #else
15563 sigfpe_handler (sig) int sig;
15564 #endif
15566 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15567 exit (sig != SIGFPE);
15570 int x = 1;
15571 int y = 0;
15572 int z;
15573 int nan;
15575 int main ()
15577 signal (SIGFPE, sigfpe_handler);
15578 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15579 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15580 signal (SIGTRAP, sigfpe_handler);
15581 #endif
15582 /* Linux/SPARC yields signal SIGILL. */
15583 #if defined (__sparc__) && defined (__linux__)
15584 signal (SIGILL, sigfpe_handler);
15585 #endif
15587 z = x / y;
15588 nan = y / y;
15589 exit (1);
15592 _ACEOF
15593 rm -f conftest$ac_exeext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15595 (eval $ac_link) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 gt_cv_int_divbyzero_sigfpe=yes
15605 else
15606 echo "$as_me: program exited with status $ac_status" >&5
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ( exit $ac_status )
15611 gt_cv_int_divbyzero_sigfpe=no
15613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15617 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15618 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15619 case "$gt_cv_int_divbyzero_sigfpe" in
15620 *yes) value=1;;
15621 *) value=0;;
15622 esac
15624 cat >>confdefs.h <<_ACEOF
15625 #define INTDIV0_RAISES_SIGFPE $value
15626 _ACEOF
15630 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15631 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15632 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h. */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 #include <sys/types.h>
15642 #include <inttypes.h>
15644 main ()
15646 uintmax_t i = (uintmax_t) -1;
15648 return 0;
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 jm_ac_cv_header_inttypes_h=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 jm_ac_cv_header_inttypes_h=no
15680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15683 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15684 if test $jm_ac_cv_header_inttypes_h = yes; then
15686 cat >>confdefs.h <<_ACEOF
15687 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15688 _ACEOF
15693 echo "$as_me:$LINENO: checking for stdint.h" >&5
15694 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15695 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #include <stdint.h>
15707 main ()
15709 uintmax_t i = (uintmax_t) -1;
15711 return 0;
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15717 ac_status=$?
15718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 jm_ac_cv_header_stdint_h=yes
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 jm_ac_cv_header_stdint_h=no
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15746 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15747 if test $jm_ac_cv_header_stdint_h = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_STDINT_H_WITH_UINTMAX 1
15751 _ACEOF
15756 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15757 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15758 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h. */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 unsigned long long ull = 1; int i = 63;
15769 main ()
15771 unsigned long long ullmax = (unsigned long long) -1;
15772 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15774 return 0;
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
15786 { ac_try='test -z "$ac_c_werror_flag"
15787 || test ! -s conftest.err'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest$ac_exeext'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_cv_type_unsigned_long_long=yes
15800 else
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_cv_type_unsigned_long_long=no
15806 rm -f conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15809 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15810 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15811 if test $ac_cv_type_unsigned_long_long = yes; then
15813 cat >>confdefs.h <<\_ACEOF
15814 #define HAVE_UNSIGNED_LONG_LONG 1
15815 _ACEOF
15822 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15824 test $ac_cv_type_unsigned_long_long = yes \
15825 && ac_type='unsigned long long' \
15826 || ac_type='unsigned long'
15828 cat >>confdefs.h <<_ACEOF
15829 #define uintmax_t $ac_type
15830 _ACEOF
15835 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15836 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15837 if test "${gt_cv_header_inttypes_h+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <sys/types.h>
15848 #include <inttypes.h>
15850 main ()
15854 return 0;
15856 _ACEOF
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 gt_cv_header_inttypes_h=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 gt_cv_header_inttypes_h=no
15886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15889 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15890 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15891 if test $gt_cv_header_inttypes_h = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define HAVE_INTTYPES_H 1
15895 _ACEOF
15901 if test $gt_cv_header_inttypes_h = yes; then
15902 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15903 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15904 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <inttypes.h>
15915 #ifdef PRId32
15916 char *p = PRId32;
15917 #endif
15920 main ()
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929 (eval $ac_compile) 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 gt_cv_inttypes_pri_broken=no
15950 else
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 gt_cv_inttypes_pri_broken=yes
15956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15959 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15960 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15962 if test "$gt_cv_inttypes_pri_broken" = yes; then
15964 cat >>confdefs.h <<_ACEOF
15965 #define PRI_MACROS_BROKEN 1
15966 _ACEOF
15971 if test "X$prefix" = "XNONE"; then
15972 acl_final_prefix="$ac_default_prefix"
15973 else
15974 acl_final_prefix="$prefix"
15976 if test "X$exec_prefix" = "XNONE"; then
15977 acl_final_exec_prefix='${prefix}'
15978 else
15979 acl_final_exec_prefix="$exec_prefix"
15981 acl_save_prefix="$prefix"
15982 prefix="$acl_final_prefix"
15983 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15984 prefix="$acl_save_prefix"
15987 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15988 if test "${with_gnu_ld+set}" = set; then
15989 withval="$with_gnu_ld"
15990 test "$withval" = no || with_gnu_ld=yes
15991 else
15992 with_gnu_ld=no
15994 ac_prog=ld
15995 if test "$GCC" = yes; then
15996 # Check if gcc -print-prog-name=ld gives a path.
15997 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15998 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15999 case $host in
16000 *-*-mingw*)
16001 # gcc leaves a trailing carriage return which upsets mingw
16002 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16004 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16005 esac
16006 case $ac_prog in
16007 # Accept absolute paths.
16008 [\\/]* | [A-Za-z]:[\\/]*)
16009 re_direlt='/[^/][^/]*/\.\./'
16010 # Canonicalize the path of ld
16011 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16012 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16013 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16014 done
16015 test -z "$LD" && LD="$ac_prog"
16018 # If it fails, then pretend we aren't using GCC.
16019 ac_prog=ld
16022 # If it is relative, then search for the first ld in PATH.
16023 with_gnu_ld=unknown
16025 esac
16026 elif test "$with_gnu_ld" = yes; then
16027 echo "$as_me:$LINENO: checking for GNU ld" >&5
16028 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16029 else
16030 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16031 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16033 if test "${acl_cv_path_LD+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 if test -z "$LD"; then
16037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16038 for ac_dir in $PATH; do
16039 test -z "$ac_dir" && ac_dir=.
16040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16041 acl_cv_path_LD="$ac_dir/$ac_prog"
16042 # Check to see if the program is GNU ld. I'd rather use --version,
16043 # but apparently some GNU ld's only accept -v.
16044 # Break only if it was the GNU/non-GNU ld that we prefer.
16045 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16046 test "$with_gnu_ld" != no && break
16047 else
16048 test "$with_gnu_ld" != yes && break
16051 done
16052 IFS="$ac_save_ifs"
16053 else
16054 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16058 LD="$acl_cv_path_LD"
16059 if test -n "$LD"; then
16060 echo "$as_me:$LINENO: result: $LD" >&5
16061 echo "${ECHO_T}$LD" >&6
16062 else
16063 echo "$as_me:$LINENO: result: no" >&5
16064 echo "${ECHO_T}no" >&6
16066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16068 { (exit 1); exit 1; }; }
16069 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16071 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16075 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16076 acl_cv_prog_gnu_ld=yes
16077 else
16078 acl_cv_prog_gnu_ld=no
16081 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16082 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16083 with_gnu_ld=$acl_cv_prog_gnu_ld
16087 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16088 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16089 if test "${acl_cv_rpath+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16093 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16094 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16095 . ./conftest.sh
16096 rm -f ./conftest.sh
16097 acl_cv_rpath=done
16100 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16101 echo "${ECHO_T}$acl_cv_rpath" >&6
16102 wl="$acl_cv_wl"
16103 libext="$acl_cv_libext"
16104 shlibext="$acl_cv_shlibext"
16105 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16106 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16107 hardcode_direct="$acl_cv_hardcode_direct"
16108 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16109 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16110 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16111 # Check whether --enable-rpath or --disable-rpath was given.
16112 if test "${enable_rpath+set}" = set; then
16113 enableval="$enable_rpath"
16115 else
16116 enable_rpath=yes
16125 use_additional=yes
16127 acl_save_prefix="$prefix"
16128 prefix="$acl_final_prefix"
16129 acl_save_exec_prefix="$exec_prefix"
16130 exec_prefix="$acl_final_exec_prefix"
16132 eval additional_includedir=\"$includedir\"
16133 eval additional_libdir=\"$libdir\"
16135 exec_prefix="$acl_save_exec_prefix"
16136 prefix="$acl_save_prefix"
16139 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16140 if test "${with_libiconv_prefix+set}" = set; then
16141 withval="$with_libiconv_prefix"
16143 if test "X$withval" = "Xno"; then
16144 use_additional=no
16145 else
16146 if test "X$withval" = "X"; then
16148 acl_save_prefix="$prefix"
16149 prefix="$acl_final_prefix"
16150 acl_save_exec_prefix="$exec_prefix"
16151 exec_prefix="$acl_final_exec_prefix"
16153 eval additional_includedir=\"$includedir\"
16154 eval additional_libdir=\"$libdir\"
16156 exec_prefix="$acl_save_exec_prefix"
16157 prefix="$acl_save_prefix"
16159 else
16160 additional_includedir="$withval/include"
16161 additional_libdir="$withval/lib"
16166 LIBICONV=
16167 LTLIBICONV=
16168 INCICONV=
16169 rpathdirs=
16170 ltrpathdirs=
16171 names_already_handled=
16172 names_next_round='iconv '
16173 while test -n "$names_next_round"; do
16174 names_this_round="$names_next_round"
16175 names_next_round=
16176 for name in $names_this_round; do
16177 already_handled=
16178 for n in $names_already_handled; do
16179 if test "$n" = "$name"; then
16180 already_handled=yes
16181 break
16183 done
16184 if test -z "$already_handled"; then
16185 names_already_handled="$names_already_handled $name"
16186 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16187 eval value=\"\$HAVE_LIB$uppername\"
16188 if test -n "$value"; then
16189 if test "$value" = yes; then
16190 eval value=\"\$LIB$uppername\"
16191 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16192 eval value=\"\$LTLIB$uppername\"
16193 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16194 else
16197 else
16198 found_dir=
16199 found_la=
16200 found_so=
16201 found_a=
16202 if test $use_additional = yes; then
16203 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16204 found_dir="$additional_libdir"
16205 found_so="$additional_libdir/lib$name.$shlibext"
16206 if test -f "$additional_libdir/lib$name.la"; then
16207 found_la="$additional_libdir/lib$name.la"
16209 else
16210 if test -f "$additional_libdir/lib$name.$libext"; then
16211 found_dir="$additional_libdir"
16212 found_a="$additional_libdir/lib$name.$libext"
16213 if test -f "$additional_libdir/lib$name.la"; then
16214 found_la="$additional_libdir/lib$name.la"
16219 if test "X$found_dir" = "X"; then
16220 for x in $LDFLAGS $LTLIBICONV; do
16222 acl_save_prefix="$prefix"
16223 prefix="$acl_final_prefix"
16224 acl_save_exec_prefix="$exec_prefix"
16225 exec_prefix="$acl_final_exec_prefix"
16226 eval x=\"$x\"
16227 exec_prefix="$acl_save_exec_prefix"
16228 prefix="$acl_save_prefix"
16230 case "$x" in
16231 -L*)
16232 dir=`echo "X$x" | sed -e 's/^X-L//'`
16233 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16234 found_dir="$dir"
16235 found_so="$dir/lib$name.$shlibext"
16236 if test -f "$dir/lib$name.la"; then
16237 found_la="$dir/lib$name.la"
16239 else
16240 if test -f "$dir/lib$name.$libext"; then
16241 found_dir="$dir"
16242 found_a="$dir/lib$name.$libext"
16243 if test -f "$dir/lib$name.la"; then
16244 found_la="$dir/lib$name.la"
16249 esac
16250 if test "X$found_dir" != "X"; then
16251 break
16253 done
16255 if test "X$found_dir" != "X"; then
16256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16257 if test "X$found_so" != "X"; then
16258 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16259 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16260 else
16261 haveit=
16262 for x in $ltrpathdirs; do
16263 if test "X$x" = "X$found_dir"; then
16264 haveit=yes
16265 break
16267 done
16268 if test -z "$haveit"; then
16269 ltrpathdirs="$ltrpathdirs $found_dir"
16271 if test "$hardcode_direct" = yes; then
16272 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16273 else
16274 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16276 haveit=
16277 for x in $rpathdirs; do
16278 if test "X$x" = "X$found_dir"; then
16279 haveit=yes
16280 break
16282 done
16283 if test -z "$haveit"; then
16284 rpathdirs="$rpathdirs $found_dir"
16286 else
16287 haveit=
16288 for x in $LDFLAGS $LIBICONV; do
16290 acl_save_prefix="$prefix"
16291 prefix="$acl_final_prefix"
16292 acl_save_exec_prefix="$exec_prefix"
16293 exec_prefix="$acl_final_exec_prefix"
16294 eval x=\"$x\"
16295 exec_prefix="$acl_save_exec_prefix"
16296 prefix="$acl_save_prefix"
16298 if test "X$x" = "X-L$found_dir"; then
16299 haveit=yes
16300 break
16302 done
16303 if test -z "$haveit"; then
16304 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16306 if test "$hardcode_minus_L" != no; then
16307 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16308 else
16309 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16314 else
16315 if test "X$found_a" != "X"; then
16316 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16317 else
16318 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16321 additional_includedir=
16322 case "$found_dir" in
16323 */lib | */lib/)
16324 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16325 additional_includedir="$basedir/include"
16327 esac
16328 if test "X$additional_includedir" != "X"; then
16329 if test "X$additional_includedir" != "X/usr/include"; then
16330 haveit=
16331 if test "X$additional_includedir" = "X/usr/local/include"; then
16332 if test -n "$GCC"; then
16333 case $host_os in
16334 linux*) haveit=yes;;
16335 esac
16338 if test -z "$haveit"; then
16339 for x in $CPPFLAGS $INCICONV; do
16341 acl_save_prefix="$prefix"
16342 prefix="$acl_final_prefix"
16343 acl_save_exec_prefix="$exec_prefix"
16344 exec_prefix="$acl_final_exec_prefix"
16345 eval x=\"$x\"
16346 exec_prefix="$acl_save_exec_prefix"
16347 prefix="$acl_save_prefix"
16349 if test "X$x" = "X-I$additional_includedir"; then
16350 haveit=yes
16351 break
16353 done
16354 if test -z "$haveit"; then
16355 if test -d "$additional_includedir"; then
16356 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16362 if test -n "$found_la"; then
16363 save_libdir="$libdir"
16364 case "$found_la" in
16365 */* | *\\*) . "$found_la" ;;
16366 *) . "./$found_la" ;;
16367 esac
16368 libdir="$save_libdir"
16369 for dep in $dependency_libs; do
16370 case "$dep" in
16371 -L*)
16372 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16373 if test "X$additional_libdir" != "X/usr/lib"; then
16374 haveit=
16375 if test "X$additional_libdir" = "X/usr/local/lib"; then
16376 if test -n "$GCC"; then
16377 case $host_os in
16378 linux*) haveit=yes;;
16379 esac
16382 if test -z "$haveit"; then
16383 haveit=
16384 for x in $LDFLAGS $LIBICONV; do
16386 acl_save_prefix="$prefix"
16387 prefix="$acl_final_prefix"
16388 acl_save_exec_prefix="$exec_prefix"
16389 exec_prefix="$acl_final_exec_prefix"
16390 eval x=\"$x\"
16391 exec_prefix="$acl_save_exec_prefix"
16392 prefix="$acl_save_prefix"
16394 if test "X$x" = "X-L$additional_libdir"; then
16395 haveit=yes
16396 break
16398 done
16399 if test -z "$haveit"; then
16400 if test -d "$additional_libdir"; then
16401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16404 haveit=
16405 for x in $LDFLAGS $LTLIBICONV; do
16407 acl_save_prefix="$prefix"
16408 prefix="$acl_final_prefix"
16409 acl_save_exec_prefix="$exec_prefix"
16410 exec_prefix="$acl_final_exec_prefix"
16411 eval x=\"$x\"
16412 exec_prefix="$acl_save_exec_prefix"
16413 prefix="$acl_save_prefix"
16415 if test "X$x" = "X-L$additional_libdir"; then
16416 haveit=yes
16417 break
16419 done
16420 if test -z "$haveit"; then
16421 if test -d "$additional_libdir"; then
16422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16428 -R*)
16429 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16430 if test "$enable_rpath" != no; then
16431 haveit=
16432 for x in $rpathdirs; do
16433 if test "X$x" = "X$dir"; then
16434 haveit=yes
16435 break
16437 done
16438 if test -z "$haveit"; then
16439 rpathdirs="$rpathdirs $dir"
16441 haveit=
16442 for x in $ltrpathdirs; do
16443 if test "X$x" = "X$dir"; then
16444 haveit=yes
16445 break
16447 done
16448 if test -z "$haveit"; then
16449 ltrpathdirs="$ltrpathdirs $dir"
16453 -l*)
16454 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16456 *.la)
16457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16460 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16463 esac
16464 done
16466 else
16467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16468 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16472 done
16473 done
16474 if test "X$rpathdirs" != "X"; then
16475 if test -n "$hardcode_libdir_separator"; then
16476 alldirs=
16477 for found_dir in $rpathdirs; do
16478 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16479 done
16480 acl_save_libdir="$libdir"
16481 libdir="$alldirs"
16482 eval flag=\"$hardcode_libdir_flag_spec\"
16483 libdir="$acl_save_libdir"
16484 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16485 else
16486 for found_dir in $rpathdirs; do
16487 acl_save_libdir="$libdir"
16488 libdir="$found_dir"
16489 eval flag=\"$hardcode_libdir_flag_spec\"
16490 libdir="$acl_save_libdir"
16491 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16492 done
16495 if test "X$ltrpathdirs" != "X"; then
16496 for found_dir in $ltrpathdirs; do
16497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16498 done
16514 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16515 stdlib.h string.h unistd.h sys/param.h
16517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16526 else
16527 # Is the header compilable?
16528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 $ac_includes_default
16537 #include <$ac_header>
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16541 (eval $ac_compile) 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag"
16549 || test ! -s conftest.err'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_header_compiler=yes
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_header_compiler=no
16568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16570 echo "${ECHO_T}$ac_header_compiler" >&6
16572 # Is the header present?
16573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <$ac_header>
16582 _ACEOF
16583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594 else
16595 ac_cpp_err=
16597 else
16598 ac_cpp_err=yes
16600 if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_preproc=no
16608 rm -f conftest.err conftest.$ac_ext
16609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610 echo "${ECHO_T}$ac_header_preproc" >&6
16612 # So? What about this header?
16613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16614 yes:no: )
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619 ac_header_preproc=yes
16621 no:yes:* )
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 cat <<\_ASBOX
16636 ## ------------------------------ ##
16637 ## Report this to admin@amule.org ##
16638 ## ------------------------------ ##
16639 _ASBOX
16641 sed "s/^/$as_me: WARNING: /" >&2
16643 esac
16644 echo "$as_me:$LINENO: checking for $ac_header" >&5
16645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 eval "$as_ac_Header=\$ac_header_preproc"
16651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16662 done
16685 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16686 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16687 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690 echo "$as_me:$LINENO: checking for $ac_func" >&5
16691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_var+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703 #define $ac_func innocuous_$ac_func
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16710 #ifdef __STDC__
16711 # include <limits.h>
16712 #else
16713 # include <assert.h>
16714 #endif
16716 #undef $ac_func
16718 /* Override any gcc2 internal prototype to avoid an error. */
16719 #ifdef __cplusplus
16720 extern "C"
16722 #endif
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16725 char $ac_func ();
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730 choke me
16731 #else
16732 char (*f) () = $ac_func;
16733 #endif
16734 #ifdef __cplusplus
16736 #endif
16739 main ()
16741 return f != $ac_func;
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 eval "$as_ac_var=yes"
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 eval "$as_ac_var=no"
16775 rm -f conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
16778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16780 if test `eval echo '${'$as_ac_var'}'` = yes; then
16781 cat >>confdefs.h <<_ACEOF
16782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16783 _ACEOF
16786 done
16794 am_save_CPPFLAGS="$CPPFLAGS"
16796 for element in $INCICONV; do
16797 haveit=
16798 for x in $CPPFLAGS; do
16800 acl_save_prefix="$prefix"
16801 prefix="$acl_final_prefix"
16802 acl_save_exec_prefix="$exec_prefix"
16803 exec_prefix="$acl_final_exec_prefix"
16804 eval x=\"$x\"
16805 exec_prefix="$acl_save_exec_prefix"
16806 prefix="$acl_save_prefix"
16808 if test "X$x" = "X$element"; then
16809 haveit=yes
16810 break
16812 done
16813 if test -z "$haveit"; then
16814 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16816 done
16819 echo "$as_me:$LINENO: checking for iconv" >&5
16820 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16821 if test "${am_cv_func_iconv+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16825 am_cv_func_iconv="no, consider installing GNU libiconv"
16826 am_cv_lib_iconv=no
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 #include <stdlib.h>
16834 #include <iconv.h>
16836 main ()
16838 iconv_t cd = iconv_open("","");
16839 iconv(cd,NULL,NULL,NULL,NULL);
16840 iconv_close(cd);
16842 return 0;
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag"
16855 || test ! -s conftest.err'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 am_cv_func_iconv=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16873 rm -f conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16875 if test "$am_cv_func_iconv" != yes; then
16876 am_save_LIBS="$LIBS"
16877 LIBS="$LIBS $LIBICONV"
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 #include <stdlib.h>
16885 #include <iconv.h>
16887 main ()
16889 iconv_t cd = iconv_open("","");
16890 iconv(cd,NULL,NULL,NULL,NULL);
16891 iconv_close(cd);
16893 return 0;
16895 _ACEOF
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16898 (eval $ac_link) 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag"
16906 || test ! -s conftest.err'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest$ac_exeext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 am_cv_lib_iconv=yes
16919 am_cv_func_iconv=yes
16920 else
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16925 rm -f conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 LIBS="$am_save_LIBS"
16931 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16932 echo "${ECHO_T}$am_cv_func_iconv" >&6
16933 if test "$am_cv_func_iconv" = yes; then
16935 cat >>confdefs.h <<\_ACEOF
16936 #define HAVE_ICONV 1
16937 _ACEOF
16940 if test "$am_cv_lib_iconv" = yes; then
16941 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16942 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16943 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16944 echo "${ECHO_T}$LIBICONV" >&6
16945 else
16946 CPPFLAGS="$am_save_CPPFLAGS"
16947 LIBICONV=
16948 LTLIBICONV=
16953 if test "$am_cv_func_iconv" = yes; then
16954 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16955 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16956 if test "${am_cv_proto_iconv+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16967 #include <stdlib.h>
16968 #include <iconv.h>
16969 extern
16970 #ifdef __cplusplus
16972 #endif
16973 #if defined(__STDC__) || defined(__cplusplus)
16974 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16975 #else
16976 size_t iconv();
16977 #endif
16980 main ()
16984 return 0;
16986 _ACEOF
16987 rm -f conftest.$ac_objext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16989 (eval $ac_compile) 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag"
16997 || test ! -s conftest.err'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 am_cv_proto_iconv_arg1=""
17010 else
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 am_cv_proto_iconv_arg1="const"
17016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17017 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);"
17020 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17021 echo "$as_me:$LINENO: result: ${ac_t:-
17022 }$am_cv_proto_iconv" >&5
17023 echo "${ECHO_T}${ac_t:-
17024 }$am_cv_proto_iconv" >&6
17026 cat >>confdefs.h <<_ACEOF
17027 #define ICONV_CONST $am_cv_proto_iconv_arg1
17028 _ACEOF
17033 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17034 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17035 if test "${am_cv_langinfo_codeset+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 #include <langinfo.h>
17046 main ()
17048 char* cs = nl_langinfo(CODESET);
17050 return 0;
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -z "$ac_c_werror_flag"
17063 || test ! -s conftest.err'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest$ac_exeext'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 am_cv_langinfo_codeset=yes
17076 else
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 am_cv_langinfo_codeset=no
17082 rm -f conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17086 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17087 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17088 if test $am_cv_langinfo_codeset = yes; then
17090 cat >>confdefs.h <<\_ACEOF
17091 #define HAVE_LANGINFO_CODESET 1
17092 _ACEOF
17096 if test $ac_cv_header_locale_h = yes; then
17098 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17099 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17100 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103 cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h. */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 #include <locale.h>
17111 main ()
17113 return LC_MESSAGES
17115 return 0;
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest$ac_exeext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 am_cv_val_LC_MESSAGES=yes
17141 else
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 am_cv_val_LC_MESSAGES=no
17147 rm -f conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17150 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17151 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17152 if test $am_cv_val_LC_MESSAGES = yes; then
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_LC_MESSAGES 1
17156 _ACEOF
17162 for ac_prog in bison
17164 # Extract the first word of "$ac_prog", so it can be a program name with args.
17165 set dummy $ac_prog; ac_word=$2
17166 echo "$as_me:$LINENO: checking for $ac_word" >&5
17167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17168 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 if test -n "$INTLBISON"; then
17172 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17173 else
17174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17175 for as_dir in $PATH
17177 IFS=$as_save_IFS
17178 test -z "$as_dir" && as_dir=.
17179 for ac_exec_ext in '' $ac_executable_extensions; do
17180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17181 ac_cv_prog_INTLBISON="$ac_prog"
17182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17183 break 2
17185 done
17186 done
17190 INTLBISON=$ac_cv_prog_INTLBISON
17191 if test -n "$INTLBISON"; then
17192 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17193 echo "${ECHO_T}$INTLBISON" >&6
17194 else
17195 echo "$as_me:$LINENO: result: no" >&5
17196 echo "${ECHO_T}no" >&6
17199 test -n "$INTLBISON" && break
17200 done
17202 if test -z "$INTLBISON"; then
17203 ac_verc_fail=yes
17204 else
17205 echo "$as_me:$LINENO: checking version of bison" >&5
17206 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17207 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17208 case $ac_prog_version in
17209 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17210 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17211 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17212 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17213 esac
17214 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17215 echo "${ECHO_T}$ac_prog_version" >&6
17217 if test $ac_verc_fail = yes; then
17218 INTLBISON=:
17223 # Check whether --with-language or --without-language was given.
17224 if test "${with_language+set}" = set; then
17225 withval="$with_language"
17226 if test "$withval" = "all"; then
17227 LINGUAS='%UNSET%'
17228 else
17229 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17248 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17249 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17250 # Check whether --enable-nls or --disable-nls was given.
17251 if test "${enable_nls+set}" = set; then
17252 enableval="$enable_nls"
17253 USE_NLS=$enableval
17254 else
17255 USE_NLS=yes
17257 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17258 echo "${ECHO_T}$USE_NLS" >&6
17262 BUILD_INCLUDED_LIBINTL=no
17263 USE_INCLUDED_LIBINTL=no
17265 LIBINTL=
17266 LTLIBINTL=
17267 POSUB=
17269 if test "$USE_NLS" = "yes"; then
17270 gt_use_preinstalled_gnugettext=no
17272 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17273 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17275 # Check whether --with-included-gettext or --without-included-gettext was given.
17276 if test "${with_included_gettext+set}" = set; then
17277 withval="$with_included_gettext"
17278 nls_cv_force_use_gnu_gettext=$withval
17279 else
17280 nls_cv_force_use_gnu_gettext=no
17282 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17283 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17285 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17286 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17293 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17294 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17295 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 #include <libintl.h>
17305 extern int _nl_msg_cat_cntr;
17306 extern int *_nl_domain_bindings;
17308 main ()
17310 bindtextdomain ("", "");
17311 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17313 return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 gt_cv_func_gnugettext2_libc=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 gt_cv_func_gnugettext2_libc=no
17345 rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17348 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17349 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17351 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17355 use_additional=yes
17357 acl_save_prefix="$prefix"
17358 prefix="$acl_final_prefix"
17359 acl_save_exec_prefix="$exec_prefix"
17360 exec_prefix="$acl_final_exec_prefix"
17362 eval additional_includedir=\"$includedir\"
17363 eval additional_libdir=\"$libdir\"
17365 exec_prefix="$acl_save_exec_prefix"
17366 prefix="$acl_save_prefix"
17369 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17370 if test "${with_libintl_prefix+set}" = set; then
17371 withval="$with_libintl_prefix"
17373 if test "X$withval" = "Xno"; then
17374 use_additional=no
17375 else
17376 if test "X$withval" = "X"; then
17378 acl_save_prefix="$prefix"
17379 prefix="$acl_final_prefix"
17380 acl_save_exec_prefix="$exec_prefix"
17381 exec_prefix="$acl_final_exec_prefix"
17383 eval additional_includedir=\"$includedir\"
17384 eval additional_libdir=\"$libdir\"
17386 exec_prefix="$acl_save_exec_prefix"
17387 prefix="$acl_save_prefix"
17389 else
17390 additional_includedir="$withval/include"
17391 additional_libdir="$withval/lib"
17396 LIBINTL=
17397 LTLIBINTL=
17398 INCINTL=
17399 rpathdirs=
17400 ltrpathdirs=
17401 names_already_handled=
17402 names_next_round='intl '
17403 while test -n "$names_next_round"; do
17404 names_this_round="$names_next_round"
17405 names_next_round=
17406 for name in $names_this_round; do
17407 already_handled=
17408 for n in $names_already_handled; do
17409 if test "$n" = "$name"; then
17410 already_handled=yes
17411 break
17413 done
17414 if test -z "$already_handled"; then
17415 names_already_handled="$names_already_handled $name"
17416 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17417 eval value=\"\$HAVE_LIB$uppername\"
17418 if test -n "$value"; then
17419 if test "$value" = yes; then
17420 eval value=\"\$LIB$uppername\"
17421 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17422 eval value=\"\$LTLIB$uppername\"
17423 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17424 else
17427 else
17428 found_dir=
17429 found_la=
17430 found_so=
17431 found_a=
17432 if test $use_additional = yes; then
17433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17434 found_dir="$additional_libdir"
17435 found_so="$additional_libdir/lib$name.$shlibext"
17436 if test -f "$additional_libdir/lib$name.la"; then
17437 found_la="$additional_libdir/lib$name.la"
17439 else
17440 if test -f "$additional_libdir/lib$name.$libext"; then
17441 found_dir="$additional_libdir"
17442 found_a="$additional_libdir/lib$name.$libext"
17443 if test -f "$additional_libdir/lib$name.la"; then
17444 found_la="$additional_libdir/lib$name.la"
17449 if test "X$found_dir" = "X"; then
17450 for x in $LDFLAGS $LTLIBINTL; do
17452 acl_save_prefix="$prefix"
17453 prefix="$acl_final_prefix"
17454 acl_save_exec_prefix="$exec_prefix"
17455 exec_prefix="$acl_final_exec_prefix"
17456 eval x=\"$x\"
17457 exec_prefix="$acl_save_exec_prefix"
17458 prefix="$acl_save_prefix"
17460 case "$x" in
17461 -L*)
17462 dir=`echo "X$x" | sed -e 's/^X-L//'`
17463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17464 found_dir="$dir"
17465 found_so="$dir/lib$name.$shlibext"
17466 if test -f "$dir/lib$name.la"; then
17467 found_la="$dir/lib$name.la"
17469 else
17470 if test -f "$dir/lib$name.$libext"; then
17471 found_dir="$dir"
17472 found_a="$dir/lib$name.$libext"
17473 if test -f "$dir/lib$name.la"; then
17474 found_la="$dir/lib$name.la"
17479 esac
17480 if test "X$found_dir" != "X"; then
17481 break
17483 done
17485 if test "X$found_dir" != "X"; then
17486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17487 if test "X$found_so" != "X"; then
17488 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17490 else
17491 haveit=
17492 for x in $ltrpathdirs; do
17493 if test "X$x" = "X$found_dir"; then
17494 haveit=yes
17495 break
17497 done
17498 if test -z "$haveit"; then
17499 ltrpathdirs="$ltrpathdirs $found_dir"
17501 if test "$hardcode_direct" = yes; then
17502 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17503 else
17504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17506 haveit=
17507 for x in $rpathdirs; do
17508 if test "X$x" = "X$found_dir"; then
17509 haveit=yes
17510 break
17512 done
17513 if test -z "$haveit"; then
17514 rpathdirs="$rpathdirs $found_dir"
17516 else
17517 haveit=
17518 for x in $LDFLAGS $LIBINTL; do
17520 acl_save_prefix="$prefix"
17521 prefix="$acl_final_prefix"
17522 acl_save_exec_prefix="$exec_prefix"
17523 exec_prefix="$acl_final_exec_prefix"
17524 eval x=\"$x\"
17525 exec_prefix="$acl_save_exec_prefix"
17526 prefix="$acl_save_prefix"
17528 if test "X$x" = "X-L$found_dir"; then
17529 haveit=yes
17530 break
17532 done
17533 if test -z "$haveit"; then
17534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17536 if test "$hardcode_minus_L" != no; then
17537 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17538 else
17539 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17544 else
17545 if test "X$found_a" != "X"; then
17546 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17547 else
17548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17551 additional_includedir=
17552 case "$found_dir" in
17553 */lib | */lib/)
17554 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17555 additional_includedir="$basedir/include"
17557 esac
17558 if test "X$additional_includedir" != "X"; then
17559 if test "X$additional_includedir" != "X/usr/include"; then
17560 haveit=
17561 if test "X$additional_includedir" = "X/usr/local/include"; then
17562 if test -n "$GCC"; then
17563 case $host_os in
17564 linux*) haveit=yes;;
17565 esac
17568 if test -z "$haveit"; then
17569 for x in $CPPFLAGS $INCINTL; do
17571 acl_save_prefix="$prefix"
17572 prefix="$acl_final_prefix"
17573 acl_save_exec_prefix="$exec_prefix"
17574 exec_prefix="$acl_final_exec_prefix"
17575 eval x=\"$x\"
17576 exec_prefix="$acl_save_exec_prefix"
17577 prefix="$acl_save_prefix"
17579 if test "X$x" = "X-I$additional_includedir"; then
17580 haveit=yes
17581 break
17583 done
17584 if test -z "$haveit"; then
17585 if test -d "$additional_includedir"; then
17586 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17592 if test -n "$found_la"; then
17593 save_libdir="$libdir"
17594 case "$found_la" in
17595 */* | *\\*) . "$found_la" ;;
17596 *) . "./$found_la" ;;
17597 esac
17598 libdir="$save_libdir"
17599 for dep in $dependency_libs; do
17600 case "$dep" in
17601 -L*)
17602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17603 if test "X$additional_libdir" != "X/usr/lib"; then
17604 haveit=
17605 if test "X$additional_libdir" = "X/usr/local/lib"; then
17606 if test -n "$GCC"; then
17607 case $host_os in
17608 linux*) haveit=yes;;
17609 esac
17612 if test -z "$haveit"; then
17613 haveit=
17614 for x in $LDFLAGS $LIBINTL; do
17616 acl_save_prefix="$prefix"
17617 prefix="$acl_final_prefix"
17618 acl_save_exec_prefix="$exec_prefix"
17619 exec_prefix="$acl_final_exec_prefix"
17620 eval x=\"$x\"
17621 exec_prefix="$acl_save_exec_prefix"
17622 prefix="$acl_save_prefix"
17624 if test "X$x" = "X-L$additional_libdir"; then
17625 haveit=yes
17626 break
17628 done
17629 if test -z "$haveit"; then
17630 if test -d "$additional_libdir"; then
17631 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17634 haveit=
17635 for x in $LDFLAGS $LTLIBINTL; do
17637 acl_save_prefix="$prefix"
17638 prefix="$acl_final_prefix"
17639 acl_save_exec_prefix="$exec_prefix"
17640 exec_prefix="$acl_final_exec_prefix"
17641 eval x=\"$x\"
17642 exec_prefix="$acl_save_exec_prefix"
17643 prefix="$acl_save_prefix"
17645 if test "X$x" = "X-L$additional_libdir"; then
17646 haveit=yes
17647 break
17649 done
17650 if test -z "$haveit"; then
17651 if test -d "$additional_libdir"; then
17652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17658 -R*)
17659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17660 if test "$enable_rpath" != no; then
17661 haveit=
17662 for x in $rpathdirs; do
17663 if test "X$x" = "X$dir"; then
17664 haveit=yes
17665 break
17667 done
17668 if test -z "$haveit"; then
17669 rpathdirs="$rpathdirs $dir"
17671 haveit=
17672 for x in $ltrpathdirs; do
17673 if test "X$x" = "X$dir"; then
17674 haveit=yes
17675 break
17677 done
17678 if test -z "$haveit"; then
17679 ltrpathdirs="$ltrpathdirs $dir"
17683 -l*)
17684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17686 *.la)
17687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17690 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17691 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17693 esac
17694 done
17696 else
17697 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17698 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17702 done
17703 done
17704 if test "X$rpathdirs" != "X"; then
17705 if test -n "$hardcode_libdir_separator"; then
17706 alldirs=
17707 for found_dir in $rpathdirs; do
17708 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17709 done
17710 acl_save_libdir="$libdir"
17711 libdir="$alldirs"
17712 eval flag=\"$hardcode_libdir_flag_spec\"
17713 libdir="$acl_save_libdir"
17714 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17715 else
17716 for found_dir in $rpathdirs; do
17717 acl_save_libdir="$libdir"
17718 libdir="$found_dir"
17719 eval flag=\"$hardcode_libdir_flag_spec\"
17720 libdir="$acl_save_libdir"
17721 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17722 done
17725 if test "X$ltrpathdirs" != "X"; then
17726 for found_dir in $ltrpathdirs; do
17727 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17728 done
17731 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17733 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736 gt_save_CPPFLAGS="$CPPFLAGS"
17737 CPPFLAGS="$CPPFLAGS $INCINTL"
17738 gt_save_LIBS="$LIBS"
17739 LIBS="$LIBS $LIBINTL"
17740 cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h. */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 #include <libintl.h>
17747 extern int _nl_msg_cat_cntr;
17748 extern
17749 #ifdef __cplusplus
17751 #endif
17752 const char *_nl_expand_alias ();
17754 main ()
17756 bindtextdomain ("", "");
17757 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17759 return 0;
17761 _ACEOF
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>conftest.er1
17765 ac_status=$?
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 gt_cv_func_gnugettext2_libintl=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 gt_cv_func_gnugettext2_libintl=no
17791 rm -f conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17794 LIBS="$LIBS $LIBICONV"
17795 cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h. */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 #include <libintl.h>
17802 extern int _nl_msg_cat_cntr;
17803 extern
17804 #ifdef __cplusplus
17806 #endif
17807 const char *_nl_expand_alias ();
17809 main ()
17811 bindtextdomain ("", "");
17812 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17814 return 0;
17816 _ACEOF
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 LIBINTL="$LIBINTL $LIBICONV"
17840 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17841 gt_cv_func_gnugettext2_libintl=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17848 rm -f conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17851 CPPFLAGS="$gt_save_CPPFLAGS"
17852 LIBS="$gt_save_LIBS"
17854 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17855 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17858 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17859 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17860 && test "$PACKAGE" != gettext; }; then
17861 gt_use_preinstalled_gnugettext=yes
17862 else
17863 LIBINTL=
17864 LTLIBINTL=
17865 INCINTL=
17869 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17870 nls_cv_use_gnu_gettext=yes
17874 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17875 INTLOBJS="\$(GETTOBJS)"
17876 BUILD_INCLUDED_LIBINTL=yes
17877 USE_INCLUDED_LIBINTL=yes
17878 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17879 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17880 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17883 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17884 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17885 CATOBJEXT=.gmo
17889 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17890 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17892 cat >>confdefs.h <<\_ACEOF
17893 #define ENABLE_NLS 1
17894 _ACEOF
17896 else
17897 USE_NLS=no
17901 if test "$USE_NLS" = "yes"; then
17903 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17904 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17905 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17906 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17907 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17908 echo "${ECHO_T}$LIBINTL" >&6
17910 for element in $INCINTL; do
17911 haveit=
17912 for x in $CPPFLAGS; do
17914 acl_save_prefix="$prefix"
17915 prefix="$acl_final_prefix"
17916 acl_save_exec_prefix="$exec_prefix"
17917 exec_prefix="$acl_final_exec_prefix"
17918 eval x=\"$x\"
17919 exec_prefix="$acl_save_exec_prefix"
17920 prefix="$acl_save_prefix"
17922 if test "X$x" = "X$element"; then
17923 haveit=yes
17924 break
17926 done
17927 if test -z "$haveit"; then
17928 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17930 done
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_GETTEXT 1
17937 _ACEOF
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_DCGETTEXT 1
17942 _ACEOF
17946 POSUB=po
17950 if test "$PACKAGE" = gettext; then
17951 BUILD_INCLUDED_LIBINTL=yes
17959 nls_cv_header_intl=
17960 nls_cv_header_libgt=
17962 DATADIRNAME=share
17965 INSTOBJEXT=.mo
17968 GENCAT=gencat
17971 INTL_LIBTOOL_SUFFIX_PREFIX=
17975 INTLLIBS="$LIBINTL"
17982 if test $USE_INCLUDED_LIBINTL = yes; then
17983 INCINTL=-I\${top_builddir}/intl
17987 if test x$USE_NLS = xyes; then
17989 echo "$as_me:$LINENO: checking for autopoint" >&5
17990 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17991 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17992 if test -n "$autopoint_version"; then
17994 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17995 echo "${ECHO_T}yes ($autopoint_version)" >&6
17998 else
18000 echo "$as_me:$LINENO: result: no" >&5
18001 echo "${ECHO_T}no" >&6
18002 USE_NLS=no
18009 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18010 { echo "$as_me:$LINENO: WARNING:
18011 You need to install GNU gettext/gettext-tools to compile aMule with
18012 i18n support." >&5
18013 echo "$as_me: WARNING:
18014 You need to install GNU gettext/gettext-tools to compile aMule with
18015 i18n support." >&2;}
18016 _mule_warning_10=yes
18017 _mule_has_warnings=yes
18022 if test ${USE_NLS:-no} = yes; then
18024 echo "$as_me:$LINENO: checking for requested languages" >&5
18025 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18026 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18028 if test "$AMULE_DAEMON" = "yes"; then
18030 if test -z "$LINGUAS"; then
18031 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18032 else
18034 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18035 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18039 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18041 else
18042 AMULE_DAEMON_MANPAGES=
18048 if test "$AMULECMD" = "yes"; then
18050 if test -z "$LINGUAS"; then
18051 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18052 else
18054 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18055 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18059 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18061 else
18062 AMULECMD_MANPAGES=
18068 if test "$WEB" = "yes"; then
18070 if test -z "$LINGUAS"; then
18071 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18072 else
18074 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18075 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18079 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18081 else
18082 WEB_MANPAGES=
18088 if test "$AMULE_GUI" = "yes"; then
18090 if test -z "$LINGUAS"; then
18091 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18092 else
18094 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18095 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18099 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18101 else
18102 AMULE_GUI_MANPAGES=
18108 if test "$CAS" = "yes"; then
18110 if test -z "$LINGUAS"; then
18111 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18112 else
18114 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18115 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18119 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18121 else
18122 CAS_MANPAGES=
18128 if test "$WXCAS" = "yes"; then
18130 if test -z "$LINGUAS"; then
18131 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18132 else
18134 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18135 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18139 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18141 else
18142 WXCAS_MANPAGES=
18148 if test "$ED2K" = "yes"; then
18150 if test -z "$LINGUAS"; then
18151 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18152 else
18154 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18155 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18159 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18161 else
18162 ED2K_MANPAGES=
18168 if test "$ALC" = "yes"; then
18170 if test -z "$LINGUAS"; then
18171 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18172 else
18174 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18175 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18179 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18181 else
18182 ALC_MANPAGES=
18188 if test "$ALCC" = "yes"; then
18190 if test -z "$LINGUAS"; then
18191 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18192 else
18194 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18195 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18199 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18201 else
18202 ALCC_MANPAGES=
18208 if test "$MONOLITHIC" = "yes"; then
18210 if test -z "$LINGUAS"; then
18211 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18212 else
18214 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18215 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18219 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18221 else
18222 MONOLITHIC_MANPAGES=
18227 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18228 echo "${ECHO_T}${LINGUAS:-all}" >&6
18235 # Flush standard test results for speeding cache
18236 cat >confcache <<\_ACEOF
18237 # This file is a shell script that caches the results of configure
18238 # tests run on this system so they can be shared between configure
18239 # scripts and configure runs, see configure's option --config-cache.
18240 # It is not useful on other systems. If it contains results you don't
18241 # want to keep, you may remove or edit it.
18243 # config.status only pays attention to the cache file if you give it
18244 # the --recheck option to rerun configure.
18246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18248 # following values.
18250 _ACEOF
18252 # The following way of writing the cache mishandles newlines in values,
18253 # but we know of no workaround that is simple, portable, and efficient.
18254 # So, don't put newlines in cache variables' values.
18255 # Ultrix sh set writes to stderr and can't be redirected directly,
18256 # and sets the high bit in the cache file unless we assign to the vars.
18258 (set) 2>&1 |
18259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18260 *ac_space=\ *)
18261 # `set' does not quote correctly, so add quotes (double-quote
18262 # substitution turns \\\\ into \\, and sed turns \\ into \).
18263 sed -n \
18264 "s/'/'\\\\''/g;
18265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18268 # `set' quotes correctly as required by POSIX, so do not add quotes.
18269 sed -n \
18270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18272 esac;
18274 sed '
18275 t clear
18276 : clear
18277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18278 t end
18279 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18280 : end' >>confcache
18281 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18282 if test -w $cache_file; then
18283 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18284 cat confcache >$cache_file
18285 else
18286 echo "not updating unwritable cache $cache_file"
18289 rm -f confcache
18291 # Other tests
18292 # aMule options
18295 # Check whether --enable-debug or --disable-debug was given.
18296 if test "${enable_debug+set}" = set; then
18297 enableval="$enable_debug"
18298 USE_DEBUG=${enableval:-yes}
18299 else
18300 USE_DEBUG=yes
18303 if test $USE_DEBUG = yes; then
18305 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18307 MULECFLAGS="$MULECFLAGS -g"
18308 MULECXXFLAGS="$MULECXXFLAGS -g"
18310 if test ${GLIBCXX:-no} = yes; then
18311 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18314 if test ${GCC:-no} = yes; then
18316 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18317 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18321 if test ${SYS:-unknown} = win32; then
18322 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18326 else
18328 if test ${GCC:-no} = yes; then
18330 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18331 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18340 # Check whether --enable-optimize or --disable-optimize was given.
18341 if test "${enable_optimize+set}" = set; then
18342 enableval="$enable_optimize"
18343 USE_OPTIMIZE=${enableval:-no}
18344 else
18345 USE_OPTIMIZE=no
18348 if test $USE_OPTIMIZE = yes; then
18350 MULECFLAGS="$MULECFLAGS -O2"
18351 MULECXXFLAGS="$MULECXXFLAGS -O2"
18357 # Check whether --enable-profile or --disable-profile was given.
18358 if test "${enable_profile+set}" = set; then
18359 enableval="$enable_profile"
18360 USE_PROFILE=${enableval:-no}
18361 else
18362 USE_PROFILE=no
18365 if test $USE_PROFILE = yes; then
18368 MULECFLAGS="$MULECFLAGS -pg"
18369 MULECXXFLAGS="$MULECXXFLAGS -pg"
18371 MULELDFLAGS="$MULELDFLAGS -pg"
18377 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18378 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18379 # Check whether --enable-static or --disable-static was given.
18380 if test "${enable_static+set}" = set; then
18381 enableval="$enable_static"
18382 if test ${enableval:-no} = yes; then
18383 MULELDFLAGS="$MULELDFLAGS -static"
18387 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18388 echo "${ECHO_T}${enableval:-no}" >&6
18390 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18393 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18394 echo "$as_me:$LINENO: checking for docdir" >&5
18395 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18396 if test -z "$docdir"; then
18397 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18400 echo "$as_me:$LINENO: result: $docdir" >&5
18401 echo "${ECHO_T}$docdir" >&6
18403 # Try to set the SVN checkout-date
18404 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18405 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18406 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18407 then
18408 svndate="rev. `cat $srcdir/.svn-revision`"
18409 elif test -d $srcdir/.svn # SVNDATE for svn
18410 then
18411 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18413 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18414 echo "${ECHO_T}${svndate:-None required}" >&6
18415 if test -n "$svndate"; then
18418 cat >>confdefs.h <<_ACEOF
18419 #define SVNDATE "$svndate"
18420 _ACEOF
18422 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18426 SVNDATE=$svndate
18430 # Check whether --with-denoise-level or --without-denoise-level was given.
18431 if test "${with_denoise_level+set}" = set; then
18432 withval="$with_denoise_level"
18436 echo "$as_me:$LINENO: checking denoising level" >&5
18437 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18438 if test ${with_denoise_level:-5} = yes; then
18439 with_denoise_level=5
18442 if test ${with_denoise_level:-5} = no; then
18443 with_denoise_level=0
18446 if test ${with_denoise_level:-5} -gt 4; then
18447 if test "${svndate:+set}" = "set"; then
18448 with_denoise_level=0
18449 else
18450 with_denoise_level=4
18455 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18456 echo "${ECHO_T}$with_denoise_level" >&6
18458 ac_config_commands="$ac_config_commands denoiser"
18464 if test x$WEB = xyes; then
18465 WEB_TRUE=
18466 WEB_FALSE='#'
18467 else
18468 WEB_TRUE='#'
18469 WEB_FALSE=
18474 if test x$ED2K = xyes; then
18475 ED2K_TRUE=
18476 ED2K_FALSE='#'
18477 else
18478 ED2K_TRUE='#'
18479 ED2K_FALSE=
18484 if test x$CAS = xyes; then
18485 CAS_TRUE=
18486 CAS_FALSE='#'
18487 else
18488 CAS_TRUE='#'
18489 CAS_FALSE=
18494 if test x$WXCAS = xyes; then
18495 WXCAS_TRUE=
18496 WXCAS_FALSE='#'
18497 else
18498 WXCAS_TRUE='#'
18499 WXCAS_FALSE=
18504 if test x$ALC = xyes; then
18505 ALC_TRUE=
18506 ALC_FALSE='#'
18507 else
18508 ALC_TRUE='#'
18509 ALC_FALSE=
18514 if test x$ALCC = xyes; then
18515 ALCC_TRUE=
18516 ALCC_FALSE='#'
18517 else
18518 ALCC_TRUE='#'
18519 ALCC_FALSE=
18524 if test x$AMULE_GUI = xyes; then
18525 AMULE_GUI_TRUE=
18526 AMULE_GUI_FALSE='#'
18527 else
18528 AMULE_GUI_TRUE='#'
18529 AMULE_GUI_FALSE=
18534 if test x$AMULE_DAEMON = xyes; then
18535 AMULE_DAEMON_TRUE=
18536 AMULE_DAEMON_FALSE='#'
18537 else
18538 AMULE_DAEMON_TRUE='#'
18539 AMULE_DAEMON_FALSE=
18544 if test x$AMULECMD = xyes; then
18545 COMPILE_CMD_TRUE=
18546 COMPILE_CMD_FALSE='#'
18547 else
18548 COMPILE_CMD_TRUE='#'
18549 COMPILE_CMD_FALSE=
18554 if test x$MONOLITHIC = xyes; then
18555 MONOLITHIC_TRUE=
18556 MONOLITHIC_FALSE='#'
18557 else
18558 MONOLITHIC_TRUE='#'
18559 MONOLITHIC_FALSE=
18564 if test x$XAS = xyes; then
18565 XAS_TRUE=
18566 XAS_FALSE='#'
18567 else
18568 XAS_TRUE='#'
18569 XAS_FALSE=
18574 if test x$ENABLE_UPNP = xyes; then
18575 ENABLE_UPNP_TRUE=
18576 ENABLE_UPNP_FALSE='#'
18577 else
18578 ENABLE_UPNP_TRUE='#'
18579 ENABLE_UPNP_FALSE=
18584 if test x$ENABLE_IP2COUNTRY = xyes; then
18585 ENABLE_IP2COUNTRY_TRUE=
18586 ENABLE_IP2COUNTRY_FALSE='#'
18587 else
18588 ENABLE_IP2COUNTRY_TRUE='#'
18589 ENABLE_IP2COUNTRY_FALSE=
18594 if test x$SYS = xwin32; then
18595 SYS_WIN32_TRUE=
18596 SYS_WIN32_FALSE='#'
18597 else
18598 SYS_WIN32_TRUE='#'
18599 SYS_WIN32_FALSE=
18604 if test x$SYS = xwin32 -a "$RC" != ":"; then
18605 NEED_RC_TRUE=
18606 NEED_RC_FALSE='#'
18607 else
18608 NEED_RC_TRUE='#'
18609 NEED_RC_FALSE=
18614 if test x$SYS = xdarwin; then
18615 NEED_CORESERVICES_TRUE=
18616 NEED_CORESERVICES_FALSE='#'
18617 else
18618 NEED_CORESERVICES_TRUE='#'
18619 NEED_CORESERVICES_FALSE=
18624 if test x$USE_NLS = xyes; then
18625 COMPILE_NLS_TRUE=
18626 COMPILE_NLS_FALSE='#'
18627 else
18628 COMPILE_NLS_TRUE='#'
18629 COMPILE_NLS_FALSE=
18634 if test x$HAVE_FLEX_EXTENDED = xyes; then
18635 GENERATE_FLEX_HEADER_TRUE=
18636 GENERATE_FLEX_HEADER_FALSE='#'
18637 else
18638 GENERATE_FLEX_HEADER_TRUE='#'
18639 GENERATE_FLEX_HEADER_FALSE=
18644 if test x$INSTALL_SKINS = xyes; then
18645 INSTALL_SKINS_TRUE=
18646 INSTALL_SKINS_FALSE='#'
18647 else
18648 INSTALL_SKINS_TRUE='#'
18649 INSTALL_SKINS_FALSE=
18653 # Check for readline library
18654 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18656 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18657 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18658 if test "${vl_cv_lib_readline+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18662 ORIG_LIBS="$LIBS"
18663 for readline_lib in readline edit editline; do
18664 for termcap_lib in "" termcap curses ncurses; do
18665 if test -z "$termcap_lib"; then
18666 TRY_LIB="-l$readline_lib"
18667 else
18668 TRY_LIB="-l$readline_lib -l$termcap_lib"
18670 LIBS="$ORIG_LIBS $TRY_LIB"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18678 /* Override any gcc2 internal prototype to avoid an error. */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 /* We use char because int might match the return type of a gcc2
18683 builtin and then its argument prototype would still apply. */
18684 char readline ();
18686 main ()
18688 readline ();
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag"
18703 || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 vl_cv_lib_readline="$TRY_LIB"
18716 else
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18721 rm -f conftest.err conftest.$ac_objext \
18722 conftest$ac_exeext conftest.$ac_ext
18723 if test -n "$vl_cv_lib_readline"; then
18724 break
18726 done
18727 if test -n "$vl_cv_lib_readline"; then
18728 break
18730 done
18731 if test -z "$vl_cv_lib_readline"; then
18732 vl_cv_lib_readline="no"
18733 LIBS="$ORIG_LIBS"
18734 READLINE_LIBS=""
18735 else
18736 READLINE_LIBS="$vl_cv_lib_readline"
18740 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18741 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18743 if test "$vl_cv_lib_readline" != "no"; then
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE_LIBREADLINE 1
18747 _ACEOF
18751 for ac_header in readline.h readline/readline.h
18753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18762 else
18763 # Is the header compilable?
18764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h. */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 $ac_includes_default
18773 #include <$ac_header>
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>conftest.er1
18778 ac_status=$?
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag"
18785 || test ! -s conftest.err'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
18797 ac_header_compiler=yes
18798 else
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18802 ac_header_compiler=no
18804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18806 echo "${ECHO_T}$ac_header_compiler" >&6
18808 # Is the header present?
18809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #include <$ac_header>
18818 _ACEOF
18819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } >/dev/null; then
18827 if test -s conftest.err; then
18828 ac_cpp_err=$ac_c_preproc_warn_flag
18829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18830 else
18831 ac_cpp_err=
18833 else
18834 ac_cpp_err=yes
18836 if test -z "$ac_cpp_err"; then
18837 ac_header_preproc=yes
18838 else
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_header_preproc=no
18844 rm -f conftest.err conftest.$ac_ext
18845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18846 echo "${ECHO_T}$ac_header_preproc" >&6
18848 # So? What about this header?
18849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18850 yes:no: )
18851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18855 ac_header_preproc=yes
18857 no:yes:* )
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18871 cat <<\_ASBOX
18872 ## ------------------------------ ##
18873 ## Report this to admin@amule.org ##
18874 ## ------------------------------ ##
18875 _ASBOX
18877 sed "s/^/$as_me: WARNING: /" >&2
18879 esac
18880 echo "$as_me:$LINENO: checking for $ac_header" >&5
18881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885 eval "$as_ac_Header=\$ac_header_preproc"
18887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18892 cat >>confdefs.h <<_ACEOF
18893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18894 _ACEOF
18898 done
18900 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18901 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18902 if test "${vl_cv_lib_readline_history+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18906 vl_cv_lib_readline_history="no"
18907 cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h. */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18914 /* Override any gcc2 internal prototype to avoid an error. */
18915 #ifdef __cplusplus
18916 extern "C"
18917 #endif
18918 /* We use char because int might match the return type of a gcc2
18919 builtin and then its argument prototype would still apply. */
18920 char add_history ();
18922 main ()
18924 add_history ();
18926 return 0;
18928 _ACEOF
18929 rm -f conftest.$ac_objext conftest$ac_exeext
18930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18931 (eval $ac_link) 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag"
18939 || test ! -s conftest.err'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 vl_cv_lib_readline_history="yes"
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18957 rm -f conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18962 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18963 if test "$vl_cv_lib_readline_history" = "yes"; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE_READLINE_HISTORY 1
18967 _ACEOF
18971 for ac_header in history.h readline/history.h
18973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18975 echo "$as_me:$LINENO: checking for $ac_header" >&5
18976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18982 else
18983 # Is the header compilable?
18984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h. */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18993 #include <$ac_header>
18994 _ACEOF
18995 rm -f conftest.$ac_objext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18997 (eval $ac_compile) 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag"
19005 || test ! -s conftest.err'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_header_compiler=yes
19018 else
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_header_compiler=no
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19026 echo "${ECHO_T}$ac_header_compiler" >&6
19028 # Is the header present?
19029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <$ac_header>
19038 _ACEOF
19039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null; then
19047 if test -s conftest.err; then
19048 ac_cpp_err=$ac_c_preproc_warn_flag
19049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19050 else
19051 ac_cpp_err=
19053 else
19054 ac_cpp_err=yes
19056 if test -z "$ac_cpp_err"; then
19057 ac_header_preproc=yes
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_header_preproc=no
19064 rm -f conftest.err conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19066 echo "${ECHO_T}$ac_header_preproc" >&6
19068 # So? What about this header?
19069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19070 yes:no: )
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19075 ac_header_preproc=yes
19077 no:yes:* )
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19091 cat <<\_ASBOX
19092 ## ------------------------------ ##
19093 ## Report this to admin@amule.org ##
19094 ## ------------------------------ ##
19095 _ASBOX
19097 sed "s/^/$as_me: WARNING: /" >&2
19099 esac
19100 echo "$as_me:$LINENO: checking for $ac_header" >&5
19101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105 eval "$as_ac_Header=\$ac_header_preproc"
19107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19114 _ACEOF
19118 done
19123 LIBS="$ORIG_LIBS"
19127 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19130 # Check whether --enable-ccache or --disable-ccache was given.
19131 if test "${enable_ccache+set}" = set; then
19132 enableval="$enable_ccache"
19137 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19138 if test "${with_ccache_prefix+set}" = set; then
19139 withval="$with_ccache_prefix"
19143 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19144 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19145 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19146 echo "${ECHO_T}${enable_ccache:-no}" >&6
19148 if test ${enable_ccache:-no} = yes; then
19150 echo "$as_me:$LINENO: checking for ccache presence" >&5
19151 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19152 if test -z "$with_ccache_prefix"; then
19154 ccache_full=`which ccache`
19155 with_ccache_prefix=`dirname ${ccache_full}`
19159 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19161 echo "$as_me:$LINENO: result: yes" >&5
19162 echo "${ECHO_T}yes" >&6
19163 CC="$with_ccache_prefix/ccache $CC"
19164 CXX="$with_ccache_prefix/ccache $CXX"
19165 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19167 else
19169 enable_ccache=no
19170 echo "$as_me:$LINENO: result: no" >&5
19171 echo "${ECHO_T}no" >&6
19180 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"
19182 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19184 if test x$SYS = xwin32; then
19185 ac_config_files="$ac_config_files version.rc"
19189 cat >confcache <<\_ACEOF
19190 # This file is a shell script that caches the results of configure
19191 # tests run on this system so they can be shared between configure
19192 # scripts and configure runs, see configure's option --config-cache.
19193 # It is not useful on other systems. If it contains results you don't
19194 # want to keep, you may remove or edit it.
19196 # config.status only pays attention to the cache file if you give it
19197 # the --recheck option to rerun configure.
19199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19201 # following values.
19203 _ACEOF
19205 # The following way of writing the cache mishandles newlines in values,
19206 # but we know of no workaround that is simple, portable, and efficient.
19207 # So, don't put newlines in cache variables' values.
19208 # Ultrix sh set writes to stderr and can't be redirected directly,
19209 # and sets the high bit in the cache file unless we assign to the vars.
19211 (set) 2>&1 |
19212 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19213 *ac_space=\ *)
19214 # `set' does not quote correctly, so add quotes (double-quote
19215 # substitution turns \\\\ into \\, and sed turns \\ into \).
19216 sed -n \
19217 "s/'/'\\\\''/g;
19218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19221 # `set' quotes correctly as required by POSIX, so do not add quotes.
19222 sed -n \
19223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19225 esac;
19227 sed '
19228 t clear
19229 : clear
19230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19231 t end
19232 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19233 : end' >>confcache
19234 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19235 if test -w $cache_file; then
19236 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19237 cat confcache >$cache_file
19238 else
19239 echo "not updating unwritable cache $cache_file"
19242 rm -f confcache
19244 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19245 # Let make expand exec_prefix.
19246 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19250 # trailing colons and then remove the whole line if VPATH becomes empty
19251 # (actually we leave an empty line to preserve line numbers).
19252 if test "x$srcdir" = x.; then
19253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19254 s/:*\$(srcdir):*/:/;
19255 s/:*\${srcdir}:*/:/;
19256 s/:*@srcdir@:*/:/;
19257 s/^\([^=]*=[ ]*\):*/\1/;
19258 s/:*$//;
19259 s/^[^=]*=[ ]*$//;
19263 DEFS=-DHAVE_CONFIG_H
19265 ac_libobjs=
19266 ac_ltlibobjs=
19267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19268 # 1. Remove the extension, and $U if already installed.
19269 ac_i=`echo "$ac_i" |
19270 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19271 # 2. Add them.
19272 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19273 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19274 done
19275 LIBOBJS=$ac_libobjs
19277 LTLIBOBJS=$ac_ltlibobjs
19280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19281 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19282 Usually this means the macro was only invoked conditionally." >&5
19283 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19284 Usually this means the macro was only invoked conditionally." >&2;}
19285 { (exit 1); exit 1; }; }
19287 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19288 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19289 Usually this means the macro was only invoked conditionally." >&5
19290 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19291 Usually this means the macro was only invoked conditionally." >&2;}
19292 { (exit 1); exit 1; }; }
19294 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19295 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19296 Usually this means the macro was only invoked conditionally." >&5
19297 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19298 Usually this means the macro was only invoked conditionally." >&2;}
19299 { (exit 1); exit 1; }; }
19301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19302 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19303 Usually this means the macro was only invoked conditionally." >&5
19304 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19305 Usually this means the macro was only invoked conditionally." >&2;}
19306 { (exit 1); exit 1; }; }
19308 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19309 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19310 Usually this means the macro was only invoked conditionally." >&5
19311 echo "$as_me: error: conditional \"WEB\" was never defined.
19312 Usually this means the macro was only invoked conditionally." >&2;}
19313 { (exit 1); exit 1; }; }
19315 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19316 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19317 Usually this means the macro was only invoked conditionally." >&5
19318 echo "$as_me: error: conditional \"ED2K\" was never defined.
19319 Usually this means the macro was only invoked conditionally." >&2;}
19320 { (exit 1); exit 1; }; }
19322 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19323 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19324 Usually this means the macro was only invoked conditionally." >&5
19325 echo "$as_me: error: conditional \"CAS\" was never defined.
19326 Usually this means the macro was only invoked conditionally." >&2;}
19327 { (exit 1); exit 1; }; }
19329 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19330 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19331 Usually this means the macro was only invoked conditionally." >&5
19332 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19333 Usually this means the macro was only invoked conditionally." >&2;}
19334 { (exit 1); exit 1; }; }
19336 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19337 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19338 Usually this means the macro was only invoked conditionally." >&5
19339 echo "$as_me: error: conditional \"ALC\" was never defined.
19340 Usually this means the macro was only invoked conditionally." >&2;}
19341 { (exit 1); exit 1; }; }
19343 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19344 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19345 Usually this means the macro was only invoked conditionally." >&5
19346 echo "$as_me: error: conditional \"ALCC\" was never defined.
19347 Usually this means the macro was only invoked conditionally." >&2;}
19348 { (exit 1); exit 1; }; }
19350 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19351 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19352 Usually this means the macro was only invoked conditionally." >&5
19353 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19354 Usually this means the macro was only invoked conditionally." >&2;}
19355 { (exit 1); exit 1; }; }
19357 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19358 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19359 Usually this means the macro was only invoked conditionally." >&5
19360 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19361 Usually this means the macro was only invoked conditionally." >&2;}
19362 { (exit 1); exit 1; }; }
19364 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19365 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19366 Usually this means the macro was only invoked conditionally." >&5
19367 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19368 Usually this means the macro was only invoked conditionally." >&2;}
19369 { (exit 1); exit 1; }; }
19371 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19372 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19373 Usually this means the macro was only invoked conditionally." >&5
19374 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&2;}
19376 { (exit 1); exit 1; }; }
19378 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19379 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19380 Usually this means the macro was only invoked conditionally." >&5
19381 echo "$as_me: error: conditional \"XAS\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&2;}
19383 { (exit 1); exit 1; }; }
19385 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19386 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19387 Usually this means the macro was only invoked conditionally." >&5
19388 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19389 Usually this means the macro was only invoked conditionally." >&2;}
19390 { (exit 1); exit 1; }; }
19392 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19393 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19394 Usually this means the macro was only invoked conditionally." >&5
19395 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19396 Usually this means the macro was only invoked conditionally." >&2;}
19397 { (exit 1); exit 1; }; }
19399 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19400 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19401 Usually this means the macro was only invoked conditionally." >&5
19402 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19403 Usually this means the macro was only invoked conditionally." >&2;}
19404 { (exit 1); exit 1; }; }
19406 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19407 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19408 Usually this means the macro was only invoked conditionally." >&5
19409 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19410 Usually this means the macro was only invoked conditionally." >&2;}
19411 { (exit 1); exit 1; }; }
19413 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19414 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19415 Usually this means the macro was only invoked conditionally." >&5
19416 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19417 Usually this means the macro was only invoked conditionally." >&2;}
19418 { (exit 1); exit 1; }; }
19420 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19421 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19422 Usually this means the macro was only invoked conditionally." >&5
19423 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19424 Usually this means the macro was only invoked conditionally." >&2;}
19425 { (exit 1); exit 1; }; }
19427 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19428 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19429 Usually this means the macro was only invoked conditionally." >&5
19430 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19431 Usually this means the macro was only invoked conditionally." >&2;}
19432 { (exit 1); exit 1; }; }
19434 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19435 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19436 Usually this means the macro was only invoked conditionally." >&5
19437 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19438 Usually this means the macro was only invoked conditionally." >&2;}
19439 { (exit 1); exit 1; }; }
19442 : ${CONFIG_STATUS=./config.status}
19443 ac_clean_files_save=$ac_clean_files
19444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19445 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19446 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19447 cat >$CONFIG_STATUS <<_ACEOF
19448 #! $SHELL
19449 # Generated by $as_me.
19450 # Run this file to recreate the current configuration.
19451 # Compiler output produced by configure, useful for debugging
19452 # configure, is in config.log if it exists.
19454 debug=false
19455 ac_cs_recheck=false
19456 ac_cs_silent=false
19457 SHELL=\${CONFIG_SHELL-$SHELL}
19458 _ACEOF
19460 cat >>$CONFIG_STATUS <<\_ACEOF
19461 ## --------------------- ##
19462 ## M4sh Initialization. ##
19463 ## --------------------- ##
19465 # Be Bourne compatible
19466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19467 emulate sh
19468 NULLCMD=:
19469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19470 # is contrary to our usage. Disable this feature.
19471 alias -g '${1+"$@"}'='"$@"'
19472 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19473 set -o posix
19475 DUALCASE=1; export DUALCASE # for MKS sh
19477 # Support unset when possible.
19478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19479 as_unset=unset
19480 else
19481 as_unset=false
19485 # Work around bugs in pre-3.0 UWIN ksh.
19486 $as_unset ENV MAIL MAILPATH
19487 PS1='$ '
19488 PS2='> '
19489 PS4='+ '
19491 # NLS nuisances.
19492 for as_var in \
19493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19495 LC_TELEPHONE LC_TIME
19497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19498 eval $as_var=C; export $as_var
19499 else
19500 $as_unset $as_var
19502 done
19504 # Required to use basename.
19505 if expr a : '\(a\)' >/dev/null 2>&1; then
19506 as_expr=expr
19507 else
19508 as_expr=false
19511 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19512 as_basename=basename
19513 else
19514 as_basename=false
19518 # Name of the executable.
19519 as_me=`$as_basename "$0" ||
19520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19521 X"$0" : 'X\(//\)$' \| \
19522 X"$0" : 'X\(/\)$' \| \
19523 . : '\(.\)' 2>/dev/null ||
19524 echo X/"$0" |
19525 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19526 /^X\/\(\/\/\)$/{ s//\1/; q; }
19527 /^X\/\(\/\).*/{ s//\1/; q; }
19528 s/.*/./; q'`
19531 # PATH needs CR, and LINENO needs CR and PATH.
19532 # Avoid depending upon Character Ranges.
19533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19536 as_cr_digits='0123456789'
19537 as_cr_alnum=$as_cr_Letters$as_cr_digits
19539 # The user is always right.
19540 if test "${PATH_SEPARATOR+set}" != set; then
19541 echo "#! /bin/sh" >conf$$.sh
19542 echo "exit 0" >>conf$$.sh
19543 chmod +x conf$$.sh
19544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19545 PATH_SEPARATOR=';'
19546 else
19547 PATH_SEPARATOR=:
19549 rm -f conf$$.sh
19553 as_lineno_1=$LINENO
19554 as_lineno_2=$LINENO
19555 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19556 test "x$as_lineno_1" != "x$as_lineno_2" &&
19557 test "x$as_lineno_3" = "x$as_lineno_2" || {
19558 # Find who we are. Look in the path if we contain no path at all
19559 # relative or not.
19560 case $0 in
19561 *[\\/]* ) as_myself=$0 ;;
19562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19563 for as_dir in $PATH
19565 IFS=$as_save_IFS
19566 test -z "$as_dir" && as_dir=.
19567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19568 done
19571 esac
19572 # We did not find ourselves, most probably we were run as `sh COMMAND'
19573 # in which case we are not to be found in the path.
19574 if test "x$as_myself" = x; then
19575 as_myself=$0
19577 if test ! -f "$as_myself"; then
19578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19580 { (exit 1); exit 1; }; }
19582 case $CONFIG_SHELL in
19584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19587 IFS=$as_save_IFS
19588 test -z "$as_dir" && as_dir=.
19589 for as_base in sh bash ksh sh5; do
19590 case $as_dir in
19592 if ("$as_dir/$as_base" -c '
19593 as_lineno_1=$LINENO
19594 as_lineno_2=$LINENO
19595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19596 test "x$as_lineno_1" != "x$as_lineno_2" &&
19597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19598 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19599 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19600 CONFIG_SHELL=$as_dir/$as_base
19601 export CONFIG_SHELL
19602 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19603 fi;;
19604 esac
19605 done
19606 done
19608 esac
19610 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19611 # uniformly replaced by the line number. The first 'sed' inserts a
19612 # line-number line before each line; the second 'sed' does the real
19613 # work. The second script uses 'N' to pair each line-number line
19614 # with the numbered line, and appends trailing '-' during
19615 # substitution so that $LINENO is not a special case at line end.
19616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19617 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19618 sed '=' <$as_myself |
19619 sed '
19621 s,$,-,
19622 : loop
19623 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19624 t loop
19625 s,-$,,
19626 s,^['$as_cr_digits']*\n,,
19627 ' >$as_me.lineno &&
19628 chmod +x $as_me.lineno ||
19629 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19630 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19631 { (exit 1); exit 1; }; }
19633 # Don't try to exec as it changes $[0], causing all sort of problems
19634 # (the dirname of $[0] is not the place where we might find the
19635 # original and so on. Autoconf is especially sensible to this).
19636 . ./$as_me.lineno
19637 # Exit status is that of the last command.
19638 exit
19642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19643 *c*,-n*) ECHO_N= ECHO_C='
19644 ' ECHO_T=' ' ;;
19645 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19646 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19647 esac
19649 if expr a : '\(a\)' >/dev/null 2>&1; then
19650 as_expr=expr
19651 else
19652 as_expr=false
19655 rm -f conf$$ conf$$.exe conf$$.file
19656 echo >conf$$.file
19657 if ln -s conf$$.file conf$$ 2>/dev/null; then
19658 # We could just check for DJGPP; but this test a) works b) is more generic
19659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19660 if test -f conf$$.exe; then
19661 # Don't use ln at all; we don't have any links
19662 as_ln_s='cp -p'
19663 else
19664 as_ln_s='ln -s'
19666 elif ln conf$$.file conf$$ 2>/dev/null; then
19667 as_ln_s=ln
19668 else
19669 as_ln_s='cp -p'
19671 rm -f conf$$ conf$$.exe conf$$.file
19673 if mkdir -p . 2>/dev/null; then
19674 as_mkdir_p=:
19675 else
19676 test -d ./-p && rmdir ./-p
19677 as_mkdir_p=false
19680 as_executable_p="test -f"
19682 # Sed expression to map a string onto a valid CPP name.
19683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19685 # Sed expression to map a string onto a valid variable name.
19686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19689 # IFS
19690 # We need space, tab and new line, in precisely that order.
19691 as_nl='
19693 IFS=" $as_nl"
19695 # CDPATH.
19696 $as_unset CDPATH
19698 exec 6>&1
19700 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19701 # report actual input values of CONFIG_FILES etc. instead of their
19702 # values after options handling. Logging --version etc. is OK.
19703 exec 5>>config.log
19705 echo
19706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19707 ## Running $as_me. ##
19708 _ASBOX
19709 } >&5
19710 cat >&5 <<_CSEOF
19712 This file was extended by aMule $as_me SVN, which was
19713 generated by GNU Autoconf 2.59. Invocation command line was
19715 CONFIG_FILES = $CONFIG_FILES
19716 CONFIG_HEADERS = $CONFIG_HEADERS
19717 CONFIG_LINKS = $CONFIG_LINKS
19718 CONFIG_COMMANDS = $CONFIG_COMMANDS
19719 $ $0 $@
19721 _CSEOF
19722 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19723 echo >&5
19724 _ACEOF
19726 # Files that config.status was made for.
19727 if test -n "$ac_config_files"; then
19728 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19731 if test -n "$ac_config_headers"; then
19732 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19735 if test -n "$ac_config_links"; then
19736 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19739 if test -n "$ac_config_commands"; then
19740 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19743 cat >>$CONFIG_STATUS <<\_ACEOF
19745 ac_cs_usage="\
19746 \`$as_me' instantiates files from templates according to the
19747 current configuration.
19749 Usage: $0 [OPTIONS] [FILE]...
19751 -h, --help print this help, then exit
19752 -V, --version print version number, then exit
19753 -q, --quiet do not print progress messages
19754 -d, --debug don't remove temporary files
19755 --recheck update $as_me by reconfiguring in the same conditions
19756 --file=FILE[:TEMPLATE]
19757 instantiate the configuration file FILE
19758 --header=FILE[:TEMPLATE]
19759 instantiate the configuration header FILE
19761 Configuration files:
19762 $config_files
19764 Configuration headers:
19765 $config_headers
19767 Configuration commands:
19768 $config_commands
19770 Report bugs to <bug-autoconf@gnu.org>."
19771 _ACEOF
19773 cat >>$CONFIG_STATUS <<_ACEOF
19774 ac_cs_version="\\
19775 aMule config.status SVN
19776 configured by $0, generated by GNU Autoconf 2.59,
19777 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19779 Copyright (C) 2003 Free Software Foundation, Inc.
19780 This config.status script is free software; the Free Software Foundation
19781 gives unlimited permission to copy, distribute and modify it."
19782 srcdir=$srcdir
19783 INSTALL="$INSTALL"
19784 _ACEOF
19786 cat >>$CONFIG_STATUS <<\_ACEOF
19787 # If no file are specified by the user, then we need to provide default
19788 # value. By we need to know if files were specified by the user.
19789 ac_need_defaults=:
19790 while test $# != 0
19792 case $1 in
19793 --*=*)
19794 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19795 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19796 ac_shift=:
19799 ac_option=$1
19800 ac_optarg=$2
19801 ac_shift=shift
19803 *) # This is not an option, so the user has probably given explicit
19804 # arguments.
19805 ac_option=$1
19806 ac_need_defaults=false;;
19807 esac
19809 case $ac_option in
19810 # Handling of the options.
19811 _ACEOF
19812 cat >>$CONFIG_STATUS <<\_ACEOF
19813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19814 ac_cs_recheck=: ;;
19815 --version | --vers* | -V )
19816 echo "$ac_cs_version"; exit 0 ;;
19817 --he | --h)
19818 # Conflict between --help and --header
19819 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19820 Try \`$0 --help' for more information." >&5
19821 echo "$as_me: error: ambiguous option: $1
19822 Try \`$0 --help' for more information." >&2;}
19823 { (exit 1); exit 1; }; };;
19824 --help | --hel | -h )
19825 echo "$ac_cs_usage"; exit 0 ;;
19826 --debug | --d* | -d )
19827 debug=: ;;
19828 --file | --fil | --fi | --f )
19829 $ac_shift
19830 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19831 ac_need_defaults=false;;
19832 --header | --heade | --head | --hea )
19833 $ac_shift
19834 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19835 ac_need_defaults=false;;
19836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19838 ac_cs_silent=: ;;
19840 # This is an error.
19841 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19842 Try \`$0 --help' for more information." >&5
19843 echo "$as_me: error: unrecognized option: $1
19844 Try \`$0 --help' for more information." >&2;}
19845 { (exit 1); exit 1; }; } ;;
19847 *) ac_config_targets="$ac_config_targets $1" ;;
19849 esac
19850 shift
19851 done
19853 ac_configure_extra_args=
19855 if $ac_cs_silent; then
19856 exec 6>/dev/null
19857 ac_configure_extra_args="$ac_configure_extra_args --silent"
19860 _ACEOF
19861 cat >>$CONFIG_STATUS <<_ACEOF
19862 if \$ac_cs_recheck; then
19863 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19864 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19867 _ACEOF
19869 cat >>$CONFIG_STATUS <<_ACEOF
19871 # INIT-COMMANDS section.
19874 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19875 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19876 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19877 # from automake.
19878 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19879 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19880 LINGUAS="${LINGUAS-%UNSET%}"
19882 denoiserlevel=$with_denoise_level
19884 _ACEOF
19888 cat >>$CONFIG_STATUS <<\_ACEOF
19889 for ac_config_target in $ac_config_targets
19891 case "$ac_config_target" in
19892 # Handling of arguments.
19893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19894 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19895 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19896 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19897 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19898 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19899 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19900 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19901 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19902 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19903 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19904 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19905 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19906 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19907 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19908 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19909 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19910 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19911 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19912 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19913 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19914 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19915 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19916 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19917 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19918 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19919 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19920 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19921 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19922 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19923 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19924 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19925 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19926 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19927 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19928 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19929 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19930 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19933 { (exit 1); exit 1; }; };;
19934 esac
19935 done
19937 # If the user did not use the arguments to specify the items to instantiate,
19938 # then the envvar interface is used. Set only those that are not.
19939 # We use the long form for the default assignment because of an extremely
19940 # bizarre bug on SunOS 4.1.3.
19941 if $ac_need_defaults; then
19942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19947 # Have a temporary directory for convenience. Make it in the build tree
19948 # simply because there is no reason to put it here, and in addition,
19949 # creating and moving files from /tmp can sometimes cause problems.
19950 # Create a temporary directory, and hook for its removal unless debugging.
19951 $debug ||
19953 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19954 trap '{ (exit 1); exit 1; }' 1 2 13 15
19957 # Create a (secure) tmp directory for tmp files.
19960 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19961 test -n "$tmp" && test -d "$tmp"
19962 } ||
19964 tmp=./confstat$$-$RANDOM
19965 (umask 077 && mkdir $tmp)
19966 } ||
19968 echo "$me: cannot create a temporary directory in ." >&2
19969 { (exit 1); exit 1; }
19972 _ACEOF
19974 cat >>$CONFIG_STATUS <<_ACEOF
19977 # CONFIG_FILES section.
19980 # No need to generate the scripts if there are no CONFIG_FILES.
19981 # This happens for instance when ./config.status config.h
19982 if test -n "\$CONFIG_FILES"; then
19983 # Protect against being on the right side of a sed subst in config.status.
19984 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19985 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19986 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19987 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19988 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19989 s,@SHELL@,$SHELL,;t t
19990 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19991 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19992 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19993 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19994 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19995 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19996 s,@exec_prefix@,$exec_prefix,;t t
19997 s,@prefix@,$prefix,;t t
19998 s,@program_transform_name@,$program_transform_name,;t t
19999 s,@bindir@,$bindir,;t t
20000 s,@sbindir@,$sbindir,;t t
20001 s,@libexecdir@,$libexecdir,;t t
20002 s,@datadir@,$datadir,;t t
20003 s,@sysconfdir@,$sysconfdir,;t t
20004 s,@sharedstatedir@,$sharedstatedir,;t t
20005 s,@localstatedir@,$localstatedir,;t t
20006 s,@libdir@,$libdir,;t t
20007 s,@includedir@,$includedir,;t t
20008 s,@oldincludedir@,$oldincludedir,;t t
20009 s,@infodir@,$infodir,;t t
20010 s,@mandir@,$mandir,;t t
20011 s,@build_alias@,$build_alias,;t t
20012 s,@host_alias@,$host_alias,;t t
20013 s,@target_alias@,$target_alias,;t t
20014 s,@DEFS@,$DEFS,;t t
20015 s,@ECHO_C@,$ECHO_C,;t t
20016 s,@ECHO_N@,$ECHO_N,;t t
20017 s,@ECHO_T@,$ECHO_T,;t t
20018 s,@LIBS@,$LIBS,;t t
20019 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20020 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20021 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20022 s,@CYGPATH_W@,$CYGPATH_W,;t t
20023 s,@PACKAGE@,$PACKAGE,;t t
20024 s,@VERSION@,$VERSION,;t t
20025 s,@ACLOCAL@,$ACLOCAL,;t t
20026 s,@AUTOCONF@,$AUTOCONF,;t t
20027 s,@AUTOMAKE@,$AUTOMAKE,;t t
20028 s,@AUTOHEADER@,$AUTOHEADER,;t t
20029 s,@MAKEINFO@,$MAKEINFO,;t t
20030 s,@install_sh@,$install_sh,;t t
20031 s,@STRIP@,$STRIP,;t t
20032 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20033 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20034 s,@mkdir_p@,$mkdir_p,;t t
20035 s,@AWK@,$AWK,;t t
20036 s,@SET_MAKE@,$SET_MAKE,;t t
20037 s,@am__leading_dot@,$am__leading_dot,;t t
20038 s,@AMTAR@,$AMTAR,;t t
20039 s,@am__tar@,$am__tar,;t t
20040 s,@am__untar@,$am__untar,;t t
20041 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20042 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20043 s,@MAINT@,$MAINT,;t t
20044 s,@build@,$build,;t t
20045 s,@build_cpu@,$build_cpu,;t t
20046 s,@build_vendor@,$build_vendor,;t t
20047 s,@build_os@,$build_os,;t t
20048 s,@host@,$host,;t t
20049 s,@host_cpu@,$host_cpu,;t t
20050 s,@host_vendor@,$host_vendor,;t t
20051 s,@host_os@,$host_os,;t t
20052 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20053 s,@X11LIBS@,$X11LIBS,;t t
20054 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20055 s,@MULECFLAGS@,$MULECFLAGS,;t t
20056 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20057 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20058 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20059 s,@CXX@,$CXX,;t t
20060 s,@CXXFLAGS@,$CXXFLAGS,;t t
20061 s,@LDFLAGS@,$LDFLAGS,;t t
20062 s,@CPPFLAGS@,$CPPFLAGS,;t t
20063 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20064 s,@EXEEXT@,$EXEEXT,;t t
20065 s,@OBJEXT@,$OBJEXT,;t t
20066 s,@DEPDIR@,$DEPDIR,;t t
20067 s,@am__include@,$am__include,;t t
20068 s,@am__quote@,$am__quote,;t t
20069 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20070 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20071 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20072 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20073 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20074 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20075 s,@CXXCPP@,$CXXCPP,;t t
20076 s,@CC@,$CC,;t t
20077 s,@CFLAGS@,$CFLAGS,;t t
20078 s,@ac_ct_CC@,$ac_ct_CC,;t t
20079 s,@CCDEPMODE@,$CCDEPMODE,;t t
20080 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20081 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20082 s,@CPP@,$CPP,;t t
20083 s,@BUILD_CC@,$BUILD_CC,;t t
20084 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20085 s,@EXEEXT@,$EXEEXT,;t t
20086 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20087 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20088 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20089 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20090 s,@EGREP@,$EGREP,;t t
20091 s,@LEX@,$LEX,;t t
20092 s,@LEXLIB@,$LEXLIB,;t t
20093 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20094 s,@RANLIB@,$RANLIB,;t t
20095 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20096 s,@YACC@,$YACC,;t t
20097 s,@AR@,$AR,;t t
20098 s,@ac_ct_AR@,$ac_ct_AR,;t t
20099 s,@LD@,$LD,;t t
20100 s,@ac_ct_LD@,$ac_ct_LD,;t t
20101 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20102 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20103 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20104 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20105 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20106 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20107 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20108 s,@CAS_DEFS@,$CAS_DEFS,;t t
20109 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20110 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20111 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20112 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20113 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20114 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20115 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20116 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20117 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20118 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20119 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20120 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20121 s,@WX_LIBS@,$WX_LIBS,;t t
20122 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20123 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20124 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20125 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20126 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20127 s,@WX_UNICODE@,$WX_UNICODE,;t t
20128 s,@WX_DEBUG@,$WX_DEBUG,;t t
20129 s,@WX_SHARED@,$WX_SHARED,;t t
20130 s,@WX_PORT@,$WX_PORT,;t t
20131 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20132 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20133 s,@RC@,$RC,;t t
20134 s,@RCFLAGS@,$RCFLAGS,;t t
20135 s,@ac_ct_RC@,$ac_ct_RC,;t t
20136 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20137 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20138 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20139 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20140 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20141 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20142 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20143 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20144 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20145 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20146 s,@BFD_LIBS@,$BFD_LIBS,;t t
20147 s,@ALLOCA@,$ALLOCA,;t t
20148 s,@LIBOBJS@,$LIBOBJS,;t t
20149 s,@POW_LIB@,$POW_LIB,;t t
20150 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20151 s,@MSGFMT@,$MSGFMT,;t t
20152 s,@GMSGFMT@,$GMSGFMT,;t t
20153 s,@XGETTEXT@,$XGETTEXT,;t t
20154 s,@MSGMERGE@,$MSGMERGE,;t t
20155 s,@GLIBC21@,$GLIBC21,;t t
20156 s,@LIBICONV@,$LIBICONV,;t t
20157 s,@LTLIBICONV@,$LTLIBICONV,;t t
20158 s,@INTLBISON@,$INTLBISON,;t t
20159 s,@USE_NLS@,$USE_NLS,;t t
20160 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20161 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20162 s,@CATOBJEXT@,$CATOBJEXT,;t t
20163 s,@INTLOBJS@,$INTLOBJS,;t t
20164 s,@DATADIRNAME@,$DATADIRNAME,;t t
20165 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20166 s,@GENCAT@,$GENCAT,;t t
20167 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20168 s,@INTLLIBS@,$INTLLIBS,;t t
20169 s,@LIBINTL@,$LIBINTL,;t t
20170 s,@LTLIBINTL@,$LTLIBINTL,;t t
20171 s,@POSUB@,$POSUB,;t t
20172 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20173 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20174 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20175 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20176 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20177 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20178 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20179 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20180 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20181 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20182 s,@INCINTL@,$INCINTL,;t t
20183 s,@docdir@,$docdir,;t t
20184 s,@SVNDATE@,$SVNDATE,;t t
20185 s,@WEB_TRUE@,$WEB_TRUE,;t t
20186 s,@WEB_FALSE@,$WEB_FALSE,;t t
20187 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20188 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20189 s,@CAS_TRUE@,$CAS_TRUE,;t t
20190 s,@CAS_FALSE@,$CAS_FALSE,;t t
20191 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20192 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20193 s,@ALC_TRUE@,$ALC_TRUE,;t t
20194 s,@ALC_FALSE@,$ALC_FALSE,;t t
20195 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20196 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20197 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20198 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20199 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20200 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20201 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20202 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20203 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20204 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20205 s,@XAS_TRUE@,$XAS_TRUE,;t t
20206 s,@XAS_FALSE@,$XAS_FALSE,;t t
20207 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20208 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20209 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20210 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20211 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20212 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20213 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20214 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20215 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20216 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20217 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20218 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20219 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20220 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20221 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20222 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20223 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20224 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20225 CEOF
20227 _ACEOF
20229 cat >>$CONFIG_STATUS <<\_ACEOF
20230 # Split the substitutions into bite-sized pieces for seds with
20231 # small command number limits, like on Digital OSF/1 and HP-UX.
20232 ac_max_sed_lines=48
20233 ac_sed_frag=1 # Number of current file.
20234 ac_beg=1 # First line for current file.
20235 ac_end=$ac_max_sed_lines # Line after last line for current file.
20236 ac_more_lines=:
20237 ac_sed_cmds=
20238 while $ac_more_lines; do
20239 if test $ac_beg -gt 1; then
20240 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20241 else
20242 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20244 if test ! -s $tmp/subs.frag; then
20245 ac_more_lines=false
20246 else
20247 # The purpose of the label and of the branching condition is to
20248 # speed up the sed processing (if there are no `@' at all, there
20249 # is no need to browse any of the substitutions).
20250 # These are the two extra sed commands mentioned above.
20251 (echo ':t
20252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20253 if test -z "$ac_sed_cmds"; then
20254 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20255 else
20256 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20258 ac_sed_frag=`expr $ac_sed_frag + 1`
20259 ac_beg=$ac_end
20260 ac_end=`expr $ac_end + $ac_max_sed_lines`
20262 done
20263 if test -z "$ac_sed_cmds"; then
20264 ac_sed_cmds=cat
20266 fi # test -n "$CONFIG_FILES"
20268 _ACEOF
20269 cat >>$CONFIG_STATUS <<\_ACEOF
20270 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20272 case $ac_file in
20273 - | *:- | *:-:* ) # input from stdin
20274 cat >$tmp/stdin
20275 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20277 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20279 * ) ac_file_in=$ac_file.in ;;
20280 esac
20282 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20283 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285 X"$ac_file" : 'X\(//\)[^/]' \| \
20286 X"$ac_file" : 'X\(//\)$' \| \
20287 X"$ac_file" : 'X\(/\)' \| \
20288 . : '\(.\)' 2>/dev/null ||
20289 echo X"$ac_file" |
20290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20292 /^X\(\/\/\)$/{ s//\1/; q; }
20293 /^X\(\/\).*/{ s//\1/; q; }
20294 s/.*/./; q'`
20295 { if $as_mkdir_p; then
20296 mkdir -p "$ac_dir"
20297 else
20298 as_dir="$ac_dir"
20299 as_dirs=
20300 while test ! -d "$as_dir"; do
20301 as_dirs="$as_dir $as_dirs"
20302 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20304 X"$as_dir" : 'X\(//\)[^/]' \| \
20305 X"$as_dir" : 'X\(//\)$' \| \
20306 X"$as_dir" : 'X\(/\)' \| \
20307 . : '\(.\)' 2>/dev/null ||
20308 echo X"$as_dir" |
20309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20311 /^X\(\/\/\)$/{ s//\1/; q; }
20312 /^X\(\/\).*/{ s//\1/; q; }
20313 s/.*/./; q'`
20314 done
20315 test ! -n "$as_dirs" || mkdir $as_dirs
20316 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20317 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20318 { (exit 1); exit 1; }; }; }
20320 ac_builddir=.
20322 if test "$ac_dir" != .; then
20323 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20324 # A "../" for each directory in $ac_dir_suffix.
20325 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20326 else
20327 ac_dir_suffix= ac_top_builddir=
20330 case $srcdir in
20331 .) # No --srcdir option. We are building in place.
20332 ac_srcdir=.
20333 if test -z "$ac_top_builddir"; then
20334 ac_top_srcdir=.
20335 else
20336 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20337 fi ;;
20338 [\\/]* | ?:[\\/]* ) # Absolute path.
20339 ac_srcdir=$srcdir$ac_dir_suffix;
20340 ac_top_srcdir=$srcdir ;;
20341 *) # Relative path.
20342 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20343 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20344 esac
20346 # Do not use `cd foo && pwd` to compute absolute paths, because
20347 # the directories may not exist.
20348 case `pwd` in
20349 .) ac_abs_builddir="$ac_dir";;
20351 case "$ac_dir" in
20352 .) ac_abs_builddir=`pwd`;;
20353 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20354 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20355 esac;;
20356 esac
20357 case $ac_abs_builddir in
20358 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20360 case ${ac_top_builddir}. in
20361 .) ac_abs_top_builddir=$ac_abs_builddir;;
20362 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20363 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20364 esac;;
20365 esac
20366 case $ac_abs_builddir in
20367 .) ac_abs_srcdir=$ac_srcdir;;
20369 case $ac_srcdir in
20370 .) ac_abs_srcdir=$ac_abs_builddir;;
20371 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20372 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20373 esac;;
20374 esac
20375 case $ac_abs_builddir in
20376 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20378 case $ac_top_srcdir in
20379 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20380 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20381 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20382 esac;;
20383 esac
20386 case $INSTALL in
20387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20388 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20389 esac
20391 if test x"$ac_file" != x-; then
20392 { echo "$as_me:$LINENO: creating $ac_file" >&5
20393 echo "$as_me: creating $ac_file" >&6;}
20394 rm -f "$ac_file"
20396 # Let's still pretend it is `configure' which instantiates (i.e., don't
20397 # use $as_me), people would be surprised to read:
20398 # /* config.h. Generated by config.status. */
20399 if test x"$ac_file" = x-; then
20400 configure_input=
20401 else
20402 configure_input="$ac_file. "
20404 configure_input=$configure_input"Generated from `echo $ac_file_in |
20405 sed 's,.*/,,'` by configure."
20407 # First look for the input files in the build tree, otherwise in the
20408 # src tree.
20409 ac_file_inputs=`IFS=:
20410 for f in $ac_file_in; do
20411 case $f in
20412 -) echo $tmp/stdin ;;
20413 [\\/$]*)
20414 # Absolute (can't be DOS-style, as IFS=:)
20415 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20416 echo "$as_me: error: cannot find input file: $f" >&2;}
20417 { (exit 1); exit 1; }; }
20418 echo "$f";;
20419 *) # Relative
20420 if test -f "$f"; then
20421 # Build tree
20422 echo "$f"
20423 elif test -f "$srcdir/$f"; then
20424 # Source tree
20425 echo "$srcdir/$f"
20426 else
20427 # /dev/null tree
20428 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20429 echo "$as_me: error: cannot find input file: $f" >&2;}
20430 { (exit 1); exit 1; }; }
20431 fi;;
20432 esac
20433 done` || { (exit 1); exit 1; }
20434 _ACEOF
20435 cat >>$CONFIG_STATUS <<_ACEOF
20436 sed "$ac_vpsub
20437 $extrasub
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20442 s,@configure_input@,$configure_input,;t t
20443 s,@srcdir@,$ac_srcdir,;t t
20444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20445 s,@top_srcdir@,$ac_top_srcdir,;t t
20446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20447 s,@builddir@,$ac_builddir,;t t
20448 s,@abs_builddir@,$ac_abs_builddir,;t t
20449 s,@top_builddir@,$ac_top_builddir,;t t
20450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20451 s,@INSTALL@,$ac_INSTALL,;t t
20452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20453 rm -f $tmp/stdin
20454 if test x"$ac_file" != x-; then
20455 mv $tmp/out $ac_file
20456 else
20457 cat $tmp/out
20458 rm -f $tmp/out
20461 done
20462 _ACEOF
20463 cat >>$CONFIG_STATUS <<\_ACEOF
20466 # CONFIG_HEADER section.
20469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20472 # ac_d sets the value in "#define NAME VALUE" lines.
20473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20474 ac_dB='[ ].*$,\1#\2'
20475 ac_dC=' '
20476 ac_dD=',;t'
20477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20479 ac_uB='$,\1#\2define\3'
20480 ac_uC=' '
20481 ac_uD=',;t'
20483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20485 case $ac_file in
20486 - | *:- | *:-:* ) # input from stdin
20487 cat >$tmp/stdin
20488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20492 * ) ac_file_in=$ac_file.in ;;
20493 esac
20495 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20496 echo "$as_me: creating $ac_file" >&6;}
20498 # First look for the input files in the build tree, otherwise in the
20499 # src tree.
20500 ac_file_inputs=`IFS=:
20501 for f in $ac_file_in; do
20502 case $f in
20503 -) echo $tmp/stdin ;;
20504 [\\/$]*)
20505 # Absolute (can't be DOS-style, as IFS=:)
20506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20507 echo "$as_me: error: cannot find input file: $f" >&2;}
20508 { (exit 1); exit 1; }; }
20509 # Do quote $f, to prevent DOS paths from being IFS'd.
20510 echo "$f";;
20511 *) # Relative
20512 if test -f "$f"; then
20513 # Build tree
20514 echo "$f"
20515 elif test -f "$srcdir/$f"; then
20516 # Source tree
20517 echo "$srcdir/$f"
20518 else
20519 # /dev/null tree
20520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20521 echo "$as_me: error: cannot find input file: $f" >&2;}
20522 { (exit 1); exit 1; }; }
20523 fi;;
20524 esac
20525 done` || { (exit 1); exit 1; }
20526 # Remove the trailing spaces.
20527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20529 _ACEOF
20531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20532 # `conftest.undefs', that substitutes the proper values into
20533 # config.h.in to produce config.h. The first handles `#define'
20534 # templates, and the second `#undef' templates.
20535 # And first: Protect against being on the right side of a sed subst in
20536 # config.status. Protect against being in an unquoted here document
20537 # in config.status.
20538 rm -f conftest.defines conftest.undefs
20539 # Using a here document instead of a string reduces the quoting nightmare.
20540 # Putting comments in sed scripts is not portable.
20542 # `end' is used to avoid that the second main sed command (meant for
20543 # 0-ary CPP macros) applies to n-ary macro definitions.
20544 # See the Autoconf documentation for `clear'.
20545 cat >confdef2sed.sed <<\_ACEOF
20546 s/[\\&,]/\\&/g
20547 s,[\\$`],\\&,g
20548 t clear
20549 : clear
20550 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20551 t end
20552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20553 : end
20554 _ACEOF
20555 # If some macros were called several times there might be several times
20556 # the same #defines, which is useless. Nevertheless, we may not want to
20557 # sort them, since we want the *last* AC-DEFINE to be honored.
20558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20560 rm -f confdef2sed.sed
20562 # This sed command replaces #undef with comments. This is necessary, for
20563 # example, in the case of _POSIX_SOURCE, which is predefined and required
20564 # on some systems where configure will not decide to define it.
20565 cat >>conftest.undefs <<\_ACEOF
20566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20567 _ACEOF
20569 # Break up conftest.defines because some shells have a limit on the size
20570 # of here documents, and old seds have small limits too (100 cmds).
20571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20572 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20574 echo ' :' >>$CONFIG_STATUS
20575 rm -f conftest.tail
20576 while grep . conftest.defines >/dev/null
20578 # Write a limited-size here document to $tmp/defines.sed.
20579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20580 # Speed up: don't consider the non `#define' lines.
20581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20582 # Work around the forget-to-reset-the-flag bug.
20583 echo 't clr' >>$CONFIG_STATUS
20584 echo ': clr' >>$CONFIG_STATUS
20585 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20586 echo 'CEOF
20587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20588 rm -f $tmp/in
20589 mv $tmp/out $tmp/in
20590 ' >>$CONFIG_STATUS
20591 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20592 rm -f conftest.defines
20593 mv conftest.tail conftest.defines
20594 done
20595 rm -f conftest.defines
20596 echo ' fi # grep' >>$CONFIG_STATUS
20597 echo >>$CONFIG_STATUS
20599 # Break up conftest.undefs because some shells have a limit on the size
20600 # of here documents, and old seds have small limits too (100 cmds).
20601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20602 rm -f conftest.tail
20603 while grep . conftest.undefs >/dev/null
20605 # Write a limited-size here document to $tmp/undefs.sed.
20606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20607 # Speed up: don't consider the non `#undef'
20608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20609 # Work around the forget-to-reset-the-flag bug.
20610 echo 't clr' >>$CONFIG_STATUS
20611 echo ': clr' >>$CONFIG_STATUS
20612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20613 echo 'CEOF
20614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20615 rm -f $tmp/in
20616 mv $tmp/out $tmp/in
20617 ' >>$CONFIG_STATUS
20618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20619 rm -f conftest.undefs
20620 mv conftest.tail conftest.undefs
20621 done
20622 rm -f conftest.undefs
20624 cat >>$CONFIG_STATUS <<\_ACEOF
20625 # Let's still pretend it is `configure' which instantiates (i.e., don't
20626 # use $as_me), people would be surprised to read:
20627 # /* config.h. Generated by config.status. */
20628 if test x"$ac_file" = x-; then
20629 echo "/* Generated by configure. */" >$tmp/config.h
20630 else
20631 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20633 cat $tmp/in >>$tmp/config.h
20634 rm -f $tmp/in
20635 if test x"$ac_file" != x-; then
20636 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20637 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20638 echo "$as_me: $ac_file is unchanged" >&6;}
20639 else
20640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20642 X"$ac_file" : 'X\(//\)[^/]' \| \
20643 X"$ac_file" : 'X\(//\)$' \| \
20644 X"$ac_file" : 'X\(/\)' \| \
20645 . : '\(.\)' 2>/dev/null ||
20646 echo X"$ac_file" |
20647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20649 /^X\(\/\/\)$/{ s//\1/; q; }
20650 /^X\(\/\).*/{ s//\1/; q; }
20651 s/.*/./; q'`
20652 { if $as_mkdir_p; then
20653 mkdir -p "$ac_dir"
20654 else
20655 as_dir="$ac_dir"
20656 as_dirs=
20657 while test ! -d "$as_dir"; do
20658 as_dirs="$as_dir $as_dirs"
20659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20661 X"$as_dir" : 'X\(//\)[^/]' \| \
20662 X"$as_dir" : 'X\(//\)$' \| \
20663 X"$as_dir" : 'X\(/\)' \| \
20664 . : '\(.\)' 2>/dev/null ||
20665 echo X"$as_dir" |
20666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20668 /^X\(\/\/\)$/{ s//\1/; q; }
20669 /^X\(\/\).*/{ s//\1/; q; }
20670 s/.*/./; q'`
20671 done
20672 test ! -n "$as_dirs" || mkdir $as_dirs
20673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20675 { (exit 1); exit 1; }; }; }
20677 rm -f $ac_file
20678 mv $tmp/config.h $ac_file
20680 else
20681 cat $tmp/config.h
20682 rm -f $tmp/config.h
20684 # Compute $ac_file's index in $config_headers.
20685 _am_stamp_count=1
20686 for _am_header in $config_headers :; do
20687 case $_am_header in
20688 $ac_file | $ac_file:* )
20689 break ;;
20691 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20692 esac
20693 done
20694 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20695 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20696 X$ac_file : 'X\(//\)[^/]' \| \
20697 X$ac_file : 'X\(//\)$' \| \
20698 X$ac_file : 'X\(/\)' \| \
20699 . : '\(.\)' 2>/dev/null ||
20700 echo X$ac_file |
20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20703 /^X\(\/\/\)$/{ s//\1/; q; }
20704 /^X\(\/\).*/{ s//\1/; q; }
20705 s/.*/./; q'`/stamp-h$_am_stamp_count
20706 done
20707 _ACEOF
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20711 # CONFIG_COMMANDS section.
20713 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20714 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20715 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20716 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20717 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20718 X"$ac_dest" : 'X\(//\)[^/]' \| \
20719 X"$ac_dest" : 'X\(//\)$' \| \
20720 X"$ac_dest" : 'X\(/\)' \| \
20721 . : '\(.\)' 2>/dev/null ||
20722 echo X"$ac_dest" |
20723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20725 /^X\(\/\/\)$/{ s//\1/; q; }
20726 /^X\(\/\).*/{ s//\1/; q; }
20727 s/.*/./; q'`
20728 { if $as_mkdir_p; then
20729 mkdir -p "$ac_dir"
20730 else
20731 as_dir="$ac_dir"
20732 as_dirs=
20733 while test ! -d "$as_dir"; do
20734 as_dirs="$as_dir $as_dirs"
20735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20737 X"$as_dir" : 'X\(//\)[^/]' \| \
20738 X"$as_dir" : 'X\(//\)$' \| \
20739 X"$as_dir" : 'X\(/\)' \| \
20740 . : '\(.\)' 2>/dev/null ||
20741 echo X"$as_dir" |
20742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20744 /^X\(\/\/\)$/{ s//\1/; q; }
20745 /^X\(\/\).*/{ s//\1/; q; }
20746 s/.*/./; q'`
20747 done
20748 test ! -n "$as_dirs" || mkdir $as_dirs
20749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20751 { (exit 1); exit 1; }; }; }
20753 ac_builddir=.
20755 if test "$ac_dir" != .; then
20756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20757 # A "../" for each directory in $ac_dir_suffix.
20758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20759 else
20760 ac_dir_suffix= ac_top_builddir=
20763 case $srcdir in
20764 .) # No --srcdir option. We are building in place.
20765 ac_srcdir=.
20766 if test -z "$ac_top_builddir"; then
20767 ac_top_srcdir=.
20768 else
20769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20770 fi ;;
20771 [\\/]* | ?:[\\/]* ) # Absolute path.
20772 ac_srcdir=$srcdir$ac_dir_suffix;
20773 ac_top_srcdir=$srcdir ;;
20774 *) # Relative path.
20775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20777 esac
20779 # Do not use `cd foo && pwd` to compute absolute paths, because
20780 # the directories may not exist.
20781 case `pwd` in
20782 .) ac_abs_builddir="$ac_dir";;
20784 case "$ac_dir" in
20785 .) ac_abs_builddir=`pwd`;;
20786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20787 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20788 esac;;
20789 esac
20790 case $ac_abs_builddir in
20791 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20793 case ${ac_top_builddir}. in
20794 .) ac_abs_top_builddir=$ac_abs_builddir;;
20795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20797 esac;;
20798 esac
20799 case $ac_abs_builddir in
20800 .) ac_abs_srcdir=$ac_srcdir;;
20802 case $ac_srcdir in
20803 .) ac_abs_srcdir=$ac_abs_builddir;;
20804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20806 esac;;
20807 esac
20808 case $ac_abs_builddir in
20809 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20811 case $ac_top_srcdir in
20812 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20815 esac;;
20816 esac
20819 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20820 echo "$as_me: executing $ac_dest commands" >&6;}
20821 case $ac_dest in
20822 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20823 # Strip MF so we end up with the name of the file.
20824 mf=`echo "$mf" | sed -e 's/:.*$//'`
20825 # Check whether this is an Automake generated Makefile or not.
20826 # We used to match only the files named `Makefile.in', but
20827 # some people rename them; so instead we look at the file content.
20828 # Grep'ing the first line is not enough: some people post-process
20829 # each Makefile.in and add a new line on top of each file to say so.
20830 # So let's grep whole file.
20831 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20832 dirpart=`(dirname "$mf") 2>/dev/null ||
20833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20834 X"$mf" : 'X\(//\)[^/]' \| \
20835 X"$mf" : 'X\(//\)$' \| \
20836 X"$mf" : 'X\(/\)' \| \
20837 . : '\(.\)' 2>/dev/null ||
20838 echo X"$mf" |
20839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20841 /^X\(\/\/\)$/{ s//\1/; q; }
20842 /^X\(\/\).*/{ s//\1/; q; }
20843 s/.*/./; q'`
20844 else
20845 continue
20847 # Extract the definition of DEPDIR, am__include, and am__quote
20848 # from the Makefile without running `make'.
20849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20850 test -z "$DEPDIR" && continue
20851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20852 test -z "am__include" && continue
20853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20854 # When using ansi2knr, U may be empty or an underscore; expand it
20855 U=`sed -n 's/^U = //p' < "$mf"`
20856 # Find all dependency output files, they are included files with
20857 # $(DEPDIR) in their names. We invoke sed twice because it is the
20858 # simplest approach to changing $(DEPDIR) to its actual value in the
20859 # expansion.
20860 for file in `sed -n "
20861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20863 # Make sure the directory exists.
20864 test -f "$dirpart/$file" && continue
20865 fdir=`(dirname "$file") 2>/dev/null ||
20866 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20867 X"$file" : 'X\(//\)[^/]' \| \
20868 X"$file" : 'X\(//\)$' \| \
20869 X"$file" : 'X\(/\)' \| \
20870 . : '\(.\)' 2>/dev/null ||
20871 echo X"$file" |
20872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20874 /^X\(\/\/\)$/{ s//\1/; q; }
20875 /^X\(\/\).*/{ s//\1/; q; }
20876 s/.*/./; q'`
20877 { if $as_mkdir_p; then
20878 mkdir -p $dirpart/$fdir
20879 else
20880 as_dir=$dirpart/$fdir
20881 as_dirs=
20882 while test ! -d "$as_dir"; do
20883 as_dirs="$as_dir $as_dirs"
20884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20886 X"$as_dir" : 'X\(//\)[^/]' \| \
20887 X"$as_dir" : 'X\(//\)$' \| \
20888 X"$as_dir" : 'X\(/\)' \| \
20889 . : '\(.\)' 2>/dev/null ||
20890 echo X"$as_dir" |
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20893 /^X\(\/\/\)$/{ s//\1/; q; }
20894 /^X\(\/\).*/{ s//\1/; q; }
20895 s/.*/./; q'`
20896 done
20897 test ! -n "$as_dirs" || mkdir $as_dirs
20898 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20899 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20900 { (exit 1); exit 1; }; }; }
20902 # echo "creating $dirpart/$file"
20903 echo '# dummy' > "$dirpart/$file"
20904 done
20905 done
20907 default-1 )
20908 for ac_file in $CONFIG_FILES; do
20909 # Support "outfile[:infile[:infile...]]"
20910 case "$ac_file" in
20911 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20912 esac
20913 # PO directories have a Makefile.in generated from Makefile.in.in.
20914 case "$ac_file" in */Makefile.in)
20915 # Adjust a relative srcdir.
20916 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20917 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20918 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20919 # In autoconf-2.13 it is called $ac_given_srcdir.
20920 # In autoconf-2.50 it is called $srcdir.
20921 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20922 case "$ac_given_srcdir" in
20923 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20924 /*) top_srcdir="$ac_given_srcdir" ;;
20925 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20926 esac
20927 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20928 rm -f "$ac_dir/POTFILES"
20929 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20930 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20931 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20932 # on $ac_dir but don't depend on user-specified configuration
20933 # parameters.
20934 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20935 # The LINGUAS file contains the set of available languages.
20936 if test -n "$ALL_LINGUAS"; then
20937 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20939 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20940 # Hide the ALL_LINGUAS assigment from automake.
20941 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20943 case "$ac_given_srcdir" in
20944 .) srcdirpre= ;;
20945 *) srcdirpre='$(srcdir)/' ;;
20946 esac
20947 POFILES=
20948 GMOFILES=
20949 UPDATEPOFILES=
20950 DUMMYPOFILES=
20951 for lang in $ALL_LINGUAS; do
20952 POFILES="$POFILES $srcdirpre$lang.po"
20953 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20954 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20955 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20956 done
20957 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20958 # environment variable.
20959 INST_LINGUAS=
20960 if test -n "$ALL_LINGUAS"; then
20961 for presentlang in $ALL_LINGUAS; do
20962 useit=no
20963 if test "%UNSET%" != "$LINGUAS"; then
20964 desiredlanguages="$LINGUAS"
20965 else
20966 desiredlanguages="$ALL_LINGUAS"
20968 for desiredlang in $desiredlanguages; do
20969 # Use the presentlang catalog if desiredlang is
20970 # a. equal to presentlang, or
20971 # b. a variant of presentlang (because in this case,
20972 # presentlang can be used as a fallback for messages
20973 # which are not translated in the desiredlang catalog).
20974 case "$desiredlang" in
20975 "$presentlang"*) useit=yes;;
20976 esac
20977 done
20978 if test $useit = yes; then
20979 INST_LINGUAS="$INST_LINGUAS $presentlang"
20981 done
20983 CATALOGS=
20984 if test -n "$INST_LINGUAS"; then
20985 for lang in $INST_LINGUAS; do
20986 CATALOGS="$CATALOGS $lang.gmo"
20987 done
20989 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20990 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"
20991 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20992 if test -f "$f"; then
20993 case "$f" in
20994 *.orig | *.bak | *~) ;;
20995 *) cat "$f" >> "$ac_dir/Makefile" ;;
20996 esac
20998 done
21001 esac
21002 done ;;
21003 denoiser ) if test $denoiserlevel -gt 0; then
21004 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21005 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" \
21006 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21007 for i in `find . -name 'Makefile' -print`; do
21008 if test -n "`head -n 1 $i | grep '^#'`"; then
21009 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21011 done
21012 fi ;;
21013 esac
21014 done
21015 _ACEOF
21017 cat >>$CONFIG_STATUS <<\_ACEOF
21019 { (exit 0); exit 0; }
21020 _ACEOF
21021 chmod +x $CONFIG_STATUS
21022 ac_clean_files=$ac_clean_files_save
21025 # configure is writing to config.log, and then calls config.status.
21026 # config.status does its own redirection, appending to config.log.
21027 # Unfortunately, on DOS this fails, as config.log is still kept open
21028 # by configure, so config.status won't be able to write to it; its
21029 # output is simply discarded. So we exec the FD to /dev/null,
21030 # effectively closing config.log, so it can be properly (re)opened and
21031 # appended to by config.status. When coming back to configure, we
21032 # need to make the FD available again.
21033 if test "$no_create" != yes; then
21034 ac_cs_success=:
21035 ac_config_status_args=
21036 test "$silent" = yes &&
21037 ac_config_status_args="$ac_config_status_args --quiet"
21038 exec 5>/dev/null
21039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21040 exec 5>>config.log
21041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21042 # would make configure fail if this is the last instruction.
21043 $ac_cs_success || { (exit 1); exit 1; }
21047 echo
21048 echo
21049 echo " Configure script has finished system check."
21050 echo
21051 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21052 echo
21053 echo " aMule enabled options:"
21054 echo
21055 echo " **** aMule Core ****"
21056 echo " Prefix where aMule should be installed? ${prefix:-none}"
21057 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21058 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21059 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21060 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21061 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21062 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21063 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21064 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21065 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21066 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21068 echo
21069 echo " **** aMule TextClient ****"
21070 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21071 echo
21072 echo " **** aMule WebServer ****"
21073 echo " Should aMule WebServer be built? ${WEB:-no}"
21074 echo
21075 echo " **** aMule ED2K Links Handler ****"
21076 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21077 echo
21078 echo " **** aMuleLinkCreator ****"
21079 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21080 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21081 echo
21082 echo " **** aMule Statistics ****"
21083 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21084 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21085 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21087 echo
21088 echo " **** General Libraries and Tools ****"
21089 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21090 echo " Libraries aMule will use to build:"
21091 wxinfo="$WX_PORT"
21092 if test $WX_DEBUG -eq 1; then
21093 wxinfo="$wxinfo,debug"
21096 if test $WX_SHARED -eq 1; then
21097 wxinfo="$wxinfo,shared"
21098 else
21099 wxinfo="$wxinfo,static"
21102 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21103 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21104 if test -n "$with_libupnp_prefix"; then
21105 libupnp_place=" (in $with_libupnp_prefix)"
21108 if test x${ENABLE_UPNP} = xyes; then
21109 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21112 if test x${WEB:-no} != xno; then
21113 if test $regex_found = no; then
21114 regex_found="Not detected"
21115 else
21116 if test -z "$REGEX_LIB"; then
21117 regex_found=system
21118 else
21119 regex_found="standalone (in $REGEX_LIB)"
21124 echo " regex $regex_found"
21126 if test ${enable_nls:-yes} = yes; then
21127 if test x$USE_NLS = xno; then
21128 libintl_found="Not detected"
21129 else
21130 if test x$USE_INCLUDED_LIBINTL = xyes; then
21131 libintl_found="included"
21132 else
21133 libintl_found="system"
21138 echo " libintl $libintl_found"
21140 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21141 geoip_style=system
21142 else
21143 geoip_style=user
21146 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21147 echo " libGeoIP ${geoip_style}"
21150 if test x$LIBPNG_VERSION != xnot_needed; then
21151 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21153 if test x$GDLIB_VERSION != xnot_needed; then
21154 echo " libgd ${GDLIB_VERSION:-Not detected}"
21156 echo " zlib ${ZLIB_VERSION:-Not detected}"
21157 if test ${_mule_has_warnings:-no} = yes; then
21158 echo ""
21159 echo ""
21160 echo " *** Warnings during configuration ***"
21162 if test ${_mule_warning_0:-no} = yes; then
21163 cat <<_MULEEOT
21165 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21166 Please check that gdlib-config is in your default path, check out
21167 LD_LIBRARY_PATH or equivalent variable.
21168 Or this might also be that your gdlib-config has other name.
21169 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21170 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21171 If you use compiled packages check if you have devel pack installed.
21172 To download the latest version check http://www.boutell.com/gd for sources.
21173 _MULEEOT
21175 if test ${_mule_warning_1:-no} = yes; then
21176 cat <<_MULEEOT
21178 * amuleweb has been disabled because configure could not find a POSIX
21179 compliant regex library.
21180 _MULEEOT
21182 if test ${_mule_warning_2:-no} = yes; then
21183 cat <<_MULEEOT
21185 * libpng >= 1.2.0 not found.
21186 amuleweb will be compiled but file download progress bar images will NOT be
21187 generated.
21188 _MULEEOT
21190 if test ${_mule_warning_3:-no} = yes; then
21191 cat <<_MULEEOT
21193 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21194 _MULEEOT
21196 if test ${_mule_warning_4:-no} = yes; then
21197 cat <<_MULEEOT
21199 * GeoIP support has been disabled because the GeoIP libraries were not found
21200 _MULEEOT
21202 if test ${_mule_warning_5:-no} = yes; then
21203 cat <<_MULEEOT
21205 * GeoIP support has been disabled because the GeoIP header files were not
21206 found
21207 _MULEEOT
21209 if test ${_mule_warning_6:-no} = yes; then
21210 cat <<_MULEEOT
21212 * UPnP code has been disabled because ${libupnp_error}.
21213 _MULEEOT
21215 if test ${_mule_warning_7:-no} = yes; then
21216 cat <<_MULEEOT
21218 * Cross-compilation detected, so exception handling cannot be tested.
21219 Note that broken exception handling in your compiler may lead to unexpected
21220 crashes.
21221 _MULEEOT
21223 if test ${_mule_warning_8:-no} = yes; then
21224 cat <<_MULEEOT
21226 * bfd.h not found or unusable, please install binutils development package if
21227 you are a developer or want to help testing aMule
21228 _MULEEOT
21230 if test ${_mule_warning_9:-no} = yes; then
21231 cat <<_MULEEOT
21233 * configure cannot check whether malloc() and realloc() are GNU libc
21234 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21235 configure with the --without-gnu-malloc switch.
21236 _MULEEOT
21238 if test ${_mule_warning_10:-no} = yes; then
21239 cat <<_MULEEOT
21241 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21242 support.
21243 _MULEEOT