Upstream tarball 20080414
[amule.git] / configure
blob27f02ebe5e20cd32c9aaf98c9c5e4ee98068f18f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 RESOLV_LIB X11LIBS 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 GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIB LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_CXXFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_INCLUDE GEOIP_LIB 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 RC ac_ct_RC RCFLAGS CRYPTO_PP_PREFIX CRYPTO_PP_VERSION_STRING CRYPTO_PP_VERSION_NUMBER CRYPTO_PP_STYLE CRYPTO_PP_LIB_NAME CRYPTO_PP_INCLUDE_PREFIX CRYPTO_PP_CXXFLAGS CRYPTO_PP_LDFLAGS CRYPTOLIBS BFD_FLAGS BFD_LIB HAVE_GETTEXT HAVE_FLEX_EXTENDED ALLOCA 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 LIBOBJS POW_LIB WXBASE_LIBS WXBASE_CFLAGS WXBASE_CXXFLAGS docdir SVNDATE AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES 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 ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE READLINE_LIBS ccache CCACHE ccache_prefix 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
793 # Report the --help message.
795 if test "$ac_init_help" = "long"; then
796 # Omit some internal or obsolete options to make the list less imposing.
797 # This message is too long to be a string in the A/UX 3.1 sh.
798 cat <<_ACEOF
799 \`configure' configures aMule SVN to adapt to many kinds of systems.
801 Usage: $0 [OPTION]... [VAR=VALUE]...
803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
804 VAR=VALUE. See below for descriptions of some of the useful variables.
806 Defaults for the options are specified in brackets.
808 Configuration:
809 -h, --help display this help and exit
810 --help=short display options specific to this package
811 --help=recursive display the short help of all the included packages
812 -V, --version display version information and exit
813 -q, --quiet, --silent do not print \`checking...' messages
814 --cache-file=FILE cache test results in FILE [disabled]
815 -C, --config-cache alias for \`--cache-file=config.cache'
816 -n, --no-create do not create output files
817 --srcdir=DIR find the sources in DIR [configure dir or \`..']
819 _ACEOF
821 cat <<_ACEOF
822 Installation directories:
823 --prefix=PREFIX install architecture-independent files in PREFIX
824 [$ac_default_prefix]
825 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 [PREFIX]
828 By default, \`make install' will install all the files in
829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
831 for instance \`--prefix=\$HOME'.
833 For better control, use the options below.
835 Fine tuning of the installation directories:
836 --bindir=DIR user executables [EPREFIX/bin]
837 --sbindir=DIR system admin executables [EPREFIX/sbin]
838 --libexecdir=DIR program executables [EPREFIX/libexec]
839 --datadir=DIR read-only architecture-independent data [PREFIX/share]
840 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
841 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
842 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
843 --libdir=DIR object code libraries [EPREFIX/lib]
844 --includedir=DIR C header files [PREFIX/include]
845 --oldincludedir=DIR C header files for non-gcc [/usr/include]
846 --infodir=DIR info documentation [PREFIX/info]
847 --mandir=DIR man documentation [PREFIX/man]
848 _ACEOF
850 cat <<\_ACEOF
852 Program names:
853 --program-prefix=PREFIX prepend PREFIX to installed program names
854 --program-suffix=SUFFIX append SUFFIX to installed program names
855 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857 X features:
858 --x-includes=DIR X include files are in DIR
859 --x-libraries=DIR X library files are in DIR
861 System types:
862 --build=BUILD configure for building on BUILD [guessed]
863 --host=HOST cross-compile to build programs to run on HOST [BUILD]
864 _ACEOF
867 if test -n "$ac_init_help"; then
868 case $ac_init_help in
869 short | recursive ) echo "Configuration of aMule SVN:";;
870 esac
871 cat <<\_ACEOF
873 Optional Features:
874 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876 --enable-maintainer-mode enable make rules and dependencies not useful
877 (and sometimes confusing) to the casual installer
878 --disable-dependency-tracking speeds up one-time build
879 --enable-dependency-tracking do not reject slow dependency extractors
880 --enable-ccache enable ccache support for fast recompilation
881 --disable-debug disable additional debugging output
882 --enable-optimize enable code optimizing
883 --enable-profile enable code profiling
884 --enable-static produce a statically linked executable
885 --disable-monolithic disable building of the monolithic aMule app
886 --enable-amule-daemon compile aMule daemon version
887 --enable-amulecmd compile aMule command line client
888 --enable-webserver compile aMule WebServer
889 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
890 --enable-cas compile C aMule Statistics
891 --enable-wxcas compile aMule GUI Statistics
892 --disable-ed2k don't compile aMule ed2k links handler
893 --enable-alc compile aMuleLinkCreator GUI version
894 --enable-alcc compile aMuleLinkCreator for console
895 --disable-upnp do not compile UPnP code
896 --enable-geoip compile with GeoIP IP2Country library
897 --disable-rpath do not hardcode runtime library paths
898 --disable-nls do not use Native Language Support
900 Optional Packages:
901 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
902 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
903 --with-geoip-headers=DIR
904 GeoIP include files location
905 --with-geoip-lib=DIR GeoIP library location
906 --with-geoip-static Explicitly link GeoIP statically (default=no)
907 --with-denoise-level=<level>
908 Specifies denoising level (0-4):
909 0 - Do nothing
910 4 - Suppress all normal output
911 (for more information see
912 src/utils/scripts/denoiser.rules)
914 --without-gnu-malloc Don't assume that we use GNU libc compatible
915 malloc/realloc when cross-compiling
916 --with-language=<langs> Specify a comma-separated list of languages you want
917 to have installed. See po/LINGUAS for available
918 languages
919 --with-zlib=PREFIX use zlib in PREFIX
920 --with-gdlib-prefix=PREFIX
921 prefix where gdlib is installed (optional)
922 --with-gdlib-config=CONFIG
923 gdlib-config script to use (optional)
924 --with-libpng-prefix=PREFIX
925 prefix where libpng is installed (optional)
926 --with-libpng-config=CONFIG
927 libpng-config script to use (optional)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
929 --with-wx-config=CONFIG wx-config script to use (optional)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed (optional)
933 --with-toolkit Build against a specific wxWidgets toolkit (default
934 is auto)
935 --with-wxshared Force building against a shared build of wxWidgets,
936 even if --disable-shared is given (default is auto)
937 --with-wxdebug Force building against a debug build of wxWidgets,
938 even if --disable-debug is given (default is auto)
939 --with-wxversion Build against a specific version of wxWidgets
940 (default is auto)
941 --with-crypto-prefix=PREFIX
942 prefix where crypto++ is installed
943 --with-x use the X Window System
944 --with-gnu-ld assume the C compiler uses GNU ld default=no
945 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
946 --without-libiconv-prefix don't search for libiconv in includedir and libdir
947 --with-included-gettext use the GNU gettext library included here
948 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
949 --without-libintl-prefix don't search for libintl in includedir and libdir
950 --with-ccache-prefix=PREFIX
951 prefix where ccache is installed
953 Some influential environment variables:
954 CXX C++ compiler command
955 CXXFLAGS C++ compiler flags
956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
957 nonstandard directory <lib dir>
958 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
959 headers in a nonstandard directory <include dir>
960 CXXCPP C++ preprocessor
961 CC C compiler command
962 CFLAGS C compiler flags
963 CPP C preprocessor
964 RC Win32 Resource Compiler
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
969 Report bugs to <admin@amule.org>.
970 _ACEOF
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
975 ac_popdir=`pwd`
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
978 ac_builddir=.
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 else
985 ac_dir_suffix= ac_top_builddir=
988 case $srcdir in
989 .) # No --srcdir option. We are building in place.
990 ac_srcdir=.
991 if test -z "$ac_top_builddir"; then
992 ac_top_srcdir=.
993 else
994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 fi ;;
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
999 *) # Relative path.
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1002 esac
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1006 case `pwd` in
1007 .) ac_abs_builddir="$ac_dir";;
1009 case "$ac_dir" in
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1027 case $ac_srcdir in
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1031 esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1040 esac;;
1041 esac
1043 cd $ac_dir
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1046 echo
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1049 echo
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1053 echo
1054 $ac_configure --help
1055 else
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1058 cd $ac_popdir
1059 done
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1064 cat <<\_ACEOF
1065 aMule configure SVN
1066 generated by GNU Autoconf 2.59
1068 Copyright (C) 2003 Free Software Foundation, Inc.
1069 This configure script is free software; the Free Software Foundation
1070 gives unlimited permission to copy, distribute and modify it.
1071 _ACEOF
1072 exit 0
1074 exec 5>config.log
1075 cat >&5 <<_ACEOF
1076 This file contains any messages produced by compilers while
1077 running configure, to aid debugging if configure makes a mistake.
1079 It was created by aMule $as_me SVN, which was
1080 generated by GNU Autoconf 2.59. Invocation command line was
1082 $ $0 $@
1084 _ACEOF
1086 cat <<_ASUNAME
1087 ## --------- ##
1088 ## Platform. ##
1089 ## --------- ##
1091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1103 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1108 _ASUNAME
1110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 for as_dir in $PATH
1113 IFS=$as_save_IFS
1114 test -z "$as_dir" && as_dir=.
1115 echo "PATH: $as_dir"
1116 done
1118 } >&5
1120 cat >&5 <<_ACEOF
1123 ## ----------- ##
1124 ## Core tests. ##
1125 ## ----------- ##
1127 _ACEOF
1130 # Keep a trace of the command line.
1131 # Strip out --no-create and --no-recursion so they do not pile up.
1132 # Strip out --silent because we don't want to record it for future runs.
1133 # Also quote any args containing shell meta-characters.
1134 # Make two passes to allow for proper duplicate-argument suppression.
1135 ac_configure_args=
1136 ac_configure_args0=
1137 ac_configure_args1=
1138 ac_sep=
1139 ac_must_keep_next=false
1140 for ac_pass in 1 2
1142 for ac_arg
1144 case $ac_arg in
1145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 continue ;;
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 esac
1152 case $ac_pass in
1153 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1155 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1156 if test $ac_must_keep_next = true; then
1157 ac_must_keep_next=false # Got value, back to normal.
1158 else
1159 case $ac_arg in
1160 *=* | --config-cache | -C | -disable-* | --disable-* \
1161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1163 | -with-* | --with-* | -without-* | --without-* | --x)
1164 case "$ac_configure_args0 " in
1165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1166 esac
1168 -* ) ac_must_keep_next=true ;;
1169 esac
1171 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172 # Get rid of the leading space.
1173 ac_sep=" "
1175 esac
1176 done
1177 done
1178 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1179 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1181 # When interrupted or exit'd, cleanup temporary files, and complete
1182 # config.log. We remove comments because anyway the quotes in there
1183 # would cause problems or look ugly.
1184 # WARNING: Be sure not to use single quotes in there, as some shells,
1185 # such as our DU 5.0 friend, will then `close' the trap.
1186 trap 'exit_status=$?
1187 # Save into config.log some information that might help in debugging.
1189 echo
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1210 esac;
1212 echo
1214 cat <<\_ASBOX
1215 ## ----------------- ##
1216 ## Output variables. ##
1217 ## ----------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_vars
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1227 if test -n "$ac_subst_files"; then
1228 cat <<\_ASBOX
1229 ## ------------- ##
1230 ## Output files. ##
1231 ## ------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_files
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1242 if test -s confdefs.h; then
1243 cat <<\_ASBOX
1244 ## ----------- ##
1245 ## confdefs.h. ##
1246 ## ----------- ##
1247 _ASBOX
1248 echo
1249 sed "/^$/d" confdefs.h | sort
1250 echo
1252 test "$ac_signal" != 0 &&
1253 echo "$as_me: caught signal $ac_signal"
1254 echo "$as_me: exit $exit_status"
1255 } >&5
1256 rm -f core *.core &&
1257 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1258 exit $exit_status
1260 for ac_signal in 1 2 13 15; do
1261 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 done
1263 ac_signal=0
1265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1266 rm -rf conftest* confdefs.h
1267 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1268 echo >confdefs.h
1270 # Predefined preprocessor variables.
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 _ACEOF
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 _ACEOF
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 _ACEOF
1297 # Let the site file select an alternate cache file if it wants to.
1298 # Prefer explicitly selected file to automatically selected ones.
1299 if test -z "$CONFIG_SITE"; then
1300 if test "x$prefix" != xNONE; then
1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1302 else
1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306 for ac_site_file in $CONFIG_SITE; do
1307 if test -r "$ac_site_file"; then
1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1309 echo "$as_me: loading site script $ac_site_file" >&6;}
1310 sed 's/^/| /' "$ac_site_file" >&5
1311 . "$ac_site_file"
1313 done
1315 if test -r "$cache_file"; then
1316 # Some versions of bash will fail to source /dev/null (special
1317 # files actually), so we avoid doing that.
1318 if test -f "$cache_file"; then
1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1320 echo "$as_me: loading cache $cache_file" >&6;}
1321 case $cache_file in
1322 [\\/]* | ?:[\\/]* ) . $cache_file;;
1323 *) . ./$cache_file;;
1324 esac
1326 else
1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1328 echo "$as_me: creating cache $cache_file" >&6;}
1329 >$cache_file
1332 # Check that the precious variables saved in the cache have kept the same
1333 # value.
1334 ac_cache_corrupted=false
1335 for ac_var in `(set) 2>&1 |
1336 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1338 eval ac_new_set=\$ac_env_${ac_var}_set
1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1340 eval ac_new_val="\$ac_env_${ac_var}_value"
1341 case $ac_old_set,$ac_new_set in
1342 set,)
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1345 ac_cache_corrupted=: ;;
1346 ,set)
1347 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1350 ,);;
1352 if test "x$ac_old_val" != "x$ac_new_val"; then
1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1354 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1356 echo "$as_me: former value: $ac_old_val" >&2;}
1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1358 echo "$as_me: current value: $ac_new_val" >&2;}
1359 ac_cache_corrupted=:
1360 fi;;
1361 esac
1362 # Pass precious variables to config.status.
1363 if test "$ac_new_set" = set; then
1364 case $ac_new_val in
1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1366 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1367 *) ac_arg=$ac_var=$ac_new_val ;;
1368 esac
1369 case " $ac_configure_args " in
1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 esac
1374 done
1375 if $ac_cache_corrupted; then
1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1377 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1378 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1379 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1380 { (exit 1); exit 1; }; }
1383 ac_ext=c
1384 ac_cpp='$CPP $CPPFLAGS'
1385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415 ac_aux_dir=
1416 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1417 if test -f $ac_dir/install-sh; then
1418 ac_aux_dir=$ac_dir
1419 ac_install_sh="$ac_aux_dir/install-sh -c"
1420 break
1421 elif test -f $ac_dir/install.sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install.sh -c"
1424 break
1425 elif test -f $ac_dir/shtool; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/shtool install -c"
1428 break
1430 done
1431 if test -z "$ac_aux_dir"; then
1432 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1433 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1434 { (exit 1); exit 1; }; }
1436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1438 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440 # Make sure we can run config.sub.
1441 $ac_config_sub sun4 >/dev/null 2>&1 ||
1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1443 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1444 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: checking build system type" >&5
1447 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1448 if test "${ac_cv_build+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451 ac_cv_build_alias=$build_alias
1452 test -z "$ac_cv_build_alias" &&
1453 ac_cv_build_alias=`$ac_config_guess`
1454 test -z "$ac_cv_build_alias" &&
1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1456 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1457 { (exit 1); exit 1; }; }
1458 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1465 echo "${ECHO_T}$ac_cv_build" >&6
1466 build=$ac_cv_build
1467 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$as_me:$LINENO: checking host system type" >&5
1473 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1474 if test "${ac_cv_host+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 ac_cv_host_alias=$host_alias
1478 test -z "$ac_cv_host_alias" &&
1479 ac_cv_host_alias=$ac_cv_build_alias
1480 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1487 echo "${ECHO_T}$ac_cv_host" >&6
1488 host=$ac_cv_host
1489 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 am__api_version="1.9"
1495 # Find a good install program. We prefer a C program (faster),
1496 # so one script is as good as another. But avoid the broken or
1497 # incompatible versions:
1498 # SysV /etc/install, /usr/sbin/install
1499 # SunOS /usr/etc/install
1500 # IRIX /sbin/install
1501 # AIX /bin/install
1502 # AmigaOS /C/install, which installs bootblocks on floppy discs
1503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1506 # OS/2's system install, which has a completely different semantic
1507 # ./install, which can be erroneously created by make from ./install.sh.
1508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1510 if test -z "$INSTALL"; then
1511 if test "${ac_cv_path_install+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 # Account for people who put trailing slashes in PATH elements.
1520 case $as_dir/ in
1521 ./ | .// | /cC/* | \
1522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1524 /usr/ucb/* ) ;;
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1528 # by default.
1529 for ac_prog in ginstall scoinst install; do
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1536 elif test $ac_prog = install &&
1537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1540 else
1541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 break 3
1545 done
1546 done
1548 esac
1549 done
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL=$ac_cv_path_install
1555 else
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL=$ac_install_sh
1563 echo "$as_me:$LINENO: result: $INSTALL" >&5
1564 echo "${ECHO_T}$INSTALL" >&6
1566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567 # It thinks the first close brace ends the variable substitution.
1568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1576 # Just in case
1577 sleep 1
1578 echo timestamp > conftest.file
1579 # Do `set' in a subshell so we don't clobber the current shell's
1580 # arguments. Must try -L first in case configure is actually a
1581 # symlink; some systems play weird games with the mod time of symlinks
1582 # (eg FreeBSD returns the mod time of the symlink's containing
1583 # directory).
1584 if (
1585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1587 # -L didn't work.
1588 set X `ls -t $srcdir/configure conftest.file`
1590 rm -f conftest.file
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599 alias in your environment" >&5
1600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601 alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1605 test "$2" = conftest.file
1607 then
1608 # Ok.
1610 else
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612 Check your system clock" >&5
1613 echo "$as_me: error: newly created file is older than distributed files!
1614 Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619 test "$program_prefix" != NONE &&
1620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1621 # Use a double $ so make ignores it.
1622 test "$program_suffix" != NONE &&
1623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1624 # Double any \ or $. echo might interpret backslashes.
1625 # By default was `s,x,x', remove it if useless.
1626 cat <<\_ACEOF >conftest.sed
1627 s/[\\$]/&&/g;s/;s,x,x,$//
1628 _ACEOF
1629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 rm conftest.sed
1632 # expand $ac_aux_dir to an absolute path
1633 am_aux_dir=`cd $ac_aux_dir && pwd`
1635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1636 # Use eval to expand $SHELL
1637 if eval "$MISSING --run true"; then
1638 am_missing_run="$MISSING --run "
1639 else
1640 am_missing_run=
1641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1646 # We used to keeping the `.' as first argument, in order to
1647 # allow $(mkdir_p) to be used without argument. As in
1648 # $(mkdir_p) $(somedir)
1649 # where $(somedir) is conditionally defined. However this is wrong
1650 # for two reasons:
1651 # 1. if the package is installed by a user who cannot write `.'
1652 # make install will fail,
1653 # 2. the above comment should most certainly read
1654 # $(mkdir_p) $(DESTDIR)$(somedir)
1655 # so it does not work when $(somedir) is undefined and
1656 # $(DESTDIR) is not.
1657 # To support the latter case, we have to write
1658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1659 # so the `.' trick is pointless.
1660 mkdir_p='mkdir -p --'
1661 else
1662 # On NextStep and OpenStep, the `mkdir' command does not
1663 # recognize any option. It will interpret all options as
1664 # directories to create, and then abort because `.' already
1665 # exists.
1666 for d in ./-p ./--version;
1668 test -d $d && rmdir $d
1669 done
1670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1671 if test -f "$ac_aux_dir/mkinstalldirs"; then
1672 mkdir_p='$(mkinstalldirs)'
1673 else
1674 mkdir_p='$(install_sh) -d'
1678 for ac_prog in gawk mawk nawk awk
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_AWK+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$AWK"; then
1688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_AWK="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1706 AWK=$ac_cv_prog_AWK
1707 if test -n "$AWK"; then
1708 echo "$as_me:$LINENO: result: $AWK" >&5
1709 echo "${ECHO_T}$AWK" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$AWK" && break
1716 done
1718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 cat >conftest.make <<\_ACEOF
1725 all:
1726 @echo 'ac_maketemp="$(MAKE)"'
1727 _ACEOF
1728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1730 if test -n "$ac_maketemp"; then
1731 eval ac_cv_prog_make_${ac_make}_set=yes
1732 else
1733 eval ac_cv_prog_make_${ac_make}_set=no
1735 rm -f conftest.make
1737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 SET_MAKE=
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 SET_MAKE="MAKE=${MAKE-make}"
1747 rm -rf .tst 2>/dev/null
1748 mkdir .tst 2>/dev/null
1749 if test -d .tst; then
1750 am__leading_dot=.
1751 else
1752 am__leading_dot=_
1754 rmdir .tst 2>/dev/null
1756 # test to see if srcdir already configured
1757 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758 test -f $srcdir/config.status; then
1759 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1760 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1761 { (exit 1); exit 1; }; }
1764 # test whether we have cygpath
1765 if test -z "$CYGPATH_W"; then
1766 if (cygpath --version) >/dev/null 2>/dev/null; then
1767 CYGPATH_W='cygpath -w'
1768 else
1769 CYGPATH_W=echo
1774 # Define the identity of the package.
1775 PACKAGE='amule'
1776 VERSION='SVN'
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE "$PACKAGE"
1781 _ACEOF
1784 cat >>confdefs.h <<_ACEOF
1785 #define VERSION "$VERSION"
1786 _ACEOF
1788 # Some tools Automake needs.
1790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1806 # Installed binaries are usually stripped using `strip' when the user
1807 # run `make install-strip'. However `strip' might not be the right
1808 # tool to use in cross-compilation environments, therefore Automake
1809 # will honor the `STRIP' environment variable to overrule this program.
1810 if test "$cross_compiling" != no; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$STRIP"; then
1820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1833 done
1834 done
1838 STRIP=$ac_cv_prog_STRIP
1839 if test -n "$STRIP"; then
1840 echo "$as_me:$LINENO: result: $STRIP" >&5
1841 echo "${ECHO_T}$STRIP" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_STRIP"; then
1849 ac_ct_STRIP=$STRIP
1850 # Extract the first word of "strip", so it can be a program name with args.
1851 set dummy strip; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_STRIP"; then
1858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_STRIP="strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1874 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1878 if test -n "$ac_ct_STRIP"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1880 echo "${ECHO_T}$ac_ct_STRIP" >&6
1881 else
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 STRIP=$ac_ct_STRIP
1887 else
1888 STRIP="$ac_cv_prog_STRIP"
1892 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1894 # We need awk for the "check" target. The system "awk" is bad on
1895 # some platforms.
1896 # Always define AMTAR for backward compatibility.
1898 AMTAR=${AMTAR-"${am_missing_run}tar"}
1900 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1908 ac_config_headers="$ac_config_headers config.h"
1910 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1911 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1912 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1913 if test "${enable_maintainer_mode+set}" = set; then
1914 enableval="$enable_maintainer_mode"
1915 USE_MAINTAINER_MODE=$enableval
1916 else
1917 USE_MAINTAINER_MODE=no
1919 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1920 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1923 if test $USE_MAINTAINER_MODE = yes; then
1924 MAINTAINER_MODE_TRUE=
1925 MAINTAINER_MODE_FALSE='#'
1926 else
1927 MAINTAINER_MODE_TRUE='#'
1928 MAINTAINER_MODE_FALSE=
1931 MAINT=$MAINTAINER_MODE_TRUE
1935 # Removing -fomit since it causes problems with CryptoPP
1936 CFLAGS="`echo $CFLAGS | sed "s/-fomit-frame-pointer//g"`"
1937 CXXFLAGS="`echo $CXXFLAGS | sed "s/-fomit-frame-pointer//g"`"
1939 # System detection, need AC_CANONICAL_HOST
1940 case "${host_os}" in
1942 SYS=unknown
1944 darwin*)
1945 SYS=darwin
1946 CFLAGS="${CFLAGS} -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1947 LDFLAGS="$LDFLAGS -bind_at_load"
1948 touch src/Scanner.cpp
1950 openbsd*)
1951 SYS=openbsd
1952 LIBS="$LIBS -L/usr/local/lib"
1953 X11LIBS="-lX11 -L/usr/X11R6/lib"
1954 CXXFLAGS=" $CXXFLAGS -D__OPENBSD__"
1955 if test "$DEBUG_FLAGS" != ""; then
1956 DEBUG_FLAGS="-Wall -g -fno-inline -D__DEBUG__"
1959 *cygwin* | *mingw32*)
1960 SYS=win32
1961 CFLAGS="$CFLAGS -DNOMINMAX"
1962 CXXFLAGS="$CXXFLAGS -DNOMINMAX"
1964 solaris*)
1965 RESOLV_LIB="-lresolv -lnsl"
1966 X11LIBS="-lX11"
1967 LIBS="$LIBS -lrt"
1968 esac
1973 # Checks for programs.
1974 ac_ext=cc
1975 ac_cpp='$CXXCPP $CPPFLAGS'
1976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$CXX"; then
1990 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2003 done
2004 done
2008 CXX=$ac_cv_prog_CXX
2009 if test -n "$CXX"; then
2010 echo "$as_me:$LINENO: result: $CXX" >&5
2011 echo "${ECHO_T}$CXX" >&6
2012 else
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 test -n "$CXX" && break
2018 done
2020 if test -z "$CXX"; then
2021 ac_ct_CXX=$CXX
2022 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$ac_ct_CXX"; then
2032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_ac_ct_CXX="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2051 if test -n "$ac_ct_CXX"; then
2052 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2053 echo "${ECHO_T}$ac_ct_CXX" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$ac_ct_CXX" && break
2060 done
2061 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2063 CXX=$ac_ct_CXX
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C++ compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev/null >&5) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h. */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2095 main ()
2099 return 0;
2101 _ACEOF
2102 ac_clean_files_save=$ac_clean_files
2103 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2104 # Try to create an executable without -o first, disregard a.out.
2105 # It will help us diagnose broken compilers, and finding out an intuition
2106 # of exeext.
2107 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2108 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111 (eval $ac_link_default) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # Find the output, starting from the most likely. This scheme is
2116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117 # resort.
2119 # Be careful to initialize this variable, since it used to be cached.
2120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121 ac_cv_exeext=
2122 # b.out is created by i960 compilers.
2123 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 test -f "$ac_file" || continue
2126 case $ac_file in
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129 conftest.$ac_ext )
2130 # This is the source file.
2132 [ab].out )
2133 # We found the default executable, but exeext='' is most
2134 # certainly right.
2135 break;;
2136 *.* )
2137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138 # FIXME: I believe we export ac_cv_exeext for Libtool,
2139 # but it would be cool to find out if it's true. Does anybody
2140 # maintain Libtool? --akim.
2141 export ac_cv_exeext
2142 break;;
2144 break;;
2145 esac
2146 done
2147 else
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: C++ compiler cannot create executables
2154 See \`config.log' for more details." >&2;}
2155 { (exit 77); exit 77; }; }
2158 ac_exeext=$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_file" >&5
2160 echo "${ECHO_T}$ac_file" >&6
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2165 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167 # If not cross compiling, check that we can run a simple program.
2168 if test "$cross_compiling" != yes; then
2169 if { ac_try='./$ac_file'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 cross_compiling=no
2176 else
2177 if test "$cross_compiling" = maybe; then
2178 cross_compiling=yes
2179 else
2180 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2181 If you meant to cross compile, use \`--host'.
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: cannot run C++ compiled programs.
2184 If you meant to cross compile, use \`--host'.
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2190 echo "$as_me:$LINENO: result: yes" >&5
2191 echo "${ECHO_T}yes" >&6
2193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2194 ac_clean_files=$ac_clean_files_save
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200 echo "${ECHO_T}$cross_compiling" >&6
2202 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205 (eval $ac_link) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2212 # `rm'.
2213 for ac_file in conftest.exe conftest conftest.*; do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218 export ac_cv_exeext
2219 break;;
2220 * ) break;;
2221 esac
2222 done
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2231 rm -f conftest$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233 echo "${ECHO_T}$ac_cv_exeext" >&6
2235 rm -f conftest.$ac_ext
2236 EXEEXT=$ac_cv_exeext
2237 ac_exeext=$EXEEXT
2238 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240 if test "${ac_cv_objext+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2255 return 0;
2257 _ACEOF
2258 rm -f conftest.o conftest.obj
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2265 case $ac_file in
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268 break;;
2269 esac
2270 done
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285 echo "${ECHO_T}$ac_cv_objext" >&6
2286 OBJEXT=$ac_cv_objext
2287 ac_objext=$OBJEXT
2288 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2290 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2301 main ()
2303 #ifndef __GNUC__
2304 choke me
2305 #endif
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_cxx_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_compiler_gnu=yes
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 ac_compiler_gnu=no
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2344 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2345 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2346 GXX=`test $ac_compiler_gnu = yes && echo yes`
2347 ac_test_CXXFLAGS=${CXXFLAGS+set}
2348 ac_save_CXXFLAGS=$CXXFLAGS
2349 CXXFLAGS="-g"
2350 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2352 if test "${ac_cv_prog_cxx_g+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_cxx_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_cv_prog_cxx_g=yes
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_cv_prog_cxx_g=no
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2402 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2403 if test "$ac_test_CXXFLAGS" = set; then
2404 CXXFLAGS=$ac_save_CXXFLAGS
2405 elif test $ac_cv_prog_cxx_g = yes; then
2406 if test "$GXX" = yes; then
2407 CXXFLAGS="-g -O2"
2408 else
2409 CXXFLAGS="-g"
2411 else
2412 if test "$GXX" = yes; then
2413 CXXFLAGS="-O2"
2414 else
2415 CXXFLAGS=
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 $ac_declaration
2433 #include <stdlib.h>
2435 main ()
2437 exit (42);
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_cxx_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 continue
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h. */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2478 $ac_declaration
2480 main ()
2482 exit (42);
2484 return 0;
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_cxx_werror_flag"
2497 || test ! -s conftest.err'
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); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 break
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 done
2517 rm -f conftest*
2518 if test -n "$ac_declaration"; then
2519 echo '#ifdef __cplusplus' >>confdefs.h
2520 echo $ac_declaration >>confdefs.h
2521 echo '#endif' >>confdefs.h
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 DEPDIR="${am__leading_dot}deps"
2531 ac_config_commands="$ac_config_commands depfiles"
2534 am_make=${MAKE-make}
2535 cat > confinc << 'END'
2536 am__doit:
2537 @echo done
2538 .PHONY: am__doit
2540 # If we don't find an include directive, just comment out the code.
2541 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2542 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2543 am__include="#"
2544 am__quote=
2545 _am_result=none
2546 # First try GNU make style include.
2547 echo "include confinc" > confmf
2548 # We grep out `Entering directory' and `Leaving directory'
2549 # messages which can occur if `w' ends up in MAKEFLAGS.
2550 # In particular we don't look at `^make:' because GNU make might
2551 # be invoked under some other name (usually "gmake"), in which
2552 # case it prints its new name instead of `make'.
2553 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2554 am__include=include
2555 am__quote=
2556 _am_result=GNU
2558 # Now try BSD make style include.
2559 if test "$am__include" = "#"; then
2560 echo '.include "confinc"' > confmf
2561 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2562 am__include=.include
2563 am__quote="\""
2564 _am_result=BSD
2569 echo "$as_me:$LINENO: result: $_am_result" >&5
2570 echo "${ECHO_T}$_am_result" >&6
2571 rm -f confinc confmf
2573 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2574 if test "${enable_dependency_tracking+set}" = set; then
2575 enableval="$enable_dependency_tracking"
2578 if test "x$enable_dependency_tracking" != xno; then
2579 am_depcomp="$ac_aux_dir/depcomp"
2580 AMDEPBACKSLASH='\'
2584 if test "x$enable_dependency_tracking" != xno; then
2585 AMDEP_TRUE=
2586 AMDEP_FALSE='#'
2587 else
2588 AMDEP_TRUE='#'
2589 AMDEP_FALSE=
2595 depcc="$CXX" am_compiler_list=
2597 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2598 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2599 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2603 # We make a subdir and do the tests there. Otherwise we can end up
2604 # making bogus files that we don't know about and never remove. For
2605 # instance it was reported that on HP-UX the gcc test will end up
2606 # making a dummy file named `D' -- because `-MD' means `put the output
2607 # in D'.
2608 mkdir conftest.dir
2609 # Copy depcomp to subdir because otherwise we won't find it if we're
2610 # using a relative directory.
2611 cp "$am_depcomp" conftest.dir
2612 cd conftest.dir
2613 # We will build objects and dependencies in a subdirectory because
2614 # it helps to detect inapplicable dependency modes. For instance
2615 # both Tru64's cc and ICC support -MD to output dependencies as a
2616 # side effect of compilation, but ICC will put the dependencies in
2617 # the current directory while Tru64 will put them in the object
2618 # directory.
2619 mkdir sub
2621 am_cv_CXX_dependencies_compiler_type=none
2622 if test "$am_compiler_list" = ""; then
2623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2625 for depmode in $am_compiler_list; do
2626 # Setup a source with many dependencies, because some compilers
2627 # like to wrap large dependency lists on column 80 (with \), and
2628 # we should not choose a depcomp mode which is confused by this.
2630 # We need to recreate these files for each test, as the compiler may
2631 # overwrite some of them when testing with obscure command lines.
2632 # This happens at least with the AIX C compiler.
2633 : > sub/conftest.c
2634 for i in 1 2 3 4 5 6; do
2635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2637 # Solaris 8's {/usr,}/bin/sh.
2638 touch sub/conftst$i.h
2639 done
2640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2642 case $depmode in
2643 nosideeffect)
2644 # after this tag, mechanisms are not by side-effect, so they'll
2645 # only be used when explicitly requested
2646 if test "x$enable_dependency_tracking" = xyes; then
2647 continue
2648 else
2649 break
2652 none) break ;;
2653 esac
2654 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2655 # mode. It turns out that the SunPro C++ compiler does not properly
2656 # handle `-M -o', and we need to detect this.
2657 if depmode=$depmode \
2658 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2660 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2661 >/dev/null 2>conftest.err &&
2662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2663 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2665 # icc doesn't choke on unknown options, it will just issue warnings
2666 # or remarks (even with -Werror). So we grep stderr for any message
2667 # that says an option was ignored or not supported.
2668 # When given -MP, icc 7.0 and 7.1 complain thusly:
2669 # icc: Command line warning: ignoring option '-M'; no argument required
2670 # The diagnosis changed in icc 8.0:
2671 # icc: Command line remark: option '-MP' not supported
2672 if (grep 'ignoring option' conftest.err ||
2673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2674 am_cv_CXX_dependencies_compiler_type=$depmode
2675 break
2678 done
2680 cd ..
2681 rm -rf conftest.dir
2682 else
2683 am_cv_CXX_dependencies_compiler_type=none
2687 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2688 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2689 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2694 test "x$enable_dependency_tracking" != xno \
2695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2696 am__fastdepCXX_TRUE=
2697 am__fastdepCXX_FALSE='#'
2698 else
2699 am__fastdepCXX_TRUE='#'
2700 am__fastdepCXX_FALSE=
2704 ac_ext=cc
2705 ac_cpp='$CXXCPP $CPPFLAGS'
2706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2709 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2711 if test -z "$CXXCPP"; then
2712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 # Double quotes because CXXCPP needs to be expanded
2716 for CXXCPP in "$CXX -E" "/lib/cpp"
2718 ac_preproc_ok=false
2719 for ac_cxx_preproc_warn_flag in '' yes
2721 # Use a header file that comes with gcc, so configuring glibc
2722 # with a fresh cross-compiler works.
2723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2724 # <limits.h> exists even on freestanding compilers.
2725 # On the NeXT, cc -E runs the code through the compiler's parser,
2726 # not just through cpp. "Syntax error" is here to catch this case.
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #ifdef __STDC__
2734 # include <limits.h>
2735 #else
2736 # include <assert.h>
2737 #endif
2738 Syntax error
2739 _ACEOF
2740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } >/dev/null; then
2748 if test -s conftest.err; then
2749 ac_cpp_err=$ac_cxx_preproc_warn_flag
2750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2751 else
2752 ac_cpp_err=
2754 else
2755 ac_cpp_err=yes
2757 if test -z "$ac_cpp_err"; then
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 # Broken: fails on valid input.
2764 continue
2766 rm -f conftest.err conftest.$ac_ext
2768 # OK, works on sane cases. Now check whether non-existent headers
2769 # can be detected and how.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #include <ac_nonexistent.h>
2777 _ACEOF
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev/null; then
2786 if test -s conftest.err; then
2787 ac_cpp_err=$ac_cxx_preproc_warn_flag
2788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2789 else
2790 ac_cpp_err=
2792 else
2793 ac_cpp_err=yes
2795 if test -z "$ac_cpp_err"; then
2796 # Broken: success on invalid input.
2797 continue
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Passes both tests.
2803 ac_preproc_ok=:
2804 break
2806 rm -f conftest.err conftest.$ac_ext
2808 done
2809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2810 rm -f conftest.err conftest.$ac_ext
2811 if $ac_preproc_ok; then
2812 break
2815 done
2816 ac_cv_prog_CXXCPP=$CXXCPP
2819 CXXCPP=$ac_cv_prog_CXXCPP
2820 else
2821 ac_cv_prog_CXXCPP=$CXXCPP
2823 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2824 echo "${ECHO_T}$CXXCPP" >&6
2825 ac_preproc_ok=false
2826 for ac_cxx_preproc_warn_flag in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831 # <limits.h> exists even on freestanding compilers.
2832 # On the NeXT, cc -E runs the code through the compiler's parser,
2833 # not just through cpp. "Syntax error" is here to catch this case.
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 #ifdef __STDC__
2841 # include <limits.h>
2842 #else
2843 # include <assert.h>
2844 #endif
2845 Syntax error
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849 ac_status=$?
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_cxx_preproc_warn_flag
2857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2858 else
2859 ac_cpp_err=
2861 else
2862 ac_cpp_err=yes
2864 if test -z "$ac_cpp_err"; then
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Broken: fails on valid input.
2871 continue
2873 rm -f conftest.err conftest.$ac_ext
2875 # OK, works on sane cases. Now check whether non-existent headers
2876 # can be detected and how.
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_cxx_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2896 else
2897 ac_cpp_err=
2899 else
2900 ac_cpp_err=yes
2902 if test -z "$ac_cpp_err"; then
2903 # Broken: success on invalid input.
2904 continue
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Passes both tests.
2910 ac_preproc_ok=:
2911 break
2913 rm -f conftest.err conftest.$ac_ext
2915 done
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.$ac_ext
2918 if $ac_preproc_ok; then
2920 else
2921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2970 else
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2976 if test -z "$ac_cv_prog_CC"; then
2977 ac_ct_CC=$CC
2978 # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 CC=$ac_ct_CC
3014 else
3015 CC="$ac_cv_prog_CC"
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 echo "$as_me:$LINENO: result: $CC" >&5
3049 echo "${ECHO_T}$CC" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3056 if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_CC="cc"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3087 echo "${ECHO_T}$ac_ct_CC" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3093 CC=$ac_ct_CC
3094 else
3095 CC="$ac_cv_prog_CC"
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_CC+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3122 ac_cv_prog_CC="cc"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 echo "$as_me:$LINENO: result: $CC" >&5
3146 echo "${ECHO_T}$CC" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 for ac_prog in cl
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_CC+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 echo "$as_me:$LINENO: result: $CC" >&5
3186 echo "${ECHO_T}$CC" >&6
3187 else
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 test -n "$CC" && break
3193 done
3195 if test -z "$CC"; then
3196 ac_ct_CC=$CC
3197 for ac_prog in cl
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3228 echo "${ECHO_T}$ac_ct_CC" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 test -n "$ac_ct_CC" && break
3235 done
3237 CC=$ac_ct_CC
3243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3249 # Provide some information about the compiler.
3250 echo "$as_me:$LINENO:" \
3251 "checking for C compiler version" >&5
3252 ac_compiler=`set X $ac_compile; echo $2`
3253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3254 (eval $ac_compiler --version </dev/null >&5) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3259 (eval $ac_compiler -v </dev/null >&5) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3264 (eval $ac_compiler -V </dev/null >&5) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 main ()
3284 #ifndef __GNUC__
3285 choke me
3286 #endif
3289 return 0;
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag"
3302 || test ! -s conftest.err'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 (eval $ac_try) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_compiler_gnu=yes
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_compiler_gnu=no
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3327 GCC=`test $ac_compiler_gnu = yes && echo yes`
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 CFLAGS="-g"
3331 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3333 if test "${ac_cv_prog_cc_g+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3344 main ()
3348 return 0;
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 ac_cv_prog_cc_g=yes
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 ac_cv_prog_cc_g=no
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3388 CFLAGS="-g -O2"
3389 else
3390 CFLAGS="-g"
3392 else
3393 if test "$GCC" = yes; then
3394 CFLAGS="-O2"
3395 else
3396 CFLAGS=
3399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 ac_cv_prog_cc_stdc=no
3405 ac_save_CC=$CC
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <stdarg.h>
3413 #include <stdio.h>
3414 #include <sys/types.h>
3415 #include <sys/stat.h>
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3420 char **p;
3421 int i;
3423 return p[i];
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3427 char *s;
3428 va_list v;
3429 va_start (v,p);
3430 s = g (p, va_arg (v,int));
3431 va_end (v);
3432 return s;
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3436 function prototypes and stuff, but not '\xHH' hex character constants.
3437 These don't provoke an error unfortunately, instead are silently treated
3438 as 'x'. The following induces an error, until -std1 is added to get
3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3440 array size at least. It's necessary to write '\x00'==0 to get something
3441 that's true only with -std1. */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444 int test (int i, double x);
3445 struct s1 {int (*f) (int a);};
3446 struct s2 {int (*f) (double a);};
3447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3448 int argc;
3449 char **argv;
3451 main ()
3453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3455 return 0;
3457 _ACEOF
3458 # Don't try gcc -ansi; that turns off useful extensions and
3459 # breaks some systems' header files.
3460 # AIX -qlanglvl=ansi
3461 # Ultrix and OSF/1 -std1
3462 # HP-UX 10.20 and later -Ae
3463 # HP-UX older versions -Aa -D_HPUX_SOURCE
3464 # SVR4 -Xc -D__EXTENSIONS__
3465 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 CC="$ac_save_CC $ac_arg"
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_prog_cc_stdc=$ac_arg
3491 break
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f conftest.err conftest.$ac_objext
3498 done
3499 rm -f conftest.$ac_ext conftest.$ac_objext
3500 CC=$ac_save_CC
3504 case "x$ac_cv_prog_cc_stdc" in
3505 x|xno)
3506 echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6 ;;
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3511 CC="$CC $ac_cv_prog_cc_stdc" ;;
3512 esac
3514 # Some people use a C++ compiler to compile C. Since we use `exit',
3515 # in C++ we need to declare it. In case someone uses the same compiler
3516 # for both compiling C and C++ we need to have the C++ compiler decide
3517 # the declaration of exit, since it's the most demanding environment.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #ifndef __cplusplus
3520 choke me
3521 #endif
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 for ac_declaration in \
3546 '' \
3547 'extern "C" void std::exit (int) throw (); using std::exit;' \
3548 'extern "C" void std::exit (int); using std::exit;' \
3549 'extern "C" void exit (int) throw ();' \
3550 'extern "C" void exit (int);' \
3551 'void exit (int);'
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_declaration
3560 #include <stdlib.h>
3562 main ()
3564 exit (42);
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 continue
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_declaration
3607 main ()
3609 exit (42);
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
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); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 break
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 done
3644 rm -f conftest*
3645 if test -n "$ac_declaration"; then
3646 echo '#ifdef __cplusplus' >>confdefs.h
3647 echo $ac_declaration >>confdefs.h
3648 echo '#endif' >>confdefs.h
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 depcc="$CC" am_compiler_list=
3665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3671 # We make a subdir and do the tests there. Otherwise we can end up
3672 # making bogus files that we don't know about and never remove. For
3673 # instance it was reported that on HP-UX the gcc test will end up
3674 # making a dummy file named `D' -- because `-MD' means `put the output
3675 # in D'.
3676 mkdir conftest.dir
3677 # Copy depcomp to subdir because otherwise we won't find it if we're
3678 # using a relative directory.
3679 cp "$am_depcomp" conftest.dir
3680 cd conftest.dir
3681 # We will build objects and dependencies in a subdirectory because
3682 # it helps to detect inapplicable dependency modes. For instance
3683 # both Tru64's cc and ICC support -MD to output dependencies as a
3684 # side effect of compilation, but ICC will put the dependencies in
3685 # the current directory while Tru64 will put them in the object
3686 # directory.
3687 mkdir sub
3689 am_cv_CC_dependencies_compiler_type=none
3690 if test "$am_compiler_list" = ""; then
3691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3693 for depmode in $am_compiler_list; do
3694 # Setup a source with many dependencies, because some compilers
3695 # like to wrap large dependency lists on column 80 (with \), and
3696 # we should not choose a depcomp mode which is confused by this.
3698 # We need to recreate these files for each test, as the compiler may
3699 # overwrite some of them when testing with obscure command lines.
3700 # This happens at least with the AIX C compiler.
3701 : > sub/conftest.c
3702 for i in 1 2 3 4 5 6; do
3703 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3705 # Solaris 8's {/usr,}/bin/sh.
3706 touch sub/conftst$i.h
3707 done
3708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3710 case $depmode in
3711 nosideeffect)
3712 # after this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested
3714 if test "x$enable_dependency_tracking" = xyes; then
3715 continue
3716 else
3717 break
3720 none) break ;;
3721 esac
3722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3723 # mode. It turns out that the SunPro C++ compiler does not properly
3724 # handle `-M -o', and we need to detect this.
3725 if depmode=$depmode \
3726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3729 >/dev/null 2>conftest.err &&
3730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742 am_cv_CC_dependencies_compiler_type=$depmode
3743 break
3746 done
3748 cd ..
3749 rm -rf conftest.dir
3750 else
3751 am_cv_CC_dependencies_compiler_type=none
3755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3762 test "x$enable_dependency_tracking" != xno \
3763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764 am__fastdepCC_TRUE=
3765 am__fastdepCC_FALSE='#'
3766 else
3767 am__fastdepCC_TRUE='#'
3768 am__fastdepCC_FALSE=
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3781 CPP=
3783 if test -z "$CPP"; then
3784 if test "${ac_cv_prog_CPP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 # Double quotes because CPP needs to be expanded
3788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #ifdef __STDC__
3806 # include <limits.h>
3807 #else
3808 # include <assert.h>
3809 #endif
3810 Syntax error
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3826 else
3827 ac_cpp_err=yes
3829 if test -z "$ac_cpp_err"; then
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3836 continue
3838 rm -f conftest.err conftest.$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3869 continue
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3878 rm -f conftest.err conftest.$ac_ext
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884 break
3887 done
3888 ac_cv_prog_CPP=$CPP
3891 CPP=$ac_cv_prog_CPP
3892 else
3893 ac_cv_prog_CPP=$CPP
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917 Syntax error
3918 _ACEOF
3919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null; then
3927 if test -s conftest.err; then
3928 ac_cpp_err=$ac_c_preproc_warn_flag
3929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3930 else
3931 ac_cpp_err=
3933 else
3934 ac_cpp_err=yes
3936 if test -z "$ac_cpp_err"; then
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Broken: fails on valid input.
3943 continue
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <ac_nonexistent.h>
3956 _ACEOF
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 else
3969 ac_cpp_err=
3971 else
3972 ac_cpp_err=yes
3974 if test -z "$ac_cpp_err"; then
3975 # Broken: success on invalid input.
3976 continue
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3985 rm -f conftest.err conftest.$ac_ext
3987 done
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3992 else
3993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997 { (exit 1); exit 1; }; }
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 for ac_prog in gawk mawk nawk awk
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_AWK+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$AWK"; then
4016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_AWK="$ac_prog"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4034 AWK=$ac_cv_prog_AWK
4035 if test -n "$AWK"; then
4036 echo "$as_me:$LINENO: result: $AWK" >&5
4037 echo "${ECHO_T}$AWK" >&6
4038 else
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 test -n "$AWK" && break
4044 done
4046 if test "$cross_compiling" = yes; then
4047 ac_build_prefix=
4048 test -n "$build_alias" && ac_build_prefix=$build_alias-
4051 # Even if we're cross-compiling, we want a compiler here
4052 # that is not a cross-compiler.
4053 saved_cross=$cross_compiling
4054 cross_compiling=no
4056 ac_ext=c
4057 ac_cpp='$CPP $BUILD_CPPFLAGS'
4058 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 if test -n "$ac_build_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4063 set dummy ${ac_build_prefix}gcc; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if test -n "$BUILD_CC"; then
4070 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4088 BUILD_CC=$ac_cv_prog_BUILD_CC
4089 if test -n "$BUILD_CC"; then
4090 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4091 echo "${ECHO_T}$BUILD_CC" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_prog_BUILD_CC"; then
4099 ac_ct_BUILD_CC=$BUILD_CC
4100 # Extract the first word of "gcc", so it can be a program name with args.
4101 set dummy gcc; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 if test -n "$ac_ct_BUILD_CC"; then
4108 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4126 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4127 if test -n "$ac_ct_BUILD_CC"; then
4128 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4129 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4130 else
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4135 BUILD_CC=$ac_ct_BUILD_CC
4136 else
4137 BUILD_CC="$ac_cv_prog_BUILD_CC"
4140 if test -z "$BUILD_CC"; then
4141 if test -n "$ac_build_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4143 set dummy ${ac_build_prefix}cc; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 if test -n "$BUILD_CC"; then
4150 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4163 done
4164 done
4168 BUILD_CC=$ac_cv_prog_BUILD_CC
4169 if test -n "$BUILD_CC"; then
4170 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4171 echo "${ECHO_T}$BUILD_CC" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4178 if test -z "$ac_cv_prog_BUILD_CC"; then
4179 ac_ct_BUILD_CC=$BUILD_CC
4180 # Extract the first word of "cc", so it can be a program name with args.
4181 set dummy cc; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 if test -n "$ac_ct_BUILD_CC"; then
4188 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_BUILD_CC="cc"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4201 done
4202 done
4206 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4207 if test -n "$ac_ct_BUILD_CC"; then
4208 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4209 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4215 BUILD_CC=$ac_ct_BUILD_CC
4216 else
4217 BUILD_CC="$ac_cv_prog_BUILD_CC"
4221 if test -z "$BUILD_CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc; ac_word=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test -n "$BUILD_CC"; then
4230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4231 else
4232 ac_prog_rejected=no
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4242 continue
4244 ac_cv_prog_BUILD_CC="cc"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4251 if test $ac_prog_rejected = yes; then
4252 # We found a bogon in the path, so make sure we never use it.
4253 set dummy $ac_cv_prog_BUILD_CC
4254 shift
4255 if test $# != 0; then
4256 # We chose a different compiler from the bogus one.
4257 # However, it has the same basename, so the bogon will be chosen
4258 # first if we set BUILD_CC to just the basename; use the full file name.
4259 shift
4260 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4265 BUILD_CC=$ac_cv_prog_BUILD_CC
4266 if test -n "$BUILD_CC"; then
4267 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4268 echo "${ECHO_T}$BUILD_CC" >&6
4269 else
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4275 if test -z "$BUILD_CC"; then
4276 if test -n "$ac_build_prefix"; then
4277 for ac_prog in cl
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 if test -n "$BUILD_CC"; then
4287 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4305 BUILD_CC=$ac_cv_prog_BUILD_CC
4306 if test -n "$BUILD_CC"; then
4307 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4308 echo "${ECHO_T}$BUILD_CC" >&6
4309 else
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 test -n "$BUILD_CC" && break
4315 done
4317 if test -z "$BUILD_CC"; then
4318 ac_ct_BUILD_CC=$BUILD_CC
4319 for ac_prog in cl
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$ac_ct_BUILD_CC"; then
4329 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4347 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4348 if test -n "$ac_ct_BUILD_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4350 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4351 else
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4356 test -n "$ac_ct_BUILD_CC" && break
4357 done
4359 BUILD_CC=$ac_ct_BUILD_CC
4365 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." >&5
4367 echo "$as_me: error: no acceptable C compiler found in \$PATH
4368 See \`config.log' for more details." >&2;}
4369 { (exit 1); exit 1; }; }
4371 # Provide some information about the compiler.
4372 echo "$as_me:$LINENO:" \
4373 "checking for C compiler version" >&5
4374 ac_compiler=`set X $ac_compile; echo $2`
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4376 (eval $ac_compiler --version </dev/null >&5) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4381 (eval $ac_compiler -v </dev/null >&5) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4386 (eval $ac_compiler -V </dev/null >&5) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 ac_clean_files_save=$ac_clean_files
4407 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4408 # Try to create an executable without -o first, disregard a.out.
4409 # It will help us diagnose broken compilers, and finding out an intuition
4410 # of exeext.
4411 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4412 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4413 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4415 (eval $ac_link_default) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 # Find the output, starting from the most likely. This scheme is
4420 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4421 # resort.
4423 # Be careful to initialize this variable, since it used to be cached.
4424 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4425 ac_cv_build_exeext=
4426 # b.out is created by i960 compilers.
4427 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4429 test -f "$ac_file" || continue
4430 case $ac_file in
4431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4433 conftest.$ac_ext )
4434 # This is the source file.
4436 [ab].out )
4437 # We found the default executable, but exeext='' is most
4438 # certainly right.
4439 break;;
4440 *.* )
4441 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4442 # FIXME: I believe we export ac_cv_exeext for Libtool,
4443 # but it would be cool to find out if it's true. Does anybody
4444 # maintain Libtool? --akim.
4445 export ac_cv_build_exeext
4446 break;;
4448 break;;
4449 esac
4450 done
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: C compiler cannot create executables
4458 See \`config.log' for more details." >&2;}
4459 { (exit 77); exit 77; }; }
4462 ac_build_exeext=$ac_cv_build_exeext
4463 echo "$as_me:$LINENO: result: $ac_file" >&5
4464 echo "${ECHO_T}$ac_file" >&6
4466 # Check the compiler produces executables we can run. If not, either
4467 # the compiler is broken, or we cross compile.
4468 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4469 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4471 # If not cross compiling, check that we can run a simple program.
4472 if test "$cross_compiling" != yes; then
4473 if { ac_try='./$ac_file'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 cross_compiling=no
4480 else
4481 if test "$cross_compiling" = maybe; then
4482 cross_compiling=yes
4483 else
4484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4485 If you meant to cross compile, use \`--host'.
4486 See \`config.log' for more details." >&5
4487 echo "$as_me: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&2;}
4490 { (exit 1); exit 1; }; }
4494 echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6
4497 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4498 ac_clean_files=$ac_clean_files_save
4499 # Check the compiler produces executables we can run. If not, either
4500 # the compiler is broken, or we cross compile.
4501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4504 echo "${ECHO_T}$cross_compiling" >&6
4506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4515 # work properly (i.e., refer to `conftest.exe'), while it won't with
4516 # `rm'.
4517 for ac_file in conftest.exe conftest conftest.*; do
4518 test -f "$ac_file" || continue
4519 case $ac_file in
4520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4521 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 export ac_cv_build_exeext
4523 break;;
4524 * ) break;;
4525 esac
4526 done
4527 else
4528 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4529 See \`config.log' for more details." >&5
4530 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." >&2;}
4532 { (exit 1); exit 1; }; }
4535 rm -f conftest$ac_cv_build_exeext
4536 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4537 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4539 rm -f conftest.$ac_ext
4540 BUILD_EXEEXT=$ac_cv_build_exeext
4541 ac_build_exeext=$BUILD_EXEEXT
4544 # Restore configuration environment
4545 cross_compiling=$saved_cross
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 else
4554 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4557 echo "$as_me:$LINENO: checking for egrep" >&5
4558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4559 if test "${ac_cv_prog_egrep+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4563 then ac_cv_prog_egrep='grep -E'
4564 else ac_cv_prog_egrep='egrep'
4567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4569 EGREP=$ac_cv_prog_egrep
4572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 cat >conftest.make <<\_ACEOF
4579 all:
4580 @echo 'ac_maketemp="$(MAKE)"'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4584 if test -n "$ac_maketemp"; then
4585 eval ac_cv_prog_make_${ac_make}_set=yes
4586 else
4587 eval ac_cv_prog_make_${ac_make}_set=no
4589 rm -f conftest.make
4591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594 SET_MAKE=
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 SET_MAKE="MAKE=${MAKE-make}"
4602 for ac_prog in flex lex
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_LEX+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 if test -n "$LEX"; then
4612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_LEX="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4630 LEX=$ac_cv_prog_LEX
4631 if test -n "$LEX"; then
4632 echo "$as_me:$LINENO: result: $LEX" >&5
4633 echo "${ECHO_T}$LEX" >&6
4634 else
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$LEX" && break
4640 done
4641 test -n "$LEX" || LEX=":"
4643 if test -z "$LEXLIB"
4644 then
4645 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4646 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4647 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 ac_check_lib_save_LIBS=$LIBS
4651 LIBS="-lfl $LIBS"
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4659 /* Override any gcc2 internal prototype to avoid an error. */
4660 #ifdef __cplusplus
4661 extern "C"
4662 #endif
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4665 char yywrap ();
4667 main ()
4669 yywrap ();
4671 return 0;
4673 _ACEOF
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest$ac_exeext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_lib_fl_yywrap=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_cv_lib_fl_yywrap=no
4703 rm -f conftest.err conftest.$ac_objext \
4704 conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4707 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4708 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4709 if test $ac_cv_lib_fl_yywrap = yes; then
4710 LEXLIB="-lfl"
4711 else
4712 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4713 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4714 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ll $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 #ifdef __cplusplus
4728 extern "C"
4729 #endif
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char yywrap ();
4734 main ()
4736 yywrap ();
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_lib_l_yywrap=yes
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_lib_l_yywrap=no
4770 rm -f conftest.err conftest.$ac_objext \
4771 conftest$ac_exeext conftest.$ac_ext
4772 LIBS=$ac_check_lib_save_LIBS
4774 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4775 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4776 if test $ac_cv_lib_l_yywrap = yes; then
4777 LEXLIB="-ll"
4784 if test "x$LEX" != "x:"; then
4785 echo "$as_me:$LINENO: checking lex output file root" >&5
4786 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4787 if test "${ac_cv_prog_lex_root+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 # The minimal lex program is just a single line: %%. But some broken lexes
4791 # (Solaris, I think it was) want two %% lines, so accommodate them.
4792 cat >conftest.l <<_ACEOF
4795 _ACEOF
4796 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4797 (eval $LEX conftest.l) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }
4801 if test -f lex.yy.c; then
4802 ac_cv_prog_lex_root=lex.yy
4803 elif test -f lexyy.c; then
4804 ac_cv_prog_lex_root=lexyy
4805 else
4806 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4807 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4808 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4812 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4813 rm -f conftest.l
4814 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4816 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4817 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4818 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 # POSIX says lex can declare yytext either as a pointer or an array; the
4822 # default is implementation-dependent. Figure out which it is, since
4823 # not all implementations provide the %pointer and %array declarations.
4824 ac_cv_prog_lex_yytext_pointer=no
4825 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4826 ac_save_LIBS=$LIBS
4827 LIBS="$LIBS $LEXLIB"
4828 cat >conftest.$ac_ext <<_ACEOF
4829 `cat $LEX_OUTPUT_ROOT.c`
4830 _ACEOF
4831 rm -f conftest.$ac_objext conftest$ac_exeext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833 (eval $ac_link) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_prog_lex_yytext_pointer=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4859 rm -f conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861 LIBS=$ac_save_LIBS
4862 rm -f "${LEX_OUTPUT_ROOT}.c"
4865 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4866 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4867 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4869 cat >>confdefs.h <<\_ACEOF
4870 #define YYTEXT_POINTER 1
4871 _ACEOF
4876 # Find a good install program. We prefer a C program (faster),
4877 # so one script is as good as another. But avoid the broken or
4878 # incompatible versions:
4879 # SysV /etc/install, /usr/sbin/install
4880 # SunOS /usr/etc/install
4881 # IRIX /sbin/install
4882 # AIX /bin/install
4883 # AmigaOS /C/install, which installs bootblocks on floppy discs
4884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4887 # OS/2's system install, which has a completely different semantic
4888 # ./install, which can be erroneously created by make from ./install.sh.
4889 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4890 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4891 if test -z "$INSTALL"; then
4892 if test "${ac_cv_path_install+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 # Account for people who put trailing slashes in PATH elements.
4901 case $as_dir/ in
4902 ./ | .// | /cC/* | \
4903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4904 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4905 /usr/ucb/* ) ;;
4907 # OSF1 and SCO ODT 3.0 have their own names for install.
4908 # Don't use installbsd from OSF since it installs stuff as root
4909 # by default.
4910 for ac_prog in ginstall scoinst install; do
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4913 if test $ac_prog = install &&
4914 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4915 # AIX install. It has an incompatible calling convention.
4917 elif test $ac_prog = install &&
4918 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4919 # program-specific install script used by HP pwplus--don't use.
4921 else
4922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4923 break 3
4926 done
4927 done
4929 esac
4930 done
4934 if test "${ac_cv_path_install+set}" = set; then
4935 INSTALL=$ac_cv_path_install
4936 else
4937 # As a last resort, use the slow shell script. We don't cache a
4938 # path for INSTALL within a source directory, because that will
4939 # break other packages using the cache if that directory is
4940 # removed, or if the path is relative.
4941 INSTALL=$ac_install_sh
4944 echo "$as_me:$LINENO: result: $INSTALL" >&5
4945 echo "${ECHO_T}$INSTALL" >&6
4947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4948 # It thinks the first close brace ends the variable substitution.
4949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_RANLIB+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$RANLIB"; then
4964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4982 RANLIB=$ac_cv_prog_RANLIB
4983 if test -n "$RANLIB"; then
4984 echo "$as_me:$LINENO: result: $RANLIB" >&5
4985 echo "${ECHO_T}$RANLIB" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4992 if test -z "$ac_cv_prog_RANLIB"; then
4993 ac_ct_RANLIB=$RANLIB
4994 # Extract the first word of "ranlib", so it can be a program name with args.
4995 set dummy ranlib; ac_word=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 if test -n "$ac_ct_RANLIB"; then
5002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5024 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5025 else
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 RANLIB=$ac_ct_RANLIB
5031 else
5032 RANLIB="$ac_cv_prog_RANLIB"
5035 for ac_prog in 'bison -y' byacc
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_YACC+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$YACC"; then
5045 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_YACC="$ac_prog"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5063 YACC=$ac_cv_prog_YACC
5064 if test -n "$YACC"; then
5065 echo "$as_me:$LINENO: result: $YACC" >&5
5066 echo "${ECHO_T}$YACC" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 test -n "$YACC" && break
5073 done
5074 test -n "$YACC" || YACC="yacc"
5077 # Find the right ranlib, even when cross-compiling
5078 # And for some other tools for cross compilation
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_prog_RANLIB+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 if test -n "$RANLIB"; then
5088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5106 RANLIB=$ac_cv_prog_RANLIB
5107 if test -n "$RANLIB"; then
5108 echo "$as_me:$LINENO: result: $RANLIB" >&5
5109 echo "${ECHO_T}$RANLIB" >&6
5110 else
5111 echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5116 if test -z "$ac_cv_prog_RANLIB"; then
5117 ac_ct_RANLIB=$RANLIB
5118 # Extract the first word of "ranlib", so it can be a program name with args.
5119 set dummy ranlib; ac_word=$2
5120 echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 if test -n "$ac_ct_RANLIB"; then
5126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_ac_ct_RANLIB="ranlib"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5145 if test -n "$ac_ct_RANLIB"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 RANLIB=$ac_ct_RANLIB
5154 else
5155 RANLIB="$ac_cv_prog_RANLIB"
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}strip; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_STRIP+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test -n "$STRIP"; then
5167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5185 STRIP=$ac_cv_prog_STRIP
5186 if test -n "$STRIP"; then
5187 echo "$as_me:$LINENO: result: $STRIP" >&5
5188 echo "${ECHO_T}$STRIP" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 if test -z "$ac_cv_prog_STRIP"; then
5196 ac_ct_STRIP=$STRIP
5197 # Extract the first word of "strip", so it can be a program name with args.
5198 set dummy strip; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 if test -n "$ac_ct_STRIP"; then
5205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_STRIP="strip"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5224 if test -n "$ac_ct_STRIP"; then
5225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5226 echo "${ECHO_T}$ac_ct_STRIP" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 STRIP=$ac_ct_STRIP
5233 else
5234 STRIP="$ac_cv_prog_STRIP"
5237 if test -n "$ac_tool_prefix"; then
5238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5239 set dummy ${ac_tool_prefix}ar; ac_word=$2
5240 echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242 if test "${ac_cv_prog_AR+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test -n "$AR"; then
5246 ac_cv_prog_AR="$AR" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_AR="${ac_tool_prefix}ar"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5264 AR=$ac_cv_prog_AR
5265 if test -n "$AR"; then
5266 echo "$as_me:$LINENO: result: $AR" >&5
5267 echo "${ECHO_T}$AR" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5274 if test -z "$ac_cv_prog_AR"; then
5275 ac_ct_AR=$AR
5276 # Extract the first word of "ar", so it can be a program name with args.
5277 set dummy ar; ac_word=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 if test -n "$ac_ct_AR"; then
5284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_AR="ar"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5303 if test -n "$ac_ct_AR"; then
5304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5305 echo "${ECHO_T}$ac_ct_AR" >&6
5306 else
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5311 AR=$ac_ct_AR
5312 else
5313 AR="$ac_cv_prog_AR"
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}ld; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_LD+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$LD"; then
5325 ac_cv_prog_LD="$LD" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_LD="${ac_tool_prefix}ld"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5343 LD=$ac_cv_prog_LD
5344 if test -n "$LD"; then
5345 echo "$as_me:$LINENO: result: $LD" >&5
5346 echo "${ECHO_T}$LD" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5353 if test -z "$ac_cv_prog_LD"; then
5354 ac_ct_LD=$LD
5355 # Extract the first word of "ld", so it can be a program name with args.
5356 set dummy ld; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_LD="ld"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5381 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5382 if test -n "$ac_ct_LD"; then
5383 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5384 echo "${ECHO_T}$ac_ct_LD" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 LD=$ac_ct_LD
5391 else
5392 LD="$ac_cv_prog_LD"
5397 # Add args to configure
5399 # Check whether --enable-ccache or --disable-ccache was given.
5400 if test "${enable_ccache+set}" = set; then
5401 enableval="$enable_ccache"
5402 ccache=$enableval
5403 else
5404 ccache=no
5407 # Check whether --enable-debug or --disable-debug was given.
5408 if test "${enable_debug+set}" = set; then
5409 enableval="$enable_debug"
5410 USE_DEBUG=$enableval
5411 else
5412 USE_DEBUG=yes
5415 # Check whether --enable-optimize or --disable-optimize was given.
5416 if test "${enable_optimize+set}" = set; then
5417 enableval="$enable_optimize"
5418 USE_OPTIMIZE=$enableval
5419 else
5420 USE_OPTIMIZE=no
5423 # Check whether --enable-profile or --disable-profile was given.
5424 if test "${enable_profile+set}" = set; then
5425 enableval="$enable_profile"
5426 USE_PROFILE=$enableval
5427 else
5428 USE_PROFILE=no
5431 # Check whether --enable-static or --disable-static was given.
5432 if test "${enable_static+set}" = set; then
5433 enableval="$enable_static"
5434 USE_DEBUG_STATIC=$enableval
5435 else
5436 USE_DEBUG_STATIC=no
5439 # Check whether --enable-monolithic or --disable-monolithic was given.
5440 if test "${enable_monolithic+set}" = set; then
5441 enableval="$enable_monolithic"
5442 MONOLITHIC=$enableval
5443 else
5444 MONOLITHIC=yes
5447 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5448 if test "${enable_amule_daemon+set}" = set; then
5449 enableval="$enable_amule_daemon"
5450 AMULE_DAEMON=$enableval
5451 else
5452 AMULE_DAEMON=no
5455 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5456 if test "${enable_amulecmd+set}" = set; then
5457 enableval="$enable_amulecmd"
5458 AMULECMD=$enableval
5459 else
5460 AMULECMD=no
5463 # Check whether --enable-webserver or --disable-webserver was given.
5464 if test "${enable_webserver+set}" = set; then
5465 enableval="$enable_webserver"
5466 WEB=$enableval
5467 else
5468 WEB=no
5471 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5472 if test "${enable_amule_gui+set}" = set; then
5473 enableval="$enable_amule_gui"
5474 AMULE_GUI=$enableval
5475 else
5476 AMULE_GUI=no
5479 # Check whether --enable-cas or --disable-cas was given.
5480 if test "${enable_cas+set}" = set; then
5481 enableval="$enable_cas"
5482 CAS=$enableval
5483 else
5484 CAS=no
5487 # Check whether --enable-wxcas or --disable-wxcas was given.
5488 if test "${enable_wxcas+set}" = set; then
5489 enableval="$enable_wxcas"
5490 WXCAS=$enableval
5491 else
5492 WXCAS=no
5495 # Check whether --enable-ed2k or --disable-ed2k was given.
5496 if test "${enable_ed2k+set}" = set; then
5497 enableval="$enable_ed2k"
5498 ED2K=$enableval
5499 else
5500 ED2K=yes
5503 # Check whether --enable-alc or --disable-alc was given.
5504 if test "${enable_alc+set}" = set; then
5505 enableval="$enable_alc"
5506 ALC=$enableval
5507 else
5508 ALC=no
5511 # Check whether --enable-alcc or --disable-alcc was given.
5512 if test "${enable_alcc+set}" = set; then
5513 enableval="$enable_alcc"
5514 ALCC=$enableval
5515 else
5516 ALCC=no
5519 # Check whether --enable-monolithic or --disable-monolithic was given.
5520 if test "${enable_monolithic+set}" = set; then
5521 enableval="$enable_monolithic"
5522 MONOLITHIC=$enableval
5523 else
5524 MONOLITHIC=yes
5527 # Check whether --enable-upnp or --disable-upnp was given.
5528 if test "${enable_upnp+set}" = set; then
5529 enableval="$enable_upnp"
5530 ENABLE_UPNP=$enableval
5531 else
5532 ENABLE_UPNP=yes
5535 # Check whether --enable-geoip or --disable-geoip was given.
5536 if test "${enable_geoip+set}" = set; then
5537 enableval="$enable_geoip"
5538 ENABLE_IP2COUNTRY=$enableval
5539 else
5540 ENABLE_IP2COUNTRY=no
5544 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5545 if test "${with_geoip_headers+set}" = set; then
5546 withval="$with_geoip_headers"
5547 GEOIP_INCLUDE="-I$withval"
5551 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5552 if test "${with_geoip_lib+set}" = set; then
5553 withval="$with_geoip_lib"
5554 GEOIP_LIB="-L$withval $GEOIP_LIB"
5558 # Check whether --with-geoip-static or --without-geoip-static was given.
5559 if test "${with_geoip_static+set}" = set; then
5560 withval="$with_geoip_static"
5561 if test "$withval" != "no"; then
5562 GEOIP_LIB="-Wl,-Bstatic $GEOIP_LIB -Wl,-Bdynamic"
5567 # Check whether --with-denoise-level or --without-denoise-level was given.
5568 if test "${with_denoise_level+set}" = set; then
5569 withval="$with_denoise_level"
5570 denoiselevel="$withval"
5571 else
5572 denoiselevel=yes
5576 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5577 if test "${with_gnu_malloc+set}" = set; then
5578 withval="$with_gnu_malloc"
5579 gnumalloc=$withval
5580 else
5581 gnumalloc=yes
5585 # Check whether --with-language or --without-language was given.
5586 if test "${with_language+set}" = set; then
5587 withval="$with_language"
5588 if test "$withval" = "all"; then
5589 LINGUAS='%UNSET%'
5590 else
5591 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
5596 # Checking for libs before all other stuff to break
5597 # configure as soon as possible in case of a missing one
5598 # to avoid losing too much time
5600 # Sets gettext version.
5603 # Check for zlib
5606 # Check whether --with-zlib or --without-zlib was given.
5607 if test "${with_zlib+set}" = set; then
5608 withval="$with_zlib"
5609 ac_zlib="$withval"
5610 else
5611 ac_zlib=yes
5615 case "$ac_zlib" in
5617 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5618 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5619 { (exit 1); exit 1; }; }
5621 yes | sys)
5624 ac_zlib_prefix="$ac_zlib"
5625 esac
5627 if test -n "$ac_zlib_prefix"; then
5628 ac_tmp_CPPFLAGS="$CPPFLAGS"
5629 ac_tmp_LDFLAGS="$LDFLAGS"
5630 CPPFLAGS="$CPPFLAGS -I$ac_zlib_prefix/include"
5631 LDFLAGS="-L$ac_zlib_prefix/lib"
5633 ac_tmp_LIBS="$LIBS"
5634 LIBS="-lz $LIBS"
5635 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5636 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5637 if test "$cross_compiling" = yes; then
5639 result=no
5640 z_version=''
5641 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5649 #include <zlib.h>
5650 #include <stdio.h>
5653 main ()
5656 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5657 zlibVersion();
5660 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5687 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5688 ac_cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5689 ac_cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5690 ac_cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5691 if test "$ac_cross_zver_max" -gt "1"; then
5692 result=yes
5693 elif test "$ac_cross_zver_max" -eq "1"; then
5694 if test "$ac_cross_zver_mid" -gt "1"; then
5695 result=yes
5696 elif "$ac_cross_zver_mid" -eq "1"; then
5697 if test "$ac_cross_zver_min" -ge "4"; then
5698 result=yes
5702 if test x$result = xyes; then
5703 z_version=" (version $ZLIB_VERSION)"
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $result$z_version" >&5
5714 echo "${ECHO_T}$result$z_version" >&6
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5725 #include <zlib.h>
5726 #include <stdio.h>
5729 main ()
5731 char *zver = zlibVersion();
5732 FILE *f=fopen("conftestval", "w");
5733 if (!f) return 1;
5734 fprintf(f, "%s",
5735 zver[0] > '1' ||
5736 (zver[0] == '1' &&
5737 (zver[2] > '1' ||
5738 (zver[2] == '1' &&
5739 zver[4] >= '4'))) ? "yes" : "no");
5740 fclose(f);
5741 f=fopen("conftestver", "w");
5742 if (f) {
5743 fprintf(f, "%s", ZLIB_VERSION);
5744 fclose(f);
5748 return 0;
5751 _ACEOF
5752 rm -f conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5764 if test -f conftestval; then
5765 result=`cat conftestval`
5766 else
5767 result=no
5769 if test x$result = xyes; then
5770 if test -f conftestver; then
5771 ZLIB_VERSION=`cat conftestver`
5772 z_version=" (version $ZLIB_VERSION)"
5773 else
5774 z_version=""
5777 echo "$as_me:$LINENO: result: $result$z_version" >&5
5778 echo "${ECHO_T}$result$z_version" >&6
5780 else
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ( exit $ac_status )
5787 result=no
5788 echo "$as_me:$LINENO: result: $result" >&5
5789 echo "${ECHO_T}$result" >&6
5792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5794 if test x$result = xno; then
5796 if test "${ac_tmp_CPPFLAGS+set}" = set; then
5797 CPPFLAGS="$ac_tmp_CPPFLAGS"
5799 if test "${ac_tmp_LDFLAGS+set}" = set; then
5800 LDFLAGS="$ac_tmp_LDFLAGS"
5802 LIBS="$ac_tmp_LIBS"
5803 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5804 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5805 { (exit 1); exit 1; }; }
5812 if test x$CAS = xyes -o x$WEB = xyes; then
5813 # Check for gd
5816 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
5817 if test "${with_gdlib_prefix+set}" = set; then
5818 withval="$with_gdlib_prefix"
5819 gdlib_config_prefix="$withval"
5820 else
5821 gdlib_config_prefix=""
5824 # Check whether --with-gdlib-config or --without-gdlib-config was given.
5825 if test "${with_gdlib_config+set}" = set; then
5826 withval="$with_gdlib_config"
5827 gdlib_config_name="$withval"
5828 else
5829 gdlib_config_name=""
5833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5835 if test "${ac_cv_header_stdc+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <stdlib.h>
5845 #include <stdarg.h>
5846 #include <string.h>
5847 #include <float.h>
5850 main ()
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_header_stdc=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_cv_header_stdc=no
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 if test $ac_cv_header_stdc = yes; then
5889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <string.h>
5898 _ACEOF
5899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5900 $EGREP "memchr" >/dev/null 2>&1; then
5902 else
5903 ac_cv_header_stdc=no
5905 rm -f conftest*
5909 if test $ac_cv_header_stdc = yes; then
5910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <stdlib.h>
5919 _ACEOF
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 $EGREP "free" >/dev/null 2>&1; then
5923 else
5924 ac_cv_header_stdc=no
5926 rm -f conftest*
5930 if test $ac_cv_header_stdc = yes; then
5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5932 if test "$cross_compiling" = yes; then
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <ctype.h>
5942 #if ((' ' & 0x0FF) == 0x020)
5943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 #else
5946 # define ISLOWER(c) \
5947 (('a' <= (c) && (c) <= 'i') \
5948 || ('j' <= (c) && (c) <= 'r') \
5949 || ('s' <= (c) && (c) <= 'z'))
5950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5951 #endif
5953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5955 main ()
5957 int i;
5958 for (i = 0; i < 256; i++)
5959 if (XOR (islower (i), ISLOWER (i))
5960 || toupper (i) != TOUPPER (i))
5961 exit(2);
5962 exit (0);
5964 _ACEOF
5965 rm -f conftest$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5977 else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ( exit $ac_status )
5983 ac_cv_header_stdc=no
5985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5991 if test $ac_cv_header_stdc = yes; then
5993 cat >>confdefs.h <<\_ACEOF
5994 #define STDC_HEADERS 1
5995 _ACEOF
5999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6010 inttypes.h stdint.h unistd.h
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6026 #include <$ac_header>
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 eval "$as_ac_Header=yes"
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 eval "$as_ac_Header=no"
6057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6068 done
6072 if test x${GDLIB_CONFIG_NAME+set} != xset ; then
6073 GDLIB_CONFIG_NAME=gdlib-config
6075 if test "x$gdlib_config_name" != x ; then
6076 GDLIB_CONFIG_NAME="$gdlib_config_name"
6079 if test x$gdlib_config_prefix != x ; then
6080 GDLIB_LOOKUP_PATH="$gdlib_config_prefix/bin"
6083 if test -x "$GDLIB_CONFIG_NAME" ; then
6084 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6085 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6086 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6087 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6088 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6089 else
6090 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6091 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 case $GDLIB_CONFIG_PATH in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 as_dummy=""$GDLIB_LOOKUP_PATH:$PATH""
6104 for as_dir in $as_dummy
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6117 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6119 esac
6121 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6123 if test -n "$GDLIB_CONFIG_PATH"; then
6124 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6125 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6126 else
6127 echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6133 if test "$GDLIB_CONFIG_PATH" != "no" ; then
6134 GDLIB_VERSION=""
6136 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6137 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6139 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6141 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6142 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6143 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6144 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6146 gdlib_ver_ok=""
6147 if test $gdlib_config_major_version -gt 2; then
6148 gdlib_ver_ok=yes
6149 else
6150 if test $gdlib_config_major_version -eq 2; then
6151 if test $gdlib_config_minor_version -gt 0; then
6152 gdlib_ver_ok=yes
6153 else
6154 if test $gdlib_config_minor_version -eq 0; then
6155 if test $gdlib_config_micro_version -ge 0; then
6156 gdlib_ver_ok=yes
6163 if test x$gdlib_ver_ok = x ; then
6164 if test x$GDLIB_VERSION = x; then
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6169 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6170 GDLIB_VERSION=
6173 { echo "$as_me:$LINENO:
6174 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6175 Please check that gdlib-config is in your default path, check out
6176 LD_LIBRARY_PATH or equivalent variable.
6177 Or this might also be that your gdlib-config has other name.
6178 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6179 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6180 If you use compiled packages check if you have devel pack installed.
6181 To download the latest version check http://www.boutell.com/gd
6182 for sources.
6183 " >&5
6184 echo "$as_me:
6185 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6186 Please check that gdlib-config is in your default path, check out
6187 LD_LIBRARY_PATH or equivalent variable.
6188 Or this might also be that your gdlib-config has other name.
6189 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6190 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6191 If you use compiled packages check if you have devel pack installed.
6192 To download the latest version check http://www.boutell.com/gd
6193 for sources.
6194 " >&6;}
6195 CAS_DEFS=""
6197 else
6198 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6199 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6200 if test "${ac_cv_header_gd_h+set}" = set; then
6201 echo "$as_me:$LINENO: checking for gd.h" >&5
6202 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6203 if test "${ac_cv_header_gd_h+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6207 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6208 else
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking gd.h usability" >&5
6211 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 #include <gd.h>
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_header_compiler=no
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252 echo "${ECHO_T}$ac_header_compiler" >&6
6254 # Is the header present?
6255 echo "$as_me:$LINENO: checking gd.h presence" >&5
6256 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <gd.h>
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 else
6277 ac_cpp_err=
6279 else
6280 ac_cpp_err=yes
6282 if test -z "$ac_cpp_err"; then
6283 ac_header_preproc=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6290 rm -f conftest.err conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292 echo "${ECHO_T}$ac_header_preproc" >&6
6294 # So? What about this header?
6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 yes:no: )
6297 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6298 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6300 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc=yes
6303 no:yes:* )
6304 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6309 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6311 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6313 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6315 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6317 cat <<\_ASBOX
6318 ## ------------------------------ ##
6319 ## Report this to admin@amule.org ##
6320 ## ------------------------------ ##
6321 _ASBOX
6323 sed "s/^/$as_me: WARNING: /" >&2
6325 esac
6326 echo "$as_me:$LINENO: checking for gd.h" >&5
6327 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6328 if test "${ac_cv_header_gd_h+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 ac_cv_header_gd_h=$ac_header_preproc
6333 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6334 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6339 if test $ac_cv_header_gd_h = yes; then
6340 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6341 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6342 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6344 CAS_DEFS="-D__GD__"
6345 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6347 else
6348 GDLIB_VERSION=
6350 { echo "$as_me:$LINENO:
6351 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6352 Please check that gdlib-config is in your default path, check out
6353 LD_LIBRARY_PATH or equivalent variable.
6354 Or this might also be that your gdlib-config has other name.
6355 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6356 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd
6359 for sources.
6360 " >&5
6361 echo "$as_me:
6362 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6363 Please check that gdlib-config is in your default path, check out
6364 LD_LIBRARY_PATH or equivalent variable.
6365 Or this might also be that your gdlib-config has other name.
6366 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6367 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6368 If you use compiled packages check if you have devel pack installed.
6369 To download the latest version check http://www.boutell.com/gd
6370 for sources.
6371 " >&6;}
6372 CAS_DEFS=""
6376 else
6378 { echo "$as_me:$LINENO:
6379 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6380 Please check that gdlib-config is in your default path, check out
6381 LD_LIBRARY_PATH or equivalent variable.
6382 Or this might also be that your gdlib-config has other name.
6383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6384 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6385 If you use compiled packages check if you have devel pack installed.
6386 To download the latest version check http://www.boutell.com/gd
6387 for sources.
6388 " >&5
6389 echo "$as_me:
6390 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6391 Please check that gdlib-config is in your default path, check out
6392 LD_LIBRARY_PATH or equivalent variable.
6393 Or this might also be that your gdlib-config has other name.
6394 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6395 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6396 If you use compiled packages check if you have devel pack installed.
6397 To download the latest version check http://www.boutell.com/gd
6398 for sources.
6399 " >&6;}
6400 CAS_DEFS=""
6407 else
6408 CAS_DEFS=""
6409 GDLIB_LIBS=""
6410 GDLIB_CFLAGS=""
6411 GDLIB_LDFLAGS=""
6412 GDLIB_VERSION="not_needed"
6417 if test x$WEB = xyes; then
6419 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6420 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6421 regex_found=no
6422 for lib in '' -lgnurx -lregex; do
6423 saved_LIBS="$LIBS"
6424 LIBS="$lib $LIBS"
6425 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6433 #include <regex.h>
6436 main ()
6439 regex_t preg;
6440 regcomp(&preg, "", REG_EXTENDED);
6441 regmatch_t *pmatch;
6442 regexec(&preg, "", 0, pmatch, 0);
6443 regfree(&preg);
6446 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6473 LIBS="$saved_LIBS"
6474 regex_found=yes
6475 break;
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6482 LIBS="$saved_LIBS"
6485 rm -f conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 done
6488 echo "$as_me:$LINENO: result: $regex_found" >&5
6489 echo "${ECHO_T}$regex_found" >&6
6490 if test $regex_found = yes; then
6492 REGEX_LIB=$lib
6495 else
6496 WEB=disabled
6503 if test x$WEB = xyes; then
6504 # Check for libpng
6507 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6508 if test "${with_libpng_prefix+set}" = set; then
6509 withval="$with_libpng_prefix"
6510 libpng_config_prefix="$withval"
6511 else
6512 libpng_config_prefix=""
6515 # Check whether --with-libpng-config or --without-libpng-config was given.
6516 if test "${with_libpng_config+set}" = set; then
6517 withval="$with_libpng_config"
6518 libpng_config_name="$withval"
6519 else
6520 libpng_config_name=""
6524 if test x${LIBPNG_CONFIG_NAME+set} != xset ; then
6525 LIBPNG_CONFIG_NAME=libpng-config
6527 if test "x$libpng_config_name" != x ; then
6528 LIBPNG_CONFIG_NAME="$libpng_config_name"
6531 if test x$libpng_config_prefix != x ; then
6532 LIBPNG_LOOKUP_PATH="$libpng_config_prefix/bin"
6535 if test -x "$LIBPNG_CONFIG_NAME" ; then
6536 echo "$as_me:$LINENO: checking for libpng-config" >&5
6537 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6538 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6539 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6540 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6541 else
6542 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6543 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6544 echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 case $LIBPNG_CONFIG_PATH in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 as_dummy=""$LIBPNG_LOOKUP_PATH:$PATH""
6556 for as_dir in $as_dummy
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6569 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6571 esac
6573 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6575 if test -n "$LIBPNG_CONFIG_PATH"; then
6576 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6577 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6578 else
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6585 if test "$LIBPNG_CONFIG_PATH" != "no" ; then
6586 LIBPNG_VERSION=""
6588 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6589 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6591 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6593 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6594 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6595 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6596 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6598 libpng_ver_ok=""
6599 if test $libpng_config_major_version -gt 1; then
6600 libpng_ver_ok=yes
6601 else
6602 if test $libpng_config_major_version -eq 1; then
6603 if test $libpng_config_minor_version -gt 2; then
6604 libpng_ver_ok=yes
6605 else
6606 if test $libpng_config_minor_version -eq 2; then
6607 if test $libpng_config_micro_version -ge 0; then
6608 libpng_ver_ok=yes
6615 if test x$libpng_ver_ok = x ; then
6616 if test x$LIBPNG_VERSION = x; then
6617 echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6
6619 else
6620 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6621 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6623 LIBPNG_CFLAGS=""
6624 LIBPNG_CXXFLAGS=""
6625 LIBPNG_LDFLAGS=""
6626 LIBPNG_LIBS=""
6627 LIBPNG_VERSION=""
6629 { echo "$as_me:$LINENO:
6630 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6631 " >&5
6632 echo "$as_me:
6633 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6634 " >&6;}
6635 AMULEWEB_DEFS=""
6637 else
6638 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6639 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6640 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6641 LIBPNG_CXXFLAGS=$LIBPNG_CFLAGS
6642 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6643 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6644 AMULEWEB_DEFS="-DWITH_LIBPNG"
6647 else
6648 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6649 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6650 saved_LIBS="$LIBS"
6651 LIBS="$LIBS -lpng -lz -lm"
6652 LIBPNG_CFLAGS=""
6653 LIBPNG_CXXFLAGS=""
6654 LIBPNG_LDFLAGS=""
6655 LIBPNG_LIBS=""
6656 if test "$cross_compiling" = yes; then
6658 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6659 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6660 if test "${ac_cv_header_png_h+set}" = set; then
6661 echo "$as_me:$LINENO: checking for png.h" >&5
6662 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_png_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6668 else
6669 # Is the header compilable?
6670 echo "$as_me:$LINENO: checking png.h usability" >&5
6671 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6679 #include <png.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_header_compiler=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_header_compiler=no
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking png.h presence" >&5
6716 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <png.h>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev/null; then
6733 if test -s conftest.err; then
6734 ac_cpp_err=$ac_c_preproc_warn_flag
6735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736 else
6737 ac_cpp_err=
6739 else
6740 ac_cpp_err=yes
6742 if test -z "$ac_cpp_err"; then
6743 ac_header_preproc=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_preproc=no
6750 rm -f conftest.err conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6754 # So? What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756 yes:no: )
6757 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6761 ac_header_preproc=yes
6763 no:yes:* )
6764 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6768 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6770 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6772 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6777 cat <<\_ASBOX
6778 ## ------------------------------ ##
6779 ## Report this to admin@amule.org ##
6780 ## ------------------------------ ##
6781 _ASBOX
6783 sed "s/^/$as_me: WARNING: /" >&2
6785 esac
6786 echo "$as_me:$LINENO: checking for png.h" >&5
6787 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_png_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 ac_cv_header_png_h=$ac_header_preproc
6793 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6797 if test $ac_cv_header_png_h = yes; then
6798 result=yes
6799 else
6800 result=no
6804 if test x$result = xyes; then
6805 LIBPNG_VERSION="detected"
6806 LIBPNG_LIBS="-lpng -lz -lm"
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6818 #include <png.h>
6819 #include <stdio.h>
6821 /* Check linking to png library */
6822 void dummy() {
6823 png_check_sig(NULL, 0);
6827 main ()
6829 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6830 FILE *f=fopen("conftestval", "w");
6831 if (!f) exit(1);
6832 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6833 fclose(f);
6834 f=fopen("conftestver", "w");
6835 if (!f) exit(0);
6836 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6837 fclose(f);
6838 exit(0);
6841 return 0;
6844 _ACEOF
6845 rm -f conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6857 if test -f conftestval; then
6858 result=`cat conftestval`
6859 else
6860 result=no
6863 if test x$result = xyes; then
6864 if test -f conftestver; then
6865 LIBPNG_VERSION=`cat conftestver`
6866 lib_version=" (version $LIBPNG_VERSION)"
6867 else
6868 lib_version=""
6871 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6872 echo "${ECHO_T}$result$lib_version" >&6
6873 LIBPNG_LIBS="-lpng -lz -lm"
6875 else
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ( exit $ac_status )
6882 result=no
6883 echo "$as_me:$LINENO: result: $result" >&5
6884 echo "${ECHO_T}$result" >&6
6887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6889 if test x$result = xyes; then
6890 AMULEWEB_DEFS="-DWITH_LIBPNG"
6891 else
6893 { echo "$as_me:$LINENO:
6894 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6895 " >&5
6896 echo "$as_me:
6897 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6898 " >&6;}
6899 AMULEWEB_DEFS=""
6903 LIBS="$saved_LIBS"
6909 else
6910 AMULEWEB_DEFS=""
6911 LIBPNG_LIBS=""
6912 LIBPNG_CFLAGS=""
6913 LIBPNG_CXXFLAGS=""
6914 LIBPNG_LDFLAGS=""
6915 LIBPNG_VERSION="not_needed"
6921 # Check for perl File::Copy
6922 echo "$as_me:$LINENO: checking for File::Copy" >&5
6923 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6924 if perl -e "require File::Copy" 2>/dev/null; then
6925 echo "$as_me:$LINENO: result: ok" >&5
6926 echo "${ECHO_T}ok" >&6
6927 else
6928 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6929 echo "$as_me: error: File::Copy perl module is required" >&2;}
6930 { (exit 1); exit 1; }; }
6934 # Check if we need the GUI
6935 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6936 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6937 if test x$MONOLITHIC = xyes; then
6938 need_gui=yes
6941 if test x$WXCAS = xyes; then
6942 need_gui=yes
6945 if test x$ALC = xyes; then
6946 need_gui=yes
6949 if test x$AMULE_GUI = xyes; then
6950 need_gui=yes
6953 if test ${need_gui:+set} != xset; then
6954 need_gui=no
6957 echo "$as_me:$LINENO: result: $need_gui" >&5
6958 echo "${ECHO_T}$need_gui" >&6
6961 # Check for GeoIP (required for IP2Country capability)
6962 if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then
6963 GEOIP_LIB="-lGeoIP"
6964 CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE"
6965 LIBS="$LIBS $GEOIP_LIB"
6966 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6967 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6968 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6969 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6973 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6974 else
6975 # Is the header compilable?
6976 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6977 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 #include <GeoIP.h>
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest.$ac_objext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_header_compiler=yes
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_header_compiler=no
7016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7018 echo "${ECHO_T}$ac_header_compiler" >&6
7020 # Is the header present?
7021 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7022 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <GeoIP.h>
7030 _ACEOF
7031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null; then
7039 if test -s conftest.err; then
7040 ac_cpp_err=$ac_c_preproc_warn_flag
7041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7042 else
7043 ac_cpp_err=
7045 else
7046 ac_cpp_err=yes
7048 if test -z "$ac_cpp_err"; then
7049 ac_header_preproc=yes
7050 else
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_header_preproc=no
7056 rm -f conftest.err conftest.$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 echo "${ECHO_T}$ac_header_preproc" >&6
7060 # So? What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7062 yes:no: )
7063 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7064 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7066 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7067 ac_header_preproc=yes
7069 no:yes:* )
7070 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7071 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7073 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7074 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7075 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7076 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7077 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7079 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7081 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7083 cat <<\_ASBOX
7084 ## ------------------------------ ##
7085 ## Report this to admin@amule.org ##
7086 ## ------------------------------ ##
7087 _ASBOX
7089 sed "s/^/$as_me: WARNING: /" >&2
7091 esac
7092 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7093 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7094 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 ac_cv_header_GeoIP_h=$ac_header_preproc
7099 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7100 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7103 if test $ac_cv_header_GeoIP_h = yes; then
7105 else
7106 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7107 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7108 { (exit 1); exit 1; }; }
7112 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7113 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7114 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 ac_check_lib_save_LIBS=$LIBS
7118 LIBS="-lGeoIP $LIBS"
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 #ifdef __cplusplus
7128 extern "C"
7129 #endif
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7132 char GeoIP_open ();
7134 main ()
7136 GeoIP_open ();
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_lib_GeoIP_GeoIP_open=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_lib_GeoIP_GeoIP_open=no
7170 rm -f conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 LIBS=$ac_check_lib_save_LIBS
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7175 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7176 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7178 cat >>confdefs.h <<\_ACEOF
7179 #define SUPPORT_GEOIP 1
7180 _ACEOF
7182 else
7183 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7184 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7185 { (exit 1); exit 1; }; }
7193 # Check if the compiler is broken, wrt. exceptions.
7196 echo "$as_me:$LINENO: checking for exception-handling" >&5
7197 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
7199 ac_ext=cc
7200 ac_cpp='$CXXCPP $CPPFLAGS'
7201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7205 if test "$cross_compiling" = yes; then
7207 echo "$as_me:$LINENO: result: undeterminable" >&5
7208 echo "${ECHO_T}undeterminable" >&6
7209 { echo "$as_me:$LINENO: WARNING:
7210 Cross-compilation detected, so exception handling cannot be tested.
7211 Note that broken exception handling in your compiler may lead to
7212 unexpected crashes." >&5
7213 echo "$as_me: WARNING:
7214 Cross-compilation detected, so exception handling cannot be tested.
7215 Note that broken exception handling in your compiler may lead to
7216 unexpected crashes." >&2;}
7218 else
7219 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7228 main ()
7231 try {
7232 throw 1;
7233 } catch (int) {
7234 return 0;
7236 return 1;
7239 return 0;
7242 _ACEOF
7243 rm -f conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>&5
7246 ac_status=$?
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7258 else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 ( exit $ac_status )
7265 echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
7268 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
7269 { (exit 1); exit 1; }; }
7272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7274 ac_ext=c
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 # Check for wx
7285 # Check whether --with-wxdir or --without-wxdir was given.
7286 if test "${with_wxdir+set}" = set; then
7287 withval="$with_wxdir"
7288 wx_config_name="$withval/wx-config"
7289 wx_config_args="--inplace"
7292 # Check whether --with-wx-config or --without-wx-config was given.
7293 if test "${with_wx_config+set}" = set; then
7294 withval="$with_wx_config"
7295 wx_config_name="$withval"
7298 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7299 if test "${with_wx_prefix+set}" = set; then
7300 withval="$with_wx_prefix"
7301 wx_config_prefix="$withval"
7302 else
7303 wx_config_prefix=""
7306 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7307 if test "${with_wx_exec_prefix+set}" = set; then
7308 withval="$with_wx_exec_prefix"
7309 wx_config_exec_prefix="$withval"
7310 else
7311 wx_config_exec_prefix=""
7325 # Check whether --with-toolkit or --without-toolkit was given.
7326 if test "${with_toolkit+set}" = set; then
7327 withval="$with_toolkit"
7329 else
7330 withval="auto"
7333 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7334 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7335 if test "$withval" = "auto" ; then
7336 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7337 echo "${ECHO_T}will be automatically detected" >&6
7338 TOOLKIT="auto"
7339 else
7340 TOOLKIT="$withval"
7342 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7343 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7344 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7345 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7346 "$TOOLKIT" != "base" ; then
7347 { { echo "$as_me:$LINENO: error:
7348 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7349 " >&5
7350 echo "$as_me: error:
7351 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7352 " >&2;}
7353 { (exit 1); exit 1; }; }
7356 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7357 echo "${ECHO_T}$TOOLKIT" >&6
7364 # Check whether --with-wxshared or --without-wxshared was given.
7365 if test "${with_wxshared+set}" = set; then
7366 withval="$with_wxshared"
7368 else
7369 withval="auto"
7372 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7373 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7374 if test "$withval" = "yes" ; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7377 WX_SHARED=1
7379 elif test "1" = "1" -a "$withval" = "no" ; then
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7382 WX_SHARED=0
7383 elif test "$withval" = "auto" ; then
7384 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7385 echo "${ECHO_T}will be automatically detected" >&6
7386 WX_SHARED="auto"
7387 else
7388 { { echo "$as_me:$LINENO: error:
7389 Unrecognized option value (allowed values: yes, auto)
7390 " >&5
7391 echo "$as_me: error:
7392 Unrecognized option value (allowed values: yes, auto)
7393 " >&2;}
7394 { (exit 1); exit 1; }; }
7401 # Check whether --with-wxdebug or --without-wxdebug was given.
7402 if test "${with_wxdebug+set}" = set; then
7403 withval="$with_wxdebug"
7405 else
7406 withval="auto"
7409 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7410 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7411 if test "$withval" = "yes" ; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413 echo "${ECHO_T}yes" >&6
7414 WX_DEBUG=1
7416 elif test "1" = "1" -a "$withval" = "no" ; then
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419 WX_DEBUG=0
7420 elif test "$withval" = "auto" ; then
7421 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7422 echo "${ECHO_T}will be automatically detected" >&6
7423 WX_DEBUG="auto"
7424 else
7425 { { echo "$as_me:$LINENO: error:
7426 Unrecognized option value (allowed values: yes, auto)
7427 " >&5
7428 echo "$as_me: error:
7429 Unrecognized option value (allowed values: yes, auto)
7430 " >&2;}
7431 { (exit 1); exit 1; }; }
7438 # Check whether --with-wxversion or --without-wxversion was given.
7439 if test "${with_wxversion+set}" = set; then
7440 withval="$with_wxversion"
7442 else
7443 withval="auto"
7446 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7447 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7448 if test "$withval" = "auto" ; then
7449 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7450 echo "${ECHO_T}will be automatically detected" >&6
7451 WX_VERSION="auto"
7452 else
7454 wx_requested_major_version=`echo $withval | \
7455 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7456 wx_requested_minor_version=`echo $withval | \
7457 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7459 if test "${#wx_requested_major_version}" != "1" -o \
7460 "${#wx_requested_minor_version}" != "1" ; then
7461 { { echo "$as_me:$LINENO: error:
7462 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7463 " >&5
7464 echo "$as_me: error:
7465 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7466 " >&2;}
7467 { (exit 1); exit 1; }; }
7470 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7471 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7472 echo "${ECHO_T}$WX_VERSION" >&6
7476 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7477 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7478 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7479 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7480 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7481 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7484 # Force using a static wxWidgets library if the executable is to be linked statically.
7485 if test "$USE_DEBUG_STATIC" = "yes"; then
7486 WX_SHARED=0
7489 # Force using a unicode build of the library
7490 WX_UNICODE=1
7491 DEBUG=$WX_DEBUG
7493 if test "$WX_SHARED" = "1" ; then
7494 WXCONFIG_FLAGS="--static=no "
7495 elif test "$WX_SHARED" = "0" ; then
7496 WXCONFIG_FLAGS="--static=yes "
7499 if test "$WX_DEBUG" = "1" ; then
7500 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7501 elif test "$WX_DEBUG" = "0" ; then
7502 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7505 if test "$WX_UNICODE" = "1" ; then
7506 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7507 elif test "$WX_UNICODE" = "0" ; then
7508 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7511 if test "$TOOLKIT" != "auto" ; then
7512 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7515 if test "$WX_VERSION" != "auto" ; then
7516 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7519 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7521 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7522 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7526 if test x${WX_CONFIG_NAME+set} != xset ; then
7527 WX_CONFIG_NAME=wx-config
7530 if test "x$wx_config_name" != x ; then
7531 WX_CONFIG_NAME="$wx_config_name"
7534 if test x$wx_config_exec_prefix != x ; then
7535 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7536 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7538 if test x$wx_config_prefix != x ; then
7539 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7540 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7542 if test "$cross_compiling" = "yes"; then
7543 wx_config_args="$wx_config_args --host=$host_alias"
7546 if test -x "$WX_CONFIG_NAME" ; then
7547 echo "$as_me:$LINENO: checking for wx-config" >&5
7548 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7549 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7550 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7551 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7552 else
7553 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7554 set dummy $WX_CONFIG_NAME; ac_word=$2
7555 echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 case $WX_CONFIG_PATH in
7561 [\\/]* | ?:[\\/]*)
7562 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7567 for as_dir in $as_dummy
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7577 done
7578 done
7580 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7582 esac
7584 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7586 if test -n "$WX_CONFIG_PATH"; then
7587 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7588 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7589 else
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7596 if test "$WX_CONFIG_PATH" != "no" ; then
7597 WX_VERSION_FULL=""
7599 min_wx_version=2.8.0
7600 if test -z "$WXCONFIG_FLAGS" ; then
7601 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7602 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7603 else
7604 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7605 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7608 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7610 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7611 wx_config_major_version=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7613 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7614 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7615 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7618 wx_requested_major_version=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7620 wx_requested_minor_version=`echo $min_wx_version | \
7621 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7622 wx_requested_micro_version=`echo $min_wx_version | \
7623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7626 wx_ver_ok=""
7627 if test "x$WX_VERSION_FULL" != x ; then
7628 if test $wx_config_major_version -gt $wx_requested_major_version; then
7629 wx_ver_ok=yes
7630 else
7631 if test $wx_config_major_version -eq $wx_requested_major_version; then
7632 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7633 wx_ver_ok=yes
7634 else
7635 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7636 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7637 wx_ver_ok=yes
7646 if test -n "$wx_ver_ok"; then
7648 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7649 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7650 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7652 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7653 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7654 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7655 if test "x$WX_LIBS_STATIC" = "x"; then
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658 else
7659 echo "$as_me:$LINENO: result: yes" >&5
7660 echo "${ECHO_T}yes" >&6
7663 wx_has_cppflags=""
7664 if test $wx_config_major_version -gt 2; then
7665 wx_has_cppflags=yes
7666 else
7667 if test $wx_config_major_version -eq 2; then
7668 if test $wx_config_minor_version -gt 2; then
7669 wx_has_cppflags=yes
7670 else
7671 if test $wx_config_minor_version -eq 2; then
7672 if test $wx_config_micro_version -ge 6; then
7673 wx_has_cppflags=yes
7680 wx_has_rescomp=""
7681 if test $wx_config_major_version -gt 2; then
7682 wx_has_rescomp=yes
7683 else
7684 if test $wx_config_major_version -eq 2; then
7685 if test $wx_config_minor_version -ge 7; then
7686 wx_has_rescomp=yes
7690 if test "x$wx_has_rescomp" = x ; then
7691 WX_RESCOMP=
7692 else
7693 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7696 if test "x$wx_has_cppflags" = x ; then
7697 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7698 WX_CPPFLAGS=$WX_CFLAGS
7699 WX_CXXFLAGS=$WX_CFLAGS
7701 WX_CFLAGS_ONLY=$WX_CFLAGS
7702 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7703 else
7704 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7705 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7706 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7708 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7709 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7712 wxWin=1
7714 else
7716 if test "x$WX_VERSION_FULL" = x; then
7717 echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7719 else
7720 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7721 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7724 WX_CFLAGS=""
7725 WX_CPPFLAGS=""
7726 WX_CXXFLAGS=""
7727 WX_LIBS=""
7728 WX_LIBS_STATIC=""
7729 WX_RESCOMP=""
7731 if test ! -z "$WXCONFIG_FLAGS"; then
7733 wx_error_message="
7734 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7735 build with the following settings:
7736 $WXCONFIG_FLAGS
7737 but such build is not available.
7739 To see the wxWidgets builds available on this system, please use
7740 'wx-config --list' command. To use the default build, returned by
7741 'wx-config --selected-config', use the options with their 'auto'
7742 default values."
7746 wx_error_message="
7747 The requested wxWidgets build couldn't be found.
7748 $wx_error_message
7750 If you still get this error, then check that 'wx-config' is
7751 in path, the directory where wxWidgets libraries are installed
7752 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7753 or equivalent variable and wxWidgets version is 2.8.0 or above."
7755 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7756 echo "$as_me: error: $wx_error_message" >&2;}
7757 { (exit 1); exit 1; }; }
7760 else
7762 WX_CFLAGS=""
7763 WX_CPPFLAGS=""
7764 WX_CXXFLAGS=""
7765 WX_LIBS=""
7766 WX_LIBS_STATIC=""
7767 WX_RESCOMP=""
7783 WX_VERSION_MAJOR="$wx_config_major_version"
7784 WX_VERSION_MINOR="$wx_config_minor_version"
7788 if test "$wxWin" != 1; then
7789 { { echo "$as_me:$LINENO: error:
7790 wxWidgets must be installed on your system but wx-config
7791 script couldn't be found. Please check that wx-config is
7792 in path or specified by --with-wx-config=path flag, the
7793 directory where wxWidgets libraries are installed (returned
7794 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7795 equivalent variable and wxWidgets version is 2.8.0 or above.
7796 " >&5
7797 echo "$as_me: error:
7798 wxWidgets must be installed on your system but wx-config
7799 script couldn't be found. Please check that wx-config is
7800 in path or specified by --with-wx-config=path flag, the
7801 directory where wxWidgets libraries are installed (returned
7802 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7803 equivalent variable and wxWidgets version is 2.8.0 or above.
7804 " >&2;}
7805 { (exit 1); exit 1; }; }
7808 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7809 if test $WX_VERSION -lt 26 ; then
7811 { { echo "$as_me:$LINENO: error:
7812 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7813 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7814 version of wxWidgets.
7815 " >&5
7816 echo "$as_me: error:
7817 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7818 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7819 version of wxWidgets.
7820 " >&2;}
7821 { (exit 1); exit 1; }; }
7824 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7826 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7827 echo "[dbg] Using wx-config --selected-config"
7828 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7832 if test $WX_SHARED = "1"; then
7833 STATIC=0
7834 elif test $WX_SHARED = "0"; then
7835 STATIC=1
7836 elif test $WX_SHARED = "auto"; then
7837 STATIC="auto"
7841 if test "$UNICODE" = "auto" ; then
7843 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7844 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7846 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7848 if test "$WX_UNICODE" != "0"; then
7849 WX_UNICODE=1
7850 echo "$as_me:$LINENO: result: yes" >&5
7851 echo "${ECHO_T}yes" >&6
7853 else
7854 WX_UNICODE=0
7855 echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7859 else
7861 WX_UNICODE=$UNICODE
7865 if test "$DEBUG" = "auto" ; then
7867 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7868 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7870 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7872 if test "$WX_DEBUG" != "0"; then
7873 WX_DEBUG=1
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7877 else
7878 WX_DEBUG=0
7879 echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7883 else
7885 WX_DEBUG=$DEBUG
7889 if test "$STATIC" = "auto" ; then
7891 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7892 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7894 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7896 if test "$WX_STATIC" != "0"; then
7897 WX_STATIC=1
7898 echo "$as_me:$LINENO: result: yes" >&5
7899 echo "${ECHO_T}yes" >&6
7901 else
7902 WX_STATIC=0
7903 echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7907 else
7909 WX_STATIC=$STATIC
7913 if test "$WX_STATIC" != "0"; then
7914 WX_SHARED=0
7915 else
7916 WX_SHARED=1
7923 if test "$TOOLKIT" = "auto" ; then
7925 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7926 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7928 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7929 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7930 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7931 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7932 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7933 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7934 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7935 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7936 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7938 WX_PORT="unknown"
7939 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7940 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7941 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7942 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7943 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7944 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7945 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7946 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7947 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7950 if test "$WX_PORT" = "unknown" ; then
7951 { { echo "$as_me:$LINENO: error:
7952 Cannot detect the currently installed wxWidgets port !
7953 Please check your 'wx-config --cxxflags'...
7954 " >&5
7955 echo "$as_me: error:
7956 Cannot detect the currently installed wxWidgets port !
7957 Please check your 'wx-config --cxxflags'...
7958 " >&2;}
7959 { (exit 1); exit 1; }; }
7962 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7963 echo "${ECHO_T}$WX_PORT" >&6
7964 else
7966 if test -z "$TOOLKIT" ; then
7967 WX_PORT=$TOOLKIT
7968 else
7969 WX_PORT=$PORT
7975 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7976 echo "[dbg] Values of all WX_* options after final detection:"
7977 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7978 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7979 echo "[dbg] WX_SHARED: $WX_SHARED"
7980 echo "[dbg] WX_VERSION: $WX_VERSION"
7981 echo "[dbg] WX_PORT: $WX_PORT"
7984 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7985 { { echo "$as_me:$LINENO: error:
7986 Cannot build shared library against a static build of wxWidgets !
7987 This error happens because the wxWidgets build which was selected
7988 has been detected as static while you asked to build $PACKAGE_NAME
7989 as shared library and this is not possible.
7990 Use the '--disable-shared' option to build $PACKAGE_NAME
7991 as static library or '--with-wxshared' to use wxWidgets as shared library.
7992 " >&5
7993 echo "$as_me: error:
7994 Cannot build shared library against a static build of wxWidgets !
7995 This error happens because the wxWidgets build which was selected
7996 has been detected as static while you asked to build $PACKAGE_NAME
7997 as shared library and this is not possible.
7998 Use the '--disable-shared' option to build $PACKAGE_NAME
7999 as static library or '--with-wxshared' to use wxWidgets as shared library.
8000 " >&2;}
8001 { (exit 1); exit 1; }; }
8004 if test "$DEBUG" = "auto"; then
8005 DEBUG=$WX_DEBUG
8007 if test "$DEBUG" = "1"; then
8008 BUILD="debug"
8009 elif test "$DEBUG" = ""; then
8010 BUILD="release"
8013 if test "$UNICODE" = "auto"; then
8014 UNICODE=$WX_UNICODE
8016 if test "$SHARED" = "auto"; then
8017 SHARED=$WX_SHARED
8019 if test "$TOOLKIT" = "auto"; then
8020 TOOLKIT=$WX_PORT
8026 ac_ext=cc
8027 ac_cpp='$CXXCPP $CPPFLAGS'
8028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8033 __CPPFLAGS=${CPPFLAGS}
8034 CPPFLAGS=${WX_CPPFLAGS}
8036 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8037 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8040 #include <wx/wx.h>
8042 int main() {
8043 #if !HAVE_LARGEFILE_SUPPORT && !defined(__WXMSW__)
8044 #error No LargeFile support!;
8045 #endif
8046 exit(0);
8049 _ACEOF
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null; then
8058 if test -s conftest.err; then
8059 ac_cpp_err=$ac_cxx_preproc_warn_flag
8060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8061 else
8062 ac_cpp_err=
8064 else
8065 ac_cpp_err=yes
8067 if test -z "$ac_cpp_err"; then
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 NO_LF="true"
8075 rm -f conftest.err conftest.$ac_ext
8077 if test "x${NO_LF}" != "x";
8078 then
8079 echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8081 { { echo "$as_me:$LINENO: error:
8082 Support for large files in wxWidgets is required by aMule.
8083 To continue you must recompile wxWidgets with support for
8084 large files enabled.
8085 " >&5
8086 echo "$as_me: error:
8087 Support for large files in wxWidgets is required by aMule.
8088 To continue you must recompile wxWidgets with support for
8089 large files enabled.
8090 " >&2;}
8091 { (exit 1); exit 1; }; }
8092 else
8093 echo "$as_me:$LINENO: result: yes" >&5
8094 echo "${ECHO_T}yes" >&6
8097 CPPFLAGS=${__CPPFLAGS}
8099 ac_ext=c
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107 if test x$SYS = xwin32; then
8108 if test -n "$ac_tool_prefix"; then
8109 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8110 set dummy ${ac_tool_prefix}windres; ac_word=$2
8111 echo "$as_me:$LINENO: checking for $ac_word" >&5
8112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113 if test "${ac_cv_prog_RC+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 if test -n "$RC"; then
8117 ac_cv_prog_RC="$RC" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_RC="${ac_tool_prefix}windres"
8127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8135 RC=$ac_cv_prog_RC
8136 if test -n "$RC"; then
8137 echo "$as_me:$LINENO: result: $RC" >&5
8138 echo "${ECHO_T}$RC" >&6
8139 else
8140 echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8145 if test -z "$ac_cv_prog_RC"; then
8146 ac_ct_RC=$RC
8147 # Extract the first word of "windres", so it can be a program name with args.
8148 set dummy windres; ac_word=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 if test -n "$ac_ct_RC"; then
8155 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_RC="windres"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8168 done
8169 done
8171 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8174 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8175 if test -n "$ac_ct_RC"; then
8176 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8177 echo "${ECHO_T}$ac_ct_RC" >&6
8178 else
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8183 RC=$ac_ct_RC
8184 else
8185 RC="$ac_cv_prog_RC"
8189 RCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8190 else
8191 RCFLAGS=""
8195 # Check for Crypto++
8198 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8199 if test "${with_crypto_prefix+set}" = set; then
8200 withval="$with_crypto_prefix"
8201 CRYPTO_PP_PREFIX="$withval"
8202 else
8203 CRYPTO_PP_PREFIX=""
8209 min_crypto_version=5.1
8210 echo "$as_me:$LINENO: checking for crypto++ version >= $min_crypto_version" >&5
8211 echo $ECHO_N "checking for crypto++ version >= $min_crypto_version... $ECHO_C" >&6
8213 crypto_pp_file_with_version="cryptlib.h"
8215 CRYPTO_PP_STYLE="unknown"
8216 CRYPTO_PP_LIB_NAME="unknown"
8217 crypto_pp_include_i="unknown"
8218 CRYPTO_PP_INCLUDE_PREFIX="unknown"
8219 CRYPTO_PP_DEFINE="unknown"
8220 CRYPTO_PP_LIB="unknown"
8223 # Set CRYPTO_PP_PREFIX if the user has not set it in the configure command line
8224 # We don't use AC_CHECK_FILE to avoid caching.
8226 if test x$CRYPTO_PP_PREFIX = x ; then
8227 CRYPTO_PP_PREFIX="/usr"
8231 # Find the Cryptopp header
8233 if test -f $CRYPTO_PP_PREFIX/$crypto_pp_file_with_version; then
8234 CRYPTO_PP_STYLE="sources"
8235 CRYPTO_PP_LIB_NAME="cryptopp"
8236 crypto_pp_include_i="$CRYPTO_PP_PREFIX"
8237 CRYPTO_PP_INCLUDE_PREFIX="."
8238 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8239 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX"
8240 { { echo "$as_me:$LINENO: error:
8241 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8242 will not work because cryptopp uses headers with the same name of system
8243 headers (e.g. zlib.h) and you must be able to distinguish the system
8244 headers from cryptopp headers in an #include directive.
8245 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8246 the cryptopp directory to properly install cryptopp in your system." >&5
8247 echo "$as_me: error:
8248 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8249 will not work because cryptopp uses headers with the same name of system
8250 headers (e.g. zlib.h) and you must be able to distinguish the system
8251 headers from cryptopp headers in an #include directive.
8252 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8253 the cryptopp directory to properly install cryptopp in your system." >&2;}
8254 { (exit 1); exit 1; }; }
8255 elif test -f $CRYPTO_PP_PREFIX/include/cryptopp/$crypto_pp_file_with_version; then
8256 CRYPTO_PP_STYLE="installed"
8257 CRYPTO_PP_LIB_NAME="cryptopp"
8258 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8259 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8260 CRYPTO_PP_DEFINE="__CRYPTO_INSTALLED__"
8261 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8262 elif test -f $CRYPTO_PP_PREFIX/include/crypto++/$crypto_pp_file_with_version; then
8263 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8264 CRYPTO_PP_STYLE="gentoo_debian"
8265 CRYPTO_PP_LIB_NAME="crypto++"
8266 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8267 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8268 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8269 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8273 # Check for success in finding cryptopp
8275 if test $CRYPTO_PP_STYLE = "unknown"; then
8277 # If the execution reaches here, we have failed.
8279 { { echo "$as_me:$LINENO: error:
8280 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8281 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&5
8282 echo "$as_me: error:
8283 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8284 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&2;}
8285 { (exit 1); exit 1; }; }
8289 # Find out the cryptopp version and check against the minimum required
8291 crypto_pp_include_dir="$crypto_pp_include_i/$CRYPTO_PP_INCLUDE_PREFIX"
8292 crypto_pp_header_path="$crypto_pp_include_dir/$crypto_pp_file_with_version"
8294 CRYPTO_PP_VERSION_STRING=$(grep "Reference Manual" $crypto_pp_header_path | \
8295 sed -e 's/[^0-9]*\([0-9.]*\).*/\1/')
8297 CRYPTO_PP_VERSION_NUMBER=$(echo $CRYPTO_PP_VERSION_STRING | \
8298 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8300 minvers=$(echo $min_crypto_version | \
8301 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8303 if test -n "$CRYPTO_PP_VERSION_NUMBER" && test "$CRYPTO_PP_VERSION_NUMBER" -ge $minvers; then
8304 result="yes (version $CRYPTO_PP_VERSION_STRING, $CRYPTO_PP_STYLE)"
8305 else
8306 result="no"
8308 echo "$as_me:$LINENO: result: $result" >&5
8309 echo "${ECHO_T}$result" >&6
8312 # FLAGS
8314 CRYPTO_PP_CXXFLAGS="-I$crypto_pp_include_i -D$CRYPTO_PP_DEFINE"
8315 CRYPTO_PP_LDFLAGS="-L$CRYPTO_PP_LIB"
8318 cat >>confdefs.h <<_ACEOF
8319 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTO_PP_INCLUDE_PREFIX
8320 _ACEOF
8324 # Exported symbols
8336 { echo "$as_me:$LINENO: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&5
8337 echo "$as_me: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&6;}
8340 CXXFLAGS="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
8341 LDFLAGS="$LDFLAGS $CRYPTO_PP_LDFLAGS"
8342 CRYPTOLIBS="-l$CRYPTO_PP_LIB_NAME"
8344 case "$CRYPTO_PP_STYLE" in
8345 gentoo_debian | installed | sources)
8347 *) { { echo "$as_me:$LINENO: error:
8348 WARNING: crypto++ >= $min_crypto_version is not found.
8349 Please check that cryptopp-headers are in your default include path,
8350 check out LD_LIBRARY_PATH or equivalent variable.
8351 Or this might also be that your cryptopp is installed on other path.
8352 Please try again with --with-crypto-prefix=/my_crypto_prefix
8353 (replace /my_crypto_prefix with a valid path to your crypto directory).
8354 To download the latest version check http://www.cryptopp.com for sources.
8355 " >&5
8356 echo "$as_me: error:
8357 WARNING: crypto++ >= $min_crypto_version is not found.
8358 Please check that cryptopp-headers are in your default include path,
8359 check out LD_LIBRARY_PATH or equivalent variable.
8360 Or this might also be that your cryptopp is installed on other path.
8361 Please try again with --with-crypto-prefix=/my_crypto_prefix
8362 (replace /my_crypto_prefix with a valid path to your crypto directory).
8363 To download the latest version check http://www.cryptopp.com for sources.
8364 " >&2;}
8365 { (exit 1); exit 1; }; }
8367 esac
8369 # Check for CryptoPP >= 5.5
8370 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
8371 CXXFLAGS="$CXXFLAGS -D__WEAK_CRYPTO__"
8377 # Check for bfd.h (to have proper backtraces without using wxExecute)
8379 echo "$as_me:$LINENO: checking for bfd" >&5
8380 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8381 __LIBS=$LIBS
8382 LIBS="-lbfd -liberty $LIBS"
8383 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8391 #include <ansidecl.h>
8392 #include <bfd.h>
8395 main ()
8398 char *dummy = bfd_errmsg(bfd_get_error());
8401 return 0;
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8428 echo "$as_me:$LINENO: result: yes" >&5
8429 echo "${ECHO_T}yes" >&6
8430 BFD_FLAGS="-DHAVE_BFD"
8431 BFD_LIB="-lbfd -liberty"
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8438 echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6
8440 { echo "$as_me:$LINENO: WARNING:
8441 bfd.h not found or unusable, please install binutils development
8442 package if you are a developer or want to help testing aMule" >&5
8443 echo "$as_me: WARNING:
8444 bfd.h not found or unusable, please install binutils development
8445 package if you are a developer or want to help testing aMule" >&2;}
8448 rm -f conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 LIBS=${__LIBS}
8455 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8456 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 #include <execinfo.h>
8468 main ()
8471 void *bt[1];
8472 int n = backtrace(&bt, 1);
8473 const char **bt_syms = backtrace_symbols(bt, n);
8476 return 0;
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_EXECINFO 1
8507 _ACEOF
8509 echo "$as_me:$LINENO: result: yes" >&5
8510 echo "${ECHO_T}yes" >&6
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8517 echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8525 ac_ext=cc
8526 ac_cpp='$CXXCPP $CPPFLAGS'
8527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8531 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8532 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 #include <cxxabi.h>
8544 main ()
8547 int status;
8548 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8549 std::type_info *ti = abi::__cxa_current_exception_type();
8552 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_cxx_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_CXXABI 1
8583 _ACEOF
8585 echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8593 echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 ac_ext=c
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607 # Ok, we have all needed libs, now checking for other stuff
8610 echo "$as_me:$LINENO: checking for autopoint" >&5
8611 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
8613 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
8614 if test x$autopoint_version != x; then
8615 result="yes"
8616 else
8617 result="no"
8620 HAVE_GETTEXT=$result
8622 echo "$as_me:$LINENO: result: $result ($autopoint_version)" >&5
8623 echo "${ECHO_T}$result ($autopoint_version)" >&6
8624 if test x$result = xno; then
8625 { echo "$as_me:$LINENO: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&5
8626 echo "$as_me: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&6;}
8631 if test "$LEX" = "flex"; then
8634 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8635 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8637 extended_flex=`flex --help | grep header-file`
8638 if test x"$extended_flex" != x""; then
8639 result="yes"
8640 else
8641 result="no"
8644 HAVE_FLEX_EXTENDED=$result
8646 echo "$as_me:$LINENO: result: $result" >&5
8647 echo "${ECHO_T}$result" >&6
8649 if test x$result = xno; then
8650 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&5
8651 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&6;}
8657 else
8658 HAVE_FLEX_EXTENDED=no
8661 # Flush standard test results for speeding cache
8662 cat >confcache <<\_ACEOF
8663 # This file is a shell script that caches the results of configure
8664 # tests run on this system so they can be shared between configure
8665 # scripts and configure runs, see configure's option --config-cache.
8666 # It is not useful on other systems. If it contains results you don't
8667 # want to keep, you may remove or edit it.
8669 # config.status only pays attention to the cache file if you give it
8670 # the --recheck option to rerun configure.
8672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8674 # following values.
8676 _ACEOF
8678 # The following way of writing the cache mishandles newlines in values,
8679 # but we know of no workaround that is simple, portable, and efficient.
8680 # So, don't put newlines in cache variables' values.
8681 # Ultrix sh set writes to stderr and can't be redirected directly,
8682 # and sets the high bit in the cache file unless we assign to the vars.
8684 (set) 2>&1 |
8685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8686 *ac_space=\ *)
8687 # `set' does not quote correctly, so add quotes (double-quote
8688 # substitution turns \\\\ into \\, and sed turns \\ into \).
8689 sed -n \
8690 "s/'/'\\\\''/g;
8691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8694 # `set' quotes correctly as required by POSIX, so do not add quotes.
8695 sed -n \
8696 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8698 esac;
8700 sed '
8701 t clear
8702 : clear
8703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8704 t end
8705 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8706 : end' >>confcache
8707 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8708 if test -w $cache_file; then
8709 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8710 cat confcache >$cache_file
8711 else
8712 echo "not updating unwritable cache $cache_file"
8715 rm -f confcache
8717 # Checks for header files.
8718 echo "$as_me:$LINENO: checking for X" >&5
8719 echo $ECHO_N "checking for X... $ECHO_C" >&6
8722 # Check whether --with-x or --without-x was given.
8723 if test "${with_x+set}" = set; then
8724 withval="$with_x"
8727 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8728 if test "x$with_x" = xno; then
8729 # The user explicitly disabled X.
8730 have_x=disabled
8731 else
8732 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8733 # Both variables are already set.
8734 have_x=yes
8735 else
8736 if test "${ac_cv_have_x+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739 # One or both of the vars are not set, and there is no cached value.
8740 ac_x_includes=no ac_x_libraries=no
8741 rm -fr conftest.dir
8742 if mkdir conftest.dir; then
8743 cd conftest.dir
8744 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8745 cat >Imakefile <<'_ACEOF'
8746 acfindx:
8747 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8748 _ACEOF
8749 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8751 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8752 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8753 for ac_extension in a so sl; do
8754 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8755 test -f $ac_im_libdir/libX11.$ac_extension; then
8756 ac_im_usrlibdir=$ac_im_libdir; break
8758 done
8759 # Screen out bogus values from the imake configuration. They are
8760 # bogus both because they are the default anyway, and because
8761 # using them would break gcc on systems where it needs fixed includes.
8762 case $ac_im_incroot in
8763 /usr/include) ;;
8764 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8765 esac
8766 case $ac_im_usrlibdir in
8767 /usr/lib | /lib) ;;
8768 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8769 esac
8771 cd ..
8772 rm -fr conftest.dir
8775 # Standard set of common directories for X headers.
8776 # Check X11 before X11Rn because it is often a symlink to the current release.
8777 ac_x_header_dirs='
8778 /usr/X11/include
8779 /usr/X11R6/include
8780 /usr/X11R5/include
8781 /usr/X11R4/include
8783 /usr/include/X11
8784 /usr/include/X11R6
8785 /usr/include/X11R5
8786 /usr/include/X11R4
8788 /usr/local/X11/include
8789 /usr/local/X11R6/include
8790 /usr/local/X11R5/include
8791 /usr/local/X11R4/include
8793 /usr/local/include/X11
8794 /usr/local/include/X11R6
8795 /usr/local/include/X11R5
8796 /usr/local/include/X11R4
8798 /usr/X386/include
8799 /usr/x386/include
8800 /usr/XFree86/include/X11
8802 /usr/include
8803 /usr/local/include
8804 /usr/unsupported/include
8805 /usr/athena/include
8806 /usr/local/x11r5/include
8807 /usr/lpp/Xamples/include
8809 /usr/openwin/include
8810 /usr/openwin/share/include'
8812 if test "$ac_x_includes" = no; then
8813 # Guess where to find include files, by looking for Intrinsic.h.
8814 # First, try using that file with no special directory specified.
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 #include <X11/Intrinsic.h>
8822 _ACEOF
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8834 else
8835 ac_cpp_err=
8837 else
8838 ac_cpp_err=yes
8840 if test -z "$ac_cpp_err"; then
8841 # We can compile using X headers with no special include directory.
8842 ac_x_includes=
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 for ac_dir in $ac_x_header_dirs; do
8848 if test -r "$ac_dir/X11/Intrinsic.h"; then
8849 ac_x_includes=$ac_dir
8850 break
8852 done
8854 rm -f conftest.err conftest.$ac_ext
8855 fi # $ac_x_includes = no
8857 if test "$ac_x_libraries" = no; then
8858 # Check for the libraries.
8859 # See if we find them without any special options.
8860 # Don't add to $LIBS permanently.
8861 ac_save_LIBS=$LIBS
8862 LIBS="-lXt $LIBS"
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <X11/Intrinsic.h>
8871 main ()
8873 XtMalloc (0)
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 LIBS=$ac_save_LIBS
8901 # We can link X programs with no special library path.
8902 ac_x_libraries=
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 LIBS=$ac_save_LIBS
8908 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8910 # Don't even attempt the hair of trying to link an X program!
8911 for ac_extension in a so sl; do
8912 if test -r $ac_dir/libXt.$ac_extension; then
8913 ac_x_libraries=$ac_dir
8914 break 2
8916 done
8917 done
8919 rm -f conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 fi # $ac_x_libraries = no
8923 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8924 # Didn't find X anywhere. Cache the known absence of X.
8925 ac_cv_have_x="have_x=no"
8926 else
8927 # Record where we found X for the cache.
8928 ac_cv_have_x="have_x=yes \
8929 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8934 eval "$ac_cv_have_x"
8935 fi # $with_x != no
8937 if test "$have_x" != yes; then
8938 echo "$as_me:$LINENO: result: $have_x" >&5
8939 echo "${ECHO_T}$have_x" >&6
8940 no_x=yes
8941 else
8942 # If each of the values was on the command line, it overrides each guess.
8943 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8944 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8945 # Update the cache value to reflect the command line values.
8946 ac_cv_have_x="have_x=yes \
8947 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8948 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8949 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8953 # for constant arguments. Useless!
8954 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8955 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8956 if test "${ac_cv_working_alloca_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 #include <alloca.h>
8967 main ()
8969 char *p = (char *) alloca (2 * sizeof (int));
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_working_alloca_h=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ac_cv_working_alloca_h=no
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9007 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9008 if test $ac_cv_working_alloca_h = yes; then
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_ALLOCA_H 1
9012 _ACEOF
9016 echo "$as_me:$LINENO: checking for alloca" >&5
9017 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9018 if test "${ac_cv_func_alloca_works+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 #ifdef __GNUC__
9028 # define alloca __builtin_alloca
9029 #else
9030 # ifdef _MSC_VER
9031 # include <malloc.h>
9032 # define alloca _alloca
9033 # else
9034 # if HAVE_ALLOCA_H
9035 # include <alloca.h>
9036 # else
9037 # ifdef _AIX
9038 #pragma alloca
9039 # else
9040 # ifndef alloca /* predefined by HP cc +Olibcalls */
9041 char *alloca ();
9042 # endif
9043 # endif
9044 # endif
9045 # endif
9046 #endif
9049 main ()
9051 char *p = (char *) alloca (1);
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>conftest.er1
9059 ac_status=$?
9060 grep -v '^ *+' conftest.er1 >conftest.err
9061 rm -f conftest.er1
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -z "$ac_c_werror_flag"
9066 || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_func_alloca_works=yes
9079 else
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ac_cv_func_alloca_works=no
9085 rm -f conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9089 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9091 if test $ac_cv_func_alloca_works = yes; then
9093 cat >>confdefs.h <<\_ACEOF
9094 #define HAVE_ALLOCA 1
9095 _ACEOF
9097 else
9098 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9099 # that cause trouble. Some versions do not even contain alloca or
9100 # contain a buggy version. If you still want to use their alloca,
9101 # use ar to extract alloca.o from them instead of compiling alloca.c.
9103 ALLOCA=alloca.$ac_objext
9105 cat >>confdefs.h <<\_ACEOF
9106 #define C_ALLOCA 1
9107 _ACEOF
9110 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9111 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9112 if test "${ac_cv_os_cray+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 #if defined(CRAY) && ! defined(CRAY2)
9122 webecray
9123 #else
9124 wenotbecray
9125 #endif
9127 _ACEOF
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "webecray" >/dev/null 2>&1; then
9130 ac_cv_os_cray=yes
9131 else
9132 ac_cv_os_cray=no
9134 rm -f conftest*
9137 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9138 echo "${ECHO_T}$ac_cv_os_cray" >&6
9139 if test $ac_cv_os_cray = yes; then
9140 for ac_func in _getb67 GETB67 getb67; do
9141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9142 echo "$as_me:$LINENO: checking for $ac_func" >&5
9143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_var+set}\" = set"; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9155 #define $ac_func innocuous_$ac_func
9157 /* System header to define __stub macros and hopefully few prototypes,
9158 which can conflict with char $ac_func (); below.
9159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 <limits.h> exists even on freestanding compilers. */
9162 #ifdef __STDC__
9163 # include <limits.h>
9164 #else
9165 # include <assert.h>
9166 #endif
9168 #undef $ac_func
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 #ifdef __cplusplus
9172 extern "C"
9174 #endif
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9177 char $ac_func ();
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9182 choke me
9183 #else
9184 char (*f) () = $ac_func;
9185 #endif
9186 #ifdef __cplusplus
9188 #endif
9191 main ()
9193 return f != $ac_func;
9195 return 0;
9197 _ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest$ac_exeext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 eval "$as_ac_var=yes"
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 eval "$as_ac_var=no"
9227 rm -f conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9232 if test `eval echo '${'$as_ac_var'}'` = yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define CRAY_STACKSEG_END $ac_func
9236 _ACEOF
9238 break
9241 done
9244 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9245 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9246 if test "${ac_cv_c_stack_direction+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 if test "$cross_compiling" = yes; then
9250 ac_cv_c_stack_direction=0
9251 else
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9259 find_stack_direction ()
9261 static char *addr = 0;
9262 auto char dummy;
9263 if (addr == 0)
9265 addr = &dummy;
9266 return find_stack_direction ();
9268 else
9269 return (&dummy > addr) ? 1 : -1;
9273 main ()
9275 exit (find_stack_direction () < 0);
9277 _ACEOF
9278 rm -f conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_c_stack_direction=1
9290 else
9291 echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ( exit $ac_status )
9296 ac_cv_c_stack_direction=-1
9298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9302 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9304 cat >>confdefs.h <<_ACEOF
9305 #define STACK_DIRECTION $ac_cv_c_stack_direction
9306 _ACEOF
9316 ac_header_dirent=no
9317 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9318 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9320 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 #include <sys/types.h>
9331 #include <$ac_hdr>
9334 main ()
9336 if ((DIR *) 0)
9337 return 0;
9339 return 0;
9341 _ACEOF
9342 rm -f conftest.$ac_objext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344 (eval $ac_compile) 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag"
9352 || test ! -s conftest.err'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest.$ac_objext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 eval "$as_ac_Header=yes"
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 eval "$as_ac_Header=no"
9371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9376 cat >>confdefs.h <<_ACEOF
9377 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9378 _ACEOF
9380 ac_header_dirent=$ac_hdr; break
9383 done
9384 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9385 if test $ac_header_dirent = dirent.h; then
9386 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9387 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9388 if test "${ac_cv_search_opendir+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391 ac_func_search_save_LIBS=$LIBS
9392 ac_cv_search_opendir=no
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 /* Override any gcc2 internal prototype to avoid an error. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9406 char opendir ();
9408 main ()
9410 opendir ();
9412 return 0;
9414 _ACEOF
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -z "$ac_c_werror_flag"
9425 || test ! -s conftest.err'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; } &&
9431 { ac_try='test -s conftest$ac_exeext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 (eval $ac_try) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 ac_cv_search_opendir="none required"
9438 else
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9443 rm -f conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test "$ac_cv_search_opendir" = no; then
9446 for ac_lib in dir; do
9447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 /* Override any gcc2 internal prototype to avoid an error. */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9461 char opendir ();
9463 main ()
9465 opendir ();
9467 return 0;
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_cv_search_opendir="-l$ac_lib"
9493 break
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9499 rm -f conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 done
9503 LIBS=$ac_func_search_save_LIBS
9505 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9506 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9507 if test "$ac_cv_search_opendir" != no; then
9508 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9512 else
9513 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9514 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9515 if test "${ac_cv_search_opendir+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518 ac_func_search_save_LIBS=$LIBS
9519 ac_cv_search_opendir=no
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9527 /* Override any gcc2 internal prototype to avoid an error. */
9528 #ifdef __cplusplus
9529 extern "C"
9530 #endif
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char opendir ();
9535 main ()
9537 opendir ();
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_search_opendir="none required"
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9570 rm -f conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9572 if test "$ac_cv_search_opendir" = no; then
9573 for ac_lib in x; do
9574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9582 /* Override any gcc2 internal prototype to avoid an error. */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9588 char opendir ();
9590 main ()
9592 opendir ();
9594 return 0;
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_search_opendir="-l$ac_lib"
9620 break
9621 else
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9626 rm -f conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 done
9630 LIBS=$ac_func_search_save_LIBS
9632 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9633 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9634 if test "$ac_cv_search_opendir" != no; then
9635 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9643 if test "${ac_cv_header_stdc+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <stdlib.h>
9653 #include <stdarg.h>
9654 #include <string.h>
9655 #include <float.h>
9658 main ()
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_header_stdc=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_header_stdc=no
9694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 if test $ac_cv_header_stdc = yes; then
9697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <string.h>
9706 _ACEOF
9707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9708 $EGREP "memchr" >/dev/null 2>&1; then
9710 else
9711 ac_cv_header_stdc=no
9713 rm -f conftest*
9717 if test $ac_cv_header_stdc = yes; then
9718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 #include <stdlib.h>
9727 _ACEOF
9728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9729 $EGREP "free" >/dev/null 2>&1; then
9731 else
9732 ac_cv_header_stdc=no
9734 rm -f conftest*
9738 if test $ac_cv_header_stdc = yes; then
9739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9740 if test "$cross_compiling" = yes; then
9742 else
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <ctype.h>
9750 #if ((' ' & 0x0FF) == 0x020)
9751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9753 #else
9754 # define ISLOWER(c) \
9755 (('a' <= (c) && (c) <= 'i') \
9756 || ('j' <= (c) && (c) <= 'r') \
9757 || ('s' <= (c) && (c) <= 'z'))
9758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9759 #endif
9761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9763 main ()
9765 int i;
9766 for (i = 0; i < 256; i++)
9767 if (XOR (islower (i), ISLOWER (i))
9768 || toupper (i) != TOUPPER (i))
9769 exit(2);
9770 exit (0);
9772 _ACEOF
9773 rm -f conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9785 else
9786 echo "$as_me: program exited with status $ac_status" >&5
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ( exit $ac_status )
9791 ac_cv_header_stdc=no
9793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9798 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9799 if test $ac_cv_header_stdc = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define STDC_HEADERS 1
9803 _ACEOF
9837 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/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
9839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9841 echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848 else
9849 # Is the header compilable?
9850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 #include <$ac_header>
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag"
9871 || test ! -s conftest.err'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_header_compiler=yes
9884 else
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_header_compiler=no
9890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9892 echo "${ECHO_T}$ac_header_compiler" >&6
9894 # Is the header present?
9895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 #include <$ac_header>
9904 _ACEOF
9905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } >/dev/null; then
9913 if test -s conftest.err; then
9914 ac_cpp_err=$ac_c_preproc_warn_flag
9915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9916 else
9917 ac_cpp_err=
9919 else
9920 ac_cpp_err=yes
9922 if test -z "$ac_cpp_err"; then
9923 ac_header_preproc=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_header_preproc=no
9930 rm -f conftest.err conftest.$ac_ext
9931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9932 echo "${ECHO_T}$ac_header_preproc" >&6
9934 # So? What about this header?
9935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9936 yes:no: )
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9941 ac_header_preproc=yes
9943 no:yes:* )
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9957 cat <<\_ASBOX
9958 ## ------------------------------ ##
9959 ## Report this to admin@amule.org ##
9960 ## ------------------------------ ##
9961 _ASBOX
9963 sed "s/^/$as_me: WARNING: /" >&2
9965 esac
9966 echo "$as_me:$LINENO: checking for $ac_header" >&5
9967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 eval "$as_ac_Header=\$ac_header_preproc"
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9980 _ACEOF
9984 done
9986 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9987 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9988 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 #include <sys/types.h>
9998 #include <sys/wait.h>
9999 #ifndef WEXITSTATUS
10000 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10001 #endif
10002 #ifndef WIFEXITED
10003 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10004 #endif
10007 main ()
10009 int s;
10010 wait (&s);
10011 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10013 return 0;
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag"
10026 || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest.$ac_objext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_header_sys_wait_h=yes
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_cv_header_sys_wait_h=no
10045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10048 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10049 if test $ac_cv_header_sys_wait_h = yes; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define HAVE_SYS_WAIT_H 1
10053 _ACEOF
10058 # Checks for typedefs, structures, and compiler characteristics.
10059 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10060 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10061 if test "${ac_cv_header_stdbool_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 #include <stdbool.h>
10072 #ifndef bool
10073 # error bool is not defined
10074 #endif
10075 #ifndef false
10076 # error false is not defined
10077 #endif
10078 #if false
10079 # error false is not 0
10080 #endif
10081 #ifndef true
10082 # error true is not defined
10083 #endif
10084 #if true != 1
10085 # error true is not 1
10086 #endif
10087 #ifndef __bool_true_false_are_defined
10088 # error __bool_true_false_are_defined is not defined
10089 #endif
10091 struct s { _Bool s: 1; _Bool t; } s;
10093 char a[true == 1 ? 1 : -1];
10094 char b[false == 0 ? 1 : -1];
10095 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10096 char d[(bool) -0.5 == true ? 1 : -1];
10097 bool e = &s;
10098 char f[(_Bool) -0.0 == false ? 1 : -1];
10099 char g[true];
10100 char h[sizeof (_Bool)];
10101 char i[sizeof s.t];
10104 main ()
10106 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10108 return 0;
10110 _ACEOF
10111 rm -f conftest.$ac_objext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try='test -s conftest.$ac_objext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_header_stdbool_h=yes
10134 else
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_header_stdbool_h=no
10140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10143 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10144 echo "$as_me:$LINENO: checking for _Bool" >&5
10145 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10146 if test "${ac_cv_type__Bool+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 $ac_includes_default
10157 main ()
10159 if ((_Bool *) 0)
10160 return 0;
10161 if (sizeof (_Bool))
10162 return 0;
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_type__Bool=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_type__Bool=no
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10199 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10200 if test $ac_cv_type__Bool = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE__BOOL 1
10204 _ACEOF
10209 if test $ac_cv_header_stdbool_h = yes; then
10211 cat >>confdefs.h <<\_ACEOF
10212 #define HAVE_STDBOOL_H 1
10213 _ACEOF
10217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10219 if test "${ac_cv_c_const+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10230 main ()
10232 /* FIXME: Include the comments suggested by Paul. */
10233 #ifndef __cplusplus
10234 /* Ultrix mips cc rejects this. */
10235 typedef int charset[2];
10236 const charset x;
10237 /* SunOS 4.1.1 cc rejects this. */
10238 char const *const *ccp;
10239 char **p;
10240 /* NEC SVR4.0.2 mips cc rejects this. */
10241 struct point {int x, y;};
10242 static struct point const zero = {0,0};
10243 /* AIX XL C 1.02.0.0 rejects this.
10244 It does not let you subtract one const X* pointer from another in
10245 an arm of an if-expression whose if-part is not a constant
10246 expression */
10247 const char *g = "string";
10248 ccp = &g + (g ? g-g : 0);
10249 /* HPUX 7.0 cc rejects these. */
10250 ++ccp;
10251 p = (char**) ccp;
10252 ccp = (char const *const *) p;
10253 { /* SCO 3.2v4 cc rejects this. */
10254 char *t;
10255 char const *s = 0 ? (char *) 0 : (char const *) 0;
10257 *t++ = 0;
10259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10260 int x[] = {25, 17};
10261 const int *foo = &x[0];
10262 ++foo;
10264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10265 typedef const int *iptr;
10266 iptr p = 0;
10267 ++p;
10269 { /* AIX XL C 1.02.0.0 rejects this saying
10270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10271 struct s { int j; const int *ap[3]; };
10272 struct s *b; b->j = 5;
10274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10275 const int foo = 10;
10277 #endif
10280 return 0;
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_c_const=yes
10306 else
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_c_const=no
10312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10315 echo "${ECHO_T}$ac_cv_c_const" >&6
10316 if test $ac_cv_c_const = no; then
10318 cat >>confdefs.h <<\_ACEOF
10319 #define const
10320 _ACEOF
10324 echo "$as_me:$LINENO: checking for inline" >&5
10325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10326 if test "${ac_cv_c_inline+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329 ac_cv_c_inline=no
10330 for ac_kw in inline __inline__ __inline; do
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #ifndef __cplusplus
10338 typedef int foo_t;
10339 static $ac_kw foo_t static_foo () {return 0; }
10340 $ac_kw foo_t foo () {return 0; }
10341 #endif
10343 _ACEOF
10344 rm -f conftest.$ac_objext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_c_inline=$ac_kw; break
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 done
10376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10377 echo "${ECHO_T}$ac_cv_c_inline" >&6
10380 case $ac_cv_c_inline in
10381 inline | yes) ;;
10383 case $ac_cv_c_inline in
10384 no) ac_val=;;
10385 *) ac_val=$ac_cv_c_inline;;
10386 esac
10387 cat >>confdefs.h <<_ACEOF
10388 #ifndef __cplusplus
10389 #define inline $ac_val
10390 #endif
10391 _ACEOF
10393 esac
10395 echo "$as_me:$LINENO: checking for mode_t" >&5
10396 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10397 if test "${ac_cv_type_mode_t+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $ac_includes_default
10408 main ()
10410 if ((mode_t *) 0)
10411 return 0;
10412 if (sizeof (mode_t))
10413 return 0;
10415 return 0;
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag"
10428 || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest.$ac_objext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_type_mode_t=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_type_mode_t=no
10447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10450 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10451 if test $ac_cv_type_mode_t = yes; then
10453 else
10455 cat >>confdefs.h <<_ACEOF
10456 #define mode_t int
10457 _ACEOF
10461 echo "$as_me:$LINENO: checking for off_t" >&5
10462 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10463 if test "${ac_cv_type_off_t+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 $ac_includes_default
10474 main ()
10476 if ((off_t *) 0)
10477 return 0;
10478 if (sizeof (off_t))
10479 return 0;
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_type_off_t=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_cv_type_off_t=no
10513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10516 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10517 if test $ac_cv_type_off_t = yes; then
10519 else
10521 cat >>confdefs.h <<_ACEOF
10522 #define off_t long
10523 _ACEOF
10527 echo "$as_me:$LINENO: checking for size_t" >&5
10528 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10529 if test "${ac_cv_type_size_t+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10540 main ()
10542 if ((size_t *) 0)
10543 return 0;
10544 if (sizeof (size_t))
10545 return 0;
10547 return 0;
10549 _ACEOF
10550 rm -f conftest.$ac_objext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest.$ac_objext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_type_size_t=yes
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_type_size_t=no
10579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10582 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10583 if test $ac_cv_type_size_t = yes; then
10585 else
10587 cat >>confdefs.h <<_ACEOF
10588 #define size_t unsigned
10589 _ACEOF
10593 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10594 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10595 if test "${ac_cv_header_time+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <sys/types.h>
10605 #include <sys/time.h>
10606 #include <time.h>
10609 main ()
10611 if ((struct tm *) 0)
10612 return 0;
10614 return 0;
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_cv_header_time=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_cv_header_time=no
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10649 echo "${ECHO_T}$ac_cv_header_time" >&6
10650 if test $ac_cv_header_time = yes; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define TIME_WITH_SYS_TIME 1
10654 _ACEOF
10658 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10659 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10660 if test "${ac_cv_struct_tm+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <sys/types.h>
10670 #include <time.h>
10673 main ()
10675 struct tm *tp; tp->tm_sec;
10677 return 0;
10679 _ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag"
10690 || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest.$ac_objext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_struct_tm=time.h
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_struct_tm=sys/time.h
10709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10712 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10713 if test $ac_cv_struct_tm = sys/time.h; then
10715 cat >>confdefs.h <<\_ACEOF
10716 #define TM_IN_SYS_TIME 1
10717 _ACEOF
10721 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10722 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10723 if test "${ac_cv_type_uid_t+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <sys/types.h>
10734 _ACEOF
10735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10736 $EGREP "uid_t" >/dev/null 2>&1; then
10737 ac_cv_type_uid_t=yes
10738 else
10739 ac_cv_type_uid_t=no
10741 rm -f conftest*
10744 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10746 if test $ac_cv_type_uid_t = no; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define uid_t int
10750 _ACEOF
10753 cat >>confdefs.h <<\_ACEOF
10754 #define gid_t int
10755 _ACEOF
10759 echo "$as_me:$LINENO: checking for working volatile" >&5
10760 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10761 if test "${ac_cv_c_volatile+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h. */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10772 main ()
10775 volatile int x;
10776 int * volatile y;
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_c_volatile=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_c_volatile=no
10810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10813 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10814 if test $ac_cv_c_volatile = no; then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define volatile
10818 _ACEOF
10822 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10823 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10824 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10835 main ()
10837 if ((ptrdiff_t *) 0)
10838 return 0;
10839 if (sizeof (ptrdiff_t))
10840 return 0;
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag"
10855 || test ! -s conftest.err'
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); }; } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_type_ptrdiff_t=yes
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_cv_type_ptrdiff_t=no
10874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10877 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10878 if test $ac_cv_type_ptrdiff_t = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_PTRDIFF_T 1
10882 _ACEOF
10888 # Checks for library functions.
10889 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10890 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10891 if test "${ac_cv_func_closedir_void+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 if test "$cross_compiling" = yes; then
10895 ac_cv_func_closedir_void=yes
10896 else
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 $ac_includes_default
10904 #include <$ac_header_dirent>
10905 #ifndef __cplusplus
10906 int closedir ();
10907 #endif
10910 main ()
10912 exit (closedir (opendir (".")) != 0);
10914 return 0;
10916 _ACEOF
10917 rm -f conftest$ac_exeext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919 (eval $ac_link) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 ac_cv_func_closedir_void=no
10929 else
10930 echo "$as_me: program exited with status $ac_status" >&5
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ( exit $ac_status )
10935 ac_cv_func_closedir_void=yes
10937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10940 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10941 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10942 if test $ac_cv_func_closedir_void = yes; then
10944 cat >>confdefs.h <<\_ACEOF
10945 #define CLOSEDIR_VOID 1
10946 _ACEOF
10951 MKINSTALLDIRS=
10952 if test -n "$ac_aux_dir"; then
10953 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10955 if test -z "$MKINSTALLDIRS"; then
10956 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10963 # Extract the first word of "msgfmt", so it can be a program name with args.
10964 set dummy msgfmt; ac_word=$2
10965 echo "$as_me:$LINENO: checking for $ac_word" >&5
10966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10967 if test "${ac_cv_path_MSGFMT+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 case "$MSGFMT" in
10972 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10976 for ac_dir in $PATH; do
10977 test -z "$ac_dir" && ac_dir=.
10978 if test -f $ac_dir/$ac_word; then
10979 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10980 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10981 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10982 break
10985 done
10986 IFS="$ac_save_ifs"
10987 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10989 esac
10991 MSGFMT="$ac_cv_path_MSGFMT"
10992 if test "$MSGFMT" != ":"; then
10993 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10994 echo "${ECHO_T}$MSGFMT" >&6
10995 else
10996 echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
11000 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11001 set dummy gmsgfmt; ac_word=$2
11002 echo "$as_me:$LINENO: checking for $ac_word" >&5
11003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11004 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 case $GMSGFMT in
11008 [\\/]* | ?:[\\/]*)
11009 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11023 done
11024 done
11026 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11028 esac
11030 GMSGFMT=$ac_cv_path_GMSGFMT
11032 if test -n "$GMSGFMT"; then
11033 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11034 echo "${ECHO_T}$GMSGFMT" >&6
11035 else
11036 echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6
11041 # Extract the first word of "xgettext", so it can be a program name with args.
11042 set dummy xgettext; ac_word=$2
11043 echo "$as_me:$LINENO: checking for $ac_word" >&5
11044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 case "$XGETTEXT" in
11050 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11054 for ac_dir in $PATH; do
11055 test -z "$ac_dir" && ac_dir=.
11056 if test -f $ac_dir/$ac_word; then
11057 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11058 (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
11059 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11060 break
11063 done
11064 IFS="$ac_save_ifs"
11065 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11067 esac
11069 XGETTEXT="$ac_cv_path_XGETTEXT"
11070 if test "$XGETTEXT" != ":"; then
11071 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11072 echo "${ECHO_T}$XGETTEXT" >&6
11073 else
11074 echo "$as_me:$LINENO: result: no" >&5
11075 echo "${ECHO_T}no" >&6
11078 rm -f messages.po
11080 # Extract the first word of "msgmerge", so it can be a program name with args.
11081 set dummy msgmerge; ac_word=$2
11082 echo "$as_me:$LINENO: checking for $ac_word" >&5
11083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11084 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 case "$MSGMERGE" in
11089 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11093 for ac_dir in $PATH; do
11094 test -z "$ac_dir" && ac_dir=.
11095 if test -f $ac_dir/$ac_word; then
11096 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11097 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11098 break
11101 done
11102 IFS="$ac_save_ifs"
11103 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11105 esac
11107 MSGMERGE="$ac_cv_path_MSGMERGE"
11108 if test "$MSGMERGE" != ":"; then
11109 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11110 echo "${ECHO_T}$MSGMERGE" >&6
11111 else
11112 echo "$as_me:$LINENO: result: no" >&5
11113 echo "${ECHO_T}no" >&6
11117 if test "$GMSGFMT" != ":"; then
11118 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11119 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11121 else
11122 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11123 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11124 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11125 GMSGFMT=":"
11129 if test "$XGETTEXT" != ":"; then
11130 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11131 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11133 else
11134 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11135 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11136 XGETTEXT=":"
11138 rm -f messages.po
11141 ac_config_commands="$ac_config_commands default-1"
11144 echo "$as_me:$LINENO: checking for library containing strerror" >&5
11145 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
11146 if test "${ac_cv_search_strerror+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149 ac_func_search_save_LIBS=$LIBS
11150 ac_cv_search_strerror=no
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11158 /* Override any gcc2 internal prototype to avoid an error. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164 char strerror ();
11166 main ()
11168 strerror ();
11170 return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_search_strerror="none required"
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11201 rm -f conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 if test "$ac_cv_search_strerror" = no; then
11204 for ac_lib in cposix; do
11205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11213 /* Override any gcc2 internal prototype to avoid an error. */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char strerror ();
11221 main ()
11223 strerror ();
11225 return 0;
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230 (eval $ac_link) 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -z "$ac_c_werror_flag"
11238 || test ! -s conftest.err'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest$ac_exeext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 ac_cv_search_strerror="-l$ac_lib"
11251 break
11252 else
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11257 rm -f conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 done
11261 LIBS=$ac_func_search_save_LIBS
11263 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11264 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11265 if test "$ac_cv_search_strerror" != no; then
11266 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11272 for ac_header in stdlib.h unistd.h
11274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11276 echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11283 else
11284 # Is the header compilable?
11285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11286 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11294 #include <$ac_header>
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_header_compiler=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_header_compiler=no
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11327 echo "${ECHO_T}$ac_header_compiler" >&6
11329 # Is the header present?
11330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h. */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <$ac_header>
11339 _ACEOF
11340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11351 else
11352 ac_cpp_err=
11354 else
11355 ac_cpp_err=yes
11357 if test -z "$ac_cpp_err"; then
11358 ac_header_preproc=yes
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_header_preproc=no
11365 rm -f conftest.err conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11367 echo "${ECHO_T}$ac_header_preproc" >&6
11369 # So? What about this header?
11370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 yes:no: )
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11376 ac_header_preproc=yes
11378 no:yes:* )
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392 cat <<\_ASBOX
11393 ## ------------------------------ ##
11394 ## Report this to admin@amule.org ##
11395 ## ------------------------------ ##
11396 _ASBOX
11398 sed "s/^/$as_me: WARNING: /" >&2
11400 esac
11401 echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 eval "$as_ac_Header=\$ac_header_preproc"
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 _ACEOF
11419 done
11422 for ac_func in getpagesize
11424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425 echo "$as_me:$LINENO: checking for $ac_func" >&5
11426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11427 if eval "test \"\${$as_ac_var+set}\" = set"; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11438 #define $ac_func innocuous_$ac_func
11440 /* System header to define __stub macros and hopefully few prototypes,
11441 which can conflict with char $ac_func (); below.
11442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443 <limits.h> exists even on freestanding compilers. */
11445 #ifdef __STDC__
11446 # include <limits.h>
11447 #else
11448 # include <assert.h>
11449 #endif
11451 #undef $ac_func
11453 /* Override any gcc2 internal prototype to avoid an error. */
11454 #ifdef __cplusplus
11455 extern "C"
11457 #endif
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11460 char $ac_func ();
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11465 choke me
11466 #else
11467 char (*f) () = $ac_func;
11468 #endif
11469 #ifdef __cplusplus
11471 #endif
11474 main ()
11476 return f != $ac_func;
11478 return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 eval "$as_ac_var=yes"
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 eval "$as_ac_var=no"
11510 rm -f conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518 _ACEOF
11521 done
11523 echo "$as_me:$LINENO: checking for working mmap" >&5
11524 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11525 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 if test "$cross_compiling" = yes; then
11529 ac_cv_func_mmap_fixed_mapped=no
11530 else
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 $ac_includes_default
11538 /* malloc might have been renamed as rpl_malloc. */
11539 #undef malloc
11541 /* Thanks to Mike Haertel and Jim Avera for this test.
11542 Here is a matrix of mmap possibilities:
11543 mmap private not fixed
11544 mmap private fixed at somewhere currently unmapped
11545 mmap private fixed at somewhere already mapped
11546 mmap shared not fixed
11547 mmap shared fixed at somewhere currently unmapped
11548 mmap shared fixed at somewhere already mapped
11549 For private mappings, we should verify that changes cannot be read()
11550 back from the file, nor mmap's back from the file at a different
11551 address. (There have been systems where private was not correctly
11552 implemented like the infamous i386 svr4.0, and systems where the
11553 VM page cache was not coherent with the file system buffer cache
11554 like early versions of FreeBSD and possibly contemporary NetBSD.)
11555 For shared mappings, we should conversely verify that changes get
11556 propagated back to all the places they're supposed to be.
11558 Grep wants private fixed already mapped.
11559 The main things grep needs to know about mmap are:
11560 * does it exist and is it safe to write into the mmap'd area
11561 * how to use it (BSD variants) */
11563 #include <fcntl.h>
11564 #include <sys/mman.h>
11566 #if !STDC_HEADERS && !HAVE_STDLIB_H
11567 char *malloc ();
11568 #endif
11570 /* This mess was copied from the GNU getpagesize.h. */
11571 #if !HAVE_GETPAGESIZE
11572 /* Assume that all systems that can run configure have sys/param.h. */
11573 # if !HAVE_SYS_PARAM_H
11574 # define HAVE_SYS_PARAM_H 1
11575 # endif
11577 # ifdef _SC_PAGESIZE
11578 # define getpagesize() sysconf(_SC_PAGESIZE)
11579 # else /* no _SC_PAGESIZE */
11580 # if HAVE_SYS_PARAM_H
11581 # include <sys/param.h>
11582 # ifdef EXEC_PAGESIZE
11583 # define getpagesize() EXEC_PAGESIZE
11584 # else /* no EXEC_PAGESIZE */
11585 # ifdef NBPG
11586 # define getpagesize() NBPG * CLSIZE
11587 # ifndef CLSIZE
11588 # define CLSIZE 1
11589 # endif /* no CLSIZE */
11590 # else /* no NBPG */
11591 # ifdef NBPC
11592 # define getpagesize() NBPC
11593 # else /* no NBPC */
11594 # ifdef PAGESIZE
11595 # define getpagesize() PAGESIZE
11596 # endif /* PAGESIZE */
11597 # endif /* no NBPC */
11598 # endif /* no NBPG */
11599 # endif /* no EXEC_PAGESIZE */
11600 # else /* no HAVE_SYS_PARAM_H */
11601 # define getpagesize() 8192 /* punt totally */
11602 # endif /* no HAVE_SYS_PARAM_H */
11603 # endif /* no _SC_PAGESIZE */
11605 #endif /* no HAVE_GETPAGESIZE */
11608 main ()
11610 char *data, *data2, *data3;
11611 int i, pagesize;
11612 int fd;
11614 pagesize = getpagesize ();
11616 /* First, make a file with some known garbage in it. */
11617 data = (char *) malloc (pagesize);
11618 if (!data)
11619 exit (1);
11620 for (i = 0; i < pagesize; ++i)
11621 *(data + i) = rand ();
11622 umask (0);
11623 fd = creat ("conftest.mmap", 0600);
11624 if (fd < 0)
11625 exit (1);
11626 if (write (fd, data, pagesize) != pagesize)
11627 exit (1);
11628 close (fd);
11630 /* Next, try to mmap the file at a fixed address which already has
11631 something else allocated at it. If we can, also make sure that
11632 we see the same garbage. */
11633 fd = open ("conftest.mmap", O_RDWR);
11634 if (fd < 0)
11635 exit (1);
11636 data2 = (char *) malloc (2 * pagesize);
11637 if (!data2)
11638 exit (1);
11639 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11640 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11641 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11642 exit (1);
11643 for (i = 0; i < pagesize; ++i)
11644 if (*(data + i) != *(data2 + i))
11645 exit (1);
11647 /* Finally, make sure that changes to the mapped area do not
11648 percolate back to the file as seen by read(). (This is a bug on
11649 some variants of i386 svr4.0.) */
11650 for (i = 0; i < pagesize; ++i)
11651 *(data2 + i) = *(data2 + i) + 1;
11652 data3 = (char *) malloc (pagesize);
11653 if (!data3)
11654 exit (1);
11655 if (read (fd, data3, pagesize) != pagesize)
11656 exit (1);
11657 for (i = 0; i < pagesize; ++i)
11658 if (*(data + i) != *(data3 + i))
11659 exit (1);
11660 close (fd);
11661 exit (0);
11663 _ACEOF
11664 rm -f conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_func_mmap_fixed_mapped=yes
11676 else
11677 echo "$as_me: program exited with status $ac_status" >&5
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ( exit $ac_status )
11682 ac_cv_func_mmap_fixed_mapped=no
11684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11687 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11688 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11689 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_MMAP 1
11693 _ACEOF
11696 rm -f conftest.mmap
11699 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11700 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11701 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11711 #include <features.h>
11712 #ifdef __GNU_LIBRARY__
11713 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11714 Lucky GNU user
11715 #endif
11716 #endif
11718 _ACEOF
11719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11720 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11721 ac_cv_gnu_library_2_1=yes
11722 else
11723 ac_cv_gnu_library_2_1=no
11725 rm -f conftest*
11730 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11731 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11733 GLIBC21="$ac_cv_gnu_library_2_1"
11738 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11739 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11740 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11744 if test "$cross_compiling" = yes; then
11746 # Guess based on the CPU.
11747 case "$host_cpu" in
11748 alpha* | i3456786 | m68k | s390*)
11749 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11751 gt_cv_int_divbyzero_sigfpe="guessing no";;
11752 esac
11754 else
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 #include <stdlib.h>
11763 #include <signal.h>
11765 static void
11766 #ifdef __cplusplus
11767 sigfpe_handler (int sig)
11768 #else
11769 sigfpe_handler (sig) int sig;
11770 #endif
11772 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11773 exit (sig != SIGFPE);
11776 int x = 1;
11777 int y = 0;
11778 int z;
11779 int nan;
11781 int main ()
11783 signal (SIGFPE, sigfpe_handler);
11784 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11785 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11786 signal (SIGTRAP, sigfpe_handler);
11787 #endif
11788 /* Linux/SPARC yields signal SIGILL. */
11789 #if defined (__sparc__) && defined (__linux__)
11790 signal (SIGILL, sigfpe_handler);
11791 #endif
11793 z = x / y;
11794 nan = y / y;
11795 exit (1);
11798 _ACEOF
11799 rm -f conftest$ac_exeext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801 (eval $ac_link) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 gt_cv_int_divbyzero_sigfpe=yes
11811 else
11812 echo "$as_me: program exited with status $ac_status" >&5
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ( exit $ac_status )
11817 gt_cv_int_divbyzero_sigfpe=no
11819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11823 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11824 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11825 case "$gt_cv_int_divbyzero_sigfpe" in
11826 *yes) value=1;;
11827 *) value=0;;
11828 esac
11830 cat >>confdefs.h <<_ACEOF
11831 #define INTDIV0_RAISES_SIGFPE $value
11832 _ACEOF
11836 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11837 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11838 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 #include <inttypes.h>
11850 main ()
11852 uintmax_t i = (uintmax_t) -1;
11854 return 0;
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -z "$ac_c_werror_flag"
11867 || test ! -s conftest.err'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 jm_ac_cv_header_inttypes_h=yes
11880 else
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 jm_ac_cv_header_inttypes_h=no
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11889 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11890 if test $jm_ac_cv_header_inttypes_h = yes; then
11892 cat >>confdefs.h <<_ACEOF
11893 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11894 _ACEOF
11899 echo "$as_me:$LINENO: checking for stdint.h" >&5
11900 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11901 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 #include <sys/types.h>
11911 #include <stdint.h>
11913 main ()
11915 uintmax_t i = (uintmax_t) -1;
11917 return 0;
11919 _ACEOF
11920 rm -f conftest.$ac_objext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 jm_ac_cv_header_stdint_h=yes
11943 else
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 jm_ac_cv_header_stdint_h=no
11949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11951 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11952 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11953 if test $jm_ac_cv_header_stdint_h = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define HAVE_STDINT_H_WITH_UINTMAX 1
11957 _ACEOF
11962 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11963 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11964 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 unsigned long long ull = 1; int i = 63;
11975 main ()
11977 unsigned long long ullmax = (unsigned long long) -1;
11978 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_type_unsigned_long_long=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_type_unsigned_long_long=no
12012 rm -f conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12015 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
12016 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
12017 if test $ac_cv_type_unsigned_long_long = yes; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_UNSIGNED_LONG_LONG 1
12021 _ACEOF
12028 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12030 test $ac_cv_type_unsigned_long_long = yes \
12031 && ac_type='unsigned long long' \
12032 || ac_type='unsigned long'
12034 cat >>confdefs.h <<_ACEOF
12035 #define uintmax_t $ac_type
12036 _ACEOF
12041 echo "$as_me:$LINENO: checking for inttypes.h" >&5
12042 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
12043 if test "${gt_cv_header_inttypes_h+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 #include <sys/types.h>
12054 #include <inttypes.h>
12056 main ()
12060 return 0;
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag"
12073 || test ! -s conftest.err'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; } &&
12079 { ac_try='test -s conftest.$ac_objext'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12082 ac_status=$?
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12085 gt_cv_header_inttypes_h=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 gt_cv_header_inttypes_h=no
12092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12095 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
12096 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
12097 if test $gt_cv_header_inttypes_h = yes; then
12099 cat >>confdefs.h <<_ACEOF
12100 #define HAVE_INTTYPES_H 1
12101 _ACEOF
12107 if test $gt_cv_header_inttypes_h = yes; then
12108 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
12109 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
12110 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <inttypes.h>
12121 #ifdef PRId32
12122 char *p = PRId32;
12123 #endif
12126 main ()
12130 return 0;
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag"
12143 || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 gt_cv_inttypes_pri_broken=no
12156 else
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 gt_cv_inttypes_pri_broken=yes
12162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12165 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12166 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
12168 if test "$gt_cv_inttypes_pri_broken" = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define PRI_MACROS_BROKEN 1
12172 _ACEOF
12177 if test "X$prefix" = "XNONE"; then
12178 acl_final_prefix="$ac_default_prefix"
12179 else
12180 acl_final_prefix="$prefix"
12182 if test "X$exec_prefix" = "XNONE"; then
12183 acl_final_exec_prefix='${prefix}'
12184 else
12185 acl_final_exec_prefix="$exec_prefix"
12187 acl_save_prefix="$prefix"
12188 prefix="$acl_final_prefix"
12189 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12190 prefix="$acl_save_prefix"
12193 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12194 if test "${with_gnu_ld+set}" = set; then
12195 withval="$with_gnu_ld"
12196 test "$withval" = no || with_gnu_ld=yes
12197 else
12198 with_gnu_ld=no
12200 ac_prog=ld
12201 if test "$GCC" = yes; then
12202 # Check if gcc -print-prog-name=ld gives a path.
12203 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12204 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12205 case $host in
12206 *-*-mingw*)
12207 # gcc leaves a trailing carriage return which upsets mingw
12208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12211 esac
12212 case $ac_prog in
12213 # Accept absolute paths.
12214 [\\/]* | [A-Za-z]:[\\/]*)
12215 re_direlt='/[^/][^/]*/\.\./'
12216 # Canonicalize the path of ld
12217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12220 done
12221 test -z "$LD" && LD="$ac_prog"
12224 # If it fails, then pretend we aren't using GCC.
12225 ac_prog=ld
12228 # If it is relative, then search for the first ld in PATH.
12229 with_gnu_ld=unknown
12231 esac
12232 elif test "$with_gnu_ld" = yes; then
12233 echo "$as_me:$LINENO: checking for GNU ld" >&5
12234 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12235 else
12236 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12237 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12239 if test "${acl_cv_path_LD+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242 if test -z "$LD"; then
12243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12244 for ac_dir in $PATH; do
12245 test -z "$ac_dir" && ac_dir=.
12246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12247 acl_cv_path_LD="$ac_dir/$ac_prog"
12248 # Check to see if the program is GNU ld. I'd rather use --version,
12249 # but apparently some GNU ld's only accept -v.
12250 # Break only if it was the GNU/non-GNU ld that we prefer.
12251 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12252 test "$with_gnu_ld" != no && break
12253 else
12254 test "$with_gnu_ld" != yes && break
12257 done
12258 IFS="$ac_save_ifs"
12259 else
12260 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12264 LD="$acl_cv_path_LD"
12265 if test -n "$LD"; then
12266 echo "$as_me:$LINENO: result: $LD" >&5
12267 echo "${ECHO_T}$LD" >&6
12268 else
12269 echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12272 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12273 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12274 { (exit 1); exit 1; }; }
12275 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12276 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12277 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12281 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12282 acl_cv_prog_gnu_ld=yes
12283 else
12284 acl_cv_prog_gnu_ld=no
12287 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12288 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
12289 with_gnu_ld=$acl_cv_prog_gnu_ld
12293 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12294 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
12295 if test "${acl_cv_rpath+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12299 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12301 . ./conftest.sh
12302 rm -f ./conftest.sh
12303 acl_cv_rpath=done
12306 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12307 echo "${ECHO_T}$acl_cv_rpath" >&6
12308 wl="$acl_cv_wl"
12309 libext="$acl_cv_libext"
12310 shlibext="$acl_cv_shlibext"
12311 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12312 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12313 hardcode_direct="$acl_cv_hardcode_direct"
12314 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12315 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12316 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12317 # Check whether --enable-rpath or --disable-rpath was given.
12318 if test "${enable_rpath+set}" = set; then
12319 enableval="$enable_rpath"
12321 else
12322 enable_rpath=yes
12331 use_additional=yes
12333 acl_save_prefix="$prefix"
12334 prefix="$acl_final_prefix"
12335 acl_save_exec_prefix="$exec_prefix"
12336 exec_prefix="$acl_final_exec_prefix"
12338 eval additional_includedir=\"$includedir\"
12339 eval additional_libdir=\"$libdir\"
12341 exec_prefix="$acl_save_exec_prefix"
12342 prefix="$acl_save_prefix"
12345 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12346 if test "${with_libiconv_prefix+set}" = set; then
12347 withval="$with_libiconv_prefix"
12349 if test "X$withval" = "Xno"; then
12350 use_additional=no
12351 else
12352 if test "X$withval" = "X"; then
12354 acl_save_prefix="$prefix"
12355 prefix="$acl_final_prefix"
12356 acl_save_exec_prefix="$exec_prefix"
12357 exec_prefix="$acl_final_exec_prefix"
12359 eval additional_includedir=\"$includedir\"
12360 eval additional_libdir=\"$libdir\"
12362 exec_prefix="$acl_save_exec_prefix"
12363 prefix="$acl_save_prefix"
12365 else
12366 additional_includedir="$withval/include"
12367 additional_libdir="$withval/lib"
12372 LIBICONV=
12373 LTLIBICONV=
12374 INCICONV=
12375 rpathdirs=
12376 ltrpathdirs=
12377 names_already_handled=
12378 names_next_round='iconv '
12379 while test -n "$names_next_round"; do
12380 names_this_round="$names_next_round"
12381 names_next_round=
12382 for name in $names_this_round; do
12383 already_handled=
12384 for n in $names_already_handled; do
12385 if test "$n" = "$name"; then
12386 already_handled=yes
12387 break
12389 done
12390 if test -z "$already_handled"; then
12391 names_already_handled="$names_already_handled $name"
12392 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12393 eval value=\"\$HAVE_LIB$uppername\"
12394 if test -n "$value"; then
12395 if test "$value" = yes; then
12396 eval value=\"\$LIB$uppername\"
12397 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12398 eval value=\"\$LTLIB$uppername\"
12399 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12400 else
12403 else
12404 found_dir=
12405 found_la=
12406 found_so=
12407 found_a=
12408 if test $use_additional = yes; then
12409 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12410 found_dir="$additional_libdir"
12411 found_so="$additional_libdir/lib$name.$shlibext"
12412 if test -f "$additional_libdir/lib$name.la"; then
12413 found_la="$additional_libdir/lib$name.la"
12415 else
12416 if test -f "$additional_libdir/lib$name.$libext"; then
12417 found_dir="$additional_libdir"
12418 found_a="$additional_libdir/lib$name.$libext"
12419 if test -f "$additional_libdir/lib$name.la"; then
12420 found_la="$additional_libdir/lib$name.la"
12425 if test "X$found_dir" = "X"; then
12426 for x in $LDFLAGS $LTLIBICONV; do
12428 acl_save_prefix="$prefix"
12429 prefix="$acl_final_prefix"
12430 acl_save_exec_prefix="$exec_prefix"
12431 exec_prefix="$acl_final_exec_prefix"
12432 eval x=\"$x\"
12433 exec_prefix="$acl_save_exec_prefix"
12434 prefix="$acl_save_prefix"
12436 case "$x" in
12437 -L*)
12438 dir=`echo "X$x" | sed -e 's/^X-L//'`
12439 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12440 found_dir="$dir"
12441 found_so="$dir/lib$name.$shlibext"
12442 if test -f "$dir/lib$name.la"; then
12443 found_la="$dir/lib$name.la"
12445 else
12446 if test -f "$dir/lib$name.$libext"; then
12447 found_dir="$dir"
12448 found_a="$dir/lib$name.$libext"
12449 if test -f "$dir/lib$name.la"; then
12450 found_la="$dir/lib$name.la"
12455 esac
12456 if test "X$found_dir" != "X"; then
12457 break
12459 done
12461 if test "X$found_dir" != "X"; then
12462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12463 if test "X$found_so" != "X"; then
12464 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12466 else
12467 haveit=
12468 for x in $ltrpathdirs; do
12469 if test "X$x" = "X$found_dir"; then
12470 haveit=yes
12471 break
12473 done
12474 if test -z "$haveit"; then
12475 ltrpathdirs="$ltrpathdirs $found_dir"
12477 if test "$hardcode_direct" = yes; then
12478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12479 else
12480 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12482 haveit=
12483 for x in $rpathdirs; do
12484 if test "X$x" = "X$found_dir"; then
12485 haveit=yes
12486 break
12488 done
12489 if test -z "$haveit"; then
12490 rpathdirs="$rpathdirs $found_dir"
12492 else
12493 haveit=
12494 for x in $LDFLAGS $LIBICONV; do
12496 acl_save_prefix="$prefix"
12497 prefix="$acl_final_prefix"
12498 acl_save_exec_prefix="$exec_prefix"
12499 exec_prefix="$acl_final_exec_prefix"
12500 eval x=\"$x\"
12501 exec_prefix="$acl_save_exec_prefix"
12502 prefix="$acl_save_prefix"
12504 if test "X$x" = "X-L$found_dir"; then
12505 haveit=yes
12506 break
12508 done
12509 if test -z "$haveit"; then
12510 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12512 if test "$hardcode_minus_L" != no; then
12513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12514 else
12515 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12520 else
12521 if test "X$found_a" != "X"; then
12522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12523 else
12524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12527 additional_includedir=
12528 case "$found_dir" in
12529 */lib | */lib/)
12530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12531 additional_includedir="$basedir/include"
12533 esac
12534 if test "X$additional_includedir" != "X"; then
12535 if test "X$additional_includedir" != "X/usr/include"; then
12536 haveit=
12537 if test "X$additional_includedir" = "X/usr/local/include"; then
12538 if test -n "$GCC"; then
12539 case $host_os in
12540 linux*) haveit=yes;;
12541 esac
12544 if test -z "$haveit"; then
12545 for x in $CPPFLAGS $INCICONV; do
12547 acl_save_prefix="$prefix"
12548 prefix="$acl_final_prefix"
12549 acl_save_exec_prefix="$exec_prefix"
12550 exec_prefix="$acl_final_exec_prefix"
12551 eval x=\"$x\"
12552 exec_prefix="$acl_save_exec_prefix"
12553 prefix="$acl_save_prefix"
12555 if test "X$x" = "X-I$additional_includedir"; then
12556 haveit=yes
12557 break
12559 done
12560 if test -z "$haveit"; then
12561 if test -d "$additional_includedir"; then
12562 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12568 if test -n "$found_la"; then
12569 save_libdir="$libdir"
12570 case "$found_la" in
12571 */* | *\\*) . "$found_la" ;;
12572 *) . "./$found_la" ;;
12573 esac
12574 libdir="$save_libdir"
12575 for dep in $dependency_libs; do
12576 case "$dep" in
12577 -L*)
12578 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12579 if test "X$additional_libdir" != "X/usr/lib"; then
12580 haveit=
12581 if test "X$additional_libdir" = "X/usr/local/lib"; then
12582 if test -n "$GCC"; then
12583 case $host_os in
12584 linux*) haveit=yes;;
12585 esac
12588 if test -z "$haveit"; then
12589 haveit=
12590 for x in $LDFLAGS $LIBICONV; do
12592 acl_save_prefix="$prefix"
12593 prefix="$acl_final_prefix"
12594 acl_save_exec_prefix="$exec_prefix"
12595 exec_prefix="$acl_final_exec_prefix"
12596 eval x=\"$x\"
12597 exec_prefix="$acl_save_exec_prefix"
12598 prefix="$acl_save_prefix"
12600 if test "X$x" = "X-L$additional_libdir"; then
12601 haveit=yes
12602 break
12604 done
12605 if test -z "$haveit"; then
12606 if test -d "$additional_libdir"; then
12607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12610 haveit=
12611 for x in $LDFLAGS $LTLIBICONV; do
12613 acl_save_prefix="$prefix"
12614 prefix="$acl_final_prefix"
12615 acl_save_exec_prefix="$exec_prefix"
12616 exec_prefix="$acl_final_exec_prefix"
12617 eval x=\"$x\"
12618 exec_prefix="$acl_save_exec_prefix"
12619 prefix="$acl_save_prefix"
12621 if test "X$x" = "X-L$additional_libdir"; then
12622 haveit=yes
12623 break
12625 done
12626 if test -z "$haveit"; then
12627 if test -d "$additional_libdir"; then
12628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12634 -R*)
12635 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12636 if test "$enable_rpath" != no; then
12637 haveit=
12638 for x in $rpathdirs; do
12639 if test "X$x" = "X$dir"; then
12640 haveit=yes
12641 break
12643 done
12644 if test -z "$haveit"; then
12645 rpathdirs="$rpathdirs $dir"
12647 haveit=
12648 for x in $ltrpathdirs; do
12649 if test "X$x" = "X$dir"; then
12650 haveit=yes
12651 break
12653 done
12654 if test -z "$haveit"; then
12655 ltrpathdirs="$ltrpathdirs $dir"
12659 -l*)
12660 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12662 *.la)
12663 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12666 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12667 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12669 esac
12670 done
12672 else
12673 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12678 done
12679 done
12680 if test "X$rpathdirs" != "X"; then
12681 if test -n "$hardcode_libdir_separator"; then
12682 alldirs=
12683 for found_dir in $rpathdirs; do
12684 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12685 done
12686 acl_save_libdir="$libdir"
12687 libdir="$alldirs"
12688 eval flag=\"$hardcode_libdir_flag_spec\"
12689 libdir="$acl_save_libdir"
12690 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12691 else
12692 for found_dir in $rpathdirs; do
12693 acl_save_libdir="$libdir"
12694 libdir="$found_dir"
12695 eval flag=\"$hardcode_libdir_flag_spec\"
12696 libdir="$acl_save_libdir"
12697 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12698 done
12701 if test "X$ltrpathdirs" != "X"; then
12702 for found_dir in $ltrpathdirs; do
12703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12704 done
12720 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12721 stdlib.h string.h unistd.h sys/param.h
12723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12725 echo "$as_me:$LINENO: checking for $ac_header" >&5
12726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12732 else
12733 # Is the header compilable?
12734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 #include <$ac_header>
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -z "$ac_c_werror_flag"
12755 || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler=yes
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_header_compiler=no
12774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12776 echo "${ECHO_T}$ac_header_compiler" >&6
12778 # Is the header present?
12779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 #include <$ac_header>
12788 _ACEOF
12789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
12799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12800 else
12801 ac_cpp_err=
12803 else
12804 ac_cpp_err=yes
12806 if test -z "$ac_cpp_err"; then
12807 ac_header_preproc=yes
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_header_preproc=no
12814 rm -f conftest.err conftest.$ac_ext
12815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12816 echo "${ECHO_T}$ac_header_preproc" >&6
12818 # So? What about this header?
12819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12820 yes:no: )
12821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12825 ac_header_preproc=yes
12827 no:yes:* )
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12841 cat <<\_ASBOX
12842 ## ------------------------------ ##
12843 ## Report this to admin@amule.org ##
12844 ## ------------------------------ ##
12845 _ASBOX
12847 sed "s/^/$as_me: WARNING: /" >&2
12849 esac
12850 echo "$as_me:$LINENO: checking for $ac_header" >&5
12851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 eval "$as_ac_Header=\$ac_header_preproc"
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12868 done
12891 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12892 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12893 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12896 echo "$as_me:$LINENO: checking for $ac_func" >&5
12897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12898 if eval "test \"\${$as_ac_var+set}\" = set"; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12909 #define $ac_func innocuous_$ac_func
12911 /* System header to define __stub macros and hopefully few prototypes,
12912 which can conflict with char $ac_func (); below.
12913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12914 <limits.h> exists even on freestanding compilers. */
12916 #ifdef __STDC__
12917 # include <limits.h>
12918 #else
12919 # include <assert.h>
12920 #endif
12922 #undef $ac_func
12924 /* Override any gcc2 internal prototype to avoid an error. */
12925 #ifdef __cplusplus
12926 extern "C"
12928 #endif
12929 /* We use char because int might match the return type of a gcc2
12930 builtin and then its argument prototype would still apply. */
12931 char $ac_func ();
12932 /* The GNU C library defines this for functions which it implements
12933 to always fail with ENOSYS. Some functions are actually named
12934 something starting with __ and the normal name is an alias. */
12935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12936 choke me
12937 #else
12938 char (*f) () = $ac_func;
12939 #endif
12940 #ifdef __cplusplus
12942 #endif
12945 main ()
12947 return f != $ac_func;
12949 return 0;
12951 _ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag"
12962 || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 eval "$as_ac_var=yes"
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 eval "$as_ac_var=no"
12981 rm -f conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12986 if test `eval echo '${'$as_ac_var'}'` = yes; then
12987 cat >>confdefs.h <<_ACEOF
12988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12989 _ACEOF
12992 done
13000 am_save_CPPFLAGS="$CPPFLAGS"
13002 for element in $INCICONV; do
13003 haveit=
13004 for x in $CPPFLAGS; do
13006 acl_save_prefix="$prefix"
13007 prefix="$acl_final_prefix"
13008 acl_save_exec_prefix="$exec_prefix"
13009 exec_prefix="$acl_final_exec_prefix"
13010 eval x=\"$x\"
13011 exec_prefix="$acl_save_exec_prefix"
13012 prefix="$acl_save_prefix"
13014 if test "X$x" = "X$element"; then
13015 haveit=yes
13016 break
13018 done
13019 if test -z "$haveit"; then
13020 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13022 done
13025 echo "$as_me:$LINENO: checking for iconv" >&5
13026 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13027 if test "${am_cv_func_iconv+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13031 am_cv_func_iconv="no, consider installing GNU libiconv"
13032 am_cv_lib_iconv=no
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 #include <stdlib.h>
13040 #include <iconv.h>
13042 main ()
13044 iconv_t cd = iconv_open("","");
13045 iconv(cd,NULL,NULL,NULL,NULL);
13046 iconv_close(cd);
13048 return 0;
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 am_cv_func_iconv=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13079 rm -f conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 if test "$am_cv_func_iconv" != yes; then
13082 am_save_LIBS="$LIBS"
13083 LIBS="$LIBS $LIBICONV"
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <stdlib.h>
13091 #include <iconv.h>
13093 main ()
13095 iconv_t cd = iconv_open("","");
13096 iconv(cd,NULL,NULL,NULL,NULL);
13097 iconv_close(cd);
13099 return 0;
13101 _ACEOF
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13104 (eval $ac_link) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 am_cv_lib_iconv=yes
13125 am_cv_func_iconv=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13131 rm -f conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133 LIBS="$am_save_LIBS"
13137 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13138 echo "${ECHO_T}$am_cv_func_iconv" >&6
13139 if test "$am_cv_func_iconv" = yes; then
13141 cat >>confdefs.h <<\_ACEOF
13142 #define HAVE_ICONV 1
13143 _ACEOF
13146 if test "$am_cv_lib_iconv" = yes; then
13147 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13148 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
13149 echo "$as_me:$LINENO: result: $LIBICONV" >&5
13150 echo "${ECHO_T}$LIBICONV" >&6
13151 else
13152 CPPFLAGS="$am_save_CPPFLAGS"
13153 LIBICONV=
13154 LTLIBICONV=
13159 if test "$am_cv_func_iconv" = yes; then
13160 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13161 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13162 if test "${am_cv_proto_iconv+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h. */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 #include <stdlib.h>
13174 #include <iconv.h>
13175 extern
13176 #ifdef __cplusplus
13178 #endif
13179 #if defined(__STDC__) || defined(__cplusplus)
13180 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13181 #else
13182 size_t iconv();
13183 #endif
13186 main ()
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 am_cv_proto_iconv_arg1=""
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 am_cv_proto_iconv_arg1="const"
13222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13223 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);"
13226 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13227 echo "$as_me:$LINENO: result: ${ac_t:-
13228 }$am_cv_proto_iconv" >&5
13229 echo "${ECHO_T}${ac_t:-
13230 }$am_cv_proto_iconv" >&6
13232 cat >>confdefs.h <<_ACEOF
13233 #define ICONV_CONST $am_cv_proto_iconv_arg1
13234 _ACEOF
13239 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13240 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13241 if test "${am_cv_langinfo_codeset+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 #include <langinfo.h>
13252 main ()
13254 char* cs = nl_langinfo(CODESET);
13256 return 0;
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest$ac_exeext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 am_cv_langinfo_codeset=yes
13282 else
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 am_cv_langinfo_codeset=no
13288 rm -f conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13292 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13293 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13294 if test $am_cv_langinfo_codeset = yes; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_LANGINFO_CODESET 1
13298 _ACEOF
13302 if test $ac_cv_header_locale_h = yes; then
13304 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13305 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13306 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 #include <locale.h>
13317 main ()
13319 return LC_MESSAGES
13321 return 0;
13323 _ACEOF
13324 rm -f conftest.$ac_objext conftest$ac_exeext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326 (eval $ac_link) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest$ac_exeext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 am_cv_val_LC_MESSAGES=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 am_cv_val_LC_MESSAGES=no
13353 rm -f conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13357 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13358 if test $am_cv_val_LC_MESSAGES = yes; then
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_LC_MESSAGES 1
13362 _ACEOF
13368 for ac_prog in bison
13370 # Extract the first word of "$ac_prog", so it can be a program name with args.
13371 set dummy $ac_prog; ac_word=$2
13372 echo "$as_me:$LINENO: checking for $ac_word" >&5
13373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13374 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377 if test -n "$INTLBISON"; then
13378 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13387 ac_cv_prog_INTLBISON="$ac_prog"
13388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13396 INTLBISON=$ac_cv_prog_INTLBISON
13397 if test -n "$INTLBISON"; then
13398 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13399 echo "${ECHO_T}$INTLBISON" >&6
13400 else
13401 echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6
13405 test -n "$INTLBISON" && break
13406 done
13408 if test -z "$INTLBISON"; then
13409 ac_verc_fail=yes
13410 else
13411 echo "$as_me:$LINENO: checking version of bison" >&5
13412 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13413 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13414 case $ac_prog_version in
13415 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13416 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13417 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13418 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13419 esac
13420 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13421 echo "${ECHO_T}$ac_prog_version" >&6
13423 if test $ac_verc_fail = yes; then
13424 INTLBISON=:
13441 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13442 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13443 # Check whether --enable-nls or --disable-nls was given.
13444 if test "${enable_nls+set}" = set; then
13445 enableval="$enable_nls"
13446 USE_NLS=$enableval
13447 else
13448 USE_NLS=yes
13450 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13451 echo "${ECHO_T}$USE_NLS" >&6
13455 BUILD_INCLUDED_LIBINTL=no
13456 USE_INCLUDED_LIBINTL=no
13458 LIBINTL=
13459 LTLIBINTL=
13460 POSUB=
13462 if test "$USE_NLS" = "yes"; then
13463 gt_use_preinstalled_gnugettext=no
13465 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13466 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13468 # Check whether --with-included-gettext or --without-included-gettext was given.
13469 if test "${with_included_gettext+set}" = set; then
13470 withval="$with_included_gettext"
13471 nls_cv_force_use_gnu_gettext=$withval
13472 else
13473 nls_cv_force_use_gnu_gettext=no
13475 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13476 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13478 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13479 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13486 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13487 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13488 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <libintl.h>
13498 extern int _nl_msg_cat_cntr;
13499 extern int *_nl_domain_bindings;
13501 main ()
13503 bindtextdomain ("", "");
13504 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13506 return 0;
13508 _ACEOF
13509 rm -f conftest.$ac_objext conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 gt_cv_func_gnugettext1_libc=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 gt_cv_func_gnugettext1_libc=no
13538 rm -f conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13541 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13542 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13544 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13548 use_additional=yes
13550 acl_save_prefix="$prefix"
13551 prefix="$acl_final_prefix"
13552 acl_save_exec_prefix="$exec_prefix"
13553 exec_prefix="$acl_final_exec_prefix"
13555 eval additional_includedir=\"$includedir\"
13556 eval additional_libdir=\"$libdir\"
13558 exec_prefix="$acl_save_exec_prefix"
13559 prefix="$acl_save_prefix"
13562 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
13563 if test "${with_libintl_prefix+set}" = set; then
13564 withval="$with_libintl_prefix"
13566 if test "X$withval" = "Xno"; then
13567 use_additional=no
13568 else
13569 if test "X$withval" = "X"; then
13571 acl_save_prefix="$prefix"
13572 prefix="$acl_final_prefix"
13573 acl_save_exec_prefix="$exec_prefix"
13574 exec_prefix="$acl_final_exec_prefix"
13576 eval additional_includedir=\"$includedir\"
13577 eval additional_libdir=\"$libdir\"
13579 exec_prefix="$acl_save_exec_prefix"
13580 prefix="$acl_save_prefix"
13582 else
13583 additional_includedir="$withval/include"
13584 additional_libdir="$withval/lib"
13589 LIBINTL=
13590 LTLIBINTL=
13591 INCINTL=
13592 rpathdirs=
13593 ltrpathdirs=
13594 names_already_handled=
13595 names_next_round='intl '
13596 while test -n "$names_next_round"; do
13597 names_this_round="$names_next_round"
13598 names_next_round=
13599 for name in $names_this_round; do
13600 already_handled=
13601 for n in $names_already_handled; do
13602 if test "$n" = "$name"; then
13603 already_handled=yes
13604 break
13606 done
13607 if test -z "$already_handled"; then
13608 names_already_handled="$names_already_handled $name"
13609 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13610 eval value=\"\$HAVE_LIB$uppername\"
13611 if test -n "$value"; then
13612 if test "$value" = yes; then
13613 eval value=\"\$LIB$uppername\"
13614 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13615 eval value=\"\$LTLIB$uppername\"
13616 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13617 else
13620 else
13621 found_dir=
13622 found_la=
13623 found_so=
13624 found_a=
13625 if test $use_additional = yes; then
13626 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13627 found_dir="$additional_libdir"
13628 found_so="$additional_libdir/lib$name.$shlibext"
13629 if test -f "$additional_libdir/lib$name.la"; then
13630 found_la="$additional_libdir/lib$name.la"
13632 else
13633 if test -f "$additional_libdir/lib$name.$libext"; then
13634 found_dir="$additional_libdir"
13635 found_a="$additional_libdir/lib$name.$libext"
13636 if test -f "$additional_libdir/lib$name.la"; then
13637 found_la="$additional_libdir/lib$name.la"
13642 if test "X$found_dir" = "X"; then
13643 for x in $LDFLAGS $LTLIBINTL; do
13645 acl_save_prefix="$prefix"
13646 prefix="$acl_final_prefix"
13647 acl_save_exec_prefix="$exec_prefix"
13648 exec_prefix="$acl_final_exec_prefix"
13649 eval x=\"$x\"
13650 exec_prefix="$acl_save_exec_prefix"
13651 prefix="$acl_save_prefix"
13653 case "$x" in
13654 -L*)
13655 dir=`echo "X$x" | sed -e 's/^X-L//'`
13656 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13657 found_dir="$dir"
13658 found_so="$dir/lib$name.$shlibext"
13659 if test -f "$dir/lib$name.la"; then
13660 found_la="$dir/lib$name.la"
13662 else
13663 if test -f "$dir/lib$name.$libext"; then
13664 found_dir="$dir"
13665 found_a="$dir/lib$name.$libext"
13666 if test -f "$dir/lib$name.la"; then
13667 found_la="$dir/lib$name.la"
13672 esac
13673 if test "X$found_dir" != "X"; then
13674 break
13676 done
13678 if test "X$found_dir" != "X"; then
13679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13680 if test "X$found_so" != "X"; then
13681 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13683 else
13684 haveit=
13685 for x in $ltrpathdirs; do
13686 if test "X$x" = "X$found_dir"; then
13687 haveit=yes
13688 break
13690 done
13691 if test -z "$haveit"; then
13692 ltrpathdirs="$ltrpathdirs $found_dir"
13694 if test "$hardcode_direct" = yes; then
13695 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13696 else
13697 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13698 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13699 haveit=
13700 for x in $rpathdirs; do
13701 if test "X$x" = "X$found_dir"; then
13702 haveit=yes
13703 break
13705 done
13706 if test -z "$haveit"; then
13707 rpathdirs="$rpathdirs $found_dir"
13709 else
13710 haveit=
13711 for x in $LDFLAGS $LIBINTL; do
13713 acl_save_prefix="$prefix"
13714 prefix="$acl_final_prefix"
13715 acl_save_exec_prefix="$exec_prefix"
13716 exec_prefix="$acl_final_exec_prefix"
13717 eval x=\"$x\"
13718 exec_prefix="$acl_save_exec_prefix"
13719 prefix="$acl_save_prefix"
13721 if test "X$x" = "X-L$found_dir"; then
13722 haveit=yes
13723 break
13725 done
13726 if test -z "$haveit"; then
13727 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13729 if test "$hardcode_minus_L" != no; then
13730 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13731 else
13732 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13737 else
13738 if test "X$found_a" != "X"; then
13739 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13740 else
13741 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13744 additional_includedir=
13745 case "$found_dir" in
13746 */lib | */lib/)
13747 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13748 additional_includedir="$basedir/include"
13750 esac
13751 if test "X$additional_includedir" != "X"; then
13752 if test "X$additional_includedir" != "X/usr/include"; then
13753 haveit=
13754 if test "X$additional_includedir" = "X/usr/local/include"; then
13755 if test -n "$GCC"; then
13756 case $host_os in
13757 linux*) haveit=yes;;
13758 esac
13761 if test -z "$haveit"; then
13762 for x in $CPPFLAGS $INCINTL; do
13764 acl_save_prefix="$prefix"
13765 prefix="$acl_final_prefix"
13766 acl_save_exec_prefix="$exec_prefix"
13767 exec_prefix="$acl_final_exec_prefix"
13768 eval x=\"$x\"
13769 exec_prefix="$acl_save_exec_prefix"
13770 prefix="$acl_save_prefix"
13772 if test "X$x" = "X-I$additional_includedir"; then
13773 haveit=yes
13774 break
13776 done
13777 if test -z "$haveit"; then
13778 if test -d "$additional_includedir"; then
13779 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13785 if test -n "$found_la"; then
13786 save_libdir="$libdir"
13787 case "$found_la" in
13788 */* | *\\*) . "$found_la" ;;
13789 *) . "./$found_la" ;;
13790 esac
13791 libdir="$save_libdir"
13792 for dep in $dependency_libs; do
13793 case "$dep" in
13794 -L*)
13795 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13796 if test "X$additional_libdir" != "X/usr/lib"; then
13797 haveit=
13798 if test "X$additional_libdir" = "X/usr/local/lib"; then
13799 if test -n "$GCC"; then
13800 case $host_os in
13801 linux*) haveit=yes;;
13802 esac
13805 if test -z "$haveit"; then
13806 haveit=
13807 for x in $LDFLAGS $LIBINTL; do
13809 acl_save_prefix="$prefix"
13810 prefix="$acl_final_prefix"
13811 acl_save_exec_prefix="$exec_prefix"
13812 exec_prefix="$acl_final_exec_prefix"
13813 eval x=\"$x\"
13814 exec_prefix="$acl_save_exec_prefix"
13815 prefix="$acl_save_prefix"
13817 if test "X$x" = "X-L$additional_libdir"; then
13818 haveit=yes
13819 break
13821 done
13822 if test -z "$haveit"; then
13823 if test -d "$additional_libdir"; then
13824 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13827 haveit=
13828 for x in $LDFLAGS $LTLIBINTL; do
13830 acl_save_prefix="$prefix"
13831 prefix="$acl_final_prefix"
13832 acl_save_exec_prefix="$exec_prefix"
13833 exec_prefix="$acl_final_exec_prefix"
13834 eval x=\"$x\"
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13838 if test "X$x" = "X-L$additional_libdir"; then
13839 haveit=yes
13840 break
13842 done
13843 if test -z "$haveit"; then
13844 if test -d "$additional_libdir"; then
13845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13851 -R*)
13852 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13853 if test "$enable_rpath" != no; then
13854 haveit=
13855 for x in $rpathdirs; do
13856 if test "X$x" = "X$dir"; then
13857 haveit=yes
13858 break
13860 done
13861 if test -z "$haveit"; then
13862 rpathdirs="$rpathdirs $dir"
13864 haveit=
13865 for x in $ltrpathdirs; do
13866 if test "X$x" = "X$dir"; then
13867 haveit=yes
13868 break
13870 done
13871 if test -z "$haveit"; then
13872 ltrpathdirs="$ltrpathdirs $dir"
13876 -l*)
13877 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13879 *.la)
13880 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13883 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13886 esac
13887 done
13889 else
13890 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13895 done
13896 done
13897 if test "X$rpathdirs" != "X"; then
13898 if test -n "$hardcode_libdir_separator"; then
13899 alldirs=
13900 for found_dir in $rpathdirs; do
13901 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13902 done
13903 acl_save_libdir="$libdir"
13904 libdir="$alldirs"
13905 eval flag=\"$hardcode_libdir_flag_spec\"
13906 libdir="$acl_save_libdir"
13907 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13908 else
13909 for found_dir in $rpathdirs; do
13910 acl_save_libdir="$libdir"
13911 libdir="$found_dir"
13912 eval flag=\"$hardcode_libdir_flag_spec\"
13913 libdir="$acl_save_libdir"
13914 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13915 done
13918 if test "X$ltrpathdirs" != "X"; then
13919 for found_dir in $ltrpathdirs; do
13920 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13921 done
13924 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13925 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13926 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 gt_save_CPPFLAGS="$CPPFLAGS"
13930 CPPFLAGS="$CPPFLAGS $INCINTL"
13931 gt_save_LIBS="$LIBS"
13932 LIBS="$LIBS $LIBINTL"
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h. */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 #include <libintl.h>
13940 extern int _nl_msg_cat_cntr;
13941 extern
13942 #ifdef __cplusplus
13944 #endif
13945 const char *_nl_expand_alias ();
13947 main ()
13949 bindtextdomain ("", "");
13950 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13952 return 0;
13954 _ACEOF
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -z "$ac_c_werror_flag"
13965 || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest$ac_exeext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 gt_cv_func_gnugettext1_libintl=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 gt_cv_func_gnugettext1_libintl=no
13984 rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13987 LIBS="$LIBS $LIBICONV"
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h. */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 #include <libintl.h>
13995 extern int _nl_msg_cat_cntr;
13996 extern
13997 #ifdef __cplusplus
13999 #endif
14000 const char *_nl_expand_alias ();
14002 main ()
14004 bindtextdomain ("", "");
14005 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14007 return 0;
14009 _ACEOF
14010 rm -f conftest.$ac_objext conftest$ac_exeext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14012 (eval $ac_link) 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -z "$ac_c_werror_flag"
14020 || test ! -s conftest.err'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; } &&
14026 { ac_try='test -s conftest$ac_exeext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 LIBINTL="$LIBINTL $LIBICONV"
14033 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14034 gt_cv_func_gnugettext1_libintl=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14041 rm -f conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14044 CPPFLAGS="$gt_save_CPPFLAGS"
14045 LIBS="$gt_save_LIBS"
14047 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14048 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14051 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14052 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14053 && test "$PACKAGE" != gettext; }; then
14054 gt_use_preinstalled_gnugettext=yes
14055 else
14056 LIBINTL=
14057 LTLIBINTL=
14058 INCINTL=
14062 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14063 nls_cv_use_gnu_gettext=yes
14067 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14068 INTLOBJS="\$(GETTOBJS)"
14069 BUILD_INCLUDED_LIBINTL=yes
14070 USE_INCLUDED_LIBINTL=yes
14071 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14072 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14073 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14076 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14077 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14078 CATOBJEXT=.gmo
14082 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14083 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14085 cat >>confdefs.h <<\_ACEOF
14086 #define ENABLE_NLS 1
14087 _ACEOF
14089 else
14090 USE_NLS=no
14094 if test "$USE_NLS" = "yes"; then
14096 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14097 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14098 echo "$as_me:$LINENO: checking how to link with libintl" >&5
14099 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
14100 echo "$as_me:$LINENO: result: $LIBINTL" >&5
14101 echo "${ECHO_T}$LIBINTL" >&6
14103 for element in $INCINTL; do
14104 haveit=
14105 for x in $CPPFLAGS; do
14107 acl_save_prefix="$prefix"
14108 prefix="$acl_final_prefix"
14109 acl_save_exec_prefix="$exec_prefix"
14110 exec_prefix="$acl_final_exec_prefix"
14111 eval x=\"$x\"
14112 exec_prefix="$acl_save_exec_prefix"
14113 prefix="$acl_save_prefix"
14115 if test "X$x" = "X$element"; then
14116 haveit=yes
14117 break
14119 done
14120 if test -z "$haveit"; then
14121 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14123 done
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_GETTEXT 1
14130 _ACEOF
14133 cat >>confdefs.h <<\_ACEOF
14134 #define HAVE_DCGETTEXT 1
14135 _ACEOF
14139 POSUB=po
14143 if test "$PACKAGE" = gettext; then
14144 BUILD_INCLUDED_LIBINTL=yes
14152 nls_cv_header_intl=
14153 nls_cv_header_libgt=
14155 DATADIRNAME=share
14158 INSTOBJEXT=.mo
14161 GENCAT=gencat
14164 INTL_LIBTOOL_SUFFIX_PREFIX=
14168 INTLLIBS="$LIBINTL"
14175 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
14176 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
14177 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
14178 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lsun $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any gcc2 internal prototype to avoid an error. */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char getmntent ();
14198 main ()
14200 getmntent ();
14202 return 0;
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_lib_sun_getmntent=yes
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_lib_sun_getmntent=no
14234 rm -f conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
14239 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
14240 if test $ac_cv_lib_sun_getmntent = yes; then
14241 LIBS="-lsun $LIBS"
14242 else
14243 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
14244 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
14245 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-lseq $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14257 /* Override any gcc2 internal prototype to avoid an error. */
14258 #ifdef __cplusplus
14259 extern "C"
14260 #endif
14261 /* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14263 char getmntent ();
14265 main ()
14267 getmntent ();
14269 return 0;
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_lib_seq_getmntent=yes
14295 else
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_seq_getmntent=no
14301 rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 LIBS=$ac_check_lib_save_LIBS
14305 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
14306 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
14307 if test $ac_cv_lib_seq_getmntent = yes; then
14308 LIBS="-lseq $LIBS"
14309 else
14310 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
14311 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
14312 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-lgen $LIBS"
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14324 /* Override any gcc2 internal prototype to avoid an error. */
14325 #ifdef __cplusplus
14326 extern "C"
14327 #endif
14328 /* We use char because int might match the return type of a gcc2
14329 builtin and then its argument prototype would still apply. */
14330 char getmntent ();
14332 main ()
14334 getmntent ();
14336 return 0;
14338 _ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14341 (eval $ac_link) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest$ac_exeext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_cv_lib_gen_getmntent=yes
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_cv_lib_gen_getmntent=no
14368 rm -f conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS=$ac_check_lib_save_LIBS
14372 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
14373 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
14374 if test $ac_cv_lib_gen_getmntent = yes; then
14375 LIBS="-lgen $LIBS"
14383 for ac_func in getmntent
14385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14386 echo "$as_me:$LINENO: checking for $ac_func" >&5
14387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14388 if eval "test \"\${$as_ac_var+set}\" = set"; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14399 #define $ac_func innocuous_$ac_func
14401 /* System header to define __stub macros and hopefully few prototypes,
14402 which can conflict with char $ac_func (); below.
14403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14404 <limits.h> exists even on freestanding compilers. */
14406 #ifdef __STDC__
14407 # include <limits.h>
14408 #else
14409 # include <assert.h>
14410 #endif
14412 #undef $ac_func
14414 /* Override any gcc2 internal prototype to avoid an error. */
14415 #ifdef __cplusplus
14416 extern "C"
14418 #endif
14419 /* We use char because int might match the return type of a gcc2
14420 builtin and then its argument prototype would still apply. */
14421 char $ac_func ();
14422 /* The GNU C library defines this for functions which it implements
14423 to always fail with ENOSYS. Some functions are actually named
14424 something starting with __ and the normal name is an alias. */
14425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14426 choke me
14427 #else
14428 char (*f) () = $ac_func;
14429 #endif
14430 #ifdef __cplusplus
14432 #endif
14435 main ()
14437 return f != $ac_func;
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 eval "$as_ac_var=yes"
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 eval "$as_ac_var=no"
14471 rm -f conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14476 if test `eval echo '${'$as_ac_var'}'` = yes; then
14477 cat >>confdefs.h <<_ACEOF
14478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14479 _ACEOF
14482 done
14485 if test $ac_cv_c_compiler_gnu = yes; then
14486 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14487 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
14488 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 ac_pattern="Autoconf.*'x'"
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 #include <sgtty.h>
14499 Autoconf TIOCGETP
14500 _ACEOF
14501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14502 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14503 ac_cv_prog_gcc_traditional=yes
14504 else
14505 ac_cv_prog_gcc_traditional=no
14507 rm -f conftest*
14510 if test $ac_cv_prog_gcc_traditional = no; then
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <termio.h>
14518 Autoconf TCGETA
14519 _ACEOF
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14522 ac_cv_prog_gcc_traditional=yes
14524 rm -f conftest*
14528 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14529 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14530 if test $ac_cv_prog_gcc_traditional = yes; then
14531 CC="$CC -traditional"
14535 echo "$as_me:$LINENO: checking for pid_t" >&5
14536 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14537 if test "${ac_cv_type_pid_t+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14548 main ()
14550 if ((pid_t *) 0)
14551 return 0;
14552 if (sizeof (pid_t))
14553 return 0;
14555 return 0;
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560 (eval $ac_compile) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_type_pid_t=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_cv_type_pid_t=no
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14591 if test $ac_cv_type_pid_t = yes; then
14593 else
14595 cat >>confdefs.h <<_ACEOF
14596 #define pid_t int
14597 _ACEOF
14603 for ac_header in unistd.h vfork.h
14605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607 echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14614 else
14615 # Is the header compilable?
14616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <$ac_header>
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
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); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_header_compiler=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_header_compiler=no
14656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 echo "${ECHO_T}$ac_header_compiler" >&6
14660 # Is the header present?
14661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <$ac_header>
14670 _ACEOF
14671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14673 ac_status=$?
14674 grep -v '^ *+' conftest.er1 >conftest.err
14675 rm -f conftest.er1
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev/null; then
14679 if test -s conftest.err; then
14680 ac_cpp_err=$ac_c_preproc_warn_flag
14681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14682 else
14683 ac_cpp_err=
14685 else
14686 ac_cpp_err=yes
14688 if test -z "$ac_cpp_err"; then
14689 ac_header_preproc=yes
14690 else
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ac_header_preproc=no
14696 rm -f conftest.err conftest.$ac_ext
14697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 echo "${ECHO_T}$ac_header_preproc" >&6
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 yes:no: )
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14709 no:yes:* )
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14723 cat <<\_ASBOX
14724 ## ------------------------------ ##
14725 ## Report this to admin@amule.org ##
14726 ## ------------------------------ ##
14727 _ASBOX
14729 sed "s/^/$as_me: WARNING: /" >&2
14731 esac
14732 echo "$as_me:$LINENO: checking for $ac_header" >&5
14733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737 eval "$as_ac_Header=\$ac_header_preproc"
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14744 cat >>confdefs.h <<_ACEOF
14745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14746 _ACEOF
14750 done
14754 for ac_func in fork vfork
14756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14757 echo "$as_me:$LINENO: checking for $ac_func" >&5
14758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14759 if eval "test \"\${$as_ac_var+set}\" = set"; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14770 #define $ac_func innocuous_$ac_func
14772 /* System header to define __stub macros and hopefully few prototypes,
14773 which can conflict with char $ac_func (); below.
14774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14775 <limits.h> exists even on freestanding compilers. */
14777 #ifdef __STDC__
14778 # include <limits.h>
14779 #else
14780 # include <assert.h>
14781 #endif
14783 #undef $ac_func
14785 /* Override any gcc2 internal prototype to avoid an error. */
14786 #ifdef __cplusplus
14787 extern "C"
14789 #endif
14790 /* We use char because int might match the return type of a gcc2
14791 builtin and then its argument prototype would still apply. */
14792 char $ac_func ();
14793 /* The GNU C library defines this for functions which it implements
14794 to always fail with ENOSYS. Some functions are actually named
14795 something starting with __ and the normal name is an alias. */
14796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 choke me
14798 #else
14799 char (*f) () = $ac_func;
14800 #endif
14801 #ifdef __cplusplus
14803 #endif
14806 main ()
14808 return f != $ac_func;
14810 return 0;
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 eval "$as_ac_var=yes"
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 eval "$as_ac_var=no"
14842 rm -f conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14848 cat >>confdefs.h <<_ACEOF
14849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14850 _ACEOF
14853 done
14855 if test "x$ac_cv_func_fork" = xyes; then
14856 echo "$as_me:$LINENO: checking for working fork" >&5
14857 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14858 if test "${ac_cv_func_fork_works+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 if test "$cross_compiling" = yes; then
14862 ac_cv_func_fork_works=cross
14863 else
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* By Ruediger Kuhlmann. */
14866 #include <sys/types.h>
14867 #if HAVE_UNISTD_H
14868 # include <unistd.h>
14869 #endif
14870 /* Some systems only have a dummy stub for fork() */
14871 int main ()
14873 if (fork() < 0)
14874 exit (1);
14875 exit (0);
14877 _ACEOF
14878 rm -f conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880 (eval $ac_link) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_fork_works=yes
14890 else
14891 echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ( exit $ac_status )
14896 ac_cv_func_fork_works=no
14898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14901 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14902 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14904 else
14905 ac_cv_func_fork_works=$ac_cv_func_fork
14907 if test "x$ac_cv_func_fork_works" = xcross; then
14908 case $host in
14909 *-*-amigaos* | *-*-msdosdjgpp*)
14910 # Override, as these systems have only a dummy fork() stub
14911 ac_cv_func_fork_works=no
14914 ac_cv_func_fork_works=yes
14916 esac
14917 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14918 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14920 ac_cv_func_vfork_works=$ac_cv_func_vfork
14921 if test "x$ac_cv_func_vfork" = xyes; then
14922 echo "$as_me:$LINENO: checking for working vfork" >&5
14923 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14924 if test "${ac_cv_func_vfork_works+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927 if test "$cross_compiling" = yes; then
14928 ac_cv_func_vfork_works=cross
14929 else
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 /* Thanks to Paul Eggert for this test. */
14937 #include <stdio.h>
14938 #include <stdlib.h>
14939 #include <sys/types.h>
14940 #include <sys/stat.h>
14941 #include <sys/wait.h>
14942 #if HAVE_UNISTD_H
14943 # include <unistd.h>
14944 #endif
14945 #if HAVE_VFORK_H
14946 # include <vfork.h>
14947 #endif
14948 /* On some sparc systems, changes by the child to local and incoming
14949 argument registers are propagated back to the parent. The compiler
14950 is told about this with #include <vfork.h>, but some compilers
14951 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14952 static variable whose address is put into a register that is
14953 clobbered by the vfork. */
14954 static void
14955 #ifdef __cplusplus
14956 sparc_address_test (int arg)
14957 # else
14958 sparc_address_test (arg) int arg;
14959 #endif
14961 static pid_t child;
14962 if (!child) {
14963 child = vfork ();
14964 if (child < 0) {
14965 perror ("vfork");
14966 _exit(2);
14968 if (!child) {
14969 arg = getpid();
14970 write(-1, "", 0);
14971 _exit (arg);
14977 main ()
14979 pid_t parent = getpid ();
14980 pid_t child;
14982 sparc_address_test (0);
14984 child = vfork ();
14986 if (child == 0) {
14987 /* Here is another test for sparc vfork register problems. This
14988 test uses lots of local variables, at least as many local
14989 variables as main has allocated so far including compiler
14990 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14991 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14992 reuse the register of parent for one of the local variables,
14993 since it will think that parent can't possibly be used any more
14994 in this routine. Assigning to the local variable will thus
14995 munge parent in the parent process. */
14996 pid_t
14997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14999 /* Convince the compiler that p..p7 are live; otherwise, it might
15000 use the same hardware register for all 8 local variables. */
15001 if (p != p1 || p != p2 || p != p3 || p != p4
15002 || p != p5 || p != p6 || p != p7)
15003 _exit(1);
15005 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15006 from child file descriptors. If the child closes a descriptor
15007 before it execs or exits, this munges the parent's descriptor
15008 as well. Test for this by closing stdout in the child. */
15009 _exit(close(fileno(stdout)) != 0);
15010 } else {
15011 int status;
15012 struct stat st;
15014 while (wait(&status) != child)
15016 exit(
15017 /* Was there some problem with vforking? */
15018 child < 0
15020 /* Did the child fail? (This shouldn't happen.) */
15021 || status
15023 /* Did the vfork/compiler bug occur? */
15024 || parent != getpid()
15026 /* Did the file descriptor bug occur? */
15027 || fstat(fileno(stdout), &st) != 0
15031 _ACEOF
15032 rm -f conftest$ac_exeext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15034 (eval $ac_link) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_func_vfork_works=yes
15044 else
15045 echo "$as_me: program exited with status $ac_status" >&5
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ( exit $ac_status )
15050 ac_cv_func_vfork_works=no
15052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15056 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15059 if test "x$ac_cv_func_fork_works" = xcross; then
15060 ac_cv_func_vfork_works=$ac_cv_func_vfork
15061 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15062 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15065 if test "x$ac_cv_func_vfork_works" = xyes; then
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_WORKING_VFORK 1
15069 _ACEOF
15071 else
15073 cat >>confdefs.h <<\_ACEOF
15074 #define vfork fork
15075 _ACEOF
15078 if test "x$ac_cv_func_fork_works" = xyes; then
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_WORKING_FORK 1
15082 _ACEOF
15086 if test x$SYS != xwin32; then
15087 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15088 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15089 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092 rm -f conftest.sym conftest.file
15093 echo >conftest.file
15094 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15095 if test "$cross_compiling" = yes; then
15096 ac_cv_func_lstat_dereferences_slashed_symlink=no
15097 else
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15106 main ()
15108 struct stat sbuf;
15109 /* Linux will dereference the symlink and fail.
15110 That is better in the sense that it means we will not
15111 have to compile and use the lstat wrapper. */
15112 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15114 return 0;
15116 _ACEOF
15117 rm -f conftest$ac_exeext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119 (eval $ac_link) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15129 else
15130 echo "$as_me: program exited with status $ac_status" >&5
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ( exit $ac_status )
15135 ac_cv_func_lstat_dereferences_slashed_symlink=no
15137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15139 else
15140 # If the `ln -s' command failed, then we probably don't even
15141 # have an lstat function.
15142 ac_cv_func_lstat_dereferences_slashed_symlink=no
15144 rm -f conftest.sym conftest.file
15147 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15148 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15150 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15152 cat >>confdefs.h <<_ACEOF
15153 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15154 _ACEOF
15157 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15158 case $LIBOBJS in
15159 "lstat.$ac_objext" | \
15160 *" lstat.$ac_objext" | \
15161 "lstat.$ac_objext "* | \
15162 *" lstat.$ac_objext "* ) ;;
15163 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15164 esac
15168 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
15169 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
15170 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173 if test "$cross_compiling" = yes; then
15174 ac_cv_func_lstat_empty_string_bug=yes
15175 else
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 $ac_includes_default
15184 main ()
15186 struct stat sbuf;
15187 exit (lstat ("", &sbuf) ? 1 : 0);
15189 return 0;
15191 _ACEOF
15192 rm -f conftest$ac_exeext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15194 (eval $ac_link) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_func_lstat_empty_string_bug=yes
15204 else
15205 echo "$as_me: program exited with status $ac_status" >&5
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ( exit $ac_status )
15210 ac_cv_func_lstat_empty_string_bug=no
15212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
15216 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
15217 if test $ac_cv_func_lstat_empty_string_bug = yes; then
15218 case $LIBOBJS in
15219 "lstat.$ac_objext" | \
15220 *" lstat.$ac_objext" | \
15221 "lstat.$ac_objext "* | \
15222 *" lstat.$ac_objext "* ) ;;
15223 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15224 esac
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
15229 _ACEOF
15233 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15234 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15235 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238 rm -f conftest.sym conftest.file
15239 echo >conftest.file
15240 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15241 if test "$cross_compiling" = yes; then
15242 ac_cv_func_lstat_dereferences_slashed_symlink=no
15243 else
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15252 main ()
15254 struct stat sbuf;
15255 /* Linux will dereference the symlink and fail.
15256 That is better in the sense that it means we will not
15257 have to compile and use the lstat wrapper. */
15258 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15260 return 0;
15262 _ACEOF
15263 rm -f conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265 (eval $ac_link) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15275 else
15276 echo "$as_me: program exited with status $ac_status" >&5
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ( exit $ac_status )
15281 ac_cv_func_lstat_dereferences_slashed_symlink=no
15283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15285 else
15286 # If the `ln -s' command failed, then we probably don't even
15287 # have an lstat function.
15288 ac_cv_func_lstat_dereferences_slashed_symlink=no
15290 rm -f conftest.sym conftest.file
15293 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15294 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15296 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15298 cat >>confdefs.h <<_ACEOF
15299 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15300 _ACEOF
15303 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15304 case $LIBOBJS in
15305 "lstat.$ac_objext" | \
15306 *" lstat.$ac_objext" | \
15307 "lstat.$ac_objext "* | \
15308 *" lstat.$ac_objext "* ) ;;
15309 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15310 esac
15315 echo "$as_me:$LINENO: checking for working memcmp" >&5
15316 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
15317 if test "${ac_cv_func_memcmp_working+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 if test "$cross_compiling" = yes; then
15321 ac_cv_func_memcmp_working=no
15322 else
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h. */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15331 main ()
15334 /* Some versions of memcmp are not 8-bit clean. */
15335 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15336 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15337 exit (1);
15339 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15340 or more and with at least one buffer not starting on a 4-byte boundary.
15341 William Lewis provided this test program. */
15343 char foo[21];
15344 char bar[21];
15345 int i;
15346 for (i = 0; i < 4; i++)
15348 char *a = foo + i;
15349 char *b = bar + i;
15350 strcpy (a, "--------01111111");
15351 strcpy (b, "--------10000000");
15352 if (memcmp (a, b, 16) >= 0)
15353 exit (1);
15355 exit (0);
15359 return 0;
15361 _ACEOF
15362 rm -f conftest$ac_exeext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_func_memcmp_working=yes
15374 else
15375 echo "$as_me: program exited with status $ac_status" >&5
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ( exit $ac_status )
15380 ac_cv_func_memcmp_working=no
15382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15385 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15386 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15387 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
15388 "memcmp.$ac_objext" | \
15389 *" memcmp.$ac_objext" | \
15390 "memcmp.$ac_objext "* | \
15391 *" memcmp.$ac_objext "* ) ;;
15392 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
15393 esac
15398 for ac_header in stdlib.h unistd.h
15400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15402 echo "$as_me:$LINENO: checking for $ac_header" >&5
15403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 else
15410 # Is the header compilable?
15411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 $ac_includes_default
15420 #include <$ac_header>
15421 _ACEOF
15422 rm -f conftest.$ac_objext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_header_compiler=yes
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_compiler=no
15451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6
15455 # Is the header present?
15456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <$ac_header>
15465 _ACEOF
15466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } >/dev/null; then
15474 if test -s conftest.err; then
15475 ac_cpp_err=$ac_c_preproc_warn_flag
15476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15477 else
15478 ac_cpp_err=
15480 else
15481 ac_cpp_err=yes
15483 if test -z "$ac_cpp_err"; then
15484 ac_header_preproc=yes
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 ac_header_preproc=no
15491 rm -f conftest.err conftest.$ac_ext
15492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15493 echo "${ECHO_T}$ac_header_preproc" >&6
15495 # So? What about this header?
15496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15497 yes:no: )
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15502 ac_header_preproc=yes
15504 no:yes:* )
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518 cat <<\_ASBOX
15519 ## ------------------------------ ##
15520 ## Report this to admin@amule.org ##
15521 ## ------------------------------ ##
15522 _ASBOX
15524 sed "s/^/$as_me: WARNING: /" >&2
15526 esac
15527 echo "$as_me:$LINENO: checking for $ac_header" >&5
15528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 eval "$as_ac_Header=\$ac_header_preproc"
15534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 _ACEOF
15545 done
15548 for ac_func in getpagesize
15550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15551 echo "$as_me:$LINENO: checking for $ac_func" >&5
15552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15553 if eval "test \"\${$as_ac_var+set}\" = set"; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15564 #define $ac_func innocuous_$ac_func
15566 /* System header to define __stub macros and hopefully few prototypes,
15567 which can conflict with char $ac_func (); below.
15568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15569 <limits.h> exists even on freestanding compilers. */
15571 #ifdef __STDC__
15572 # include <limits.h>
15573 #else
15574 # include <assert.h>
15575 #endif
15577 #undef $ac_func
15579 /* Override any gcc2 internal prototype to avoid an error. */
15580 #ifdef __cplusplus
15581 extern "C"
15583 #endif
15584 /* We use char because int might match the return type of a gcc2
15585 builtin and then its argument prototype would still apply. */
15586 char $ac_func ();
15587 /* The GNU C library defines this for functions which it implements
15588 to always fail with ENOSYS. Some functions are actually named
15589 something starting with __ and the normal name is an alias. */
15590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15591 choke me
15592 #else
15593 char (*f) () = $ac_func;
15594 #endif
15595 #ifdef __cplusplus
15597 #endif
15600 main ()
15602 return f != $ac_func;
15604 return 0;
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag"
15617 || test ! -s conftest.err'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 eval "$as_ac_var=yes"
15630 else
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 eval "$as_ac_var=no"
15636 rm -f conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
15639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15641 if test `eval echo '${'$as_ac_var'}'` = yes; then
15642 cat >>confdefs.h <<_ACEOF
15643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15644 _ACEOF
15647 done
15649 echo "$as_me:$LINENO: checking for working mmap" >&5
15650 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15651 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654 if test "$cross_compiling" = yes; then
15655 ac_cv_func_mmap_fixed_mapped=no
15656 else
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 /* malloc might have been renamed as rpl_malloc. */
15665 #undef malloc
15667 /* Thanks to Mike Haertel and Jim Avera for this test.
15668 Here is a matrix of mmap possibilities:
15669 mmap private not fixed
15670 mmap private fixed at somewhere currently unmapped
15671 mmap private fixed at somewhere already mapped
15672 mmap shared not fixed
15673 mmap shared fixed at somewhere currently unmapped
15674 mmap shared fixed at somewhere already mapped
15675 For private mappings, we should verify that changes cannot be read()
15676 back from the file, nor mmap's back from the file at a different
15677 address. (There have been systems where private was not correctly
15678 implemented like the infamous i386 svr4.0, and systems where the
15679 VM page cache was not coherent with the file system buffer cache
15680 like early versions of FreeBSD and possibly contemporary NetBSD.)
15681 For shared mappings, we should conversely verify that changes get
15682 propagated back to all the places they're supposed to be.
15684 Grep wants private fixed already mapped.
15685 The main things grep needs to know about mmap are:
15686 * does it exist and is it safe to write into the mmap'd area
15687 * how to use it (BSD variants) */
15689 #include <fcntl.h>
15690 #include <sys/mman.h>
15692 #if !STDC_HEADERS && !HAVE_STDLIB_H
15693 char *malloc ();
15694 #endif
15696 /* This mess was copied from the GNU getpagesize.h. */
15697 #if !HAVE_GETPAGESIZE
15698 /* Assume that all systems that can run configure have sys/param.h. */
15699 # if !HAVE_SYS_PARAM_H
15700 # define HAVE_SYS_PARAM_H 1
15701 # endif
15703 # ifdef _SC_PAGESIZE
15704 # define getpagesize() sysconf(_SC_PAGESIZE)
15705 # else /* no _SC_PAGESIZE */
15706 # if HAVE_SYS_PARAM_H
15707 # include <sys/param.h>
15708 # ifdef EXEC_PAGESIZE
15709 # define getpagesize() EXEC_PAGESIZE
15710 # else /* no EXEC_PAGESIZE */
15711 # ifdef NBPG
15712 # define getpagesize() NBPG * CLSIZE
15713 # ifndef CLSIZE
15714 # define CLSIZE 1
15715 # endif /* no CLSIZE */
15716 # else /* no NBPG */
15717 # ifdef NBPC
15718 # define getpagesize() NBPC
15719 # else /* no NBPC */
15720 # ifdef PAGESIZE
15721 # define getpagesize() PAGESIZE
15722 # endif /* PAGESIZE */
15723 # endif /* no NBPC */
15724 # endif /* no NBPG */
15725 # endif /* no EXEC_PAGESIZE */
15726 # else /* no HAVE_SYS_PARAM_H */
15727 # define getpagesize() 8192 /* punt totally */
15728 # endif /* no HAVE_SYS_PARAM_H */
15729 # endif /* no _SC_PAGESIZE */
15731 #endif /* no HAVE_GETPAGESIZE */
15734 main ()
15736 char *data, *data2, *data3;
15737 int i, pagesize;
15738 int fd;
15740 pagesize = getpagesize ();
15742 /* First, make a file with some known garbage in it. */
15743 data = (char *) malloc (pagesize);
15744 if (!data)
15745 exit (1);
15746 for (i = 0; i < pagesize; ++i)
15747 *(data + i) = rand ();
15748 umask (0);
15749 fd = creat ("conftest.mmap", 0600);
15750 if (fd < 0)
15751 exit (1);
15752 if (write (fd, data, pagesize) != pagesize)
15753 exit (1);
15754 close (fd);
15756 /* Next, try to mmap the file at a fixed address which already has
15757 something else allocated at it. If we can, also make sure that
15758 we see the same garbage. */
15759 fd = open ("conftest.mmap", O_RDWR);
15760 if (fd < 0)
15761 exit (1);
15762 data2 = (char *) malloc (2 * pagesize);
15763 if (!data2)
15764 exit (1);
15765 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15766 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15767 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15768 exit (1);
15769 for (i = 0; i < pagesize; ++i)
15770 if (*(data + i) != *(data2 + i))
15771 exit (1);
15773 /* Finally, make sure that changes to the mapped area do not
15774 percolate back to the file as seen by read(). (This is a bug on
15775 some variants of i386 svr4.0.) */
15776 for (i = 0; i < pagesize; ++i)
15777 *(data2 + i) = *(data2 + i) + 1;
15778 data3 = (char *) malloc (pagesize);
15779 if (!data3)
15780 exit (1);
15781 if (read (fd, data3, pagesize) != pagesize)
15782 exit (1);
15783 for (i = 0; i < pagesize; ++i)
15784 if (*(data + i) != *(data3 + i))
15785 exit (1);
15786 close (fd);
15787 exit (0);
15789 _ACEOF
15790 rm -f conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_cv_func_mmap_fixed_mapped=yes
15802 else
15803 echo "$as_me: program exited with status $ac_status" >&5
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ( exit $ac_status )
15808 ac_cv_func_mmap_fixed_mapped=no
15810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15813 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15814 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15815 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_MMAP 1
15819 _ACEOF
15822 rm -f conftest.mmap
15826 for ac_header in sys/select.h sys/socket.h
15828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830 echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15837 else
15838 # Is the header compilable?
15839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
15848 #include <$ac_header>
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852 (eval $ac_compile) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try='test -s conftest.$ac_objext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_compiler=no
15879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15881 echo "${ECHO_T}$ac_header_compiler" >&6
15883 # Is the header present?
15884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <$ac_header>
15893 _ACEOF
15894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } >/dev/null; then
15902 if test -s conftest.err; then
15903 ac_cpp_err=$ac_c_preproc_warn_flag
15904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15905 else
15906 ac_cpp_err=
15908 else
15909 ac_cpp_err=yes
15911 if test -z "$ac_cpp_err"; then
15912 ac_header_preproc=yes
15913 else
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_header_preproc=no
15919 rm -f conftest.err conftest.$ac_ext
15920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921 echo "${ECHO_T}$ac_header_preproc" >&6
15923 # So? What about this header?
15924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925 yes:no: )
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930 ac_header_preproc=yes
15932 no:yes:* )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15946 cat <<\_ASBOX
15947 ## ------------------------------ ##
15948 ## Report this to admin@amule.org ##
15949 ## ------------------------------ ##
15950 _ASBOX
15952 sed "s/^/$as_me: WARNING: /" >&2
15954 esac
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960 eval "$as_ac_Header=\$ac_header_preproc"
15962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15969 _ACEOF
15973 done
15975 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15976 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15977 if test "${ac_cv_func_select_args+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15981 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15982 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15983 cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h. */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 $ac_includes_default
15990 #if HAVE_SYS_SELECT_H
15991 # include <sys/select.h>
15992 #endif
15993 #if HAVE_SYS_SOCKET_H
15994 # include <sys/socket.h>
15995 #endif
15998 main ()
16000 extern int select ($ac_arg1,
16001 $ac_arg234, $ac_arg234, $ac_arg234,
16002 $ac_arg5);
16004 return 0;
16006 _ACEOF
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009 (eval $ac_compile) 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16036 done
16037 done
16038 done
16039 # Provide a safe default value.
16040 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16043 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16044 echo "${ECHO_T}$ac_cv_func_select_args" >&6
16045 ac_save_IFS=$IFS; IFS=','
16046 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16047 IFS=$ac_save_IFS
16048 shift
16050 cat >>confdefs.h <<_ACEOF
16051 #define SELECT_TYPE_ARG1 $1
16052 _ACEOF
16055 cat >>confdefs.h <<_ACEOF
16056 #define SELECT_TYPE_ARG234 ($2)
16057 _ACEOF
16060 cat >>confdefs.h <<_ACEOF
16061 #define SELECT_TYPE_ARG5 ($3)
16062 _ACEOF
16064 rm -f conftest*
16066 echo "$as_me:$LINENO: checking for function prototypes" >&5
16067 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
16068 if test "$ac_cv_prog_cc_stdc" != no; then
16069 echo "$as_me:$LINENO: result: yes" >&5
16070 echo "${ECHO_T}yes" >&6
16072 cat >>confdefs.h <<\_ACEOF
16073 #define PROTOTYPES 1
16074 _ACEOF
16077 cat >>confdefs.h <<\_ACEOF
16078 #define __PROTOTYPES 1
16079 _ACEOF
16081 else
16082 echo "$as_me:$LINENO: result: no" >&5
16083 echo "${ECHO_T}no" >&6
16086 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
16087 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16088 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 ac_cv_func_setvbuf_reversed=no
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 #include <stdio.h>
16099 # if PROTOTYPES
16100 int (setvbuf) (FILE *, int, char *, size_t);
16101 # endif
16103 main ()
16105 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
16107 return 0;
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>conftest.er1
16113 ac_status=$?
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <stdio.h>
16139 # if PROTOTYPES
16140 int (setvbuf) (FILE *, int, char *, size_t);
16141 # endif
16143 main ()
16145 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
16147 return 0;
16149 _ACEOF
16150 rm -f conftest.$ac_objext conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152 (eval $ac_link) 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag"
16160 || test ! -s conftest.err'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest$ac_exeext'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16172 # It compiles and links either way, so it must not be declared
16173 # with a prototype and most likely this is a K&R C compiler.
16174 # Try running it.
16175 if test "$cross_compiling" = yes; then
16176 : # Assume setvbuf is not reversed when cross-compiling.
16177 else
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 #include <stdio.h>
16186 main ()
16188 /* This call has the arguments reversed.
16189 A reversed system may check and see that the address of buf
16190 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16191 char buf;
16192 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
16193 exit (1);
16194 putchar ('\r');
16195 exit (0); /* Non-reversed systems SEGV here. */
16197 return 0;
16199 _ACEOF
16200 rm -f conftest$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_func_setvbuf_reversed=yes
16212 else
16213 echo "$as_me: program exited with status $ac_status" >&5
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ( exit $ac_status )
16218 rm -f core *.core
16220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16222 ac_cv_func_setvbuf_reversed=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16228 rm -f conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16230 else
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16235 rm -f conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16238 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
16239 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16240 if test $ac_cv_func_setvbuf_reversed = yes; then
16242 cat >>confdefs.h <<\_ACEOF
16243 #define SETVBUF_REVERSED 1
16244 _ACEOF
16248 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16250 if test "${ac_cv_type_signal+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <sys/types.h>
16260 #include <signal.h>
16261 #ifdef signal
16262 # undef signal
16263 #endif
16264 #ifdef __cplusplus
16265 extern "C" void (*signal (int, void (*)(int)))(int);
16266 #else
16267 void (*signal ()) ();
16268 #endif
16271 main ()
16273 int i;
16275 return 0;
16277 _ACEOF
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_cv_type_signal=void
16301 else
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_cv_type_signal=int
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16310 echo "${ECHO_T}$ac_cv_type_signal" >&6
16312 cat >>confdefs.h <<_ACEOF
16313 #define RETSIGTYPE $ac_cv_type_signal
16314 _ACEOF
16317 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
16318 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
16319 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322 if test "$cross_compiling" = yes; then
16323 ac_cv_func_stat_empty_string_bug=yes
16324 else
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 $ac_includes_default
16333 main ()
16335 struct stat sbuf;
16336 exit (stat ("", &sbuf) ? 1 : 0);
16338 return 0;
16340 _ACEOF
16341 rm -f conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343 (eval $ac_link) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_cv_func_stat_empty_string_bug=yes
16353 else
16354 echo "$as_me: program exited with status $ac_status" >&5
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ( exit $ac_status )
16359 ac_cv_func_stat_empty_string_bug=no
16361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16364 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
16365 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
16366 if test $ac_cv_func_stat_empty_string_bug = yes; then
16367 case $LIBOBJS in
16368 "stat.$ac_objext" | \
16369 *" stat.$ac_objext" | \
16370 "stat.$ac_objext "* | \
16371 *" stat.$ac_objext "* ) ;;
16372 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
16373 esac
16376 cat >>confdefs.h <<_ACEOF
16377 #define HAVE_STAT_EMPTY_STRING_BUG 1
16378 _ACEOF
16383 for ac_func in strftime
16385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 echo "$as_me:$LINENO: checking for $ac_func" >&5
16387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16388 if eval "test \"\${$as_ac_var+set}\" = set"; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16399 #define $ac_func innocuous_$ac_func
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char $ac_func (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16406 #ifdef __STDC__
16407 # include <limits.h>
16408 #else
16409 # include <assert.h>
16410 #endif
16412 #undef $ac_func
16414 /* Override any gcc2 internal prototype to avoid an error. */
16415 #ifdef __cplusplus
16416 extern "C"
16418 #endif
16419 /* We use char because int might match the return type of a gcc2
16420 builtin and then its argument prototype would still apply. */
16421 char $ac_func ();
16422 /* The GNU C library defines this for functions which it implements
16423 to always fail with ENOSYS. Some functions are actually named
16424 something starting with __ and the normal name is an alias. */
16425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16426 choke me
16427 #else
16428 char (*f) () = $ac_func;
16429 #endif
16430 #ifdef __cplusplus
16432 #endif
16435 main ()
16437 return f != $ac_func;
16439 return 0;
16441 _ACEOF
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444 (eval $ac_link) 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_c_werror_flag"
16452 || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest$ac_exeext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 eval "$as_ac_var=yes"
16465 else
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 eval "$as_ac_var=no"
16471 rm -f conftest.err conftest.$ac_objext \
16472 conftest$ac_exeext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16476 if test `eval echo '${'$as_ac_var'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16479 _ACEOF
16481 else
16482 # strftime is in -lintl on SCO UNIX.
16483 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16484 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16485 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488 ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-lintl $LIBS"
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 /* Override any gcc2 internal prototype to avoid an error. */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 /* We use char because int might match the return type of a gcc2
16502 builtin and then its argument prototype would still apply. */
16503 char strftime ();
16505 main ()
16507 strftime ();
16509 return 0;
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514 (eval $ac_link) 2>conftest.er1
16515 ac_status=$?
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest$ac_exeext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_lib_intl_strftime=yes
16535 else
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_lib_intl_strftime=no
16541 rm -f conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16543 LIBS=$ac_check_lib_save_LIBS
16545 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16546 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16547 if test $ac_cv_lib_intl_strftime = yes; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_STRFTIME 1
16550 _ACEOF
16552 LIBS="-lintl $LIBS"
16556 done
16558 echo "$as_me:$LINENO: checking for working strtod" >&5
16559 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
16560 if test "${ac_cv_func_strtod+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563 if test "$cross_compiling" = yes; then
16564 ac_cv_func_strtod=no
16565 else
16566 cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h. */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16573 double strtod ();
16575 main()
16578 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16579 char *string = " +69";
16580 char *term;
16581 double value;
16582 value = strtod (string, &term);
16583 if (value != 69 || term != (string + 4))
16584 exit (1);
16588 /* Under Solaris 2.4, strtod returns the wrong value for the
16589 terminating character under some conditions. */
16590 char *string = "NaN";
16591 char *term;
16592 strtod (string, &term);
16593 if (term != string && *(term - 1) == 0)
16594 exit (1);
16596 exit (0);
16599 _ACEOF
16600 rm -f conftest$ac_exeext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16602 (eval $ac_link) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_func_strtod=yes
16612 else
16613 echo "$as_me: program exited with status $ac_status" >&5
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ( exit $ac_status )
16618 ac_cv_func_strtod=no
16620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16623 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
16624 echo "${ECHO_T}$ac_cv_func_strtod" >&6
16625 if test $ac_cv_func_strtod = no; then
16626 case $LIBOBJS in
16627 "strtod.$ac_objext" | \
16628 *" strtod.$ac_objext" | \
16629 "strtod.$ac_objext "* | \
16630 *" strtod.$ac_objext "* ) ;;
16631 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
16632 esac
16634 echo "$as_me:$LINENO: checking for pow" >&5
16635 echo $ECHO_N "checking for pow... $ECHO_C" >&6
16636 if test "${ac_cv_func_pow+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h. */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16645 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
16646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16647 #define pow innocuous_pow
16649 /* System header to define __stub macros and hopefully few prototypes,
16650 which can conflict with char pow (); below.
16651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16652 <limits.h> exists even on freestanding compilers. */
16654 #ifdef __STDC__
16655 # include <limits.h>
16656 #else
16657 # include <assert.h>
16658 #endif
16660 #undef pow
16662 /* Override any gcc2 internal prototype to avoid an error. */
16663 #ifdef __cplusplus
16664 extern "C"
16666 #endif
16667 /* We use char because int might match the return type of a gcc2
16668 builtin and then its argument prototype would still apply. */
16669 char pow ();
16670 /* The GNU C library defines this for functions which it implements
16671 to always fail with ENOSYS. Some functions are actually named
16672 something starting with __ and the normal name is an alias. */
16673 #if defined (__stub_pow) || defined (__stub___pow)
16674 choke me
16675 #else
16676 char (*f) () = pow;
16677 #endif
16678 #ifdef __cplusplus
16680 #endif
16683 main ()
16685 return f != pow;
16687 return 0;
16689 _ACEOF
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag"
16700 || test ! -s conftest.err'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_func_pow=yes
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_func_pow=no
16719 rm -f conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16722 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16723 echo "${ECHO_T}$ac_cv_func_pow" >&6
16725 if test $ac_cv_func_pow = no; then
16726 echo "$as_me:$LINENO: checking for pow in -lm" >&5
16727 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
16728 if test "${ac_cv_lib_m_pow+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731 ac_check_lib_save_LIBS=$LIBS
16732 LIBS="-lm $LIBS"
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16740 /* Override any gcc2 internal prototype to avoid an error. */
16741 #ifdef __cplusplus
16742 extern "C"
16743 #endif
16744 /* We use char because int might match the return type of a gcc2
16745 builtin and then its argument prototype would still apply. */
16746 char pow ();
16748 main ()
16750 pow ();
16752 return 0;
16754 _ACEOF
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_lib_m_pow=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_lib_m_pow=no
16784 rm -f conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16788 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16789 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
16790 if test $ac_cv_lib_m_pow = yes; then
16791 POW_LIB=-lm
16792 else
16793 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16794 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16802 for ac_func in vprintf
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16807 if eval "test \"\${$as_ac_var+set}\" = set"; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16818 #define $ac_func innocuous_$ac_func
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16825 #ifdef __STDC__
16826 # include <limits.h>
16827 #else
16828 # include <assert.h>
16829 #endif
16831 #undef $ac_func
16833 /* Override any gcc2 internal prototype to avoid an error. */
16834 #ifdef __cplusplus
16835 extern "C"
16837 #endif
16838 /* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16840 char $ac_func ();
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16845 choke me
16846 #else
16847 char (*f) () = $ac_func;
16848 #endif
16849 #ifdef __cplusplus
16851 #endif
16854 main ()
16856 return f != $ac_func;
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 eval "$as_ac_var=yes"
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 eval "$as_ac_var=no"
16890 rm -f conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16895 if test `eval echo '${'$as_ac_var'}'` = yes; then
16896 cat >>confdefs.h <<_ACEOF
16897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16898 _ACEOF
16900 echo "$as_me:$LINENO: checking for _doprnt" >&5
16901 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16902 if test "${ac_cv_func__doprnt+set}" = set; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define _doprnt innocuous__doprnt
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char _doprnt (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16920 #ifdef __STDC__
16921 # include <limits.h>
16922 #else
16923 # include <assert.h>
16924 #endif
16926 #undef _doprnt
16928 /* Override any gcc2 internal prototype to avoid an error. */
16929 #ifdef __cplusplus
16930 extern "C"
16932 #endif
16933 /* We use char because int might match the return type of a gcc2
16934 builtin and then its argument prototype would still apply. */
16935 char _doprnt ();
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16940 choke me
16941 #else
16942 char (*f) () = _doprnt;
16943 #endif
16944 #ifdef __cplusplus
16946 #endif
16949 main ()
16951 return f != _doprnt;
16953 return 0;
16955 _ACEOF
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_func__doprnt=yes
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_func__doprnt=no
16985 rm -f conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16988 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16989 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16990 if test $ac_cv_func__doprnt = yes; then
16992 cat >>confdefs.h <<\_ACEOF
16993 #define HAVE_DOPRNT 1
16994 _ACEOF
16999 done
17002 if test $cross_compiling = yes -a $gnumalloc = yes ; then
17003 { echo "$as_me:$LINENO: WARNING:
17004 configure cannot check whether malloc() and realloc() are GNU libc
17005 compatible. You have to be ABSOLUTELY sure that they are, otherwise
17006 run configure with the --without-gnu-malloc switch." >&5
17007 echo "$as_me: WARNING:
17008 configure cannot check whether malloc() and realloc() are GNU libc
17009 compatible. You have to be ABSOLUTELY sure that they are, otherwise
17010 run configure with the --without-gnu-malloc switch." >&2;}
17011 ac_cv_func_malloc_0_nonnull=yes
17012 ac_cv_func_realloc_0_nonnull=yes
17015 for ac_header in stdlib.h
17017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17019 echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17026 else
17027 # Is the header compilable?
17028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h. */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 $ac_includes_default
17037 #include <$ac_header>
17038 _ACEOF
17039 rm -f conftest.$ac_objext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17041 (eval $ac_compile) 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest.$ac_objext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_header_compiler=yes
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_header_compiler=no
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17070 echo "${ECHO_T}$ac_header_compiler" >&6
17072 # Is the header present?
17073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 #include <$ac_header>
17082 _ACEOF
17083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } >/dev/null; then
17091 if test -s conftest.err; then
17092 ac_cpp_err=$ac_c_preproc_warn_flag
17093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17094 else
17095 ac_cpp_err=
17097 else
17098 ac_cpp_err=yes
17100 if test -z "$ac_cpp_err"; then
17101 ac_header_preproc=yes
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 ac_header_preproc=no
17108 rm -f conftest.err conftest.$ac_ext
17109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17110 echo "${ECHO_T}$ac_header_preproc" >&6
17112 # So? What about this header?
17113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17114 yes:no: )
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17119 ac_header_preproc=yes
17121 no:yes:* )
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17135 cat <<\_ASBOX
17136 ## ------------------------------ ##
17137 ## Report this to admin@amule.org ##
17138 ## ------------------------------ ##
17139 _ASBOX
17141 sed "s/^/$as_me: WARNING: /" >&2
17143 esac
17144 echo "$as_me:$LINENO: checking for $ac_header" >&5
17145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 eval "$as_ac_Header=\$ac_header_preproc"
17151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158 _ACEOF
17162 done
17164 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17165 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17166 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169 if test "$cross_compiling" = yes; then
17170 ac_cv_func_malloc_0_nonnull=no
17171 else
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h. */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 #if STDC_HEADERS || HAVE_STDLIB_H
17179 # include <stdlib.h>
17180 #else
17181 char *malloc ();
17182 #endif
17185 main ()
17187 exit (malloc (0) ? 0 : 1);
17189 return 0;
17191 _ACEOF
17192 rm -f conftest$ac_exeext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194 (eval $ac_link) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_func_malloc_0_nonnull=yes
17204 else
17205 echo "$as_me: program exited with status $ac_status" >&5
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 ( exit $ac_status )
17210 ac_cv_func_malloc_0_nonnull=no
17212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17215 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17216 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17217 if test $ac_cv_func_malloc_0_nonnull = yes; then
17219 cat >>confdefs.h <<\_ACEOF
17220 #define HAVE_MALLOC 1
17221 _ACEOF
17223 else
17224 cat >>confdefs.h <<\_ACEOF
17225 #define HAVE_MALLOC 0
17226 _ACEOF
17228 case $LIBOBJS in
17229 "malloc.$ac_objext" | \
17230 *" malloc.$ac_objext" | \
17231 "malloc.$ac_objext "* | \
17232 *" malloc.$ac_objext "* ) ;;
17233 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
17234 esac
17237 cat >>confdefs.h <<\_ACEOF
17238 #define malloc rpl_malloc
17239 _ACEOF
17246 for ac_header in stdlib.h
17248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17250 echo "$as_me:$LINENO: checking for $ac_header" >&5
17251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17257 else
17258 # Is the header compilable?
17259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17268 #include <$ac_header>
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_header_compiler=yes
17293 else
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_header_compiler=no
17299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17301 echo "${ECHO_T}$ac_header_compiler" >&6
17303 # Is the header present?
17304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 #include <$ac_header>
17313 _ACEOF
17314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } >/dev/null; then
17322 if test -s conftest.err; then
17323 ac_cpp_err=$ac_c_preproc_warn_flag
17324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17325 else
17326 ac_cpp_err=
17328 else
17329 ac_cpp_err=yes
17331 if test -z "$ac_cpp_err"; then
17332 ac_header_preproc=yes
17333 else
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 ac_header_preproc=no
17339 rm -f conftest.err conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17341 echo "${ECHO_T}$ac_header_preproc" >&6
17343 # So? What about this header?
17344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17345 yes:no: )
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17350 ac_header_preproc=yes
17352 no:yes:* )
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17366 cat <<\_ASBOX
17367 ## ------------------------------ ##
17368 ## Report this to admin@amule.org ##
17369 ## ------------------------------ ##
17370 _ASBOX
17372 sed "s/^/$as_me: WARNING: /" >&2
17374 esac
17375 echo "$as_me:$LINENO: checking for $ac_header" >&5
17376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380 eval "$as_ac_Header=\$ac_header_preproc"
17382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17387 cat >>confdefs.h <<_ACEOF
17388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17389 _ACEOF
17393 done
17395 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
17396 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
17397 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400 if test "$cross_compiling" = yes; then
17401 ac_cv_func_realloc_0_nonnull=no
17402 else
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 #if STDC_HEADERS || HAVE_STDLIB_H
17410 # include <stdlib.h>
17411 #else
17412 char *realloc ();
17413 #endif
17416 main ()
17418 exit (realloc (0, 0) ? 0 : 1);
17420 return 0;
17422 _ACEOF
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_func_realloc_0_nonnull=yes
17435 else
17436 echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 ( exit $ac_status )
17441 ac_cv_func_realloc_0_nonnull=no
17443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17446 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
17447 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
17448 if test $ac_cv_func_realloc_0_nonnull = yes; then
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_REALLOC 1
17452 _ACEOF
17454 else
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_REALLOC 0
17457 _ACEOF
17459 case $LIBOBJS in
17460 "realloc.$ac_objext" | \
17461 *" realloc.$ac_objext" | \
17462 "realloc.$ac_objext "* | \
17463 *" realloc.$ac_objext "* ) ;;
17464 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
17465 esac
17468 cat >>confdefs.h <<\_ACEOF
17469 #define realloc rpl_realloc
17470 _ACEOF
17511 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo 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
17513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17514 echo "$as_me:$LINENO: checking for $ac_func" >&5
17515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17516 if eval "test \"\${$as_ac_var+set}\" = set"; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17527 #define $ac_func innocuous_$ac_func
17529 /* System header to define __stub macros and hopefully few prototypes,
17530 which can conflict with char $ac_func (); below.
17531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532 <limits.h> exists even on freestanding compilers. */
17534 #ifdef __STDC__
17535 # include <limits.h>
17536 #else
17537 # include <assert.h>
17538 #endif
17540 #undef $ac_func
17542 /* Override any gcc2 internal prototype to avoid an error. */
17543 #ifdef __cplusplus
17544 extern "C"
17546 #endif
17547 /* We use char because int might match the return type of a gcc2
17548 builtin and then its argument prototype would still apply. */
17549 char $ac_func ();
17550 /* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17554 choke me
17555 #else
17556 char (*f) () = $ac_func;
17557 #endif
17558 #ifdef __cplusplus
17560 #endif
17563 main ()
17565 return f != $ac_func;
17567 return 0;
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 eval "$as_ac_var=yes"
17593 else
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 eval "$as_ac_var=no"
17599 rm -f conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17604 if test `eval echo '${'$as_ac_var'}'` = yes; then
17605 cat >>confdefs.h <<_ACEOF
17606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17607 _ACEOF
17610 done
17612 #-------------------------------------------------------------------------------
17613 # End of autoscan stuff
17614 #-------------------------------------------------------------------------------
17619 for ac_func in mkdir getrlimit setrlimit
17621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 echo "$as_me:$LINENO: checking for $ac_func" >&5
17623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17624 if eval "test \"\${$as_ac_var+set}\" = set"; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17635 #define $ac_func innocuous_$ac_func
17637 /* System header to define __stub macros and hopefully few prototypes,
17638 which can conflict with char $ac_func (); below.
17639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640 <limits.h> exists even on freestanding compilers. */
17642 #ifdef __STDC__
17643 # include <limits.h>
17644 #else
17645 # include <assert.h>
17646 #endif
17648 #undef $ac_func
17650 /* Override any gcc2 internal prototype to avoid an error. */
17651 #ifdef __cplusplus
17652 extern "C"
17654 #endif
17655 /* We use char because int might match the return type of a gcc2
17656 builtin and then its argument prototype would still apply. */
17657 char $ac_func ();
17658 /* The GNU C library defines this for functions which it implements
17659 to always fail with ENOSYS. Some functions are actually named
17660 something starting with __ and the normal name is an alias. */
17661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 choke me
17663 #else
17664 char (*f) () = $ac_func;
17665 #endif
17666 #ifdef __cplusplus
17668 #endif
17671 main ()
17673 return f != $ac_func;
17675 return 0;
17677 _ACEOF
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 eval "$as_ac_var=yes"
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 eval "$as_ac_var=no"
17707 rm -f conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17712 if test `eval echo '${'$as_ac_var'}'` = yes; then
17713 cat >>confdefs.h <<_ACEOF
17714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17715 _ACEOF
17718 done
17721 # Flush standard test results for speeding cache
17722 cat >confcache <<\_ACEOF
17723 # This file is a shell script that caches the results of configure
17724 # tests run on this system so they can be shared between configure
17725 # scripts and configure runs, see configure's option --config-cache.
17726 # It is not useful on other systems. If it contains results you don't
17727 # want to keep, you may remove or edit it.
17729 # config.status only pays attention to the cache file if you give it
17730 # the --recheck option to rerun configure.
17732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17734 # following values.
17736 _ACEOF
17738 # The following way of writing the cache mishandles newlines in values,
17739 # but we know of no workaround that is simple, portable, and efficient.
17740 # So, don't put newlines in cache variables' values.
17741 # Ultrix sh set writes to stderr and can't be redirected directly,
17742 # and sets the high bit in the cache file unless we assign to the vars.
17744 (set) 2>&1 |
17745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17746 *ac_space=\ *)
17747 # `set' does not quote correctly, so add quotes (double-quote
17748 # substitution turns \\\\ into \\, and sed turns \\ into \).
17749 sed -n \
17750 "s/'/'\\\\''/g;
17751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17754 # `set' quotes correctly as required by POSIX, so do not add quotes.
17755 sed -n \
17756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17758 esac;
17760 sed '
17761 t clear
17762 : clear
17763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17764 t end
17765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17766 : end' >>confcache
17767 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17768 if test -w $cache_file; then
17769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17770 cat confcache >$cache_file
17771 else
17772 echo "not updating unwritable cache $cache_file"
17775 rm -f confcache
17777 # Other tests
17779 case "$USE_DEBUG" in
17780 yes) DEBUG_FLAGS="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
17781 if test x$GCC = xyes; then
17782 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
17785 if test x$SYS = xwin32; then
17786 RCFLAGS="$RCFLAGS -D__DEBUG__"
17790 *) DEBUG_FLAGS=""
17791 if test x$GCC = xyes; then
17792 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"
17796 esac
17798 #aMule options
17800 # Command line tools
17801 case "$AMULECMD" in
17802 yes) ;;
17803 *) AMULECMD="no"
17805 esac
17807 # For proper compilation flags
17809 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
17811 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
17812 WXBASE_CXXFLAGS="$WX_CXXFLAGS -DwxUSE_GUI=0"
17813 WXBASE_CFLAGS="$WX_CFLAGS -DwxUSE_GUI=0"
17819 case "$USE_OPTIMIZE" in
17820 yes) OPTIMIZE_FLAGS="-O2"
17822 *) OPTIMIZE_FLAGS=""
17824 esac
17826 # Profiling
17827 case "$USE_PROFILE" in
17828 yes) PROFILE_FLAGS="-pg"
17830 *) PROFILE_FLAGS=""
17832 esac
17834 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
17835 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
17836 case "$USE_DEBUG_STATIC" in
17837 yes) LDFLAGS="$LDFLAGS -static"
17839 esac
17840 echo "$as_me:$LINENO: result: $USE_DEBUG_STATIC" >&5
17841 echo "${ECHO_T}$USE_DEBUG_STATIC" >&6
17843 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
17844 echo "$as_me:$LINENO: checking for docdir" >&5
17845 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
17846 if test x"$docdir" = x; then
17847 docdir="$datadir"/doc/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
17850 echo "$as_me:$LINENO: result: $docdir" >&5
17851 echo "${ECHO_T}$docdir" >&6
17853 # Try to set the SVN checkout-date
17854 echo "$as_me:$LINENO: checking for SVNDATE" >&5
17855 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
17856 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
17857 then
17858 svndate=`cat $srcdir/SVNDATE`
17859 elif test -d $srcdir/.svn # SVNDATE for svn
17860 then
17861 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
17863 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
17864 echo "${ECHO_T}${svndate:-None required}" >&6
17865 test "$svndate" &&
17866 cat >>confdefs.h <<_ACEOF
17867 #define SVNDATE "$svndate"
17868 _ACEOF
17870 test x$SYS = xwin32 && test "$svndate" && RCFLAGS="$RCFLAGS -D__PRERELEASE__"
17871 SVNDATE="$svndate"
17874 XRCFLAGS="-Isrc"
17875 CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17876 CFLAGS="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17878 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
17879 if test x$SYS != xwin32; then
17880 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
17881 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
17882 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
17883 LDFLAGS="$LDFLAGS -pthread"
17884 echo "$as_me:$LINENO: result: yes" >&5
17885 echo "${ECHO_T}yes" >&6
17886 else
17887 LDFLAGS="$LDFLAGS -lpthread"
17888 echo "$as_me:$LINENO: result: no" >&5
17889 echo "${ECHO_T}no" >&6
17893 case "$USE_NLS" in
17895 yes)
17896 echo "$as_me:$LINENO: checking for requested languages" >&5
17897 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17898 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17900 if test "$AMULE_DAEMON" == "yes"; then
17901 if test "$LINGUAS" = ""; then
17902 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17903 else
17904 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17905 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17907 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17908 else
17909 AMULE_DAEMON_MANPAGES=
17914 if test "$AMULECMD" == "yes"; then
17915 if test "$LINGUAS" = ""; then
17916 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17917 else
17918 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17919 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17921 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17922 else
17923 AMULECMD_MANPAGES=
17928 if test "$WEB" == "yes"; then
17929 if test "$LINGUAS" = ""; then
17930 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17931 else
17932 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17933 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17935 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
17936 else
17937 WEB_MANPAGES=
17942 if test "$AMULE_GUI" == "yes"; then
17943 if test "$LINGUAS" = ""; then
17944 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17945 else
17946 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17947 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17949 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17950 else
17951 AMULE_GUI_MANPAGES=
17956 if test "$CAS" == "yes"; then
17957 if test "$LINGUAS" = ""; then
17958 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17959 else
17960 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17961 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17963 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
17964 else
17965 CAS_MANPAGES=
17970 if test "$WXCAS" == "yes"; then
17971 if test "$LINGUAS" = ""; then
17972 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17973 else
17974 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17975 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17977 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
17978 else
17979 WXCAS_MANPAGES=
17984 if test "$ED2K" == "yes"; then
17985 if test "$LINGUAS" = ""; then
17986 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17987 else
17988 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17989 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17991 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
17992 else
17993 ED2K_MANPAGES=
17998 if test "$ALC" == "yes"; then
17999 if test "$LINGUAS" = ""; then
18000 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18001 else
18002 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18003 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18005 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18006 else
18007 ALC_MANPAGES=
18012 if test "$ALCC" == "yes"; then
18013 if test "$LINGUAS" = ""; then
18014 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18015 else
18016 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18017 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18019 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18020 else
18021 ALCC_MANPAGES=
18026 if test "$MONOLITHIC" == "yes"; then
18027 if test "$LINGUAS" = ""; then
18028 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18029 else
18030 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18031 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18033 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18034 else
18035 MONOLITHIC_MANPAGES=
18039 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18040 echo "${ECHO_T}${LINGUAS:-all}" >&6
18043 HAVE_GETTEXT="no"
18044 esac
18046 echo "$as_me:$LINENO: checking denoising level" >&5
18047 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18048 if test "$denoiselevel" = "yes"; then
18049 denoiselevel=5
18051 if test "$denoiselevel" = "no"; then
18052 denoiselevel=0
18054 if test $denoiselevel -gt 4; then
18055 if test "${svndate:+set}" = "set"; then
18056 denoiselevel=0
18057 else
18058 denoiselevel=4
18062 echo "$as_me:$LINENO: result: $denoiselevel" >&5
18063 echo "${ECHO_T}$denoiselevel" >&6
18065 ac_config_commands="$ac_config_commands denoiser"
18071 if test x$WEB = xyes; then
18072 WEB_TRUE=
18073 WEB_FALSE='#'
18074 else
18075 WEB_TRUE='#'
18076 WEB_FALSE=
18081 if test x$ED2K = xyes; then
18082 ED2K_TRUE=
18083 ED2K_FALSE='#'
18084 else
18085 ED2K_TRUE='#'
18086 ED2K_FALSE=
18091 if test x$CAS = xyes; then
18092 CAS_TRUE=
18093 CAS_FALSE='#'
18094 else
18095 CAS_TRUE='#'
18096 CAS_FALSE=
18101 if test x$WXCAS = xyes; then
18102 WXCAS_TRUE=
18103 WXCAS_FALSE='#'
18104 else
18105 WXCAS_TRUE='#'
18106 WXCAS_FALSE=
18111 if test x$ALC = xyes; then
18112 ALC_TRUE=
18113 ALC_FALSE='#'
18114 else
18115 ALC_TRUE='#'
18116 ALC_FALSE=
18121 if test x$ALCC = xyes; then
18122 ALCC_TRUE=
18123 ALCC_FALSE='#'
18124 else
18125 ALCC_TRUE='#'
18126 ALCC_FALSE=
18131 if test x$AMULE_GUI = xyes; then
18132 AMULE_GUI_TRUE=
18133 AMULE_GUI_FALSE='#'
18134 else
18135 AMULE_GUI_TRUE='#'
18136 AMULE_GUI_FALSE=
18141 if test x$AMULE_DAEMON = xyes; then
18142 AMULE_DAEMON_TRUE=
18143 AMULE_DAEMON_FALSE='#'
18144 else
18145 AMULE_DAEMON_TRUE='#'
18146 AMULE_DAEMON_FALSE=
18151 if test x$AMULECMD = xyes; then
18152 COMPILE_CMD_TRUE=
18153 COMPILE_CMD_FALSE='#'
18154 else
18155 COMPILE_CMD_TRUE='#'
18156 COMPILE_CMD_FALSE=
18161 if test x$MONOLITHIC = xyes; then
18162 MONOLITHIC_TRUE=
18163 MONOLITHIC_FALSE='#'
18164 else
18165 MONOLITHIC_TRUE='#'
18166 MONOLITHIC_FALSE=
18171 if test x$ENABLE_UPNP = xyes -a x$SYS != xwin32; then
18172 ENABLE_UPNP_TRUE=
18173 ENABLE_UPNP_FALSE='#'
18174 else
18175 ENABLE_UPNP_TRUE='#'
18176 ENABLE_UPNP_FALSE=
18181 if test x$ENABLE_IP2COUNTRY = xyes; then
18182 ENABLE_IP2COUNTRY_TRUE=
18183 ENABLE_IP2COUNTRY_FALSE='#'
18184 else
18185 ENABLE_IP2COUNTRY_TRUE='#'
18186 ENABLE_IP2COUNTRY_FALSE=
18191 if test x$SYS = xwin32; then
18192 SYS_WIN32_TRUE=
18193 SYS_WIN32_FALSE='#'
18194 else
18195 SYS_WIN32_TRUE='#'
18196 SYS_WIN32_FALSE=
18201 if test x$SYS = xwin32 -a "$RC" != ":"; then
18202 NEED_RC_TRUE=
18203 NEED_RC_FALSE='#'
18204 else
18205 NEED_RC_TRUE='#'
18206 NEED_RC_FALSE=
18211 if test x$SYS = xdarwin; then
18212 NEED_CORESERVICES_TRUE=
18213 NEED_CORESERVICES_FALSE='#'
18214 else
18215 NEED_CORESERVICES_TRUE='#'
18216 NEED_CORESERVICES_FALSE=
18221 if test x$HAVE_GETTEXT = xyes; then
18222 COMPILE_NLS_TRUE=
18223 COMPILE_NLS_FALSE='#'
18224 else
18225 COMPILE_NLS_TRUE='#'
18226 COMPILE_NLS_FALSE=
18231 if test x$HAVE_FLEX_EXTENDED = xyes; then
18232 GENERATE_FLEX_HEADER_TRUE=
18233 GENERATE_FLEX_HEADER_FALSE='#'
18234 else
18235 GENERATE_FLEX_HEADER_TRUE='#'
18236 GENERATE_FLEX_HEADER_FALSE=
18240 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18242 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18243 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18244 if test "${vl_cv_lib_readline+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18248 ORIG_LIBS="$LIBS"
18249 for readline_lib in readline edit editline; do
18250 for termcap_lib in "" termcap curses ncurses; do
18251 if test -z "$termcap_lib"; then
18252 TRY_LIB="-l$readline_lib"
18253 else
18254 TRY_LIB="-l$readline_lib -l$termcap_lib"
18256 LIBS="$ORIG_LIBS $TRY_LIB"
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h. */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18264 /* Override any gcc2 internal prototype to avoid an error. */
18265 #ifdef __cplusplus
18266 extern "C"
18267 #endif
18268 /* We use char because int might match the return type of a gcc2
18269 builtin and then its argument prototype would still apply. */
18270 char readline ();
18272 main ()
18274 readline ();
18276 return 0;
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281 (eval $ac_link) 2>conftest.er1
18282 ac_status=$?
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
18288 { ac_try='test -z "$ac_c_werror_flag"
18289 || test ! -s conftest.err'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; } &&
18295 { ac_try='test -s conftest$ac_exeext'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 vl_cv_lib_readline="$TRY_LIB"
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18307 rm -f conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309 if test -n "$vl_cv_lib_readline"; then
18310 break
18312 done
18313 if test -n "$vl_cv_lib_readline"; then
18314 break
18316 done
18317 if test -z "$vl_cv_lib_readline"; then
18318 vl_cv_lib_readline="no"
18319 LIBS="$ORIG_LIBS"
18320 READLINE_LIBS=""
18321 else
18322 READLINE_LIBS="$vl_cv_lib_readline"
18326 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18327 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18329 if test "$vl_cv_lib_readline" != "no"; then
18331 cat >>confdefs.h <<\_ACEOF
18332 #define HAVE_LIBREADLINE 1
18333 _ACEOF
18337 for ac_header in readline.h readline/readline.h
18339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18341 echo "$as_me:$LINENO: checking for $ac_header" >&5
18342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18348 else
18349 # Is the header compilable?
18350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h. */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 $ac_includes_default
18359 #include <$ac_header>
18360 _ACEOF
18361 rm -f conftest.$ac_objext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18363 (eval $ac_compile) 2>conftest.er1
18364 ac_status=$?
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag"
18371 || test ! -s conftest.err'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest.$ac_objext'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ac_header_compiler=yes
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ac_header_compiler=no
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18392 echo "${ECHO_T}$ac_header_compiler" >&6
18394 # Is the header present?
18395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 #include <$ac_header>
18404 _ACEOF
18405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18407 ac_status=$?
18408 grep -v '^ *+' conftest.er1 >conftest.err
18409 rm -f conftest.er1
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } >/dev/null; then
18413 if test -s conftest.err; then
18414 ac_cpp_err=$ac_c_preproc_warn_flag
18415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18416 else
18417 ac_cpp_err=
18419 else
18420 ac_cpp_err=yes
18422 if test -z "$ac_cpp_err"; then
18423 ac_header_preproc=yes
18424 else
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 ac_header_preproc=no
18430 rm -f conftest.err conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18432 echo "${ECHO_T}$ac_header_preproc" >&6
18434 # So? What about this header?
18435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18436 yes:no: )
18437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18441 ac_header_preproc=yes
18443 no:yes:* )
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18457 cat <<\_ASBOX
18458 ## ------------------------------ ##
18459 ## Report this to admin@amule.org ##
18460 ## ------------------------------ ##
18461 _ASBOX
18463 sed "s/^/$as_me: WARNING: /" >&2
18465 esac
18466 echo "$as_me:$LINENO: checking for $ac_header" >&5
18467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471 eval "$as_ac_Header=\$ac_header_preproc"
18473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18478 cat >>confdefs.h <<_ACEOF
18479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18480 _ACEOF
18484 done
18486 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18487 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18488 if test "${vl_cv_lib_readline_history+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18492 vl_cv_lib_readline_history="no"
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 /* Override any gcc2 internal prototype to avoid an error. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 /* We use char because int might match the return type of a gcc2
18505 builtin and then its argument prototype would still apply. */
18506 char add_history ();
18508 main ()
18510 add_history ();
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18517 (eval $ac_link) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 vl_cv_lib_readline_history="yes"
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18543 rm -f conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18547 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18548 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18549 if test "$vl_cv_lib_readline_history" = "yes"; then
18551 cat >>confdefs.h <<\_ACEOF
18552 #define HAVE_READLINE_HISTORY 1
18553 _ACEOF
18557 for ac_header in history.h readline/history.h
18559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18561 echo "$as_me:$LINENO: checking for $ac_header" >&5
18562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18568 else
18569 # Is the header compilable?
18570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18572 cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h. */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18579 #include <$ac_header>
18580 _ACEOF
18581 rm -f conftest.$ac_objext
18582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18583 (eval $ac_compile) 2>conftest.er1
18584 ac_status=$?
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag"
18591 || test ! -s conftest.err'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest.$ac_objext'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 ac_header_compiler=yes
18604 else
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_header_compiler=no
18610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18612 echo "${ECHO_T}$ac_header_compiler" >&6
18614 # Is the header present?
18615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 #include <$ac_header>
18624 _ACEOF
18625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } >/dev/null; then
18633 if test -s conftest.err; then
18634 ac_cpp_err=$ac_c_preproc_warn_flag
18635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18636 else
18637 ac_cpp_err=
18639 else
18640 ac_cpp_err=yes
18642 if test -z "$ac_cpp_err"; then
18643 ac_header_preproc=yes
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_header_preproc=no
18650 rm -f conftest.err conftest.$ac_ext
18651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18652 echo "${ECHO_T}$ac_header_preproc" >&6
18654 # So? What about this header?
18655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18656 yes:no: )
18657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18661 ac_header_preproc=yes
18663 no:yes:* )
18664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18677 cat <<\_ASBOX
18678 ## ------------------------------ ##
18679 ## Report this to admin@amule.org ##
18680 ## ------------------------------ ##
18681 _ASBOX
18683 sed "s/^/$as_me: WARNING: /" >&2
18685 esac
18686 echo "$as_me:$LINENO: checking for $ac_header" >&5
18687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691 eval "$as_ac_Header=\$ac_header_preproc"
18693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18698 cat >>confdefs.h <<_ACEOF
18699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18700 _ACEOF
18704 done
18709 LIBS="$ORIG_LIBS"
18713 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18717 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18718 if test "${with_ccache_prefix+set}" = set; then
18719 withval="$with_ccache_prefix"
18720 ccache_prefix="$withval"
18721 else
18722 ccache_prefix=""
18726 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18727 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18728 echo "$as_me:$LINENO: result: $ccache" >&5
18729 echo "${ECHO_T}$ccache" >&6
18732 case "$ccache" in
18734 yes)
18736 if test x$ccache_prefix == x ; then
18737 ccache_full=$(which ccache)
18738 ccache_prefix=$(dirname ${ccache_full})
18740 $ccache_prefix/ccache -V > /dev/null 2>&1
18741 CCACHE=$?
18742 if test "$CCACHE" != 0; then
18743 result="no"
18744 else
18745 result="yes"
18747 echo "$as_me:$LINENO: checking for ccache presence" >&5
18748 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18749 echo "$as_me:$LINENO: result: $result" >&5
18750 echo "${ECHO_T}$result" >&6
18754 if [ $CCACHE = 0 ]; then
18755 GCC="$ccache_prefix/ccache $GCC"
18756 CC="$ccache_prefix/ccache $CC"
18757 GXX="$ccache_prefix/ccache $GXX"
18758 CXX="$ccache_prefix/ccache $CXX"
18759 BUILD_CC="$ccache_prefix/ccache $BUILD_CC"
18761 esac
18763 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/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18765 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
18767 if test x$SYS = xwin32; then
18768 ac_config_files="$ac_config_files version.rc"
18772 cat >confcache <<\_ACEOF
18773 # This file is a shell script that caches the results of configure
18774 # tests run on this system so they can be shared between configure
18775 # scripts and configure runs, see configure's option --config-cache.
18776 # It is not useful on other systems. If it contains results you don't
18777 # want to keep, you may remove or edit it.
18779 # config.status only pays attention to the cache file if you give it
18780 # the --recheck option to rerun configure.
18782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18784 # following values.
18786 _ACEOF
18788 # The following way of writing the cache mishandles newlines in values,
18789 # but we know of no workaround that is simple, portable, and efficient.
18790 # So, don't put newlines in cache variables' values.
18791 # Ultrix sh set writes to stderr and can't be redirected directly,
18792 # and sets the high bit in the cache file unless we assign to the vars.
18794 (set) 2>&1 |
18795 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18796 *ac_space=\ *)
18797 # `set' does not quote correctly, so add quotes (double-quote
18798 # substitution turns \\\\ into \\, and sed turns \\ into \).
18799 sed -n \
18800 "s/'/'\\\\''/g;
18801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18804 # `set' quotes correctly as required by POSIX, so do not add quotes.
18805 sed -n \
18806 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18808 esac;
18810 sed '
18811 t clear
18812 : clear
18813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18814 t end
18815 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18816 : end' >>confcache
18817 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18818 if test -w $cache_file; then
18819 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18820 cat confcache >$cache_file
18821 else
18822 echo "not updating unwritable cache $cache_file"
18825 rm -f confcache
18827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18828 # Let make expand exec_prefix.
18829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18833 # trailing colons and then remove the whole line if VPATH becomes empty
18834 # (actually we leave an empty line to preserve line numbers).
18835 if test "x$srcdir" = x.; then
18836 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18837 s/:*\$(srcdir):*/:/;
18838 s/:*\${srcdir}:*/:/;
18839 s/:*@srcdir@:*/:/;
18840 s/^\([^=]*=[ ]*\):*/\1/;
18841 s/:*$//;
18842 s/^[^=]*=[ ]*$//;
18846 DEFS=-DHAVE_CONFIG_H
18848 ac_libobjs=
18849 ac_ltlibobjs=
18850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18851 # 1. Remove the extension, and $U if already installed.
18852 ac_i=`echo "$ac_i" |
18853 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18854 # 2. Add them.
18855 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18856 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18857 done
18858 LIBOBJS=$ac_libobjs
18860 LTLIBOBJS=$ac_ltlibobjs
18863 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18864 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18865 Usually this means the macro was only invoked conditionally." >&5
18866 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18867 Usually this means the macro was only invoked conditionally." >&2;}
18868 { (exit 1); exit 1; }; }
18870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18871 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18872 Usually this means the macro was only invoked conditionally." >&5
18873 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18874 Usually this means the macro was only invoked conditionally." >&2;}
18875 { (exit 1); exit 1; }; }
18877 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18878 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18879 Usually this means the macro was only invoked conditionally." >&5
18880 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18881 Usually this means the macro was only invoked conditionally." >&2;}
18882 { (exit 1); exit 1; }; }
18884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18885 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18886 Usually this means the macro was only invoked conditionally." >&5
18887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18888 Usually this means the macro was only invoked conditionally." >&2;}
18889 { (exit 1); exit 1; }; }
18891 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18892 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18893 Usually this means the macro was only invoked conditionally." >&5
18894 echo "$as_me: error: conditional \"WEB\" was never defined.
18895 Usually this means the macro was only invoked conditionally." >&2;}
18896 { (exit 1); exit 1; }; }
18898 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
18899 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
18900 Usually this means the macro was only invoked conditionally." >&5
18901 echo "$as_me: error: conditional \"ED2K\" was never defined.
18902 Usually this means the macro was only invoked conditionally." >&2;}
18903 { (exit 1); exit 1; }; }
18905 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
18906 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
18907 Usually this means the macro was only invoked conditionally." >&5
18908 echo "$as_me: error: conditional \"CAS\" was never defined.
18909 Usually this means the macro was only invoked conditionally." >&2;}
18910 { (exit 1); exit 1; }; }
18912 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
18913 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
18914 Usually this means the macro was only invoked conditionally." >&5
18915 echo "$as_me: error: conditional \"WXCAS\" was never defined.
18916 Usually this means the macro was only invoked conditionally." >&2;}
18917 { (exit 1); exit 1; }; }
18919 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
18920 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
18921 Usually this means the macro was only invoked conditionally." >&5
18922 echo "$as_me: error: conditional \"ALC\" was never defined.
18923 Usually this means the macro was only invoked conditionally." >&2;}
18924 { (exit 1); exit 1; }; }
18926 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
18927 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
18928 Usually this means the macro was only invoked conditionally." >&5
18929 echo "$as_me: error: conditional \"ALCC\" was never defined.
18930 Usually this means the macro was only invoked conditionally." >&2;}
18931 { (exit 1); exit 1; }; }
18933 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
18934 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
18935 Usually this means the macro was only invoked conditionally." >&5
18936 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
18937 Usually this means the macro was only invoked conditionally." >&2;}
18938 { (exit 1); exit 1; }; }
18940 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
18941 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
18942 Usually this means the macro was only invoked conditionally." >&5
18943 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
18944 Usually this means the macro was only invoked conditionally." >&2;}
18945 { (exit 1); exit 1; }; }
18947 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
18948 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
18949 Usually this means the macro was only invoked conditionally." >&5
18950 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
18951 Usually this means the macro was only invoked conditionally." >&2;}
18952 { (exit 1); exit 1; }; }
18954 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
18955 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
18956 Usually this means the macro was only invoked conditionally." >&5
18957 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
18958 Usually this means the macro was only invoked conditionally." >&2;}
18959 { (exit 1); exit 1; }; }
18961 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
18962 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
18963 Usually this means the macro was only invoked conditionally." >&5
18964 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
18965 Usually this means the macro was only invoked conditionally." >&2;}
18966 { (exit 1); exit 1; }; }
18968 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
18969 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18970 Usually this means the macro was only invoked conditionally." >&5
18971 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18972 Usually this means the macro was only invoked conditionally." >&2;}
18973 { (exit 1); exit 1; }; }
18975 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
18976 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
18977 Usually this means the macro was only invoked conditionally." >&5
18978 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
18979 Usually this means the macro was only invoked conditionally." >&2;}
18980 { (exit 1); exit 1; }; }
18982 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
18983 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
18984 Usually this means the macro was only invoked conditionally." >&5
18985 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
18986 Usually this means the macro was only invoked conditionally." >&2;}
18987 { (exit 1); exit 1; }; }
18989 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
18990 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
18991 Usually this means the macro was only invoked conditionally." >&5
18992 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
18993 Usually this means the macro was only invoked conditionally." >&2;}
18994 { (exit 1); exit 1; }; }
18996 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
18997 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
18998 Usually this means the macro was only invoked conditionally." >&5
18999 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19000 Usually this means the macro was only invoked conditionally." >&2;}
19001 { (exit 1); exit 1; }; }
19003 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19004 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19005 Usually this means the macro was only invoked conditionally." >&5
19006 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19007 Usually this means the macro was only invoked conditionally." >&2;}
19008 { (exit 1); exit 1; }; }
19011 : ${CONFIG_STATUS=./config.status}
19012 ac_clean_files_save=$ac_clean_files
19013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19016 cat >$CONFIG_STATUS <<_ACEOF
19017 #! $SHELL
19018 # Generated by $as_me.
19019 # Run this file to recreate the current configuration.
19020 # Compiler output produced by configure, useful for debugging
19021 # configure, is in config.log if it exists.
19023 debug=false
19024 ac_cs_recheck=false
19025 ac_cs_silent=false
19026 SHELL=\${CONFIG_SHELL-$SHELL}
19027 _ACEOF
19029 cat >>$CONFIG_STATUS <<\_ACEOF
19030 ## --------------------- ##
19031 ## M4sh Initialization. ##
19032 ## --------------------- ##
19034 # Be Bourne compatible
19035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19036 emulate sh
19037 NULLCMD=:
19038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19039 # is contrary to our usage. Disable this feature.
19040 alias -g '${1+"$@"}'='"$@"'
19041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19042 set -o posix
19044 DUALCASE=1; export DUALCASE # for MKS sh
19046 # Support unset when possible.
19047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19048 as_unset=unset
19049 else
19050 as_unset=false
19054 # Work around bugs in pre-3.0 UWIN ksh.
19055 $as_unset ENV MAIL MAILPATH
19056 PS1='$ '
19057 PS2='> '
19058 PS4='+ '
19060 # NLS nuisances.
19061 for as_var in \
19062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19064 LC_TELEPHONE LC_TIME
19066 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19067 eval $as_var=C; export $as_var
19068 else
19069 $as_unset $as_var
19071 done
19073 # Required to use basename.
19074 if expr a : '\(a\)' >/dev/null 2>&1; then
19075 as_expr=expr
19076 else
19077 as_expr=false
19080 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19081 as_basename=basename
19082 else
19083 as_basename=false
19087 # Name of the executable.
19088 as_me=`$as_basename "$0" ||
19089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19090 X"$0" : 'X\(//\)$' \| \
19091 X"$0" : 'X\(/\)$' \| \
19092 . : '\(.\)' 2>/dev/null ||
19093 echo X/"$0" |
19094 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19095 /^X\/\(\/\/\)$/{ s//\1/; q; }
19096 /^X\/\(\/\).*/{ s//\1/; q; }
19097 s/.*/./; q'`
19100 # PATH needs CR, and LINENO needs CR and PATH.
19101 # Avoid depending upon Character Ranges.
19102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19105 as_cr_digits='0123456789'
19106 as_cr_alnum=$as_cr_Letters$as_cr_digits
19108 # The user is always right.
19109 if test "${PATH_SEPARATOR+set}" != set; then
19110 echo "#! /bin/sh" >conf$$.sh
19111 echo "exit 0" >>conf$$.sh
19112 chmod +x conf$$.sh
19113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19114 PATH_SEPARATOR=';'
19115 else
19116 PATH_SEPARATOR=:
19118 rm -f conf$$.sh
19122 as_lineno_1=$LINENO
19123 as_lineno_2=$LINENO
19124 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19125 test "x$as_lineno_1" != "x$as_lineno_2" &&
19126 test "x$as_lineno_3" = "x$as_lineno_2" || {
19127 # Find who we are. Look in the path if we contain no path at all
19128 # relative or not.
19129 case $0 in
19130 *[\\/]* ) as_myself=$0 ;;
19131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19132 for as_dir in $PATH
19134 IFS=$as_save_IFS
19135 test -z "$as_dir" && as_dir=.
19136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19137 done
19140 esac
19141 # We did not find ourselves, most probably we were run as `sh COMMAND'
19142 # in which case we are not to be found in the path.
19143 if test "x$as_myself" = x; then
19144 as_myself=$0
19146 if test ! -f "$as_myself"; then
19147 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19148 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19149 { (exit 1); exit 1; }; }
19151 case $CONFIG_SHELL in
19153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19156 IFS=$as_save_IFS
19157 test -z "$as_dir" && as_dir=.
19158 for as_base in sh bash ksh sh5; do
19159 case $as_dir in
19161 if ("$as_dir/$as_base" -c '
19162 as_lineno_1=$LINENO
19163 as_lineno_2=$LINENO
19164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19165 test "x$as_lineno_1" != "x$as_lineno_2" &&
19166 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19167 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19168 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19169 CONFIG_SHELL=$as_dir/$as_base
19170 export CONFIG_SHELL
19171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19172 fi;;
19173 esac
19174 done
19175 done
19177 esac
19179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19180 # uniformly replaced by the line number. The first 'sed' inserts a
19181 # line-number line before each line; the second 'sed' does the real
19182 # work. The second script uses 'N' to pair each line-number line
19183 # with the numbered line, and appends trailing '-' during
19184 # substitution so that $LINENO is not a special case at line end.
19185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19187 sed '=' <$as_myself |
19188 sed '
19190 s,$,-,
19191 : loop
19192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19193 t loop
19194 s,-$,,
19195 s,^['$as_cr_digits']*\n,,
19196 ' >$as_me.lineno &&
19197 chmod +x $as_me.lineno ||
19198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19200 { (exit 1); exit 1; }; }
19202 # Don't try to exec as it changes $[0], causing all sort of problems
19203 # (the dirname of $[0] is not the place where we might find the
19204 # original and so on. Autoconf is especially sensible to this).
19205 . ./$as_me.lineno
19206 # Exit status is that of the last command.
19207 exit
19211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19212 *c*,-n*) ECHO_N= ECHO_C='
19213 ' ECHO_T=' ' ;;
19214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19216 esac
19218 if expr a : '\(a\)' >/dev/null 2>&1; then
19219 as_expr=expr
19220 else
19221 as_expr=false
19224 rm -f conf$$ conf$$.exe conf$$.file
19225 echo >conf$$.file
19226 if ln -s conf$$.file conf$$ 2>/dev/null; then
19227 # We could just check for DJGPP; but this test a) works b) is more generic
19228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19229 if test -f conf$$.exe; then
19230 # Don't use ln at all; we don't have any links
19231 as_ln_s='cp -p'
19232 else
19233 as_ln_s='ln -s'
19235 elif ln conf$$.file conf$$ 2>/dev/null; then
19236 as_ln_s=ln
19237 else
19238 as_ln_s='cp -p'
19240 rm -f conf$$ conf$$.exe conf$$.file
19242 if mkdir -p . 2>/dev/null; then
19243 as_mkdir_p=:
19244 else
19245 test -d ./-p && rmdir ./-p
19246 as_mkdir_p=false
19249 as_executable_p="test -f"
19251 # Sed expression to map a string onto a valid CPP name.
19252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19254 # Sed expression to map a string onto a valid variable name.
19255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19258 # IFS
19259 # We need space, tab and new line, in precisely that order.
19260 as_nl='
19262 IFS=" $as_nl"
19264 # CDPATH.
19265 $as_unset CDPATH
19267 exec 6>&1
19269 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19270 # report actual input values of CONFIG_FILES etc. instead of their
19271 # values after options handling. Logging --version etc. is OK.
19272 exec 5>>config.log
19274 echo
19275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19276 ## Running $as_me. ##
19277 _ASBOX
19278 } >&5
19279 cat >&5 <<_CSEOF
19281 This file was extended by aMule $as_me SVN, which was
19282 generated by GNU Autoconf 2.59. Invocation command line was
19284 CONFIG_FILES = $CONFIG_FILES
19285 CONFIG_HEADERS = $CONFIG_HEADERS
19286 CONFIG_LINKS = $CONFIG_LINKS
19287 CONFIG_COMMANDS = $CONFIG_COMMANDS
19288 $ $0 $@
19290 _CSEOF
19291 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19292 echo >&5
19293 _ACEOF
19295 # Files that config.status was made for.
19296 if test -n "$ac_config_files"; then
19297 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19300 if test -n "$ac_config_headers"; then
19301 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19304 if test -n "$ac_config_links"; then
19305 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19308 if test -n "$ac_config_commands"; then
19309 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19312 cat >>$CONFIG_STATUS <<\_ACEOF
19314 ac_cs_usage="\
19315 \`$as_me' instantiates files from templates according to the
19316 current configuration.
19318 Usage: $0 [OPTIONS] [FILE]...
19320 -h, --help print this help, then exit
19321 -V, --version print version number, then exit
19322 -q, --quiet do not print progress messages
19323 -d, --debug don't remove temporary files
19324 --recheck update $as_me by reconfiguring in the same conditions
19325 --file=FILE[:TEMPLATE]
19326 instantiate the configuration file FILE
19327 --header=FILE[:TEMPLATE]
19328 instantiate the configuration header FILE
19330 Configuration files:
19331 $config_files
19333 Configuration headers:
19334 $config_headers
19336 Configuration commands:
19337 $config_commands
19339 Report bugs to <bug-autoconf@gnu.org>."
19340 _ACEOF
19342 cat >>$CONFIG_STATUS <<_ACEOF
19343 ac_cs_version="\\
19344 aMule config.status SVN
19345 configured by $0, generated by GNU Autoconf 2.59,
19346 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19348 Copyright (C) 2003 Free Software Foundation, Inc.
19349 This config.status script is free software; the Free Software Foundation
19350 gives unlimited permission to copy, distribute and modify it."
19351 srcdir=$srcdir
19352 INSTALL="$INSTALL"
19353 _ACEOF
19355 cat >>$CONFIG_STATUS <<\_ACEOF
19356 # If no file are specified by the user, then we need to provide default
19357 # value. By we need to know if files were specified by the user.
19358 ac_need_defaults=:
19359 while test $# != 0
19361 case $1 in
19362 --*=*)
19363 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19364 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19365 ac_shift=:
19368 ac_option=$1
19369 ac_optarg=$2
19370 ac_shift=shift
19372 *) # This is not an option, so the user has probably given explicit
19373 # arguments.
19374 ac_option=$1
19375 ac_need_defaults=false;;
19376 esac
19378 case $ac_option in
19379 # Handling of the options.
19380 _ACEOF
19381 cat >>$CONFIG_STATUS <<\_ACEOF
19382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19383 ac_cs_recheck=: ;;
19384 --version | --vers* | -V )
19385 echo "$ac_cs_version"; exit 0 ;;
19386 --he | --h)
19387 # Conflict between --help and --header
19388 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19389 Try \`$0 --help' for more information." >&5
19390 echo "$as_me: error: ambiguous option: $1
19391 Try \`$0 --help' for more information." >&2;}
19392 { (exit 1); exit 1; }; };;
19393 --help | --hel | -h )
19394 echo "$ac_cs_usage"; exit 0 ;;
19395 --debug | --d* | -d )
19396 debug=: ;;
19397 --file | --fil | --fi | --f )
19398 $ac_shift
19399 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19400 ac_need_defaults=false;;
19401 --header | --heade | --head | --hea )
19402 $ac_shift
19403 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19404 ac_need_defaults=false;;
19405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19407 ac_cs_silent=: ;;
19409 # This is an error.
19410 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19411 Try \`$0 --help' for more information." >&5
19412 echo "$as_me: error: unrecognized option: $1
19413 Try \`$0 --help' for more information." >&2;}
19414 { (exit 1); exit 1; }; } ;;
19416 *) ac_config_targets="$ac_config_targets $1" ;;
19418 esac
19419 shift
19420 done
19422 ac_configure_extra_args=
19424 if $ac_cs_silent; then
19425 exec 6>/dev/null
19426 ac_configure_extra_args="$ac_configure_extra_args --silent"
19429 _ACEOF
19430 cat >>$CONFIG_STATUS <<_ACEOF
19431 if \$ac_cs_recheck; then
19432 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19433 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19436 _ACEOF
19438 cat >>$CONFIG_STATUS <<_ACEOF
19440 # INIT-COMMANDS section.
19443 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19444 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19445 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19446 # from automake.
19447 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19448 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19449 LINGUAS="${LINGUAS-%UNSET%}"
19451 level=$denoiselevel
19453 _ACEOF
19457 cat >>$CONFIG_STATUS <<\_ACEOF
19458 for ac_config_target in $ac_config_targets
19460 case "$ac_config_target" in
19461 # Handling of arguments.
19462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19463 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19464 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19465 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19466 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19467 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19468 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19469 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19470 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19471 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19472 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19473 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19474 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19475 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19476 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19477 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19478 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19479 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19480 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19481 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19482 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19483 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19484 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19485 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19486 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19487 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19488 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19489 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19490 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19491 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19492 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19493 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19494 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19495 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19496 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19497 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19498 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19499 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19500 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19501 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19504 { (exit 1); exit 1; }; };;
19505 esac
19506 done
19508 # If the user did not use the arguments to specify the items to instantiate,
19509 # then the envvar interface is used. Set only those that are not.
19510 # We use the long form for the default assignment because of an extremely
19511 # bizarre bug on SunOS 4.1.3.
19512 if $ac_need_defaults; then
19513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19518 # Have a temporary directory for convenience. Make it in the build tree
19519 # simply because there is no reason to put it here, and in addition,
19520 # creating and moving files from /tmp can sometimes cause problems.
19521 # Create a temporary directory, and hook for its removal unless debugging.
19522 $debug ||
19524 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19525 trap '{ (exit 1); exit 1; }' 1 2 13 15
19528 # Create a (secure) tmp directory for tmp files.
19531 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19532 test -n "$tmp" && test -d "$tmp"
19533 } ||
19535 tmp=./confstat$$-$RANDOM
19536 (umask 077 && mkdir $tmp)
19537 } ||
19539 echo "$me: cannot create a temporary directory in ." >&2
19540 { (exit 1); exit 1; }
19543 _ACEOF
19545 cat >>$CONFIG_STATUS <<_ACEOF
19548 # CONFIG_FILES section.
19551 # No need to generate the scripts if there are no CONFIG_FILES.
19552 # This happens for instance when ./config.status config.h
19553 if test -n "\$CONFIG_FILES"; then
19554 # Protect against being on the right side of a sed subst in config.status.
19555 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19556 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19557 s,@SHELL@,$SHELL,;t t
19558 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19559 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19560 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19561 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19562 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19563 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19564 s,@exec_prefix@,$exec_prefix,;t t
19565 s,@prefix@,$prefix,;t t
19566 s,@program_transform_name@,$program_transform_name,;t t
19567 s,@bindir@,$bindir,;t t
19568 s,@sbindir@,$sbindir,;t t
19569 s,@libexecdir@,$libexecdir,;t t
19570 s,@datadir@,$datadir,;t t
19571 s,@sysconfdir@,$sysconfdir,;t t
19572 s,@sharedstatedir@,$sharedstatedir,;t t
19573 s,@localstatedir@,$localstatedir,;t t
19574 s,@libdir@,$libdir,;t t
19575 s,@includedir@,$includedir,;t t
19576 s,@oldincludedir@,$oldincludedir,;t t
19577 s,@infodir@,$infodir,;t t
19578 s,@mandir@,$mandir,;t t
19579 s,@build_alias@,$build_alias,;t t
19580 s,@host_alias@,$host_alias,;t t
19581 s,@target_alias@,$target_alias,;t t
19582 s,@DEFS@,$DEFS,;t t
19583 s,@ECHO_C@,$ECHO_C,;t t
19584 s,@ECHO_N@,$ECHO_N,;t t
19585 s,@ECHO_T@,$ECHO_T,;t t
19586 s,@LIBS@,$LIBS,;t t
19587 s,@build@,$build,;t t
19588 s,@build_cpu@,$build_cpu,;t t
19589 s,@build_vendor@,$build_vendor,;t t
19590 s,@build_os@,$build_os,;t t
19591 s,@host@,$host,;t t
19592 s,@host_cpu@,$host_cpu,;t t
19593 s,@host_vendor@,$host_vendor,;t t
19594 s,@host_os@,$host_os,;t t
19595 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19596 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19597 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19598 s,@CYGPATH_W@,$CYGPATH_W,;t t
19599 s,@PACKAGE@,$PACKAGE,;t t
19600 s,@VERSION@,$VERSION,;t t
19601 s,@ACLOCAL@,$ACLOCAL,;t t
19602 s,@AUTOCONF@,$AUTOCONF,;t t
19603 s,@AUTOMAKE@,$AUTOMAKE,;t t
19604 s,@AUTOHEADER@,$AUTOHEADER,;t t
19605 s,@MAKEINFO@,$MAKEINFO,;t t
19606 s,@install_sh@,$install_sh,;t t
19607 s,@STRIP@,$STRIP,;t t
19608 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19609 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19610 s,@mkdir_p@,$mkdir_p,;t t
19611 s,@AWK@,$AWK,;t t
19612 s,@SET_MAKE@,$SET_MAKE,;t t
19613 s,@am__leading_dot@,$am__leading_dot,;t t
19614 s,@AMTAR@,$AMTAR,;t t
19615 s,@am__tar@,$am__tar,;t t
19616 s,@am__untar@,$am__untar,;t t
19617 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19618 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19619 s,@MAINT@,$MAINT,;t t
19620 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19621 s,@X11LIBS@,$X11LIBS,;t t
19622 s,@CXX@,$CXX,;t t
19623 s,@CXXFLAGS@,$CXXFLAGS,;t t
19624 s,@LDFLAGS@,$LDFLAGS,;t t
19625 s,@CPPFLAGS@,$CPPFLAGS,;t t
19626 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19627 s,@EXEEXT@,$EXEEXT,;t t
19628 s,@OBJEXT@,$OBJEXT,;t t
19629 s,@DEPDIR@,$DEPDIR,;t t
19630 s,@am__include@,$am__include,;t t
19631 s,@am__quote@,$am__quote,;t t
19632 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19633 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19634 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19635 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19636 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19637 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19638 s,@CXXCPP@,$CXXCPP,;t t
19639 s,@CC@,$CC,;t t
19640 s,@CFLAGS@,$CFLAGS,;t t
19641 s,@ac_ct_CC@,$ac_ct_CC,;t t
19642 s,@CCDEPMODE@,$CCDEPMODE,;t t
19643 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19644 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19645 s,@CPP@,$CPP,;t t
19646 s,@BUILD_CC@,$BUILD_CC,;t t
19647 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19648 s,@EXEEXT@,$EXEEXT,;t t
19649 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19650 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19651 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19652 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19653 s,@EGREP@,$EGREP,;t t
19654 s,@LEX@,$LEX,;t t
19655 s,@LEXLIB@,$LEXLIB,;t t
19656 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19657 s,@RANLIB@,$RANLIB,;t t
19658 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19659 s,@YACC@,$YACC,;t t
19660 s,@AR@,$AR,;t t
19661 s,@ac_ct_AR@,$ac_ct_AR,;t t
19662 s,@LD@,$LD,;t t
19663 s,@ac_ct_LD@,$ac_ct_LD,;t t
19664 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19665 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19666 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19667 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19668 s,@CAS_DEFS@,$CAS_DEFS,;t t
19669 s,@REGEX_LIB@,$REGEX_LIB,;t t
19670 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19671 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19672 s,@LIBPNG_CXXFLAGS@,$LIBPNG_CXXFLAGS,;t t
19673 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19674 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19675 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19676 s,@GEOIP_INCLUDE@,$GEOIP_INCLUDE,;t t
19677 s,@GEOIP_LIB@,$GEOIP_LIB,;t t
19678 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19679 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19680 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19681 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19682 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19683 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19684 s,@WX_LIBS@,$WX_LIBS,;t t
19685 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19686 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19687 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19688 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19689 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19690 s,@WX_UNICODE@,$WX_UNICODE,;t t
19691 s,@WX_DEBUG@,$WX_DEBUG,;t t
19692 s,@WX_SHARED@,$WX_SHARED,;t t
19693 s,@WX_PORT@,$WX_PORT,;t t
19694 s,@RC@,$RC,;t t
19695 s,@ac_ct_RC@,$ac_ct_RC,;t t
19696 s,@RCFLAGS@,$RCFLAGS,;t t
19697 s,@CRYPTO_PP_PREFIX@,$CRYPTO_PP_PREFIX,;t t
19698 s,@CRYPTO_PP_VERSION_STRING@,$CRYPTO_PP_VERSION_STRING,;t t
19699 s,@CRYPTO_PP_VERSION_NUMBER@,$CRYPTO_PP_VERSION_NUMBER,;t t
19700 s,@CRYPTO_PP_STYLE@,$CRYPTO_PP_STYLE,;t t
19701 s,@CRYPTO_PP_LIB_NAME@,$CRYPTO_PP_LIB_NAME,;t t
19702 s,@CRYPTO_PP_INCLUDE_PREFIX@,$CRYPTO_PP_INCLUDE_PREFIX,;t t
19703 s,@CRYPTO_PP_CXXFLAGS@,$CRYPTO_PP_CXXFLAGS,;t t
19704 s,@CRYPTO_PP_LDFLAGS@,$CRYPTO_PP_LDFLAGS,;t t
19705 s,@CRYPTOLIBS@,$CRYPTOLIBS,;t t
19706 s,@BFD_FLAGS@,$BFD_FLAGS,;t t
19707 s,@BFD_LIB@,$BFD_LIB,;t t
19708 s,@HAVE_GETTEXT@,$HAVE_GETTEXT,;t t
19709 s,@HAVE_FLEX_EXTENDED@,$HAVE_FLEX_EXTENDED,;t t
19710 s,@ALLOCA@,$ALLOCA,;t t
19711 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19712 s,@MSGFMT@,$MSGFMT,;t t
19713 s,@GMSGFMT@,$GMSGFMT,;t t
19714 s,@XGETTEXT@,$XGETTEXT,;t t
19715 s,@MSGMERGE@,$MSGMERGE,;t t
19716 s,@GLIBC21@,$GLIBC21,;t t
19717 s,@LIBICONV@,$LIBICONV,;t t
19718 s,@LTLIBICONV@,$LTLIBICONV,;t t
19719 s,@INTLBISON@,$INTLBISON,;t t
19720 s,@USE_NLS@,$USE_NLS,;t t
19721 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19722 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19723 s,@CATOBJEXT@,$CATOBJEXT,;t t
19724 s,@INTLOBJS@,$INTLOBJS,;t t
19725 s,@DATADIRNAME@,$DATADIRNAME,;t t
19726 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19727 s,@GENCAT@,$GENCAT,;t t
19728 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19729 s,@INTLLIBS@,$INTLLIBS,;t t
19730 s,@LIBINTL@,$LIBINTL,;t t
19731 s,@LTLIBINTL@,$LTLIBINTL,;t t
19732 s,@POSUB@,$POSUB,;t t
19733 s,@LIBOBJS@,$LIBOBJS,;t t
19734 s,@POW_LIB@,$POW_LIB,;t t
19735 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19736 s,@WXBASE_CFLAGS@,$WXBASE_CFLAGS,;t t
19737 s,@WXBASE_CXXFLAGS@,$WXBASE_CXXFLAGS,;t t
19738 s,@docdir@,$docdir,;t t
19739 s,@SVNDATE@,$SVNDATE,;t t
19740 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19741 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19742 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19743 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19744 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19745 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19746 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19747 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19748 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19749 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19750 s,@WEB_TRUE@,$WEB_TRUE,;t t
19751 s,@WEB_FALSE@,$WEB_FALSE,;t t
19752 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19753 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19754 s,@CAS_TRUE@,$CAS_TRUE,;t t
19755 s,@CAS_FALSE@,$CAS_FALSE,;t t
19756 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19757 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19758 s,@ALC_TRUE@,$ALC_TRUE,;t t
19759 s,@ALC_FALSE@,$ALC_FALSE,;t t
19760 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19761 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19762 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19763 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19764 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19765 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19766 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19767 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19768 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19769 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19770 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19771 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19772 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19773 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19774 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19775 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19776 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19777 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19778 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19779 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19780 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19781 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19782 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19783 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19784 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19785 s,@ccache@,$ccache,;t t
19786 s,@CCACHE@,$CCACHE,;t t
19787 s,@ccache_prefix@,$ccache_prefix,;t t
19788 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19789 CEOF
19791 _ACEOF
19793 cat >>$CONFIG_STATUS <<\_ACEOF
19794 # Split the substitutions into bite-sized pieces for seds with
19795 # small command number limits, like on Digital OSF/1 and HP-UX.
19796 ac_max_sed_lines=48
19797 ac_sed_frag=1 # Number of current file.
19798 ac_beg=1 # First line for current file.
19799 ac_end=$ac_max_sed_lines # Line after last line for current file.
19800 ac_more_lines=:
19801 ac_sed_cmds=
19802 while $ac_more_lines; do
19803 if test $ac_beg -gt 1; then
19804 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19805 else
19806 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19808 if test ! -s $tmp/subs.frag; then
19809 ac_more_lines=false
19810 else
19811 # The purpose of the label and of the branching condition is to
19812 # speed up the sed processing (if there are no `@' at all, there
19813 # is no need to browse any of the substitutions).
19814 # These are the two extra sed commands mentioned above.
19815 (echo ':t
19816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19817 if test -z "$ac_sed_cmds"; then
19818 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19819 else
19820 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19822 ac_sed_frag=`expr $ac_sed_frag + 1`
19823 ac_beg=$ac_end
19824 ac_end=`expr $ac_end + $ac_max_sed_lines`
19826 done
19827 if test -z "$ac_sed_cmds"; then
19828 ac_sed_cmds=cat
19830 fi # test -n "$CONFIG_FILES"
19832 _ACEOF
19833 cat >>$CONFIG_STATUS <<\_ACEOF
19834 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19836 case $ac_file in
19837 - | *:- | *:-:* ) # input from stdin
19838 cat >$tmp/stdin
19839 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19841 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19843 * ) ac_file_in=$ac_file.in ;;
19844 esac
19846 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19847 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19849 X"$ac_file" : 'X\(//\)[^/]' \| \
19850 X"$ac_file" : 'X\(//\)$' \| \
19851 X"$ac_file" : 'X\(/\)' \| \
19852 . : '\(.\)' 2>/dev/null ||
19853 echo X"$ac_file" |
19854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19856 /^X\(\/\/\)$/{ s//\1/; q; }
19857 /^X\(\/\).*/{ s//\1/; q; }
19858 s/.*/./; q'`
19859 { if $as_mkdir_p; then
19860 mkdir -p "$ac_dir"
19861 else
19862 as_dir="$ac_dir"
19863 as_dirs=
19864 while test ! -d "$as_dir"; do
19865 as_dirs="$as_dir $as_dirs"
19866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19868 X"$as_dir" : 'X\(//\)[^/]' \| \
19869 X"$as_dir" : 'X\(//\)$' \| \
19870 X"$as_dir" : 'X\(/\)' \| \
19871 . : '\(.\)' 2>/dev/null ||
19872 echo X"$as_dir" |
19873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19875 /^X\(\/\/\)$/{ s//\1/; q; }
19876 /^X\(\/\).*/{ s//\1/; q; }
19877 s/.*/./; q'`
19878 done
19879 test ! -n "$as_dirs" || mkdir $as_dirs
19880 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19882 { (exit 1); exit 1; }; }; }
19884 ac_builddir=.
19886 if test "$ac_dir" != .; then
19887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19888 # A "../" for each directory in $ac_dir_suffix.
19889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19890 else
19891 ac_dir_suffix= ac_top_builddir=
19894 case $srcdir in
19895 .) # No --srcdir option. We are building in place.
19896 ac_srcdir=.
19897 if test -z "$ac_top_builddir"; then
19898 ac_top_srcdir=.
19899 else
19900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19901 fi ;;
19902 [\\/]* | ?:[\\/]* ) # Absolute path.
19903 ac_srcdir=$srcdir$ac_dir_suffix;
19904 ac_top_srcdir=$srcdir ;;
19905 *) # Relative path.
19906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19908 esac
19910 # Do not use `cd foo && pwd` to compute absolute paths, because
19911 # the directories may not exist.
19912 case `pwd` in
19913 .) ac_abs_builddir="$ac_dir";;
19915 case "$ac_dir" in
19916 .) ac_abs_builddir=`pwd`;;
19917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19919 esac;;
19920 esac
19921 case $ac_abs_builddir in
19922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19924 case ${ac_top_builddir}. in
19925 .) ac_abs_top_builddir=$ac_abs_builddir;;
19926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19928 esac;;
19929 esac
19930 case $ac_abs_builddir in
19931 .) ac_abs_srcdir=$ac_srcdir;;
19933 case $ac_srcdir in
19934 .) ac_abs_srcdir=$ac_abs_builddir;;
19935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19937 esac;;
19938 esac
19939 case $ac_abs_builddir in
19940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19942 case $ac_top_srcdir in
19943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19946 esac;;
19947 esac
19950 case $INSTALL in
19951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19952 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19953 esac
19955 if test x"$ac_file" != x-; then
19956 { echo "$as_me:$LINENO: creating $ac_file" >&5
19957 echo "$as_me: creating $ac_file" >&6;}
19958 rm -f "$ac_file"
19960 # Let's still pretend it is `configure' which instantiates (i.e., don't
19961 # use $as_me), people would be surprised to read:
19962 # /* config.h. Generated by config.status. */
19963 if test x"$ac_file" = x-; then
19964 configure_input=
19965 else
19966 configure_input="$ac_file. "
19968 configure_input=$configure_input"Generated from `echo $ac_file_in |
19969 sed 's,.*/,,'` by configure."
19971 # First look for the input files in the build tree, otherwise in the
19972 # src tree.
19973 ac_file_inputs=`IFS=:
19974 for f in $ac_file_in; do
19975 case $f in
19976 -) echo $tmp/stdin ;;
19977 [\\/$]*)
19978 # Absolute (can't be DOS-style, as IFS=:)
19979 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19980 echo "$as_me: error: cannot find input file: $f" >&2;}
19981 { (exit 1); exit 1; }; }
19982 echo "$f";;
19983 *) # Relative
19984 if test -f "$f"; then
19985 # Build tree
19986 echo "$f"
19987 elif test -f "$srcdir/$f"; then
19988 # Source tree
19989 echo "$srcdir/$f"
19990 else
19991 # /dev/null tree
19992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19993 echo "$as_me: error: cannot find input file: $f" >&2;}
19994 { (exit 1); exit 1; }; }
19995 fi;;
19996 esac
19997 done` || { (exit 1); exit 1; }
19998 _ACEOF
19999 cat >>$CONFIG_STATUS <<_ACEOF
20000 sed "$ac_vpsub
20001 $extrasub
20002 _ACEOF
20003 cat >>$CONFIG_STATUS <<\_ACEOF
20005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20006 s,@configure_input@,$configure_input,;t t
20007 s,@srcdir@,$ac_srcdir,;t t
20008 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20009 s,@top_srcdir@,$ac_top_srcdir,;t t
20010 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20011 s,@builddir@,$ac_builddir,;t t
20012 s,@abs_builddir@,$ac_abs_builddir,;t t
20013 s,@top_builddir@,$ac_top_builddir,;t t
20014 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20015 s,@INSTALL@,$ac_INSTALL,;t t
20016 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20017 rm -f $tmp/stdin
20018 if test x"$ac_file" != x-; then
20019 mv $tmp/out $ac_file
20020 else
20021 cat $tmp/out
20022 rm -f $tmp/out
20025 done
20026 _ACEOF
20027 cat >>$CONFIG_STATUS <<\_ACEOF
20030 # CONFIG_HEADER section.
20033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20036 # ac_d sets the value in "#define NAME VALUE" lines.
20037 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20038 ac_dB='[ ].*$,\1#\2'
20039 ac_dC=' '
20040 ac_dD=',;t'
20041 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20042 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20043 ac_uB='$,\1#\2define\3'
20044 ac_uC=' '
20045 ac_uD=',;t'
20047 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20049 case $ac_file in
20050 - | *:- | *:-:* ) # input from stdin
20051 cat >$tmp/stdin
20052 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20054 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20056 * ) ac_file_in=$ac_file.in ;;
20057 esac
20059 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20060 echo "$as_me: creating $ac_file" >&6;}
20062 # First look for the input files in the build tree, otherwise in the
20063 # src tree.
20064 ac_file_inputs=`IFS=:
20065 for f in $ac_file_in; do
20066 case $f in
20067 -) echo $tmp/stdin ;;
20068 [\\/$]*)
20069 # Absolute (can't be DOS-style, as IFS=:)
20070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20071 echo "$as_me: error: cannot find input file: $f" >&2;}
20072 { (exit 1); exit 1; }; }
20073 # Do quote $f, to prevent DOS paths from being IFS'd.
20074 echo "$f";;
20075 *) # Relative
20076 if test -f "$f"; then
20077 # Build tree
20078 echo "$f"
20079 elif test -f "$srcdir/$f"; then
20080 # Source tree
20081 echo "$srcdir/$f"
20082 else
20083 # /dev/null tree
20084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20085 echo "$as_me: error: cannot find input file: $f" >&2;}
20086 { (exit 1); exit 1; }; }
20087 fi;;
20088 esac
20089 done` || { (exit 1); exit 1; }
20090 # Remove the trailing spaces.
20091 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20093 _ACEOF
20095 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20096 # `conftest.undefs', that substitutes the proper values into
20097 # config.h.in to produce config.h. The first handles `#define'
20098 # templates, and the second `#undef' templates.
20099 # And first: Protect against being on the right side of a sed subst in
20100 # config.status. Protect against being in an unquoted here document
20101 # in config.status.
20102 rm -f conftest.defines conftest.undefs
20103 # Using a here document instead of a string reduces the quoting nightmare.
20104 # Putting comments in sed scripts is not portable.
20106 # `end' is used to avoid that the second main sed command (meant for
20107 # 0-ary CPP macros) applies to n-ary macro definitions.
20108 # See the Autoconf documentation for `clear'.
20109 cat >confdef2sed.sed <<\_ACEOF
20110 s/[\\&,]/\\&/g
20111 s,[\\$`],\\&,g
20112 t clear
20113 : clear
20114 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20115 t end
20116 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20117 : end
20118 _ACEOF
20119 # If some macros were called several times there might be several times
20120 # the same #defines, which is useless. Nevertheless, we may not want to
20121 # sort them, since we want the *last* AC-DEFINE to be honored.
20122 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20123 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20124 rm -f confdef2sed.sed
20126 # This sed command replaces #undef with comments. This is necessary, for
20127 # example, in the case of _POSIX_SOURCE, which is predefined and required
20128 # on some systems where configure will not decide to define it.
20129 cat >>conftest.undefs <<\_ACEOF
20130 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20131 _ACEOF
20133 # Break up conftest.defines because some shells have a limit on the size
20134 # of here documents, and old seds have small limits too (100 cmds).
20135 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20136 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20137 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20138 echo ' :' >>$CONFIG_STATUS
20139 rm -f conftest.tail
20140 while grep . conftest.defines >/dev/null
20142 # Write a limited-size here document to $tmp/defines.sed.
20143 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20144 # Speed up: don't consider the non `#define' lines.
20145 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20146 # Work around the forget-to-reset-the-flag bug.
20147 echo 't clr' >>$CONFIG_STATUS
20148 echo ': clr' >>$CONFIG_STATUS
20149 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20150 echo 'CEOF
20151 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20152 rm -f $tmp/in
20153 mv $tmp/out $tmp/in
20154 ' >>$CONFIG_STATUS
20155 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20156 rm -f conftest.defines
20157 mv conftest.tail conftest.defines
20158 done
20159 rm -f conftest.defines
20160 echo ' fi # grep' >>$CONFIG_STATUS
20161 echo >>$CONFIG_STATUS
20163 # Break up conftest.undefs because some shells have a limit on the size
20164 # of here documents, and old seds have small limits too (100 cmds).
20165 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20166 rm -f conftest.tail
20167 while grep . conftest.undefs >/dev/null
20169 # Write a limited-size here document to $tmp/undefs.sed.
20170 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20171 # Speed up: don't consider the non `#undef'
20172 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20173 # Work around the forget-to-reset-the-flag bug.
20174 echo 't clr' >>$CONFIG_STATUS
20175 echo ': clr' >>$CONFIG_STATUS
20176 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20177 echo 'CEOF
20178 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20179 rm -f $tmp/in
20180 mv $tmp/out $tmp/in
20181 ' >>$CONFIG_STATUS
20182 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20183 rm -f conftest.undefs
20184 mv conftest.tail conftest.undefs
20185 done
20186 rm -f conftest.undefs
20188 cat >>$CONFIG_STATUS <<\_ACEOF
20189 # Let's still pretend it is `configure' which instantiates (i.e., don't
20190 # use $as_me), people would be surprised to read:
20191 # /* config.h. Generated by config.status. */
20192 if test x"$ac_file" = x-; then
20193 echo "/* Generated by configure. */" >$tmp/config.h
20194 else
20195 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20197 cat $tmp/in >>$tmp/config.h
20198 rm -f $tmp/in
20199 if test x"$ac_file" != x-; then
20200 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20201 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20202 echo "$as_me: $ac_file is unchanged" >&6;}
20203 else
20204 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206 X"$ac_file" : 'X\(//\)[^/]' \| \
20207 X"$ac_file" : 'X\(//\)$' \| \
20208 X"$ac_file" : 'X\(/\)' \| \
20209 . : '\(.\)' 2>/dev/null ||
20210 echo X"$ac_file" |
20211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20213 /^X\(\/\/\)$/{ s//\1/; q; }
20214 /^X\(\/\).*/{ s//\1/; q; }
20215 s/.*/./; q'`
20216 { if $as_mkdir_p; then
20217 mkdir -p "$ac_dir"
20218 else
20219 as_dir="$ac_dir"
20220 as_dirs=
20221 while test ! -d "$as_dir"; do
20222 as_dirs="$as_dir $as_dirs"
20223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20225 X"$as_dir" : 'X\(//\)[^/]' \| \
20226 X"$as_dir" : 'X\(//\)$' \| \
20227 X"$as_dir" : 'X\(/\)' \| \
20228 . : '\(.\)' 2>/dev/null ||
20229 echo X"$as_dir" |
20230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20232 /^X\(\/\/\)$/{ s//\1/; q; }
20233 /^X\(\/\).*/{ s//\1/; q; }
20234 s/.*/./; q'`
20235 done
20236 test ! -n "$as_dirs" || mkdir $as_dirs
20237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20239 { (exit 1); exit 1; }; }; }
20241 rm -f $ac_file
20242 mv $tmp/config.h $ac_file
20244 else
20245 cat $tmp/config.h
20246 rm -f $tmp/config.h
20248 # Compute $ac_file's index in $config_headers.
20249 _am_stamp_count=1
20250 for _am_header in $config_headers :; do
20251 case $_am_header in
20252 $ac_file | $ac_file:* )
20253 break ;;
20255 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20256 esac
20257 done
20258 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20259 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20260 X$ac_file : 'X\(//\)[^/]' \| \
20261 X$ac_file : 'X\(//\)$' \| \
20262 X$ac_file : 'X\(/\)' \| \
20263 . : '\(.\)' 2>/dev/null ||
20264 echo X$ac_file |
20265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20267 /^X\(\/\/\)$/{ s//\1/; q; }
20268 /^X\(\/\).*/{ s//\1/; q; }
20269 s/.*/./; q'`/stamp-h$_am_stamp_count
20270 done
20271 _ACEOF
20272 cat >>$CONFIG_STATUS <<\_ACEOF
20275 # CONFIG_COMMANDS section.
20277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20278 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20279 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20280 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20282 X"$ac_dest" : 'X\(//\)[^/]' \| \
20283 X"$ac_dest" : 'X\(//\)$' \| \
20284 X"$ac_dest" : 'X\(/\)' \| \
20285 . : '\(.\)' 2>/dev/null ||
20286 echo X"$ac_dest" |
20287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20289 /^X\(\/\/\)$/{ s//\1/; q; }
20290 /^X\(\/\).*/{ s//\1/; q; }
20291 s/.*/./; q'`
20292 { if $as_mkdir_p; then
20293 mkdir -p "$ac_dir"
20294 else
20295 as_dir="$ac_dir"
20296 as_dirs=
20297 while test ! -d "$as_dir"; do
20298 as_dirs="$as_dir $as_dirs"
20299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20301 X"$as_dir" : 'X\(//\)[^/]' \| \
20302 X"$as_dir" : 'X\(//\)$' \| \
20303 X"$as_dir" : 'X\(/\)' \| \
20304 . : '\(.\)' 2>/dev/null ||
20305 echo X"$as_dir" |
20306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20308 /^X\(\/\/\)$/{ s//\1/; q; }
20309 /^X\(\/\).*/{ s//\1/; q; }
20310 s/.*/./; q'`
20311 done
20312 test ! -n "$as_dirs" || mkdir $as_dirs
20313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20315 { (exit 1); exit 1; }; }; }
20317 ac_builddir=.
20319 if test "$ac_dir" != .; then
20320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20321 # A "../" for each directory in $ac_dir_suffix.
20322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20323 else
20324 ac_dir_suffix= ac_top_builddir=
20327 case $srcdir in
20328 .) # No --srcdir option. We are building in place.
20329 ac_srcdir=.
20330 if test -z "$ac_top_builddir"; then
20331 ac_top_srcdir=.
20332 else
20333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20334 fi ;;
20335 [\\/]* | ?:[\\/]* ) # Absolute path.
20336 ac_srcdir=$srcdir$ac_dir_suffix;
20337 ac_top_srcdir=$srcdir ;;
20338 *) # Relative path.
20339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20340 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20341 esac
20343 # Do not use `cd foo && pwd` to compute absolute paths, because
20344 # the directories may not exist.
20345 case `pwd` in
20346 .) ac_abs_builddir="$ac_dir";;
20348 case "$ac_dir" in
20349 .) ac_abs_builddir=`pwd`;;
20350 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20351 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20352 esac;;
20353 esac
20354 case $ac_abs_builddir in
20355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20357 case ${ac_top_builddir}. in
20358 .) ac_abs_top_builddir=$ac_abs_builddir;;
20359 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20360 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20361 esac;;
20362 esac
20363 case $ac_abs_builddir in
20364 .) ac_abs_srcdir=$ac_srcdir;;
20366 case $ac_srcdir in
20367 .) ac_abs_srcdir=$ac_abs_builddir;;
20368 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20369 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20370 esac;;
20371 esac
20372 case $ac_abs_builddir in
20373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20375 case $ac_top_srcdir in
20376 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20377 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20378 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20379 esac;;
20380 esac
20383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20384 echo "$as_me: executing $ac_dest commands" >&6;}
20385 case $ac_dest in
20386 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20387 # Strip MF so we end up with the name of the file.
20388 mf=`echo "$mf" | sed -e 's/:.*$//'`
20389 # Check whether this is an Automake generated Makefile or not.
20390 # We used to match only the files named `Makefile.in', but
20391 # some people rename them; so instead we look at the file content.
20392 # Grep'ing the first line is not enough: some people post-process
20393 # each Makefile.in and add a new line on top of each file to say so.
20394 # So let's grep whole file.
20395 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20396 dirpart=`(dirname "$mf") 2>/dev/null ||
20397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20398 X"$mf" : 'X\(//\)[^/]' \| \
20399 X"$mf" : 'X\(//\)$' \| \
20400 X"$mf" : 'X\(/\)' \| \
20401 . : '\(.\)' 2>/dev/null ||
20402 echo X"$mf" |
20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20405 /^X\(\/\/\)$/{ s//\1/; q; }
20406 /^X\(\/\).*/{ s//\1/; q; }
20407 s/.*/./; q'`
20408 else
20409 continue
20411 # Extract the definition of DEPDIR, am__include, and am__quote
20412 # from the Makefile without running `make'.
20413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20414 test -z "$DEPDIR" && continue
20415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20416 test -z "am__include" && continue
20417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20418 # When using ansi2knr, U may be empty or an underscore; expand it
20419 U=`sed -n 's/^U = //p' < "$mf"`
20420 # Find all dependency output files, they are included files with
20421 # $(DEPDIR) in their names. We invoke sed twice because it is the
20422 # simplest approach to changing $(DEPDIR) to its actual value in the
20423 # expansion.
20424 for file in `sed -n "
20425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20427 # Make sure the directory exists.
20428 test -f "$dirpart/$file" && continue
20429 fdir=`(dirname "$file") 2>/dev/null ||
20430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$file" : 'X\(//\)[^/]' \| \
20432 X"$file" : 'X\(//\)$' \| \
20433 X"$file" : 'X\(/\)' \| \
20434 . : '\(.\)' 2>/dev/null ||
20435 echo X"$file" |
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438 /^X\(\/\/\)$/{ s//\1/; q; }
20439 /^X\(\/\).*/{ s//\1/; q; }
20440 s/.*/./; q'`
20441 { if $as_mkdir_p; then
20442 mkdir -p $dirpart/$fdir
20443 else
20444 as_dir=$dirpart/$fdir
20445 as_dirs=
20446 while test ! -d "$as_dir"; do
20447 as_dirs="$as_dir $as_dirs"
20448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20450 X"$as_dir" : 'X\(//\)[^/]' \| \
20451 X"$as_dir" : 'X\(//\)$' \| \
20452 X"$as_dir" : 'X\(/\)' \| \
20453 . : '\(.\)' 2>/dev/null ||
20454 echo X"$as_dir" |
20455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20457 /^X\(\/\/\)$/{ s//\1/; q; }
20458 /^X\(\/\).*/{ s//\1/; q; }
20459 s/.*/./; q'`
20460 done
20461 test ! -n "$as_dirs" || mkdir $as_dirs
20462 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20463 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20464 { (exit 1); exit 1; }; }; }
20466 # echo "creating $dirpart/$file"
20467 echo '# dummy' > "$dirpart/$file"
20468 done
20469 done
20471 default-1 )
20472 for ac_file in $CONFIG_FILES; do
20473 # Support "outfile[:infile[:infile...]]"
20474 case "$ac_file" in
20475 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20476 esac
20477 # PO directories have a Makefile.in generated from Makefile.in.in.
20478 case "$ac_file" in */Makefile.in)
20479 # Adjust a relative srcdir.
20480 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20481 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20482 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20483 # In autoconf-2.13 it is called $ac_given_srcdir.
20484 # In autoconf-2.50 it is called $srcdir.
20485 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20486 case "$ac_given_srcdir" in
20487 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20488 /*) top_srcdir="$ac_given_srcdir" ;;
20489 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20490 esac
20491 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20492 rm -f "$ac_dir/POTFILES"
20493 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20494 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20495 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20496 # on $ac_dir but don't depend on user-specified configuration
20497 # parameters.
20498 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20499 # The LINGUAS file contains the set of available languages.
20500 if test -n "$ALL_LINGUAS"; then
20501 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20503 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20504 # Hide the ALL_LINGUAS assigment from automake.
20505 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20507 case "$ac_given_srcdir" in
20508 .) srcdirpre= ;;
20509 *) srcdirpre='$(srcdir)/' ;;
20510 esac
20511 POFILES=
20512 GMOFILES=
20513 UPDATEPOFILES=
20514 DUMMYPOFILES=
20515 for lang in $ALL_LINGUAS; do
20516 POFILES="$POFILES $srcdirpre$lang.po"
20517 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20518 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20519 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20520 done
20521 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20522 # environment variable.
20523 INST_LINGUAS=
20524 if test -n "$ALL_LINGUAS"; then
20525 for presentlang in $ALL_LINGUAS; do
20526 useit=no
20527 if test "%UNSET%" != "$LINGUAS"; then
20528 desiredlanguages="$LINGUAS"
20529 else
20530 desiredlanguages="$ALL_LINGUAS"
20532 for desiredlang in $desiredlanguages; do
20533 # Use the presentlang catalog if desiredlang is
20534 # a. equal to presentlang, or
20535 # b. a variant of presentlang (because in this case,
20536 # presentlang can be used as a fallback for messages
20537 # which are not translated in the desiredlang catalog).
20538 case "$desiredlang" in
20539 "$presentlang"*) useit=yes;;
20540 esac
20541 done
20542 if test $useit = yes; then
20543 INST_LINGUAS="$INST_LINGUAS $presentlang"
20545 done
20547 CATALOGS=
20548 if test -n "$INST_LINGUAS"; then
20549 for lang in $INST_LINGUAS; do
20550 CATALOGS="$CATALOGS $lang.gmo"
20551 done
20553 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20554 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"
20555 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20556 if test -f "$f"; then
20557 case "$f" in
20558 *.orig | *.bak | *~) ;;
20559 *) cat "$f" >> "$ac_dir/Makefile" ;;
20560 esac
20562 done
20565 esac
20566 done ;;
20567 denoiser ) if test $level -gt 0; then
20568 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
20569 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$level/{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" \
20570 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
20571 for i in `find . -name 'Makefile' -print`; do
20572 if test -n "`head -n 1 $i | grep '^#'`"; then
20573 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
20575 done
20576 fi ;;
20577 esac
20578 done
20579 _ACEOF
20581 cat >>$CONFIG_STATUS <<\_ACEOF
20583 { (exit 0); exit 0; }
20584 _ACEOF
20585 chmod +x $CONFIG_STATUS
20586 ac_clean_files=$ac_clean_files_save
20589 # configure is writing to config.log, and then calls config.status.
20590 # config.status does its own redirection, appending to config.log.
20591 # Unfortunately, on DOS this fails, as config.log is still kept open
20592 # by configure, so config.status won't be able to write to it; its
20593 # output is simply discarded. So we exec the FD to /dev/null,
20594 # effectively closing config.log, so it can be properly (re)opened and
20595 # appended to by config.status. When coming back to configure, we
20596 # need to make the FD available again.
20597 if test "$no_create" != yes; then
20598 ac_cs_success=:
20599 ac_config_status_args=
20600 test "$silent" = yes &&
20601 ac_config_status_args="$ac_config_status_args --quiet"
20602 exec 5>/dev/null
20603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20604 exec 5>>config.log
20605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20606 # would make configure fail if this is the last instruction.
20607 $ac_cs_success || { (exit 1); exit 1; }
20611 echo
20612 echo
20613 echo " Configure script has finished system check."
20614 echo
20615 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20616 echo
20617 echo " aMule enabled options:"
20618 echo
20619 echo " **** aMule Core ****"
20620 echo " Prefix where aMule should be installed? ${prefix:-none}"
20621 echo " Should aMule be compiled with i18n support? ${HAVE_GETTEXT:-no}"
20622 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20623 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20624 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20625 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20626 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20627 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20628 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20629 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20630 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
20632 echo
20633 echo " **** aMule TextClient ****"
20634 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20635 echo
20636 echo " **** aMule WebServer ****"
20637 echo " Should aMule WebServer be built? ${WEB:-no}"
20638 echo
20639 echo " **** aMule ED2K Links Handler ****"
20640 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20641 echo
20642 echo " **** aMuleLinkCreator ****"
20643 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20644 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20645 echo
20646 echo " **** aMule Statistics ****"
20647 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20648 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20650 echo
20651 echo " **** General Libraries and Tools ****"
20652 echo " Should ccache support be enabled? ${ccache:-no}"
20653 echo " Libraries aMule will use to build:"
20654 wxinfo="$WX_PORT"
20655 if test $WX_DEBUG -eq 1; then
20656 wxinfo="$wxinfo,debug"
20659 if test $WX_SHARED -eq 1; then
20660 wxinfo="$wxinfo,shared"
20661 else
20662 wxinfo="$wxinfo,static"
20665 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20666 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
20667 if test x${WEB:-no} != xno; then
20668 if test $regex_found = no; then
20669 regex_found="Not detected"
20670 else
20671 if test x$REGEX_LIB = x; then
20672 regex_found=system
20673 else
20674 regex_found="standalone (in $REGEX_LIB)"
20679 echo " regex $regex_found"
20681 if test x$LIBPNG_VERSION != xnot_needed; then
20682 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20684 if test x$GDLIB_VERSION != xnot_needed; then
20685 echo " libgd ${GDLIB_VERSION:-Not detected}"
20687 echo " zlib ${ZLIB_VERSION:-Not detected}"
20688 if test x$WEB = xdisabled; then
20689 echo ""
20690 echo ""
20691 echo "WARNING! amuleweb has been disabled because configure could not find"
20692 echo "a POSIX compliant regex library."
20693 echo ""
20695 if test x"$LIBPNG_VERSION" = x""; then
20696 echo ""
20697 echo ""
20698 echo " WARNING! libpng >= 1.2.0 not found."
20699 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."
20700 echo ""