Upstream tarball 20080324
[amule.git] / configure
blobbdcd17ae1d6866c39e8f436a687d9b3b0e395d47
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>
5652 main ()
5655 const char zver[] = "\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n";
5656 zlibVersion();
5659 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest$ac_exeext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5686 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5687 ac_cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5688 ac_cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5689 ac_cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5690 if test "$ac_cross_zver_max" -gt "1"; then
5691 result=yes
5692 elif test "$ac_cross_zver_max" -eq "1"; then
5693 if test "$ac_cross_zver_mid" -gt "1"; then
5694 result=yes
5695 elif "$ac_cross_zver_mid" -eq "1"; then
5696 if test "$ac_cross_zver_min" -ge "4"; then
5697 result=yes
5701 if test x$result = xyes; then
5702 z_version=" (version $ZLIB_VERSION)"
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5710 rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: $result$z_version" >&5
5713 echo "${ECHO_T}$result$z_version" >&6
5715 else
5716 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5724 #include <zlib.h>
5725 #include <stdio.h>
5728 main ()
5730 char *zver = zlibVersion();
5731 FILE *f=fopen("conftestval", "w");
5732 if (!f) return 1;
5733 fprintf(f, "%s",
5734 zver[0] > '1' ||
5735 (zver[0] == '1' &&
5736 (zver[2] > '1' ||
5737 (zver[2] == '1' &&
5738 zver[4] >= '4'))) ? "yes" : "no");
5739 fclose(f);
5740 f=fopen("conftestver", "w");
5741 if (f) {
5742 fprintf(f, "%s", ZLIB_VERSION);
5743 fclose(f);
5747 return 0;
5750 _ACEOF
5751 rm -f conftest$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5763 if test -f conftestval; then
5764 result=`cat conftestval`
5765 else
5766 result=no
5768 if test x$result = xyes; then
5769 if test -f conftestver; then
5770 ZLIB_VERSION=`cat conftestver`
5771 z_version=" (version $ZLIB_VERSION)"
5772 else
5773 z_version=""
5776 echo "$as_me:$LINENO: result: $result$z_version" >&5
5777 echo "${ECHO_T}$result$z_version" >&6
5779 else
5780 echo "$as_me: program exited with status $ac_status" >&5
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ( exit $ac_status )
5786 result=no
5787 echo "$as_me:$LINENO: result: $result" >&5
5788 echo "${ECHO_T}$result" >&6
5791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5793 if test x$result = xno; then
5795 if test "${ac_tmp_CPPFLAGS+set}" = set; then
5796 CPPFLAGS="$ac_tmp_CPPFLAGS"
5798 if test "${ac_tmp_LDFLAGS+set}" = set; then
5799 LDFLAGS="$ac_tmp_LDFLAGS"
5801 LIBS="$ac_tmp_LIBS"
5802 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5803 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5804 { (exit 1); exit 1; }; }
5811 if test x$CAS = xyes -o x$WEB = xyes; then
5812 # Check for gd
5815 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
5816 if test "${with_gdlib_prefix+set}" = set; then
5817 withval="$with_gdlib_prefix"
5818 gdlib_config_prefix="$withval"
5819 else
5820 gdlib_config_prefix=""
5823 # Check whether --with-gdlib-config or --without-gdlib-config was given.
5824 if test "${with_gdlib_config+set}" = set; then
5825 withval="$with_gdlib_config"
5826 gdlib_config_name="$withval"
5827 else
5828 gdlib_config_name=""
5832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5834 if test "${ac_cv_header_stdc+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5849 main ()
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_header_stdc=yes
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_cv_header_stdc=no
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <string.h>
5897 _ACEOF
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "memchr" >/dev/null 2>&1; then
5901 else
5902 ac_cv_header_stdc=no
5904 rm -f conftest*
5908 if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <stdlib.h>
5918 _ACEOF
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "free" >/dev/null 2>&1; then
5922 else
5923 ac_cv_header_stdc=no
5925 rm -f conftest*
5929 if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <ctype.h>
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5944 #else
5945 # define ISLOWER(c) \
5946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5950 #endif
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5954 main ()
5956 int i;
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
5959 || toupper (i) != TOUPPER (i))
5960 exit(2);
5961 exit (0);
5963 _ACEOF
5964 rm -f conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5976 else
5977 echo "$as_me: program exited with status $ac_status" >&5
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ( exit $ac_status )
5982 ac_cv_header_stdc=no
5984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5990 if test $ac_cv_header_stdc = yes; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define STDC_HEADERS 1
5994 _ACEOF
5998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6009 inttypes.h stdint.h unistd.h
6011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 echo "$as_me:$LINENO: checking for $ac_header" >&5
6013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6025 #include <$ac_header>
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 eval "$as_ac_Header=yes"
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 eval "$as_ac_Header=no"
6056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 _ACEOF
6067 done
6071 if test x${GDLIB_CONFIG_NAME+set} != xset ; then
6072 GDLIB_CONFIG_NAME=gdlib-config
6074 if test "x$gdlib_config_name" != x ; then
6075 GDLIB_CONFIG_NAME="$gdlib_config_name"
6078 if test x$gdlib_config_prefix != x ; then
6079 GDLIB_LOOKUP_PATH="$gdlib_config_prefix/bin"
6082 if test -x "$GDLIB_CONFIG_NAME" ; then
6083 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6084 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6085 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6086 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6087 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6088 else
6089 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6090 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6091 echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 case $GDLIB_CONFIG_PATH in
6097 [\\/]* | ?:[\\/]*)
6098 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 as_dummy=""$GDLIB_LOOKUP_PATH:$PATH""
6103 for as_dir in $as_dummy
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6116 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6118 esac
6120 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6122 if test -n "$GDLIB_CONFIG_PATH"; then
6123 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6124 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6132 if test "$GDLIB_CONFIG_PATH" != "no" ; then
6133 GDLIB_VERSION=""
6135 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6136 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6138 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6140 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6141 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6142 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6143 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6145 gdlib_ver_ok=""
6146 if test $gdlib_config_major_version -gt 2; then
6147 gdlib_ver_ok=yes
6148 else
6149 if test $gdlib_config_major_version -eq 2; then
6150 if test $gdlib_config_minor_version -gt 0; then
6151 gdlib_ver_ok=yes
6152 else
6153 if test $gdlib_config_minor_version -eq 0; then
6154 if test $gdlib_config_micro_version -ge 0; then
6155 gdlib_ver_ok=yes
6162 if test x$gdlib_ver_ok = x ; then
6163 if test x$GDLIB_VERSION = x; then
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6168 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6169 GDLIB_VERSION=
6172 { echo "$as_me:$LINENO:
6173 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6174 Please check that gdlib-config is in your default path, check out
6175 LD_LIBRARY_PATH or equivalent variable.
6176 Or this might also be that your gdlib-config has other name.
6177 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6178 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6179 If you use compiled packages check if you have devel pack installed.
6180 To download the latest version check http://www.boutell.com/gd
6181 for sources.
6182 " >&5
6183 echo "$as_me:
6184 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6185 Please check that gdlib-config is in your default path, check out
6186 LD_LIBRARY_PATH or equivalent variable.
6187 Or this might also be that your gdlib-config has other name.
6188 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6189 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6190 If you use compiled packages check if you have devel pack installed.
6191 To download the latest version check http://www.boutell.com/gd
6192 for sources.
6193 " >&6;}
6194 CAS_DEFS=""
6196 else
6197 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6198 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6199 if test "${ac_cv_header_gd_h+set}" = set; then
6200 echo "$as_me:$LINENO: checking for gd.h" >&5
6201 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6202 if test "${ac_cv_header_gd_h+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6206 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6207 else
6208 # Is the header compilable?
6209 echo "$as_me:$LINENO: checking gd.h usability" >&5
6210 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6218 #include <gd.h>
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_header_compiler=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_header_compiler=no
6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 echo "${ECHO_T}$ac_header_compiler" >&6
6253 # Is the header present?
6254 echo "$as_me:$LINENO: checking gd.h presence" >&5
6255 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <gd.h>
6263 _ACEOF
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev/null; then
6272 if test -s conftest.err; then
6273 ac_cpp_err=$ac_c_preproc_warn_flag
6274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6275 else
6276 ac_cpp_err=
6278 else
6279 ac_cpp_err=yes
6281 if test -z "$ac_cpp_err"; then
6282 ac_header_preproc=yes
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 ac_header_preproc=no
6289 rm -f conftest.err conftest.$ac_ext
6290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 echo "${ECHO_T}$ac_header_preproc" >&6
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6295 yes:no: )
6296 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6297 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6299 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6300 ac_header_preproc=yes
6302 no:yes:* )
6303 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6304 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6306 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6308 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6310 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6312 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6314 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6316 cat <<\_ASBOX
6317 ## ------------------------------ ##
6318 ## Report this to admin@amule.org ##
6319 ## ------------------------------ ##
6320 _ASBOX
6322 sed "s/^/$as_me: WARNING: /" >&2
6324 esac
6325 echo "$as_me:$LINENO: checking for gd.h" >&5
6326 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6327 if test "${ac_cv_header_gd_h+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 ac_cv_header_gd_h=$ac_header_preproc
6332 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6338 if test $ac_cv_header_gd_h = yes; then
6339 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6340 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6341 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6343 CAS_DEFS="-D__GD__"
6344 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6346 else
6347 GDLIB_VERSION=
6349 { echo "$as_me:$LINENO:
6350 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6356 If you use compiled packages check if you have devel pack installed.
6357 To download the latest version check http://www.boutell.com/gd
6358 for sources.
6359 " >&5
6360 echo "$as_me:
6361 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6362 Please check that gdlib-config is in your default path, check out
6363 LD_LIBRARY_PATH or equivalent variable.
6364 Or this might also be that your gdlib-config has other name.
6365 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6366 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6367 If you use compiled packages check if you have devel pack installed.
6368 To download the latest version check http://www.boutell.com/gd
6369 for sources.
6370 " >&6;}
6371 CAS_DEFS=""
6375 else
6377 { echo "$as_me:$LINENO:
6378 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6379 Please check that gdlib-config is in your default path, check out
6380 LD_LIBRARY_PATH or equivalent variable.
6381 Or this might also be that your gdlib-config has other name.
6382 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6383 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6384 If you use compiled packages check if you have devel pack installed.
6385 To download the latest version check http://www.boutell.com/gd
6386 for sources.
6387 " >&5
6388 echo "$as_me:
6389 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6390 Please check that gdlib-config is in your default path, check out
6391 LD_LIBRARY_PATH or equivalent variable.
6392 Or this might also be that your gdlib-config has other name.
6393 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6394 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6395 If you use compiled packages check if you have devel pack installed.
6396 To download the latest version check http://www.boutell.com/gd
6397 for sources.
6398 " >&6;}
6399 CAS_DEFS=""
6406 else
6407 CAS_DEFS=""
6408 GDLIB_LIBS=""
6409 GDLIB_CFLAGS=""
6410 GDLIB_LDFLAGS=""
6411 GDLIB_VERSION="not_needed"
6416 if test x$WEB = xyes; then
6418 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6419 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6420 regex_found=no
6421 for lib in '' -lgnurx -lregex; do
6422 saved_LIBS="$LIBS"
6423 LIBS="$lib $LIBS"
6424 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6432 #include <regex.h>
6435 main ()
6438 regex_t preg;
6439 regcomp(&preg, "", REG_EXTENDED);
6440 regmatch_t *pmatch;
6441 regexec(&preg, "", 0, pmatch, 0);
6442 regfree(&preg);
6445 return 0;
6448 _ACEOF
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6472 LIBS="$saved_LIBS"
6473 regex_found=yes
6474 break;
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6481 LIBS="$saved_LIBS"
6484 rm -f conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6486 done
6487 echo "$as_me:$LINENO: result: $regex_found" >&5
6488 echo "${ECHO_T}$regex_found" >&6
6489 if test $regex_found = yes; then
6491 REGEX_LIB=$lib
6494 else
6495 WEB=disabled
6502 if test x$WEB = xyes; then
6503 # Check for libpng
6506 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6507 if test "${with_libpng_prefix+set}" = set; then
6508 withval="$with_libpng_prefix"
6509 libpng_config_prefix="$withval"
6510 else
6511 libpng_config_prefix=""
6514 # Check whether --with-libpng-config or --without-libpng-config was given.
6515 if test "${with_libpng_config+set}" = set; then
6516 withval="$with_libpng_config"
6517 libpng_config_name="$withval"
6518 else
6519 libpng_config_name=""
6523 if test x${LIBPNG_CONFIG_NAME+set} != xset ; then
6524 LIBPNG_CONFIG_NAME=libpng-config
6526 if test "x$libpng_config_name" != x ; then
6527 LIBPNG_CONFIG_NAME="$libpng_config_name"
6530 if test x$libpng_config_prefix != x ; then
6531 LIBPNG_LOOKUP_PATH="$libpng_config_prefix/bin"
6534 if test -x "$LIBPNG_CONFIG_NAME" ; then
6535 echo "$as_me:$LINENO: checking for libpng-config" >&5
6536 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6537 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6538 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6539 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6540 else
6541 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6542 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6543 echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6545 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 case $LIBPNG_CONFIG_PATH in
6549 [\\/]* | ?:[\\/]*)
6550 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 as_dummy=""$LIBPNG_LOOKUP_PATH:$PATH""
6555 for as_dir in $as_dummy
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6568 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6570 esac
6572 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6574 if test -n "$LIBPNG_CONFIG_PATH"; then
6575 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6576 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6577 else
6578 echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6
6584 if test "$LIBPNG_CONFIG_PATH" != "no" ; then
6585 LIBPNG_VERSION=""
6587 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6588 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6590 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6592 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6593 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6594 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6595 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6597 libpng_ver_ok=""
6598 if test $libpng_config_major_version -gt 1; then
6599 libpng_ver_ok=yes
6600 else
6601 if test $libpng_config_major_version -eq 1; then
6602 if test $libpng_config_minor_version -gt 2; then
6603 libpng_ver_ok=yes
6604 else
6605 if test $libpng_config_minor_version -eq 2; then
6606 if test $libpng_config_micro_version -ge 0; then
6607 libpng_ver_ok=yes
6614 if test x$libpng_ver_ok = x ; then
6615 if test x$LIBPNG_VERSION = x; then
6616 echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6620 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6622 LIBPNG_CFLAGS=""
6623 LIBPNG_CXXFLAGS=""
6624 LIBPNG_LDFLAGS=""
6625 LIBPNG_LIBS=""
6626 LIBPNG_VERSION=""
6628 { echo "$as_me:$LINENO:
6629 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6630 " >&5
6631 echo "$as_me:
6632 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6633 " >&6;}
6634 AMULEWEB_DEFS=""
6636 else
6637 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6638 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6639 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6640 LIBPNG_CXXFLAGS=$LIBPNG_CFLAGS
6641 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6642 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6643 AMULEWEB_DEFS="-DWITH_LIBPNG"
6646 else
6647 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6648 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6649 saved_LIBS="$LIBS"
6650 LIBS="$LIBS -lpng -lz -lm"
6651 LIBPNG_CFLAGS=""
6652 LIBPNG_CXXFLAGS=""
6653 LIBPNG_LDFLAGS=""
6654 LIBPNG_LIBS=""
6655 if test "$cross_compiling" = yes; then
6657 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6658 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6659 if test "${ac_cv_header_png_h+set}" = set; then
6660 echo "$as_me:$LINENO: checking for png.h" >&5
6661 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6662 if test "${ac_cv_header_png_h+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6666 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6667 else
6668 # Is the header compilable?
6669 echo "$as_me:$LINENO: checking png.h usability" >&5
6670 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6678 #include <png.h>
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682 (eval $ac_compile) 2>conftest.er1
6683 ac_status=$?
6684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag"
6690 || test ! -s conftest.err'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; } &&
6696 { ac_try='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 ac_header_compiler=yes
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 ac_header_compiler=no
6709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6711 echo "${ECHO_T}$ac_header_compiler" >&6
6713 # Is the header present?
6714 echo "$as_me:$LINENO: checking png.h presence" >&5
6715 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 #include <png.h>
6723 _ACEOF
6724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } >/dev/null; then
6732 if test -s conftest.err; then
6733 ac_cpp_err=$ac_c_preproc_warn_flag
6734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735 else
6736 ac_cpp_err=
6738 else
6739 ac_cpp_err=yes
6741 if test -z "$ac_cpp_err"; then
6742 ac_header_preproc=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_header_preproc=no
6749 rm -f conftest.err conftest.$ac_ext
6750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6751 echo "${ECHO_T}$ac_header_preproc" >&6
6753 # So? What about this header?
6754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6755 yes:no: )
6756 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6757 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6758 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6759 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6760 ac_header_preproc=yes
6762 no:yes:* )
6763 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6764 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6765 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6766 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6768 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6769 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6770 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6772 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6774 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6776 cat <<\_ASBOX
6777 ## ------------------------------ ##
6778 ## Report this to admin@amule.org ##
6779 ## ------------------------------ ##
6780 _ASBOX
6782 sed "s/^/$as_me: WARNING: /" >&2
6784 esac
6785 echo "$as_me:$LINENO: checking for png.h" >&5
6786 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6787 if test "${ac_cv_header_png_h+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 ac_cv_header_png_h=$ac_header_preproc
6792 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6793 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6796 if test $ac_cv_header_png_h = yes; then
6797 result=yes
6798 else
6799 result=no
6803 if test x$result = xyes; then
6804 LIBPNG_VERSION="detected"
6805 LIBPNG_LIBS="-lpng -lz -lm"
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 #include <png.h>
6818 #include <stdio.h>
6820 /* Check linking to png library */
6821 void dummy() {
6822 png_check_sig(NULL, 0);
6826 main ()
6828 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6829 FILE *f=fopen("conftestval", "w");
6830 if (!f) exit(1);
6831 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6832 fclose(f);
6833 f=fopen("conftestver", "w");
6834 if (!f) exit(0);
6835 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6836 fclose(f);
6837 exit(0);
6840 return 0;
6843 _ACEOF
6844 rm -f conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6856 if test -f conftestval; then
6857 result=`cat conftestval`
6858 else
6859 result=no
6862 if test x$result = xyes; then
6863 if test -f conftestver; then
6864 LIBPNG_VERSION=`cat conftestver`
6865 lib_version=" (version $LIBPNG_VERSION)"
6866 else
6867 lib_version=""
6870 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6871 echo "${ECHO_T}$result$lib_version" >&6
6872 LIBPNG_LIBS="-lpng -lz -lm"
6874 else
6875 echo "$as_me: program exited with status $ac_status" >&5
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 ( exit $ac_status )
6881 result=no
6882 echo "$as_me:$LINENO: result: $result" >&5
6883 echo "${ECHO_T}$result" >&6
6886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6888 if test x$result = xyes; then
6889 AMULEWEB_DEFS="-DWITH_LIBPNG"
6890 else
6892 { echo "$as_me:$LINENO:
6893 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6894 " >&5
6895 echo "$as_me:
6896 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6897 " >&6;}
6898 AMULEWEB_DEFS=""
6902 LIBS="$saved_LIBS"
6908 else
6909 AMULEWEB_DEFS=""
6910 LIBPNG_LIBS=""
6911 LIBPNG_CFLAGS=""
6912 LIBPNG_CXXFLAGS=""
6913 LIBPNG_LDFLAGS=""
6914 LIBPNG_VERSION="not_needed"
6920 # Check for perl File::Copy
6921 echo "$as_me:$LINENO: checking for File::Copy" >&5
6922 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6923 if perl -e "require File::Copy" 2>/dev/null; then
6924 echo "$as_me:$LINENO: result: ok" >&5
6925 echo "${ECHO_T}ok" >&6
6926 else
6927 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6928 echo "$as_me: error: File::Copy perl module is required" >&2;}
6929 { (exit 1); exit 1; }; }
6933 # Check if we need the GUI
6934 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6935 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6936 if test x$MONOLITHIC = xyes; then
6937 need_gui=yes
6940 if test x$WXCAS = xyes; then
6941 need_gui=yes
6944 if test x$ALC = xyes; then
6945 need_gui=yes
6948 if test x$AMULE_GUI = xyes; then
6949 need_gui=yes
6952 if test ${need_gui:+set} != xset; then
6953 need_gui=no
6956 echo "$as_me:$LINENO: result: $need_gui" >&5
6957 echo "${ECHO_T}$need_gui" >&6
6960 # Check for GeoIP (required for IP2Country capability)
6961 if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then
6962 GEOIP_LIB="-lGeoIP"
6963 CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE"
6964 LIBS="$LIBS $GEOIP_LIB"
6965 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6966 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6967 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6968 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6972 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6973 else
6974 # Is the header compilable?
6975 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6976 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6984 #include <GeoIP.h>
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try='test -z "$ac_c_werror_flag"
6996 || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 ac_header_compiler=yes
7009 else
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_header_compiler=no
7015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7017 echo "${ECHO_T}$ac_header_compiler" >&6
7019 # Is the header present?
7020 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7021 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <GeoIP.h>
7029 _ACEOF
7030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } >/dev/null; then
7038 if test -s conftest.err; then
7039 ac_cpp_err=$ac_c_preproc_warn_flag
7040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7041 else
7042 ac_cpp_err=
7044 else
7045 ac_cpp_err=yes
7047 if test -z "$ac_cpp_err"; then
7048 ac_header_preproc=yes
7049 else
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_header_preproc=no
7055 rm -f conftest.err conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7057 echo "${ECHO_T}$ac_header_preproc" >&6
7059 # So? What about this header?
7060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7061 yes:no: )
7062 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7063 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7065 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7066 ac_header_preproc=yes
7068 no:yes:* )
7069 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7070 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7072 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7074 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7076 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7077 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7078 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7079 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7080 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7082 cat <<\_ASBOX
7083 ## ------------------------------ ##
7084 ## Report this to admin@amule.org ##
7085 ## ------------------------------ ##
7086 _ASBOX
7088 sed "s/^/$as_me: WARNING: /" >&2
7090 esac
7091 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7092 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7093 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 ac_cv_header_GeoIP_h=$ac_header_preproc
7098 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7099 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7102 if test $ac_cv_header_GeoIP_h = yes; then
7104 else
7105 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7106 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7107 { (exit 1); exit 1; }; }
7111 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7112 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7113 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 ac_check_lib_save_LIBS=$LIBS
7117 LIBS="-lGeoIP $LIBS"
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7125 /* Override any gcc2 internal prototype to avoid an error. */
7126 #ifdef __cplusplus
7127 extern "C"
7128 #endif
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131 char GeoIP_open ();
7133 main ()
7135 GeoIP_open ();
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_c_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_lib_GeoIP_GeoIP_open=yes
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_cv_lib_GeoIP_GeoIP_open=no
7169 rm -f conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
7171 LIBS=$ac_check_lib_save_LIBS
7173 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7174 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7175 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define SUPPORT_GEOIP 1
7179 _ACEOF
7181 else
7182 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7183 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7184 { (exit 1); exit 1; }; }
7192 # Check if the compiler is broken, wrt. exceptions.
7195 echo "$as_me:$LINENO: checking for exception-handling" >&5
7196 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
7198 ac_ext=cc
7199 ac_cpp='$CXXCPP $CPPFLAGS'
7200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7204 if test "$cross_compiling" = yes; then
7206 echo "$as_me:$LINENO: result: undeterminable" >&5
7207 echo "${ECHO_T}undeterminable" >&6
7208 { echo "$as_me:$LINENO: WARNING:
7209 Cross-compilation detected, so exception handling cannot be tested.
7210 Note that broken exception handling in your compiler may lead to
7211 unexpected crashes." >&5
7212 echo "$as_me: WARNING:
7213 Cross-compilation detected, so exception handling cannot be tested.
7214 Note that broken exception handling in your compiler may lead to
7215 unexpected crashes." >&2;}
7217 else
7218 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7227 main ()
7230 try {
7231 throw 1;
7232 } catch (int) {
7233 return 0;
7235 return 1;
7238 return 0;
7241 _ACEOF
7242 rm -f conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7254 echo "$as_me:$LINENO: result: yes" >&5
7255 echo "${ECHO_T}yes" >&6
7257 else
7258 echo "$as_me: program exited with status $ac_status" >&5
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ( exit $ac_status )
7264 echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6
7266 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
7267 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
7268 { (exit 1); exit 1; }; }
7271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7273 ac_ext=c
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281 # Check for wx
7284 # Check whether --with-wxdir or --without-wxdir was given.
7285 if test "${with_wxdir+set}" = set; then
7286 withval="$with_wxdir"
7287 wx_config_name="$withval/wx-config"
7288 wx_config_args="--inplace"
7291 # Check whether --with-wx-config or --without-wx-config was given.
7292 if test "${with_wx_config+set}" = set; then
7293 withval="$with_wx_config"
7294 wx_config_name="$withval"
7297 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7298 if test "${with_wx_prefix+set}" = set; then
7299 withval="$with_wx_prefix"
7300 wx_config_prefix="$withval"
7301 else
7302 wx_config_prefix=""
7305 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7306 if test "${with_wx_exec_prefix+set}" = set; then
7307 withval="$with_wx_exec_prefix"
7308 wx_config_exec_prefix="$withval"
7309 else
7310 wx_config_exec_prefix=""
7324 # Check whether --with-toolkit or --without-toolkit was given.
7325 if test "${with_toolkit+set}" = set; then
7326 withval="$with_toolkit"
7328 else
7329 withval="auto"
7332 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7333 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7334 if test "$withval" = "auto" ; then
7335 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7336 echo "${ECHO_T}will be automatically detected" >&6
7337 TOOLKIT="auto"
7338 else
7339 TOOLKIT="$withval"
7341 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7342 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7343 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7344 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7345 "$TOOLKIT" != "base" ; then
7346 { { echo "$as_me:$LINENO: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7348 " >&5
7349 echo "$as_me: error:
7350 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7351 " >&2;}
7352 { (exit 1); exit 1; }; }
7355 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7356 echo "${ECHO_T}$TOOLKIT" >&6
7363 # Check whether --with-wxshared or --without-wxshared was given.
7364 if test "${with_wxshared+set}" = set; then
7365 withval="$with_wxshared"
7367 else
7368 withval="auto"
7371 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7372 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7373 if test "$withval" = "yes" ; then
7374 echo "$as_me:$LINENO: result: yes" >&5
7375 echo "${ECHO_T}yes" >&6
7376 WX_SHARED=1
7378 elif test "1" = "1" -a "$withval" = "no" ; then
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7381 WX_SHARED=0
7382 elif test "$withval" = "auto" ; then
7383 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7384 echo "${ECHO_T}will be automatically detected" >&6
7385 WX_SHARED="auto"
7386 else
7387 { { echo "$as_me:$LINENO: error:
7388 Unrecognized option value (allowed values: yes, auto)
7389 " >&5
7390 echo "$as_me: error:
7391 Unrecognized option value (allowed values: yes, auto)
7392 " >&2;}
7393 { (exit 1); exit 1; }; }
7400 # Check whether --with-wxdebug or --without-wxdebug was given.
7401 if test "${with_wxdebug+set}" = set; then
7402 withval="$with_wxdebug"
7404 else
7405 withval="auto"
7408 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7409 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7410 if test "$withval" = "yes" ; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7413 WX_DEBUG=1
7415 elif test "1" = "1" -a "$withval" = "no" ; then
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7418 WX_DEBUG=0
7419 elif test "$withval" = "auto" ; then
7420 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7421 echo "${ECHO_T}will be automatically detected" >&6
7422 WX_DEBUG="auto"
7423 else
7424 { { echo "$as_me:$LINENO: error:
7425 Unrecognized option value (allowed values: yes, auto)
7426 " >&5
7427 echo "$as_me: error:
7428 Unrecognized option value (allowed values: yes, auto)
7429 " >&2;}
7430 { (exit 1); exit 1; }; }
7437 # Check whether --with-wxversion or --without-wxversion was given.
7438 if test "${with_wxversion+set}" = set; then
7439 withval="$with_wxversion"
7441 else
7442 withval="auto"
7445 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7446 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7447 if test "$withval" = "auto" ; then
7448 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7449 echo "${ECHO_T}will be automatically detected" >&6
7450 WX_VERSION="auto"
7451 else
7453 wx_requested_major_version=`echo $withval | \
7454 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7455 wx_requested_minor_version=`echo $withval | \
7456 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7458 if test "${#wx_requested_major_version}" != "1" -o \
7459 "${#wx_requested_minor_version}" != "1" ; then
7460 { { echo "$as_me:$LINENO: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7462 " >&5
7463 echo "$as_me: error:
7464 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7465 " >&2;}
7466 { (exit 1); exit 1; }; }
7469 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7470 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7471 echo "${ECHO_T}$WX_VERSION" >&6
7475 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7476 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7477 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7478 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7479 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7480 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7483 # Force using a static wxWidgets library if the executable is to be linked statically.
7484 if test "$USE_DEBUG_STATIC" = "yes"; then
7485 WX_SHARED=0
7488 # Force using a unicode build of the library
7489 WX_UNICODE=1
7490 DEBUG=$WX_DEBUG
7492 if test "$WX_SHARED" = "1" ; then
7493 WXCONFIG_FLAGS="--static=no "
7494 elif test "$WX_SHARED" = "0" ; then
7495 WXCONFIG_FLAGS="--static=yes "
7498 if test "$WX_DEBUG" = "1" ; then
7499 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7500 elif test "$WX_DEBUG" = "0" ; then
7501 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7504 if test "$WX_UNICODE" = "1" ; then
7505 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7506 elif test "$WX_UNICODE" = "0" ; then
7507 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7510 if test "$TOOLKIT" != "auto" ; then
7511 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7514 if test "$WX_VERSION" != "auto" ; then
7515 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7518 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7520 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7521 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7525 if test x${WX_CONFIG_NAME+set} != xset ; then
7526 WX_CONFIG_NAME=wx-config
7529 if test "x$wx_config_name" != x ; then
7530 WX_CONFIG_NAME="$wx_config_name"
7533 if test x$wx_config_exec_prefix != x ; then
7534 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7535 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7537 if test x$wx_config_prefix != x ; then
7538 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7539 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7541 if test "$cross_compiling" = "yes"; then
7542 wx_config_args="$wx_config_args --host=$host_alias"
7545 if test -x "$WX_CONFIG_NAME" ; then
7546 echo "$as_me:$LINENO: checking for wx-config" >&5
7547 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7548 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7549 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7550 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7551 else
7552 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7553 set dummy $WX_CONFIG_NAME; ac_word=$2
7554 echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7556 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 case $WX_CONFIG_PATH in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7566 for as_dir in $as_dummy
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7579 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7581 esac
7583 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7585 if test -n "$WX_CONFIG_PATH"; then
7586 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7587 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7595 if test "$WX_CONFIG_PATH" != "no" ; then
7596 WX_VERSION_FULL=""
7598 min_wx_version=2.8.0
7599 if test -z "$WXCONFIG_FLAGS" ; then
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7602 else
7603 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7604 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7607 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7609 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7610 wx_config_major_version=`echo $WX_VERSION_FULL | \
7611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7612 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7614 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7617 wx_requested_major_version=`echo $min_wx_version | \
7618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7619 wx_requested_minor_version=`echo $min_wx_version | \
7620 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7621 wx_requested_micro_version=`echo $min_wx_version | \
7622 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7625 wx_ver_ok=""
7626 if test "x$WX_VERSION_FULL" != x ; then
7627 if test $wx_config_major_version -gt $wx_requested_major_version; then
7628 wx_ver_ok=yes
7629 else
7630 if test $wx_config_major_version -eq $wx_requested_major_version; then
7631 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7632 wx_ver_ok=yes
7633 else
7634 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7635 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7636 wx_ver_ok=yes
7645 if test -n "$wx_ver_ok"; then
7647 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7648 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7649 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7651 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7652 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7653 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7654 if test "x$WX_LIBS_STATIC" = "x"; then
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7657 else
7658 echo "$as_me:$LINENO: result: yes" >&5
7659 echo "${ECHO_T}yes" >&6
7662 wx_has_cppflags=""
7663 if test $wx_config_major_version -gt 2; then
7664 wx_has_cppflags=yes
7665 else
7666 if test $wx_config_major_version -eq 2; then
7667 if test $wx_config_minor_version -gt 2; then
7668 wx_has_cppflags=yes
7669 else
7670 if test $wx_config_minor_version -eq 2; then
7671 if test $wx_config_micro_version -ge 6; then
7672 wx_has_cppflags=yes
7679 wx_has_rescomp=""
7680 if test $wx_config_major_version -gt 2; then
7681 wx_has_rescomp=yes
7682 else
7683 if test $wx_config_major_version -eq 2; then
7684 if test $wx_config_minor_version -ge 7; then
7685 wx_has_rescomp=yes
7689 if test "x$wx_has_rescomp" = x ; then
7690 WX_RESCOMP=
7691 else
7692 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7695 if test "x$wx_has_cppflags" = x ; then
7696 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7697 WX_CPPFLAGS=$WX_CFLAGS
7698 WX_CXXFLAGS=$WX_CFLAGS
7700 WX_CFLAGS_ONLY=$WX_CFLAGS
7701 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7702 else
7703 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7704 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7705 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7707 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7708 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7711 wxWin=1
7713 else
7715 if test "x$WX_VERSION_FULL" = x; then
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7718 else
7719 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7720 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7723 WX_CFLAGS=""
7724 WX_CPPFLAGS=""
7725 WX_CXXFLAGS=""
7726 WX_LIBS=""
7727 WX_LIBS_STATIC=""
7728 WX_RESCOMP=""
7730 if test ! -z "$WXCONFIG_FLAGS"; then
7732 wx_error_message="
7733 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7734 build with the following settings:
7735 $WXCONFIG_FLAGS
7736 but such build is not available.
7738 To see the wxWidgets builds available on this system, please use
7739 'wx-config --list' command. To use the default build, returned by
7740 'wx-config --selected-config', use the options with their 'auto'
7741 default values."
7745 wx_error_message="
7746 The requested wxWidgets build couldn't be found.
7747 $wx_error_message
7749 If you still get this error, then check that 'wx-config' is
7750 in path, the directory where wxWidgets libraries are installed
7751 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7752 or equivalent variable and wxWidgets version is 2.8.0 or above."
7754 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7755 echo "$as_me: error: $wx_error_message" >&2;}
7756 { (exit 1); exit 1; }; }
7759 else
7761 WX_CFLAGS=""
7762 WX_CPPFLAGS=""
7763 WX_CXXFLAGS=""
7764 WX_LIBS=""
7765 WX_LIBS_STATIC=""
7766 WX_RESCOMP=""
7782 WX_VERSION_MAJOR="$wx_config_major_version"
7783 WX_VERSION_MINOR="$wx_config_minor_version"
7787 if test "$wxWin" != 1; then
7788 { { echo "$as_me:$LINENO: error:
7789 wxWidgets must be installed on your system but wx-config
7790 script couldn't be found. Please check that wx-config is
7791 in path or specified by --with-wx-config=path flag, the
7792 directory where wxWidgets libraries are installed (returned
7793 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7794 equivalent variable and wxWidgets version is 2.8.0 or above.
7795 " >&5
7796 echo "$as_me: error:
7797 wxWidgets must be installed on your system but wx-config
7798 script couldn't be found. Please check that wx-config is
7799 in path or specified by --with-wx-config=path flag, the
7800 directory where wxWidgets libraries are installed (returned
7801 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7802 equivalent variable and wxWidgets version is 2.8.0 or above.
7803 " >&2;}
7804 { (exit 1); exit 1; }; }
7807 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7808 if test $WX_VERSION -lt 26 ; then
7810 { { echo "$as_me:$LINENO: error:
7811 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7812 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7813 version of wxWidgets.
7814 " >&5
7815 echo "$as_me: error:
7816 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7817 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7818 version of wxWidgets.
7819 " >&2;}
7820 { (exit 1); exit 1; }; }
7823 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7825 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7826 echo "[dbg] Using wx-config --selected-config"
7827 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7831 if test $WX_SHARED = "1"; then
7832 STATIC=0
7833 elif test $WX_SHARED = "0"; then
7834 STATIC=1
7835 elif test $WX_SHARED = "auto"; then
7836 STATIC="auto"
7840 if test "$UNICODE" = "auto" ; then
7842 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7843 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7845 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7847 if test "$WX_UNICODE" != "0"; then
7848 WX_UNICODE=1
7849 echo "$as_me:$LINENO: result: yes" >&5
7850 echo "${ECHO_T}yes" >&6
7852 else
7853 WX_UNICODE=0
7854 echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7858 else
7860 WX_UNICODE=$UNICODE
7864 if test "$DEBUG" = "auto" ; then
7866 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7867 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7869 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7871 if test "$WX_DEBUG" != "0"; then
7872 WX_DEBUG=1
7873 echo "$as_me:$LINENO: result: yes" >&5
7874 echo "${ECHO_T}yes" >&6
7876 else
7877 WX_DEBUG=0
7878 echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6
7882 else
7884 WX_DEBUG=$DEBUG
7888 if test "$STATIC" = "auto" ; then
7890 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7891 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7893 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7895 if test "$WX_STATIC" != "0"; then
7896 WX_STATIC=1
7897 echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6
7900 else
7901 WX_STATIC=0
7902 echo "$as_me:$LINENO: result: no" >&5
7903 echo "${ECHO_T}no" >&6
7906 else
7908 WX_STATIC=$STATIC
7912 if test "$WX_STATIC" != "0"; then
7913 WX_SHARED=0
7914 else
7915 WX_SHARED=1
7922 if test "$TOOLKIT" = "auto" ; then
7924 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7925 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7927 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7928 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7929 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7930 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7931 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7932 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7933 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7934 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7935 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7937 WX_PORT="unknown"
7938 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7939 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7940 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7941 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7942 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7943 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7944 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7945 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7946 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7949 if test "$WX_PORT" = "unknown" ; then
7950 { { echo "$as_me:$LINENO: error:
7951 Cannot detect the currently installed wxWidgets port !
7952 Please check your 'wx-config --cxxflags'...
7953 " >&5
7954 echo "$as_me: error:
7955 Cannot detect the currently installed wxWidgets port !
7956 Please check your 'wx-config --cxxflags'...
7957 " >&2;}
7958 { (exit 1); exit 1; }; }
7961 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7962 echo "${ECHO_T}$WX_PORT" >&6
7963 else
7965 if test -z "$TOOLKIT" ; then
7966 WX_PORT=$TOOLKIT
7967 else
7968 WX_PORT=$PORT
7974 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7975 echo "[dbg] Values of all WX_* options after final detection:"
7976 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7977 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7978 echo "[dbg] WX_SHARED: $WX_SHARED"
7979 echo "[dbg] WX_VERSION: $WX_VERSION"
7980 echo "[dbg] WX_PORT: $WX_PORT"
7983 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7984 { { echo "$as_me:$LINENO: error:
7985 Cannot build shared library against a static build of wxWidgets !
7986 This error happens because the wxWidgets build which was selected
7987 has been detected as static while you asked to build $PACKAGE_NAME
7988 as shared library and this is not possible.
7989 Use the '--disable-shared' option to build $PACKAGE_NAME
7990 as static library or '--with-wxshared' to use wxWidgets as shared library.
7991 " >&5
7992 echo "$as_me: error:
7993 Cannot build shared library against a static build of wxWidgets !
7994 This error happens because the wxWidgets build which was selected
7995 has been detected as static while you asked to build $PACKAGE_NAME
7996 as shared library and this is not possible.
7997 Use the '--disable-shared' option to build $PACKAGE_NAME
7998 as static library or '--with-wxshared' to use wxWidgets as shared library.
7999 " >&2;}
8000 { (exit 1); exit 1; }; }
8003 if test "$DEBUG" = "auto"; then
8004 DEBUG=$WX_DEBUG
8006 if test "$DEBUG" = "1"; then
8007 BUILD="debug"
8008 elif test "$DEBUG" = ""; then
8009 BUILD="release"
8012 if test "$UNICODE" = "auto"; then
8013 UNICODE=$WX_UNICODE
8015 if test "$SHARED" = "auto"; then
8016 SHARED=$WX_SHARED
8018 if test "$TOOLKIT" = "auto"; then
8019 TOOLKIT=$WX_PORT
8025 ac_ext=cc
8026 ac_cpp='$CXXCPP $CPPFLAGS'
8027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8032 __CPPFLAGS=${CPPFLAGS}
8033 CPPFLAGS=${WX_CPPFLAGS}
8035 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8036 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8037 cat >conftest.$ac_ext <<_ACEOF
8039 #include <wx/wx.h>
8041 int main() {
8042 #if !HAVE_LARGEFILE_SUPPORT && !defined(__WXMSW__)
8043 #error No LargeFile support!;
8044 #endif
8045 exit(0);
8048 _ACEOF
8049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } >/dev/null; then
8057 if test -s conftest.err; then
8058 ac_cpp_err=$ac_cxx_preproc_warn_flag
8059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8060 else
8061 ac_cpp_err=
8063 else
8064 ac_cpp_err=yes
8066 if test -z "$ac_cpp_err"; then
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 NO_LF="true"
8074 rm -f conftest.err conftest.$ac_ext
8076 if test "x${NO_LF}" != "x";
8077 then
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8080 { { echo "$as_me:$LINENO: error:
8081 Support for large files in wxWidgets is required by aMule.
8082 To continue you must recompile wxWidgets with support for
8083 large files enabled.
8084 " >&5
8085 echo "$as_me: error:
8086 Support for large files in wxWidgets is required by aMule.
8087 To continue you must recompile wxWidgets with support for
8088 large files enabled.
8089 " >&2;}
8090 { (exit 1); exit 1; }; }
8091 else
8092 echo "$as_me:$LINENO: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6
8096 CPPFLAGS=${__CPPFLAGS}
8098 ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106 if test x$SYS = xwin32; then
8107 if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}windres; ac_word=$2
8110 echo "$as_me:$LINENO: checking for $ac_word" >&5
8111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8112 if test "${ac_cv_prog_RC+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 if test -n "$RC"; then
8116 ac_cv_prog_RC="$RC" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_RC="${ac_tool_prefix}windres"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8129 done
8130 done
8134 RC=$ac_cv_prog_RC
8135 if test -n "$RC"; then
8136 echo "$as_me:$LINENO: result: $RC" >&5
8137 echo "${ECHO_T}$RC" >&6
8138 else
8139 echo "$as_me:$LINENO: result: no" >&5
8140 echo "${ECHO_T}no" >&6
8144 if test -z "$ac_cv_prog_RC"; then
8145 ac_ct_RC=$RC
8146 # Extract the first word of "windres", so it can be a program name with args.
8147 set dummy windres; ac_word=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 if test -n "$ac_ct_RC"; then
8154 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_ac_ct_RC="windres"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8170 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8173 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8174 if test -n "$ac_ct_RC"; then
8175 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8176 echo "${ECHO_T}$ac_ct_RC" >&6
8177 else
8178 echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8182 RC=$ac_ct_RC
8183 else
8184 RC="$ac_cv_prog_RC"
8188 RCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8189 else
8190 RCFLAGS=""
8194 # Check for Crypto++
8197 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8198 if test "${with_crypto_prefix+set}" = set; then
8199 withval="$with_crypto_prefix"
8200 CRYPTO_PP_PREFIX="$withval"
8201 else
8202 CRYPTO_PP_PREFIX=""
8208 min_crypto_version=5.1
8209 echo "$as_me:$LINENO: checking for crypto++ version >= $min_crypto_version" >&5
8210 echo $ECHO_N "checking for crypto++ version >= $min_crypto_version... $ECHO_C" >&6
8212 crypto_pp_file_with_version="cryptlib.h"
8214 CRYPTO_PP_STYLE="unknown"
8215 CRYPTO_PP_LIB_NAME="unknown"
8216 crypto_pp_include_i="unknown"
8217 CRYPTO_PP_INCLUDE_PREFIX="unknown"
8218 CRYPTO_PP_DEFINE="unknown"
8219 CRYPTO_PP_LIB="unknown"
8222 # Set CRYPTO_PP_PREFIX if the user has not set it in the configure command line
8223 # We don't use AC_CHECK_FILE to avoid caching.
8225 if test x$CRYPTO_PP_PREFIX = x ; then
8226 CRYPTO_PP_PREFIX="/usr"
8230 # Find the Cryptopp header
8232 if test -f $CRYPTO_PP_PREFIX/$crypto_pp_file_with_version; then
8233 CRYPTO_PP_STYLE="sources"
8234 CRYPTO_PP_LIB_NAME="cryptopp"
8235 crypto_pp_include_i="$CRYPTO_PP_PREFIX"
8236 CRYPTO_PP_INCLUDE_PREFIX="."
8237 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8238 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX"
8239 { { echo "$as_me:$LINENO: error:
8240 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8241 will not work because cryptopp uses headers with the same name of system
8242 headers (e.g. zlib.h) and you must be able to distinguish the system
8243 headers from cryptopp headers in an #include directive.
8244 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8245 the cryptopp directory to properly install cryptopp in your system." >&5
8246 echo "$as_me: error:
8247 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8248 will not work because cryptopp uses headers with the same name of system
8249 headers (e.g. zlib.h) and you must be able to distinguish the system
8250 headers from cryptopp headers in an #include directive.
8251 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8252 the cryptopp directory to properly install cryptopp in your system." >&2;}
8253 { (exit 1); exit 1; }; }
8254 elif test -f $CRYPTO_PP_PREFIX/include/cryptopp/$crypto_pp_file_with_version; then
8255 CRYPTO_PP_STYLE="installed"
8256 CRYPTO_PP_LIB_NAME="cryptopp"
8257 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8258 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8259 CRYPTO_PP_DEFINE="__CRYPTO_INSTALLED__"
8260 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8261 elif test -f $CRYPTO_PP_PREFIX/include/crypto++/$crypto_pp_file_with_version; then
8262 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8263 CRYPTO_PP_STYLE="gentoo_debian"
8264 CRYPTO_PP_LIB_NAME="crypto++"
8265 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8266 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8267 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8268 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8272 # Check for success in finding cryptopp
8274 if test $CRYPTO_PP_STYLE = "unknown"; then
8276 # If the execution reaches here, we have failed.
8278 { { echo "$as_me:$LINENO: error:
8279 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8280 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&5
8281 echo "$as_me: error:
8282 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8283 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&2;}
8284 { (exit 1); exit 1; }; }
8288 # Find out the cryptopp version and check against the minimum required
8290 crypto_pp_include_dir="$crypto_pp_include_i/$CRYPTO_PP_INCLUDE_PREFIX"
8291 crypto_pp_header_path="$crypto_pp_include_dir/$crypto_pp_file_with_version"
8293 CRYPTO_PP_VERSION_STRING=$(grep "Reference Manual" $crypto_pp_header_path | \
8294 sed -e 's/[^0-9]*\([0-9.]*\).*/\1/')
8296 CRYPTO_PP_VERSION_NUMBER=$(echo $CRYPTO_PP_VERSION_STRING | \
8297 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8299 minvers=$(echo $min_crypto_version | \
8300 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8302 if test -n "$CRYPTO_PP_VERSION_NUMBER" && test "$CRYPTO_PP_VERSION_NUMBER" -ge $minvers; then
8303 result="yes (version $CRYPTO_PP_VERSION_STRING, $CRYPTO_PP_STYLE)"
8304 else
8305 result="no"
8307 echo "$as_me:$LINENO: result: $result" >&5
8308 echo "${ECHO_T}$result" >&6
8311 # FLAGS
8313 CRYPTO_PP_CXXFLAGS="-isystem $crypto_pp_include_i -D$CRYPTO_PP_DEFINE"
8314 CRYPTO_PP_LDFLAGS="-L$CRYPTO_PP_LIB"
8317 cat >>confdefs.h <<_ACEOF
8318 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTO_PP_INCLUDE_PREFIX
8319 _ACEOF
8323 # Exported symbols
8335 { echo "$as_me:$LINENO: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&5
8336 echo "$as_me: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&6;}
8339 CXXFLAGS="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
8340 LDFLAGS="$LDFLAGS $CRYPTO_PP_LDFLAGS"
8341 CRYPTOLIBS="-l$CRYPTO_PP_LIB_NAME"
8343 case "$CRYPTO_PP_STYLE" in
8344 gentoo_debian | installed | sources)
8346 *) { { echo "$as_me:$LINENO: error:
8347 WARNING: crypto++ >= $min_crypto_version is not found.
8348 Please check that cryptopp-headers are in your default include path,
8349 check out LD_LIBRARY_PATH or equivalent variable.
8350 Or this might also be that your cryptopp is installed on other path.
8351 Please try again with --with-crypto-prefix=/my_crypto_prefix
8352 (replace /my_crypto_prefix with a valid path to your crypto directory).
8353 To download the latest version check http://www.cryptopp.com for sources.
8354 " >&5
8355 echo "$as_me: error:
8356 WARNING: crypto++ >= $min_crypto_version is not found.
8357 Please check that cryptopp-headers are in your default include path,
8358 check out LD_LIBRARY_PATH or equivalent variable.
8359 Or this might also be that your cryptopp is installed on other path.
8360 Please try again with --with-crypto-prefix=/my_crypto_prefix
8361 (replace /my_crypto_prefix with a valid path to your crypto directory).
8362 To download the latest version check http://www.cryptopp.com for sources.
8363 " >&2;}
8364 { (exit 1); exit 1; }; }
8366 esac
8368 # Check for CryptoPP >= 5.5
8369 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
8370 CXXFLAGS="$CXXFLAGS -D__WEAK_CRYPTO__"
8376 # Check for bfd.h (to have proper backtraces without using wxExecute)
8378 echo "$as_me:$LINENO: checking for bfd" >&5
8379 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8380 __LIBS=$LIBS
8381 LIBS="-lbfd -liberty $LIBS"
8382 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8390 #include <ansidecl.h>
8391 #include <bfd.h>
8394 main ()
8397 char *dummy = bfd_errmsg(bfd_get_error());
8400 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8427 echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8429 BFD_FLAGS="-DHAVE_BFD"
8430 BFD_LIB="-lbfd -liberty"
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8437 echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8439 { echo "$as_me:$LINENO: WARNING:
8440 bfd.h not found or unusable, please install binutils development
8441 package if you are a developer or want to help testing aMule" >&5
8442 echo "$as_me: WARNING:
8443 bfd.h not found or unusable, please install binutils development
8444 package if you are a developer or want to help testing aMule" >&2;}
8447 rm -f conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 LIBS=${__LIBS}
8454 # Ok, we have all needed libs, now checking for other stuff
8457 echo "$as_me:$LINENO: checking for autopoint" >&5
8458 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
8460 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
8461 if test x$autopoint_version != x; then
8462 result="yes"
8463 else
8464 result="no"
8467 HAVE_GETTEXT=$result
8469 echo "$as_me:$LINENO: result: $result ($autopoint_version)" >&5
8470 echo "${ECHO_T}$result ($autopoint_version)" >&6
8471 if test x$result = xno; then
8472 { echo "$as_me:$LINENO: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&5
8473 echo "$as_me: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&6;}
8478 if test "$LEX" = "flex"; then
8481 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8482 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8484 extended_flex=`flex --help | grep header-file`
8485 if test x"$extended_flex" != x""; then
8486 result="yes"
8487 else
8488 result="no"
8491 HAVE_FLEX_EXTENDED=$result
8493 echo "$as_me:$LINENO: result: $result" >&5
8494 echo "${ECHO_T}$result" >&6
8496 if test x$result = xno; then
8497 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&5
8498 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&6;}
8504 else
8505 HAVE_FLEX_EXTENDED=no
8508 # Flush standard test results for speeding cache
8509 cat >confcache <<\_ACEOF
8510 # This file is a shell script that caches the results of configure
8511 # tests run on this system so they can be shared between configure
8512 # scripts and configure runs, see configure's option --config-cache.
8513 # It is not useful on other systems. If it contains results you don't
8514 # want to keep, you may remove or edit it.
8516 # config.status only pays attention to the cache file if you give it
8517 # the --recheck option to rerun configure.
8519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8521 # following values.
8523 _ACEOF
8525 # The following way of writing the cache mishandles newlines in values,
8526 # but we know of no workaround that is simple, portable, and efficient.
8527 # So, don't put newlines in cache variables' values.
8528 # Ultrix sh set writes to stderr and can't be redirected directly,
8529 # and sets the high bit in the cache file unless we assign to the vars.
8531 (set) 2>&1 |
8532 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8533 *ac_space=\ *)
8534 # `set' does not quote correctly, so add quotes (double-quote
8535 # substitution turns \\\\ into \\, and sed turns \\ into \).
8536 sed -n \
8537 "s/'/'\\\\''/g;
8538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8541 # `set' quotes correctly as required by POSIX, so do not add quotes.
8542 sed -n \
8543 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8545 esac;
8547 sed '
8548 t clear
8549 : clear
8550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8551 t end
8552 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8553 : end' >>confcache
8554 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8555 if test -w $cache_file; then
8556 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8557 cat confcache >$cache_file
8558 else
8559 echo "not updating unwritable cache $cache_file"
8562 rm -f confcache
8564 # Checks for header files.
8565 echo "$as_me:$LINENO: checking for X" >&5
8566 echo $ECHO_N "checking for X... $ECHO_C" >&6
8569 # Check whether --with-x or --without-x was given.
8570 if test "${with_x+set}" = set; then
8571 withval="$with_x"
8574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8575 if test "x$with_x" = xno; then
8576 # The user explicitly disabled X.
8577 have_x=disabled
8578 else
8579 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8580 # Both variables are already set.
8581 have_x=yes
8582 else
8583 if test "${ac_cv_have_x+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 # One or both of the vars are not set, and there is no cached value.
8587 ac_x_includes=no ac_x_libraries=no
8588 rm -fr conftest.dir
8589 if mkdir conftest.dir; then
8590 cd conftest.dir
8591 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8592 cat >Imakefile <<'_ACEOF'
8593 acfindx:
8594 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8595 _ACEOF
8596 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8598 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8600 for ac_extension in a so sl; do
8601 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8602 test -f $ac_im_libdir/libX11.$ac_extension; then
8603 ac_im_usrlibdir=$ac_im_libdir; break
8605 done
8606 # Screen out bogus values from the imake configuration. They are
8607 # bogus both because they are the default anyway, and because
8608 # using them would break gcc on systems where it needs fixed includes.
8609 case $ac_im_incroot in
8610 /usr/include) ;;
8611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8612 esac
8613 case $ac_im_usrlibdir in
8614 /usr/lib | /lib) ;;
8615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8616 esac
8618 cd ..
8619 rm -fr conftest.dir
8622 # Standard set of common directories for X headers.
8623 # Check X11 before X11Rn because it is often a symlink to the current release.
8624 ac_x_header_dirs='
8625 /usr/X11/include
8626 /usr/X11R6/include
8627 /usr/X11R5/include
8628 /usr/X11R4/include
8630 /usr/include/X11
8631 /usr/include/X11R6
8632 /usr/include/X11R5
8633 /usr/include/X11R4
8635 /usr/local/X11/include
8636 /usr/local/X11R6/include
8637 /usr/local/X11R5/include
8638 /usr/local/X11R4/include
8640 /usr/local/include/X11
8641 /usr/local/include/X11R6
8642 /usr/local/include/X11R5
8643 /usr/local/include/X11R4
8645 /usr/X386/include
8646 /usr/x386/include
8647 /usr/XFree86/include/X11
8649 /usr/include
8650 /usr/local/include
8651 /usr/unsupported/include
8652 /usr/athena/include
8653 /usr/local/x11r5/include
8654 /usr/lpp/Xamples/include
8656 /usr/openwin/include
8657 /usr/openwin/share/include'
8659 if test "$ac_x_includes" = no; then
8660 # Guess where to find include files, by looking for Intrinsic.h.
8661 # First, try using that file with no special directory specified.
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 #include <X11/Intrinsic.h>
8669 _ACEOF
8670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } >/dev/null; then
8678 if test -s conftest.err; then
8679 ac_cpp_err=$ac_c_preproc_warn_flag
8680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8681 else
8682 ac_cpp_err=
8684 else
8685 ac_cpp_err=yes
8687 if test -z "$ac_cpp_err"; then
8688 # We can compile using X headers with no special include directory.
8689 ac_x_includes=
8690 else
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 for ac_dir in $ac_x_header_dirs; do
8695 if test -r "$ac_dir/X11/Intrinsic.h"; then
8696 ac_x_includes=$ac_dir
8697 break
8699 done
8701 rm -f conftest.err conftest.$ac_ext
8702 fi # $ac_x_includes = no
8704 if test "$ac_x_libraries" = no; then
8705 # Check for the libraries.
8706 # See if we find them without any special options.
8707 # Don't add to $LIBS permanently.
8708 ac_save_LIBS=$LIBS
8709 LIBS="-lXt $LIBS"
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #include <X11/Intrinsic.h>
8718 main ()
8720 XtMalloc (0)
8722 return 0;
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 LIBS=$ac_save_LIBS
8748 # We can link X programs with no special library path.
8749 ac_x_libraries=
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 LIBS=$ac_save_LIBS
8755 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8757 # Don't even attempt the hair of trying to link an X program!
8758 for ac_extension in a so sl; do
8759 if test -r $ac_dir/libXt.$ac_extension; then
8760 ac_x_libraries=$ac_dir
8761 break 2
8763 done
8764 done
8766 rm -f conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 fi # $ac_x_libraries = no
8770 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8771 # Didn't find X anywhere. Cache the known absence of X.
8772 ac_cv_have_x="have_x=no"
8773 else
8774 # Record where we found X for the cache.
8775 ac_cv_have_x="have_x=yes \
8776 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8781 eval "$ac_cv_have_x"
8782 fi # $with_x != no
8784 if test "$have_x" != yes; then
8785 echo "$as_me:$LINENO: result: $have_x" >&5
8786 echo "${ECHO_T}$have_x" >&6
8787 no_x=yes
8788 else
8789 # If each of the values was on the command line, it overrides each guess.
8790 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8791 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8792 # Update the cache value to reflect the command line values.
8793 ac_cv_have_x="have_x=yes \
8794 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8795 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8796 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8800 # for constant arguments. Useless!
8801 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8802 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8803 if test "${ac_cv_working_alloca_h+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 #include <alloca.h>
8814 main ()
8816 char *p = (char *) alloca (2 * sizeof (int));
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_working_alloca_h=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_cv_working_alloca_h=no
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8854 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8855 if test $ac_cv_working_alloca_h = yes; then
8857 cat >>confdefs.h <<\_ACEOF
8858 #define HAVE_ALLOCA_H 1
8859 _ACEOF
8863 echo "$as_me:$LINENO: checking for alloca" >&5
8864 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8865 if test "${ac_cv_func_alloca_works+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h. */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 #ifdef __GNUC__
8875 # define alloca __builtin_alloca
8876 #else
8877 # ifdef _MSC_VER
8878 # include <malloc.h>
8879 # define alloca _alloca
8880 # else
8881 # if HAVE_ALLOCA_H
8882 # include <alloca.h>
8883 # else
8884 # ifdef _AIX
8885 #pragma alloca
8886 # else
8887 # ifndef alloca /* predefined by HP cc +Olibcalls */
8888 char *alloca ();
8889 # endif
8890 # endif
8891 # endif
8892 # endif
8893 #endif
8896 main ()
8898 char *p = (char *) alloca (1);
8900 return 0;
8902 _ACEOF
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -z "$ac_c_werror_flag"
8913 || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_func_alloca_works=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_cv_func_alloca_works=no
8932 rm -f conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8935 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8936 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8938 if test $ac_cv_func_alloca_works = yes; then
8940 cat >>confdefs.h <<\_ACEOF
8941 #define HAVE_ALLOCA 1
8942 _ACEOF
8944 else
8945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8946 # that cause trouble. Some versions do not even contain alloca or
8947 # contain a buggy version. If you still want to use their alloca,
8948 # use ar to extract alloca.o from them instead of compiling alloca.c.
8950 ALLOCA=alloca.$ac_objext
8952 cat >>confdefs.h <<\_ACEOF
8953 #define C_ALLOCA 1
8954 _ACEOF
8957 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8958 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8959 if test "${ac_cv_os_cray+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 #if defined(CRAY) && ! defined(CRAY2)
8969 webecray
8970 #else
8971 wenotbecray
8972 #endif
8974 _ACEOF
8975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8976 $EGREP "webecray" >/dev/null 2>&1; then
8977 ac_cv_os_cray=yes
8978 else
8979 ac_cv_os_cray=no
8981 rm -f conftest*
8984 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8985 echo "${ECHO_T}$ac_cv_os_cray" >&6
8986 if test $ac_cv_os_cray = yes; then
8987 for ac_func in _getb67 GETB67 getb67; do
8988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989 echo "$as_me:$LINENO: checking for $ac_func" >&5
8990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_var+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9002 #define $ac_func innocuous_$ac_func
9004 /* System header to define __stub macros and hopefully few prototypes,
9005 which can conflict with char $ac_func (); below.
9006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9007 <limits.h> exists even on freestanding compilers. */
9009 #ifdef __STDC__
9010 # include <limits.h>
9011 #else
9012 # include <assert.h>
9013 #endif
9015 #undef $ac_func
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 #ifdef __cplusplus
9019 extern "C"
9021 #endif
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9024 char $ac_func ();
9025 /* The GNU C library defines this for functions which it implements
9026 to always fail with ENOSYS. Some functions are actually named
9027 something starting with __ and the normal name is an alias. */
9028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9029 choke me
9030 #else
9031 char (*f) () = $ac_func;
9032 #endif
9033 #ifdef __cplusplus
9035 #endif
9038 main ()
9040 return f != $ac_func;
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_var=yes"
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 eval "$as_ac_var=no"
9074 rm -f conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9079 if test `eval echo '${'$as_ac_var'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define CRAY_STACKSEG_END $ac_func
9083 _ACEOF
9085 break
9088 done
9091 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9092 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9093 if test "${ac_cv_c_stack_direction+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 if test "$cross_compiling" = yes; then
9097 ac_cv_c_stack_direction=0
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 find_stack_direction ()
9108 static char *addr = 0;
9109 auto char dummy;
9110 if (addr == 0)
9112 addr = &dummy;
9113 return find_stack_direction ();
9115 else
9116 return (&dummy > addr) ? 1 : -1;
9120 main ()
9122 exit (find_stack_direction () < 0);
9124 _ACEOF
9125 rm -f conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_c_stack_direction=1
9137 else
9138 echo "$as_me: program exited with status $ac_status" >&5
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ( exit $ac_status )
9143 ac_cv_c_stack_direction=-1
9145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9149 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9151 cat >>confdefs.h <<_ACEOF
9152 #define STACK_DIRECTION $ac_cv_c_stack_direction
9153 _ACEOF
9163 ac_header_dirent=no
9164 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9165 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9166 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9167 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #include <sys/types.h>
9178 #include <$ac_hdr>
9181 main ()
9183 if ((DIR *) 0)
9184 return 0;
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 eval "$as_ac_Header=yes"
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 eval "$as_ac_Header=no"
9218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9225 _ACEOF
9227 ac_header_dirent=$ac_hdr; break
9230 done
9231 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9232 if test $ac_header_dirent = dirent.h; then
9233 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9234 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9235 if test "${ac_cv_search_opendir+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_func_search_save_LIBS=$LIBS
9239 ac_cv_search_opendir=no
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253 char opendir ();
9255 main ()
9257 opendir ();
9259 return 0;
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_cv_search_opendir="none required"
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 if test "$ac_cv_search_opendir" = no; then
9293 for ac_lib in dir; do
9294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9308 char opendir ();
9310 main ()
9312 opendir ();
9314 return 0;
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_search_opendir="-l$ac_lib"
9340 break
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 done
9350 LIBS=$ac_func_search_save_LIBS
9352 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9353 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9354 if test "$ac_cv_search_opendir" != no; then
9355 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9359 else
9360 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9361 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9362 if test "${ac_cv_search_opendir+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 ac_func_search_save_LIBS=$LIBS
9366 ac_cv_search_opendir=no
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9374 /* Override any gcc2 internal prototype to avoid an error. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char opendir ();
9382 main ()
9384 opendir ();
9386 return 0;
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_opendir="none required"
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 if test "$ac_cv_search_opendir" = no; then
9420 for ac_lib in x; do
9421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9435 char opendir ();
9437 main ()
9439 opendir ();
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_search_opendir="-l$ac_lib"
9467 break
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 done
9477 LIBS=$ac_func_search_save_LIBS
9479 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9480 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9481 if test "$ac_cv_search_opendir" != no; then
9482 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9488 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9490 if test "${ac_cv_header_stdc+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 #include <stdlib.h>
9500 #include <stdarg.h>
9501 #include <string.h>
9502 #include <float.h>
9505 main ()
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag"
9522 || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest.$ac_objext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_header_stdc=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_cv_header_stdc=no
9541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9543 if test $ac_cv_header_stdc = yes; then
9544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 #include <string.h>
9553 _ACEOF
9554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9555 $EGREP "memchr" >/dev/null 2>&1; then
9557 else
9558 ac_cv_header_stdc=no
9560 rm -f conftest*
9564 if test $ac_cv_header_stdc = yes; then
9565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <stdlib.h>
9574 _ACEOF
9575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9576 $EGREP "free" >/dev/null 2>&1; then
9578 else
9579 ac_cv_header_stdc=no
9581 rm -f conftest*
9585 if test $ac_cv_header_stdc = yes; then
9586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9587 if test "$cross_compiling" = yes; then
9589 else
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596 #include <ctype.h>
9597 #if ((' ' & 0x0FF) == 0x020)
9598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9600 #else
9601 # define ISLOWER(c) \
9602 (('a' <= (c) && (c) <= 'i') \
9603 || ('j' <= (c) && (c) <= 'r') \
9604 || ('s' <= (c) && (c) <= 'z'))
9605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9606 #endif
9608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9610 main ()
9612 int i;
9613 for (i = 0; i < 256; i++)
9614 if (XOR (islower (i), ISLOWER (i))
9615 || toupper (i) != TOUPPER (i))
9616 exit(2);
9617 exit (0);
9619 _ACEOF
9620 rm -f conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9632 else
9633 echo "$as_me: program exited with status $ac_status" >&5
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ( exit $ac_status )
9638 ac_cv_header_stdc=no
9640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9646 if test $ac_cv_header_stdc = yes; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define STDC_HEADERS 1
9650 _ACEOF
9684 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
9686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 else
9696 # Is the header compilable?
9697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_header_compiler=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_header_compiler=no
9737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9739 echo "${ECHO_T}$ac_header_compiler" >&6
9741 # Is the header present?
9742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <$ac_header>
9751 _ACEOF
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev/null; then
9760 if test -s conftest.err; then
9761 ac_cpp_err=$ac_c_preproc_warn_flag
9762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9763 else
9764 ac_cpp_err=
9766 else
9767 ac_cpp_err=yes
9769 if test -z "$ac_cpp_err"; then
9770 ac_header_preproc=yes
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_header_preproc=no
9777 rm -f conftest.err conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6
9781 # So? What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783 yes:no: )
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc=yes
9790 no:yes:* )
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9804 cat <<\_ASBOX
9805 ## ------------------------------ ##
9806 ## Report this to admin@amule.org ##
9807 ## ------------------------------ ##
9808 _ASBOX
9810 sed "s/^/$as_me: WARNING: /" >&2
9812 esac
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 eval "$as_ac_Header=\$ac_header_preproc"
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h <<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 _ACEOF
9831 done
9833 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9834 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9835 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 #include <sys/types.h>
9845 #include <sys/wait.h>
9846 #ifndef WEXITSTATUS
9847 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9848 #endif
9849 #ifndef WIFEXITED
9850 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9851 #endif
9854 main ()
9856 int s;
9857 wait (&s);
9858 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9860 return 0;
9862 _ACEOF
9863 rm -f conftest.$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_header_sys_wait_h=yes
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_header_sys_wait_h=no
9892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9894 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9895 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9896 if test $ac_cv_header_sys_wait_h = yes; then
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_SYS_WAIT_H 1
9900 _ACEOF
9905 # Checks for typedefs, structures, and compiler characteristics.
9906 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9907 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9908 if test "${ac_cv_header_stdbool_h+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 #include <stdbool.h>
9919 #ifndef bool
9920 # error bool is not defined
9921 #endif
9922 #ifndef false
9923 # error false is not defined
9924 #endif
9925 #if false
9926 # error false is not 0
9927 #endif
9928 #ifndef true
9929 # error true is not defined
9930 #endif
9931 #if true != 1
9932 # error true is not 1
9933 #endif
9934 #ifndef __bool_true_false_are_defined
9935 # error __bool_true_false_are_defined is not defined
9936 #endif
9938 struct s { _Bool s: 1; _Bool t; } s;
9940 char a[true == 1 ? 1 : -1];
9941 char b[false == 0 ? 1 : -1];
9942 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9943 char d[(bool) -0.5 == true ? 1 : -1];
9944 bool e = &s;
9945 char f[(_Bool) -0.0 == false ? 1 : -1];
9946 char g[true];
9947 char h[sizeof (_Bool)];
9948 char i[sizeof s.t];
9951 main ()
9953 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9955 return 0;
9957 _ACEOF
9958 rm -f conftest.$ac_objext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960 (eval $ac_compile) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_header_stdbool_h=yes
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_header_stdbool_h=no
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9990 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9991 echo "$as_me:$LINENO: checking for _Bool" >&5
9992 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9993 if test "${ac_cv_type__Bool+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h. */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10004 main ()
10006 if ((_Bool *) 0)
10007 return 0;
10008 if (sizeof (_Bool))
10009 return 0;
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_type__Bool=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_type__Bool=no
10043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10045 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10046 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10047 if test $ac_cv_type__Bool = yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE__BOOL 1
10051 _ACEOF
10056 if test $ac_cv_header_stdbool_h = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_STDBOOL_H 1
10060 _ACEOF
10064 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10065 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10066 if test "${ac_cv_c_const+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10077 main ()
10079 /* FIXME: Include the comments suggested by Paul. */
10080 #ifndef __cplusplus
10081 /* Ultrix mips cc rejects this. */
10082 typedef int charset[2];
10083 const charset x;
10084 /* SunOS 4.1.1 cc rejects this. */
10085 char const *const *ccp;
10086 char **p;
10087 /* NEC SVR4.0.2 mips cc rejects this. */
10088 struct point {int x, y;};
10089 static struct point const zero = {0,0};
10090 /* AIX XL C 1.02.0.0 rejects this.
10091 It does not let you subtract one const X* pointer from another in
10092 an arm of an if-expression whose if-part is not a constant
10093 expression */
10094 const char *g = "string";
10095 ccp = &g + (g ? g-g : 0);
10096 /* HPUX 7.0 cc rejects these. */
10097 ++ccp;
10098 p = (char**) ccp;
10099 ccp = (char const *const *) p;
10100 { /* SCO 3.2v4 cc rejects this. */
10101 char *t;
10102 char const *s = 0 ? (char *) 0 : (char const *) 0;
10104 *t++ = 0;
10106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10107 int x[] = {25, 17};
10108 const int *foo = &x[0];
10109 ++foo;
10111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10112 typedef const int *iptr;
10113 iptr p = 0;
10114 ++p;
10116 { /* AIX XL C 1.02.0.0 rejects this saying
10117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10118 struct s { int j; const int *ap[3]; };
10119 struct s *b; b->j = 5;
10121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10122 const int foo = 10;
10124 #endif
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10132 (eval $ac_compile) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest.$ac_objext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_c_const=yes
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_c_const=no
10159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10162 echo "${ECHO_T}$ac_cv_c_const" >&6
10163 if test $ac_cv_c_const = no; then
10165 cat >>confdefs.h <<\_ACEOF
10166 #define const
10167 _ACEOF
10171 echo "$as_me:$LINENO: checking for inline" >&5
10172 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10173 if test "${ac_cv_c_inline+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 ac_cv_c_inline=no
10177 for ac_kw in inline __inline__ __inline; do
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #ifndef __cplusplus
10185 typedef int foo_t;
10186 static $ac_kw foo_t static_foo () {return 0; }
10187 $ac_kw foo_t foo () {return 0; }
10188 #endif
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_c_inline=$ac_kw; break
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 done
10223 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10224 echo "${ECHO_T}$ac_cv_c_inline" >&6
10227 case $ac_cv_c_inline in
10228 inline | yes) ;;
10230 case $ac_cv_c_inline in
10231 no) ac_val=;;
10232 *) ac_val=$ac_cv_c_inline;;
10233 esac
10234 cat >>confdefs.h <<_ACEOF
10235 #ifndef __cplusplus
10236 #define inline $ac_val
10237 #endif
10238 _ACEOF
10240 esac
10242 echo "$as_me:$LINENO: checking for mode_t" >&5
10243 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10244 if test "${ac_cv_type_mode_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 $ac_includes_default
10255 main ()
10257 if ((mode_t *) 0)
10258 return 0;
10259 if (sizeof (mode_t))
10260 return 0;
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_cv_type_mode_t=yes
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_cv_type_mode_t=no
10294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10297 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10298 if test $ac_cv_type_mode_t = yes; then
10300 else
10302 cat >>confdefs.h <<_ACEOF
10303 #define mode_t int
10304 _ACEOF
10308 echo "$as_me:$LINENO: checking for off_t" >&5
10309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10310 if test "${ac_cv_type_off_t+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10321 main ()
10323 if ((off_t *) 0)
10324 return 0;
10325 if (sizeof (off_t))
10326 return 0;
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_type_off_t=yes
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_type_off_t=no
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10363 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10364 if test $ac_cv_type_off_t = yes; then
10366 else
10368 cat >>confdefs.h <<_ACEOF
10369 #define off_t long
10370 _ACEOF
10374 echo "$as_me:$LINENO: checking for size_t" >&5
10375 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10376 if test "${ac_cv_type_size_t+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10387 main ()
10389 if ((size_t *) 0)
10390 return 0;
10391 if (sizeof (size_t))
10392 return 0;
10394 return 0;
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_type_size_t=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_cv_type_size_t=no
10426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10429 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10430 if test $ac_cv_type_size_t = yes; then
10432 else
10434 cat >>confdefs.h <<_ACEOF
10435 #define size_t unsigned
10436 _ACEOF
10440 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10441 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10442 if test "${ac_cv_header_time+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <sys/time.h>
10453 #include <time.h>
10456 main ()
10458 if ((struct tm *) 0)
10459 return 0;
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466 (eval $ac_compile) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_header_time=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_header_time=no
10493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10496 echo "${ECHO_T}$ac_cv_header_time" >&6
10497 if test $ac_cv_header_time = yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define TIME_WITH_SYS_TIME 1
10501 _ACEOF
10505 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10506 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10507 if test "${ac_cv_struct_tm+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <sys/types.h>
10517 #include <time.h>
10520 main ()
10522 struct tm *tp; tp->tm_sec;
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529 (eval $ac_compile) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag"
10537 || test ! -s conftest.err'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_struct_tm=time.h
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_cv_struct_tm=sys/time.h
10556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10559 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10560 if test $ac_cv_struct_tm = sys/time.h; then
10562 cat >>confdefs.h <<\_ACEOF
10563 #define TM_IN_SYS_TIME 1
10564 _ACEOF
10568 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10569 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10570 if test "${ac_cv_type_uid_t+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <sys/types.h>
10581 _ACEOF
10582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10583 $EGREP "uid_t" >/dev/null 2>&1; then
10584 ac_cv_type_uid_t=yes
10585 else
10586 ac_cv_type_uid_t=no
10588 rm -f conftest*
10591 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10592 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10593 if test $ac_cv_type_uid_t = no; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define uid_t int
10597 _ACEOF
10600 cat >>confdefs.h <<\_ACEOF
10601 #define gid_t int
10602 _ACEOF
10606 echo "$as_me:$LINENO: checking for working volatile" >&5
10607 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10608 if test "${ac_cv_c_volatile+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10619 main ()
10622 volatile int x;
10623 int * volatile y;
10625 return 0;
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_c_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_c_volatile=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_c_volatile=no
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10660 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10661 if test $ac_cv_c_volatile = no; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define volatile
10665 _ACEOF
10669 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10670 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10671 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10682 main ()
10684 if ((ptrdiff_t *) 0)
10685 return 0;
10686 if (sizeof (ptrdiff_t))
10687 return 0;
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_type_ptrdiff_t=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_cv_type_ptrdiff_t=no
10721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10724 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10725 if test $ac_cv_type_ptrdiff_t = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_PTRDIFF_T 1
10729 _ACEOF
10735 # Checks for library functions.
10736 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10737 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10738 if test "${ac_cv_func_closedir_void+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 if test "$cross_compiling" = yes; then
10742 ac_cv_func_closedir_void=yes
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 #include <$ac_header_dirent>
10752 #ifndef __cplusplus
10753 int closedir ();
10754 #endif
10757 main ()
10759 exit (closedir (opendir (".")) != 0);
10761 return 0;
10763 _ACEOF
10764 rm -f conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_func_closedir_void=no
10776 else
10777 echo "$as_me: program exited with status $ac_status" >&5
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ( exit $ac_status )
10782 ac_cv_func_closedir_void=yes
10784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10788 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10789 if test $ac_cv_func_closedir_void = yes; then
10791 cat >>confdefs.h <<\_ACEOF
10792 #define CLOSEDIR_VOID 1
10793 _ACEOF
10798 MKINSTALLDIRS=
10799 if test -n "$ac_aux_dir"; then
10800 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10802 if test -z "$MKINSTALLDIRS"; then
10803 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10810 # Extract the first word of "msgfmt", so it can be a program name with args.
10811 set dummy msgfmt; ac_word=$2
10812 echo "$as_me:$LINENO: checking for $ac_word" >&5
10813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10814 if test "${ac_cv_path_MSGFMT+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 case "$MSGFMT" in
10819 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10823 for ac_dir in $PATH; do
10824 test -z "$ac_dir" && ac_dir=.
10825 if test -f $ac_dir/$ac_word; then
10826 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10827 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10828 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10829 break
10832 done
10833 IFS="$ac_save_ifs"
10834 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10836 esac
10838 MSGFMT="$ac_cv_path_MSGFMT"
10839 if test "$MSGFMT" != ":"; then
10840 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10841 echo "${ECHO_T}$MSGFMT" >&6
10842 else
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10847 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10848 set dummy gmsgfmt; ac_word=$2
10849 echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 case $GMSGFMT in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10875 esac
10877 GMSGFMT=$ac_cv_path_GMSGFMT
10879 if test -n "$GMSGFMT"; then
10880 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10881 echo "${ECHO_T}$GMSGFMT" >&6
10882 else
10883 echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6
10888 # Extract the first word of "xgettext", so it can be a program name with args.
10889 set dummy xgettext; ac_word=$2
10890 echo "$as_me:$LINENO: checking for $ac_word" >&5
10891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10892 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 case "$XGETTEXT" in
10897 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10901 for ac_dir in $PATH; do
10902 test -z "$ac_dir" && ac_dir=.
10903 if test -f $ac_dir/$ac_word; then
10904 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
10905 (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
10906 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10907 break
10910 done
10911 IFS="$ac_save_ifs"
10912 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10914 esac
10916 XGETTEXT="$ac_cv_path_XGETTEXT"
10917 if test "$XGETTEXT" != ":"; then
10918 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10919 echo "${ECHO_T}$XGETTEXT" >&6
10920 else
10921 echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6
10925 rm -f messages.po
10927 # Extract the first word of "msgmerge", so it can be a program name with args.
10928 set dummy msgmerge; ac_word=$2
10929 echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10931 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 case "$MSGMERGE" in
10936 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10940 for ac_dir in $PATH; do
10941 test -z "$ac_dir" && ac_dir=.
10942 if test -f $ac_dir/$ac_word; then
10943 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10944 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
10945 break
10948 done
10949 IFS="$ac_save_ifs"
10950 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10952 esac
10954 MSGMERGE="$ac_cv_path_MSGMERGE"
10955 if test "$MSGMERGE" != ":"; then
10956 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10957 echo "${ECHO_T}$MSGMERGE" >&6
10958 else
10959 echo "$as_me:$LINENO: result: no" >&5
10960 echo "${ECHO_T}no" >&6
10964 if test "$GMSGFMT" != ":"; then
10965 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10966 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10968 else
10969 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10970 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10971 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10972 GMSGFMT=":"
10976 if test "$XGETTEXT" != ":"; then
10977 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
10978 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10980 else
10981 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10982 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10983 XGETTEXT=":"
10985 rm -f messages.po
10988 ac_config_commands="$ac_config_commands default-1"
10991 echo "$as_me:$LINENO: checking for library containing strerror" >&5
10992 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
10993 if test "${ac_cv_search_strerror+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 ac_func_search_save_LIBS=$LIBS
10997 ac_cv_search_strerror=no
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11005 /* Override any gcc2 internal prototype to avoid an error. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */
11011 char strerror ();
11013 main ()
11015 strerror ();
11017 return 0;
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag"
11030 || test ! -s conftest.err'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_cv_search_strerror="none required"
11043 else
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11048 rm -f conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 if test "$ac_cv_search_strerror" = no; then
11051 for ac_lib in cposix; do
11052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11060 /* Override any gcc2 internal prototype to avoid an error. */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11066 char strerror ();
11068 main ()
11070 strerror ();
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_search_strerror="-l$ac_lib"
11098 break
11099 else
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11104 rm -f conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 done
11108 LIBS=$ac_func_search_save_LIBS
11110 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11111 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11112 if test "$ac_cv_search_strerror" != no; then
11113 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11119 for ac_header in stdlib.h unistd.h
11121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11123 echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130 else
11131 # Is the header compilable?
11132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_includes_default
11141 #include <$ac_header>
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag"
11153 || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_header_compiler=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_header_compiler=no
11172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11174 echo "${ECHO_T}$ac_header_compiler" >&6
11176 # Is the header present?
11177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <$ac_header>
11186 _ACEOF
11187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null; then
11195 if test -s conftest.err; then
11196 ac_cpp_err=$ac_c_preproc_warn_flag
11197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11198 else
11199 ac_cpp_err=
11201 else
11202 ac_cpp_err=yes
11204 if test -z "$ac_cpp_err"; then
11205 ac_header_preproc=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_header_preproc=no
11212 rm -f conftest.err conftest.$ac_ext
11213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11214 echo "${ECHO_T}$ac_header_preproc" >&6
11216 # So? What about this header?
11217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11218 yes:no: )
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11223 ac_header_preproc=yes
11225 no:yes:* )
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11239 cat <<\_ASBOX
11240 ## ------------------------------ ##
11241 ## Report this to admin@amule.org ##
11242 ## ------------------------------ ##
11243 _ASBOX
11245 sed "s/^/$as_me: WARNING: /" >&2
11247 esac
11248 echo "$as_me:$LINENO: checking for $ac_header" >&5
11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253 eval "$as_ac_Header=\$ac_header_preproc"
11255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11260 cat >>confdefs.h <<_ACEOF
11261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 _ACEOF
11266 done
11269 for ac_func in getpagesize
11271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11272 echo "$as_me:$LINENO: checking for $ac_func" >&5
11273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11274 if eval "test \"\${$as_ac_var+set}\" = set"; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11285 #define $ac_func innocuous_$ac_func
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char $ac_func (); below.
11289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 <limits.h> exists even on freestanding compilers. */
11292 #ifdef __STDC__
11293 # include <limits.h>
11294 #else
11295 # include <assert.h>
11296 #endif
11298 #undef $ac_func
11300 /* Override any gcc2 internal prototype to avoid an error. */
11301 #ifdef __cplusplus
11302 extern "C"
11304 #endif
11305 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */
11307 char $ac_func ();
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11312 choke me
11313 #else
11314 char (*f) () = $ac_func;
11315 #endif
11316 #ifdef __cplusplus
11318 #endif
11321 main ()
11323 return f != $ac_func;
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11330 (eval $ac_link) 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest$ac_exeext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 eval "$as_ac_var=yes"
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 eval "$as_ac_var=no"
11357 rm -f conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11368 done
11370 echo "$as_me:$LINENO: checking for working mmap" >&5
11371 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11372 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 if test "$cross_compiling" = yes; then
11376 ac_cv_func_mmap_fixed_mapped=no
11377 else
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 /* malloc might have been renamed as rpl_malloc. */
11386 #undef malloc
11388 /* Thanks to Mike Haertel and Jim Avera for this test.
11389 Here is a matrix of mmap possibilities:
11390 mmap private not fixed
11391 mmap private fixed at somewhere currently unmapped
11392 mmap private fixed at somewhere already mapped
11393 mmap shared not fixed
11394 mmap shared fixed at somewhere currently unmapped
11395 mmap shared fixed at somewhere already mapped
11396 For private mappings, we should verify that changes cannot be read()
11397 back from the file, nor mmap's back from the file at a different
11398 address. (There have been systems where private was not correctly
11399 implemented like the infamous i386 svr4.0, and systems where the
11400 VM page cache was not coherent with the file system buffer cache
11401 like early versions of FreeBSD and possibly contemporary NetBSD.)
11402 For shared mappings, we should conversely verify that changes get
11403 propagated back to all the places they're supposed to be.
11405 Grep wants private fixed already mapped.
11406 The main things grep needs to know about mmap are:
11407 * does it exist and is it safe to write into the mmap'd area
11408 * how to use it (BSD variants) */
11410 #include <fcntl.h>
11411 #include <sys/mman.h>
11413 #if !STDC_HEADERS && !HAVE_STDLIB_H
11414 char *malloc ();
11415 #endif
11417 /* This mess was copied from the GNU getpagesize.h. */
11418 #if !HAVE_GETPAGESIZE
11419 /* Assume that all systems that can run configure have sys/param.h. */
11420 # if !HAVE_SYS_PARAM_H
11421 # define HAVE_SYS_PARAM_H 1
11422 # endif
11424 # ifdef _SC_PAGESIZE
11425 # define getpagesize() sysconf(_SC_PAGESIZE)
11426 # else /* no _SC_PAGESIZE */
11427 # if HAVE_SYS_PARAM_H
11428 # include <sys/param.h>
11429 # ifdef EXEC_PAGESIZE
11430 # define getpagesize() EXEC_PAGESIZE
11431 # else /* no EXEC_PAGESIZE */
11432 # ifdef NBPG
11433 # define getpagesize() NBPG * CLSIZE
11434 # ifndef CLSIZE
11435 # define CLSIZE 1
11436 # endif /* no CLSIZE */
11437 # else /* no NBPG */
11438 # ifdef NBPC
11439 # define getpagesize() NBPC
11440 # else /* no NBPC */
11441 # ifdef PAGESIZE
11442 # define getpagesize() PAGESIZE
11443 # endif /* PAGESIZE */
11444 # endif /* no NBPC */
11445 # endif /* no NBPG */
11446 # endif /* no EXEC_PAGESIZE */
11447 # else /* no HAVE_SYS_PARAM_H */
11448 # define getpagesize() 8192 /* punt totally */
11449 # endif /* no HAVE_SYS_PARAM_H */
11450 # endif /* no _SC_PAGESIZE */
11452 #endif /* no HAVE_GETPAGESIZE */
11455 main ()
11457 char *data, *data2, *data3;
11458 int i, pagesize;
11459 int fd;
11461 pagesize = getpagesize ();
11463 /* First, make a file with some known garbage in it. */
11464 data = (char *) malloc (pagesize);
11465 if (!data)
11466 exit (1);
11467 for (i = 0; i < pagesize; ++i)
11468 *(data + i) = rand ();
11469 umask (0);
11470 fd = creat ("conftest.mmap", 0600);
11471 if (fd < 0)
11472 exit (1);
11473 if (write (fd, data, pagesize) != pagesize)
11474 exit (1);
11475 close (fd);
11477 /* Next, try to mmap the file at a fixed address which already has
11478 something else allocated at it. If we can, also make sure that
11479 we see the same garbage. */
11480 fd = open ("conftest.mmap", O_RDWR);
11481 if (fd < 0)
11482 exit (1);
11483 data2 = (char *) malloc (2 * pagesize);
11484 if (!data2)
11485 exit (1);
11486 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11489 exit (1);
11490 for (i = 0; i < pagesize; ++i)
11491 if (*(data + i) != *(data2 + i))
11492 exit (1);
11494 /* Finally, make sure that changes to the mapped area do not
11495 percolate back to the file as seen by read(). (This is a bug on
11496 some variants of i386 svr4.0.) */
11497 for (i = 0; i < pagesize; ++i)
11498 *(data2 + i) = *(data2 + i) + 1;
11499 data3 = (char *) malloc (pagesize);
11500 if (!data3)
11501 exit (1);
11502 if (read (fd, data3, pagesize) != pagesize)
11503 exit (1);
11504 for (i = 0; i < pagesize; ++i)
11505 if (*(data + i) != *(data3 + i))
11506 exit (1);
11507 close (fd);
11508 exit (0);
11510 _ACEOF
11511 rm -f conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_func_mmap_fixed_mapped=yes
11523 else
11524 echo "$as_me: program exited with status $ac_status" >&5
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ( exit $ac_status )
11529 ac_cv_func_mmap_fixed_mapped=no
11531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11535 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11536 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_MMAP 1
11540 _ACEOF
11543 rm -f conftest.mmap
11546 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11547 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11548 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h. */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11558 #include <features.h>
11559 #ifdef __GNU_LIBRARY__
11560 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11561 Lucky GNU user
11562 #endif
11563 #endif
11565 _ACEOF
11566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11567 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11568 ac_cv_gnu_library_2_1=yes
11569 else
11570 ac_cv_gnu_library_2_1=no
11572 rm -f conftest*
11577 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11578 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11580 GLIBC21="$ac_cv_gnu_library_2_1"
11585 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11586 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11587 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11591 if test "$cross_compiling" = yes; then
11593 # Guess based on the CPU.
11594 case "$host_cpu" in
11595 alpha* | i3456786 | m68k | s390*)
11596 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11598 gt_cv_int_divbyzero_sigfpe="guessing no";;
11599 esac
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 #include <stdlib.h>
11610 #include <signal.h>
11612 static void
11613 #ifdef __cplusplus
11614 sigfpe_handler (int sig)
11615 #else
11616 sigfpe_handler (sig) int sig;
11617 #endif
11619 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11620 exit (sig != SIGFPE);
11623 int x = 1;
11624 int y = 0;
11625 int z;
11626 int nan;
11628 int main ()
11630 signal (SIGFPE, sigfpe_handler);
11631 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11632 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11633 signal (SIGTRAP, sigfpe_handler);
11634 #endif
11635 /* Linux/SPARC yields signal SIGILL. */
11636 #if defined (__sparc__) && defined (__linux__)
11637 signal (SIGILL, sigfpe_handler);
11638 #endif
11640 z = x / y;
11641 nan = y / y;
11642 exit (1);
11645 _ACEOF
11646 rm -f conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 gt_cv_int_divbyzero_sigfpe=yes
11658 else
11659 echo "$as_me: program exited with status $ac_status" >&5
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ( exit $ac_status )
11664 gt_cv_int_divbyzero_sigfpe=no
11666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11670 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11671 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11672 case "$gt_cv_int_divbyzero_sigfpe" in
11673 *yes) value=1;;
11674 *) value=0;;
11675 esac
11677 cat >>confdefs.h <<_ACEOF
11678 #define INTDIV0_RAISES_SIGFPE $value
11679 _ACEOF
11683 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11684 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11685 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #include <sys/types.h>
11695 #include <inttypes.h>
11697 main ()
11699 uintmax_t i = (uintmax_t) -1;
11701 return 0;
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 jm_ac_cv_header_inttypes_h=yes
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 jm_ac_cv_header_inttypes_h=no
11733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11735 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11736 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11737 if test $jm_ac_cv_header_inttypes_h = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11741 _ACEOF
11746 echo "$as_me:$LINENO: checking for stdint.h" >&5
11747 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11748 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h. */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include <sys/types.h>
11758 #include <stdint.h>
11760 main ()
11762 uintmax_t i = (uintmax_t) -1;
11764 return 0;
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag"
11777 || test ! -s conftest.err'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 jm_ac_cv_header_stdint_h=yes
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 jm_ac_cv_header_stdint_h=no
11796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11799 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11800 if test $jm_ac_cv_header_stdint_h = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define HAVE_STDINT_H_WITH_UINTMAX 1
11804 _ACEOF
11809 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11810 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11811 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 unsigned long long ull = 1; int i = 63;
11822 main ()
11824 unsigned long long ullmax = (unsigned long long) -1;
11825 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11827 return 0;
11829 _ACEOF
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11832 (eval $ac_link) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag"
11840 || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_type_unsigned_long_long=yes
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_cv_type_unsigned_long_long=no
11859 rm -f conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11862 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11863 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11864 if test $ac_cv_type_unsigned_long_long = yes; then
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_UNSIGNED_LONG_LONG 1
11868 _ACEOF
11875 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
11877 test $ac_cv_type_unsigned_long_long = yes \
11878 && ac_type='unsigned long long' \
11879 || ac_type='unsigned long'
11881 cat >>confdefs.h <<_ACEOF
11882 #define uintmax_t $ac_type
11883 _ACEOF
11888 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11890 if test "${gt_cv_header_inttypes_h+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <sys/types.h>
11901 #include <inttypes.h>
11903 main ()
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11912 (eval $ac_compile) 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest.$ac_objext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 gt_cv_header_inttypes_h=yes
11933 else
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 gt_cv_header_inttypes_h=no
11939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11942 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11943 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11944 if test $gt_cv_header_inttypes_h = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_INTTYPES_H 1
11948 _ACEOF
11954 if test $gt_cv_header_inttypes_h = yes; then
11955 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
11956 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
11957 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <inttypes.h>
11968 #ifdef PRId32
11969 char *p = PRId32;
11970 #endif
11973 main ()
11977 return 0;
11979 _ACEOF
11980 rm -f conftest.$ac_objext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 gt_cv_inttypes_pri_broken=no
12003 else
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 gt_cv_inttypes_pri_broken=yes
12009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12012 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12013 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
12015 if test "$gt_cv_inttypes_pri_broken" = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define PRI_MACROS_BROKEN 1
12019 _ACEOF
12024 if test "X$prefix" = "XNONE"; then
12025 acl_final_prefix="$ac_default_prefix"
12026 else
12027 acl_final_prefix="$prefix"
12029 if test "X$exec_prefix" = "XNONE"; then
12030 acl_final_exec_prefix='${prefix}'
12031 else
12032 acl_final_exec_prefix="$exec_prefix"
12034 acl_save_prefix="$prefix"
12035 prefix="$acl_final_prefix"
12036 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12037 prefix="$acl_save_prefix"
12040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12041 if test "${with_gnu_ld+set}" = set; then
12042 withval="$with_gnu_ld"
12043 test "$withval" = no || with_gnu_ld=yes
12044 else
12045 with_gnu_ld=no
12047 ac_prog=ld
12048 if test "$GCC" = yes; then
12049 # Check if gcc -print-prog-name=ld gives a path.
12050 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12051 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12052 case $host in
12053 *-*-mingw*)
12054 # gcc leaves a trailing carriage return which upsets mingw
12055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12058 esac
12059 case $ac_prog in
12060 # Accept absolute paths.
12061 [\\/]* | [A-Za-z]:[\\/]*)
12062 re_direlt='/[^/][^/]*/\.\./'
12063 # Canonicalize the path of ld
12064 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12066 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12067 done
12068 test -z "$LD" && LD="$ac_prog"
12071 # If it fails, then pretend we aren't using GCC.
12072 ac_prog=ld
12075 # If it is relative, then search for the first ld in PATH.
12076 with_gnu_ld=unknown
12078 esac
12079 elif test "$with_gnu_ld" = yes; then
12080 echo "$as_me:$LINENO: checking for GNU ld" >&5
12081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12082 else
12083 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12086 if test "${acl_cv_path_LD+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 if test -z "$LD"; then
12090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12091 for ac_dir in $PATH; do
12092 test -z "$ac_dir" && ac_dir=.
12093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12094 acl_cv_path_LD="$ac_dir/$ac_prog"
12095 # Check to see if the program is GNU ld. I'd rather use --version,
12096 # but apparently some GNU ld's only accept -v.
12097 # Break only if it was the GNU/non-GNU ld that we prefer.
12098 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12099 test "$with_gnu_ld" != no && break
12100 else
12101 test "$with_gnu_ld" != yes && break
12104 done
12105 IFS="$ac_save_ifs"
12106 else
12107 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12111 LD="$acl_cv_path_LD"
12112 if test -n "$LD"; then
12113 echo "$as_me:$LINENO: result: $LD" >&5
12114 echo "${ECHO_T}$LD" >&6
12115 else
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12119 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12120 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12121 { (exit 1); exit 1; }; }
12122 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12123 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12124 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12128 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12129 acl_cv_prog_gnu_ld=yes
12130 else
12131 acl_cv_prog_gnu_ld=no
12134 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12135 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
12136 with_gnu_ld=$acl_cv_prog_gnu_ld
12140 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12141 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
12142 if test "${acl_cv_rpath+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12146 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12147 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12148 . ./conftest.sh
12149 rm -f ./conftest.sh
12150 acl_cv_rpath=done
12153 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12154 echo "${ECHO_T}$acl_cv_rpath" >&6
12155 wl="$acl_cv_wl"
12156 libext="$acl_cv_libext"
12157 shlibext="$acl_cv_shlibext"
12158 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12159 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12160 hardcode_direct="$acl_cv_hardcode_direct"
12161 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12162 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12163 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12164 # Check whether --enable-rpath or --disable-rpath was given.
12165 if test "${enable_rpath+set}" = set; then
12166 enableval="$enable_rpath"
12168 else
12169 enable_rpath=yes
12178 use_additional=yes
12180 acl_save_prefix="$prefix"
12181 prefix="$acl_final_prefix"
12182 acl_save_exec_prefix="$exec_prefix"
12183 exec_prefix="$acl_final_exec_prefix"
12185 eval additional_includedir=\"$includedir\"
12186 eval additional_libdir=\"$libdir\"
12188 exec_prefix="$acl_save_exec_prefix"
12189 prefix="$acl_save_prefix"
12192 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12193 if test "${with_libiconv_prefix+set}" = set; then
12194 withval="$with_libiconv_prefix"
12196 if test "X$withval" = "Xno"; then
12197 use_additional=no
12198 else
12199 if test "X$withval" = "X"; then
12201 acl_save_prefix="$prefix"
12202 prefix="$acl_final_prefix"
12203 acl_save_exec_prefix="$exec_prefix"
12204 exec_prefix="$acl_final_exec_prefix"
12206 eval additional_includedir=\"$includedir\"
12207 eval additional_libdir=\"$libdir\"
12209 exec_prefix="$acl_save_exec_prefix"
12210 prefix="$acl_save_prefix"
12212 else
12213 additional_includedir="$withval/include"
12214 additional_libdir="$withval/lib"
12219 LIBICONV=
12220 LTLIBICONV=
12221 INCICONV=
12222 rpathdirs=
12223 ltrpathdirs=
12224 names_already_handled=
12225 names_next_round='iconv '
12226 while test -n "$names_next_round"; do
12227 names_this_round="$names_next_round"
12228 names_next_round=
12229 for name in $names_this_round; do
12230 already_handled=
12231 for n in $names_already_handled; do
12232 if test "$n" = "$name"; then
12233 already_handled=yes
12234 break
12236 done
12237 if test -z "$already_handled"; then
12238 names_already_handled="$names_already_handled $name"
12239 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12240 eval value=\"\$HAVE_LIB$uppername\"
12241 if test -n "$value"; then
12242 if test "$value" = yes; then
12243 eval value=\"\$LIB$uppername\"
12244 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12245 eval value=\"\$LTLIB$uppername\"
12246 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12247 else
12250 else
12251 found_dir=
12252 found_la=
12253 found_so=
12254 found_a=
12255 if test $use_additional = yes; then
12256 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12257 found_dir="$additional_libdir"
12258 found_so="$additional_libdir/lib$name.$shlibext"
12259 if test -f "$additional_libdir/lib$name.la"; then
12260 found_la="$additional_libdir/lib$name.la"
12262 else
12263 if test -f "$additional_libdir/lib$name.$libext"; then
12264 found_dir="$additional_libdir"
12265 found_a="$additional_libdir/lib$name.$libext"
12266 if test -f "$additional_libdir/lib$name.la"; then
12267 found_la="$additional_libdir/lib$name.la"
12272 if test "X$found_dir" = "X"; then
12273 for x in $LDFLAGS $LTLIBICONV; do
12275 acl_save_prefix="$prefix"
12276 prefix="$acl_final_prefix"
12277 acl_save_exec_prefix="$exec_prefix"
12278 exec_prefix="$acl_final_exec_prefix"
12279 eval x=\"$x\"
12280 exec_prefix="$acl_save_exec_prefix"
12281 prefix="$acl_save_prefix"
12283 case "$x" in
12284 -L*)
12285 dir=`echo "X$x" | sed -e 's/^X-L//'`
12286 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12287 found_dir="$dir"
12288 found_so="$dir/lib$name.$shlibext"
12289 if test -f "$dir/lib$name.la"; then
12290 found_la="$dir/lib$name.la"
12292 else
12293 if test -f "$dir/lib$name.$libext"; then
12294 found_dir="$dir"
12295 found_a="$dir/lib$name.$libext"
12296 if test -f "$dir/lib$name.la"; then
12297 found_la="$dir/lib$name.la"
12302 esac
12303 if test "X$found_dir" != "X"; then
12304 break
12306 done
12308 if test "X$found_dir" != "X"; then
12309 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12310 if test "X$found_so" != "X"; then
12311 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12312 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12313 else
12314 haveit=
12315 for x in $ltrpathdirs; do
12316 if test "X$x" = "X$found_dir"; then
12317 haveit=yes
12318 break
12320 done
12321 if test -z "$haveit"; then
12322 ltrpathdirs="$ltrpathdirs $found_dir"
12324 if test "$hardcode_direct" = yes; then
12325 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12326 else
12327 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12328 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12329 haveit=
12330 for x in $rpathdirs; do
12331 if test "X$x" = "X$found_dir"; then
12332 haveit=yes
12333 break
12335 done
12336 if test -z "$haveit"; then
12337 rpathdirs="$rpathdirs $found_dir"
12339 else
12340 haveit=
12341 for x in $LDFLAGS $LIBICONV; do
12343 acl_save_prefix="$prefix"
12344 prefix="$acl_final_prefix"
12345 acl_save_exec_prefix="$exec_prefix"
12346 exec_prefix="$acl_final_exec_prefix"
12347 eval x=\"$x\"
12348 exec_prefix="$acl_save_exec_prefix"
12349 prefix="$acl_save_prefix"
12351 if test "X$x" = "X-L$found_dir"; then
12352 haveit=yes
12353 break
12355 done
12356 if test -z "$haveit"; then
12357 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12359 if test "$hardcode_minus_L" != no; then
12360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12361 else
12362 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12367 else
12368 if test "X$found_a" != "X"; then
12369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12370 else
12371 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12374 additional_includedir=
12375 case "$found_dir" in
12376 */lib | */lib/)
12377 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12378 additional_includedir="$basedir/include"
12380 esac
12381 if test "X$additional_includedir" != "X"; then
12382 if test "X$additional_includedir" != "X/usr/include"; then
12383 haveit=
12384 if test "X$additional_includedir" = "X/usr/local/include"; then
12385 if test -n "$GCC"; then
12386 case $host_os in
12387 linux*) haveit=yes;;
12388 esac
12391 if test -z "$haveit"; then
12392 for x in $CPPFLAGS $INCICONV; do
12394 acl_save_prefix="$prefix"
12395 prefix="$acl_final_prefix"
12396 acl_save_exec_prefix="$exec_prefix"
12397 exec_prefix="$acl_final_exec_prefix"
12398 eval x=\"$x\"
12399 exec_prefix="$acl_save_exec_prefix"
12400 prefix="$acl_save_prefix"
12402 if test "X$x" = "X-I$additional_includedir"; then
12403 haveit=yes
12404 break
12406 done
12407 if test -z "$haveit"; then
12408 if test -d "$additional_includedir"; then
12409 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12415 if test -n "$found_la"; then
12416 save_libdir="$libdir"
12417 case "$found_la" in
12418 */* | *\\*) . "$found_la" ;;
12419 *) . "./$found_la" ;;
12420 esac
12421 libdir="$save_libdir"
12422 for dep in $dependency_libs; do
12423 case "$dep" in
12424 -L*)
12425 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12426 if test "X$additional_libdir" != "X/usr/lib"; then
12427 haveit=
12428 if test "X$additional_libdir" = "X/usr/local/lib"; then
12429 if test -n "$GCC"; then
12430 case $host_os in
12431 linux*) haveit=yes;;
12432 esac
12435 if test -z "$haveit"; then
12436 haveit=
12437 for x in $LDFLAGS $LIBICONV; do
12439 acl_save_prefix="$prefix"
12440 prefix="$acl_final_prefix"
12441 acl_save_exec_prefix="$exec_prefix"
12442 exec_prefix="$acl_final_exec_prefix"
12443 eval x=\"$x\"
12444 exec_prefix="$acl_save_exec_prefix"
12445 prefix="$acl_save_prefix"
12447 if test "X$x" = "X-L$additional_libdir"; then
12448 haveit=yes
12449 break
12451 done
12452 if test -z "$haveit"; then
12453 if test -d "$additional_libdir"; then
12454 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12457 haveit=
12458 for x in $LDFLAGS $LTLIBICONV; do
12460 acl_save_prefix="$prefix"
12461 prefix="$acl_final_prefix"
12462 acl_save_exec_prefix="$exec_prefix"
12463 exec_prefix="$acl_final_exec_prefix"
12464 eval x=\"$x\"
12465 exec_prefix="$acl_save_exec_prefix"
12466 prefix="$acl_save_prefix"
12468 if test "X$x" = "X-L$additional_libdir"; then
12469 haveit=yes
12470 break
12472 done
12473 if test -z "$haveit"; then
12474 if test -d "$additional_libdir"; then
12475 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12481 -R*)
12482 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12483 if test "$enable_rpath" != no; then
12484 haveit=
12485 for x in $rpathdirs; do
12486 if test "X$x" = "X$dir"; then
12487 haveit=yes
12488 break
12490 done
12491 if test -z "$haveit"; then
12492 rpathdirs="$rpathdirs $dir"
12494 haveit=
12495 for x in $ltrpathdirs; do
12496 if test "X$x" = "X$dir"; then
12497 haveit=yes
12498 break
12500 done
12501 if test -z "$haveit"; then
12502 ltrpathdirs="$ltrpathdirs $dir"
12506 -l*)
12507 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12509 *.la)
12510 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12513 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12514 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12516 esac
12517 done
12519 else
12520 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12521 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12525 done
12526 done
12527 if test "X$rpathdirs" != "X"; then
12528 if test -n "$hardcode_libdir_separator"; then
12529 alldirs=
12530 for found_dir in $rpathdirs; do
12531 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12532 done
12533 acl_save_libdir="$libdir"
12534 libdir="$alldirs"
12535 eval flag=\"$hardcode_libdir_flag_spec\"
12536 libdir="$acl_save_libdir"
12537 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12538 else
12539 for found_dir in $rpathdirs; do
12540 acl_save_libdir="$libdir"
12541 libdir="$found_dir"
12542 eval flag=\"$hardcode_libdir_flag_spec\"
12543 libdir="$acl_save_libdir"
12544 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12545 done
12548 if test "X$ltrpathdirs" != "X"; then
12549 for found_dir in $ltrpathdirs; do
12550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12551 done
12567 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12568 stdlib.h string.h unistd.h sys/param.h
12570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12572 echo "$as_me:$LINENO: checking for $ac_header" >&5
12573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579 else
12580 # Is the header compilable?
12581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 $ac_includes_default
12590 #include <$ac_header>
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler=yes
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_header_compiler=no
12621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6
12625 # Is the header present?
12626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 #include <$ac_header>
12635 _ACEOF
12636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } >/dev/null; then
12644 if test -s conftest.err; then
12645 ac_cpp_err=$ac_c_preproc_warn_flag
12646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12647 else
12648 ac_cpp_err=
12650 else
12651 ac_cpp_err=yes
12653 if test -z "$ac_cpp_err"; then
12654 ac_header_preproc=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ac_header_preproc=no
12661 rm -f conftest.err conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 yes:no: )
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12674 no:yes:* )
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12688 cat <<\_ASBOX
12689 ## ------------------------------ ##
12690 ## Report this to admin@amule.org ##
12691 ## ------------------------------ ##
12692 _ASBOX
12694 sed "s/^/$as_me: WARNING: /" >&2
12696 esac
12697 echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 eval "$as_ac_Header=\$ac_header_preproc"
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711 _ACEOF
12715 done
12738 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12739 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12740 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743 echo "$as_me:$LINENO: checking for $ac_func" >&5
12744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12745 if eval "test \"\${$as_ac_var+set}\" = set"; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12756 #define $ac_func innocuous_$ac_func
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12763 #ifdef __STDC__
12764 # include <limits.h>
12765 #else
12766 # include <assert.h>
12767 #endif
12769 #undef $ac_func
12771 /* Override any gcc2 internal prototype to avoid an error. */
12772 #ifdef __cplusplus
12773 extern "C"
12775 #endif
12776 /* We use char because int might match the return type of a gcc2
12777 builtin and then its argument prototype would still apply. */
12778 char $ac_func ();
12779 /* The GNU C library defines this for functions which it implements
12780 to always fail with ENOSYS. Some functions are actually named
12781 something starting with __ and the normal name is an alias. */
12782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12783 choke me
12784 #else
12785 char (*f) () = $ac_func;
12786 #endif
12787 #ifdef __cplusplus
12789 #endif
12792 main ()
12794 return f != $ac_func;
12796 return 0;
12798 _ACEOF
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801 (eval $ac_link) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag"
12809 || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 eval "$as_ac_var=yes"
12822 else
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12828 rm -f conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12833 if test `eval echo '${'$as_ac_var'}'` = yes; then
12834 cat >>confdefs.h <<_ACEOF
12835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12836 _ACEOF
12839 done
12847 am_save_CPPFLAGS="$CPPFLAGS"
12849 for element in $INCICONV; do
12850 haveit=
12851 for x in $CPPFLAGS; do
12853 acl_save_prefix="$prefix"
12854 prefix="$acl_final_prefix"
12855 acl_save_exec_prefix="$exec_prefix"
12856 exec_prefix="$acl_final_exec_prefix"
12857 eval x=\"$x\"
12858 exec_prefix="$acl_save_exec_prefix"
12859 prefix="$acl_save_prefix"
12861 if test "X$x" = "X$element"; then
12862 haveit=yes
12863 break
12865 done
12866 if test -z "$haveit"; then
12867 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12869 done
12872 echo "$as_me:$LINENO: checking for iconv" >&5
12873 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12874 if test "${am_cv_func_iconv+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12878 am_cv_func_iconv="no, consider installing GNU libiconv"
12879 am_cv_lib_iconv=no
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <stdlib.h>
12887 #include <iconv.h>
12889 main ()
12891 iconv_t cd = iconv_open("","");
12892 iconv(cd,NULL,NULL,NULL,NULL);
12893 iconv_close(cd);
12895 return 0;
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 am_cv_func_iconv=yes
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 if test "$am_cv_func_iconv" != yes; then
12929 am_save_LIBS="$LIBS"
12930 LIBS="$LIBS $LIBICONV"
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <stdlib.h>
12938 #include <iconv.h>
12940 main ()
12942 iconv_t cd = iconv_open("","");
12943 iconv(cd,NULL,NULL,NULL,NULL);
12944 iconv_close(cd);
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 am_cv_lib_iconv=yes
12972 am_cv_func_iconv=yes
12973 else
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12978 rm -f conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS="$am_save_LIBS"
12984 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12985 echo "${ECHO_T}$am_cv_func_iconv" >&6
12986 if test "$am_cv_func_iconv" = yes; then
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_ICONV 1
12990 _ACEOF
12993 if test "$am_cv_lib_iconv" = yes; then
12994 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12995 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12997 echo "${ECHO_T}$LIBICONV" >&6
12998 else
12999 CPPFLAGS="$am_save_CPPFLAGS"
13000 LIBICONV=
13001 LTLIBICONV=
13006 if test "$am_cv_func_iconv" = yes; then
13007 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13008 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13009 if test "${am_cv_proto_iconv+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13020 #include <stdlib.h>
13021 #include <iconv.h>
13022 extern
13023 #ifdef __cplusplus
13025 #endif
13026 #if defined(__STDC__) || defined(__cplusplus)
13027 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13028 #else
13029 size_t iconv();
13030 #endif
13033 main ()
13037 return 0;
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 am_cv_proto_iconv_arg1=""
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 am_cv_proto_iconv_arg1="const"
13069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 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);"
13073 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13074 echo "$as_me:$LINENO: result: ${ac_t:-
13075 }$am_cv_proto_iconv" >&5
13076 echo "${ECHO_T}${ac_t:-
13077 }$am_cv_proto_iconv" >&6
13079 cat >>confdefs.h <<_ACEOF
13080 #define ICONV_CONST $am_cv_proto_iconv_arg1
13081 _ACEOF
13086 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13087 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13088 if test "${am_cv_langinfo_codeset+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <langinfo.h>
13099 main ()
13101 char* cs = nl_langinfo(CODESET);
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108 (eval $ac_link) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest$ac_exeext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 am_cv_langinfo_codeset=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 am_cv_langinfo_codeset=no
13135 rm -f conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13139 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13140 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13141 if test $am_cv_langinfo_codeset = yes; then
13143 cat >>confdefs.h <<\_ACEOF
13144 #define HAVE_LANGINFO_CODESET 1
13145 _ACEOF
13149 if test $ac_cv_header_locale_h = yes; then
13151 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13152 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13153 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <locale.h>
13164 main ()
13166 return LC_MESSAGES
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest$ac_exeext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 am_cv_val_LC_MESSAGES=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 am_cv_val_LC_MESSAGES=no
13200 rm -f conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13204 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13205 if test $am_cv_val_LC_MESSAGES = yes; then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_LC_MESSAGES 1
13209 _ACEOF
13215 for ac_prog in bison
13217 # Extract the first word of "$ac_prog", so it can be a program name with args.
13218 set dummy $ac_prog; ac_word=$2
13219 echo "$as_me:$LINENO: checking for $ac_word" >&5
13220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13221 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 if test -n "$INTLBISON"; then
13225 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_prog_INTLBISON="$ac_prog"
13235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13243 INTLBISON=$ac_cv_prog_INTLBISON
13244 if test -n "$INTLBISON"; then
13245 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13246 echo "${ECHO_T}$INTLBISON" >&6
13247 else
13248 echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6
13252 test -n "$INTLBISON" && break
13253 done
13255 if test -z "$INTLBISON"; then
13256 ac_verc_fail=yes
13257 else
13258 echo "$as_me:$LINENO: checking version of bison" >&5
13259 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13260 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13261 case $ac_prog_version in
13262 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13263 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13264 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13265 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13266 esac
13267 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13268 echo "${ECHO_T}$ac_prog_version" >&6
13270 if test $ac_verc_fail = yes; then
13271 INTLBISON=:
13288 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13289 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13290 # Check whether --enable-nls or --disable-nls was given.
13291 if test "${enable_nls+set}" = set; then
13292 enableval="$enable_nls"
13293 USE_NLS=$enableval
13294 else
13295 USE_NLS=yes
13297 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13298 echo "${ECHO_T}$USE_NLS" >&6
13302 BUILD_INCLUDED_LIBINTL=no
13303 USE_INCLUDED_LIBINTL=no
13305 LIBINTL=
13306 LTLIBINTL=
13307 POSUB=
13309 if test "$USE_NLS" = "yes"; then
13310 gt_use_preinstalled_gnugettext=no
13312 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13313 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13315 # Check whether --with-included-gettext or --without-included-gettext was given.
13316 if test "${with_included_gettext+set}" = set; then
13317 withval="$with_included_gettext"
13318 nls_cv_force_use_gnu_gettext=$withval
13319 else
13320 nls_cv_force_use_gnu_gettext=no
13322 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13323 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13325 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13326 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13333 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13334 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13335 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h. */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 #include <libintl.h>
13345 extern int _nl_msg_cat_cntr;
13346 extern int *_nl_domain_bindings;
13348 main ()
13350 bindtextdomain ("", "");
13351 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13353 return 0;
13355 _ACEOF
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13358 (eval $ac_link) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest$ac_exeext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 gt_cv_func_gnugettext1_libc=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 gt_cv_func_gnugettext1_libc=no
13385 rm -f conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext conftest.$ac_ext
13388 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13389 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13391 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13395 use_additional=yes
13397 acl_save_prefix="$prefix"
13398 prefix="$acl_final_prefix"
13399 acl_save_exec_prefix="$exec_prefix"
13400 exec_prefix="$acl_final_exec_prefix"
13402 eval additional_includedir=\"$includedir\"
13403 eval additional_libdir=\"$libdir\"
13405 exec_prefix="$acl_save_exec_prefix"
13406 prefix="$acl_save_prefix"
13409 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
13410 if test "${with_libintl_prefix+set}" = set; then
13411 withval="$with_libintl_prefix"
13413 if test "X$withval" = "Xno"; then
13414 use_additional=no
13415 else
13416 if test "X$withval" = "X"; then
13418 acl_save_prefix="$prefix"
13419 prefix="$acl_final_prefix"
13420 acl_save_exec_prefix="$exec_prefix"
13421 exec_prefix="$acl_final_exec_prefix"
13423 eval additional_includedir=\"$includedir\"
13424 eval additional_libdir=\"$libdir\"
13426 exec_prefix="$acl_save_exec_prefix"
13427 prefix="$acl_save_prefix"
13429 else
13430 additional_includedir="$withval/include"
13431 additional_libdir="$withval/lib"
13436 LIBINTL=
13437 LTLIBINTL=
13438 INCINTL=
13439 rpathdirs=
13440 ltrpathdirs=
13441 names_already_handled=
13442 names_next_round='intl '
13443 while test -n "$names_next_round"; do
13444 names_this_round="$names_next_round"
13445 names_next_round=
13446 for name in $names_this_round; do
13447 already_handled=
13448 for n in $names_already_handled; do
13449 if test "$n" = "$name"; then
13450 already_handled=yes
13451 break
13453 done
13454 if test -z "$already_handled"; then
13455 names_already_handled="$names_already_handled $name"
13456 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13457 eval value=\"\$HAVE_LIB$uppername\"
13458 if test -n "$value"; then
13459 if test "$value" = yes; then
13460 eval value=\"\$LIB$uppername\"
13461 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13462 eval value=\"\$LTLIB$uppername\"
13463 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13464 else
13467 else
13468 found_dir=
13469 found_la=
13470 found_so=
13471 found_a=
13472 if test $use_additional = yes; then
13473 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13474 found_dir="$additional_libdir"
13475 found_so="$additional_libdir/lib$name.$shlibext"
13476 if test -f "$additional_libdir/lib$name.la"; then
13477 found_la="$additional_libdir/lib$name.la"
13479 else
13480 if test -f "$additional_libdir/lib$name.$libext"; then
13481 found_dir="$additional_libdir"
13482 found_a="$additional_libdir/lib$name.$libext"
13483 if test -f "$additional_libdir/lib$name.la"; then
13484 found_la="$additional_libdir/lib$name.la"
13489 if test "X$found_dir" = "X"; then
13490 for x in $LDFLAGS $LTLIBINTL; do
13492 acl_save_prefix="$prefix"
13493 prefix="$acl_final_prefix"
13494 acl_save_exec_prefix="$exec_prefix"
13495 exec_prefix="$acl_final_exec_prefix"
13496 eval x=\"$x\"
13497 exec_prefix="$acl_save_exec_prefix"
13498 prefix="$acl_save_prefix"
13500 case "$x" in
13501 -L*)
13502 dir=`echo "X$x" | sed -e 's/^X-L//'`
13503 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13504 found_dir="$dir"
13505 found_so="$dir/lib$name.$shlibext"
13506 if test -f "$dir/lib$name.la"; then
13507 found_la="$dir/lib$name.la"
13509 else
13510 if test -f "$dir/lib$name.$libext"; then
13511 found_dir="$dir"
13512 found_a="$dir/lib$name.$libext"
13513 if test -f "$dir/lib$name.la"; then
13514 found_la="$dir/lib$name.la"
13519 esac
13520 if test "X$found_dir" != "X"; then
13521 break
13523 done
13525 if test "X$found_dir" != "X"; then
13526 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13527 if test "X$found_so" != "X"; then
13528 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13529 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13530 else
13531 haveit=
13532 for x in $ltrpathdirs; do
13533 if test "X$x" = "X$found_dir"; then
13534 haveit=yes
13535 break
13537 done
13538 if test -z "$haveit"; then
13539 ltrpathdirs="$ltrpathdirs $found_dir"
13541 if test "$hardcode_direct" = yes; then
13542 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13543 else
13544 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13545 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13546 haveit=
13547 for x in $rpathdirs; do
13548 if test "X$x" = "X$found_dir"; then
13549 haveit=yes
13550 break
13552 done
13553 if test -z "$haveit"; then
13554 rpathdirs="$rpathdirs $found_dir"
13556 else
13557 haveit=
13558 for x in $LDFLAGS $LIBINTL; do
13560 acl_save_prefix="$prefix"
13561 prefix="$acl_final_prefix"
13562 acl_save_exec_prefix="$exec_prefix"
13563 exec_prefix="$acl_final_exec_prefix"
13564 eval x=\"$x\"
13565 exec_prefix="$acl_save_exec_prefix"
13566 prefix="$acl_save_prefix"
13568 if test "X$x" = "X-L$found_dir"; then
13569 haveit=yes
13570 break
13572 done
13573 if test -z "$haveit"; then
13574 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13576 if test "$hardcode_minus_L" != no; then
13577 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13578 else
13579 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13584 else
13585 if test "X$found_a" != "X"; then
13586 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13587 else
13588 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13591 additional_includedir=
13592 case "$found_dir" in
13593 */lib | */lib/)
13594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13595 additional_includedir="$basedir/include"
13597 esac
13598 if test "X$additional_includedir" != "X"; then
13599 if test "X$additional_includedir" != "X/usr/include"; then
13600 haveit=
13601 if test "X$additional_includedir" = "X/usr/local/include"; then
13602 if test -n "$GCC"; then
13603 case $host_os in
13604 linux*) haveit=yes;;
13605 esac
13608 if test -z "$haveit"; then
13609 for x in $CPPFLAGS $INCINTL; do
13611 acl_save_prefix="$prefix"
13612 prefix="$acl_final_prefix"
13613 acl_save_exec_prefix="$exec_prefix"
13614 exec_prefix="$acl_final_exec_prefix"
13615 eval x=\"$x\"
13616 exec_prefix="$acl_save_exec_prefix"
13617 prefix="$acl_save_prefix"
13619 if test "X$x" = "X-I$additional_includedir"; then
13620 haveit=yes
13621 break
13623 done
13624 if test -z "$haveit"; then
13625 if test -d "$additional_includedir"; then
13626 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13632 if test -n "$found_la"; then
13633 save_libdir="$libdir"
13634 case "$found_la" in
13635 */* | *\\*) . "$found_la" ;;
13636 *) . "./$found_la" ;;
13637 esac
13638 libdir="$save_libdir"
13639 for dep in $dependency_libs; do
13640 case "$dep" in
13641 -L*)
13642 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13643 if test "X$additional_libdir" != "X/usr/lib"; then
13644 haveit=
13645 if test "X$additional_libdir" = "X/usr/local/lib"; then
13646 if test -n "$GCC"; then
13647 case $host_os in
13648 linux*) haveit=yes;;
13649 esac
13652 if test -z "$haveit"; then
13653 haveit=
13654 for x in $LDFLAGS $LIBINTL; do
13656 acl_save_prefix="$prefix"
13657 prefix="$acl_final_prefix"
13658 acl_save_exec_prefix="$exec_prefix"
13659 exec_prefix="$acl_final_exec_prefix"
13660 eval x=\"$x\"
13661 exec_prefix="$acl_save_exec_prefix"
13662 prefix="$acl_save_prefix"
13664 if test "X$x" = "X-L$additional_libdir"; then
13665 haveit=yes
13666 break
13668 done
13669 if test -z "$haveit"; then
13670 if test -d "$additional_libdir"; then
13671 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13674 haveit=
13675 for x in $LDFLAGS $LTLIBINTL; do
13677 acl_save_prefix="$prefix"
13678 prefix="$acl_final_prefix"
13679 acl_save_exec_prefix="$exec_prefix"
13680 exec_prefix="$acl_final_exec_prefix"
13681 eval x=\"$x\"
13682 exec_prefix="$acl_save_exec_prefix"
13683 prefix="$acl_save_prefix"
13685 if test "X$x" = "X-L$additional_libdir"; then
13686 haveit=yes
13687 break
13689 done
13690 if test -z "$haveit"; then
13691 if test -d "$additional_libdir"; then
13692 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13698 -R*)
13699 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13700 if test "$enable_rpath" != no; then
13701 haveit=
13702 for x in $rpathdirs; do
13703 if test "X$x" = "X$dir"; then
13704 haveit=yes
13705 break
13707 done
13708 if test -z "$haveit"; then
13709 rpathdirs="$rpathdirs $dir"
13711 haveit=
13712 for x in $ltrpathdirs; do
13713 if test "X$x" = "X$dir"; then
13714 haveit=yes
13715 break
13717 done
13718 if test -z "$haveit"; then
13719 ltrpathdirs="$ltrpathdirs $dir"
13723 -l*)
13724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13726 *.la)
13727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13730 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13733 esac
13734 done
13736 else
13737 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13742 done
13743 done
13744 if test "X$rpathdirs" != "X"; then
13745 if test -n "$hardcode_libdir_separator"; then
13746 alldirs=
13747 for found_dir in $rpathdirs; do
13748 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13749 done
13750 acl_save_libdir="$libdir"
13751 libdir="$alldirs"
13752 eval flag=\"$hardcode_libdir_flag_spec\"
13753 libdir="$acl_save_libdir"
13754 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13755 else
13756 for found_dir in $rpathdirs; do
13757 acl_save_libdir="$libdir"
13758 libdir="$found_dir"
13759 eval flag=\"$hardcode_libdir_flag_spec\"
13760 libdir="$acl_save_libdir"
13761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13762 done
13765 if test "X$ltrpathdirs" != "X"; then
13766 for found_dir in $ltrpathdirs; do
13767 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13768 done
13771 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13772 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13773 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 gt_save_CPPFLAGS="$CPPFLAGS"
13777 CPPFLAGS="$CPPFLAGS $INCINTL"
13778 gt_save_LIBS="$LIBS"
13779 LIBS="$LIBS $LIBINTL"
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <libintl.h>
13787 extern int _nl_msg_cat_cntr;
13788 extern
13789 #ifdef __cplusplus
13791 #endif
13792 const char *_nl_expand_alias ();
13794 main ()
13796 bindtextdomain ("", "");
13797 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag"
13812 || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 gt_cv_func_gnugettext1_libintl=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 gt_cv_func_gnugettext1_libintl=no
13831 rm -f conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13834 LIBS="$LIBS $LIBICONV"
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 #include <libintl.h>
13842 extern int _nl_msg_cat_cntr;
13843 extern
13844 #ifdef __cplusplus
13846 #endif
13847 const char *_nl_expand_alias ();
13849 main ()
13851 bindtextdomain ("", "");
13852 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13854 return 0;
13856 _ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try='test -s conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 LIBINTL="$LIBINTL $LIBICONV"
13880 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13881 gt_cv_func_gnugettext1_libintl=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13888 rm -f conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13891 CPPFLAGS="$gt_save_CPPFLAGS"
13892 LIBS="$gt_save_LIBS"
13894 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13895 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13898 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13899 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13900 && test "$PACKAGE" != gettext; }; then
13901 gt_use_preinstalled_gnugettext=yes
13902 else
13903 LIBINTL=
13904 LTLIBINTL=
13905 INCINTL=
13909 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13910 nls_cv_use_gnu_gettext=yes
13914 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13915 INTLOBJS="\$(GETTOBJS)"
13916 BUILD_INCLUDED_LIBINTL=yes
13917 USE_INCLUDED_LIBINTL=yes
13918 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13919 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13920 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13923 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13924 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13925 CATOBJEXT=.gmo
13929 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13930 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13932 cat >>confdefs.h <<\_ACEOF
13933 #define ENABLE_NLS 1
13934 _ACEOF
13936 else
13937 USE_NLS=no
13941 if test "$USE_NLS" = "yes"; then
13943 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13944 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13945 echo "$as_me:$LINENO: checking how to link with libintl" >&5
13946 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13947 echo "$as_me:$LINENO: result: $LIBINTL" >&5
13948 echo "${ECHO_T}$LIBINTL" >&6
13950 for element in $INCINTL; do
13951 haveit=
13952 for x in $CPPFLAGS; do
13954 acl_save_prefix="$prefix"
13955 prefix="$acl_final_prefix"
13956 acl_save_exec_prefix="$exec_prefix"
13957 exec_prefix="$acl_final_exec_prefix"
13958 eval x=\"$x\"
13959 exec_prefix="$acl_save_exec_prefix"
13960 prefix="$acl_save_prefix"
13962 if test "X$x" = "X$element"; then
13963 haveit=yes
13964 break
13966 done
13967 if test -z "$haveit"; then
13968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13970 done
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_GETTEXT 1
13977 _ACEOF
13980 cat >>confdefs.h <<\_ACEOF
13981 #define HAVE_DCGETTEXT 1
13982 _ACEOF
13986 POSUB=po
13990 if test "$PACKAGE" = gettext; then
13991 BUILD_INCLUDED_LIBINTL=yes
13999 nls_cv_header_intl=
14000 nls_cv_header_libgt=
14002 DATADIRNAME=share
14005 INSTOBJEXT=.mo
14008 GENCAT=gencat
14011 INTL_LIBTOOL_SUFFIX_PREFIX=
14015 INTLLIBS="$LIBINTL"
14022 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
14023 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
14024 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
14025 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lsun $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any gcc2 internal prototype to avoid an error. */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14043 char getmntent ();
14045 main ()
14047 getmntent ();
14049 return 0;
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag"
14062 || test ! -s conftest.err'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest$ac_exeext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_cv_lib_sun_getmntent=yes
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_cv_lib_sun_getmntent=no
14081 rm -f conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
14086 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
14087 if test $ac_cv_lib_sun_getmntent = yes; then
14088 LIBS="-lsun $LIBS"
14089 else
14090 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
14091 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
14092 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lseq $LIBS"
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h. */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any gcc2 internal prototype to avoid an error. */
14105 #ifdef __cplusplus
14106 extern "C"
14107 #endif
14108 /* We use char because int might match the return type of a gcc2
14109 builtin and then its argument prototype would still apply. */
14110 char getmntent ();
14112 main ()
14114 getmntent ();
14116 return 0;
14118 _ACEOF
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>conftest.er1
14122 ac_status=$?
14123 grep -v '^ *+' conftest.er1 >conftest.err
14124 rm -f conftest.er1
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_lib_seq_getmntent=yes
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_cv_lib_seq_getmntent=no
14148 rm -f conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
14153 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
14154 if test $ac_cv_lib_seq_getmntent = yes; then
14155 LIBS="-lseq $LIBS"
14156 else
14157 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
14158 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
14159 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162 ac_check_lib_save_LIBS=$LIBS
14163 LIBS="-lgen $LIBS"
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14171 /* Override any gcc2 internal prototype to avoid an error. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char getmntent ();
14179 main ()
14181 getmntent ();
14183 return 0;
14185 _ACEOF
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_lib_gen_getmntent=yes
14209 else
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14213 ac_cv_lib_gen_getmntent=no
14215 rm -f conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217 LIBS=$ac_check_lib_save_LIBS
14219 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
14220 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
14221 if test $ac_cv_lib_gen_getmntent = yes; then
14222 LIBS="-lgen $LIBS"
14230 for ac_func in getmntent
14232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14235 if eval "test \"\${$as_ac_var+set}\" = set"; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define $ac_func innocuous_$ac_func
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14259 #undef $ac_func
14261 /* Override any gcc2 internal prototype to avoid an error. */
14262 #ifdef __cplusplus
14263 extern "C"
14265 #endif
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14268 char $ac_func ();
14269 /* The GNU C library defines this for functions which it implements
14270 to always fail with ENOSYS. Some functions are actually named
14271 something starting with __ and the normal name is an alias. */
14272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14273 choke me
14274 #else
14275 char (*f) () = $ac_func;
14276 #endif
14277 #ifdef __cplusplus
14279 #endif
14282 main ()
14284 return f != $ac_func;
14286 return 0;
14288 _ACEOF
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14291 (eval $ac_link) 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 eval "$as_ac_var=yes"
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 eval "$as_ac_var=no"
14318 rm -f conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14323 if test `eval echo '${'$as_ac_var'}'` = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14326 _ACEOF
14329 done
14332 if test $ac_cv_c_compiler_gnu = yes; then
14333 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14334 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
14335 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 ac_pattern="Autoconf.*'x'"
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <sgtty.h>
14346 Autoconf TIOCGETP
14347 _ACEOF
14348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14349 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14350 ac_cv_prog_gcc_traditional=yes
14351 else
14352 ac_cv_prog_gcc_traditional=no
14354 rm -f conftest*
14357 if test $ac_cv_prog_gcc_traditional = no; then
14358 cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h. */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 #include <termio.h>
14365 Autoconf TCGETA
14366 _ACEOF
14367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14368 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14369 ac_cv_prog_gcc_traditional=yes
14371 rm -f conftest*
14375 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14376 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14377 if test $ac_cv_prog_gcc_traditional = yes; then
14378 CC="$CC -traditional"
14382 echo "$as_me:$LINENO: checking for pid_t" >&5
14383 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14384 if test "${ac_cv_type_pid_t+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14395 main ()
14397 if ((pid_t *) 0)
14398 return 0;
14399 if (sizeof (pid_t))
14400 return 0;
14402 return 0;
14404 _ACEOF
14405 rm -f conftest.$ac_objext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag"
14415 || test ! -s conftest.err'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; } &&
14421 { ac_try='test -s conftest.$ac_objext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_type_pid_t=yes
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_cv_type_pid_t=no
14434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14436 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14437 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14438 if test $ac_cv_type_pid_t = yes; then
14440 else
14442 cat >>confdefs.h <<_ACEOF
14443 #define pid_t int
14444 _ACEOF
14450 for ac_header in unistd.h vfork.h
14452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454 echo "$as_me:$LINENO: checking for $ac_header" >&5
14455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14461 else
14462 # Is the header compilable?
14463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 $ac_includes_default
14472 #include <$ac_header>
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_header_compiler=yes
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_header_compiler=no
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6
14507 # Is the header present?
14508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14517 _ACEOF
14518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } >/dev/null; then
14526 if test -s conftest.err; then
14527 ac_cpp_err=$ac_c_preproc_warn_flag
14528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14529 else
14530 ac_cpp_err=
14532 else
14533 ac_cpp_err=yes
14535 if test -z "$ac_cpp_err"; then
14536 ac_header_preproc=yes
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14543 rm -f conftest.err conftest.$ac_ext
14544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 echo "${ECHO_T}$ac_header_preproc" >&6
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 yes:no: )
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc=yes
14556 no:yes:* )
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14570 cat <<\_ASBOX
14571 ## ------------------------------ ##
14572 ## Report this to admin@amule.org ##
14573 ## ------------------------------ ##
14574 _ASBOX
14576 sed "s/^/$as_me: WARNING: /" >&2
14578 esac
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14591 cat >>confdefs.h <<_ACEOF
14592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593 _ACEOF
14597 done
14601 for ac_func in fork vfork
14603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14604 echo "$as_me:$LINENO: checking for $ac_func" >&5
14605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14606 if eval "test \"\${$as_ac_var+set}\" = set"; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h. */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14617 #define $ac_func innocuous_$ac_func
14619 /* System header to define __stub macros and hopefully few prototypes,
14620 which can conflict with char $ac_func (); below.
14621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14622 <limits.h> exists even on freestanding compilers. */
14624 #ifdef __STDC__
14625 # include <limits.h>
14626 #else
14627 # include <assert.h>
14628 #endif
14630 #undef $ac_func
14632 /* Override any gcc2 internal prototype to avoid an error. */
14633 #ifdef __cplusplus
14634 extern "C"
14636 #endif
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14639 char $ac_func ();
14640 /* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14644 choke me
14645 #else
14646 char (*f) () = $ac_func;
14647 #endif
14648 #ifdef __cplusplus
14650 #endif
14653 main ()
14655 return f != $ac_func;
14657 return 0;
14659 _ACEOF
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 eval "$as_ac_var=yes"
14683 else
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 eval "$as_ac_var=no"
14689 rm -f conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14697 _ACEOF
14700 done
14702 if test "x$ac_cv_func_fork" = xyes; then
14703 echo "$as_me:$LINENO: checking for working fork" >&5
14704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14705 if test "${ac_cv_func_fork_works+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 else
14708 if test "$cross_compiling" = yes; then
14709 ac_cv_func_fork_works=cross
14710 else
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* By Ruediger Kuhlmann. */
14713 #include <sys/types.h>
14714 #if HAVE_UNISTD_H
14715 # include <unistd.h>
14716 #endif
14717 /* Some systems only have a dummy stub for fork() */
14718 int main ()
14720 if (fork() < 0)
14721 exit (1);
14722 exit (0);
14724 _ACEOF
14725 rm -f conftest$ac_exeext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 (eval $ac_link) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_cv_func_fork_works=yes
14737 else
14738 echo "$as_me: program exited with status $ac_status" >&5
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ( exit $ac_status )
14743 ac_cv_func_fork_works=no
14745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14748 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14749 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14751 else
14752 ac_cv_func_fork_works=$ac_cv_func_fork
14754 if test "x$ac_cv_func_fork_works" = xcross; then
14755 case $host in
14756 *-*-amigaos* | *-*-msdosdjgpp*)
14757 # Override, as these systems have only a dummy fork() stub
14758 ac_cv_func_fork_works=no
14761 ac_cv_func_fork_works=yes
14763 esac
14764 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14765 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14767 ac_cv_func_vfork_works=$ac_cv_func_vfork
14768 if test "x$ac_cv_func_vfork" = xyes; then
14769 echo "$as_me:$LINENO: checking for working vfork" >&5
14770 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14771 if test "${ac_cv_func_vfork_works+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 if test "$cross_compiling" = yes; then
14775 ac_cv_func_vfork_works=cross
14776 else
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 /* Thanks to Paul Eggert for this test. */
14784 #include <stdio.h>
14785 #include <stdlib.h>
14786 #include <sys/types.h>
14787 #include <sys/stat.h>
14788 #include <sys/wait.h>
14789 #if HAVE_UNISTD_H
14790 # include <unistd.h>
14791 #endif
14792 #if HAVE_VFORK_H
14793 # include <vfork.h>
14794 #endif
14795 /* On some sparc systems, changes by the child to local and incoming
14796 argument registers are propagated back to the parent. The compiler
14797 is told about this with #include <vfork.h>, but some compilers
14798 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14799 static variable whose address is put into a register that is
14800 clobbered by the vfork. */
14801 static void
14802 #ifdef __cplusplus
14803 sparc_address_test (int arg)
14804 # else
14805 sparc_address_test (arg) int arg;
14806 #endif
14808 static pid_t child;
14809 if (!child) {
14810 child = vfork ();
14811 if (child < 0) {
14812 perror ("vfork");
14813 _exit(2);
14815 if (!child) {
14816 arg = getpid();
14817 write(-1, "", 0);
14818 _exit (arg);
14824 main ()
14826 pid_t parent = getpid ();
14827 pid_t child;
14829 sparc_address_test (0);
14831 child = vfork ();
14833 if (child == 0) {
14834 /* Here is another test for sparc vfork register problems. This
14835 test uses lots of local variables, at least as many local
14836 variables as main has allocated so far including compiler
14837 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14838 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14839 reuse the register of parent for one of the local variables,
14840 since it will think that parent can't possibly be used any more
14841 in this routine. Assigning to the local variable will thus
14842 munge parent in the parent process. */
14843 pid_t
14844 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14845 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14846 /* Convince the compiler that p..p7 are live; otherwise, it might
14847 use the same hardware register for all 8 local variables. */
14848 if (p != p1 || p != p2 || p != p3 || p != p4
14849 || p != p5 || p != p6 || p != p7)
14850 _exit(1);
14852 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14853 from child file descriptors. If the child closes a descriptor
14854 before it execs or exits, this munges the parent's descriptor
14855 as well. Test for this by closing stdout in the child. */
14856 _exit(close(fileno(stdout)) != 0);
14857 } else {
14858 int status;
14859 struct stat st;
14861 while (wait(&status) != child)
14863 exit(
14864 /* Was there some problem with vforking? */
14865 child < 0
14867 /* Did the child fail? (This shouldn't happen.) */
14868 || status
14870 /* Did the vfork/compiler bug occur? */
14871 || parent != getpid()
14873 /* Did the file descriptor bug occur? */
14874 || fstat(fileno(stdout), &st) != 0
14878 _ACEOF
14879 rm -f conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_func_vfork_works=yes
14891 else
14892 echo "$as_me: program exited with status $ac_status" >&5
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ( exit $ac_status )
14897 ac_cv_func_vfork_works=no
14899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14902 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14903 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14906 if test "x$ac_cv_func_fork_works" = xcross; then
14907 ac_cv_func_vfork_works=$ac_cv_func_vfork
14908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14909 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14912 if test "x$ac_cv_func_vfork_works" = xyes; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_WORKING_VFORK 1
14916 _ACEOF
14918 else
14920 cat >>confdefs.h <<\_ACEOF
14921 #define vfork fork
14922 _ACEOF
14925 if test "x$ac_cv_func_fork_works" = xyes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_WORKING_FORK 1
14929 _ACEOF
14933 if test x$SYS != xwin32; then
14934 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14935 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
14936 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939 rm -f conftest.sym conftest.file
14940 echo >conftest.file
14941 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14942 if test "$cross_compiling" = yes; then
14943 ac_cv_func_lstat_dereferences_slashed_symlink=no
14944 else
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 $ac_includes_default
14953 main ()
14955 struct stat sbuf;
14956 /* Linux will dereference the symlink and fail.
14957 That is better in the sense that it means we will not
14958 have to compile and use the lstat wrapper. */
14959 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
14961 return 0;
14963 _ACEOF
14964 rm -f conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14976 else
14977 echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 ac_cv_func_lstat_dereferences_slashed_symlink=no
14984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14986 else
14987 # If the `ln -s' command failed, then we probably don't even
14988 # have an lstat function.
14989 ac_cv_func_lstat_dereferences_slashed_symlink=no
14991 rm -f conftest.sym conftest.file
14994 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14995 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
14997 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14999 cat >>confdefs.h <<_ACEOF
15000 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15001 _ACEOF
15004 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15005 case $LIBOBJS in
15006 "lstat.$ac_objext" | \
15007 *" lstat.$ac_objext" | \
15008 "lstat.$ac_objext "* | \
15009 *" lstat.$ac_objext "* ) ;;
15010 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15011 esac
15015 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
15016 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
15017 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 if test "$cross_compiling" = yes; then
15021 ac_cv_func_lstat_empty_string_bug=yes
15022 else
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15031 main ()
15033 struct stat sbuf;
15034 exit (lstat ("", &sbuf) ? 1 : 0);
15036 return 0;
15038 _ACEOF
15039 rm -f conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_func_lstat_empty_string_bug=yes
15051 else
15052 echo "$as_me: program exited with status $ac_status" >&5
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ( exit $ac_status )
15057 ac_cv_func_lstat_empty_string_bug=no
15059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15062 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
15063 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
15064 if test $ac_cv_func_lstat_empty_string_bug = yes; then
15065 case $LIBOBJS in
15066 "lstat.$ac_objext" | \
15067 *" lstat.$ac_objext" | \
15068 "lstat.$ac_objext "* | \
15069 *" lstat.$ac_objext "* ) ;;
15070 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15071 esac
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
15076 _ACEOF
15080 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15081 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15082 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 rm -f conftest.sym conftest.file
15086 echo >conftest.file
15087 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15088 if test "$cross_compiling" = yes; then
15089 ac_cv_func_lstat_dereferences_slashed_symlink=no
15090 else
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 $ac_includes_default
15099 main ()
15101 struct stat sbuf;
15102 /* Linux will dereference the symlink and fail.
15103 That is better in the sense that it means we will not
15104 have to compile and use the lstat wrapper. */
15105 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15107 return 0;
15109 _ACEOF
15110 rm -f conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15122 else
15123 echo "$as_me: program exited with status $ac_status" >&5
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ( exit $ac_status )
15128 ac_cv_func_lstat_dereferences_slashed_symlink=no
15130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15132 else
15133 # If the `ln -s' command failed, then we probably don't even
15134 # have an lstat function.
15135 ac_cv_func_lstat_dereferences_slashed_symlink=no
15137 rm -f conftest.sym conftest.file
15140 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15141 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15143 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15145 cat >>confdefs.h <<_ACEOF
15146 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15147 _ACEOF
15150 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15151 case $LIBOBJS in
15152 "lstat.$ac_objext" | \
15153 *" lstat.$ac_objext" | \
15154 "lstat.$ac_objext "* | \
15155 *" lstat.$ac_objext "* ) ;;
15156 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
15157 esac
15162 echo "$as_me:$LINENO: checking for working memcmp" >&5
15163 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
15164 if test "${ac_cv_func_memcmp_working+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 if test "$cross_compiling" = yes; then
15168 ac_cv_func_memcmp_working=no
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 $ac_includes_default
15178 main ()
15181 /* Some versions of memcmp are not 8-bit clean. */
15182 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15183 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15184 exit (1);
15186 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15187 or more and with at least one buffer not starting on a 4-byte boundary.
15188 William Lewis provided this test program. */
15190 char foo[21];
15191 char bar[21];
15192 int i;
15193 for (i = 0; i < 4; i++)
15195 char *a = foo + i;
15196 char *b = bar + i;
15197 strcpy (a, "--------01111111");
15198 strcpy (b, "--------10000000");
15199 if (memcmp (a, b, 16) >= 0)
15200 exit (1);
15202 exit (0);
15206 return 0;
15208 _ACEOF
15209 rm -f conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_func_memcmp_working=yes
15221 else
15222 echo "$as_me: program exited with status $ac_status" >&5
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ( exit $ac_status )
15227 ac_cv_func_memcmp_working=no
15229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15233 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15234 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
15235 "memcmp.$ac_objext" | \
15236 *" memcmp.$ac_objext" | \
15237 "memcmp.$ac_objext "* | \
15238 *" memcmp.$ac_objext "* ) ;;
15239 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
15240 esac
15245 for ac_header in stdlib.h unistd.h
15247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15249 echo "$as_me:$LINENO: checking for $ac_header" >&5
15250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15256 else
15257 # Is the header compilable?
15258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15267 #include <$ac_header>
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest.$ac_objext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 ac_header_compiler=yes
15292 else
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ac_header_compiler=no
15298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15300 echo "${ECHO_T}$ac_header_compiler" >&6
15302 # Is the header present?
15303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <$ac_header>
15312 _ACEOF
15313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } >/dev/null; then
15321 if test -s conftest.err; then
15322 ac_cpp_err=$ac_c_preproc_warn_flag
15323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15324 else
15325 ac_cpp_err=
15327 else
15328 ac_cpp_err=yes
15330 if test -z "$ac_cpp_err"; then
15331 ac_header_preproc=yes
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_header_preproc=no
15338 rm -f conftest.err conftest.$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15340 echo "${ECHO_T}$ac_header_preproc" >&6
15342 # So? What about this header?
15343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15344 yes:no: )
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15349 ac_header_preproc=yes
15351 no:yes:* )
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15365 cat <<\_ASBOX
15366 ## ------------------------------ ##
15367 ## Report this to admin@amule.org ##
15368 ## ------------------------------ ##
15369 _ASBOX
15371 sed "s/^/$as_me: WARNING: /" >&2
15373 esac
15374 echo "$as_me:$LINENO: checking for $ac_header" >&5
15375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379 eval "$as_ac_Header=\$ac_header_preproc"
15381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15386 cat >>confdefs.h <<_ACEOF
15387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15388 _ACEOF
15392 done
15395 for ac_func in getpagesize
15397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15398 echo "$as_me:$LINENO: checking for $ac_func" >&5
15399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15400 if eval "test \"\${$as_ac_var+set}\" = set"; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h. */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15411 #define $ac_func innocuous_$ac_func
15413 /* System header to define __stub macros and hopefully few prototypes,
15414 which can conflict with char $ac_func (); below.
15415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15416 <limits.h> exists even on freestanding compilers. */
15418 #ifdef __STDC__
15419 # include <limits.h>
15420 #else
15421 # include <assert.h>
15422 #endif
15424 #undef $ac_func
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 #ifdef __cplusplus
15428 extern "C"
15430 #endif
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433 char $ac_func ();
15434 /* The GNU C library defines this for functions which it implements
15435 to always fail with ENOSYS. Some functions are actually named
15436 something starting with __ and the normal name is an alias. */
15437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15438 choke me
15439 #else
15440 char (*f) () = $ac_func;
15441 #endif
15442 #ifdef __cplusplus
15444 #endif
15447 main ()
15449 return f != $ac_func;
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 eval "$as_ac_var=yes"
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 eval "$as_ac_var=no"
15483 rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15488 if test `eval echo '${'$as_ac_var'}'` = yes; then
15489 cat >>confdefs.h <<_ACEOF
15490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491 _ACEOF
15494 done
15496 echo "$as_me:$LINENO: checking for working mmap" >&5
15497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 if test "$cross_compiling" = yes; then
15502 ac_cv_func_mmap_fixed_mapped=no
15503 else
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15511 /* malloc might have been renamed as rpl_malloc. */
15512 #undef malloc
15514 /* Thanks to Mike Haertel and Jim Avera for this test.
15515 Here is a matrix of mmap possibilities:
15516 mmap private not fixed
15517 mmap private fixed at somewhere currently unmapped
15518 mmap private fixed at somewhere already mapped
15519 mmap shared not fixed
15520 mmap shared fixed at somewhere currently unmapped
15521 mmap shared fixed at somewhere already mapped
15522 For private mappings, we should verify that changes cannot be read()
15523 back from the file, nor mmap's back from the file at a different
15524 address. (There have been systems where private was not correctly
15525 implemented like the infamous i386 svr4.0, and systems where the
15526 VM page cache was not coherent with the file system buffer cache
15527 like early versions of FreeBSD and possibly contemporary NetBSD.)
15528 For shared mappings, we should conversely verify that changes get
15529 propagated back to all the places they're supposed to be.
15531 Grep wants private fixed already mapped.
15532 The main things grep needs to know about mmap are:
15533 * does it exist and is it safe to write into the mmap'd area
15534 * how to use it (BSD variants) */
15536 #include <fcntl.h>
15537 #include <sys/mman.h>
15539 #if !STDC_HEADERS && !HAVE_STDLIB_H
15540 char *malloc ();
15541 #endif
15543 /* This mess was copied from the GNU getpagesize.h. */
15544 #if !HAVE_GETPAGESIZE
15545 /* Assume that all systems that can run configure have sys/param.h. */
15546 # if !HAVE_SYS_PARAM_H
15547 # define HAVE_SYS_PARAM_H 1
15548 # endif
15550 # ifdef _SC_PAGESIZE
15551 # define getpagesize() sysconf(_SC_PAGESIZE)
15552 # else /* no _SC_PAGESIZE */
15553 # if HAVE_SYS_PARAM_H
15554 # include <sys/param.h>
15555 # ifdef EXEC_PAGESIZE
15556 # define getpagesize() EXEC_PAGESIZE
15557 # else /* no EXEC_PAGESIZE */
15558 # ifdef NBPG
15559 # define getpagesize() NBPG * CLSIZE
15560 # ifndef CLSIZE
15561 # define CLSIZE 1
15562 # endif /* no CLSIZE */
15563 # else /* no NBPG */
15564 # ifdef NBPC
15565 # define getpagesize() NBPC
15566 # else /* no NBPC */
15567 # ifdef PAGESIZE
15568 # define getpagesize() PAGESIZE
15569 # endif /* PAGESIZE */
15570 # endif /* no NBPC */
15571 # endif /* no NBPG */
15572 # endif /* no EXEC_PAGESIZE */
15573 # else /* no HAVE_SYS_PARAM_H */
15574 # define getpagesize() 8192 /* punt totally */
15575 # endif /* no HAVE_SYS_PARAM_H */
15576 # endif /* no _SC_PAGESIZE */
15578 #endif /* no HAVE_GETPAGESIZE */
15581 main ()
15583 char *data, *data2, *data3;
15584 int i, pagesize;
15585 int fd;
15587 pagesize = getpagesize ();
15589 /* First, make a file with some known garbage in it. */
15590 data = (char *) malloc (pagesize);
15591 if (!data)
15592 exit (1);
15593 for (i = 0; i < pagesize; ++i)
15594 *(data + i) = rand ();
15595 umask (0);
15596 fd = creat ("conftest.mmap", 0600);
15597 if (fd < 0)
15598 exit (1);
15599 if (write (fd, data, pagesize) != pagesize)
15600 exit (1);
15601 close (fd);
15603 /* Next, try to mmap the file at a fixed address which already has
15604 something else allocated at it. If we can, also make sure that
15605 we see the same garbage. */
15606 fd = open ("conftest.mmap", O_RDWR);
15607 if (fd < 0)
15608 exit (1);
15609 data2 = (char *) malloc (2 * pagesize);
15610 if (!data2)
15611 exit (1);
15612 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15613 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15614 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15615 exit (1);
15616 for (i = 0; i < pagesize; ++i)
15617 if (*(data + i) != *(data2 + i))
15618 exit (1);
15620 /* Finally, make sure that changes to the mapped area do not
15621 percolate back to the file as seen by read(). (This is a bug on
15622 some variants of i386 svr4.0.) */
15623 for (i = 0; i < pagesize; ++i)
15624 *(data2 + i) = *(data2 + i) + 1;
15625 data3 = (char *) malloc (pagesize);
15626 if (!data3)
15627 exit (1);
15628 if (read (fd, data3, pagesize) != pagesize)
15629 exit (1);
15630 for (i = 0; i < pagesize; ++i)
15631 if (*(data + i) != *(data3 + i))
15632 exit (1);
15633 close (fd);
15634 exit (0);
15636 _ACEOF
15637 rm -f conftest$ac_exeext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639 (eval $ac_link) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_cv_func_mmap_fixed_mapped=yes
15649 else
15650 echo "$as_me: program exited with status $ac_status" >&5
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ( exit $ac_status )
15655 ac_cv_func_mmap_fixed_mapped=no
15657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15664 cat >>confdefs.h <<\_ACEOF
15665 #define HAVE_MMAP 1
15666 _ACEOF
15669 rm -f conftest.mmap
15673 for ac_header in sys/select.h sys/socket.h
15675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15677 echo "$as_me:$LINENO: checking for $ac_header" >&5
15678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15684 else
15685 # Is the header compilable?
15686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h. */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 $ac_includes_default
15695 #include <$ac_header>
15696 _ACEOF
15697 rm -f conftest.$ac_objext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15699 (eval $ac_compile) 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag"
15707 || test ! -s conftest.err'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; } &&
15713 { ac_try='test -s conftest.$ac_objext'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_header_compiler=yes
15720 else
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ac_header_compiler=no
15726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6
15730 # Is the header present?
15731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <$ac_header>
15740 _ACEOF
15741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev/null; then
15749 if test -s conftest.err; then
15750 ac_cpp_err=$ac_c_preproc_warn_flag
15751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752 else
15753 ac_cpp_err=
15755 else
15756 ac_cpp_err=yes
15758 if test -z "$ac_cpp_err"; then
15759 ac_header_preproc=yes
15760 else
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_preproc=no
15766 rm -f conftest.err conftest.$ac_ext
15767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15768 echo "${ECHO_T}$ac_header_preproc" >&6
15770 # So? What about this header?
15771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15772 yes:no: )
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15777 ac_header_preproc=yes
15779 no:yes:* )
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15793 cat <<\_ASBOX
15794 ## ------------------------------ ##
15795 ## Report this to admin@amule.org ##
15796 ## ------------------------------ ##
15797 _ASBOX
15799 sed "s/^/$as_me: WARNING: /" >&2
15801 esac
15802 echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807 eval "$as_ac_Header=\$ac_header_preproc"
15809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 _ACEOF
15820 done
15822 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15823 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15824 if test "${ac_cv_func_select_args+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15828 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15829 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h. */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #if HAVE_SYS_SELECT_H
15838 # include <sys/select.h>
15839 #endif
15840 #if HAVE_SYS_SOCKET_H
15841 # include <sys/socket.h>
15842 #endif
15845 main ()
15847 extern int select ($ac_arg1,
15848 $ac_arg234, $ac_arg234, $ac_arg234,
15849 $ac_arg5);
15851 return 0;
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15877 else
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 done
15884 done
15885 done
15886 # Provide a safe default value.
15887 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15890 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15891 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15892 ac_save_IFS=$IFS; IFS=','
15893 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15894 IFS=$ac_save_IFS
15895 shift
15897 cat >>confdefs.h <<_ACEOF
15898 #define SELECT_TYPE_ARG1 $1
15899 _ACEOF
15902 cat >>confdefs.h <<_ACEOF
15903 #define SELECT_TYPE_ARG234 ($2)
15904 _ACEOF
15907 cat >>confdefs.h <<_ACEOF
15908 #define SELECT_TYPE_ARG5 ($3)
15909 _ACEOF
15911 rm -f conftest*
15913 echo "$as_me:$LINENO: checking for function prototypes" >&5
15914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
15915 if test "$ac_cv_prog_cc_stdc" != no; then
15916 echo "$as_me:$LINENO: result: yes" >&5
15917 echo "${ECHO_T}yes" >&6
15919 cat >>confdefs.h <<\_ACEOF
15920 #define PROTOTYPES 1
15921 _ACEOF
15924 cat >>confdefs.h <<\_ACEOF
15925 #define __PROTOTYPES 1
15926 _ACEOF
15928 else
15929 echo "$as_me:$LINENO: result: no" >&5
15930 echo "${ECHO_T}no" >&6
15933 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
15934 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15935 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938 ac_cv_func_setvbuf_reversed=no
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <stdio.h>
15946 # if PROTOTYPES
15947 int (setvbuf) (FILE *, int, char *, size_t);
15948 # endif
15950 main ()
15952 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
15954 return 0;
15956 _ACEOF
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag"
15967 || test ! -s conftest.err'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest$ac_exeext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <stdio.h>
15986 # if PROTOTYPES
15987 int (setvbuf) (FILE *, int, char *, size_t);
15988 # endif
15990 main ()
15992 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
15994 return 0;
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15999 (eval $ac_link) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 # It compiles and links either way, so it must not be declared
16020 # with a prototype and most likely this is a K&R C compiler.
16021 # Try running it.
16022 if test "$cross_compiling" = yes; then
16023 : # Assume setvbuf is not reversed when cross-compiling.
16024 else
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 #include <stdio.h>
16033 main ()
16035 /* This call has the arguments reversed.
16036 A reversed system may check and see that the address of buf
16037 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16038 char buf;
16039 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
16040 exit (1);
16041 putchar ('\r');
16042 exit (0); /* Non-reversed systems SEGV here. */
16044 return 0;
16046 _ACEOF
16047 rm -f conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_func_setvbuf_reversed=yes
16059 else
16060 echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ( exit $ac_status )
16065 rm -f core *.core
16067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16069 ac_cv_func_setvbuf_reversed=yes
16070 else
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16075 rm -f conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 else
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16082 rm -f conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
16086 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16087 if test $ac_cv_func_setvbuf_reversed = yes; then
16089 cat >>confdefs.h <<\_ACEOF
16090 #define SETVBUF_REVERSED 1
16091 _ACEOF
16095 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16096 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16097 if test "${ac_cv_type_signal+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <sys/types.h>
16107 #include <signal.h>
16108 #ifdef signal
16109 # undef signal
16110 #endif
16111 #ifdef __cplusplus
16112 extern "C" void (*signal (int, void (*)(int)))(int);
16113 #else
16114 void (*signal ()) ();
16115 #endif
16118 main ()
16120 int i;
16122 return 0;
16124 _ACEOF
16125 rm -f conftest.$ac_objext
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag"
16135 || test ! -s conftest.err'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_cv_type_signal=void
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_cv_type_signal=int
16154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16156 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16157 echo "${ECHO_T}$ac_cv_type_signal" >&6
16159 cat >>confdefs.h <<_ACEOF
16160 #define RETSIGTYPE $ac_cv_type_signal
16161 _ACEOF
16164 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
16165 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
16166 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 if test "$cross_compiling" = yes; then
16170 ac_cv_func_stat_empty_string_bug=yes
16171 else
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16180 main ()
16182 struct stat sbuf;
16183 exit (stat ("", &sbuf) ? 1 : 0);
16185 return 0;
16187 _ACEOF
16188 rm -f conftest$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_func_stat_empty_string_bug=yes
16200 else
16201 echo "$as_me: program exited with status $ac_status" >&5
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ( exit $ac_status )
16206 ac_cv_func_stat_empty_string_bug=no
16208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16211 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
16212 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
16213 if test $ac_cv_func_stat_empty_string_bug = yes; then
16214 case $LIBOBJS in
16215 "stat.$ac_objext" | \
16216 *" stat.$ac_objext" | \
16217 "stat.$ac_objext "* | \
16218 *" stat.$ac_objext "* ) ;;
16219 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
16220 esac
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_STAT_EMPTY_STRING_BUG 1
16225 _ACEOF
16230 for ac_func in strftime
16232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16235 if eval "test \"\${$as_ac_var+set}\" = set"; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 else
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16246 #define $ac_func innocuous_$ac_func
16248 /* System header to define __stub macros and hopefully few prototypes,
16249 which can conflict with char $ac_func (); below.
16250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251 <limits.h> exists even on freestanding compilers. */
16253 #ifdef __STDC__
16254 # include <limits.h>
16255 #else
16256 # include <assert.h>
16257 #endif
16259 #undef $ac_func
16261 /* Override any gcc2 internal prototype to avoid an error. */
16262 #ifdef __cplusplus
16263 extern "C"
16265 #endif
16266 /* We use char because int might match the return type of a gcc2
16267 builtin and then its argument prototype would still apply. */
16268 char $ac_func ();
16269 /* The GNU C library defines this for functions which it implements
16270 to always fail with ENOSYS. Some functions are actually named
16271 something starting with __ and the normal name is an alias. */
16272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16273 choke me
16274 #else
16275 char (*f) () = $ac_func;
16276 #endif
16277 #ifdef __cplusplus
16279 #endif
16282 main ()
16284 return f != $ac_func;
16286 return 0;
16288 _ACEOF
16289 rm -f conftest.$ac_objext conftest$ac_exeext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16291 (eval $ac_link) 2>conftest.er1
16292 ac_status=$?
16293 grep -v '^ *+' conftest.er1 >conftest.err
16294 rm -f conftest.er1
16295 cat conftest.err >&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try='test -z "$ac_c_werror_flag"
16299 || test ! -s conftest.err'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; } &&
16305 { ac_try='test -s conftest$ac_exeext'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 eval "$as_ac_var=yes"
16312 else
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 eval "$as_ac_var=no"
16318 rm -f conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16323 if test `eval echo '${'$as_ac_var'}'` = yes; then
16324 cat >>confdefs.h <<_ACEOF
16325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16326 _ACEOF
16328 else
16329 # strftime is in -lintl on SCO UNIX.
16330 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-lintl $LIBS"
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any gcc2 internal prototype to avoid an error. */
16345 #ifdef __cplusplus
16346 extern "C"
16347 #endif
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16350 char strftime ();
16352 main ()
16354 strftime ();
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_lib_intl_strftime=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_lib_intl_strftime=no
16388 rm -f conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 LIBS=$ac_check_lib_save_LIBS
16392 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16393 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16394 if test $ac_cv_lib_intl_strftime = yes; then
16395 cat >>confdefs.h <<\_ACEOF
16396 #define HAVE_STRFTIME 1
16397 _ACEOF
16399 LIBS="-lintl $LIBS"
16403 done
16405 echo "$as_me:$LINENO: checking for working strtod" >&5
16406 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
16407 if test "${ac_cv_func_strtod+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410 if test "$cross_compiling" = yes; then
16411 ac_cv_func_strtod=no
16412 else
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16420 double strtod ();
16422 main()
16425 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16426 char *string = " +69";
16427 char *term;
16428 double value;
16429 value = strtod (string, &term);
16430 if (value != 69 || term != (string + 4))
16431 exit (1);
16435 /* Under Solaris 2.4, strtod returns the wrong value for the
16436 terminating character under some conditions. */
16437 char *string = "NaN";
16438 char *term;
16439 strtod (string, &term);
16440 if (term != string && *(term - 1) == 0)
16441 exit (1);
16443 exit (0);
16446 _ACEOF
16447 rm -f conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
16458 ac_cv_func_strtod=yes
16459 else
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ( exit $ac_status )
16465 ac_cv_func_strtod=no
16467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
16471 echo "${ECHO_T}$ac_cv_func_strtod" >&6
16472 if test $ac_cv_func_strtod = no; then
16473 case $LIBOBJS in
16474 "strtod.$ac_objext" | \
16475 *" strtod.$ac_objext" | \
16476 "strtod.$ac_objext "* | \
16477 *" strtod.$ac_objext "* ) ;;
16478 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
16479 esac
16481 echo "$as_me:$LINENO: checking for pow" >&5
16482 echo $ECHO_N "checking for pow... $ECHO_C" >&6
16483 if test "${ac_cv_func_pow+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
16493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16494 #define pow innocuous_pow
16496 /* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char pow (); below.
16498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16499 <limits.h> exists even on freestanding compilers. */
16501 #ifdef __STDC__
16502 # include <limits.h>
16503 #else
16504 # include <assert.h>
16505 #endif
16507 #undef pow
16509 /* Override any gcc2 internal prototype to avoid an error. */
16510 #ifdef __cplusplus
16511 extern "C"
16513 #endif
16514 /* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16516 char pow ();
16517 /* The GNU C library defines this for functions which it implements
16518 to always fail with ENOSYS. Some functions are actually named
16519 something starting with __ and the normal name is an alias. */
16520 #if defined (__stub_pow) || defined (__stub___pow)
16521 choke me
16522 #else
16523 char (*f) () = pow;
16524 #endif
16525 #ifdef __cplusplus
16527 #endif
16530 main ()
16532 return f != pow;
16534 return 0;
16536 _ACEOF
16537 rm -f conftest.$ac_objext conftest$ac_exeext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16539 (eval $ac_link) 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag"
16547 || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest$ac_exeext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_cv_func_pow=yes
16560 else
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_func_pow=no
16566 rm -f conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16569 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16570 echo "${ECHO_T}$ac_cv_func_pow" >&6
16572 if test $ac_cv_func_pow = no; then
16573 echo "$as_me:$LINENO: checking for pow in -lm" >&5
16574 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
16575 if test "${ac_cv_lib_m_pow+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 ac_check_lib_save_LIBS=$LIBS
16579 LIBS="-lm $LIBS"
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16587 /* Override any gcc2 internal prototype to avoid an error. */
16588 #ifdef __cplusplus
16589 extern "C"
16590 #endif
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16593 char pow ();
16595 main ()
16597 pow ();
16599 return 0;
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_m_pow=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_cv_lib_m_pow=no
16631 rm -f conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16633 LIBS=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16636 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
16637 if test $ac_cv_lib_m_pow = yes; then
16638 POW_LIB=-lm
16639 else
16640 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16641 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16649 for ac_func in vprintf
16651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652 echo "$as_me:$LINENO: checking for $ac_func" >&5
16653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16654 if eval "test \"\${$as_ac_var+set}\" = set"; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h. */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16665 #define $ac_func innocuous_$ac_func
16667 /* System header to define __stub macros and hopefully few prototypes,
16668 which can conflict with char $ac_func (); below.
16669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670 <limits.h> exists even on freestanding compilers. */
16672 #ifdef __STDC__
16673 # include <limits.h>
16674 #else
16675 # include <assert.h>
16676 #endif
16678 #undef $ac_func
16680 /* Override any gcc2 internal prototype to avoid an error. */
16681 #ifdef __cplusplus
16682 extern "C"
16684 #endif
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687 char $ac_func ();
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16692 choke me
16693 #else
16694 char (*f) () = $ac_func;
16695 #endif
16696 #ifdef __cplusplus
16698 #endif
16701 main ()
16703 return f != $ac_func;
16705 return 0;
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_var=yes"
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 eval "$as_ac_var=no"
16737 rm -f conftest.err conftest.$ac_objext \
16738 conftest$ac_exeext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16742 if test `eval echo '${'$as_ac_var'}'` = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 _ACEOF
16747 echo "$as_me:$LINENO: checking for _doprnt" >&5
16748 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16749 if test "${ac_cv_func__doprnt+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h. */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define _doprnt innocuous__doprnt
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char _doprnt (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16767 #ifdef __STDC__
16768 # include <limits.h>
16769 #else
16770 # include <assert.h>
16771 #endif
16773 #undef _doprnt
16775 /* Override any gcc2 internal prototype to avoid an error. */
16776 #ifdef __cplusplus
16777 extern "C"
16779 #endif
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16782 char _doprnt ();
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16787 choke me
16788 #else
16789 char (*f) () = _doprnt;
16790 #endif
16791 #ifdef __cplusplus
16793 #endif
16796 main ()
16798 return f != _doprnt;
16800 return 0;
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805 (eval $ac_link) 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_cv_func__doprnt=yes
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 ac_cv_func__doprnt=no
16832 rm -f conftest.err conftest.$ac_objext \
16833 conftest$ac_exeext conftest.$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16836 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16837 if test $ac_cv_func__doprnt = yes; then
16839 cat >>confdefs.h <<\_ACEOF
16840 #define HAVE_DOPRNT 1
16841 _ACEOF
16846 done
16849 if test $cross_compiling = yes -a $gnumalloc = yes ; then
16850 { echo "$as_me:$LINENO: WARNING:
16851 configure cannot check whether malloc() and realloc() are GNU libc
16852 compatible. You have to be ABSOLUTELY sure that they are, otherwise
16853 run configure with the --without-gnu-malloc switch." >&5
16854 echo "$as_me: WARNING:
16855 configure cannot check whether malloc() and realloc() are GNU libc
16856 compatible. You have to be ABSOLUTELY sure that they are, otherwise
16857 run configure with the --without-gnu-malloc switch." >&2;}
16858 ac_cv_func_malloc_0_nonnull=yes
16859 ac_cv_func_realloc_0_nonnull=yes
16862 for ac_header in stdlib.h
16864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16873 else
16874 # Is the header compilable?
16875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 $ac_includes_default
16884 #include <$ac_header>
16885 _ACEOF
16886 rm -f conftest.$ac_objext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>conftest.er1
16889 ac_status=$?
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest.$ac_objext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_header_compiler=yes
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_header_compiler=no
16915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16917 echo "${ECHO_T}$ac_header_compiler" >&6
16919 # Is the header present?
16920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <$ac_header>
16929 _ACEOF
16930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } >/dev/null; then
16938 if test -s conftest.err; then
16939 ac_cpp_err=$ac_c_preproc_warn_flag
16940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16941 else
16942 ac_cpp_err=
16944 else
16945 ac_cpp_err=yes
16947 if test -z "$ac_cpp_err"; then
16948 ac_header_preproc=yes
16949 else
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 ac_header_preproc=no
16955 rm -f conftest.err conftest.$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6
16959 # So? What about this header?
16960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16961 yes:no: )
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16966 ac_header_preproc=yes
16968 no:yes:* )
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16982 cat <<\_ASBOX
16983 ## ------------------------------ ##
16984 ## Report this to admin@amule.org ##
16985 ## ------------------------------ ##
16986 _ASBOX
16988 sed "s/^/$as_me: WARNING: /" >&2
16990 esac
16991 echo "$as_me:$LINENO: checking for $ac_header" >&5
16992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996 eval "$as_ac_Header=\$ac_header_preproc"
16998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17003 cat >>confdefs.h <<_ACEOF
17004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005 _ACEOF
17009 done
17011 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17012 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17013 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016 if test "$cross_compiling" = yes; then
17017 ac_cv_func_malloc_0_nonnull=no
17018 else
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #if STDC_HEADERS || HAVE_STDLIB_H
17026 # include <stdlib.h>
17027 #else
17028 char *malloc ();
17029 #endif
17032 main ()
17034 exit (malloc (0) ? 0 : 1);
17036 return 0;
17038 _ACEOF
17039 rm -f conftest$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_func_malloc_0_nonnull=yes
17051 else
17052 echo "$as_me: program exited with status $ac_status" >&5
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ( exit $ac_status )
17057 ac_cv_func_malloc_0_nonnull=no
17059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17062 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17063 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17064 if test $ac_cv_func_malloc_0_nonnull = yes; then
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_MALLOC 1
17068 _ACEOF
17070 else
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_MALLOC 0
17073 _ACEOF
17075 case $LIBOBJS in
17076 "malloc.$ac_objext" | \
17077 *" malloc.$ac_objext" | \
17078 "malloc.$ac_objext "* | \
17079 *" malloc.$ac_objext "* ) ;;
17080 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
17081 esac
17084 cat >>confdefs.h <<\_ACEOF
17085 #define malloc rpl_malloc
17086 _ACEOF
17093 for ac_header in stdlib.h
17095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17097 echo "$as_me:$LINENO: checking for $ac_header" >&5
17098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17104 else
17105 # Is the header compilable?
17106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 $ac_includes_default
17115 #include <$ac_header>
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try='test -s conftest.$ac_objext'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_header_compiler=yes
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_header_compiler=no
17146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17148 echo "${ECHO_T}$ac_header_compiler" >&6
17150 # Is the header present?
17151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 #include <$ac_header>
17160 _ACEOF
17161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } >/dev/null; then
17169 if test -s conftest.err; then
17170 ac_cpp_err=$ac_c_preproc_warn_flag
17171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17172 else
17173 ac_cpp_err=
17175 else
17176 ac_cpp_err=yes
17178 if test -z "$ac_cpp_err"; then
17179 ac_header_preproc=yes
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_header_preproc=no
17186 rm -f conftest.err conftest.$ac_ext
17187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17188 echo "${ECHO_T}$ac_header_preproc" >&6
17190 # So? What about this header?
17191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17192 yes:no: )
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17197 ac_header_preproc=yes
17199 no:yes:* )
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17213 cat <<\_ASBOX
17214 ## ------------------------------ ##
17215 ## Report this to admin@amule.org ##
17216 ## ------------------------------ ##
17217 _ASBOX
17219 sed "s/^/$as_me: WARNING: /" >&2
17221 esac
17222 echo "$as_me:$LINENO: checking for $ac_header" >&5
17223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 eval "$as_ac_Header=\$ac_header_preproc"
17229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17234 cat >>confdefs.h <<_ACEOF
17235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17236 _ACEOF
17240 done
17242 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
17243 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
17244 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 if test "$cross_compiling" = yes; then
17248 ac_cv_func_realloc_0_nonnull=no
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #if STDC_HEADERS || HAVE_STDLIB_H
17257 # include <stdlib.h>
17258 #else
17259 char *realloc ();
17260 #endif
17263 main ()
17265 exit (realloc (0, 0) ? 0 : 1);
17267 return 0;
17269 _ACEOF
17270 rm -f conftest$ac_exeext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_func_realloc_0_nonnull=yes
17282 else
17283 echo "$as_me: program exited with status $ac_status" >&5
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ( exit $ac_status )
17288 ac_cv_func_realloc_0_nonnull=no
17290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17293 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
17294 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
17295 if test $ac_cv_func_realloc_0_nonnull = yes; then
17297 cat >>confdefs.h <<\_ACEOF
17298 #define HAVE_REALLOC 1
17299 _ACEOF
17301 else
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_REALLOC 0
17304 _ACEOF
17306 case $LIBOBJS in
17307 "realloc.$ac_objext" | \
17308 *" realloc.$ac_objext" | \
17309 "realloc.$ac_objext "* | \
17310 *" realloc.$ac_objext "* ) ;;
17311 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
17312 esac
17315 cat >>confdefs.h <<\_ACEOF
17316 #define realloc rpl_realloc
17317 _ACEOF
17358 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
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_var+set}\" = set"; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17387 #undef $ac_func
17389 /* Override any gcc2 internal prototype to avoid an error. */
17390 #ifdef __cplusplus
17391 extern "C"
17393 #endif
17394 /* We use char because int might match the return type of a gcc2
17395 builtin and then its argument prototype would still apply. */
17396 char $ac_func ();
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17401 choke me
17402 #else
17403 char (*f) () = $ac_func;
17404 #endif
17405 #ifdef __cplusplus
17407 #endif
17410 main ()
17412 return f != $ac_func;
17414 return 0;
17416 _ACEOF
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 eval "$as_ac_var=yes"
17440 else
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 eval "$as_ac_var=no"
17446 rm -f conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17457 done
17459 #-------------------------------------------------------------------------------
17460 # End of autoscan stuff
17461 #-------------------------------------------------------------------------------
17466 for ac_func in mkdir getrlimit setrlimit
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_var+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482 #define $ac_func innocuous_$ac_func
17484 /* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17489 #ifdef __STDC__
17490 # include <limits.h>
17491 #else
17492 # include <assert.h>
17493 #endif
17495 #undef $ac_func
17497 /* Override any gcc2 internal prototype to avoid an error. */
17498 #ifdef __cplusplus
17499 extern "C"
17501 #endif
17502 /* We use char because int might match the return type of a gcc2
17503 builtin and then its argument prototype would still apply. */
17504 char $ac_func ();
17505 /* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
17508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17509 choke me
17510 #else
17511 char (*f) () = $ac_func;
17512 #endif
17513 #ifdef __cplusplus
17515 #endif
17518 main ()
17520 return f != $ac_func;
17522 return 0;
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17559 if test `eval echo '${'$as_ac_var'}'` = yes; then
17560 cat >>confdefs.h <<_ACEOF
17561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17562 _ACEOF
17565 done
17568 # Flush standard test results for speeding cache
17569 cat >confcache <<\_ACEOF
17570 # This file is a shell script that caches the results of configure
17571 # tests run on this system so they can be shared between configure
17572 # scripts and configure runs, see configure's option --config-cache.
17573 # It is not useful on other systems. If it contains results you don't
17574 # want to keep, you may remove or edit it.
17576 # config.status only pays attention to the cache file if you give it
17577 # the --recheck option to rerun configure.
17579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17581 # following values.
17583 _ACEOF
17585 # The following way of writing the cache mishandles newlines in values,
17586 # but we know of no workaround that is simple, portable, and efficient.
17587 # So, don't put newlines in cache variables' values.
17588 # Ultrix sh set writes to stderr and can't be redirected directly,
17589 # and sets the high bit in the cache file unless we assign to the vars.
17591 (set) 2>&1 |
17592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17593 *ac_space=\ *)
17594 # `set' does not quote correctly, so add quotes (double-quote
17595 # substitution turns \\\\ into \\, and sed turns \\ into \).
17596 sed -n \
17597 "s/'/'\\\\''/g;
17598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17601 # `set' quotes correctly as required by POSIX, so do not add quotes.
17602 sed -n \
17603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17605 esac;
17607 sed '
17608 t clear
17609 : clear
17610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17611 t end
17612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17613 : end' >>confcache
17614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17615 if test -w $cache_file; then
17616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17617 cat confcache >$cache_file
17618 else
17619 echo "not updating unwritable cache $cache_file"
17622 rm -f confcache
17624 # Other tests
17626 case "$USE_DEBUG" in
17627 yes) DEBUG_FLAGS="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
17628 if test x$GCC = xyes; then
17629 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
17632 if test x$SYS = xwin32; then
17633 RCFLAGS="$RCFLAGS -D__DEBUG__"
17637 *) DEBUG_FLAGS=""
17638 if test x$GCC = xyes; then
17639 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"
17643 esac
17645 #aMule options
17647 # Command line tools
17648 case "$AMULECMD" in
17649 yes) ;;
17650 *) AMULECMD="no"
17652 esac
17654 # For proper compilation flags
17656 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
17658 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
17659 WXBASE_CXXFLAGS="$WX_CXXFLAGS -DwxUSE_GUI=0"
17660 WXBASE_CFLAGS="$WX_CFLAGS -DwxUSE_GUI=0"
17662 WX_CFLAGS="`echo $WX_CFLAGS | sed "s#-I/#-isystem /#g"`"
17663 WX_CXXFLAGS="`echo $WX_CXXFLAGS | sed "s#-I/#-isystem /#g"`"
17664 WXBASE_CFLAGS="`echo $WXBASE_CFLAGS | sed "s#-I/#-isystem /#g"`"
17665 WXBASE_CXXFLAGS="`echo $WXBASE_CXXFLAGS | sed "s#-I/#-isystem /#g"`"
17671 case "$USE_OPTIMIZE" in
17672 yes) OPTIMIZE_FLAGS="-O2"
17674 *) OPTIMIZE_FLAGS=""
17676 esac
17678 # Profiling
17679 case "$USE_PROFILE" in
17680 yes) PROFILE_FLAGS="-pg"
17682 *) PROFILE_FLAGS=""
17684 esac
17686 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
17687 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
17688 case "$USE_DEBUG_STATIC" in
17689 yes) LDFLAGS="$LDFLAGS -static"
17691 esac
17692 echo "$as_me:$LINENO: result: $USE_DEBUG_STATIC" >&5
17693 echo "${ECHO_T}$USE_DEBUG_STATIC" >&6
17695 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
17696 echo "$as_me:$LINENO: checking for docdir" >&5
17697 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
17698 if test x"$docdir" = x; then
17699 docdir="$datadir"/doc/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
17702 echo "$as_me:$LINENO: result: $docdir" >&5
17703 echo "${ECHO_T}$docdir" >&6
17705 # Try to set the SVN checkout-date
17706 echo "$as_me:$LINENO: checking for SVNDATE" >&5
17707 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
17708 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
17709 then
17710 svndate=`cat $srcdir/SVNDATE`
17711 elif test -d $srcdir/.svn # SVNDATE for svn
17712 then
17713 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
17715 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
17716 echo "${ECHO_T}${svndate:-None required}" >&6
17717 test "$svndate" &&
17718 cat >>confdefs.h <<_ACEOF
17719 #define SVNDATE "$svndate"
17720 _ACEOF
17722 test x$SYS = xwin32 && test "$svndate" && RCFLAGS="$RCFLAGS -D__PRERELEASE__"
17723 SVNDATE="$svndate"
17726 XRCFLAGS="-Isrc"
17727 CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17728 CFLAGS="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17730 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
17731 if test x$SYS != xwin32; then
17732 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
17733 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
17734 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
17735 LDFLAGS="$LDFLAGS -pthread"
17736 echo "$as_me:$LINENO: result: yes" >&5
17737 echo "${ECHO_T}yes" >&6
17738 else
17739 LDFLAGS="$LDFLAGS -lpthread"
17740 echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6
17745 case "$USE_NLS" in
17747 yes)
17748 echo "$as_me:$LINENO: checking for requested languages" >&5
17749 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17750 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17752 if test "$AMULE_DAEMON" == "yes"; then
17753 if test "$LINGUAS" = ""; then
17754 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17755 else
17756 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17757 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17759 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17760 else
17761 AMULE_DAEMON_MANPAGES=
17766 if test "$AMULECMD" == "yes"; then
17767 if test "$LINGUAS" = ""; then
17768 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17769 else
17770 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17771 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17773 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17774 else
17775 AMULECMD_MANPAGES=
17780 if test "$WEB" == "yes"; then
17781 if test "$LINGUAS" = ""; then
17782 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17783 else
17784 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17785 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17787 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
17788 else
17789 WEB_MANPAGES=
17794 if test "$AMULE_GUI" == "yes"; then
17795 if test "$LINGUAS" = ""; then
17796 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17797 else
17798 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17799 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17801 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17802 else
17803 AMULE_GUI_MANPAGES=
17808 if test "$CAS" == "yes"; then
17809 if test "$LINGUAS" = ""; then
17810 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17811 else
17812 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17813 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17815 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
17816 else
17817 CAS_MANPAGES=
17822 if test "$WXCAS" == "yes"; then
17823 if test "$LINGUAS" = ""; then
17824 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17825 else
17826 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17827 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17829 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
17830 else
17831 WXCAS_MANPAGES=
17836 if test "$ED2K" == "yes"; then
17837 if test "$LINGUAS" = ""; then
17838 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17839 else
17840 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17841 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17843 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
17844 else
17845 ED2K_MANPAGES=
17850 if test "$ALC" == "yes"; then
17851 if test "$LINGUAS" = ""; then
17852 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17853 else
17854 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17855 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17857 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
17858 else
17859 ALC_MANPAGES=
17864 if test "$ALCC" == "yes"; then
17865 if test "$LINGUAS" = ""; then
17866 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17867 else
17868 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17869 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17871 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
17872 else
17873 ALCC_MANPAGES=
17878 if test "$MONOLITHIC" == "yes"; then
17879 if test "$LINGUAS" = ""; then
17880 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17881 else
17882 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17883 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17885 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17886 else
17887 MONOLITHIC_MANPAGES=
17891 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17892 echo "${ECHO_T}${LINGUAS:-all}" >&6
17895 HAVE_GETTEXT="no"
17896 esac
17898 echo "$as_me:$LINENO: checking denoising level" >&5
17899 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
17900 if test "$denoiselevel" = "yes"; then
17901 denoiselevel=5
17903 if test "$denoiselevel" = "no"; then
17904 denoiselevel=0
17906 if test $denoiselevel -gt 4; then
17907 if test "${svndate:+set}" = "set"; then
17908 denoiselevel=0
17909 else
17910 denoiselevel=4
17914 echo "$as_me:$LINENO: result: $denoiselevel" >&5
17915 echo "${ECHO_T}$denoiselevel" >&6
17917 ac_config_commands="$ac_config_commands denoiser"
17923 if test x$WEB = xyes; then
17924 WEB_TRUE=
17925 WEB_FALSE='#'
17926 else
17927 WEB_TRUE='#'
17928 WEB_FALSE=
17933 if test x$ED2K = xyes; then
17934 ED2K_TRUE=
17935 ED2K_FALSE='#'
17936 else
17937 ED2K_TRUE='#'
17938 ED2K_FALSE=
17943 if test x$CAS = xyes; then
17944 CAS_TRUE=
17945 CAS_FALSE='#'
17946 else
17947 CAS_TRUE='#'
17948 CAS_FALSE=
17953 if test x$WXCAS = xyes; then
17954 WXCAS_TRUE=
17955 WXCAS_FALSE='#'
17956 else
17957 WXCAS_TRUE='#'
17958 WXCAS_FALSE=
17963 if test x$ALC = xyes; then
17964 ALC_TRUE=
17965 ALC_FALSE='#'
17966 else
17967 ALC_TRUE='#'
17968 ALC_FALSE=
17973 if test x$ALCC = xyes; then
17974 ALCC_TRUE=
17975 ALCC_FALSE='#'
17976 else
17977 ALCC_TRUE='#'
17978 ALCC_FALSE=
17983 if test x$AMULE_GUI = xyes; then
17984 AMULE_GUI_TRUE=
17985 AMULE_GUI_FALSE='#'
17986 else
17987 AMULE_GUI_TRUE='#'
17988 AMULE_GUI_FALSE=
17993 if test x$AMULE_DAEMON = xyes; then
17994 AMULE_DAEMON_TRUE=
17995 AMULE_DAEMON_FALSE='#'
17996 else
17997 AMULE_DAEMON_TRUE='#'
17998 AMULE_DAEMON_FALSE=
18003 if test x$AMULECMD = xyes; then
18004 COMPILE_CMD_TRUE=
18005 COMPILE_CMD_FALSE='#'
18006 else
18007 COMPILE_CMD_TRUE='#'
18008 COMPILE_CMD_FALSE=
18013 if test x$MONOLITHIC = xyes; then
18014 MONOLITHIC_TRUE=
18015 MONOLITHIC_FALSE='#'
18016 else
18017 MONOLITHIC_TRUE='#'
18018 MONOLITHIC_FALSE=
18023 if test x$ENABLE_UPNP = xyes -a x$SYS != xwin32; then
18024 ENABLE_UPNP_TRUE=
18025 ENABLE_UPNP_FALSE='#'
18026 else
18027 ENABLE_UPNP_TRUE='#'
18028 ENABLE_UPNP_FALSE=
18033 if test x$ENABLE_IP2COUNTRY = xyes; then
18034 ENABLE_IP2COUNTRY_TRUE=
18035 ENABLE_IP2COUNTRY_FALSE='#'
18036 else
18037 ENABLE_IP2COUNTRY_TRUE='#'
18038 ENABLE_IP2COUNTRY_FALSE=
18043 if test x$SYS = xwin32; then
18044 SYS_WIN32_TRUE=
18045 SYS_WIN32_FALSE='#'
18046 else
18047 SYS_WIN32_TRUE='#'
18048 SYS_WIN32_FALSE=
18053 if test x$SYS = xwin32 -a "$RC" != ":"; then
18054 NEED_RC_TRUE=
18055 NEED_RC_FALSE='#'
18056 else
18057 NEED_RC_TRUE='#'
18058 NEED_RC_FALSE=
18063 if test x$SYS = xdarwin; then
18064 NEED_CORESERVICES_TRUE=
18065 NEED_CORESERVICES_FALSE='#'
18066 else
18067 NEED_CORESERVICES_TRUE='#'
18068 NEED_CORESERVICES_FALSE=
18073 if test x$HAVE_GETTEXT = xyes; then
18074 COMPILE_NLS_TRUE=
18075 COMPILE_NLS_FALSE='#'
18076 else
18077 COMPILE_NLS_TRUE='#'
18078 COMPILE_NLS_FALSE=
18083 if test x$HAVE_FLEX_EXTENDED = xyes; then
18084 GENERATE_FLEX_HEADER_TRUE=
18085 GENERATE_FLEX_HEADER_FALSE='#'
18086 else
18087 GENERATE_FLEX_HEADER_TRUE='#'
18088 GENERATE_FLEX_HEADER_FALSE=
18092 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18094 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18095 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18096 if test "${vl_cv_lib_readline+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18100 ORIG_LIBS="$LIBS"
18101 for readline_lib in readline edit editline; do
18102 for termcap_lib in "" termcap curses ncurses; do
18103 if test -z "$termcap_lib"; then
18104 TRY_LIB="-l$readline_lib"
18105 else
18106 TRY_LIB="-l$readline_lib -l$termcap_lib"
18108 LIBS="$ORIG_LIBS $TRY_LIB"
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18116 /* Override any gcc2 internal prototype to avoid an error. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18122 char readline ();
18124 main ()
18126 readline ();
18128 return 0;
18130 _ACEOF
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try='test -z "$ac_c_werror_flag"
18141 || test ! -s conftest.err'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; }; then
18153 vl_cv_lib_readline="$TRY_LIB"
18154 else
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18159 rm -f conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161 if test -n "$vl_cv_lib_readline"; then
18162 break
18164 done
18165 if test -n "$vl_cv_lib_readline"; then
18166 break
18168 done
18169 if test -z "$vl_cv_lib_readline"; then
18170 vl_cv_lib_readline="no"
18171 LIBS="$ORIG_LIBS"
18172 READLINE_LIBS=""
18173 else
18174 READLINE_LIBS="$vl_cv_lib_readline"
18178 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18179 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18181 if test "$vl_cv_lib_readline" != "no"; then
18183 cat >>confdefs.h <<\_ACEOF
18184 #define HAVE_LIBREADLINE 1
18185 _ACEOF
18189 for ac_header in readline.h readline/readline.h
18191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18193 echo "$as_me:$LINENO: checking for $ac_header" >&5
18194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18200 else
18201 # Is the header compilable?
18202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18204 cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h. */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18210 $ac_includes_default
18211 #include <$ac_header>
18212 _ACEOF
18213 rm -f conftest.$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_header_compiler=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_header_compiler=no
18242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18244 echo "${ECHO_T}$ac_header_compiler" >&6
18246 # Is the header present?
18247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 #include <$ac_header>
18256 _ACEOF
18257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } >/dev/null; then
18265 if test -s conftest.err; then
18266 ac_cpp_err=$ac_c_preproc_warn_flag
18267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18268 else
18269 ac_cpp_err=
18271 else
18272 ac_cpp_err=yes
18274 if test -z "$ac_cpp_err"; then
18275 ac_header_preproc=yes
18276 else
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_header_preproc=no
18282 rm -f conftest.err conftest.$ac_ext
18283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18284 echo "${ECHO_T}$ac_header_preproc" >&6
18286 # So? What about this header?
18287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18288 yes:no: )
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18293 ac_header_preproc=yes
18295 no:yes:* )
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18309 cat <<\_ASBOX
18310 ## ------------------------------ ##
18311 ## Report this to admin@amule.org ##
18312 ## ------------------------------ ##
18313 _ASBOX
18315 sed "s/^/$as_me: WARNING: /" >&2
18317 esac
18318 echo "$as_me:$LINENO: checking for $ac_header" >&5
18319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 eval "$as_ac_Header=\$ac_header_preproc"
18325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18332 _ACEOF
18336 done
18338 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18339 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18340 if test "${vl_cv_lib_readline_history+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18344 vl_cv_lib_readline_history="no"
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18352 /* Override any gcc2 internal prototype to avoid an error. */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char add_history ();
18360 main ()
18362 add_history ();
18364 return 0;
18366 _ACEOF
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
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); }; } &&
18383 { ac_try='test -s conftest$ac_exeext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 vl_cv_lib_readline_history="yes"
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18395 rm -f conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18399 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18400 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18401 if test "$vl_cv_lib_readline_history" = "yes"; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_READLINE_HISTORY 1
18405 _ACEOF
18409 for ac_header in history.h readline/history.h
18411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18413 echo "$as_me:$LINENO: checking for $ac_header" >&5
18414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18420 else
18421 # Is the header compilable?
18422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 $ac_includes_default
18431 #include <$ac_header>
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435 (eval $ac_compile) 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest.$ac_objext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_header_compiler=yes
18456 else
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_header_compiler=no
18462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18464 echo "${ECHO_T}$ac_header_compiler" >&6
18466 # Is the header present?
18467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <$ac_header>
18476 _ACEOF
18477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } >/dev/null; then
18485 if test -s conftest.err; then
18486 ac_cpp_err=$ac_c_preproc_warn_flag
18487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18488 else
18489 ac_cpp_err=
18491 else
18492 ac_cpp_err=yes
18494 if test -z "$ac_cpp_err"; then
18495 ac_header_preproc=yes
18496 else
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_header_preproc=no
18502 rm -f conftest.err conftest.$ac_ext
18503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18504 echo "${ECHO_T}$ac_header_preproc" >&6
18506 # So? What about this header?
18507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18508 yes:no: )
18509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18513 ac_header_preproc=yes
18515 no:yes:* )
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18529 cat <<\_ASBOX
18530 ## ------------------------------ ##
18531 ## Report this to admin@amule.org ##
18532 ## ------------------------------ ##
18533 _ASBOX
18535 sed "s/^/$as_me: WARNING: /" >&2
18537 esac
18538 echo "$as_me:$LINENO: checking for $ac_header" >&5
18539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543 eval "$as_ac_Header=\$ac_header_preproc"
18545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18552 _ACEOF
18556 done
18561 LIBS="$ORIG_LIBS"
18565 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18569 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18570 if test "${with_ccache_prefix+set}" = set; then
18571 withval="$with_ccache_prefix"
18572 ccache_prefix="$withval"
18573 else
18574 ccache_prefix=""
18578 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18579 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18580 echo "$as_me:$LINENO: result: $ccache" >&5
18581 echo "${ECHO_T}$ccache" >&6
18584 case "$ccache" in
18586 yes)
18588 if test x$ccache_prefix == x ; then
18589 ccache_full=$(which ccache)
18590 ccache_prefix=$(dirname ${ccache_full})
18592 $ccache_prefix/ccache -V > /dev/null 2>&1
18593 CCACHE=$?
18594 if test "$CCACHE" != 0; then
18595 result="no"
18596 else
18597 result="yes"
18599 echo "$as_me:$LINENO: checking for ccache presence" >&5
18600 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18601 echo "$as_me:$LINENO: result: $result" >&5
18602 echo "${ECHO_T}$result" >&6
18606 if [ $CCACHE = 0 ]; then
18607 GCC="$ccache_prefix/ccache $GCC"
18608 CC="$ccache_prefix/ccache $CC"
18609 GXX="$ccache_prefix/ccache $GXX"
18610 CXX="$ccache_prefix/ccache $CXX"
18611 BUILD_CC="$ccache_prefix/ccache $BUILD_CC"
18613 esac
18615 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/kademlia/Makefile src/kademlia/utils/Makefile src/kademlia/kademlia/Makefile src/kademlia/routing/Makefile src/kademlia/net/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 unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18617 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
18619 if test x$SYS = xwin32; then
18620 ac_config_files="$ac_config_files version.rc"
18624 cat >confcache <<\_ACEOF
18625 # This file is a shell script that caches the results of configure
18626 # tests run on this system so they can be shared between configure
18627 # scripts and configure runs, see configure's option --config-cache.
18628 # It is not useful on other systems. If it contains results you don't
18629 # want to keep, you may remove or edit it.
18631 # config.status only pays attention to the cache file if you give it
18632 # the --recheck option to rerun configure.
18634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18636 # following values.
18638 _ACEOF
18640 # The following way of writing the cache mishandles newlines in values,
18641 # but we know of no workaround that is simple, portable, and efficient.
18642 # So, don't put newlines in cache variables' values.
18643 # Ultrix sh set writes to stderr and can't be redirected directly,
18644 # and sets the high bit in the cache file unless we assign to the vars.
18646 (set) 2>&1 |
18647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18648 *ac_space=\ *)
18649 # `set' does not quote correctly, so add quotes (double-quote
18650 # substitution turns \\\\ into \\, and sed turns \\ into \).
18651 sed -n \
18652 "s/'/'\\\\''/g;
18653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18656 # `set' quotes correctly as required by POSIX, so do not add quotes.
18657 sed -n \
18658 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18660 esac;
18662 sed '
18663 t clear
18664 : clear
18665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18666 t end
18667 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18668 : end' >>confcache
18669 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18670 if test -w $cache_file; then
18671 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18672 cat confcache >$cache_file
18673 else
18674 echo "not updating unwritable cache $cache_file"
18677 rm -f confcache
18679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18680 # Let make expand exec_prefix.
18681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18683 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18684 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18685 # trailing colons and then remove the whole line if VPATH becomes empty
18686 # (actually we leave an empty line to preserve line numbers).
18687 if test "x$srcdir" = x.; then
18688 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18689 s/:*\$(srcdir):*/:/;
18690 s/:*\${srcdir}:*/:/;
18691 s/:*@srcdir@:*/:/;
18692 s/^\([^=]*=[ ]*\):*/\1/;
18693 s/:*$//;
18694 s/^[^=]*=[ ]*$//;
18698 DEFS=-DHAVE_CONFIG_H
18700 ac_libobjs=
18701 ac_ltlibobjs=
18702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18703 # 1. Remove the extension, and $U if already installed.
18704 ac_i=`echo "$ac_i" |
18705 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18706 # 2. Add them.
18707 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18708 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18709 done
18710 LIBOBJS=$ac_libobjs
18712 LTLIBOBJS=$ac_ltlibobjs
18715 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18716 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18717 Usually this means the macro was only invoked conditionally." >&5
18718 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18719 Usually this means the macro was only invoked conditionally." >&2;}
18720 { (exit 1); exit 1; }; }
18722 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18723 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18724 Usually this means the macro was only invoked conditionally." >&5
18725 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18726 Usually this means the macro was only invoked conditionally." >&2;}
18727 { (exit 1); exit 1; }; }
18729 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18730 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18731 Usually this means the macro was only invoked conditionally." >&5
18732 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18733 Usually this means the macro was only invoked conditionally." >&2;}
18734 { (exit 1); exit 1; }; }
18736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18737 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18738 Usually this means the macro was only invoked conditionally." >&5
18739 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18740 Usually this means the macro was only invoked conditionally." >&2;}
18741 { (exit 1); exit 1; }; }
18743 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18744 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18745 Usually this means the macro was only invoked conditionally." >&5
18746 echo "$as_me: error: conditional \"WEB\" was never defined.
18747 Usually this means the macro was only invoked conditionally." >&2;}
18748 { (exit 1); exit 1; }; }
18750 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
18751 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
18752 Usually this means the macro was only invoked conditionally." >&5
18753 echo "$as_me: error: conditional \"ED2K\" was never defined.
18754 Usually this means the macro was only invoked conditionally." >&2;}
18755 { (exit 1); exit 1; }; }
18757 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
18758 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
18759 Usually this means the macro was only invoked conditionally." >&5
18760 echo "$as_me: error: conditional \"CAS\" was never defined.
18761 Usually this means the macro was only invoked conditionally." >&2;}
18762 { (exit 1); exit 1; }; }
18764 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
18765 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
18766 Usually this means the macro was only invoked conditionally." >&5
18767 echo "$as_me: error: conditional \"WXCAS\" was never defined.
18768 Usually this means the macro was only invoked conditionally." >&2;}
18769 { (exit 1); exit 1; }; }
18771 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
18772 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
18773 Usually this means the macro was only invoked conditionally." >&5
18774 echo "$as_me: error: conditional \"ALC\" was never defined.
18775 Usually this means the macro was only invoked conditionally." >&2;}
18776 { (exit 1); exit 1; }; }
18778 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
18779 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
18780 Usually this means the macro was only invoked conditionally." >&5
18781 echo "$as_me: error: conditional \"ALCC\" was never defined.
18782 Usually this means the macro was only invoked conditionally." >&2;}
18783 { (exit 1); exit 1; }; }
18785 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
18786 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
18787 Usually this means the macro was only invoked conditionally." >&5
18788 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
18789 Usually this means the macro was only invoked conditionally." >&2;}
18790 { (exit 1); exit 1; }; }
18792 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
18793 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
18794 Usually this means the macro was only invoked conditionally." >&5
18795 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
18796 Usually this means the macro was only invoked conditionally." >&2;}
18797 { (exit 1); exit 1; }; }
18799 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
18800 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
18801 Usually this means the macro was only invoked conditionally." >&5
18802 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
18803 Usually this means the macro was only invoked conditionally." >&2;}
18804 { (exit 1); exit 1; }; }
18806 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
18807 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
18808 Usually this means the macro was only invoked conditionally." >&5
18809 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
18810 Usually this means the macro was only invoked conditionally." >&2;}
18811 { (exit 1); exit 1; }; }
18813 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
18814 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
18815 Usually this means the macro was only invoked conditionally." >&5
18816 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
18817 Usually this means the macro was only invoked conditionally." >&2;}
18818 { (exit 1); exit 1; }; }
18820 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
18821 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18822 Usually this means the macro was only invoked conditionally." >&5
18823 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18824 Usually this means the macro was only invoked conditionally." >&2;}
18825 { (exit 1); exit 1; }; }
18827 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
18828 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
18829 Usually this means the macro was only invoked conditionally." >&5
18830 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
18831 Usually this means the macro was only invoked conditionally." >&2;}
18832 { (exit 1); exit 1; }; }
18834 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
18835 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
18836 Usually this means the macro was only invoked conditionally." >&5
18837 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
18838 Usually this means the macro was only invoked conditionally." >&2;}
18839 { (exit 1); exit 1; }; }
18841 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
18842 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
18843 Usually this means the macro was only invoked conditionally." >&5
18844 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
18845 Usually this means the macro was only invoked conditionally." >&2;}
18846 { (exit 1); exit 1; }; }
18848 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
18849 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
18850 Usually this means the macro was only invoked conditionally." >&5
18851 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
18852 Usually this means the macro was only invoked conditionally." >&2;}
18853 { (exit 1); exit 1; }; }
18855 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
18856 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
18857 Usually this means the macro was only invoked conditionally." >&5
18858 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
18859 Usually this means the macro was only invoked conditionally." >&2;}
18860 { (exit 1); exit 1; }; }
18863 : ${CONFIG_STATUS=./config.status}
18864 ac_clean_files_save=$ac_clean_files
18865 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18866 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18867 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18868 cat >$CONFIG_STATUS <<_ACEOF
18869 #! $SHELL
18870 # Generated by $as_me.
18871 # Run this file to recreate the current configuration.
18872 # Compiler output produced by configure, useful for debugging
18873 # configure, is in config.log if it exists.
18875 debug=false
18876 ac_cs_recheck=false
18877 ac_cs_silent=false
18878 SHELL=\${CONFIG_SHELL-$SHELL}
18879 _ACEOF
18881 cat >>$CONFIG_STATUS <<\_ACEOF
18882 ## --------------------- ##
18883 ## M4sh Initialization. ##
18884 ## --------------------- ##
18886 # Be Bourne compatible
18887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18888 emulate sh
18889 NULLCMD=:
18890 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18891 # is contrary to our usage. Disable this feature.
18892 alias -g '${1+"$@"}'='"$@"'
18893 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18894 set -o posix
18896 DUALCASE=1; export DUALCASE # for MKS sh
18898 # Support unset when possible.
18899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18900 as_unset=unset
18901 else
18902 as_unset=false
18906 # Work around bugs in pre-3.0 UWIN ksh.
18907 $as_unset ENV MAIL MAILPATH
18908 PS1='$ '
18909 PS2='> '
18910 PS4='+ '
18912 # NLS nuisances.
18913 for as_var in \
18914 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18915 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18916 LC_TELEPHONE LC_TIME
18918 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18919 eval $as_var=C; export $as_var
18920 else
18921 $as_unset $as_var
18923 done
18925 # Required to use basename.
18926 if expr a : '\(a\)' >/dev/null 2>&1; then
18927 as_expr=expr
18928 else
18929 as_expr=false
18932 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18933 as_basename=basename
18934 else
18935 as_basename=false
18939 # Name of the executable.
18940 as_me=`$as_basename "$0" ||
18941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18942 X"$0" : 'X\(//\)$' \| \
18943 X"$0" : 'X\(/\)$' \| \
18944 . : '\(.\)' 2>/dev/null ||
18945 echo X/"$0" |
18946 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18947 /^X\/\(\/\/\)$/{ s//\1/; q; }
18948 /^X\/\(\/\).*/{ s//\1/; q; }
18949 s/.*/./; q'`
18952 # PATH needs CR, and LINENO needs CR and PATH.
18953 # Avoid depending upon Character Ranges.
18954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18957 as_cr_digits='0123456789'
18958 as_cr_alnum=$as_cr_Letters$as_cr_digits
18960 # The user is always right.
18961 if test "${PATH_SEPARATOR+set}" != set; then
18962 echo "#! /bin/sh" >conf$$.sh
18963 echo "exit 0" >>conf$$.sh
18964 chmod +x conf$$.sh
18965 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18966 PATH_SEPARATOR=';'
18967 else
18968 PATH_SEPARATOR=:
18970 rm -f conf$$.sh
18974 as_lineno_1=$LINENO
18975 as_lineno_2=$LINENO
18976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18977 test "x$as_lineno_1" != "x$as_lineno_2" &&
18978 test "x$as_lineno_3" = "x$as_lineno_2" || {
18979 # Find who we are. Look in the path if we contain no path at all
18980 # relative or not.
18981 case $0 in
18982 *[\\/]* ) as_myself=$0 ;;
18983 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18986 IFS=$as_save_IFS
18987 test -z "$as_dir" && as_dir=.
18988 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18989 done
18992 esac
18993 # We did not find ourselves, most probably we were run as `sh COMMAND'
18994 # in which case we are not to be found in the path.
18995 if test "x$as_myself" = x; then
18996 as_myself=$0
18998 if test ! -f "$as_myself"; then
18999 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19000 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19001 { (exit 1); exit 1; }; }
19003 case $CONFIG_SHELL in
19005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19008 IFS=$as_save_IFS
19009 test -z "$as_dir" && as_dir=.
19010 for as_base in sh bash ksh sh5; do
19011 case $as_dir in
19013 if ("$as_dir/$as_base" -c '
19014 as_lineno_1=$LINENO
19015 as_lineno_2=$LINENO
19016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19017 test "x$as_lineno_1" != "x$as_lineno_2" &&
19018 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19019 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19020 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19021 CONFIG_SHELL=$as_dir/$as_base
19022 export CONFIG_SHELL
19023 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19024 fi;;
19025 esac
19026 done
19027 done
19029 esac
19031 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19032 # uniformly replaced by the line number. The first 'sed' inserts a
19033 # line-number line before each line; the second 'sed' does the real
19034 # work. The second script uses 'N' to pair each line-number line
19035 # with the numbered line, and appends trailing '-' during
19036 # substitution so that $LINENO is not a special case at line end.
19037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19038 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19039 sed '=' <$as_myself |
19040 sed '
19042 s,$,-,
19043 : loop
19044 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19045 t loop
19046 s,-$,,
19047 s,^['$as_cr_digits']*\n,,
19048 ' >$as_me.lineno &&
19049 chmod +x $as_me.lineno ||
19050 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19051 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19052 { (exit 1); exit 1; }; }
19054 # Don't try to exec as it changes $[0], causing all sort of problems
19055 # (the dirname of $[0] is not the place where we might find the
19056 # original and so on. Autoconf is especially sensible to this).
19057 . ./$as_me.lineno
19058 # Exit status is that of the last command.
19059 exit
19063 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19064 *c*,-n*) ECHO_N= ECHO_C='
19065 ' ECHO_T=' ' ;;
19066 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19067 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19068 esac
19070 if expr a : '\(a\)' >/dev/null 2>&1; then
19071 as_expr=expr
19072 else
19073 as_expr=false
19076 rm -f conf$$ conf$$.exe conf$$.file
19077 echo >conf$$.file
19078 if ln -s conf$$.file conf$$ 2>/dev/null; then
19079 # We could just check for DJGPP; but this test a) works b) is more generic
19080 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19081 if test -f conf$$.exe; then
19082 # Don't use ln at all; we don't have any links
19083 as_ln_s='cp -p'
19084 else
19085 as_ln_s='ln -s'
19087 elif ln conf$$.file conf$$ 2>/dev/null; then
19088 as_ln_s=ln
19089 else
19090 as_ln_s='cp -p'
19092 rm -f conf$$ conf$$.exe conf$$.file
19094 if mkdir -p . 2>/dev/null; then
19095 as_mkdir_p=:
19096 else
19097 test -d ./-p && rmdir ./-p
19098 as_mkdir_p=false
19101 as_executable_p="test -f"
19103 # Sed expression to map a string onto a valid CPP name.
19104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19106 # Sed expression to map a string onto a valid variable name.
19107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19110 # IFS
19111 # We need space, tab and new line, in precisely that order.
19112 as_nl='
19114 IFS=" $as_nl"
19116 # CDPATH.
19117 $as_unset CDPATH
19119 exec 6>&1
19121 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19122 # report actual input values of CONFIG_FILES etc. instead of their
19123 # values after options handling. Logging --version etc. is OK.
19124 exec 5>>config.log
19126 echo
19127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19128 ## Running $as_me. ##
19129 _ASBOX
19130 } >&5
19131 cat >&5 <<_CSEOF
19133 This file was extended by aMule $as_me SVN, which was
19134 generated by GNU Autoconf 2.59. Invocation command line was
19136 CONFIG_FILES = $CONFIG_FILES
19137 CONFIG_HEADERS = $CONFIG_HEADERS
19138 CONFIG_LINKS = $CONFIG_LINKS
19139 CONFIG_COMMANDS = $CONFIG_COMMANDS
19140 $ $0 $@
19142 _CSEOF
19143 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19144 echo >&5
19145 _ACEOF
19147 # Files that config.status was made for.
19148 if test -n "$ac_config_files"; then
19149 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19152 if test -n "$ac_config_headers"; then
19153 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19156 if test -n "$ac_config_links"; then
19157 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19160 if test -n "$ac_config_commands"; then
19161 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19164 cat >>$CONFIG_STATUS <<\_ACEOF
19166 ac_cs_usage="\
19167 \`$as_me' instantiates files from templates according to the
19168 current configuration.
19170 Usage: $0 [OPTIONS] [FILE]...
19172 -h, --help print this help, then exit
19173 -V, --version print version number, then exit
19174 -q, --quiet do not print progress messages
19175 -d, --debug don't remove temporary files
19176 --recheck update $as_me by reconfiguring in the same conditions
19177 --file=FILE[:TEMPLATE]
19178 instantiate the configuration file FILE
19179 --header=FILE[:TEMPLATE]
19180 instantiate the configuration header FILE
19182 Configuration files:
19183 $config_files
19185 Configuration headers:
19186 $config_headers
19188 Configuration commands:
19189 $config_commands
19191 Report bugs to <bug-autoconf@gnu.org>."
19192 _ACEOF
19194 cat >>$CONFIG_STATUS <<_ACEOF
19195 ac_cs_version="\\
19196 aMule config.status SVN
19197 configured by $0, generated by GNU Autoconf 2.59,
19198 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19200 Copyright (C) 2003 Free Software Foundation, Inc.
19201 This config.status script is free software; the Free Software Foundation
19202 gives unlimited permission to copy, distribute and modify it."
19203 srcdir=$srcdir
19204 INSTALL="$INSTALL"
19205 _ACEOF
19207 cat >>$CONFIG_STATUS <<\_ACEOF
19208 # If no file are specified by the user, then we need to provide default
19209 # value. By we need to know if files were specified by the user.
19210 ac_need_defaults=:
19211 while test $# != 0
19213 case $1 in
19214 --*=*)
19215 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19216 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19217 ac_shift=:
19220 ac_option=$1
19221 ac_optarg=$2
19222 ac_shift=shift
19224 *) # This is not an option, so the user has probably given explicit
19225 # arguments.
19226 ac_option=$1
19227 ac_need_defaults=false;;
19228 esac
19230 case $ac_option in
19231 # Handling of the options.
19232 _ACEOF
19233 cat >>$CONFIG_STATUS <<\_ACEOF
19234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19235 ac_cs_recheck=: ;;
19236 --version | --vers* | -V )
19237 echo "$ac_cs_version"; exit 0 ;;
19238 --he | --h)
19239 # Conflict between --help and --header
19240 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19241 Try \`$0 --help' for more information." >&5
19242 echo "$as_me: error: ambiguous option: $1
19243 Try \`$0 --help' for more information." >&2;}
19244 { (exit 1); exit 1; }; };;
19245 --help | --hel | -h )
19246 echo "$ac_cs_usage"; exit 0 ;;
19247 --debug | --d* | -d )
19248 debug=: ;;
19249 --file | --fil | --fi | --f )
19250 $ac_shift
19251 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19252 ac_need_defaults=false;;
19253 --header | --heade | --head | --hea )
19254 $ac_shift
19255 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19256 ac_need_defaults=false;;
19257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19259 ac_cs_silent=: ;;
19261 # This is an error.
19262 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19263 Try \`$0 --help' for more information." >&5
19264 echo "$as_me: error: unrecognized option: $1
19265 Try \`$0 --help' for more information." >&2;}
19266 { (exit 1); exit 1; }; } ;;
19268 *) ac_config_targets="$ac_config_targets $1" ;;
19270 esac
19271 shift
19272 done
19274 ac_configure_extra_args=
19276 if $ac_cs_silent; then
19277 exec 6>/dev/null
19278 ac_configure_extra_args="$ac_configure_extra_args --silent"
19281 _ACEOF
19282 cat >>$CONFIG_STATUS <<_ACEOF
19283 if \$ac_cs_recheck; then
19284 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19285 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19288 _ACEOF
19290 cat >>$CONFIG_STATUS <<_ACEOF
19292 # INIT-COMMANDS section.
19295 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19296 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19297 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19298 # from automake.
19299 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19300 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19301 LINGUAS="${LINGUAS-%UNSET%}"
19303 level=$denoiselevel
19305 _ACEOF
19309 cat >>$CONFIG_STATUS <<\_ACEOF
19310 for ac_config_target in $ac_config_targets
19312 case "$ac_config_target" in
19313 # Handling of arguments.
19314 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19315 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19316 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19317 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19318 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19319 "src/kademlia/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/kademlia/Makefile" ;;
19320 "src/kademlia/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/kademlia/utils/Makefile" ;;
19321 "src/kademlia/kademlia/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/kademlia/kademlia/Makefile" ;;
19322 "src/kademlia/routing/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/kademlia/routing/Makefile" ;;
19323 "src/kademlia/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/kademlia/net/Makefile" ;;
19324 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19325 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19326 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19327 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19328 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19329 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19330 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19331 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19332 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19333 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19334 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19335 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19336 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19337 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19338 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19339 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19340 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19341 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19342 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19343 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19344 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19345 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19346 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19347 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19348 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19349 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19350 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19351 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19352 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19353 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19354 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19355 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19356 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19357 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19358 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19359 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19360 { (exit 1); exit 1; }; };;
19361 esac
19362 done
19364 # If the user did not use the arguments to specify the items to instantiate,
19365 # then the envvar interface is used. Set only those that are not.
19366 # We use the long form for the default assignment because of an extremely
19367 # bizarre bug on SunOS 4.1.3.
19368 if $ac_need_defaults; then
19369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19374 # Have a temporary directory for convenience. Make it in the build tree
19375 # simply because there is no reason to put it here, and in addition,
19376 # creating and moving files from /tmp can sometimes cause problems.
19377 # Create a temporary directory, and hook for its removal unless debugging.
19378 $debug ||
19380 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19381 trap '{ (exit 1); exit 1; }' 1 2 13 15
19384 # Create a (secure) tmp directory for tmp files.
19387 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19388 test -n "$tmp" && test -d "$tmp"
19389 } ||
19391 tmp=./confstat$$-$RANDOM
19392 (umask 077 && mkdir $tmp)
19393 } ||
19395 echo "$me: cannot create a temporary directory in ." >&2
19396 { (exit 1); exit 1; }
19399 _ACEOF
19401 cat >>$CONFIG_STATUS <<_ACEOF
19404 # CONFIG_FILES section.
19407 # No need to generate the scripts if there are no CONFIG_FILES.
19408 # This happens for instance when ./config.status config.h
19409 if test -n "\$CONFIG_FILES"; then
19410 # Protect against being on the right side of a sed subst in config.status.
19411 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19412 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19413 s,@SHELL@,$SHELL,;t t
19414 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19415 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19416 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19417 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19418 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19419 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19420 s,@exec_prefix@,$exec_prefix,;t t
19421 s,@prefix@,$prefix,;t t
19422 s,@program_transform_name@,$program_transform_name,;t t
19423 s,@bindir@,$bindir,;t t
19424 s,@sbindir@,$sbindir,;t t
19425 s,@libexecdir@,$libexecdir,;t t
19426 s,@datadir@,$datadir,;t t
19427 s,@sysconfdir@,$sysconfdir,;t t
19428 s,@sharedstatedir@,$sharedstatedir,;t t
19429 s,@localstatedir@,$localstatedir,;t t
19430 s,@libdir@,$libdir,;t t
19431 s,@includedir@,$includedir,;t t
19432 s,@oldincludedir@,$oldincludedir,;t t
19433 s,@infodir@,$infodir,;t t
19434 s,@mandir@,$mandir,;t t
19435 s,@build_alias@,$build_alias,;t t
19436 s,@host_alias@,$host_alias,;t t
19437 s,@target_alias@,$target_alias,;t t
19438 s,@DEFS@,$DEFS,;t t
19439 s,@ECHO_C@,$ECHO_C,;t t
19440 s,@ECHO_N@,$ECHO_N,;t t
19441 s,@ECHO_T@,$ECHO_T,;t t
19442 s,@LIBS@,$LIBS,;t t
19443 s,@build@,$build,;t t
19444 s,@build_cpu@,$build_cpu,;t t
19445 s,@build_vendor@,$build_vendor,;t t
19446 s,@build_os@,$build_os,;t t
19447 s,@host@,$host,;t t
19448 s,@host_cpu@,$host_cpu,;t t
19449 s,@host_vendor@,$host_vendor,;t t
19450 s,@host_os@,$host_os,;t t
19451 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19452 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19453 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19454 s,@CYGPATH_W@,$CYGPATH_W,;t t
19455 s,@PACKAGE@,$PACKAGE,;t t
19456 s,@VERSION@,$VERSION,;t t
19457 s,@ACLOCAL@,$ACLOCAL,;t t
19458 s,@AUTOCONF@,$AUTOCONF,;t t
19459 s,@AUTOMAKE@,$AUTOMAKE,;t t
19460 s,@AUTOHEADER@,$AUTOHEADER,;t t
19461 s,@MAKEINFO@,$MAKEINFO,;t t
19462 s,@install_sh@,$install_sh,;t t
19463 s,@STRIP@,$STRIP,;t t
19464 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19465 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19466 s,@mkdir_p@,$mkdir_p,;t t
19467 s,@AWK@,$AWK,;t t
19468 s,@SET_MAKE@,$SET_MAKE,;t t
19469 s,@am__leading_dot@,$am__leading_dot,;t t
19470 s,@AMTAR@,$AMTAR,;t t
19471 s,@am__tar@,$am__tar,;t t
19472 s,@am__untar@,$am__untar,;t t
19473 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19474 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19475 s,@MAINT@,$MAINT,;t t
19476 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19477 s,@X11LIBS@,$X11LIBS,;t t
19478 s,@CXX@,$CXX,;t t
19479 s,@CXXFLAGS@,$CXXFLAGS,;t t
19480 s,@LDFLAGS@,$LDFLAGS,;t t
19481 s,@CPPFLAGS@,$CPPFLAGS,;t t
19482 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19483 s,@EXEEXT@,$EXEEXT,;t t
19484 s,@OBJEXT@,$OBJEXT,;t t
19485 s,@DEPDIR@,$DEPDIR,;t t
19486 s,@am__include@,$am__include,;t t
19487 s,@am__quote@,$am__quote,;t t
19488 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19489 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19490 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19491 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19492 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19493 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19494 s,@CXXCPP@,$CXXCPP,;t t
19495 s,@CC@,$CC,;t t
19496 s,@CFLAGS@,$CFLAGS,;t t
19497 s,@ac_ct_CC@,$ac_ct_CC,;t t
19498 s,@CCDEPMODE@,$CCDEPMODE,;t t
19499 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19500 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19501 s,@CPP@,$CPP,;t t
19502 s,@BUILD_CC@,$BUILD_CC,;t t
19503 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19504 s,@EXEEXT@,$EXEEXT,;t t
19505 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19506 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19507 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19508 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19509 s,@EGREP@,$EGREP,;t t
19510 s,@LEX@,$LEX,;t t
19511 s,@LEXLIB@,$LEXLIB,;t t
19512 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19513 s,@RANLIB@,$RANLIB,;t t
19514 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19515 s,@YACC@,$YACC,;t t
19516 s,@AR@,$AR,;t t
19517 s,@ac_ct_AR@,$ac_ct_AR,;t t
19518 s,@LD@,$LD,;t t
19519 s,@ac_ct_LD@,$ac_ct_LD,;t t
19520 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19521 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19522 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19523 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19524 s,@CAS_DEFS@,$CAS_DEFS,;t t
19525 s,@REGEX_LIB@,$REGEX_LIB,;t t
19526 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19527 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19528 s,@LIBPNG_CXXFLAGS@,$LIBPNG_CXXFLAGS,;t t
19529 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19530 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19531 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19532 s,@GEOIP_INCLUDE@,$GEOIP_INCLUDE,;t t
19533 s,@GEOIP_LIB@,$GEOIP_LIB,;t t
19534 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19535 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19536 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19537 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19538 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19539 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19540 s,@WX_LIBS@,$WX_LIBS,;t t
19541 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19542 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19543 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19544 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19545 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19546 s,@WX_UNICODE@,$WX_UNICODE,;t t
19547 s,@WX_DEBUG@,$WX_DEBUG,;t t
19548 s,@WX_SHARED@,$WX_SHARED,;t t
19549 s,@WX_PORT@,$WX_PORT,;t t
19550 s,@RC@,$RC,;t t
19551 s,@ac_ct_RC@,$ac_ct_RC,;t t
19552 s,@RCFLAGS@,$RCFLAGS,;t t
19553 s,@CRYPTO_PP_PREFIX@,$CRYPTO_PP_PREFIX,;t t
19554 s,@CRYPTO_PP_VERSION_STRING@,$CRYPTO_PP_VERSION_STRING,;t t
19555 s,@CRYPTO_PP_VERSION_NUMBER@,$CRYPTO_PP_VERSION_NUMBER,;t t
19556 s,@CRYPTO_PP_STYLE@,$CRYPTO_PP_STYLE,;t t
19557 s,@CRYPTO_PP_LIB_NAME@,$CRYPTO_PP_LIB_NAME,;t t
19558 s,@CRYPTO_PP_INCLUDE_PREFIX@,$CRYPTO_PP_INCLUDE_PREFIX,;t t
19559 s,@CRYPTO_PP_CXXFLAGS@,$CRYPTO_PP_CXXFLAGS,;t t
19560 s,@CRYPTO_PP_LDFLAGS@,$CRYPTO_PP_LDFLAGS,;t t
19561 s,@CRYPTOLIBS@,$CRYPTOLIBS,;t t
19562 s,@BFD_FLAGS@,$BFD_FLAGS,;t t
19563 s,@BFD_LIB@,$BFD_LIB,;t t
19564 s,@HAVE_GETTEXT@,$HAVE_GETTEXT,;t t
19565 s,@HAVE_FLEX_EXTENDED@,$HAVE_FLEX_EXTENDED,;t t
19566 s,@ALLOCA@,$ALLOCA,;t t
19567 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19568 s,@MSGFMT@,$MSGFMT,;t t
19569 s,@GMSGFMT@,$GMSGFMT,;t t
19570 s,@XGETTEXT@,$XGETTEXT,;t t
19571 s,@MSGMERGE@,$MSGMERGE,;t t
19572 s,@GLIBC21@,$GLIBC21,;t t
19573 s,@LIBICONV@,$LIBICONV,;t t
19574 s,@LTLIBICONV@,$LTLIBICONV,;t t
19575 s,@INTLBISON@,$INTLBISON,;t t
19576 s,@USE_NLS@,$USE_NLS,;t t
19577 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19578 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19579 s,@CATOBJEXT@,$CATOBJEXT,;t t
19580 s,@INTLOBJS@,$INTLOBJS,;t t
19581 s,@DATADIRNAME@,$DATADIRNAME,;t t
19582 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19583 s,@GENCAT@,$GENCAT,;t t
19584 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19585 s,@INTLLIBS@,$INTLLIBS,;t t
19586 s,@LIBINTL@,$LIBINTL,;t t
19587 s,@LTLIBINTL@,$LTLIBINTL,;t t
19588 s,@POSUB@,$POSUB,;t t
19589 s,@LIBOBJS@,$LIBOBJS,;t t
19590 s,@POW_LIB@,$POW_LIB,;t t
19591 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19592 s,@WXBASE_CFLAGS@,$WXBASE_CFLAGS,;t t
19593 s,@WXBASE_CXXFLAGS@,$WXBASE_CXXFLAGS,;t t
19594 s,@docdir@,$docdir,;t t
19595 s,@SVNDATE@,$SVNDATE,;t t
19596 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19597 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19598 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19599 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19600 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19601 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19602 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19603 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19604 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19605 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19606 s,@WEB_TRUE@,$WEB_TRUE,;t t
19607 s,@WEB_FALSE@,$WEB_FALSE,;t t
19608 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19609 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19610 s,@CAS_TRUE@,$CAS_TRUE,;t t
19611 s,@CAS_FALSE@,$CAS_FALSE,;t t
19612 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19613 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19614 s,@ALC_TRUE@,$ALC_TRUE,;t t
19615 s,@ALC_FALSE@,$ALC_FALSE,;t t
19616 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19617 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19618 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19619 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19620 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19621 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19622 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19623 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19624 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19625 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19626 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19627 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19628 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19629 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19630 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19631 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19632 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19633 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19634 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19635 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19636 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19637 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19638 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19639 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19640 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19641 s,@ccache@,$ccache,;t t
19642 s,@CCACHE@,$CCACHE,;t t
19643 s,@ccache_prefix@,$ccache_prefix,;t t
19644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19645 CEOF
19647 _ACEOF
19649 cat >>$CONFIG_STATUS <<\_ACEOF
19650 # Split the substitutions into bite-sized pieces for seds with
19651 # small command number limits, like on Digital OSF/1 and HP-UX.
19652 ac_max_sed_lines=48
19653 ac_sed_frag=1 # Number of current file.
19654 ac_beg=1 # First line for current file.
19655 ac_end=$ac_max_sed_lines # Line after last line for current file.
19656 ac_more_lines=:
19657 ac_sed_cmds=
19658 while $ac_more_lines; do
19659 if test $ac_beg -gt 1; then
19660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19661 else
19662 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19664 if test ! -s $tmp/subs.frag; then
19665 ac_more_lines=false
19666 else
19667 # The purpose of the label and of the branching condition is to
19668 # speed up the sed processing (if there are no `@' at all, there
19669 # is no need to browse any of the substitutions).
19670 # These are the two extra sed commands mentioned above.
19671 (echo ':t
19672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19673 if test -z "$ac_sed_cmds"; then
19674 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19675 else
19676 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19678 ac_sed_frag=`expr $ac_sed_frag + 1`
19679 ac_beg=$ac_end
19680 ac_end=`expr $ac_end + $ac_max_sed_lines`
19682 done
19683 if test -z "$ac_sed_cmds"; then
19684 ac_sed_cmds=cat
19686 fi # test -n "$CONFIG_FILES"
19688 _ACEOF
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19690 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19692 case $ac_file in
19693 - | *:- | *:-:* ) # input from stdin
19694 cat >$tmp/stdin
19695 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19697 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19699 * ) ac_file_in=$ac_file.in ;;
19700 esac
19702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19705 X"$ac_file" : 'X\(//\)[^/]' \| \
19706 X"$ac_file" : 'X\(//\)$' \| \
19707 X"$ac_file" : 'X\(/\)' \| \
19708 . : '\(.\)' 2>/dev/null ||
19709 echo X"$ac_file" |
19710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19712 /^X\(\/\/\)$/{ s//\1/; q; }
19713 /^X\(\/\).*/{ s//\1/; q; }
19714 s/.*/./; q'`
19715 { if $as_mkdir_p; then
19716 mkdir -p "$ac_dir"
19717 else
19718 as_dir="$ac_dir"
19719 as_dirs=
19720 while test ! -d "$as_dir"; do
19721 as_dirs="$as_dir $as_dirs"
19722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19724 X"$as_dir" : 'X\(//\)[^/]' \| \
19725 X"$as_dir" : 'X\(//\)$' \| \
19726 X"$as_dir" : 'X\(/\)' \| \
19727 . : '\(.\)' 2>/dev/null ||
19728 echo X"$as_dir" |
19729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19731 /^X\(\/\/\)$/{ s//\1/; q; }
19732 /^X\(\/\).*/{ s//\1/; q; }
19733 s/.*/./; q'`
19734 done
19735 test ! -n "$as_dirs" || mkdir $as_dirs
19736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19738 { (exit 1); exit 1; }; }; }
19740 ac_builddir=.
19742 if test "$ac_dir" != .; then
19743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19744 # A "../" for each directory in $ac_dir_suffix.
19745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19746 else
19747 ac_dir_suffix= ac_top_builddir=
19750 case $srcdir in
19751 .) # No --srcdir option. We are building in place.
19752 ac_srcdir=.
19753 if test -z "$ac_top_builddir"; then
19754 ac_top_srcdir=.
19755 else
19756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19757 fi ;;
19758 [\\/]* | ?:[\\/]* ) # Absolute path.
19759 ac_srcdir=$srcdir$ac_dir_suffix;
19760 ac_top_srcdir=$srcdir ;;
19761 *) # Relative path.
19762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19764 esac
19766 # Do not use `cd foo && pwd` to compute absolute paths, because
19767 # the directories may not exist.
19768 case `pwd` in
19769 .) ac_abs_builddir="$ac_dir";;
19771 case "$ac_dir" in
19772 .) ac_abs_builddir=`pwd`;;
19773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19775 esac;;
19776 esac
19777 case $ac_abs_builddir in
19778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19780 case ${ac_top_builddir}. in
19781 .) ac_abs_top_builddir=$ac_abs_builddir;;
19782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19784 esac;;
19785 esac
19786 case $ac_abs_builddir in
19787 .) ac_abs_srcdir=$ac_srcdir;;
19789 case $ac_srcdir in
19790 .) ac_abs_srcdir=$ac_abs_builddir;;
19791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19793 esac;;
19794 esac
19795 case $ac_abs_builddir in
19796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19798 case $ac_top_srcdir in
19799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19802 esac;;
19803 esac
19806 case $INSTALL in
19807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19808 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19809 esac
19811 if test x"$ac_file" != x-; then
19812 { echo "$as_me:$LINENO: creating $ac_file" >&5
19813 echo "$as_me: creating $ac_file" >&6;}
19814 rm -f "$ac_file"
19816 # Let's still pretend it is `configure' which instantiates (i.e., don't
19817 # use $as_me), people would be surprised to read:
19818 # /* config.h. Generated by config.status. */
19819 if test x"$ac_file" = x-; then
19820 configure_input=
19821 else
19822 configure_input="$ac_file. "
19824 configure_input=$configure_input"Generated from `echo $ac_file_in |
19825 sed 's,.*/,,'` by configure."
19827 # First look for the input files in the build tree, otherwise in the
19828 # src tree.
19829 ac_file_inputs=`IFS=:
19830 for f in $ac_file_in; do
19831 case $f in
19832 -) echo $tmp/stdin ;;
19833 [\\/$]*)
19834 # Absolute (can't be DOS-style, as IFS=:)
19835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19836 echo "$as_me: error: cannot find input file: $f" >&2;}
19837 { (exit 1); exit 1; }; }
19838 echo "$f";;
19839 *) # Relative
19840 if test -f "$f"; then
19841 # Build tree
19842 echo "$f"
19843 elif test -f "$srcdir/$f"; then
19844 # Source tree
19845 echo "$srcdir/$f"
19846 else
19847 # /dev/null tree
19848 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19849 echo "$as_me: error: cannot find input file: $f" >&2;}
19850 { (exit 1); exit 1; }; }
19851 fi;;
19852 esac
19853 done` || { (exit 1); exit 1; }
19854 _ACEOF
19855 cat >>$CONFIG_STATUS <<_ACEOF
19856 sed "$ac_vpsub
19857 $extrasub
19858 _ACEOF
19859 cat >>$CONFIG_STATUS <<\_ACEOF
19861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19862 s,@configure_input@,$configure_input,;t t
19863 s,@srcdir@,$ac_srcdir,;t t
19864 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19865 s,@top_srcdir@,$ac_top_srcdir,;t t
19866 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19867 s,@builddir@,$ac_builddir,;t t
19868 s,@abs_builddir@,$ac_abs_builddir,;t t
19869 s,@top_builddir@,$ac_top_builddir,;t t
19870 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19871 s,@INSTALL@,$ac_INSTALL,;t t
19872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19873 rm -f $tmp/stdin
19874 if test x"$ac_file" != x-; then
19875 mv $tmp/out $ac_file
19876 else
19877 cat $tmp/out
19878 rm -f $tmp/out
19881 done
19882 _ACEOF
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19886 # CONFIG_HEADER section.
19889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19892 # ac_d sets the value in "#define NAME VALUE" lines.
19893 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19894 ac_dB='[ ].*$,\1#\2'
19895 ac_dC=' '
19896 ac_dD=',;t'
19897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19898 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19899 ac_uB='$,\1#\2define\3'
19900 ac_uC=' '
19901 ac_uD=',;t'
19903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19905 case $ac_file in
19906 - | *:- | *:-:* ) # input from stdin
19907 cat >$tmp/stdin
19908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19912 * ) ac_file_in=$ac_file.in ;;
19913 esac
19915 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19916 echo "$as_me: creating $ac_file" >&6;}
19918 # First look for the input files in the build tree, otherwise in the
19919 # src tree.
19920 ac_file_inputs=`IFS=:
19921 for f in $ac_file_in; do
19922 case $f in
19923 -) echo $tmp/stdin ;;
19924 [\\/$]*)
19925 # Absolute (can't be DOS-style, as IFS=:)
19926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19927 echo "$as_me: error: cannot find input file: $f" >&2;}
19928 { (exit 1); exit 1; }; }
19929 # Do quote $f, to prevent DOS paths from being IFS'd.
19930 echo "$f";;
19931 *) # Relative
19932 if test -f "$f"; then
19933 # Build tree
19934 echo "$f"
19935 elif test -f "$srcdir/$f"; then
19936 # Source tree
19937 echo "$srcdir/$f"
19938 else
19939 # /dev/null tree
19940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19941 echo "$as_me: error: cannot find input file: $f" >&2;}
19942 { (exit 1); exit 1; }; }
19943 fi;;
19944 esac
19945 done` || { (exit 1); exit 1; }
19946 # Remove the trailing spaces.
19947 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19949 _ACEOF
19951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19952 # `conftest.undefs', that substitutes the proper values into
19953 # config.h.in to produce config.h. The first handles `#define'
19954 # templates, and the second `#undef' templates.
19955 # And first: Protect against being on the right side of a sed subst in
19956 # config.status. Protect against being in an unquoted here document
19957 # in config.status.
19958 rm -f conftest.defines conftest.undefs
19959 # Using a here document instead of a string reduces the quoting nightmare.
19960 # Putting comments in sed scripts is not portable.
19962 # `end' is used to avoid that the second main sed command (meant for
19963 # 0-ary CPP macros) applies to n-ary macro definitions.
19964 # See the Autoconf documentation for `clear'.
19965 cat >confdef2sed.sed <<\_ACEOF
19966 s/[\\&,]/\\&/g
19967 s,[\\$`],\\&,g
19968 t clear
19969 : clear
19970 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19971 t end
19972 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19973 : end
19974 _ACEOF
19975 # If some macros were called several times there might be several times
19976 # the same #defines, which is useless. Nevertheless, we may not want to
19977 # sort them, since we want the *last* AC-DEFINE to be honored.
19978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19980 rm -f confdef2sed.sed
19982 # This sed command replaces #undef with comments. This is necessary, for
19983 # example, in the case of _POSIX_SOURCE, which is predefined and required
19984 # on some systems where configure will not decide to define it.
19985 cat >>conftest.undefs <<\_ACEOF
19986 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19987 _ACEOF
19989 # Break up conftest.defines because some shells have a limit on the size
19990 # of here documents, and old seds have small limits too (100 cmds).
19991 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19992 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19993 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19994 echo ' :' >>$CONFIG_STATUS
19995 rm -f conftest.tail
19996 while grep . conftest.defines >/dev/null
19998 # Write a limited-size here document to $tmp/defines.sed.
19999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20000 # Speed up: don't consider the non `#define' lines.
20001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20002 # Work around the forget-to-reset-the-flag bug.
20003 echo 't clr' >>$CONFIG_STATUS
20004 echo ': clr' >>$CONFIG_STATUS
20005 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20006 echo 'CEOF
20007 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20008 rm -f $tmp/in
20009 mv $tmp/out $tmp/in
20010 ' >>$CONFIG_STATUS
20011 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20012 rm -f conftest.defines
20013 mv conftest.tail conftest.defines
20014 done
20015 rm -f conftest.defines
20016 echo ' fi # grep' >>$CONFIG_STATUS
20017 echo >>$CONFIG_STATUS
20019 # Break up conftest.undefs because some shells have a limit on the size
20020 # of here documents, and old seds have small limits too (100 cmds).
20021 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20022 rm -f conftest.tail
20023 while grep . conftest.undefs >/dev/null
20025 # Write a limited-size here document to $tmp/undefs.sed.
20026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20027 # Speed up: don't consider the non `#undef'
20028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20029 # Work around the forget-to-reset-the-flag bug.
20030 echo 't clr' >>$CONFIG_STATUS
20031 echo ': clr' >>$CONFIG_STATUS
20032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20033 echo 'CEOF
20034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20035 rm -f $tmp/in
20036 mv $tmp/out $tmp/in
20037 ' >>$CONFIG_STATUS
20038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20039 rm -f conftest.undefs
20040 mv conftest.tail conftest.undefs
20041 done
20042 rm -f conftest.undefs
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # Let's still pretend it is `configure' which instantiates (i.e., don't
20046 # use $as_me), people would be surprised to read:
20047 # /* config.h. Generated by config.status. */
20048 if test x"$ac_file" = x-; then
20049 echo "/* Generated by configure. */" >$tmp/config.h
20050 else
20051 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20053 cat $tmp/in >>$tmp/config.h
20054 rm -f $tmp/in
20055 if test x"$ac_file" != x-; then
20056 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20057 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20058 echo "$as_me: $ac_file is unchanged" >&6;}
20059 else
20060 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062 X"$ac_file" : 'X\(//\)[^/]' \| \
20063 X"$ac_file" : 'X\(//\)$' \| \
20064 X"$ac_file" : 'X\(/\)' \| \
20065 . : '\(.\)' 2>/dev/null ||
20066 echo X"$ac_file" |
20067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20069 /^X\(\/\/\)$/{ s//\1/; q; }
20070 /^X\(\/\).*/{ s//\1/; q; }
20071 s/.*/./; q'`
20072 { if $as_mkdir_p; then
20073 mkdir -p "$ac_dir"
20074 else
20075 as_dir="$ac_dir"
20076 as_dirs=
20077 while test ! -d "$as_dir"; do
20078 as_dirs="$as_dir $as_dirs"
20079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20081 X"$as_dir" : 'X\(//\)[^/]' \| \
20082 X"$as_dir" : 'X\(//\)$' \| \
20083 X"$as_dir" : 'X\(/\)' \| \
20084 . : '\(.\)' 2>/dev/null ||
20085 echo X"$as_dir" |
20086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20088 /^X\(\/\/\)$/{ s//\1/; q; }
20089 /^X\(\/\).*/{ s//\1/; q; }
20090 s/.*/./; q'`
20091 done
20092 test ! -n "$as_dirs" || mkdir $as_dirs
20093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20095 { (exit 1); exit 1; }; }; }
20097 rm -f $ac_file
20098 mv $tmp/config.h $ac_file
20100 else
20101 cat $tmp/config.h
20102 rm -f $tmp/config.h
20104 # Compute $ac_file's index in $config_headers.
20105 _am_stamp_count=1
20106 for _am_header in $config_headers :; do
20107 case $_am_header in
20108 $ac_file | $ac_file:* )
20109 break ;;
20111 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20112 esac
20113 done
20114 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20115 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20116 X$ac_file : 'X\(//\)[^/]' \| \
20117 X$ac_file : 'X\(//\)$' \| \
20118 X$ac_file : 'X\(/\)' \| \
20119 . : '\(.\)' 2>/dev/null ||
20120 echo X$ac_file |
20121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20123 /^X\(\/\/\)$/{ s//\1/; q; }
20124 /^X\(\/\).*/{ s//\1/; q; }
20125 s/.*/./; q'`/stamp-h$_am_stamp_count
20126 done
20127 _ACEOF
20128 cat >>$CONFIG_STATUS <<\_ACEOF
20131 # CONFIG_COMMANDS section.
20133 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20134 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20135 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20136 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20137 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20138 X"$ac_dest" : 'X\(//\)[^/]' \| \
20139 X"$ac_dest" : 'X\(//\)$' \| \
20140 X"$ac_dest" : 'X\(/\)' \| \
20141 . : '\(.\)' 2>/dev/null ||
20142 echo X"$ac_dest" |
20143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20145 /^X\(\/\/\)$/{ s//\1/; q; }
20146 /^X\(\/\).*/{ s//\1/; q; }
20147 s/.*/./; q'`
20148 { if $as_mkdir_p; then
20149 mkdir -p "$ac_dir"
20150 else
20151 as_dir="$ac_dir"
20152 as_dirs=
20153 while test ! -d "$as_dir"; do
20154 as_dirs="$as_dir $as_dirs"
20155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20157 X"$as_dir" : 'X\(//\)[^/]' \| \
20158 X"$as_dir" : 'X\(//\)$' \| \
20159 X"$as_dir" : 'X\(/\)' \| \
20160 . : '\(.\)' 2>/dev/null ||
20161 echo X"$as_dir" |
20162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20164 /^X\(\/\/\)$/{ s//\1/; q; }
20165 /^X\(\/\).*/{ s//\1/; q; }
20166 s/.*/./; q'`
20167 done
20168 test ! -n "$as_dirs" || mkdir $as_dirs
20169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20171 { (exit 1); exit 1; }; }; }
20173 ac_builddir=.
20175 if test "$ac_dir" != .; then
20176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20177 # A "../" for each directory in $ac_dir_suffix.
20178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20179 else
20180 ac_dir_suffix= ac_top_builddir=
20183 case $srcdir in
20184 .) # No --srcdir option. We are building in place.
20185 ac_srcdir=.
20186 if test -z "$ac_top_builddir"; then
20187 ac_top_srcdir=.
20188 else
20189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20190 fi ;;
20191 [\\/]* | ?:[\\/]* ) # Absolute path.
20192 ac_srcdir=$srcdir$ac_dir_suffix;
20193 ac_top_srcdir=$srcdir ;;
20194 *) # Relative path.
20195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20197 esac
20199 # Do not use `cd foo && pwd` to compute absolute paths, because
20200 # the directories may not exist.
20201 case `pwd` in
20202 .) ac_abs_builddir="$ac_dir";;
20204 case "$ac_dir" in
20205 .) ac_abs_builddir=`pwd`;;
20206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20208 esac;;
20209 esac
20210 case $ac_abs_builddir in
20211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20213 case ${ac_top_builddir}. in
20214 .) ac_abs_top_builddir=$ac_abs_builddir;;
20215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20217 esac;;
20218 esac
20219 case $ac_abs_builddir in
20220 .) ac_abs_srcdir=$ac_srcdir;;
20222 case $ac_srcdir in
20223 .) ac_abs_srcdir=$ac_abs_builddir;;
20224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20226 esac;;
20227 esac
20228 case $ac_abs_builddir in
20229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20231 case $ac_top_srcdir in
20232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20235 esac;;
20236 esac
20239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20240 echo "$as_me: executing $ac_dest commands" >&6;}
20241 case $ac_dest in
20242 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20243 # Strip MF so we end up with the name of the file.
20244 mf=`echo "$mf" | sed -e 's/:.*$//'`
20245 # Check whether this is an Automake generated Makefile or not.
20246 # We used to match only the files named `Makefile.in', but
20247 # some people rename them; so instead we look at the file content.
20248 # Grep'ing the first line is not enough: some people post-process
20249 # each Makefile.in and add a new line on top of each file to say so.
20250 # So let's grep whole file.
20251 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20252 dirpart=`(dirname "$mf") 2>/dev/null ||
20253 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20254 X"$mf" : 'X\(//\)[^/]' \| \
20255 X"$mf" : 'X\(//\)$' \| \
20256 X"$mf" : 'X\(/\)' \| \
20257 . : '\(.\)' 2>/dev/null ||
20258 echo X"$mf" |
20259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20261 /^X\(\/\/\)$/{ s//\1/; q; }
20262 /^X\(\/\).*/{ s//\1/; q; }
20263 s/.*/./; q'`
20264 else
20265 continue
20267 # Extract the definition of DEPDIR, am__include, and am__quote
20268 # from the Makefile without running `make'.
20269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20270 test -z "$DEPDIR" && continue
20271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20272 test -z "am__include" && continue
20273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20274 # When using ansi2knr, U may be empty or an underscore; expand it
20275 U=`sed -n 's/^U = //p' < "$mf"`
20276 # Find all dependency output files, they are included files with
20277 # $(DEPDIR) in their names. We invoke sed twice because it is the
20278 # simplest approach to changing $(DEPDIR) to its actual value in the
20279 # expansion.
20280 for file in `sed -n "
20281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20283 # Make sure the directory exists.
20284 test -f "$dirpart/$file" && continue
20285 fdir=`(dirname "$file") 2>/dev/null ||
20286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20287 X"$file" : 'X\(//\)[^/]' \| \
20288 X"$file" : 'X\(//\)$' \| \
20289 X"$file" : 'X\(/\)' \| \
20290 . : '\(.\)' 2>/dev/null ||
20291 echo X"$file" |
20292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20294 /^X\(\/\/\)$/{ s//\1/; q; }
20295 /^X\(\/\).*/{ s//\1/; q; }
20296 s/.*/./; q'`
20297 { if $as_mkdir_p; then
20298 mkdir -p $dirpart/$fdir
20299 else
20300 as_dir=$dirpart/$fdir
20301 as_dirs=
20302 while test ! -d "$as_dir"; do
20303 as_dirs="$as_dir $as_dirs"
20304 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20306 X"$as_dir" : 'X\(//\)[^/]' \| \
20307 X"$as_dir" : 'X\(//\)$' \| \
20308 X"$as_dir" : 'X\(/\)' \| \
20309 . : '\(.\)' 2>/dev/null ||
20310 echo X"$as_dir" |
20311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20313 /^X\(\/\/\)$/{ s//\1/; q; }
20314 /^X\(\/\).*/{ s//\1/; q; }
20315 s/.*/./; q'`
20316 done
20317 test ! -n "$as_dirs" || mkdir $as_dirs
20318 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20319 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20320 { (exit 1); exit 1; }; }; }
20322 # echo "creating $dirpart/$file"
20323 echo '# dummy' > "$dirpart/$file"
20324 done
20325 done
20327 default-1 )
20328 for ac_file in $CONFIG_FILES; do
20329 # Support "outfile[:infile[:infile...]]"
20330 case "$ac_file" in
20331 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20332 esac
20333 # PO directories have a Makefile.in generated from Makefile.in.in.
20334 case "$ac_file" in */Makefile.in)
20335 # Adjust a relative srcdir.
20336 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20337 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20338 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20339 # In autoconf-2.13 it is called $ac_given_srcdir.
20340 # In autoconf-2.50 it is called $srcdir.
20341 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20342 case "$ac_given_srcdir" in
20343 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20344 /*) top_srcdir="$ac_given_srcdir" ;;
20345 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20346 esac
20347 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20348 rm -f "$ac_dir/POTFILES"
20349 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20350 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20351 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20352 # on $ac_dir but don't depend on user-specified configuration
20353 # parameters.
20354 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20355 # The LINGUAS file contains the set of available languages.
20356 if test -n "$ALL_LINGUAS"; then
20357 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20359 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20360 # Hide the ALL_LINGUAS assigment from automake.
20361 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20363 case "$ac_given_srcdir" in
20364 .) srcdirpre= ;;
20365 *) srcdirpre='$(srcdir)/' ;;
20366 esac
20367 POFILES=
20368 GMOFILES=
20369 UPDATEPOFILES=
20370 DUMMYPOFILES=
20371 for lang in $ALL_LINGUAS; do
20372 POFILES="$POFILES $srcdirpre$lang.po"
20373 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20374 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20375 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20376 done
20377 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20378 # environment variable.
20379 INST_LINGUAS=
20380 if test -n "$ALL_LINGUAS"; then
20381 for presentlang in $ALL_LINGUAS; do
20382 useit=no
20383 if test "%UNSET%" != "$LINGUAS"; then
20384 desiredlanguages="$LINGUAS"
20385 else
20386 desiredlanguages="$ALL_LINGUAS"
20388 for desiredlang in $desiredlanguages; do
20389 # Use the presentlang catalog if desiredlang is
20390 # a. equal to presentlang, or
20391 # b. a variant of presentlang (because in this case,
20392 # presentlang can be used as a fallback for messages
20393 # which are not translated in the desiredlang catalog).
20394 case "$desiredlang" in
20395 "$presentlang"*) useit=yes;;
20396 esac
20397 done
20398 if test $useit = yes; then
20399 INST_LINGUAS="$INST_LINGUAS $presentlang"
20401 done
20403 CATALOGS=
20404 if test -n "$INST_LINGUAS"; then
20405 for lang in $INST_LINGUAS; do
20406 CATALOGS="$CATALOGS $lang.gmo"
20407 done
20409 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20410 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"
20411 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20412 if test -f "$f"; then
20413 case "$f" in
20414 *.orig | *.bak | *~) ;;
20415 *) cat "$f" >> "$ac_dir/Makefile" ;;
20416 esac
20418 done
20421 esac
20422 done ;;
20423 denoiser ) if test $level -gt 0; then
20424 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
20425 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" \
20426 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
20427 for i in `find . -name 'Makefile' -print`; do
20428 if test -n "`head -n 1 $i | grep '^#'`"; then
20429 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
20431 done
20432 fi ;;
20433 esac
20434 done
20435 _ACEOF
20437 cat >>$CONFIG_STATUS <<\_ACEOF
20439 { (exit 0); exit 0; }
20440 _ACEOF
20441 chmod +x $CONFIG_STATUS
20442 ac_clean_files=$ac_clean_files_save
20445 # configure is writing to config.log, and then calls config.status.
20446 # config.status does its own redirection, appending to config.log.
20447 # Unfortunately, on DOS this fails, as config.log is still kept open
20448 # by configure, so config.status won't be able to write to it; its
20449 # output is simply discarded. So we exec the FD to /dev/null,
20450 # effectively closing config.log, so it can be properly (re)opened and
20451 # appended to by config.status. When coming back to configure, we
20452 # need to make the FD available again.
20453 if test "$no_create" != yes; then
20454 ac_cs_success=:
20455 ac_config_status_args=
20456 test "$silent" = yes &&
20457 ac_config_status_args="$ac_config_status_args --quiet"
20458 exec 5>/dev/null
20459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20460 exec 5>>config.log
20461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20462 # would make configure fail if this is the last instruction.
20463 $ac_cs_success || { (exit 1); exit 1; }
20467 echo
20468 echo
20469 echo " Configure script has finished system check."
20470 echo
20471 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20472 echo
20473 echo " aMule enabled options:"
20474 echo
20475 echo " **** aMule Core ****"
20476 echo " Prefix where aMule should be installed? ${prefix:-none}"
20477 echo " Should aMule be compiled with i18n support? ${HAVE_GETTEXT:-no}"
20478 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20479 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20480 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20481 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20482 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20483 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20484 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20485 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20486 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
20488 echo
20489 echo " **** aMule TextClient ****"
20490 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20491 echo
20492 echo " **** aMule WebServer ****"
20493 echo " Should aMule WebServer be built? ${WEB:-no}"
20494 echo
20495 echo " **** aMule ED2K Links Handler ****"
20496 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20497 echo
20498 echo " **** aMuleLinkCreator ****"
20499 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20500 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20501 echo
20502 echo " **** aMule Statistics ****"
20503 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20504 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20506 echo
20507 echo " **** General Libraries and Tools ****"
20508 echo " Should ccache support be enabled? ${ccache:-no}"
20509 echo " Libraries aMule will use to build:"
20510 wxinfo="$WX_PORT"
20511 if test $WX_DEBUG -eq 1; then
20512 wxinfo="$wxinfo,debug"
20515 if test $WX_SHARED -eq 1; then
20516 wxinfo="$wxinfo,shared"
20517 else
20518 wxinfo="$wxinfo,static"
20521 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20522 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
20523 if test x${WEB:-no} != xno; then
20524 if test $regex_found = no; then
20525 regex_found="Not detected"
20526 else
20527 if test x$REGEX_LIB = x; then
20528 regex_found=system
20529 else
20530 regex_found="standalone (in $REGEX_LIB)"
20535 echo " regex $regex_found"
20537 if test x$LIBPNG_VERSION != xnot_needed; then
20538 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20540 if test x$GDLIB_VERSION != xnot_needed; then
20541 echo " libgd ${GDLIB_VERSION:-Not detected}"
20543 echo " zlib ${ZLIB_VERSION:-Not detected}"
20544 if test x$WEB = xdisabled; then
20545 echo ""
20546 echo ""
20547 echo "WARNING! amuleweb has been disabled because configure could not find"
20548 echo "a POSIX compliant regex library."
20549 echo ""
20551 if test x"$LIBPNG_VERSION" = x""; then
20552 echo ""
20553 echo ""
20554 echo " WARNING! libpng >= 1.2.0 not found."
20555 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."
20556 echo ""