Forwardport from 2.2.3: Fix autosort happening when it shouldn't
[amule.git] / configure
blob70d6b3c2625e469b5267a476eb8433e86bfe1c7f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD MONOLITHIC_TRUE MONOLITHIC_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE WEB_TRUE WEB_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ED2K_TRUE ED2K_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_FALSE ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEBSERVER_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE QT_MOC QT_CORE_CXXFLAGS QT_CORE_LIBS QT_GUI_CXXFLAGS QT_GUI_LIBS KDE4_CONFIG KDE_HEADER_DIR KDE_APPLNK_PATH KDE_SERVICE_PATH KDE_MODULE_PATH KDE_ICON_PATH KDE_MIME_PATH SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE PLASMAMULE_TRUE PLASMAMULE_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
795 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
806 cat <<_ACEOF
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
816 Configuration:
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 System types:
866 --build=BUILD configure for building on BUILD [guessed]
867 --host=HOST cross-compile to build programs to run on HOST [BUILD]
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of aMule SVN:";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --enable-xas install xas XChat2 plugin
895 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
896 --enable-plasmamule compile aMule plasma applet and engine
897 --enable-static produce a statically linked executable
898 --enable-kde-in-home install KDE related stuff in your home dir
899 --enable-geoip compile with GeoIP IP2Country library
900 --disable-upnp do not compile UPnP code
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-profile enable code profiling
906 --enable-optimize enable code optimization
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-kde4-config=PATH kde4-config script to use
913 --with-moc=PATH Search in PATH for Qt's meta object compiler
914 --without-gnu-malloc Don't assume that we use GNU libc compatible
915 malloc/realloc when cross-compiling
916 --with-zlib=PREFIX use zlib in PREFIX
917 --with-gdlib-prefix=PREFIX
918 prefix where gdlib is installed (optional)
919 --with-gdlib-config=CONFIG
920 gdlib-config script to use (optional)
921 --with-libpng-prefix=PREFIX
922 prefix where libpng is installed (optional)
923 --with-libpng-config=CONFIG
924 libpng-config script to use (optional)
925 --with-geoip-headers=DIR
926 GeoIP include files location
927 --with-geoip-lib=DIR GeoIP library location
928 --with-geoip-static Explicitly link GeoIP statically (default=no)
929 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
930 --with-wx-config=CONFIG wx-config script to use (optional)
931 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
932 --with-wx-exec-prefix=PREFIX
933 Exec prefix where wxWidgets is installed (optional)
934 --with-toolkit Build against a specific wxWidgets toolkit (default
935 is auto)
936 --with-wxshared Force building against a shared build of wxWidgets,
937 even if --disable-shared is given (default is auto)
938 --with-wxdebug Force building against a debug build of wxWidgets,
939 even if --disable-debug is given (default is auto)
940 --with-wxversion Build against a specific version of wxWidgets
941 (default is auto)
942 --with-libupnp-prefix=PREFIX
943 UPnP library location
944 --with-crypto-prefix=PREFIX
945 prefix where crypto++ is installed
946 --with-language=<langs> Specify a comma-separated list of languages you want
947 to have installed. See po/LINGUAS for available
948 languages
949 --with-gnu-ld assume the C compiler uses GNU ld default=no
950 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
951 --without-libiconv-prefix don't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search for libintl in includedir and libdir
955 --with-denoise-level=<level>
956 Specifies denoising level (0-4):
957 0 - Do nothing
958 4 - Suppress all normal output
959 (for more information see
960 src/utils/scripts/denoiser.rules)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables:
966 CXX C++ compiler command
967 CXXFLAGS C++ compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
972 CXXCPP C++ preprocessor
973 CC C compiler command
974 CFLAGS C compiler flags
975 CPP C preprocessor
976 RC Resource Compiler
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by `configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
984 _ACEOF
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
989 ac_popdir=`pwd`
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
992 ac_builddir=.
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
998 else
999 ac_dir_suffix= ac_top_builddir=
1002 case $srcdir in
1003 .) # No --srcdir option. We are building in place.
1004 ac_srcdir=.
1005 if test -z "$ac_top_builddir"; then
1006 ac_top_srcdir=.
1007 else
1008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1009 fi ;;
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1013 *) # Relative path.
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1016 esac
1018 # Do not use `cd foo && pwd` to compute absolute paths, because
1019 # the directories may not exist.
1020 case `pwd` in
1021 .) ac_abs_builddir="$ac_dir";;
1023 case "$ac_dir" in
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1027 esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1036 esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1041 case $ac_srcdir in
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1045 esac;;
1046 esac
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1054 esac;;
1055 esac
1057 cd $ac_dir
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1060 echo
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1063 echo
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1067 echo
1068 $ac_configure --help
1069 else
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1072 cd $ac_popdir
1073 done
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1078 cat <<\_ACEOF
1079 aMule configure SVN
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1085 _ACEOF
1086 exit 0
1088 exec 5>config.log
1089 cat >&5 <<_ACEOF
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1096 $ $0 $@
1098 _ACEOF
1100 cat <<_ASUNAME
1101 ## --------- ##
1102 ## Platform. ##
1103 ## --------- ##
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1117 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1122 _ASUNAME
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1125 for as_dir in $PATH
1127 IFS=$as_save_IFS
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1130 done
1132 } >&5
1134 cat >&5 <<_ACEOF
1137 ## ----------- ##
1138 ## Core tests. ##
1139 ## ----------- ##
1141 _ACEOF
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1149 ac_configure_args=
1150 ac_configure_args0=
1151 ac_configure_args1=
1152 ac_sep=
1153 ac_must_keep_next=false
1154 for ac_pass in 1 2
1156 for ac_arg
1158 case $ac_arg in
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 continue ;;
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1165 esac
1166 case $ac_pass in
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1172 else
1173 case $ac_arg in
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1180 esac
1182 -* ) ac_must_keep_next=true ;;
1183 esac
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1187 ac_sep=" "
1189 esac
1190 done
1191 done
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1203 echo
1205 cat <<\_ASBOX
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1209 _ASBOX
1210 echo
1211 # The following way of writing the cache mishandles newlines in values,
1213 (set) 2>&1 |
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215 *ac_space=\ *)
1216 sed -n \
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 sed -n \
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224 esac;
1226 echo
1228 cat <<\_ASBOX
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1241 if test -n "$ac_subst_files"; then
1242 cat <<\_ASBOX
1243 ## ------------- ##
1244 ## Output files. ##
1245 ## ------------- ##
1246 _ASBOX
1247 echo
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1256 if test -s confdefs.h; then
1257 cat <<\_ASBOX
1258 ## ----------- ##
1259 ## confdefs.h. ##
1260 ## ----------- ##
1261 _ASBOX
1262 echo
1263 sed "/^$/d" confdefs.h | sort
1264 echo
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1269 } >&5
1270 rm -f core *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1272 exit $exit_status
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1276 done
1277 ac_signal=0
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1282 echo >confdefs.h
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1288 _ACEOF
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1293 _ACEOF
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1298 _ACEOF
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1303 _ACEOF
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1308 _ACEOF
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 else
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1325 . "$ac_site_file"
1327 done
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1335 case $cache_file in
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1338 esac
1340 else
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1343 >$cache_file
1346 # Check that the precious variables saved in the cache have kept the same
1347 # value.
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1356 set,)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,set)
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1364 ,);;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1374 fi;;
1375 esac
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1378 case $ac_new_val in
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1382 esac
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1386 esac
1388 done
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1430 ac_aux_dir=
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 break
1436 elif test -f $ac_dir/install.sh; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 break
1440 elif test -f $ac_dir/shtool; then
1441 ac_aux_dir=$ac_dir
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1443 break
1445 done
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1461 # AIX /bin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 # Account for people who put trailing slashes in PATH elements.
1480 case $as_dir/ in
1481 ./ | .// | /cC/* | \
1482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1483 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1484 /usr/ucb/* ) ;;
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1488 # by default.
1489 for ac_prog in ginstall scoinst install; do
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1500 else
1501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1502 break 3
1505 done
1506 done
1508 esac
1509 done
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL=$ac_cv_path_install
1515 else
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1536 # Just in case
1537 sleep 1
1538 echo timestamp > conftest.file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1543 # directory).
1544 if (
1545 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1547 # -L didn't work.
1548 set X `ls -t $srcdir/configure conftest.file`
1550 rm -f conftest.file
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.file
1567 then
1568 # Ok.
1570 else
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE &&
1580 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE &&
1583 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF >conftest.sed
1587 s/[\\$]/&&/g;s/;s,x,x,$//
1588 _ACEOF
1589 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1590 rm conftest.sed
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir=`cd $ac_aux_dir && pwd`
1595 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run="$MISSING --run "
1599 else
1600 am_missing_run=
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1610 # for two reasons:
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p='mkdir -p --'
1621 else
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1625 # exists.
1626 for d in ./-p ./--version;
1628 test -d $d && rmdir $d
1629 done
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p='$(mkinstalldirs)'
1633 else
1634 mkdir_p='$(install_sh) -d'
1638 for ac_prog in gawk mawk nawk awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 AWK=$ac_cv_prog_AWK
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1676 done
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 cat >conftest.make <<\_ACEOF
1685 all:
1686 @echo 'ac_maketemp="$(MAKE)"'
1687 _ACEOF
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_${ac_make}_set=yes
1692 else
1693 eval ac_cv_prog_make_${ac_make}_set=no
1695 rm -f conftest.make
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1700 SET_MAKE=
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE="MAKE=${MAKE-make}"
1707 rm -rf .tst 2>/dev/null
1708 mkdir .tst 2>/dev/null
1709 if test -d .tst; then
1710 am__leading_dot=.
1711 else
1712 am__leading_dot=_
1714 rmdir .tst 2>/dev/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath --version) >/dev/null 2>/dev/null; then
1727 CYGPATH_W='cygpath -w'
1728 else
1729 CYGPATH_W=echo
1734 # Define the identity of the package.
1735 PACKAGE='amule'
1736 VERSION='SVN'
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define VERSION "$VERSION"
1746 _ACEOF
1748 # Some tools Automake needs.
1750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}strip; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 STRIP=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1809 ac_ct_STRIP=$STRIP
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1846 STRIP=$ac_ct_STRIP
1847 else
1848 STRIP="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1855 # some platforms.
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR=${AMTAR-"${am_missing_run}tar"}
1860 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1868 ac_config_headers="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE=$enableval
1876 else
1877 USE_MAINTAINER_MODE=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE=
1885 MAINTAINER_MODE_FALSE='#'
1886 else
1887 MAINTAINER_MODE_TRUE='#'
1888 MAINTAINER_MODE_FALSE=
1891 MAINT=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4 >/dev/null 2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 ac_cv_build_alias=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1921 build=$ac_cv_build
1922 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 ac_cv_host_alias=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias=$ac_cv_build_alias
1935 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1943 host=$ac_cv_host
1944 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1951 darwin*)
1952 SYS=darwin
1953 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS="-bind_at_load"
1955 touch src/Scanner.cpp
1957 openbsd*)
1958 SYS=openbsd
1959 LIBS="$LIBS -L/usr/local/lib"
1960 MULECPPFLAGS="-D__OPENBSD__"
1962 *cygwin* | *mingw32*)
1963 SYS=win32
1964 MULECPPFLAGS="-DNOMINMAX"
1966 solaris*)
1967 SYS=solaris
1968 RESOLV_LIB="-lresolv -lnsl"
1969 LIBS="$LIBS -lrt"
1971 *netbsd*)
1972 SYS=netbsd
1973 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1974 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1975 # Still, we prepend them, instead of adding, so the user may override them.
1976 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1977 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1979 *irix*)
1980 SYS=irix
1981 MULECPPFLAGS="-D__IRIX__"
1984 SYS=unknown
1986 esac
1988 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1989 if test ${SYS:-unknown} != win32; then
1991 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1992 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1993 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1995 MULELDFLAGS="$MULELDFLAGS -pthread"
1996 echo "$as_me:$LINENO: result: yes" >&5
1997 echo "${ECHO_T}yes" >&6
1999 else
2001 MULELDFLAGS="$MULELDFLAGS -lpthread"
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2013 mule_backup_CFLAGS="$CFLAGS"
2014 mule_backup_CXXFLAGS="$CXXFLAGS"
2015 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2016 ac_ext=cc
2017 ac_cpp='$CXXCPP $CPPFLAGS'
2018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2021 if test -n "$ac_tool_prefix"; then
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_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy $ac_tool_prefix$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_CXX+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CXX"; then
2032 ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CXX=$ac_cv_prog_CXX
2051 if test -n "$CXX"; then
2052 echo "$as_me:$LINENO: result: $CXX" >&5
2053 echo "${ECHO_T}$CXX" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$CXX" && break
2060 done
2062 if test -z "$CXX"; then
2063 ac_ct_CXX=$CXX
2064 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$ac_ct_CXX"; then
2074 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CXX="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2093 if test -n "$ac_ct_CXX"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2095 echo "${ECHO_T}$ac_ct_CXX" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$ac_ct_CXX" && break
2102 done
2103 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2105 CXX=$ac_ct_CXX
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO:" \
2111 "checking for C++ compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2114 (eval $ac_compiler --version </dev/null >&5) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2119 (eval $ac_compiler -v </dev/null >&5) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2124 (eval $ac_compiler -V </dev/null >&5) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2137 main ()
2141 return 0;
2143 _ACEOF
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2148 # of exeext.
2149 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2150 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2153 (eval $ac_link_default) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; then
2157 # Find the output, starting from the most likely. This scheme is
2158 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159 # resort.
2161 # Be careful to initialize this variable, since it used to be cached.
2162 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2163 ac_cv_exeext=
2164 # b.out is created by i960 compilers.
2165 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2167 test -f "$ac_file" || continue
2168 case $ac_file in
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2171 conftest.$ac_ext )
2172 # This is the source file.
2174 [ab].out )
2175 # We found the default executable, but exeext='' is most
2176 # certainly right.
2177 break;;
2178 *.* )
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 # FIXME: I believe we export ac_cv_exeext for Libtool,
2181 # but it would be cool to find out if it's true. Does anybody
2182 # maintain Libtool? --akim.
2183 export ac_cv_exeext
2184 break;;
2186 break;;
2187 esac
2188 done
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2193 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&2;}
2197 { (exit 77); exit 77; }; }
2200 ac_exeext=$ac_cv_exeext
2201 echo "$as_me:$LINENO: result: $ac_file" >&5
2202 echo "${ECHO_T}$ac_file" >&6
2204 # Check the compiler produces executables we can run. If not, either
2205 # the compiler is broken, or we cross compile.
2206 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2207 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2208 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2209 # If not cross compiling, check that we can run a simple program.
2210 if test "$cross_compiling" != yes; then
2211 if { ac_try='./$ac_file'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C++ compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6
2244 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247 (eval $ac_link) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; then
2251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2253 # work properly (i.e., refer to `conftest.exe'), while it won't with
2254 # `rm'.
2255 for ac_file in conftest.exe conftest conftest.*; do
2256 test -f "$ac_file" || continue
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 export ac_cv_exeext
2261 break;;
2262 * ) break;;
2263 esac
2264 done
2265 else
2266 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2273 rm -f conftest$ac_cv_exeext
2274 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2275 echo "${ECHO_T}$ac_cv_exeext" >&6
2277 rm -f conftest.$ac_ext
2278 EXEEXT=$ac_cv_exeext
2279 ac_exeext=$EXEEXT
2280 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2281 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2282 if test "${ac_cv_objext+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h. */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2293 main ()
2297 return 0;
2299 _ACEOF
2300 rm -f conftest.o conftest.obj
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2310 break;;
2311 esac
2312 done
2313 else
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2317 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2326 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2327 echo "${ECHO_T}$ac_cv_objext" >&6
2328 OBJEXT=$ac_cv_objext
2329 ac_objext=$OBJEXT
2330 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2331 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2332 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 main ()
2345 #ifndef __GNUC__
2346 choke me
2347 #endif
2350 return 0;
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_cxx_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_compiler_gnu=yes
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_compiler_gnu=no
2382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2386 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2387 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2388 GXX=`test $ac_compiler_gnu = yes && echo yes`
2389 ac_test_CXXFLAGS=${CXXFLAGS+set}
2390 ac_save_CXXFLAGS=$CXXFLAGS
2391 CXXFLAGS="-g"
2392 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2393 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2394 if test "${ac_cv_prog_cxx_g+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2409 return 0;
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_cxx_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_prog_cxx_g=yes
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2439 ac_cv_prog_cxx_g=no
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2445 if test "$ac_test_CXXFLAGS" = set; then
2446 CXXFLAGS=$ac_save_CXXFLAGS
2447 elif test $ac_cv_prog_cxx_g = yes; then
2448 if test "$GXX" = yes; then
2449 CXXFLAGS="-g -O2"
2450 else
2451 CXXFLAGS="-g"
2453 else
2454 if test "$GXX" = yes; then
2455 CXXFLAGS="-O2"
2456 else
2457 CXXFLAGS=
2460 for ac_declaration in \
2461 '' \
2462 'extern "C" void std::exit (int) throw (); using std::exit;' \
2463 'extern "C" void std::exit (int); using std::exit;' \
2464 'extern "C" void exit (int) throw ();' \
2465 'extern "C" void exit (int);' \
2466 'void exit (int);'
2468 cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h. */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2474 $ac_declaration
2475 #include <stdlib.h>
2477 main ()
2479 exit (42);
2481 return 0;
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_cxx_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 continue
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h. */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2520 $ac_declaration
2522 main ()
2524 exit (42);
2526 return 0;
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>conftest.er1
2532 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -z "$ac_cxx_werror_flag"
2539 || test ! -s conftest.err'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 (eval $ac_try) 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 break
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558 done
2559 rm -f conftest*
2560 if test -n "$ac_declaration"; then
2561 echo '#ifdef __cplusplus' >>confdefs.h
2562 echo $ac_declaration >>confdefs.h
2563 echo '#endif' >>confdefs.h
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 DEPDIR="${am__leading_dot}deps"
2573 ac_config_commands="$ac_config_commands depfiles"
2576 am_make=${MAKE-make}
2577 cat > confinc << 'END'
2578 am__doit:
2579 @echo done
2580 .PHONY: am__doit
2582 # If we don't find an include directive, just comment out the code.
2583 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2584 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2585 am__include="#"
2586 am__quote=
2587 _am_result=none
2588 # First try GNU make style include.
2589 echo "include confinc" > confmf
2590 # We grep out `Entering directory' and `Leaving directory'
2591 # messages which can occur if `w' ends up in MAKEFLAGS.
2592 # In particular we don't look at `^make:' because GNU make might
2593 # be invoked under some other name (usually "gmake"), in which
2594 # case it prints its new name instead of `make'.
2595 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2596 am__include=include
2597 am__quote=
2598 _am_result=GNU
2600 # Now try BSD make style include.
2601 if test "$am__include" = "#"; then
2602 echo '.include "confinc"' > confmf
2603 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2604 am__include=.include
2605 am__quote="\""
2606 _am_result=BSD
2611 echo "$as_me:$LINENO: result: $_am_result" >&5
2612 echo "${ECHO_T}$_am_result" >&6
2613 rm -f confinc confmf
2615 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2616 if test "${enable_dependency_tracking+set}" = set; then
2617 enableval="$enable_dependency_tracking"
2620 if test "x$enable_dependency_tracking" != xno; then
2621 am_depcomp="$ac_aux_dir/depcomp"
2622 AMDEPBACKSLASH='\'
2626 if test "x$enable_dependency_tracking" != xno; then
2627 AMDEP_TRUE=
2628 AMDEP_FALSE='#'
2629 else
2630 AMDEP_TRUE='#'
2631 AMDEP_FALSE=
2637 depcc="$CXX" am_compiler_list=
2639 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2640 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2641 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2645 # We make a subdir and do the tests there. Otherwise we can end up
2646 # making bogus files that we don't know about and never remove. For
2647 # instance it was reported that on HP-UX the gcc test will end up
2648 # making a dummy file named `D' -- because `-MD' means `put the output
2649 # in D'.
2650 mkdir conftest.dir
2651 # Copy depcomp to subdir because otherwise we won't find it if we're
2652 # using a relative directory.
2653 cp "$am_depcomp" conftest.dir
2654 cd conftest.dir
2655 # We will build objects and dependencies in a subdirectory because
2656 # it helps to detect inapplicable dependency modes. For instance
2657 # both Tru64's cc and ICC support -MD to output dependencies as a
2658 # side effect of compilation, but ICC will put the dependencies in
2659 # the current directory while Tru64 will put them in the object
2660 # directory.
2661 mkdir sub
2663 am_cv_CXX_dependencies_compiler_type=none
2664 if test "$am_compiler_list" = ""; then
2665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2667 for depmode in $am_compiler_list; do
2668 # Setup a source with many dependencies, because some compilers
2669 # like to wrap large dependency lists on column 80 (with \), and
2670 # we should not choose a depcomp mode which is confused by this.
2672 # We need to recreate these files for each test, as the compiler may
2673 # overwrite some of them when testing with obscure command lines.
2674 # This happens at least with the AIX C compiler.
2675 : > sub/conftest.c
2676 for i in 1 2 3 4 5 6; do
2677 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2679 # Solaris 8's {/usr,}/bin/sh.
2680 touch sub/conftst$i.h
2681 done
2682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2684 case $depmode in
2685 nosideeffect)
2686 # after this tag, mechanisms are not by side-effect, so they'll
2687 # only be used when explicitly requested
2688 if test "x$enable_dependency_tracking" = xyes; then
2689 continue
2690 else
2691 break
2694 none) break ;;
2695 esac
2696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2697 # mode. It turns out that the SunPro C++ compiler does not properly
2698 # handle `-M -o', and we need to detect this.
2699 if depmode=$depmode \
2700 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2702 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2703 >/dev/null 2>conftest.err &&
2704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2707 # icc doesn't choke on unknown options, it will just issue warnings
2708 # or remarks (even with -Werror). So we grep stderr for any message
2709 # that says an option was ignored or not supported.
2710 # When given -MP, icc 7.0 and 7.1 complain thusly:
2711 # icc: Command line warning: ignoring option '-M'; no argument required
2712 # The diagnosis changed in icc 8.0:
2713 # icc: Command line remark: option '-MP' not supported
2714 if (grep 'ignoring option' conftest.err ||
2715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2716 am_cv_CXX_dependencies_compiler_type=$depmode
2717 break
2720 done
2722 cd ..
2723 rm -rf conftest.dir
2724 else
2725 am_cv_CXX_dependencies_compiler_type=none
2729 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2730 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2731 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2736 test "x$enable_dependency_tracking" != xno \
2737 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2738 am__fastdepCXX_TRUE=
2739 am__fastdepCXX_FALSE='#'
2740 else
2741 am__fastdepCXX_TRUE='#'
2742 am__fastdepCXX_FALSE=
2746 ac_ext=cc
2747 ac_cpp='$CXXCPP $CPPFLAGS'
2748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2751 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2752 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2753 if test -z "$CXXCPP"; then
2754 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 # Double quotes because CXXCPP needs to be expanded
2758 for CXXCPP in "$CXX -E" "/lib/cpp"
2760 ac_preproc_ok=false
2761 for ac_cxx_preproc_warn_flag in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775 #ifdef __STDC__
2776 # include <limits.h>
2777 #else
2778 # include <assert.h>
2779 #endif
2780 Syntax error
2781 _ACEOF
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_cxx_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2793 else
2794 ac_cpp_err=
2796 else
2797 ac_cpp_err=yes
2799 if test -z "$ac_cpp_err"; then
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 # Broken: fails on valid input.
2806 continue
2808 rm -f conftest.err conftest.$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <ac_nonexistent.h>
2819 _ACEOF
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_cxx_preproc_warn_flag
2830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2831 else
2832 ac_cpp_err=
2834 else
2835 ac_cpp_err=yes
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2839 continue
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Passes both tests.
2845 ac_preproc_ok=:
2846 break
2848 rm -f conftest.err conftest.$ac_ext
2850 done
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2854 break
2857 done
2858 ac_cv_prog_CXXCPP=$CXXCPP
2861 CXXCPP=$ac_cv_prog_CXXCPP
2862 else
2863 ac_cv_prog_CXXCPP=$CXXCPP
2865 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2866 echo "${ECHO_T}$CXXCPP" >&6
2867 ac_preproc_ok=false
2868 for ac_cxx_preproc_warn_flag in '' yes
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887 Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_cxx_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2900 else
2901 ac_cpp_err=
2903 else
2904 ac_cpp_err=yes
2906 if test -z "$ac_cpp_err"; then
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2913 continue
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_cxx_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2938 else
2939 ac_cpp_err=
2941 else
2942 ac_cpp_err=yes
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2946 continue
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2952 ac_preproc_ok=:
2953 break
2955 rm -f conftest.err conftest.$ac_ext
2957 done
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2962 else
2963 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3003 done
3004 done
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 echo "$as_me:$LINENO: result: $CC" >&5
3011 echo "${ECHO_T}$CC" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3018 if test -z "$ac_cv_prog_CC"; then
3019 ac_ct_CC=$CC
3020 # Extract the first word of "gcc", so it can be a program name with args.
3021 set dummy gcc; 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_ac_ct_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3049 echo "${ECHO_T}$ac_ct_CC" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3055 CC=$ac_ct_CC
3056 else
3057 CC="$ac_cv_prog_CC"
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}cc; ac_word=$2
3064 echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066 if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="${ac_tool_prefix}cc"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 echo "$as_me:$LINENO: result: $CC" >&5
3091 echo "${ECHO_T}$CC" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3098 if test -z "$ac_cv_prog_CC"; then
3099 ac_ct_CC=$CC
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_ac_ct_CC+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$ac_ct_CC"; then
3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_CC="cc"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3129 echo "${ECHO_T}$ac_ct_CC" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3135 CC=$ac_ct_CC
3136 else
3137 CC="$ac_cv_prog_CC"
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3164 ac_cv_prog_CC="cc"
3165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3171 if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
3175 if test $# != 0; then
3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 echo "$as_me:$LINENO: result: $CC" >&5
3188 echo "${ECHO_T}$CC" >&6
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3195 if test -z "$CC"; then
3196 if test -n "$ac_tool_prefix"; then
3197 for ac_prog in cl
3199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200 set dummy $ac_tool_prefix$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_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 echo "$as_me:$LINENO: result: $CC" >&5
3228 echo "${ECHO_T}$CC" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 test -n "$CC" && break
3235 done
3237 if test -z "$CC"; then
3238 ac_ct_CC=$CC
3239 for ac_prog in cl
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC="$ac_prog"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270 echo "${ECHO_T}$ac_ct_CC" >&6
3271 else
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3276 test -n "$ac_ct_CC" && break
3277 done
3279 CC=$ac_ct_CC
3285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3286 See \`config.log' for more details." >&5
3287 echo "$as_me: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&2;}
3289 { (exit 1); exit 1; }; }
3291 # Provide some information about the compiler.
3292 echo "$as_me:$LINENO:" \
3293 "checking for C compiler version" >&5
3294 ac_compiler=`set X $ac_compile; echo $2`
3295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3296 (eval $ac_compiler --version </dev/null >&5) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }
3300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3301 (eval $ac_compiler -v </dev/null >&5) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }
3305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3306 (eval $ac_compiler -V </dev/null >&5) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
3311 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3312 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3324 main ()
3326 #ifndef __GNUC__
3327 choke me
3328 #endif
3331 return 0;
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag"
3344 || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_compiler_gnu=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_compiler_gnu=no
3363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3369 GCC=`test $ac_compiler_gnu = yes && echo yes`
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 CFLAGS="-g"
3373 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3386 main ()
3390 return 0;
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_cc_g=yes
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 ac_cv_prog_cc_g=no
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3425 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3430 CFLAGS="-g -O2"
3431 else
3432 CFLAGS="-g"
3434 else
3435 if test "$GCC" = yes; then
3436 CFLAGS="-O2"
3437 else
3438 CFLAGS=
3441 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3442 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3443 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 ac_cv_prog_cc_stdc=no
3447 ac_save_CC=$CC
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <stdarg.h>
3455 #include <stdio.h>
3456 #include <sys/types.h>
3457 #include <sys/stat.h>
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3465 return p[i];
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std1 is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std1. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486 int test (int i, double x);
3487 struct s1 {int (*f) (int a);};
3488 struct s2 {int (*f) (double a);};
3489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3490 int argc;
3491 char **argv;
3493 main ()
3495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3497 return 0;
3499 _ACEOF
3500 # Don't try gcc -ansi; that turns off useful extensions and
3501 # breaks some systems' header files.
3502 # AIX -qlanglvl=ansi
3503 # Ultrix and OSF/1 -std1
3504 # HP-UX 10.20 and later -Ae
3505 # HP-UX older versions -Aa -D_HPUX_SOURCE
3506 # SVR4 -Xc -D__EXTENSIONS__
3507 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3509 CC="$ac_save_CC $ac_arg"
3510 rm -f conftest.$ac_objext
3511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -z "$ac_c_werror_flag"
3520 || test ! -s conftest.err'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; } &&
3526 { ac_try='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_prog_cc_stdc=$ac_arg
3533 break
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f conftest.err conftest.$ac_objext
3540 done
3541 rm -f conftest.$ac_ext conftest.$ac_objext
3542 CC=$ac_save_CC
3546 case "x$ac_cv_prog_cc_stdc" in
3547 x|xno)
3548 echo "$as_me:$LINENO: result: none needed" >&5
3549 echo "${ECHO_T}none needed" >&6 ;;
3551 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3552 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3553 CC="$CC $ac_cv_prog_cc_stdc" ;;
3554 esac
3556 # Some people use a C++ compiler to compile C. Since we use `exit',
3557 # in C++ we need to declare it. In case someone uses the same compiler
3558 # for both compiling C and C++ we need to have the C++ compiler decide
3559 # the declaration of exit, since it's the most demanding environment.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #ifndef __cplusplus
3562 choke me
3563 #endif
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 for ac_declaration in \
3588 '' \
3589 'extern "C" void std::exit (int) throw (); using std::exit;' \
3590 'extern "C" void std::exit (int); using std::exit;' \
3591 'extern "C" void exit (int) throw ();' \
3592 'extern "C" void exit (int);' \
3593 'void exit (int);'
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 $ac_declaration
3602 #include <stdlib.h>
3604 main ()
3606 exit (42);
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -z "$ac_c_werror_flag"
3621 || test ! -s conftest.err'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 continue
3640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 $ac_declaration
3649 main ()
3651 exit (42);
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 break
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 done
3686 rm -f conftest*
3687 if test -n "$ac_declaration"; then
3688 echo '#ifdef __cplusplus' >>confdefs.h
3689 echo $ac_declaration >>confdefs.h
3690 echo '#endif' >>confdefs.h
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 depcc="$CC" am_compiler_list=
3707 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3708 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3709 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3713 # We make a subdir and do the tests there. Otherwise we can end up
3714 # making bogus files that we don't know about and never remove. For
3715 # instance it was reported that on HP-UX the gcc test will end up
3716 # making a dummy file named `D' -- because `-MD' means `put the output
3717 # in D'.
3718 mkdir conftest.dir
3719 # Copy depcomp to subdir because otherwise we won't find it if we're
3720 # using a relative directory.
3721 cp "$am_depcomp" conftest.dir
3722 cd conftest.dir
3723 # We will build objects and dependencies in a subdirectory because
3724 # it helps to detect inapplicable dependency modes. For instance
3725 # both Tru64's cc and ICC support -MD to output dependencies as a
3726 # side effect of compilation, but ICC will put the dependencies in
3727 # the current directory while Tru64 will put them in the object
3728 # directory.
3729 mkdir sub
3731 am_cv_CC_dependencies_compiler_type=none
3732 if test "$am_compiler_list" = ""; then
3733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3735 for depmode in $am_compiler_list; do
3736 # Setup a source with many dependencies, because some compilers
3737 # like to wrap large dependency lists on column 80 (with \), and
3738 # we should not choose a depcomp mode which is confused by this.
3740 # We need to recreate these files for each test, as the compiler may
3741 # overwrite some of them when testing with obscure command lines.
3742 # This happens at least with the AIX C compiler.
3743 : > sub/conftest.c
3744 for i in 1 2 3 4 5 6; do
3745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3747 # Solaris 8's {/usr,}/bin/sh.
3748 touch sub/conftst$i.h
3749 done
3750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752 case $depmode in
3753 nosideeffect)
3754 # after this tag, mechanisms are not by side-effect, so they'll
3755 # only be used when explicitly requested
3756 if test "x$enable_dependency_tracking" = xyes; then
3757 continue
3758 else
3759 break
3762 none) break ;;
3763 esac
3764 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3765 # mode. It turns out that the SunPro C++ compiler does not properly
3766 # handle `-M -o', and we need to detect this.
3767 if depmode=$depmode \
3768 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3770 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3771 >/dev/null 2>conftest.err &&
3772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3773 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3775 # icc doesn't choke on unknown options, it will just issue warnings
3776 # or remarks (even with -Werror). So we grep stderr for any message
3777 # that says an option was ignored or not supported.
3778 # When given -MP, icc 7.0 and 7.1 complain thusly:
3779 # icc: Command line warning: ignoring option '-M'; no argument required
3780 # The diagnosis changed in icc 8.0:
3781 # icc: Command line remark: option '-MP' not supported
3782 if (grep 'ignoring option' conftest.err ||
3783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784 am_cv_CC_dependencies_compiler_type=$depmode
3785 break
3788 done
3790 cd ..
3791 rm -rf conftest.dir
3792 else
3793 am_cv_CC_dependencies_compiler_type=none
3797 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3798 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3799 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3804 test "x$enable_dependency_tracking" != xno \
3805 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3806 am__fastdepCC_TRUE=
3807 am__fastdepCC_FALSE='#'
3808 else
3809 am__fastdepCC_TRUE='#'
3810 am__fastdepCC_FALSE=
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3821 # On Suns, sometimes $CPP names a directory.
3822 if test -n "$CPP" && test -d "$CPP"; then
3823 CPP=
3825 if test -z "$CPP"; then
3826 if test "${ac_cv_prog_CPP+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 # Double quotes because CPP needs to be expanded
3830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3832 ac_preproc_ok=false
3833 for ac_c_preproc_warn_flag in '' yes
3835 # Use a header file that comes with gcc, so configuring glibc
3836 # with a fresh cross-compiler works.
3837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3838 # <limits.h> exists even on freestanding compilers.
3839 # On the NeXT, cc -E runs the code through the compiler's parser,
3840 # not just through cpp. "Syntax error" is here to catch this case.
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #ifdef __STDC__
3848 # include <limits.h>
3849 #else
3850 # include <assert.h>
3851 #endif
3852 Syntax error
3853 _ACEOF
3854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } >/dev/null; then
3862 if test -s conftest.err; then
3863 ac_cpp_err=$ac_c_preproc_warn_flag
3864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865 else
3866 ac_cpp_err=
3868 else
3869 ac_cpp_err=yes
3871 if test -z "$ac_cpp_err"; then
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 # Broken: fails on valid input.
3878 continue
3880 rm -f conftest.err conftest.$ac_ext
3882 # OK, works on sane cases. Now check whether non-existent headers
3883 # can be detected and how.
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <ac_nonexistent.h>
3891 _ACEOF
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null; then
3900 if test -s conftest.err; then
3901 ac_cpp_err=$ac_c_preproc_warn_flag
3902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3903 else
3904 ac_cpp_err=
3906 else
3907 ac_cpp_err=yes
3909 if test -z "$ac_cpp_err"; then
3910 # Broken: success on invalid input.
3911 continue
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 # Passes both tests.
3917 ac_preproc_ok=:
3918 break
3920 rm -f conftest.err conftest.$ac_ext
3922 done
3923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3924 rm -f conftest.err conftest.$ac_ext
3925 if $ac_preproc_ok; then
3926 break
3929 done
3930 ac_cv_prog_CPP=$CPP
3933 CPP=$ac_cv_prog_CPP
3934 else
3935 ac_cv_prog_CPP=$CPP
3937 echo "$as_me:$LINENO: result: $CPP" >&5
3938 echo "${ECHO_T}$CPP" >&6
3939 ac_preproc_ok=false
3940 for ac_c_preproc_warn_flag in '' yes
3942 # Use a header file that comes with gcc, so configuring glibc
3943 # with a fresh cross-compiler works.
3944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3945 # <limits.h> exists even on freestanding compilers.
3946 # On the NeXT, cc -E runs the code through the compiler's parser,
3947 # not just through cpp. "Syntax error" is here to catch this case.
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959 Syntax error
3960 _ACEOF
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972 else
3973 ac_cpp_err=
3975 else
3976 ac_cpp_err=yes
3978 if test -z "$ac_cpp_err"; then
3980 else
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Broken: fails on valid input.
3985 continue
3987 rm -f conftest.err conftest.$ac_ext
3989 # OK, works on sane cases. Now check whether non-existent headers
3990 # can be detected and how.
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null; then
4007 if test -s conftest.err; then
4008 ac_cpp_err=$ac_c_preproc_warn_flag
4009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4010 else
4011 ac_cpp_err=
4013 else
4014 ac_cpp_err=yes
4016 if test -z "$ac_cpp_err"; then
4017 # Broken: success on invalid input.
4018 continue
4019 else
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 # Passes both tests.
4024 ac_preproc_ok=:
4025 break
4027 rm -f conftest.err conftest.$ac_ext
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4034 else
4035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details." >&5
4037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&2;}
4039 { (exit 1); exit 1; }; }
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 if test "$cross_compiling" = yes; then
4049 ac_build_prefix=
4050 test -n "$build_alias" && ac_build_prefix=$build_alias-
4053 # Even if we're cross-compiling, we want a compiler here
4054 # that is not a cross-compiler.
4055 saved_cross=$cross_compiling
4056 cross_compiling=no
4058 ac_ext=c
4059 ac_cpp='$CPP $BUILD_CPPFLAGS'
4060 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 if test -n "$ac_build_prefix"; then
4064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4065 set dummy ${ac_build_prefix}gcc; ac_word=$2
4066 echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if test -n "$BUILD_CC"; then
4072 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 break 2
4085 done
4086 done
4090 BUILD_CC=$ac_cv_prog_BUILD_CC
4091 if test -n "$BUILD_CC"; then
4092 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4093 echo "${ECHO_T}$BUILD_CC" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4100 if test -z "$ac_cv_prog_BUILD_CC"; then
4101 ac_ct_BUILD_CC=$BUILD_CC
4102 # Extract the first word of "gcc", so it can be a program name with args.
4103 set dummy gcc; ac_word=$2
4104 echo "$as_me:$LINENO: checking for $ac_word" >&5
4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4106 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 if test -n "$ac_ct_BUILD_CC"; then
4110 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4128 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4129 if test -n "$ac_ct_BUILD_CC"; then
4130 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4131 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4137 BUILD_CC=$ac_ct_BUILD_CC
4138 else
4139 BUILD_CC="$ac_cv_prog_BUILD_CC"
4142 if test -z "$BUILD_CC"; then
4143 if test -n "$ac_build_prefix"; then
4144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4145 set dummy ${ac_build_prefix}cc; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$BUILD_CC"; then
4152 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4170 BUILD_CC=$ac_cv_prog_BUILD_CC
4171 if test -n "$BUILD_CC"; then
4172 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4173 echo "${ECHO_T}$BUILD_CC" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4180 if test -z "$ac_cv_prog_BUILD_CC"; then
4181 ac_ct_BUILD_CC=$BUILD_CC
4182 # Extract the first word of "cc", so it can be a program name with args.
4183 set dummy cc; ac_word=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 if test -n "$ac_ct_BUILD_CC"; then
4190 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_BUILD_CC="cc"
4200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4203 done
4204 done
4208 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4209 if test -n "$ac_ct_BUILD_CC"; then
4210 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4211 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4212 else
4213 echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4217 BUILD_CC=$ac_ct_BUILD_CC
4218 else
4219 BUILD_CC="$ac_cv_prog_BUILD_CC"
4223 if test -z "$BUILD_CC"; then
4224 # Extract the first word of "cc", so it can be a program name with args.
4225 set dummy cc; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 if test -n "$BUILD_CC"; then
4232 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4233 else
4234 ac_prog_rejected=no
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4243 ac_prog_rejected=yes
4244 continue
4246 ac_cv_prog_BUILD_CC="cc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4253 if test $ac_prog_rejected = yes; then
4254 # We found a bogon in the path, so make sure we never use it.
4255 set dummy $ac_cv_prog_BUILD_CC
4256 shift
4257 if test $# != 0; then
4258 # We chose a different compiler from the bogus one.
4259 # However, it has the same basename, so the bogon will be chosen
4260 # first if we set BUILD_CC to just the basename; use the full file name.
4261 shift
4262 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4267 BUILD_CC=$ac_cv_prog_BUILD_CC
4268 if test -n "$BUILD_CC"; then
4269 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270 echo "${ECHO_T}$BUILD_CC" >&6
4271 else
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4277 if test -z "$BUILD_CC"; then
4278 if test -n "$ac_build_prefix"; then
4279 for ac_prog in cl
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 if test -n "$BUILD_CC"; then
4289 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4307 BUILD_CC=$ac_cv_prog_BUILD_CC
4308 if test -n "$BUILD_CC"; then
4309 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4310 echo "${ECHO_T}$BUILD_CC" >&6
4311 else
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4316 test -n "$BUILD_CC" && break
4317 done
4319 if test -z "$BUILD_CC"; then
4320 ac_ct_BUILD_CC=$BUILD_CC
4321 for ac_prog in cl
4323 # Extract the first word of "$ac_prog", so it can be a program name with args.
4324 set dummy $ac_prog; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 if test -n "$ac_ct_BUILD_CC"; then
4331 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4344 done
4345 done
4349 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4350 if test -n "$ac_ct_BUILD_CC"; then
4351 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4352 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4353 else
4354 echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4358 test -n "$ac_ct_BUILD_CC" && break
4359 done
4361 BUILD_CC=$ac_ct_BUILD_CC
4367 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4368 See \`config.log' for more details." >&5
4369 echo "$as_me: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&2;}
4371 { (exit 1); exit 1; }; }
4373 # Provide some information about the compiler.
4374 echo "$as_me:$LINENO:" \
4375 "checking for C compiler version" >&5
4376 ac_compiler=`set X $ac_compile; echo $2`
4377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4378 (eval $ac_compiler --version </dev/null >&5) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }
4382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4383 (eval $ac_compiler -v </dev/null >&5) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }
4387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4388 (eval $ac_compiler -V </dev/null >&5) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4401 main ()
4405 return 0;
4407 _ACEOF
4408 ac_clean_files_save=$ac_clean_files
4409 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4410 # Try to create an executable without -o first, disregard a.out.
4411 # It will help us diagnose broken compilers, and finding out an intuition
4412 # of exeext.
4413 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4414 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4415 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4416 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4417 (eval $ac_link_default) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; then
4421 # Find the output, starting from the most likely. This scheme is
4422 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4423 # resort.
4425 # Be careful to initialize this variable, since it used to be cached.
4426 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4427 ac_cv_build_exeext=
4428 # b.out is created by i960 compilers.
4429 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4431 test -f "$ac_file" || continue
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4435 conftest.$ac_ext )
4436 # This is the source file.
4438 [ab].out )
4439 # We found the default executable, but exeext='' is most
4440 # certainly right.
4441 break;;
4442 *.* )
4443 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 # FIXME: I believe we export ac_cv_exeext for Libtool,
4445 # but it would be cool to find out if it's true. Does anybody
4446 # maintain Libtool? --akim.
4447 export ac_cv_build_exeext
4448 break;;
4450 break;;
4451 esac
4452 done
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4458 See \`config.log' for more details." >&5
4459 echo "$as_me: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&2;}
4461 { (exit 77); exit 77; }; }
4464 ac_build_exeext=$ac_cv_build_exeext
4465 echo "$as_me:$LINENO: result: $ac_file" >&5
4466 echo "${ECHO_T}$ac_file" >&6
4468 # Check the compiler produces executables we can run. If not, either
4469 # the compiler is broken, or we cross compile.
4470 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4473 # If not cross compiling, check that we can run a simple program.
4474 if test "$cross_compiling" != yes; then
4475 if { ac_try='./$ac_file'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 cross_compiling=no
4482 else
4483 if test "$cross_compiling" = maybe; then
4484 cross_compiling=yes
4485 else
4486 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&5
4489 echo "$as_me: error: cannot run C compiled programs.
4490 If you meant to cross compile, use \`--host'.
4491 See \`config.log' for more details." >&2;}
4492 { (exit 1); exit 1; }; }
4496 echo "$as_me:$LINENO: result: yes" >&5
4497 echo "${ECHO_T}yes" >&6
4499 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4500 ac_clean_files=$ac_clean_files_save
4501 # Check the compiler produces executables we can run. If not, either
4502 # the compiler is broken, or we cross compile.
4503 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4505 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4506 echo "${ECHO_T}$cross_compiling" >&6
4508 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4509 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511 (eval $ac_link) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; then
4515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4517 # work properly (i.e., refer to `conftest.exe'), while it won't with
4518 # `rm'.
4519 for ac_file in conftest.exe conftest conftest.*; do
4520 test -f "$ac_file" || continue
4521 case $ac_file in
4522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4523 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 export ac_cv_build_exeext
4525 break;;
4526 * ) break;;
4527 esac
4528 done
4529 else
4530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." >&5
4532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&2;}
4534 { (exit 1); exit 1; }; }
4537 rm -f conftest$ac_cv_build_exeext
4538 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4539 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4541 rm -f conftest.$ac_ext
4542 BUILD_EXEEXT=$ac_cv_build_exeext
4543 ac_build_exeext=$BUILD_EXEEXT
4546 # Restore configuration environment
4547 cross_compiling=$saved_cross
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 else
4556 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4559 CFLAGS="$mule_backup_CFLAGS"
4560 CXXFLAGS="$mule_backup_CXXFLAGS"
4561 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4562 for ac_prog in gawk mawk nawk awk
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_AWK+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$AWK"; then
4572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_AWK="$ac_prog"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4590 AWK=$ac_cv_prog_AWK
4591 if test -n "$AWK"; then
4592 echo "$as_me:$LINENO: result: $AWK" >&5
4593 echo "${ECHO_T}$AWK" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4599 test -n "$AWK" && break
4600 done
4602 echo "$as_me:$LINENO: checking for egrep" >&5
4603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4604 if test "${ac_cv_prog_egrep+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4608 then ac_cv_prog_egrep='grep -E'
4609 else ac_cv_prog_egrep='egrep'
4612 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4613 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4614 EGREP=$ac_cv_prog_egrep
4617 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4618 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4619 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4620 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 cat >conftest.make <<\_ACEOF
4624 all:
4625 @echo 'ac_maketemp="$(MAKE)"'
4626 _ACEOF
4627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4628 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4629 if test -n "$ac_maketemp"; then
4630 eval ac_cv_prog_make_${ac_make}_set=yes
4631 else
4632 eval ac_cv_prog_make_${ac_make}_set=no
4634 rm -f conftest.make
4636 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4637 echo "$as_me:$LINENO: result: yes" >&5
4638 echo "${ECHO_T}yes" >&6
4639 SET_MAKE=
4640 else
4641 echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4643 SET_MAKE="MAKE=${MAKE-make}"
4647 for ac_prog in flex lex
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_LEX+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 if test -n "$LEX"; then
4657 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_LEX="$ac_prog"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4675 LEX=$ac_cv_prog_LEX
4676 if test -n "$LEX"; then
4677 echo "$as_me:$LINENO: result: $LEX" >&5
4678 echo "${ECHO_T}$LEX" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4684 test -n "$LEX" && break
4685 done
4686 test -n "$LEX" || LEX=":"
4688 if test -z "$LEXLIB"
4689 then
4690 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4691 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4692 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 ac_check_lib_save_LIBS=$LIBS
4696 LIBS="-lfl $LIBS"
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 #ifdef __cplusplus
4706 extern "C"
4707 #endif
4708 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4710 char yywrap ();
4712 main ()
4714 yywrap ();
4716 return 0;
4718 _ACEOF
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_lib_fl_yywrap=yes
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_lib_fl_yywrap=no
4748 rm -f conftest.err conftest.$ac_objext \
4749 conftest$ac_exeext conftest.$ac_ext
4750 LIBS=$ac_check_lib_save_LIBS
4752 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4753 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4754 if test $ac_cv_lib_fl_yywrap = yes; then
4755 LEXLIB="-lfl"
4756 else
4757 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4758 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4759 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 ac_check_lib_save_LIBS=$LIBS
4763 LIBS="-ll $LIBS"
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 #ifdef __cplusplus
4773 extern "C"
4774 #endif
4775 /* We use char because int might match the return type of a gcc2
4776 builtin and then its argument prototype would still apply. */
4777 char yywrap ();
4779 main ()
4781 yywrap ();
4783 return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest$ac_exeext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_lib_l_yywrap=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_lib_l_yywrap=no
4815 rm -f conftest.err conftest.$ac_objext \
4816 conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4819 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4820 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4821 if test $ac_cv_lib_l_yywrap = yes; then
4822 LEXLIB="-ll"
4829 if test "x$LEX" != "x:"; then
4830 echo "$as_me:$LINENO: checking lex output file root" >&5
4831 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4832 if test "${ac_cv_prog_lex_root+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 # The minimal lex program is just a single line: %%. But some broken lexes
4836 # (Solaris, I think it was) want two %% lines, so accommodate them.
4837 cat >conftest.l <<_ACEOF
4840 _ACEOF
4841 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4842 (eval $LEX conftest.l) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }
4846 if test -f lex.yy.c; then
4847 ac_cv_prog_lex_root=lex.yy
4848 elif test -f lexyy.c; then
4849 ac_cv_prog_lex_root=lexyy
4850 else
4851 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4852 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4853 { (exit 1); exit 1; }; }
4856 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4857 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4858 rm -f conftest.l
4859 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4861 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4862 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4863 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 # POSIX says lex can declare yytext either as a pointer or an array; the
4867 # default is implementation-dependent. Figure out which it is, since
4868 # not all implementations provide the %pointer and %array declarations.
4869 ac_cv_prog_lex_yytext_pointer=no
4870 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4871 ac_save_LIBS=$LIBS
4872 LIBS="$LIBS $LEXLIB"
4873 cat >conftest.$ac_ext <<_ACEOF
4874 `cat $LEX_OUTPUT_ROOT.c`
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_cv_prog_lex_yytext_pointer=yes
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4904 rm -f conftest.err conftest.$ac_objext \
4905 conftest$ac_exeext conftest.$ac_ext
4906 LIBS=$ac_save_LIBS
4907 rm -f "${LEX_OUTPUT_ROOT}.c"
4910 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4911 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4914 cat >>confdefs.h <<\_ACEOF
4915 #define YYTEXT_POINTER 1
4916 _ACEOF
4921 # Find a good install program. We prefer a C program (faster),
4922 # so one script is as good as another. But avoid the broken or
4923 # incompatible versions:
4924 # SysV /etc/install, /usr/sbin/install
4925 # SunOS /usr/etc/install
4926 # IRIX /sbin/install
4927 # AIX /bin/install
4928 # AmigaOS /C/install, which installs bootblocks on floppy discs
4929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4932 # OS/2's system install, which has a completely different semantic
4933 # ./install, which can be erroneously created by make from ./install.sh.
4934 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4936 if test -z "$INSTALL"; then
4937 if test "${ac_cv_path_install+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 # Account for people who put trailing slashes in PATH elements.
4946 case $as_dir/ in
4947 ./ | .// | /cC/* | \
4948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4950 /usr/ucb/* ) ;;
4952 # OSF1 and SCO ODT 3.0 have their own names for install.
4953 # Don't use installbsd from OSF since it installs stuff as root
4954 # by default.
4955 for ac_prog in ginstall scoinst install; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4958 if test $ac_prog = install &&
4959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4960 # AIX install. It has an incompatible calling convention.
4962 elif test $ac_prog = install &&
4963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4964 # program-specific install script used by HP pwplus--don't use.
4966 else
4967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4968 break 3
4971 done
4972 done
4974 esac
4975 done
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL=$ac_cv_path_install
4981 else
4982 # As a last resort, use the slow shell script. We don't cache a
4983 # path for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the path is relative.
4986 INSTALL=$ac_install_sh
4989 echo "$as_me:$LINENO: result: $INSTALL" >&5
4990 echo "${ECHO_T}$INSTALL" >&6
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_prog_RANLIB+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if test -n "$RANLIB"; then
5009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5027 RANLIB=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6
5031 else
5032 echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5037 if test -z "$ac_cv_prog_RANLIB"; then
5038 ac_ct_RANLIB=$RANLIB
5039 # Extract the first word of "ranlib", so it can be a program name with args.
5040 set dummy ranlib; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 if test -n "$ac_ct_RANLIB"; then
5047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_RANLIB="ranlib"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5063 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5067 if test -n "$ac_ct_RANLIB"; then
5068 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5069 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5075 RANLIB=$ac_ct_RANLIB
5076 else
5077 RANLIB="$ac_cv_prog_RANLIB"
5080 for ac_prog in 'bison -y' byacc
5082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_YACC+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 if test -n "$YACC"; then
5090 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_YACC="$ac_prog"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5108 YACC=$ac_cv_prog_YACC
5109 if test -n "$YACC"; then
5110 echo "$as_me:$LINENO: result: $YACC" >&5
5111 echo "${ECHO_T}$YACC" >&6
5112 else
5113 echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5117 test -n "$YACC" && break
5118 done
5119 test -n "$YACC" || YACC="yacc"
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5125 echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5127 if test "${ac_cv_prog_RANLIB+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 if test -n "$RANLIB"; then
5131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5149 RANLIB=$ac_cv_prog_RANLIB
5150 if test -n "$RANLIB"; then
5151 echo "$as_me:$LINENO: result: $RANLIB" >&5
5152 echo "${ECHO_T}$RANLIB" >&6
5153 else
5154 echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6
5159 if test -z "$ac_cv_prog_RANLIB"; then
5160 ac_ct_RANLIB=$RANLIB
5161 # Extract the first word of "ranlib", so it can be a program name with args.
5162 set dummy ranlib; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 if test -n "$ac_ct_RANLIB"; then
5169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_ac_ct_RANLIB="ranlib"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5187 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5188 if test -n "$ac_ct_RANLIB"; then
5189 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5190 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5191 else
5192 echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5196 RANLIB=$ac_ct_RANLIB
5197 else
5198 RANLIB="$ac_cv_prog_RANLIB"
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}strip; ac_word=$2
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_prog_STRIP+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 if test -n "$STRIP"; then
5210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5223 done
5224 done
5228 STRIP=$ac_cv_prog_STRIP
5229 if test -n "$STRIP"; then
5230 echo "$as_me:$LINENO: result: $STRIP" >&5
5231 echo "${ECHO_T}$STRIP" >&6
5232 else
5233 echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6
5238 if test -z "$ac_cv_prog_STRIP"; then
5239 ac_ct_STRIP=$STRIP
5240 # Extract the first word of "strip", so it can be a program name with args.
5241 set dummy strip; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 if test -n "$ac_ct_STRIP"; then
5248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_STRIP="strip"
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5267 if test -n "$ac_ct_STRIP"; then
5268 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5269 echo "${ECHO_T}$ac_ct_STRIP" >&6
5270 else
5271 echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5275 STRIP=$ac_ct_STRIP
5276 else
5277 STRIP="$ac_cv_prog_STRIP"
5280 if test -n "$ac_tool_prefix"; then
5281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5282 set dummy ${ac_tool_prefix}ar; ac_word=$2
5283 echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285 if test "${ac_cv_prog_AR+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 if test -n "$AR"; then
5289 ac_cv_prog_AR="$AR" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 ac_cv_prog_AR="${ac_tool_prefix}ar"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5307 AR=$ac_cv_prog_AR
5308 if test -n "$AR"; then
5309 echo "$as_me:$LINENO: result: $AR" >&5
5310 echo "${ECHO_T}$AR" >&6
5311 else
5312 echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5317 if test -z "$ac_cv_prog_AR"; then
5318 ac_ct_AR=$AR
5319 # Extract the first word of "ar", so it can be a program name with args.
5320 set dummy ar; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$ac_ct_AR"; then
5327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_AR="ar"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5346 if test -n "$ac_ct_AR"; then
5347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5348 echo "${ECHO_T}$ac_ct_AR" >&6
5349 else
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5354 AR=$ac_ct_AR
5355 else
5356 AR="$ac_cv_prog_AR"
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}ld; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_LD+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -n "$LD"; then
5368 ac_cv_prog_LD="$LD" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_LD="${ac_tool_prefix}ld"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5386 LD=$ac_cv_prog_LD
5387 if test -n "$LD"; then
5388 echo "$as_me:$LINENO: result: $LD" >&5
5389 echo "${ECHO_T}$LD" >&6
5390 else
5391 echo "$as_me:$LINENO: result: no" >&5
5392 echo "${ECHO_T}no" >&6
5396 if test -z "$ac_cv_prog_LD"; then
5397 ac_ct_LD=$LD
5398 # Extract the first word of "ld", so it can be a program name with args.
5399 set dummy ld; ac_word=$2
5400 echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5402 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 if test -n "$ac_ct_LD"; then
5406 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_ac_ct_LD="ld"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5419 done
5420 done
5424 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5425 if test -n "$ac_ct_LD"; then
5426 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5427 echo "${ECHO_T}$ac_ct_LD" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 LD=$ac_ct_LD
5434 else
5435 LD="$ac_cv_prog_LD"
5439 # Check whether --enable-monolithic or --disable-monolithic was given.
5440 if test "${enable_monolithic+set}" = set; then
5441 enableval="$enable_monolithic"
5446 if test ${enable_monolithic:-yes} = yes; then
5447 MONOLITHIC_TRUE=
5448 MONOLITHIC_FALSE='#'
5449 else
5450 MONOLITHIC_TRUE='#'
5451 MONOLITHIC_FALSE=
5455 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5456 if test "${enable_amule_daemon+set}" = set; then
5457 enableval="$enable_amule_daemon"
5462 if test ${enable_amule_daemon:-no} = yes; then
5463 AMULE_DAEMON_TRUE=
5464 AMULE_DAEMON_FALSE='#'
5465 else
5466 AMULE_DAEMON_TRUE='#'
5467 AMULE_DAEMON_FALSE=
5471 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5472 if test "${enable_amulecmd+set}" = set; then
5473 enableval="$enable_amulecmd"
5478 if test ${enable_amulecmd:-no} = yes; then
5479 COMPILE_CMD_TRUE=
5480 COMPILE_CMD_FALSE='#'
5481 else
5482 COMPILE_CMD_TRUE='#'
5483 COMPILE_CMD_FALSE=
5487 # Check whether --enable-webserver or --disable-webserver was given.
5488 if test "${enable_webserver+set}" = set; then
5489 enableval="$enable_webserver"
5494 if test ${enable_webserver:-no} = yes; then
5495 WEB_TRUE=
5496 WEB_FALSE='#'
5497 else
5498 WEB_TRUE='#'
5499 WEB_FALSE=
5503 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5504 if test "${enable_amule_gui+set}" = set; then
5505 enableval="$enable_amule_gui"
5510 if test ${enable_amule_gui:-no} = yes; then
5511 AMULE_GUI_TRUE=
5512 AMULE_GUI_FALSE='#'
5513 else
5514 AMULE_GUI_TRUE='#'
5515 AMULE_GUI_FALSE=
5519 # Check whether --enable-cas or --disable-cas was given.
5520 if test "${enable_cas+set}" = set; then
5521 enableval="$enable_cas"
5526 if test ${enable_cas:-no} = yes; then
5527 CAS_TRUE=
5528 CAS_FALSE='#'
5529 else
5530 CAS_TRUE='#'
5531 CAS_FALSE=
5535 # Check whether --enable-wxcas or --disable-wxcas was given.
5536 if test "${enable_wxcas+set}" = set; then
5537 enableval="$enable_wxcas"
5542 if test ${enable_wxcas:-no} = yes; then
5543 WXCAS_TRUE=
5544 WXCAS_FALSE='#'
5545 else
5546 WXCAS_TRUE='#'
5547 WXCAS_FALSE=
5551 # Check whether --enable-ed2k or --disable-ed2k was given.
5552 if test "${enable_ed2k+set}" = set; then
5553 enableval="$enable_ed2k"
5558 if test ${enable_ed2k:-yes} = yes; then
5559 ED2K_TRUE=
5560 ED2K_FALSE='#'
5561 else
5562 ED2K_TRUE='#'
5563 ED2K_FALSE=
5567 # Check whether --enable-alc or --disable-alc was given.
5568 if test "${enable_alc+set}" = set; then
5569 enableval="$enable_alc"
5574 if test ${enable_alc:-no} = yes; then
5575 ALC_TRUE=
5576 ALC_FALSE='#'
5577 else
5578 ALC_TRUE='#'
5579 ALC_FALSE=
5583 # Check whether --enable-alcc or --disable-alcc was given.
5584 if test "${enable_alcc+set}" = set; then
5585 enableval="$enable_alcc"
5590 if test ${enable_alcc:-no} = yes; then
5591 ALCC_TRUE=
5592 ALCC_FALSE='#'
5593 else
5594 ALCC_TRUE='#'
5595 ALCC_FALSE=
5599 # Check whether --enable-xas or --disable-xas was given.
5600 if test "${enable_xas+set}" = set; then
5601 enableval="$enable_xas"
5606 if test ${enable_xas:-no} = yes; then
5607 XAS_TRUE=
5608 XAS_FALSE='#'
5609 else
5610 XAS_TRUE='#'
5611 XAS_FALSE=
5615 # Check whether --enable-fileview or --disable-fileview was given.
5616 if test "${enable_fileview+set}" = set; then
5617 enableval="$enable_fileview"
5622 if test ${enable_fileview:-no} = yes; then
5623 FILEVIEW_TRUE=
5624 FILEVIEW_FALSE='#'
5625 else
5626 FILEVIEW_TRUE='#'
5627 FILEVIEW_FALSE=
5631 # Check whether --enable-plasmamule or --disable-plasmamule was given.
5632 if test "${enable_plasmamule+set}" = set; then
5633 enableval="$enable_plasmamule"
5638 # Run all the tests with static linkage if we want a statically linked binary
5639 # Check whether --enable-static or --disable-static was given.
5640 if test "${enable_static+set}" = set; then
5641 enableval="$enable_static"
5645 if test ${enable_static:-no} = yes; then
5646 LDFLAGS="$LDFLAGS -static"
5652 # Check whether --with-kde4-config or --without-kde4-config was given.
5653 if test "${with_kde4_config+set}" = set; then
5654 withval="$with_kde4_config"
5655 KDE4_CONFIG=$withval
5656 else
5657 KDE4_CONFIG=""
5659 # Check whether --enable-kde-in-home or --disable-kde-in-home was given.
5660 if test "${enable_kde_in_home+set}" = set; then
5661 enableval="$enable_kde_in_home"
5662 KDE_IN_HOME=$enableval
5663 else
5664 KDE_IN_HOME=no
5669 # Check whether --with-moc or --without-moc was given.
5670 if test "${with_moc+set}" = set; then
5671 withval="$with_moc"
5672 QT_MOC=$withval
5673 else
5674 QT_MOC=""
5678 # Default is yes, because they're most likely compatible.
5679 # However, this is only used when cross-compiling.
5681 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5682 if test "${with_gnu_malloc+set}" = set; then
5683 withval="$with_gnu_malloc"
5684 gnumalloc=$withval
5685 else
5686 gnumalloc=yes
5690 # Checking for libs before all other stuff to break
5691 # configure as soon as possible in case of a missing one
5692 # to avoid losing too much time
5694 # Check for zlib
5695 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
5698 # Check whether --with-zlib or --without-zlib was given.
5699 if test "${with_zlib+set}" = set; then
5700 withval="$with_zlib"
5704 case "${with_zlib:-yes}" in
5706 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5707 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5708 { (exit 1); exit 1; }; }
5710 yes | sys)
5713 zlib_prefix="$with_zlib"
5714 esac
5716 mule_backup_CPPFLAGS="$CPPFLAGS"
5717 mule_backup_LDFLAGS="$LDFLAGS"
5718 mule_backup_LIBS="$LIBS"
5719 if test -n "$zlib_prefix"; then
5721 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5722 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5723 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5724 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5726 else
5728 ZLIB_CPPFLAGS=
5729 ZLIB_LDFLAGS=
5733 ZLIB_LIBS="-lz"
5734 LIBS="$ZLIB_LIBS $LIBS"
5736 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5737 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5738 if test "$cross_compiling" = yes; then
5740 result=no
5741 z_version=
5742 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5750 #include <zlib.h>
5751 #include <stdio.h>
5754 main ()
5757 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5758 zlibVersion();
5761 return 0;
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest$ac_exeext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5788 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5789 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5790 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5791 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5792 if test "$cross_zver_max" -gt "1"; then
5793 result=yes
5794 elif test "$cross_zver_max" -eq "1"; then
5796 if test "$cross_zver_mid" -gt "1"; then
5797 result=yes
5798 elif test "$cross_zver_mid" -eq "1"; then
5799 if test "$cross_zver_min" -ge "4"; then
5800 result=yes
5808 if test ${result:-no} = yes; then
5809 z_version=" (version $ZLIB_VERSION)"
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5818 rm -f conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 echo "$as_me:$LINENO: result: $result$z_version" >&5
5821 echo "${ECHO_T}$result$z_version" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5832 #include <zlib.h>
5833 #include <stdio.h>
5836 main ()
5838 char *zver = zlibVersion();
5839 FILE *f=fopen("conftestval", "w");
5840 if (!f) return 1;
5841 fprintf(f, "%s",
5842 zver[0] > '1' ||
5843 (zver[0] == '1' &&
5844 (zver[2] > '1' ||
5845 (zver[2] == '1' &&
5846 zver[4] >= '4'))) ? "yes" : "no");
5847 fclose(f);
5848 f=fopen("conftestver", "w");
5849 if (f) {
5850 fprintf(f, "%s", ZLIB_VERSION);
5851 fclose(f);
5855 return 0;
5858 _ACEOF
5859 rm -f conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5871 if test -f conftestval; then
5872 result=`cat conftestval`
5873 else
5874 result=no
5877 if test ${result:-no} = yes; then
5879 if test -f conftestver; then
5881 ZLIB_VERSION=`cat conftestver`
5882 z_version=" (version $ZLIB_VERSION)"
5884 else
5885 z_version=
5891 echo "$as_me:$LINENO: result: $result$z_version" >&5
5892 echo "${ECHO_T}$result$z_version" >&6
5894 else
5895 echo "$as_me: program exited with status $ac_status" >&5
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ( exit $ac_status )
5901 result=no
5902 echo "$as_me:$LINENO: result: $result" >&5
5903 echo "${ECHO_T}$result" >&6
5906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909 CPPFLAGS="$mule_backup_CPPFLAGS"
5910 LDFLAGS="$mule_backup_LDFLAGS"
5911 LIBS="$mule_backup_LIBS"
5913 if test ${result:-no} = no; then
5915 ZLIB_CPPFLAGS=
5916 ZLIB_LDFLAGS=
5917 ZLIB_LIBS=
5918 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5919 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5920 { (exit 1); exit 1; }; }
5929 if test ${enable_cas:-no} = yes; then
5931 # Check for gd
5933 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5935 if test "${ac_cv_header_stdc+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <stdlib.h>
5945 #include <stdarg.h>
5946 #include <string.h>
5947 #include <float.h>
5950 main ()
5954 return 0;
5956 _ACEOF
5957 rm -f conftest.$ac_objext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959 (eval $ac_compile) 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_c_werror_flag"
5967 || test ! -s conftest.err'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_header_stdc=yes
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_header_stdc=no
5986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5988 if test $ac_cv_header_stdc = yes; then
5989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <string.h>
5998 _ACEOF
5999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6000 $EGREP "memchr" >/dev/null 2>&1; then
6002 else
6003 ac_cv_header_stdc=no
6005 rm -f conftest*
6009 if test $ac_cv_header_stdc = yes; then
6010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <stdlib.h>
6019 _ACEOF
6020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021 $EGREP "free" >/dev/null 2>&1; then
6023 else
6024 ac_cv_header_stdc=no
6026 rm -f conftest*
6030 if test $ac_cv_header_stdc = yes; then
6031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6032 if test "$cross_compiling" = yes; then
6034 else
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <ctype.h>
6042 #if ((' ' & 0x0FF) == 0x020)
6043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6045 #else
6046 # define ISLOWER(c) \
6047 (('a' <= (c) && (c) <= 'i') \
6048 || ('j' <= (c) && (c) <= 'r') \
6049 || ('s' <= (c) && (c) <= 'z'))
6050 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6051 #endif
6053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6055 main ()
6057 int i;
6058 for (i = 0; i < 256; i++)
6059 if (XOR (islower (i), ISLOWER (i))
6060 || toupper (i) != TOUPPER (i))
6061 exit(2);
6062 exit (0);
6064 _ACEOF
6065 rm -f conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6077 else
6078 echo "$as_me: program exited with status $ac_status" >&5
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ( exit $ac_status )
6083 ac_cv_header_stdc=no
6085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6091 if test $ac_cv_header_stdc = yes; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define STDC_HEADERS 1
6095 _ACEOF
6099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6110 inttypes.h stdint.h unistd.h
6112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6113 echo "$as_me:$LINENO: checking for $ac_header" >&5
6114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 $ac_includes_default
6126 #include <$ac_header>
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 eval "$as_ac_Header=yes"
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 eval "$as_ac_Header=no"
6157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6173 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6174 if test "${with_gdlib_prefix+set}" = set; then
6175 withval="$with_gdlib_prefix"
6179 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6180 if test "${with_gdlib_config+set}" = set; then
6181 withval="$with_gdlib_config"
6185 GDLIB_VERSION=
6187 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6188 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6189 GDLIB_CONFIG_NAME=gdlib-config
6192 if test -n "$with_gdlib_config"; then
6193 GDLIB_CONFIG_NAME="$with_gdlib_config"
6197 # deal with optional prefix
6198 if test -n "$with_gdlib_prefix"; then
6199 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6203 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6204 if test -x "$GDLIB_CONFIG_NAME"; then
6206 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6207 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6208 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6209 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6210 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6212 else
6213 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6214 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6215 echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 case $GDLIB_CONFIG_PATH in
6221 [\\/]* | ?:[\\/]*)
6222 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6227 for as_dir in $as_dummy
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6237 done
6238 done
6240 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6242 esac
6244 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6246 if test -n "$GDLIB_CONFIG_PATH"; then
6247 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6248 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6257 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6259 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6260 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6261 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6263 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6264 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6265 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6266 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6268 gdlib_ver_ok=
6269 if test $gdlib_config_major_version -gt 2; then
6270 gdlib_ver_ok=yes
6271 elif test $gdlib_config_major_version -eq 2; then
6273 if test $gdlib_config_minor_version -gt 0; then
6274 gdlib_ver_ok=yes
6275 elif test $gdlib_config_minor_version -eq 0; then
6276 if test $gdlib_config_micro_version -ge 0; then
6277 gdlib_ver_ok=yes
6286 if test -z "$gdlib_ver_ok"; then
6288 if test -z "$GDLIB_VERSION"; then
6289 echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6291 else
6293 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6294 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6295 GDLIB_VERSION=
6300 else
6302 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6303 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6304 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6305 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6306 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6307 mule_backup_CFLAGS="$CFLAGS"
6308 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6309 if test "${ac_cv_header_gd_h+set}" = set; then
6310 echo "$as_me:$LINENO: checking for gd.h" >&5
6311 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6312 if test "${ac_cv_header_gd_h+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6316 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6317 else
6318 # Is the header compilable?
6319 echo "$as_me:$LINENO: checking gd.h usability" >&5
6320 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 #include <gd.h>
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_header_compiler=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_header_compiler=no
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6361 echo "${ECHO_T}$ac_header_compiler" >&6
6363 # Is the header present?
6364 echo "$as_me:$LINENO: checking gd.h presence" >&5
6365 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 #include <gd.h>
6373 _ACEOF
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev/null; then
6382 if test -s conftest.err; then
6383 ac_cpp_err=$ac_c_preproc_warn_flag
6384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6385 else
6386 ac_cpp_err=
6388 else
6389 ac_cpp_err=yes
6391 if test -z "$ac_cpp_err"; then
6392 ac_header_preproc=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_preproc=no
6399 rm -f conftest.err conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6401 echo "${ECHO_T}$ac_header_preproc" >&6
6403 # So? What about this header?
6404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6405 yes:no: )
6406 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6407 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6409 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6410 ac_header_preproc=yes
6412 no:yes:* )
6413 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6414 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6416 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6418 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6420 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6422 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6424 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6426 cat <<\_ASBOX
6427 ## ------------------------------ ##
6428 ## Report this to admin@amule.org ##
6429 ## ------------------------------ ##
6430 _ASBOX
6432 sed "s/^/$as_me: WARNING: /" >&2
6434 esac
6435 echo "$as_me:$LINENO: checking for gd.h" >&5
6436 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6437 if test "${ac_cv_header_gd_h+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 ac_cv_header_gd_h=$ac_header_preproc
6442 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6443 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6446 if test $ac_cv_header_gd_h = yes; then
6448 else
6449 GDLIB_VERSION=
6453 CFLAGS="$mule_backup_CFLAGS"
6461 if test -n "$GDLIB_VERSION"; then
6463 CAS_DEFS="-D__GD__"
6464 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6466 else
6467 CAS_DEFS=
6473 if test -z "$CAS_DEFS"; then
6474 { echo "$as_me:$LINENO: WARNING:
6475 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6476 Please check that gdlib-config is in your default path, check out
6477 LD_LIBRARY_PATH or equivalent variable.
6478 Or this might also be that your gdlib-config has other name.
6479 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6480 (replace /usr/bin/gdlib-config with a valid path to your
6481 gdlib-config).
6482 If you use compiled packages check if you have devel pack installed.
6483 To download the latest version check http://www.boutell.com/gd for
6484 sources." >&5
6485 echo "$as_me: WARNING:
6486 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6487 Please check that gdlib-config is in your default path, check out
6488 LD_LIBRARY_PATH or equivalent variable.
6489 Or this might also be that your gdlib-config has other name.
6490 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6491 (replace /usr/bin/gdlib-config with a valid path to your
6492 gdlib-config).
6493 If you use compiled packages check if you have devel pack installed.
6494 To download the latest version check http://www.boutell.com/gd for
6495 sources." >&2;}
6496 _mule_warning_0=yes
6497 _mule_has_warnings=yes
6505 if test ${enable_webserver:-no} = yes; then
6508 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6509 if test "${with_libpng_prefix+set}" = set; then
6510 withval="$with_libpng_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"
6520 LIBPNG_VERSION=
6522 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6523 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6524 LIBPNG_CONFIG_NAME=libpng-config
6527 if test -n "$with_libpng_config"; then
6528 LIBPNG_CONFIG_NAME="$with_libpng_config"
6532 # deal with optional prefix
6533 if test -n "$with_libpng_prefix"; then
6534 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6538 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6539 if test -x "$LIBPNG_CONFIG_NAME"; then
6541 echo "$as_me:$LINENO: checking for libpng-config" >&5
6542 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6543 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6544 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6545 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6547 else
6548 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6549 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6550 echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 case $LIBPNG_CONFIG_PATH in
6556 [\\/]* | ?:[\\/]*)
6557 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6562 for as_dir in $as_dummy
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6575 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6577 esac
6579 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6581 if test -n "$LIBPNG_CONFIG_PATH"; then
6582 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6583 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6592 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6594 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6595 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6597 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6599 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6600 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6601 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6602 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6604 libpng_ver_ok=
6605 if test $libpng_config_major_version -gt 1; then
6606 libpng_ver_ok=yes
6607 elif test $libpng_config_major_version -eq 1; then
6609 if test $libpng_config_minor_version -gt 2; then
6610 libpng_ver_ok=yes
6611 elif test $libpng_config_minor_version -eq 2; then
6612 if test $libpng_config_micro_version -ge 0; then
6613 libpng_ver_ok=yes
6622 if test -z "$libpng_ver_ok"; then
6624 if test -z "$LIBPNG_VERSION"; then
6625 echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6
6627 else
6629 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6630 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6631 LIBPNG_VERSION=
6636 else
6638 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6639 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6640 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6641 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6642 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6650 if test -n "$LIBPNG_VERSION"; then
6651 AMULEWEB_DEFS="-DWITH_LIBPNG"
6652 else
6654 { echo "$as_me:$LINENO: WARNING:
6655 libpng >= 1.2.0 not found.
6656 amuleweb will be compiled but file download progress bar images will
6657 NOT be generated." >&5
6658 echo "$as_me: WARNING:
6659 libpng >= 1.2.0 not found.
6660 amuleweb will be compiled but file download progress bar images will
6661 NOT be generated." >&2;}
6662 _mule_warning_1=yes
6663 _mule_has_warnings=yes
6675 # Check for perl File::Copy
6676 echo "$as_me:$LINENO: checking for File::Copy" >&5
6677 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6678 if perl -e "require File::Copy" 2>/dev/null; then
6679 echo "$as_me:$LINENO: result: ok" >&5
6680 echo "${ECHO_T}ok" >&6
6681 else
6682 { echo "$as_me:$LINENO: WARNING:
6683 File::Copy perl module is required by the mldonkey_importer script.
6684 If you want to use this script please install File::Copy from CPAN." >&5
6685 echo "$as_me: WARNING:
6686 File::Copy perl module is required by the mldonkey_importer script.
6687 If you want to use this script please install File::Copy from CPAN." >&2;}
6688 _mule_warning_2=yes
6689 _mule_has_warnings=yes
6694 # Check if we need to install skins
6695 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6696 INSTALL_SKINS=yes
6697 else
6698 INSTALL_SKINS=no
6702 # Check for GeoIP (required for IP2Country capability)
6703 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6705 # Check whether --enable-geoip or --disable-geoip was given.
6706 if test "${enable_geoip+set}" = set; then
6707 enableval="$enable_geoip"
6712 if test ${enable_geoip:-no} = yes; then
6715 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6716 if test "${with_geoip_headers+set}" = set; then
6717 withval="$with_geoip_headers"
6718 GEOIP_CPPFLAGS="-I$withval"
6721 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6722 if test "${with_geoip_lib+set}" = set; then
6723 withval="$with_geoip_lib"
6724 GEOIP_LDFLAGS="-L$withval"
6727 mule_backup_CPPFLAGS="$CPPFLAGS"
6728 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6729 mule_backup_LDFLAGS="$LDFLAGS"
6730 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6732 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6733 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6734 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6735 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6739 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6740 else
6741 # Is the header compilable?
6742 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6743 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 #include <GeoIP.h>
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755 (eval $ac_compile) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_header_compiler=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_header_compiler=no
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6784 echo "${ECHO_T}$ac_header_compiler" >&6
6786 # Is the header present?
6787 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6788 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 #include <GeoIP.h>
6796 _ACEOF
6797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } >/dev/null; then
6805 if test -s conftest.err; then
6806 ac_cpp_err=$ac_c_preproc_warn_flag
6807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6808 else
6809 ac_cpp_err=
6811 else
6812 ac_cpp_err=yes
6814 if test -z "$ac_cpp_err"; then
6815 ac_header_preproc=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_header_preproc=no
6822 rm -f conftest.err conftest.$ac_ext
6823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 echo "${ECHO_T}$ac_header_preproc" >&6
6826 # So? What about this header?
6827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6828 yes:no: )
6829 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6830 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6832 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6833 ac_header_preproc=yes
6835 no:yes:* )
6836 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6837 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6839 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6841 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6843 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6845 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6847 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6849 cat <<\_ASBOX
6850 ## ------------------------------ ##
6851 ## Report this to admin@amule.org ##
6852 ## ------------------------------ ##
6853 _ASBOX
6855 sed "s/^/$as_me: WARNING: /" >&2
6857 esac
6858 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6859 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6860 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 ac_cv_header_GeoIP_h=$ac_header_preproc
6865 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6866 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6869 if test $ac_cv_header_GeoIP_h = yes; then
6871 if test x$SYS = xwin32; then
6873 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6874 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6875 # Actually, we might not need any if GeoIP is linked as a .dll
6876 # - but that's even harder to check for
6877 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6885 #include <GeoIP.h>
6886 #ifdef _WINSOCK2_H
6887 I do know it's not the best approach, but at least works with MinGW stock headers.
6888 (tested with w32api-3.12)
6889 #endif
6892 main ()
6896 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6923 GEOIP_WINSOCK_LIB="-lwsock32"
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6930 GEOIP_WINSOCK_LIB="-lws2_32"
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6935 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6939 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6940 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6941 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 ac_check_lib_save_LIBS=$LIBS
6945 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 #ifdef __cplusplus
6955 extern "C"
6956 #endif
6957 /* We use char because int might match the return type of a gcc2
6958 builtin and then its argument prototype would still apply. */
6959 char GeoIP_open ();
6961 main ()
6963 GeoIP_open ();
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_lib_GeoIP_GeoIP_open=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_cv_lib_GeoIP_GeoIP_open=no
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7002 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7003 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7006 cat >>confdefs.h <<\_ACEOF
7007 #define SUPPORT_GEOIP 1
7008 _ACEOF
7010 GEOIP_LIBS="-lGeoIP"
7011 if test x$SYS = xwin32; then
7012 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7015 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7017 # Check whether --with-geoip-static or --without-geoip-static was given.
7018 if test "${with_geoip_static+set}" = set; then
7019 withval="$with_geoip_static"
7021 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7023 mule_backup_LIBS="$LIBS"
7024 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7025 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7033 #include <GeoIP.h>
7036 main ()
7039 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7042 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext conftest$ac_exeext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048 (eval $ac_link) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest$ac_exeext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7069 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7076 { echo "$as_me:$LINENO: WARNING:
7077 Cannot link GeoIP statically, because your linker ($LD) does not
7078 support it." >&5
7079 echo "$as_me: WARNING:
7080 Cannot link GeoIP statically, because your linker ($LD) does not
7081 support it." >&2;}
7082 _mule_warning_3=yes
7083 _mule_has_warnings=yes
7087 rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 LIBS="$mule_backup_LIBS"
7096 else
7098 enable_geoip=disabled
7099 { echo "$as_me:$LINENO: WARNING:
7100 GeoIP support has been disabled because the GeoIP libraries were not
7101 found" >&5
7102 echo "$as_me: WARNING:
7103 GeoIP support has been disabled because the GeoIP libraries were not
7104 found" >&2;}
7105 _mule_warning_4=yes
7106 _mule_has_warnings=yes
7112 else
7114 enable_geoip=disabled
7115 { echo "$as_me:$LINENO: WARNING:
7116 GeoIP support has been disabled because the GeoIP header files were
7117 not found" >&5
7118 echo "$as_me: WARNING:
7119 GeoIP support has been disabled because the GeoIP header files were
7120 not found" >&2;}
7121 _mule_warning_5=yes
7122 _mule_has_warnings=yes
7129 CPPFLAGS="$mule_backup_CPPFLAGS"
7130 LDFLAGS="$mule_backup_LDFLAGS"
7138 # Check for wx
7139 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
7142 # Check whether --with-wxdir or --without-wxdir was given.
7143 if test "${with_wxdir+set}" = set; then
7144 withval="$with_wxdir"
7145 wx_config_name="$withval/wx-config"
7146 wx_config_args="--inplace"
7149 # Check whether --with-wx-config or --without-wx-config was given.
7150 if test "${with_wx_config+set}" = set; then
7151 withval="$with_wx_config"
7152 wx_config_name="$withval"
7155 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7156 if test "${with_wx_prefix+set}" = set; then
7157 withval="$with_wx_prefix"
7158 wx_config_prefix="$withval"
7159 else
7160 wx_config_prefix=""
7163 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7164 if test "${with_wx_exec_prefix+set}" = set; then
7165 withval="$with_wx_exec_prefix"
7166 wx_config_exec_prefix="$withval"
7167 else
7168 wx_config_exec_prefix=""
7182 # Check whether --with-toolkit or --without-toolkit was given.
7183 if test "${with_toolkit+set}" = set; then
7184 withval="$with_toolkit"
7186 else
7187 withval="auto"
7190 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7191 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7192 if test "$withval" = "auto" ; then
7193 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7194 echo "${ECHO_T}will be automatically detected" >&6
7195 TOOLKIT="auto"
7196 else
7197 TOOLKIT="$withval"
7199 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7200 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7201 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7202 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7203 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7204 "$TOOLKIT" != "osx_cocoa"; then
7205 { { echo "$as_me:$LINENO: error:
7206 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7207 " >&5
7208 echo "$as_me: error:
7209 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7210 " >&2;}
7211 { (exit 1); exit 1; }; }
7214 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7215 echo "${ECHO_T}$TOOLKIT" >&6
7222 # Check whether --with-wxshared or --without-wxshared was given.
7223 if test "${with_wxshared+set}" = set; then
7224 withval="$with_wxshared"
7226 else
7227 withval="auto"
7230 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7231 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7232 if test "$withval" = "yes" ; then
7233 echo "$as_me:$LINENO: result: yes" >&5
7234 echo "${ECHO_T}yes" >&6
7235 WX_SHARED=1
7237 elif test "1" = "1" -a "$withval" = "no" ; then
7238 echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7240 WX_SHARED=0
7241 elif test "$withval" = "auto" ; then
7242 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7243 echo "${ECHO_T}will be automatically detected" >&6
7244 WX_SHARED="auto"
7245 else
7246 { { echo "$as_me:$LINENO: error:
7247 Unrecognized option value (allowed values: yes, auto)
7248 " >&5
7249 echo "$as_me: error:
7250 Unrecognized option value (allowed values: yes, auto)
7251 " >&2;}
7252 { (exit 1); exit 1; }; }
7259 # Check whether --with-wxdebug or --without-wxdebug was given.
7260 if test "${with_wxdebug+set}" = set; then
7261 withval="$with_wxdebug"
7263 else
7264 withval="auto"
7267 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7268 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7269 if test "$withval" = "yes" ; then
7270 echo "$as_me:$LINENO: result: yes" >&5
7271 echo "${ECHO_T}yes" >&6
7272 WX_DEBUG=1
7274 elif test "1" = "1" -a "$withval" = "no" ; then
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 WX_DEBUG=0
7278 elif test "$withval" = "auto" ; then
7279 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7280 echo "${ECHO_T}will be automatically detected" >&6
7281 WX_DEBUG="auto"
7282 else
7283 { { echo "$as_me:$LINENO: error:
7284 Unrecognized option value (allowed values: yes, auto)
7285 " >&5
7286 echo "$as_me: error:
7287 Unrecognized option value (allowed values: yes, auto)
7288 " >&2;}
7289 { (exit 1); exit 1; }; }
7296 # Check whether --with-wxversion or --without-wxversion was given.
7297 if test "${with_wxversion+set}" = set; then
7298 withval="$with_wxversion"
7300 else
7301 withval="auto"
7304 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7305 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7306 if test "$withval" = "auto" ; then
7307 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7308 echo "${ECHO_T}will be automatically detected" >&6
7309 WX_VERSION="auto"
7310 else
7312 wx_requested_major_version=`echo $withval | \
7313 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7314 wx_requested_minor_version=`echo $withval | \
7315 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7317 if test "${#wx_requested_major_version}" != "1" -o \
7318 "${#wx_requested_minor_version}" != "1" ; then
7319 { { echo "$as_me:$LINENO: error:
7320 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7321 " >&5
7322 echo "$as_me: error:
7323 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7324 " >&2;}
7325 { (exit 1); exit 1; }; }
7328 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7329 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7330 echo "${ECHO_T}$WX_VERSION" >&6
7334 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7335 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7336 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7337 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7338 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7339 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7342 # Force using a static wxWidgets library if the executable is to be linked statically.
7343 if test ${enable_static:-no} = yes; then
7344 WX_SHARED=0
7347 # Force using a unicode build of the library
7348 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then
7349 WX_UNICODE=1
7352 DEBUG=$WX_DEBUG
7354 if test "$WX_SHARED" = "1" ; then
7355 WXCONFIG_FLAGS="--static=no "
7356 elif test "$WX_SHARED" = "0" ; then
7357 WXCONFIG_FLAGS="--static=yes "
7360 if test "$WX_DEBUG" = "1" ; then
7361 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7362 elif test "$WX_DEBUG" = "0" ; then
7363 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7366 if test "$WX_UNICODE" = "1" ; then
7367 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7368 elif test "$WX_UNICODE" = "0" ; then
7369 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7372 if test "$TOOLKIT" != "auto" ; then
7373 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7376 if test "$WX_VERSION" != "auto" ; then
7377 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7380 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7382 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7383 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7387 if test x${WX_CONFIG_NAME+set} != xset ; then
7388 WX_CONFIG_NAME=wx-config
7391 if test "x$wx_config_name" != x ; then
7392 WX_CONFIG_NAME="$wx_config_name"
7395 if test x$wx_config_exec_prefix != x ; then
7396 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7397 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7399 if test x$wx_config_prefix != x ; then
7400 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7401 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7403 if test "$cross_compiling" = "yes"; then
7404 wx_config_args="$wx_config_args --host=$host_alias"
7407 if test -x "$WX_CONFIG_NAME" ; then
7408 echo "$as_me:$LINENO: checking for wx-config" >&5
7409 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7410 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7411 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7412 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7413 else
7414 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7415 set dummy $WX_CONFIG_NAME; ac_word=$2
7416 echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7418 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 case $WX_CONFIG_PATH in
7422 [\\/]* | ?:[\\/]*)
7423 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7428 for as_dir in $as_dummy
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7438 done
7439 done
7441 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7443 esac
7445 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7447 if test -n "$WX_CONFIG_PATH"; then
7448 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7449 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7450 else
7451 echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7457 if test "$WX_CONFIG_PATH" != "no" ; then
7458 WX_VERSION_FULL=""
7460 min_wx_version=2.8.8
7461 if test -z "$WXCONFIG_FLAGS" ; then
7462 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7463 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7464 else
7465 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7466 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7469 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7471 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7472 wx_config_major_version=`echo $WX_VERSION_FULL | \
7473 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7474 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7476 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7479 wx_requested_major_version=`echo $min_wx_version | \
7480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7481 wx_requested_minor_version=`echo $min_wx_version | \
7482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7483 wx_requested_micro_version=`echo $min_wx_version | \
7484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7487 wx_ver_ok=""
7488 if test "x$WX_VERSION_FULL" != x ; then
7489 if test $wx_config_major_version -gt $wx_requested_major_version; then
7490 wx_ver_ok=yes
7491 else
7492 if test $wx_config_major_version -eq $wx_requested_major_version; then
7493 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7494 wx_ver_ok=yes
7495 else
7496 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7497 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7498 wx_ver_ok=yes
7507 if test -n "$wx_ver_ok"; then
7509 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7510 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7511 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7513 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7515 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7516 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7517 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7519 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7520 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7522 wxWin=1
7524 else
7526 if test "x$WX_VERSION_FULL" = x; then
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529 else
7530 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7531 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7534 WX_CFLAGS=""
7535 WX_CPPFLAGS=""
7536 WX_CXXFLAGS=""
7537 WX_LIBS=""
7538 WX_RESCOMP=""
7540 if test ! -z "$WXCONFIG_FLAGS"; then
7542 wx_error_message="
7543 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7544 build with the following settings:
7545 $WXCONFIG_FLAGS
7546 but such build is not available.
7548 To see the wxWidgets builds available on this system, please use
7549 'wx-config --list' command. To use the default build, returned by
7550 'wx-config --selected-config', use the options with their 'auto'
7551 default values."
7555 wx_error_message="
7556 The requested wxWidgets build couldn't be found.
7557 $wx_error_message
7559 If you still get this error, then check that 'wx-config' is
7560 in path, the directory where wxWidgets libraries are installed
7561 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7562 or equivalent variable and wxWidgets version is 2.8.8 or above."
7564 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7565 echo "$as_me: error: $wx_error_message" >&2;}
7566 { (exit 1); exit 1; }; }
7569 else
7571 WX_CFLAGS=""
7572 WX_CPPFLAGS=""
7573 WX_CXXFLAGS=""
7574 WX_LIBS=""
7575 WX_RESCOMP=""
7590 WX_VERSION_MAJOR="$wx_config_major_version"
7591 WX_VERSION_MINOR="$wx_config_minor_version"
7595 if test "$wxWin" != 1; then
7596 { { echo "$as_me:$LINENO: error:
7597 wxWidgets must be installed on your system but wx-config
7598 script couldn't be found. Please check that wx-config is
7599 in path or specified by --with-wx-config=path flag, the
7600 directory where wxWidgets libraries are installed (returned
7601 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7602 equivalent variable and wxWidgets version is 2.8.8 or above.
7603 " >&5
7604 echo "$as_me: error:
7605 wxWidgets must be installed on your system but wx-config
7606 script couldn't be found. Please check that wx-config is
7607 in path or specified by --with-wx-config=path flag, the
7608 directory where wxWidgets libraries are installed (returned
7609 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7610 equivalent variable and wxWidgets version is 2.8.8 or above.
7611 " >&2;}
7612 { (exit 1); exit 1; }; }
7616 if test "${WX_VERSION_FULL}" = "2.9.0"; then
7617 { { echo "$as_me:$LINENO: error:
7618 This version of wxWidgets is known to not work with aMule.
7619 Please upgrade to a newer version.
7620 " >&5
7621 echo "$as_me: error:
7622 This version of wxWidgets is known to not work with aMule.
7623 Please upgrade to a newer version.
7624 " >&2;}
7625 { (exit 1); exit 1; }; }
7630 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7632 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7634 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7635 echo "[dbg] Using wx-config --selected-config"
7636 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7640 if test $WX_SHARED = "1"; then
7641 STATIC=0
7642 elif test $WX_SHARED = "0"; then
7643 STATIC=1
7644 elif test $WX_SHARED = "auto"; then
7645 STATIC="auto"
7649 if test "$UNICODE" = "auto" ; then
7651 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7652 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7654 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7656 if test "$WX_UNICODE" != "0"; then
7657 WX_UNICODE=1
7658 echo "$as_me:$LINENO: result: yes" >&5
7659 echo "${ECHO_T}yes" >&6
7661 else
7662 WX_UNICODE=0
7663 echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6
7667 else
7669 WX_UNICODE=$UNICODE
7673 if test "$DEBUG" = "auto" ; then
7675 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7676 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7678 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7680 if test "$WX_DEBUG" != "0"; then
7681 WX_DEBUG=1
7682 echo "$as_me:$LINENO: result: yes" >&5
7683 echo "${ECHO_T}yes" >&6
7685 else
7686 WX_DEBUG=0
7687 echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7691 else
7693 WX_DEBUG=$DEBUG
7697 if test "$STATIC" = "auto" ; then
7699 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7700 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7702 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7704 if test "$WX_STATIC" != "0"; then
7705 WX_STATIC=1
7706 echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6
7709 else
7710 WX_STATIC=0
7711 echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6
7715 else
7717 WX_STATIC=$STATIC
7721 if test "$WX_STATIC" != "0"; then
7722 WX_SHARED=0
7723 else
7724 WX_SHARED=1
7731 if test "$TOOLKIT" = "auto" ; then
7733 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7734 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7736 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7737 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7738 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7739 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7740 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7741 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7742 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7743 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7744 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7745 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7746 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7748 WX_PORT="unknown"
7749 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7750 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7751 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7752 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7753 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7754 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7755 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7756 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7757 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7758 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7759 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7762 if test "$WX_PORT" = "unknown" ; then
7763 { { echo "$as_me:$LINENO: error:
7764 Cannot detect the currently installed wxWidgets port !
7765 Please check your 'wx-config --cxxflags'...
7766 " >&5
7767 echo "$as_me: error:
7768 Cannot detect the currently installed wxWidgets port !
7769 Please check your 'wx-config --cxxflags'...
7770 " >&2;}
7771 { (exit 1); exit 1; }; }
7774 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7775 echo "${ECHO_T}$WX_PORT" >&6
7776 else
7778 if test -n "$TOOLKIT" ; then
7779 WX_PORT=$TOOLKIT
7780 else
7781 WX_PORT=$PORT
7787 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7788 echo "[dbg] Values of all WX_* options after final detection:"
7789 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7790 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7791 echo "[dbg] WX_SHARED: $WX_SHARED"
7792 echo "[dbg] WX_VERSION: $WX_VERSION"
7793 echo "[dbg] WX_PORT: $WX_PORT"
7796 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7797 { { echo "$as_me:$LINENO: error:
7798 Cannot build shared library against a static build of wxWidgets !
7799 This error happens because the wxWidgets build which was selected
7800 has been detected as static while you asked to build $PACKAGE_NAME
7801 as shared library and this is not possible.
7802 Use the '--disable-shared' option to build $PACKAGE_NAME
7803 as static library or '--with-wxshared' to use wxWidgets as shared library.
7804 " >&5
7805 echo "$as_me: error:
7806 Cannot build shared library against a static build of wxWidgets !
7807 This error happens because the wxWidgets build which was selected
7808 has been detected as static while you asked to build $PACKAGE_NAME
7809 as shared library and this is not possible.
7810 Use the '--disable-shared' option to build $PACKAGE_NAME
7811 as static library or '--with-wxshared' to use wxWidgets as shared library.
7812 " >&2;}
7813 { (exit 1); exit 1; }; }
7816 if test "$DEBUG" = "auto"; then
7817 DEBUG=$WX_DEBUG
7819 if test "$DEBUG" = "1"; then
7820 BUILD="debug"
7821 elif test "$DEBUG" = ""; then
7822 BUILD="release"
7825 if test "$UNICODE" = "auto"; then
7826 UNICODE=$WX_UNICODE
7828 if test "$SHARED" = "auto"; then
7829 SHARED=$WX_SHARED
7831 if test "$TOOLKIT" = "auto"; then
7832 TOOLKIT=$WX_PORT
7836 # We also need wxBase
7837 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7838 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7839 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7841 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7846 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then
7847 if test "${WX_PORT}" = base; then
7848 { { echo "$as_me:$LINENO: error:
7849 The selected components need a wxWidgets library with GUI,
7850 but your installation is base-only. Please install a GUI
7851 enabled version of wxWidgets and then retry.
7852 " >&5
7853 echo "$as_me: error:
7854 The selected components need a wxWidgets library with GUI,
7855 but your installation is base-only. Please install a GUI
7856 enabled version of wxWidgets and then retry.
7857 " >&2;}
7858 { (exit 1); exit 1; }; }
7865 if test ${SYS:-unknown} = win32; then
7866 if test -n "$ac_tool_prefix"; then
7867 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7868 set dummy ${ac_tool_prefix}windres; ac_word=$2
7869 echo "$as_me:$LINENO: checking for $ac_word" >&5
7870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871 if test "${ac_cv_prog_RC+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 if test -n "$RC"; then
7875 ac_cv_prog_RC="$RC" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_RC="${ac_tool_prefix}windres"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7893 RC=$ac_cv_prog_RC
7894 if test -n "$RC"; then
7895 echo "$as_me:$LINENO: result: $RC" >&5
7896 echo "${ECHO_T}$RC" >&6
7897 else
7898 echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6
7903 if test -z "$ac_cv_prog_RC"; then
7904 ac_ct_RC=$RC
7905 # Extract the first word of "windres", so it can be a program name with args.
7906 set dummy windres; ac_word=$2
7907 echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7909 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 if test -n "$ac_ct_RC"; then
7913 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_ac_ct_RC="windres"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7926 done
7927 done
7929 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7932 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7933 if test -n "$ac_ct_RC"; then
7934 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7935 echo "${ECHO_T}$ac_ct_RC" >&6
7936 else
7937 echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6
7941 RC=$ac_ct_RC
7942 else
7943 RC="$ac_cv_prog_RC"
7950 # Check for libupnp
7951 # Check whether --enable-upnp or --disable-upnp was given.
7952 if test "${enable_upnp+set}" = set; then
7953 enableval="$enable_upnp"
7957 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
7959 else
7960 enable_upnp=no
7963 if test ${enable_upnp:-yes} = yes; then
7967 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7971 echo "$as_me:$LINENO: checking for $ac_word" >&5
7972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7973 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 case $PKG_CONFIG in
7977 [\\/]* | ?:[\\/]*)
7978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7992 done
7993 done
7996 esac
7998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8000 if test -n "$PKG_CONFIG"; then
8001 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8002 echo "${ECHO_T}$PKG_CONFIG" >&6
8003 else
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8009 if test -z "$ac_cv_path_PKG_CONFIG"; then
8010 ac_pt_PKG_CONFIG=$PKG_CONFIG
8011 # Extract the first word of "pkg-config", so it can be a program name with args.
8012 set dummy pkg-config; ac_word=$2
8013 echo "$as_me:$LINENO: checking for $ac_word" >&5
8014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 case $ac_pt_PKG_CONFIG in
8019 [\\/]* | ?:[\\/]*)
8020 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8034 done
8035 done
8038 esac
8040 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8042 if test -n "$ac_pt_PKG_CONFIG"; then
8043 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8044 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8050 PKG_CONFIG=$ac_pt_PKG_CONFIG
8051 else
8052 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8056 if test -n "$PKG_CONFIG"; then
8057 _pkg_min_version=0.9.0
8058 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8059 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8060 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8066 PKG_CONFIG=""
8072 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8073 if test "${with_libupnp_prefix+set}" = set; then
8074 withval="$with_libupnp_prefix"
8075 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8078 if test $cross_compiling = no; then
8080 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8081 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8082 if test -n "$PKG_CONFIG"; then
8084 if $PKG_CONFIG libupnp --exists; then
8086 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8087 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8089 result=yes
8090 resultstr=" (version $LIBUPNP_VERSION)"
8091 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8092 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8093 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8094 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8095 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8097 else
8099 result=no
8100 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8105 else
8107 result=no
8108 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8113 else
8115 result=no
8116 resultstr=" (pkg-config not found)"
8120 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8121 echo "${ECHO_T}$result$resultstr" >&6
8122 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8124 else
8126 result=no
8127 libupnp_error="cross compiling"
8132 if test ${result:-no} = yes; then
8133 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8134 else
8135 enable_upnp=disabled
8136 { echo "$as_me:$LINENO: WARNING:
8137 UPnP code has been disabled because ${libupnp_error}." >&5
8138 echo "$as_me: WARNING:
8139 UPnP code has been disabled because ${libupnp_error}." >&2;}
8140 _mule_warning_6=yes
8141 _mule_has_warnings=yes
8152 # Check for Crypto++
8153 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
8156 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8157 if test "${with_crypto_prefix+set}" = set; then
8158 withval="$with_crypto_prefix"
8162 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8163 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8165 cryptopp_file_with_version="cryptlib.h"
8167 CRYPTOPP_STYLE="unknown"
8168 CRYPTOPP_LIB_NAME="unknown"
8169 cryptopp_includedir="unknown"
8170 CRYPTOPP_INCLUDE_PREFIX="unknown"
8171 cryptopp_libdir="unknown"
8173 if test -n "$with_crypto_prefix"; then
8175 CRYPTOPP_PREFIX="$with_crypto_prefix"
8176 # Find the Cryptopp header in the user-provided location
8177 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8179 CRYPTOPP_STYLE="sources"
8180 CRYPTOPP_LIB_NAME="cryptopp"
8181 cryptopp_includedir=
8182 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8183 cryptopp_libdir=
8185 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8187 CRYPTOPP_STYLE="installed"
8188 CRYPTOPP_LIB_NAME="cryptopp"
8189 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8190 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8191 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8193 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8195 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8196 CRYPTOPP_STYLE="gentoo_debian"
8197 CRYPTOPP_LIB_NAME="crypto++"
8198 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8199 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8200 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8205 else
8207 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8208 # Find the Cryptopp header in system locations
8209 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8211 CRYPTOPP_STYLE="sources"
8212 CRYPTOPP_LIB_NAME="cryptopp"
8213 cryptopp_includedir=
8214 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8215 cryptopp_libdir=
8216 break
8218 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8220 CRYPTOPP_STYLE="installed"
8221 CRYPTOPP_LIB_NAME="cryptopp"
8222 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8223 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8224 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8225 break
8227 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8229 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8230 CRYPTOPP_STYLE="gentoo_debian"
8231 CRYPTOPP_LIB_NAME="crypto++"
8232 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8233 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8234 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8235 break
8239 done
8244 if test $CRYPTOPP_STYLE = "unknown"; then
8245 result=no; resultstr=""
8246 else
8248 # Find out the crypto++ version and check against the minimum required
8249 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8250 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8251 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8252 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8254 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8256 result=yes
8257 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8258 if test -n "$cryptopp_includedir"; then
8259 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8260 else
8261 CRYPTOPP_CPPFLAGS=
8264 if test -n "$cryptopp_libdir"; then
8266 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8267 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8269 else
8271 CRYPTOPP_LDFLAGS=
8272 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8278 cat >>confdefs.h <<_ACEOF
8279 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8280 _ACEOF
8283 else
8285 result=no
8286 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8294 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8295 echo "${ECHO_T}$result$resultstr" >&6
8297 if test ${result:-no} = yes; then
8299 # Check for CryptoPP >= 5.5
8300 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8301 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8305 else
8307 { { echo "$as_me:$LINENO: error:
8308 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8309 Please try again with --with-crypto-prefix=/my_crypto_prefix
8310 (replace /my_crypto_prefix with a valid path to your crypto++
8311 installation directory)." >&5
8312 echo "$as_me: error:
8313 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8314 Please try again with --with-crypto-prefix=/my_crypto_prefix
8315 (replace /my_crypto_prefix with a valid path to your crypto++
8316 installation directory)." >&2;}
8317 { (exit 1); exit 1; }; }
8326 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
8327 ac_ext=cc
8328 ac_cpp='$CXXCPP $CPPFLAGS'
8329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8336 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8337 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8346 #include <string>
8347 #ifndef __GLIBCXX__
8348 #error Non-GNU C++ library found.
8349 #endif
8352 _ACEOF
8353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } >/dev/null; then
8361 if test -s conftest.err; then
8362 ac_cpp_err=$ac_cxx_preproc_warn_flag
8363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8364 else
8365 ac_cpp_err=
8367 else
8368 ac_cpp_err=yes
8370 if test -z "$ac_cpp_err"; then
8371 GLIBCXX=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 GLIBCXX=no
8378 rm -f conftest.err conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8380 echo "${ECHO_T}$GLIBCXX" >&6
8382 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then
8384 mule_backup_CPPFLAGS="$CPPFLAGS"
8385 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8387 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8388 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8397 #include <wx/wx.h>
8398 #include <wx/filefn.h>
8399 #ifndef wxHAS_LARGE_FILES
8400 #error No LargeFile support!
8401 #endif
8404 _ACEOF
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_cxx_preproc_warn_flag
8415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8416 else
8417 ac_cpp_err=
8419 else
8420 ac_cpp_err=yes
8422 if test -z "$ac_cpp_err"; then
8424 echo "$as_me:$LINENO: result: yes" >&5
8425 echo "${ECHO_T}yes" >&6
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8432 echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434 { { echo "$as_me:$LINENO: error:
8435 Support for large files in wxWidgets is required by aMule.
8436 To continue you must recompile wxWidgets with support for
8437 large files enabled." >&5
8438 echo "$as_me: error:
8439 Support for large files in wxWidgets is required by aMule.
8440 To continue you must recompile wxWidgets with support for
8441 large files enabled." >&2;}
8442 { (exit 1); exit 1; }; }
8445 rm -f conftest.err conftest.$ac_ext
8447 CPPFLAGS="$mule_backup_CPPFLAGS"
8452 # Check if the compiler is broken, wrt. exceptions.
8454 echo "$as_me:$LINENO: checking for exception-handling" >&5
8455 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8456 if test "$cross_compiling" = yes; then
8458 echo "$as_me:$LINENO: result: undeterminable" >&5
8459 echo "${ECHO_T}undeterminable" >&6
8460 { echo "$as_me:$LINENO: WARNING:
8461 Cross-compilation detected, so exception handling cannot be tested.
8462 Note that broken exception handling in your compiler may lead to
8463 unexpected crashes." >&5
8464 echo "$as_me: WARNING:
8465 Cross-compilation detected, so exception handling cannot be tested.
8466 Note that broken exception handling in your compiler may lead to
8467 unexpected crashes." >&2;}
8468 _mule_warning_7=yes
8469 _mule_has_warnings=yes
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8482 main ()
8485 try {
8486 throw 1;
8487 } catch (int) {
8488 return 0;
8490 return 1;
8493 return 0;
8496 _ACEOF
8497 rm -f conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8509 echo "$as_me:$LINENO: result: yes" >&5
8510 echo "${ECHO_T}yes" >&6
8512 else
8513 echo "$as_me: program exited with status $ac_status" >&5
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ( exit $ac_status )
8519 echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8521 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8522 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8523 { (exit 1); exit 1; }; }
8526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8531 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8532 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 #include <cxxabi.h>
8544 main ()
8547 int status;
8548 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8549 std::type_info *ti = abi::__cxa_current_exception_type();
8552 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_cxx_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_CXXABI 1
8583 _ACEOF
8585 echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8593 echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8600 ac_ext=c
8601 ac_cpp='$CPP $CPPFLAGS'
8602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610 # Ok, we have all needed libs, now checking for other stuff
8611 if test "$LEX" = "flex"; then
8613 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8614 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8616 extended_flex=`flex --help | grep header-file`
8617 if test -n "$extended_flex"; then
8618 HAVE_FLEX_EXTENDED=yes
8619 else
8620 HAVE_FLEX_EXTENDED=no
8623 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8624 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8626 if test $HAVE_FLEX_EXTENDED = no; then
8627 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8628 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8632 else
8633 HAVE_FLEX_EXTENDED=no
8637 # Flush standard test results for speeding cache
8638 cat >confcache <<\_ACEOF
8639 # This file is a shell script that caches the results of configure
8640 # tests run on this system so they can be shared between configure
8641 # scripts and configure runs, see configure's option --config-cache.
8642 # It is not useful on other systems. If it contains results you don't
8643 # want to keep, you may remove or edit it.
8645 # config.status only pays attention to the cache file if you give it
8646 # the --recheck option to rerun configure.
8648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8650 # following values.
8652 _ACEOF
8654 # The following way of writing the cache mishandles newlines in values,
8655 # but we know of no workaround that is simple, portable, and efficient.
8656 # So, don't put newlines in cache variables' values.
8657 # Ultrix sh set writes to stderr and can't be redirected directly,
8658 # and sets the high bit in the cache file unless we assign to the vars.
8660 (set) 2>&1 |
8661 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8662 *ac_space=\ *)
8663 # `set' does not quote correctly, so add quotes (double-quote
8664 # substitution turns \\\\ into \\, and sed turns \\ into \).
8665 sed -n \
8666 "s/'/'\\\\''/g;
8667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8670 # `set' quotes correctly as required by POSIX, so do not add quotes.
8671 sed -n \
8672 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8674 esac;
8676 sed '
8677 t clear
8678 : clear
8679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8680 t end
8681 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8682 : end' >>confcache
8683 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8684 if test -w $cache_file; then
8685 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8686 cat confcache >$cache_file
8687 else
8688 echo "not updating unwritable cache $cache_file"
8691 rm -f confcache
8693 # Checks for header files.
8694 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8695 # for constant arguments. Useless!
8696 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8697 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8698 if test "${ac_cv_working_alloca_h+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <alloca.h>
8709 main ()
8711 char *p = (char *) alloca (2 * sizeof (int));
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest$ac_exeext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_working_alloca_h=yes
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_cv_working_alloca_h=no
8745 rm -f conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8749 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8750 if test $ac_cv_working_alloca_h = yes; then
8752 cat >>confdefs.h <<\_ACEOF
8753 #define HAVE_ALLOCA_H 1
8754 _ACEOF
8758 echo "$as_me:$LINENO: checking for alloca" >&5
8759 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8760 if test "${ac_cv_func_alloca_works+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 #ifdef __GNUC__
8770 # define alloca __builtin_alloca
8771 #else
8772 # ifdef _MSC_VER
8773 # include <malloc.h>
8774 # define alloca _alloca
8775 # else
8776 # if HAVE_ALLOCA_H
8777 # include <alloca.h>
8778 # else
8779 # ifdef _AIX
8780 #pragma alloca
8781 # else
8782 # ifndef alloca /* predefined by HP cc +Olibcalls */
8783 char *alloca ();
8784 # endif
8785 # endif
8786 # endif
8787 # endif
8788 #endif
8791 main ()
8793 char *p = (char *) alloca (1);
8795 return 0;
8797 _ACEOF
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_func_alloca_works=yes
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_func_alloca_works=no
8827 rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8831 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8833 if test $ac_cv_func_alloca_works = yes; then
8835 cat >>confdefs.h <<\_ACEOF
8836 #define HAVE_ALLOCA 1
8837 _ACEOF
8839 else
8840 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8841 # that cause trouble. Some versions do not even contain alloca or
8842 # contain a buggy version. If you still want to use their alloca,
8843 # use ar to extract alloca.o from them instead of compiling alloca.c.
8845 ALLOCA=alloca.$ac_objext
8847 cat >>confdefs.h <<\_ACEOF
8848 #define C_ALLOCA 1
8849 _ACEOF
8852 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8853 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8854 if test "${ac_cv_os_cray+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 #if defined(CRAY) && ! defined(CRAY2)
8864 webecray
8865 #else
8866 wenotbecray
8867 #endif
8869 _ACEOF
8870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8871 $EGREP "webecray" >/dev/null 2>&1; then
8872 ac_cv_os_cray=yes
8873 else
8874 ac_cv_os_cray=no
8876 rm -f conftest*
8879 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8880 echo "${ECHO_T}$ac_cv_os_cray" >&6
8881 if test $ac_cv_os_cray = yes; then
8882 for ac_func in _getb67 GETB67 getb67; do
8883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884 echo "$as_me:$LINENO: checking for $ac_func" >&5
8885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886 if eval "test \"\${$as_ac_var+set}\" = set"; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8897 #define $ac_func innocuous_$ac_func
8899 /* System header to define __stub macros and hopefully few prototypes,
8900 which can conflict with char $ac_func (); below.
8901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8902 <limits.h> exists even on freestanding compilers. */
8904 #ifdef __STDC__
8905 # include <limits.h>
8906 #else
8907 # include <assert.h>
8908 #endif
8910 #undef $ac_func
8912 /* Override any gcc2 internal prototype to avoid an error. */
8913 #ifdef __cplusplus
8914 extern "C"
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919 char $ac_func ();
8920 /* The GNU C library defines this for functions which it implements
8921 to always fail with ENOSYS. Some functions are actually named
8922 something starting with __ and the normal name is an alias. */
8923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8924 choke me
8925 #else
8926 char (*f) () = $ac_func;
8927 #endif
8928 #ifdef __cplusplus
8930 #endif
8933 main ()
8935 return f != $ac_func;
8937 return 0;
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 eval "$as_ac_var=yes"
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 eval "$as_ac_var=no"
8969 rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8974 if test `eval echo '${'$as_ac_var'}'` = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define CRAY_STACKSEG_END $ac_func
8978 _ACEOF
8980 break
8983 done
8986 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8987 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8988 if test "${ac_cv_c_stack_direction+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 if test "$cross_compiling" = yes; then
8992 ac_cv_c_stack_direction=0
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. */
9001 find_stack_direction ()
9003 static char *addr = 0;
9004 auto char dummy;
9005 if (addr == 0)
9007 addr = &dummy;
9008 return find_stack_direction ();
9010 else
9011 return (&dummy > addr) ? 1 : -1;
9015 main ()
9017 exit (find_stack_direction () < 0);
9019 _ACEOF
9020 rm -f conftest$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_c_stack_direction=1
9032 else
9033 echo "$as_me: program exited with status $ac_status" >&5
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ( exit $ac_status )
9038 ac_cv_c_stack_direction=-1
9040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9043 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9044 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9046 cat >>confdefs.h <<_ACEOF
9047 #define STACK_DIRECTION $ac_cv_c_stack_direction
9048 _ACEOF
9058 ac_header_dirent=no
9059 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9060 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9061 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9062 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h. */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 #include <sys/types.h>
9073 #include <$ac_hdr>
9076 main ()
9078 if ((DIR *) 0)
9079 return 0;
9081 return 0;
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>conftest.er1
9087 ac_status=$?
9088 grep -v '^ *+' conftest.er1 >conftest.err
9089 rm -f conftest.er1
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -z "$ac_c_werror_flag"
9094 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest.$ac_objext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 eval "$as_ac_Header=yes"
9107 else
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 eval "$as_ac_Header=no"
9113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9120 _ACEOF
9122 ac_header_dirent=$ac_hdr; break
9125 done
9126 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9127 if test $ac_header_dirent = dirent.h; then
9128 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9129 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9130 if test "${ac_cv_search_opendir+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 ac_func_search_save_LIBS=$LIBS
9134 ac_cv_search_opendir=no
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 /* Override any gcc2 internal prototype to avoid an error. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char opendir ();
9150 main ()
9152 opendir ();
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_search_opendir="none required"
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9185 rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test "$ac_cv_search_opendir" = no; then
9188 for ac_lib in dir; do
9189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9197 /* Override any gcc2 internal prototype to avoid an error. */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9203 char opendir ();
9205 main ()
9207 opendir ();
9209 return 0;
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214 (eval $ac_link) 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag"
9222 || test ! -s conftest.err'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; } &&
9228 { ac_try='test -s conftest$ac_exeext'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_cv_search_opendir="-l$ac_lib"
9235 break
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9241 rm -f conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 done
9245 LIBS=$ac_func_search_save_LIBS
9247 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9248 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9249 if test "$ac_cv_search_opendir" != no; then
9250 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9254 else
9255 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9256 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9257 if test "${ac_cv_search_opendir+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260 ac_func_search_save_LIBS=$LIBS
9261 ac_cv_search_opendir=no
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9269 /* Override any gcc2 internal prototype to avoid an error. */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275 char opendir ();
9277 main ()
9279 opendir ();
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_search_opendir="none required"
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test "$ac_cv_search_opendir" = no; then
9315 for ac_lib in x; do
9316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9324 /* Override any gcc2 internal prototype to avoid an error. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9330 char opendir ();
9332 main ()
9334 opendir ();
9336 return 0;
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341 (eval $ac_link) 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_search_opendir="-l$ac_lib"
9362 break
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9368 rm -f conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 done
9372 LIBS=$ac_func_search_save_LIBS
9374 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9375 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9376 if test "$ac_cv_search_opendir" != no; then
9377 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9383 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9385 if test "${ac_cv_header_stdc+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <stdlib.h>
9395 #include <stdarg.h>
9396 #include <string.h>
9397 #include <float.h>
9400 main ()
9404 return 0;
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest.$ac_objext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 ac_cv_header_stdc=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_cv_header_stdc=no
9436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9438 if test $ac_cv_header_stdc = yes; then
9439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h. */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 #include <string.h>
9448 _ACEOF
9449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9450 $EGREP "memchr" >/dev/null 2>&1; then
9452 else
9453 ac_cv_header_stdc=no
9455 rm -f conftest*
9459 if test $ac_cv_header_stdc = yes; then
9460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 #include <stdlib.h>
9469 _ACEOF
9470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9471 $EGREP "free" >/dev/null 2>&1; then
9473 else
9474 ac_cv_header_stdc=no
9476 rm -f conftest*
9480 if test $ac_cv_header_stdc = yes; then
9481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9482 if test "$cross_compiling" = yes; then
9484 else
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 #include <ctype.h>
9492 #if ((' ' & 0x0FF) == 0x020)
9493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9495 #else
9496 # define ISLOWER(c) \
9497 (('a' <= (c) && (c) <= 'i') \
9498 || ('j' <= (c) && (c) <= 'r') \
9499 || ('s' <= (c) && (c) <= 'z'))
9500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9501 #endif
9503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9505 main ()
9507 int i;
9508 for (i = 0; i < 256; i++)
9509 if (XOR (islower (i), ISLOWER (i))
9510 || toupper (i) != TOUPPER (i))
9511 exit(2);
9512 exit (0);
9514 _ACEOF
9515 rm -f conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9527 else
9528 echo "$as_me: program exited with status $ac_status" >&5
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ( exit $ac_status )
9533 ac_cv_header_stdc=no
9535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9539 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9540 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9541 if test $ac_cv_header_stdc = yes; then
9543 cat >>confdefs.h <<\_ACEOF
9544 #define STDC_HEADERS 1
9545 _ACEOF
9583 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9587 echo "$as_me:$LINENO: checking for $ac_header" >&5
9588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9594 else
9595 # Is the header compilable?
9596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 #include <$ac_header>
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609 (eval $ac_compile) 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -z "$ac_c_werror_flag"
9617 || test ! -s conftest.err'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest.$ac_objext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_header_compiler=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_header_compiler=no
9636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9638 echo "${ECHO_T}$ac_header_compiler" >&6
9640 # Is the header present?
9641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <$ac_header>
9650 _ACEOF
9651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } >/dev/null; then
9659 if test -s conftest.err; then
9660 ac_cpp_err=$ac_c_preproc_warn_flag
9661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9662 else
9663 ac_cpp_err=
9665 else
9666 ac_cpp_err=yes
9668 if test -z "$ac_cpp_err"; then
9669 ac_header_preproc=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_header_preproc=no
9676 rm -f conftest.err conftest.$ac_ext
9677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6
9680 # So? What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9682 yes:no: )
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9687 ac_header_preproc=yes
9689 no:yes:* )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9703 cat <<\_ASBOX
9704 ## ------------------------------ ##
9705 ## Report this to admin@amule.org ##
9706 ## ------------------------------ ##
9707 _ASBOX
9709 sed "s/^/$as_me: WARNING: /" >&2
9711 esac
9712 echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9730 done
9732 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9733 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9734 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 #include <sys/types.h>
9744 #include <sys/wait.h>
9745 #ifndef WEXITSTATUS
9746 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9747 #endif
9748 #ifndef WIFEXITED
9749 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9750 #endif
9753 main ()
9755 int s;
9756 wait (&s);
9757 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 (eval $ac_compile) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest.$ac_objext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_header_sys_wait_h=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_header_sys_wait_h=no
9791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9794 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9795 if test $ac_cv_header_sys_wait_h = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_SYS_WAIT_H 1
9799 _ACEOF
9804 # Checks for typedefs, structures, and compiler characteristics.
9805 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9806 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9807 if test "${ac_cv_header_stdbool_h+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9817 #include <stdbool.h>
9818 #ifndef bool
9819 # error bool is not defined
9820 #endif
9821 #ifndef false
9822 # error false is not defined
9823 #endif
9824 #if false
9825 # error false is not 0
9826 #endif
9827 #ifndef true
9828 # error true is not defined
9829 #endif
9830 #if true != 1
9831 # error true is not 1
9832 #endif
9833 #ifndef __bool_true_false_are_defined
9834 # error __bool_true_false_are_defined is not defined
9835 #endif
9837 struct s { _Bool s: 1; _Bool t; } s;
9839 char a[true == 1 ? 1 : -1];
9840 char b[false == 0 ? 1 : -1];
9841 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9842 char d[(bool) -0.5 == true ? 1 : -1];
9843 bool e = &s;
9844 char f[(_Bool) -0.0 == false ? 1 : -1];
9845 char g[true];
9846 char h[sizeof (_Bool)];
9847 char i[sizeof s.t];
9850 main ()
9852 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9879 ac_cv_header_stdbool_h=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_header_stdbool_h=no
9886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9889 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9890 echo "$as_me:$LINENO: checking for _Bool" >&5
9891 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9892 if test "${ac_cv_type__Bool+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 $ac_includes_default
9903 main ()
9905 if ((_Bool *) 0)
9906 return 0;
9907 if (sizeof (_Bool))
9908 return 0;
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_type__Bool=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_type__Bool=no
9942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9945 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9946 if test $ac_cv_type__Bool = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define HAVE__BOOL 1
9950 _ACEOF
9955 if test $ac_cv_header_stdbool_h = yes; then
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_STDBOOL_H 1
9959 _ACEOF
9963 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9964 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9965 if test "${ac_cv_c_const+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9976 main ()
9978 /* FIXME: Include the comments suggested by Paul. */
9979 #ifndef __cplusplus
9980 /* Ultrix mips cc rejects this. */
9981 typedef int charset[2];
9982 const charset x;
9983 /* SunOS 4.1.1 cc rejects this. */
9984 char const *const *ccp;
9985 char **p;
9986 /* NEC SVR4.0.2 mips cc rejects this. */
9987 struct point {int x, y;};
9988 static struct point const zero = {0,0};
9989 /* AIX XL C 1.02.0.0 rejects this.
9990 It does not let you subtract one const X* pointer from another in
9991 an arm of an if-expression whose if-part is not a constant
9992 expression */
9993 const char *g = "string";
9994 ccp = &g + (g ? g-g : 0);
9995 /* HPUX 7.0 cc rejects these. */
9996 ++ccp;
9997 p = (char**) ccp;
9998 ccp = (char const *const *) p;
9999 { /* SCO 3.2v4 cc rejects this. */
10000 char *t;
10001 char const *s = 0 ? (char *) 0 : (char const *) 0;
10003 *t++ = 0;
10005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10006 int x[] = {25, 17};
10007 const int *foo = &x[0];
10008 ++foo;
10010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10011 typedef const int *iptr;
10012 iptr p = 0;
10013 ++p;
10015 { /* AIX XL C 1.02.0.0 rejects this saying
10016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10017 struct s { int j; const int *ap[3]; };
10018 struct s *b; b->j = 5;
10020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10021 const int foo = 10;
10023 #endif
10026 return 0;
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_c_const=yes
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_c_const=no
10058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10061 echo "${ECHO_T}$ac_cv_c_const" >&6
10062 if test $ac_cv_c_const = no; then
10064 cat >>confdefs.h <<\_ACEOF
10065 #define const
10066 _ACEOF
10070 echo "$as_me:$LINENO: checking for inline" >&5
10071 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10072 if test "${ac_cv_c_inline+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 ac_cv_c_inline=no
10076 for ac_kw in inline __inline__ __inline; do
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #ifndef __cplusplus
10084 typedef int foo_t;
10085 static $ac_kw foo_t static_foo () {return 0; }
10086 $ac_kw foo_t foo () {return 0; }
10087 #endif
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092 (eval $ac_compile) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_c_inline=$ac_kw; break
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119 done
10122 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10123 echo "${ECHO_T}$ac_cv_c_inline" >&6
10126 case $ac_cv_c_inline in
10127 inline | yes) ;;
10129 case $ac_cv_c_inline in
10130 no) ac_val=;;
10131 *) ac_val=$ac_cv_c_inline;;
10132 esac
10133 cat >>confdefs.h <<_ACEOF
10134 #ifndef __cplusplus
10135 #define inline $ac_val
10136 #endif
10137 _ACEOF
10139 esac
10141 echo "$as_me:$LINENO: checking for mode_t" >&5
10142 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10143 if test "${ac_cv_type_mode_t+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 $ac_includes_default
10154 main ()
10156 if ((mode_t *) 0)
10157 return 0;
10158 if (sizeof (mode_t))
10159 return 0;
10161 return 0;
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest.$ac_objext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_type_mode_t=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_cv_type_mode_t=no
10193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10196 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10197 if test $ac_cv_type_mode_t = yes; then
10199 else
10201 cat >>confdefs.h <<_ACEOF
10202 #define mode_t int
10203 _ACEOF
10207 echo "$as_me:$LINENO: checking for off_t" >&5
10208 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10209 if test "${ac_cv_type_off_t+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 $ac_includes_default
10220 main ()
10222 if ((off_t *) 0)
10223 return 0;
10224 if (sizeof (off_t))
10225 return 0;
10227 return 0;
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag"
10240 || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_type_off_t=yes
10253 else
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_type_off_t=no
10259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10262 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10263 if test $ac_cv_type_off_t = yes; then
10265 else
10267 cat >>confdefs.h <<_ACEOF
10268 #define off_t long
10269 _ACEOF
10273 echo "$as_me:$LINENO: checking for size_t" >&5
10274 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10275 if test "${ac_cv_type_size_t+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 $ac_includes_default
10286 main ()
10288 if ((size_t *) 0)
10289 return 0;
10290 if (sizeof (size_t))
10291 return 0;
10293 return 0;
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298 (eval $ac_compile) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest.$ac_objext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_type_size_t=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_type_size_t=no
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10328 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10329 if test $ac_cv_type_size_t = yes; then
10331 else
10333 cat >>confdefs.h <<_ACEOF
10334 #define size_t unsigned
10335 _ACEOF
10339 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10340 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10341 if test "${ac_cv_header_time+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h. */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 #include <sys/types.h>
10351 #include <sys/time.h>
10352 #include <time.h>
10355 main ()
10357 if ((struct tm *) 0)
10358 return 0;
10360 return 0;
10362 _ACEOF
10363 rm -f conftest.$ac_objext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -z "$ac_c_werror_flag"
10373 || test ! -s conftest.err'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest.$ac_objext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_header_time=yes
10386 else
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_header_time=no
10392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10395 echo "${ECHO_T}$ac_cv_header_time" >&6
10396 if test $ac_cv_header_time = yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define TIME_WITH_SYS_TIME 1
10400 _ACEOF
10404 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10406 if test "${ac_cv_struct_tm+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <sys/types.h>
10416 #include <time.h>
10419 main ()
10421 struct tm *tp; tp->tm_sec;
10423 return 0;
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_struct_tm=time.h
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_cv_struct_tm=sys/time.h
10455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10457 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10458 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10459 if test $ac_cv_struct_tm = sys/time.h; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define TM_IN_SYS_TIME 1
10463 _ACEOF
10467 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10468 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10469 if test "${ac_cv_type_uid_t+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 #include <sys/types.h>
10480 _ACEOF
10481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10482 $EGREP "uid_t" >/dev/null 2>&1; then
10483 ac_cv_type_uid_t=yes
10484 else
10485 ac_cv_type_uid_t=no
10487 rm -f conftest*
10490 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10491 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10492 if test $ac_cv_type_uid_t = no; then
10494 cat >>confdefs.h <<\_ACEOF
10495 #define uid_t int
10496 _ACEOF
10499 cat >>confdefs.h <<\_ACEOF
10500 #define gid_t int
10501 _ACEOF
10505 echo "$as_me:$LINENO: checking for working volatile" >&5
10506 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10507 if test "${ac_cv_c_volatile+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. */
10518 main ()
10521 volatile int x;
10522 int * volatile y;
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_c_volatile=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_cv_c_volatile=no
10556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10559 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10560 if test $ac_cv_c_volatile = no; then
10562 cat >>confdefs.h <<\_ACEOF
10563 #define volatile
10564 _ACEOF
10568 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10569 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10570 if test "${ac_cv_type_ptrdiff_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 $ac_includes_default
10581 main ()
10583 if ((ptrdiff_t *) 0)
10584 return 0;
10585 if (sizeof (ptrdiff_t))
10586 return 0;
10588 return 0;
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_c_werror_flag"
10601 || test ! -s conftest.err'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_cv_type_ptrdiff_t=yes
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_cv_type_ptrdiff_t=no
10620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10623 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10624 if test $ac_cv_type_ptrdiff_t = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_PTRDIFF_T 1
10628 _ACEOF
10634 # Checks for library functions.
10635 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10636 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10637 if test "${ac_cv_func_closedir_void+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 if test "$cross_compiling" = yes; then
10641 ac_cv_func_closedir_void=yes
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 $ac_includes_default
10650 #include <$ac_header_dirent>
10651 #ifndef __cplusplus
10652 int closedir ();
10653 #endif
10656 main ()
10658 exit (closedir (opendir (".")) != 0);
10660 return 0;
10662 _ACEOF
10663 rm -f conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_func_closedir_void=no
10675 else
10676 echo "$as_me: program exited with status $ac_status" >&5
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ( exit $ac_status )
10681 ac_cv_func_closedir_void=yes
10683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10687 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10688 if test $ac_cv_func_closedir_void = yes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define CLOSEDIR_VOID 1
10692 _ACEOF
10696 if test $ac_cv_c_compiler_gnu = yes; then
10697 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10698 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10699 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702 ac_pattern="Autoconf.*'x'"
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <sgtty.h>
10710 Autoconf TIOCGETP
10711 _ACEOF
10712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10713 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10714 ac_cv_prog_gcc_traditional=yes
10715 else
10716 ac_cv_prog_gcc_traditional=no
10718 rm -f conftest*
10721 if test $ac_cv_prog_gcc_traditional = no; then
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h. */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 #include <termio.h>
10729 Autoconf TCGETA
10730 _ACEOF
10731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10732 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10733 ac_cv_prog_gcc_traditional=yes
10735 rm -f conftest*
10739 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10740 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10741 if test $ac_cv_prog_gcc_traditional = yes; then
10742 CC="$CC -traditional"
10746 echo "$as_me:$LINENO: checking for pid_t" >&5
10747 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10748 if test "${ac_cv_type_pid_t+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 $ac_includes_default
10759 main ()
10761 if ((pid_t *) 0)
10762 return 0;
10763 if (sizeof (pid_t))
10764 return 0;
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771 (eval $ac_compile) 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag"
10779 || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest.$ac_objext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_type_pid_t=yes
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10796 ac_cv_type_pid_t=no
10798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10801 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10802 if test $ac_cv_type_pid_t = yes; then
10804 else
10806 cat >>confdefs.h <<_ACEOF
10807 #define pid_t int
10808 _ACEOF
10814 for ac_header in unistd.h vfork.h
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818 echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10825 else
10826 # Is the header compilable?
10827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 #include <$ac_header>
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_header_compiler=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_header_compiler=no
10867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10869 echo "${ECHO_T}$ac_header_compiler" >&6
10871 # Is the header present?
10872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <$ac_header>
10881 _ACEOF
10882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev/null; then
10890 if test -s conftest.err; then
10891 ac_cpp_err=$ac_c_preproc_warn_flag
10892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10893 else
10894 ac_cpp_err=
10896 else
10897 ac_cpp_err=yes
10899 if test -z "$ac_cpp_err"; then
10900 ac_header_preproc=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_header_preproc=no
10907 rm -f conftest.err conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10909 echo "${ECHO_T}$ac_header_preproc" >&6
10911 # So? What about this header?
10912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10913 yes:no: )
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10918 ac_header_preproc=yes
10920 no:yes:* )
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10934 cat <<\_ASBOX
10935 ## ------------------------------ ##
10936 ## Report this to admin@amule.org ##
10937 ## ------------------------------ ##
10938 _ASBOX
10940 sed "s/^/$as_me: WARNING: /" >&2
10942 esac
10943 echo "$as_me:$LINENO: checking for $ac_header" >&5
10944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 eval "$as_ac_Header=\$ac_header_preproc"
10950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10955 cat >>confdefs.h <<_ACEOF
10956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10957 _ACEOF
10961 done
10965 for ac_func in fork vfork
10967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968 echo "$as_me:$LINENO: checking for $ac_func" >&5
10969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10970 if eval "test \"\${$as_ac_var+set}\" = set"; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h. */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10981 #define $ac_func innocuous_$ac_func
10983 /* System header to define __stub macros and hopefully few prototypes,
10984 which can conflict with char $ac_func (); below.
10985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10986 <limits.h> exists even on freestanding compilers. */
10988 #ifdef __STDC__
10989 # include <limits.h>
10990 #else
10991 # include <assert.h>
10992 #endif
10994 #undef $ac_func
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 #ifdef __cplusplus
10998 extern "C"
11000 #endif
11001 /* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003 char $ac_func ();
11004 /* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
11007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11008 choke me
11009 #else
11010 char (*f) () = $ac_func;
11011 #endif
11012 #ifdef __cplusplus
11014 #endif
11017 main ()
11019 return f != $ac_func;
11021 return 0;
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11047 else
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11053 rm -f conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11064 done
11066 if test "x$ac_cv_func_fork" = xyes; then
11067 echo "$as_me:$LINENO: checking for working fork" >&5
11068 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11069 if test "${ac_cv_func_fork_works+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 if test "$cross_compiling" = yes; then
11073 ac_cv_func_fork_works=cross
11074 else
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* By Ruediger Kuhlmann. */
11077 #include <sys/types.h>
11078 #if HAVE_UNISTD_H
11079 # include <unistd.h>
11080 #endif
11081 /* Some systems only have a dummy stub for fork() */
11082 int main ()
11084 if (fork() < 0)
11085 exit (1);
11086 exit (0);
11088 _ACEOF
11089 rm -f conftest$ac_exeext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091 (eval $ac_link) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_cv_func_fork_works=yes
11101 else
11102 echo "$as_me: program exited with status $ac_status" >&5
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ( exit $ac_status )
11107 ac_cv_func_fork_works=no
11109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11112 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11113 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11115 else
11116 ac_cv_func_fork_works=$ac_cv_func_fork
11118 if test "x$ac_cv_func_fork_works" = xcross; then
11119 case $host in
11120 *-*-amigaos* | *-*-msdosdjgpp*)
11121 # Override, as these systems have only a dummy fork() stub
11122 ac_cv_func_fork_works=no
11125 ac_cv_func_fork_works=yes
11127 esac
11128 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11129 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11131 ac_cv_func_vfork_works=$ac_cv_func_vfork
11132 if test "x$ac_cv_func_vfork" = xyes; then
11133 echo "$as_me:$LINENO: checking for working vfork" >&5
11134 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11135 if test "${ac_cv_func_vfork_works+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 if test "$cross_compiling" = yes; then
11139 ac_cv_func_vfork_works=cross
11140 else
11141 cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h. */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11147 /* Thanks to Paul Eggert for this test. */
11148 #include <stdio.h>
11149 #include <stdlib.h>
11150 #include <sys/types.h>
11151 #include <sys/stat.h>
11152 #include <sys/wait.h>
11153 #if HAVE_UNISTD_H
11154 # include <unistd.h>
11155 #endif
11156 #if HAVE_VFORK_H
11157 # include <vfork.h>
11158 #endif
11159 /* On some sparc systems, changes by the child to local and incoming
11160 argument registers are propagated back to the parent. The compiler
11161 is told about this with #include <vfork.h>, but some compilers
11162 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11163 static variable whose address is put into a register that is
11164 clobbered by the vfork. */
11165 static void
11166 #ifdef __cplusplus
11167 sparc_address_test (int arg)
11168 # else
11169 sparc_address_test (arg) int arg;
11170 #endif
11172 static pid_t child;
11173 if (!child) {
11174 child = vfork ();
11175 if (child < 0) {
11176 perror ("vfork");
11177 _exit(2);
11179 if (!child) {
11180 arg = getpid();
11181 write(-1, "", 0);
11182 _exit (arg);
11188 main ()
11190 pid_t parent = getpid ();
11191 pid_t child;
11193 sparc_address_test (0);
11195 child = vfork ();
11197 if (child == 0) {
11198 /* Here is another test for sparc vfork register problems. This
11199 test uses lots of local variables, at least as many local
11200 variables as main has allocated so far including compiler
11201 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11202 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11203 reuse the register of parent for one of the local variables,
11204 since it will think that parent can't possibly be used any more
11205 in this routine. Assigning to the local variable will thus
11206 munge parent in the parent process. */
11207 pid_t
11208 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11209 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11210 /* Convince the compiler that p..p7 are live; otherwise, it might
11211 use the same hardware register for all 8 local variables. */
11212 if (p != p1 || p != p2 || p != p3 || p != p4
11213 || p != p5 || p != p6 || p != p7)
11214 _exit(1);
11216 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11217 from child file descriptors. If the child closes a descriptor
11218 before it execs or exits, this munges the parent's descriptor
11219 as well. Test for this by closing stdout in the child. */
11220 _exit(close(fileno(stdout)) != 0);
11221 } else {
11222 int status;
11223 struct stat st;
11225 while (wait(&status) != child)
11227 exit(
11228 /* Was there some problem with vforking? */
11229 child < 0
11231 /* Did the child fail? (This shouldn't happen.) */
11232 || status
11234 /* Did the vfork/compiler bug occur? */
11235 || parent != getpid()
11237 /* Did the file descriptor bug occur? */
11238 || fstat(fileno(stdout), &st) != 0
11242 _ACEOF
11243 rm -f conftest$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_func_vfork_works=yes
11255 else
11256 echo "$as_me: program exited with status $ac_status" >&5
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ( exit $ac_status )
11261 ac_cv_func_vfork_works=no
11263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11267 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11270 if test "x$ac_cv_func_fork_works" = xcross; then
11271 ac_cv_func_vfork_works=$ac_cv_func_vfork
11272 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11273 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11276 if test "x$ac_cv_func_vfork_works" = xyes; then
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_WORKING_VFORK 1
11280 _ACEOF
11282 else
11284 cat >>confdefs.h <<\_ACEOF
11285 #define vfork fork
11286 _ACEOF
11289 if test "x$ac_cv_func_fork_works" = xyes; then
11291 cat >>confdefs.h <<\_ACEOF
11292 #define HAVE_WORKING_FORK 1
11293 _ACEOF
11297 if test x$SYS != xwin32; then
11299 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11300 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11301 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11302 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-lsun $LIBS"
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11314 /* Override any gcc2 internal prototype to avoid an error. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 /* We use char because int might match the return type of a gcc2
11319 builtin and then its argument prototype would still apply. */
11320 char getmntent ();
11322 main ()
11324 getmntent ();
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest$ac_exeext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_lib_sun_getmntent=yes
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_cv_lib_sun_getmntent=no
11358 rm -f conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_lib_save_LIBS
11362 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11363 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11364 if test $ac_cv_lib_sun_getmntent = yes; then
11365 LIBS="-lsun $LIBS"
11366 else
11367 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11368 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11369 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-lseq $LIBS"
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11381 /* Override any gcc2 internal prototype to avoid an error. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 /* We use char because int might match the return type of a gcc2
11386 builtin and then its argument prototype would still apply. */
11387 char getmntent ();
11389 main ()
11391 getmntent ();
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest$ac_exeext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_cv_lib_seq_getmntent=yes
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_cv_lib_seq_getmntent=no
11425 rm -f conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11430 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11431 if test $ac_cv_lib_seq_getmntent = yes; then
11432 LIBS="-lseq $LIBS"
11433 else
11434 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11435 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11436 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439 ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-lgen $LIBS"
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11448 /* Override any gcc2 internal prototype to avoid an error. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 /* We use char because int might match the return type of a gcc2
11453 builtin and then its argument prototype would still apply. */
11454 char getmntent ();
11456 main ()
11458 getmntent ();
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11465 (eval $ac_link) 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag"
11473 || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest$ac_exeext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_cv_lib_gen_getmntent=yes
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_cv_lib_gen_getmntent=no
11492 rm -f conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11496 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11497 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11498 if test $ac_cv_lib_gen_getmntent = yes; then
11499 LIBS="-lgen $LIBS"
11507 for ac_func in getmntent
11509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510 echo "$as_me:$LINENO: checking for $ac_func" >&5
11511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11512 if eval "test \"\${$as_ac_var+set}\" = set"; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define $ac_func innocuous_$ac_func
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11530 #ifdef __STDC__
11531 # include <limits.h>
11532 #else
11533 # include <assert.h>
11534 #endif
11536 #undef $ac_func
11538 /* Override any gcc2 internal prototype to avoid an error. */
11539 #ifdef __cplusplus
11540 extern "C"
11542 #endif
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11545 char $ac_func ();
11546 /* The GNU C library defines this for functions which it implements
11547 to always fail with ENOSYS. Some functions are actually named
11548 something starting with __ and the normal name is an alias. */
11549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11550 choke me
11551 #else
11552 char (*f) () = $ac_func;
11553 #endif
11554 #ifdef __cplusplus
11556 #endif
11559 main ()
11561 return f != $ac_func;
11563 return 0;
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 eval "$as_ac_var=yes"
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 eval "$as_ac_var=no"
11595 rm -f conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11600 if test `eval echo '${'$as_ac_var'}'` = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11603 _ACEOF
11606 done
11609 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11610 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11611 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614 rm -f conftest.sym conftest.file
11615 echo >conftest.file
11616 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11617 if test "$cross_compiling" = yes; then
11618 ac_cv_func_lstat_dereferences_slashed_symlink=no
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 $ac_includes_default
11628 main ()
11630 struct stat sbuf;
11631 /* Linux will dereference the symlink and fail.
11632 That is better in the sense that it means we will not
11633 have to compile and use the lstat wrapper. */
11634 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11636 return 0;
11638 _ACEOF
11639 rm -f conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11651 else
11652 echo "$as_me: program exited with status $ac_status" >&5
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ( exit $ac_status )
11657 ac_cv_func_lstat_dereferences_slashed_symlink=no
11659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11661 else
11662 # If the `ln -s' command failed, then we probably don't even
11663 # have an lstat function.
11664 ac_cv_func_lstat_dereferences_slashed_symlink=no
11666 rm -f conftest.sym conftest.file
11669 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11670 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11672 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11674 cat >>confdefs.h <<_ACEOF
11675 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11676 _ACEOF
11679 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11680 case $LIBOBJS in
11681 "lstat.$ac_objext" | \
11682 *" lstat.$ac_objext" | \
11683 "lstat.$ac_objext "* | \
11684 *" lstat.$ac_objext "* ) ;;
11685 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11686 esac
11690 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11691 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11692 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 if test "$cross_compiling" = yes; then
11696 ac_cv_func_lstat_empty_string_bug=yes
11697 else
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 $ac_includes_default
11706 main ()
11708 struct stat sbuf;
11709 exit (lstat ("", &sbuf) ? 1 : 0);
11711 return 0;
11713 _ACEOF
11714 rm -f conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_cv_func_lstat_empty_string_bug=yes
11726 else
11727 echo "$as_me: program exited with status $ac_status" >&5
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 ( exit $ac_status )
11732 ac_cv_func_lstat_empty_string_bug=no
11734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11738 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11739 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11740 case $LIBOBJS in
11741 "lstat.$ac_objext" | \
11742 *" lstat.$ac_objext" | \
11743 "lstat.$ac_objext "* | \
11744 *" lstat.$ac_objext "* ) ;;
11745 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11746 esac
11749 cat >>confdefs.h <<_ACEOF
11750 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11751 _ACEOF
11755 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11756 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11757 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 rm -f conftest.sym conftest.file
11761 echo >conftest.file
11762 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11763 if test "$cross_compiling" = yes; then
11764 ac_cv_func_lstat_dereferences_slashed_symlink=no
11765 else
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11774 main ()
11776 struct stat sbuf;
11777 /* Linux will dereference the symlink and fail.
11778 That is better in the sense that it means we will not
11779 have to compile and use the lstat wrapper. */
11780 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11782 return 0;
11784 _ACEOF
11785 rm -f conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11797 else
11798 echo "$as_me: program exited with status $ac_status" >&5
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ( exit $ac_status )
11803 ac_cv_func_lstat_dereferences_slashed_symlink=no
11805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11807 else
11808 # If the `ln -s' command failed, then we probably don't even
11809 # have an lstat function.
11810 ac_cv_func_lstat_dereferences_slashed_symlink=no
11812 rm -f conftest.sym conftest.file
11815 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11816 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11818 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11820 cat >>confdefs.h <<_ACEOF
11821 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11822 _ACEOF
11825 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11826 case $LIBOBJS in
11827 "lstat.$ac_objext" | \
11828 *" lstat.$ac_objext" | \
11829 "lstat.$ac_objext "* | \
11830 *" lstat.$ac_objext "* ) ;;
11831 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11832 esac
11839 echo "$as_me:$LINENO: checking for working memcmp" >&5
11840 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11841 if test "${ac_cv_func_memcmp_working+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 if test "$cross_compiling" = yes; then
11845 ac_cv_func_memcmp_working=no
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 $ac_includes_default
11855 main ()
11858 /* Some versions of memcmp are not 8-bit clean. */
11859 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11860 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11861 exit (1);
11863 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11864 or more and with at least one buffer not starting on a 4-byte boundary.
11865 William Lewis provided this test program. */
11867 char foo[21];
11868 char bar[21];
11869 int i;
11870 for (i = 0; i < 4; i++)
11872 char *a = foo + i;
11873 char *b = bar + i;
11874 strcpy (a, "--------01111111");
11875 strcpy (b, "--------10000000");
11876 if (memcmp (a, b, 16) >= 0)
11877 exit (1);
11879 exit (0);
11883 return 0;
11885 _ACEOF
11886 rm -f conftest$ac_exeext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888 (eval $ac_link) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_func_memcmp_working=yes
11898 else
11899 echo "$as_me: program exited with status $ac_status" >&5
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ( exit $ac_status )
11904 ac_cv_func_memcmp_working=no
11906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11910 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11911 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
11912 "memcmp.$ac_objext" | \
11913 *" memcmp.$ac_objext" | \
11914 "memcmp.$ac_objext "* | \
11915 *" memcmp.$ac_objext "* ) ;;
11916 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
11917 esac
11922 for ac_header in sys/select.h sys/socket.h
11924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo "$as_me:$LINENO: checking for $ac_header" >&5
11927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11933 else
11934 # Is the header compilable?
11935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 $ac_includes_default
11944 #include <$ac_header>
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948 (eval $ac_compile) 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -z "$ac_c_werror_flag"
11956 || test ! -s conftest.err'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; } &&
11962 { ac_try='test -s conftest.$ac_objext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_header_compiler=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_compiler=no
11975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11977 echo "${ECHO_T}$ac_header_compiler" >&6
11979 # Is the header present?
11980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 #include <$ac_header>
11989 _ACEOF
11990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } >/dev/null; then
11998 if test -s conftest.err; then
11999 ac_cpp_err=$ac_c_preproc_warn_flag
12000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12001 else
12002 ac_cpp_err=
12004 else
12005 ac_cpp_err=yes
12007 if test -z "$ac_cpp_err"; then
12008 ac_header_preproc=yes
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_header_preproc=no
12015 rm -f conftest.err conftest.$ac_ext
12016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017 echo "${ECHO_T}$ac_header_preproc" >&6
12019 # So? What about this header?
12020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12021 yes:no: )
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026 ac_header_preproc=yes
12028 no:yes:* )
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12042 cat <<\_ASBOX
12043 ## ------------------------------ ##
12044 ## Report this to admin@amule.org ##
12045 ## ------------------------------ ##
12046 _ASBOX
12048 sed "s/^/$as_me: WARNING: /" >&2
12050 esac
12051 echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 eval "$as_ac_Header=\$ac_header_preproc"
12058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12065 _ACEOF
12069 done
12071 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12072 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12073 if test "${ac_cv_func_select_args+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12077 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12078 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 $ac_includes_default
12086 #if HAVE_SYS_SELECT_H
12087 # include <sys/select.h>
12088 #endif
12089 #if HAVE_SYS_SOCKET_H
12090 # include <sys/socket.h>
12091 #endif
12094 main ()
12096 extern int select ($ac_arg1,
12097 $ac_arg234, $ac_arg234, $ac_arg234,
12098 $ac_arg5);
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12126 else
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12132 done
12133 done
12134 done
12135 # Provide a safe default value.
12136 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12139 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12140 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12141 ac_save_IFS=$IFS; IFS=','
12142 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12143 IFS=$ac_save_IFS
12144 shift
12146 cat >>confdefs.h <<_ACEOF
12147 #define SELECT_TYPE_ARG1 $1
12148 _ACEOF
12151 cat >>confdefs.h <<_ACEOF
12152 #define SELECT_TYPE_ARG234 ($2)
12153 _ACEOF
12156 cat >>confdefs.h <<_ACEOF
12157 #define SELECT_TYPE_ARG5 ($3)
12158 _ACEOF
12160 rm -f conftest*
12162 echo "$as_me:$LINENO: checking for function prototypes" >&5
12163 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12164 if test "$ac_cv_prog_cc_stdc" != no; then
12165 echo "$as_me:$LINENO: result: yes" >&5
12166 echo "${ECHO_T}yes" >&6
12168 cat >>confdefs.h <<\_ACEOF
12169 #define PROTOTYPES 1
12170 _ACEOF
12173 cat >>confdefs.h <<\_ACEOF
12174 #define __PROTOTYPES 1
12175 _ACEOF
12177 else
12178 echo "$as_me:$LINENO: result: no" >&5
12179 echo "${ECHO_T}no" >&6
12182 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12183 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12184 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187 ac_cv_func_setvbuf_reversed=no
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 #include <stdio.h>
12195 # if PROTOTYPES
12196 int (setvbuf) (FILE *, int, char *, size_t);
12197 # endif
12199 main ()
12201 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12203 return 0;
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag"
12216 || test ! -s conftest.err'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 #include <stdio.h>
12235 # if PROTOTYPES
12236 int (setvbuf) (FILE *, int, char *, size_t);
12237 # endif
12239 main ()
12241 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12243 return 0;
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248 (eval $ac_link) 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag"
12256 || test ! -s conftest.err'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 # It compiles and links either way, so it must not be declared
12269 # with a prototype and most likely this is a K&R C compiler.
12270 # Try running it.
12271 if test "$cross_compiling" = yes; then
12272 : # Assume setvbuf is not reversed when cross-compiling.
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 #include <stdio.h>
12282 main ()
12284 /* This call has the arguments reversed.
12285 A reversed system may check and see that the address of buf
12286 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12287 char buf;
12288 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12289 exit (1);
12290 putchar ('\r');
12291 exit (0); /* Non-reversed systems SEGV here. */
12293 return 0;
12295 _ACEOF
12296 rm -f conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_func_setvbuf_reversed=yes
12308 else
12309 echo "$as_me: program exited with status $ac_status" >&5
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ( exit $ac_status )
12314 rm -f core *.core
12316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12318 ac_cv_func_setvbuf_reversed=yes
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12324 rm -f conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 else
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12334 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12335 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12336 if test $ac_cv_func_setvbuf_reversed = yes; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define SETVBUF_REVERSED 1
12340 _ACEOF
12344 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12345 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12346 if test "${ac_cv_type_signal+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include <sys/types.h>
12356 #include <signal.h>
12357 #ifdef signal
12358 # undef signal
12359 #endif
12360 #ifdef __cplusplus
12361 extern "C" void (*signal (int, void (*)(int)))(int);
12362 #else
12363 void (*signal ()) ();
12364 #endif
12367 main ()
12369 int i;
12371 return 0;
12373 _ACEOF
12374 rm -f conftest.$ac_objext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12376 (eval $ac_compile) 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag"
12384 || test ! -s conftest.err'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_type_signal=void
12397 else
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_cv_type_signal=int
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12405 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12406 echo "${ECHO_T}$ac_cv_type_signal" >&6
12408 cat >>confdefs.h <<_ACEOF
12409 #define RETSIGTYPE $ac_cv_type_signal
12410 _ACEOF
12413 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12414 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12415 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 if test "$cross_compiling" = yes; then
12419 ac_cv_func_stat_empty_string_bug=yes
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 $ac_includes_default
12429 main ()
12431 struct stat sbuf;
12432 exit (stat ("", &sbuf) ? 1 : 0);
12434 return 0;
12436 _ACEOF
12437 rm -f conftest$ac_exeext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12439 (eval $ac_link) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_func_stat_empty_string_bug=yes
12449 else
12450 echo "$as_me: program exited with status $ac_status" >&5
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ( exit $ac_status )
12455 ac_cv_func_stat_empty_string_bug=no
12457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12461 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12462 if test $ac_cv_func_stat_empty_string_bug = yes; then
12463 case $LIBOBJS in
12464 "stat.$ac_objext" | \
12465 *" stat.$ac_objext" | \
12466 "stat.$ac_objext "* | \
12467 *" stat.$ac_objext "* ) ;;
12468 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12469 esac
12472 cat >>confdefs.h <<_ACEOF
12473 #define HAVE_STAT_EMPTY_STRING_BUG 1
12474 _ACEOF
12479 for ac_func in strftime
12481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12482 echo "$as_me:$LINENO: checking for $ac_func" >&5
12483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12484 if eval "test \"\${$as_ac_var+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12495 #define $ac_func innocuous_$ac_func
12497 /* System header to define __stub macros and hopefully few prototypes,
12498 which can conflict with char $ac_func (); below.
12499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12500 <limits.h> exists even on freestanding compilers. */
12502 #ifdef __STDC__
12503 # include <limits.h>
12504 #else
12505 # include <assert.h>
12506 #endif
12508 #undef $ac_func
12510 /* Override any gcc2 internal prototype to avoid an error. */
12511 #ifdef __cplusplus
12512 extern "C"
12514 #endif
12515 /* We use char because int might match the return type of a gcc2
12516 builtin and then its argument prototype would still apply. */
12517 char $ac_func ();
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522 choke me
12523 #else
12524 char (*f) () = $ac_func;
12525 #endif
12526 #ifdef __cplusplus
12528 #endif
12531 main ()
12533 return f != $ac_func;
12535 return 0;
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_c_werror_flag"
12548 || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 eval "$as_ac_var=yes"
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 eval "$as_ac_var=no"
12567 rm -f conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12572 if test `eval echo '${'$as_ac_var'}'` = yes; then
12573 cat >>confdefs.h <<_ACEOF
12574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12575 _ACEOF
12577 else
12578 # strftime is in -lintl on SCO UNIX.
12579 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12580 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lintl $LIBS"
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 /* Override any gcc2 internal prototype to avoid an error. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 /* We use char because int might match the return type of a gcc2
12598 builtin and then its argument prototype would still apply. */
12599 char strftime ();
12601 main ()
12603 strftime ();
12605 return 0;
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag"
12618 || test ! -s conftest.err'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; } &&
12624 { ac_try='test -s conftest$ac_exeext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_lib_intl_strftime=yes
12631 else
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_cv_lib_intl_strftime=no
12637 rm -f conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12641 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12642 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12643 if test $ac_cv_lib_intl_strftime = yes; then
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_STRFTIME 1
12646 _ACEOF
12648 LIBS="-lintl $LIBS"
12652 done
12654 echo "$as_me:$LINENO: checking for working strtod" >&5
12655 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12656 if test "${ac_cv_func_strtod+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 if test "$cross_compiling" = yes; then
12660 ac_cv_func_strtod=no
12661 else
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12669 double strtod ();
12671 main()
12674 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12675 char *string = " +69";
12676 char *term;
12677 double value;
12678 value = strtod (string, &term);
12679 if (value != 69 || term != (string + 4))
12680 exit (1);
12684 /* Under Solaris 2.4, strtod returns the wrong value for the
12685 terminating character under some conditions. */
12686 char *string = "NaN";
12687 char *term;
12688 strtod (string, &term);
12689 if (term != string && *(term - 1) == 0)
12690 exit (1);
12692 exit (0);
12695 _ACEOF
12696 rm -f conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12707 ac_cv_func_strtod=yes
12708 else
12709 echo "$as_me: program exited with status $ac_status" >&5
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ( exit $ac_status )
12714 ac_cv_func_strtod=no
12716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12720 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12721 if test $ac_cv_func_strtod = no; then
12722 case $LIBOBJS in
12723 "strtod.$ac_objext" | \
12724 *" strtod.$ac_objext" | \
12725 "strtod.$ac_objext "* | \
12726 *" strtod.$ac_objext "* ) ;;
12727 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12728 esac
12730 echo "$as_me:$LINENO: checking for pow" >&5
12731 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12732 if test "${ac_cv_func_pow+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12743 #define pow innocuous_pow
12745 /* System header to define __stub macros and hopefully few prototypes,
12746 which can conflict with char pow (); below.
12747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12748 <limits.h> exists even on freestanding compilers. */
12750 #ifdef __STDC__
12751 # include <limits.h>
12752 #else
12753 # include <assert.h>
12754 #endif
12756 #undef pow
12758 /* Override any gcc2 internal prototype to avoid an error. */
12759 #ifdef __cplusplus
12760 extern "C"
12762 #endif
12763 /* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12765 char pow ();
12766 /* The GNU C library defines this for functions which it implements
12767 to always fail with ENOSYS. Some functions are actually named
12768 something starting with __ and the normal name is an alias. */
12769 #if defined (__stub_pow) || defined (__stub___pow)
12770 choke me
12771 #else
12772 char (*f) () = pow;
12773 #endif
12774 #ifdef __cplusplus
12776 #endif
12779 main ()
12781 return f != pow;
12783 return 0;
12785 _ACEOF
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag"
12796 || test ! -s conftest.err'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_func_pow=yes
12809 else
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ac_cv_func_pow=no
12815 rm -f conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12818 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12819 echo "${ECHO_T}$ac_cv_func_pow" >&6
12821 if test $ac_cv_func_pow = no; then
12822 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12823 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12824 if test "${ac_cv_lib_m_pow+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lm $LIBS"
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12836 /* Override any gcc2 internal prototype to avoid an error. */
12837 #ifdef __cplusplus
12838 extern "C"
12839 #endif
12840 /* We use char because int might match the return type of a gcc2
12841 builtin and then its argument prototype would still apply. */
12842 char pow ();
12844 main ()
12846 pow ();
12848 return 0;
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_lib_m_pow=yes
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 ac_cv_lib_m_pow=no
12880 rm -f conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12885 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12886 if test $ac_cv_lib_m_pow = yes; then
12887 POW_LIB=-lm
12888 else
12889 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12890 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12898 for ac_func in vprintf
12900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12901 echo "$as_me:$LINENO: checking for $ac_func" >&5
12902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12903 if eval "test \"\${$as_ac_var+set}\" = set"; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12914 #define $ac_func innocuous_$ac_func
12916 /* System header to define __stub macros and hopefully few prototypes,
12917 which can conflict with char $ac_func (); below.
12918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12919 <limits.h> exists even on freestanding compilers. */
12921 #ifdef __STDC__
12922 # include <limits.h>
12923 #else
12924 # include <assert.h>
12925 #endif
12927 #undef $ac_func
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 #ifdef __cplusplus
12931 extern "C"
12933 #endif
12934 /* We use char because int might match the return type of a gcc2
12935 builtin and then its argument prototype would still apply. */
12936 char $ac_func ();
12937 /* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941 choke me
12942 #else
12943 char (*f) () = $ac_func;
12944 #endif
12945 #ifdef __cplusplus
12947 #endif
12950 main ()
12952 return f != $ac_func;
12954 return 0;
12956 _ACEOF
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -z "$ac_c_werror_flag"
12967 || test ! -s conftest.err'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 eval "$as_ac_var=yes"
12980 else
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 eval "$as_ac_var=no"
12986 rm -f conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12996 echo "$as_me:$LINENO: checking for _doprnt" >&5
12997 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
12998 if test "${ac_cv_func__doprnt+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13009 #define _doprnt innocuous__doprnt
13011 /* System header to define __stub macros and hopefully few prototypes,
13012 which can conflict with char _doprnt (); below.
13013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 <limits.h> exists even on freestanding compilers. */
13016 #ifdef __STDC__
13017 # include <limits.h>
13018 #else
13019 # include <assert.h>
13020 #endif
13022 #undef _doprnt
13024 /* Override any gcc2 internal prototype to avoid an error. */
13025 #ifdef __cplusplus
13026 extern "C"
13028 #endif
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13031 char _doprnt ();
13032 /* The GNU C library defines this for functions which it implements
13033 to always fail with ENOSYS. Some functions are actually named
13034 something starting with __ and the normal name is an alias. */
13035 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13036 choke me
13037 #else
13038 char (*f) () = _doprnt;
13039 #endif
13040 #ifdef __cplusplus
13042 #endif
13045 main ()
13047 return f != _doprnt;
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_func__doprnt=yes
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_func__doprnt=no
13081 rm -f conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13085 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13086 if test $ac_cv_func__doprnt = yes; then
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_DOPRNT 1
13090 _ACEOF
13095 done
13098 if test $cross_compiling = yes -a $gnumalloc = yes; then
13100 { echo "$as_me:$LINENO: WARNING:
13101 configure cannot check whether malloc() and realloc() are GNU libc
13102 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13103 run configure with the --without-gnu-malloc switch." >&5
13104 echo "$as_me: WARNING:
13105 configure cannot check whether malloc() and realloc() are GNU libc
13106 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13107 run configure with the --without-gnu-malloc switch." >&2;}
13108 _mule_warning_8=yes
13109 _mule_has_warnings=yes
13111 ac_cv_func_malloc_0_nonnull=yes
13112 ac_cv_func_realloc_0_nonnull=yes
13117 for ac_header in stdlib.h
13119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13121 echo "$as_me:$LINENO: checking for $ac_header" >&5
13122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13128 else
13129 # Is the header compilable?
13130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 $ac_includes_default
13139 #include <$ac_header>
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
13150 { ac_try='test -z "$ac_c_werror_flag"
13151 || test ! -s conftest.err'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_header_compiler=yes
13164 else
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ac_header_compiler=no
13170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13172 echo "${ECHO_T}$ac_header_compiler" >&6
13174 # Is the header present?
13175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include <$ac_header>
13184 _ACEOF
13185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null; then
13193 if test -s conftest.err; then
13194 ac_cpp_err=$ac_c_preproc_warn_flag
13195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13196 else
13197 ac_cpp_err=
13199 else
13200 ac_cpp_err=yes
13202 if test -z "$ac_cpp_err"; then
13203 ac_header_preproc=yes
13204 else
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_header_preproc=no
13210 rm -f conftest.err conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212 echo "${ECHO_T}$ac_header_preproc" >&6
13214 # So? What about this header?
13215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216 yes:no: )
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13221 ac_header_preproc=yes
13223 no:yes:* )
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13237 cat <<\_ASBOX
13238 ## ------------------------------ ##
13239 ## Report this to admin@amule.org ##
13240 ## ------------------------------ ##
13241 _ASBOX
13243 sed "s/^/$as_me: WARNING: /" >&2
13245 esac
13246 echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 eval "$as_ac_Header=\$ac_header_preproc"
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13258 cat >>confdefs.h <<_ACEOF
13259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13260 _ACEOF
13264 done
13266 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13267 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13268 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 if test "$cross_compiling" = yes; then
13272 ac_cv_func_malloc_0_nonnull=no
13273 else
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 #if STDC_HEADERS || HAVE_STDLIB_H
13281 # include <stdlib.h>
13282 #else
13283 char *malloc ();
13284 #endif
13287 main ()
13289 exit (malloc (0) ? 0 : 1);
13291 return 0;
13293 _ACEOF
13294 rm -f conftest$ac_exeext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296 (eval $ac_link) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_func_malloc_0_nonnull=yes
13306 else
13307 echo "$as_me: program exited with status $ac_status" >&5
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ( exit $ac_status )
13312 ac_cv_func_malloc_0_nonnull=no
13314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13317 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13318 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13319 if test $ac_cv_func_malloc_0_nonnull = yes; then
13321 cat >>confdefs.h <<\_ACEOF
13322 #define HAVE_MALLOC 1
13323 _ACEOF
13325 else
13326 cat >>confdefs.h <<\_ACEOF
13327 #define HAVE_MALLOC 0
13328 _ACEOF
13330 case $LIBOBJS in
13331 "malloc.$ac_objext" | \
13332 *" malloc.$ac_objext" | \
13333 "malloc.$ac_objext "* | \
13334 *" malloc.$ac_objext "* ) ;;
13335 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13336 esac
13339 cat >>confdefs.h <<\_ACEOF
13340 #define malloc rpl_malloc
13341 _ACEOF
13348 for ac_header in stdlib.h
13350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13352 echo "$as_me:$LINENO: checking for $ac_header" >&5
13353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13359 else
13360 # Is the header compilable?
13361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 #include <$ac_header>
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374 (eval $ac_compile) 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag"
13382 || test ! -s conftest.err'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_header_compiler=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_compiler=no
13401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13403 echo "${ECHO_T}$ac_header_compiler" >&6
13405 # Is the header present?
13406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h. */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 #include <$ac_header>
13415 _ACEOF
13416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } >/dev/null; then
13424 if test -s conftest.err; then
13425 ac_cpp_err=$ac_c_preproc_warn_flag
13426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13427 else
13428 ac_cpp_err=
13430 else
13431 ac_cpp_err=yes
13433 if test -z "$ac_cpp_err"; then
13434 ac_header_preproc=yes
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 ac_header_preproc=no
13441 rm -f conftest.err conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13443 echo "${ECHO_T}$ac_header_preproc" >&6
13445 # So? What about this header?
13446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13447 yes:no: )
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13452 ac_header_preproc=yes
13454 no:yes:* )
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13468 cat <<\_ASBOX
13469 ## ------------------------------ ##
13470 ## Report this to admin@amule.org ##
13471 ## ------------------------------ ##
13472 _ASBOX
13474 sed "s/^/$as_me: WARNING: /" >&2
13476 esac
13477 echo "$as_me:$LINENO: checking for $ac_header" >&5
13478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 eval "$as_ac_Header=\$ac_header_preproc"
13484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13489 cat >>confdefs.h <<_ACEOF
13490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13491 _ACEOF
13495 done
13497 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13498 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13499 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 if test "$cross_compiling" = yes; then
13503 ac_cv_func_realloc_0_nonnull=no
13504 else
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #if STDC_HEADERS || HAVE_STDLIB_H
13512 # include <stdlib.h>
13513 #else
13514 char *realloc ();
13515 #endif
13518 main ()
13520 exit (realloc (0, 0) ? 0 : 1);
13522 return 0;
13524 _ACEOF
13525 rm -f conftest$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527 (eval $ac_link) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_func_realloc_0_nonnull=yes
13537 else
13538 echo "$as_me: program exited with status $ac_status" >&5
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ( exit $ac_status )
13543 ac_cv_func_realloc_0_nonnull=no
13545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13548 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13549 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13550 if test $ac_cv_func_realloc_0_nonnull = yes; then
13552 cat >>confdefs.h <<\_ACEOF
13553 #define HAVE_REALLOC 1
13554 _ACEOF
13556 else
13557 cat >>confdefs.h <<\_ACEOF
13558 #define HAVE_REALLOC 0
13559 _ACEOF
13561 case $LIBOBJS in
13562 "realloc.$ac_objext" | \
13563 *" realloc.$ac_objext" | \
13564 "realloc.$ac_objext "* | \
13565 *" realloc.$ac_objext "* ) ;;
13566 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13567 esac
13570 cat >>confdefs.h <<\_ACEOF
13571 #define realloc rpl_realloc
13572 _ACEOF
13611 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 echo "$as_me:$LINENO: checking for $ac_func" >&5
13615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_var+set}\" = set"; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13627 #define $ac_func innocuous_$ac_func
13629 /* System header to define __stub macros and hopefully few prototypes,
13630 which can conflict with char $ac_func (); below.
13631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13632 <limits.h> exists even on freestanding compilers. */
13634 #ifdef __STDC__
13635 # include <limits.h>
13636 #else
13637 # include <assert.h>
13638 #endif
13640 #undef $ac_func
13642 /* Override any gcc2 internal prototype to avoid an error. */
13643 #ifdef __cplusplus
13644 extern "C"
13646 #endif
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649 char $ac_func ();
13650 /* The GNU C library defines this for functions which it implements
13651 to always fail with ENOSYS. Some functions are actually named
13652 something starting with __ and the normal name is an alias. */
13653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13654 choke me
13655 #else
13656 char (*f) () = $ac_func;
13657 #endif
13658 #ifdef __cplusplus
13660 #endif
13663 main ()
13665 return f != $ac_func;
13667 return 0;
13669 _ACEOF
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13672 (eval $ac_link) 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -z "$ac_c_werror_flag"
13680 || test ! -s conftest.err'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; } &&
13686 { ac_try='test -s conftest$ac_exeext'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 eval "$as_ac_var=yes"
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 eval "$as_ac_var=no"
13699 rm -f conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13704 if test `eval echo '${'$as_ac_var'}'` = yes; then
13705 cat >>confdefs.h <<_ACEOF
13706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13707 _ACEOF
13710 done
13712 #-------------------------------------------------------------------------------
13713 # End of autoscan stuff
13714 #-------------------------------------------------------------------------------
13720 for ac_func in mkdir getrlimit setrlimit getopt_long
13722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723 echo "$as_me:$LINENO: checking for $ac_func" >&5
13724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13725 if eval "test \"\${$as_ac_var+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h. */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13736 #define $ac_func innocuous_$ac_func
13738 /* System header to define __stub macros and hopefully few prototypes,
13739 which can conflict with char $ac_func (); below.
13740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13741 <limits.h> exists even on freestanding compilers. */
13743 #ifdef __STDC__
13744 # include <limits.h>
13745 #else
13746 # include <assert.h>
13747 #endif
13749 #undef $ac_func
13751 /* Override any gcc2 internal prototype to avoid an error. */
13752 #ifdef __cplusplus
13753 extern "C"
13755 #endif
13756 /* We use char because int might match the return type of a gcc2
13757 builtin and then its argument prototype would still apply. */
13758 char $ac_func ();
13759 /* The GNU C library defines this for functions which it implements
13760 to always fail with ENOSYS. Some functions are actually named
13761 something starting with __ and the normal name is an alias. */
13762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13763 choke me
13764 #else
13765 char (*f) () = $ac_func;
13766 #endif
13767 #ifdef __cplusplus
13769 #endif
13772 main ()
13774 return f != $ac_func;
13776 return 0;
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest$ac_exeext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 eval "$as_ac_var=yes"
13802 else
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 eval "$as_ac_var=no"
13808 rm -f conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13813 if test `eval echo '${'$as_ac_var'}'` = yes; then
13814 cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13816 _ACEOF
13819 done
13822 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
13824 # Check whether --enable-mmap or --disable-mmap was given.
13825 if test "${enable_mmap+set}" = set; then
13826 enableval="$enable_mmap"
13831 if test ${enable_mmap:-no} = yes; then
13834 for ac_header in sys/mman.h
13836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13838 echo "$as_me:$LINENO: checking for $ac_header" >&5
13839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13845 else
13846 # Is the header compilable?
13847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h. */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13856 #include <$ac_header>
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860 (eval $ac_compile) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_header_compiler=yes
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_header_compiler=no
13887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13889 echo "${ECHO_T}$ac_header_compiler" >&6
13891 # Is the header present?
13892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 #include <$ac_header>
13901 _ACEOF
13902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } >/dev/null; then
13910 if test -s conftest.err; then
13911 ac_cpp_err=$ac_c_preproc_warn_flag
13912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13913 else
13914 ac_cpp_err=
13916 else
13917 ac_cpp_err=yes
13919 if test -z "$ac_cpp_err"; then
13920 ac_header_preproc=yes
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_header_preproc=no
13927 rm -f conftest.err conftest.$ac_ext
13928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13929 echo "${ECHO_T}$ac_header_preproc" >&6
13931 # So? What about this header?
13932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13933 yes:no: )
13934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13938 ac_header_preproc=yes
13940 no:yes:* )
13941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13954 cat <<\_ASBOX
13955 ## ------------------------------ ##
13956 ## Report this to admin@amule.org ##
13957 ## ------------------------------ ##
13958 _ASBOX
13960 sed "s/^/$as_me: WARNING: /" >&2
13962 esac
13963 echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 eval "$as_ac_Header=\$ac_header_preproc"
13970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13975 cat >>confdefs.h <<_ACEOF
13976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13977 _ACEOF
13981 done
13985 for ac_header in stdlib.h unistd.h
13987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989 echo "$as_me:$LINENO: checking for $ac_header" >&5
13990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 else
13997 # Is the header compilable?
13998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14007 #include <$ac_header>
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_header_compiler=yes
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_compiler=no
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14040 echo "${ECHO_T}$ac_header_compiler" >&6
14042 # Is the header present?
14043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <$ac_header>
14052 _ACEOF
14053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14054 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14061 if test -s conftest.err; then
14062 ac_cpp_err=$ac_c_preproc_warn_flag
14063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14064 else
14065 ac_cpp_err=
14067 else
14068 ac_cpp_err=yes
14070 if test -z "$ac_cpp_err"; then
14071 ac_header_preproc=yes
14072 else
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_preproc=no
14078 rm -f conftest.err conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14084 yes:no: )
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14089 ac_header_preproc=yes
14091 no:yes:* )
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105 cat <<\_ASBOX
14106 ## ------------------------------ ##
14107 ## Report this to admin@amule.org ##
14108 ## ------------------------------ ##
14109 _ASBOX
14111 sed "s/^/$as_me: WARNING: /" >&2
14113 esac
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 eval "$as_ac_Header=\$ac_header_preproc"
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14126 cat >>confdefs.h <<_ACEOF
14127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14128 _ACEOF
14132 done
14135 for ac_func in getpagesize
14137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14138 echo "$as_me:$LINENO: checking for $ac_func" >&5
14139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_var+set}\" = set"; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14151 #define $ac_func innocuous_$ac_func
14153 /* System header to define __stub macros and hopefully few prototypes,
14154 which can conflict with char $ac_func (); below.
14155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14156 <limits.h> exists even on freestanding compilers. */
14158 #ifdef __STDC__
14159 # include <limits.h>
14160 #else
14161 # include <assert.h>
14162 #endif
14164 #undef $ac_func
14166 /* Override any gcc2 internal prototype to avoid an error. */
14167 #ifdef __cplusplus
14168 extern "C"
14170 #endif
14171 /* We use char because int might match the return type of a gcc2
14172 builtin and then its argument prototype would still apply. */
14173 char $ac_func ();
14174 /* The GNU C library defines this for functions which it implements
14175 to always fail with ENOSYS. Some functions are actually named
14176 something starting with __ and the normal name is an alias. */
14177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14178 choke me
14179 #else
14180 char (*f) () = $ac_func;
14181 #endif
14182 #ifdef __cplusplus
14184 #endif
14187 main ()
14189 return f != $ac_func;
14191 return 0;
14193 _ACEOF
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag"
14204 || test ! -s conftest.err'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 eval "$as_ac_var=yes"
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 eval "$as_ac_var=no"
14223 rm -f conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14228 if test `eval echo '${'$as_ac_var'}'` = yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14231 _ACEOF
14234 done
14236 echo "$as_me:$LINENO: checking for working mmap" >&5
14237 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14238 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241 if test "$cross_compiling" = yes; then
14242 ac_cv_func_mmap_fixed_mapped=no
14243 else
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 $ac_includes_default
14251 /* malloc might have been renamed as rpl_malloc. */
14252 #undef malloc
14254 /* Thanks to Mike Haertel and Jim Avera for this test.
14255 Here is a matrix of mmap possibilities:
14256 mmap private not fixed
14257 mmap private fixed at somewhere currently unmapped
14258 mmap private fixed at somewhere already mapped
14259 mmap shared not fixed
14260 mmap shared fixed at somewhere currently unmapped
14261 mmap shared fixed at somewhere already mapped
14262 For private mappings, we should verify that changes cannot be read()
14263 back from the file, nor mmap's back from the file at a different
14264 address. (There have been systems where private was not correctly
14265 implemented like the infamous i386 svr4.0, and systems where the
14266 VM page cache was not coherent with the file system buffer cache
14267 like early versions of FreeBSD and possibly contemporary NetBSD.)
14268 For shared mappings, we should conversely verify that changes get
14269 propagated back to all the places they're supposed to be.
14271 Grep wants private fixed already mapped.
14272 The main things grep needs to know about mmap are:
14273 * does it exist and is it safe to write into the mmap'd area
14274 * how to use it (BSD variants) */
14276 #include <fcntl.h>
14277 #include <sys/mman.h>
14279 #if !STDC_HEADERS && !HAVE_STDLIB_H
14280 char *malloc ();
14281 #endif
14283 /* This mess was copied from the GNU getpagesize.h. */
14284 #if !HAVE_GETPAGESIZE
14285 /* Assume that all systems that can run configure have sys/param.h. */
14286 # if !HAVE_SYS_PARAM_H
14287 # define HAVE_SYS_PARAM_H 1
14288 # endif
14290 # ifdef _SC_PAGESIZE
14291 # define getpagesize() sysconf(_SC_PAGESIZE)
14292 # else /* no _SC_PAGESIZE */
14293 # if HAVE_SYS_PARAM_H
14294 # include <sys/param.h>
14295 # ifdef EXEC_PAGESIZE
14296 # define getpagesize() EXEC_PAGESIZE
14297 # else /* no EXEC_PAGESIZE */
14298 # ifdef NBPG
14299 # define getpagesize() NBPG * CLSIZE
14300 # ifndef CLSIZE
14301 # define CLSIZE 1
14302 # endif /* no CLSIZE */
14303 # else /* no NBPG */
14304 # ifdef NBPC
14305 # define getpagesize() NBPC
14306 # else /* no NBPC */
14307 # ifdef PAGESIZE
14308 # define getpagesize() PAGESIZE
14309 # endif /* PAGESIZE */
14310 # endif /* no NBPC */
14311 # endif /* no NBPG */
14312 # endif /* no EXEC_PAGESIZE */
14313 # else /* no HAVE_SYS_PARAM_H */
14314 # define getpagesize() 8192 /* punt totally */
14315 # endif /* no HAVE_SYS_PARAM_H */
14316 # endif /* no _SC_PAGESIZE */
14318 #endif /* no HAVE_GETPAGESIZE */
14321 main ()
14323 char *data, *data2, *data3;
14324 int i, pagesize;
14325 int fd;
14327 pagesize = getpagesize ();
14329 /* First, make a file with some known garbage in it. */
14330 data = (char *) malloc (pagesize);
14331 if (!data)
14332 exit (1);
14333 for (i = 0; i < pagesize; ++i)
14334 *(data + i) = rand ();
14335 umask (0);
14336 fd = creat ("conftest.mmap", 0600);
14337 if (fd < 0)
14338 exit (1);
14339 if (write (fd, data, pagesize) != pagesize)
14340 exit (1);
14341 close (fd);
14343 /* Next, try to mmap the file at a fixed address which already has
14344 something else allocated at it. If we can, also make sure that
14345 we see the same garbage. */
14346 fd = open ("conftest.mmap", O_RDWR);
14347 if (fd < 0)
14348 exit (1);
14349 data2 = (char *) malloc (2 * pagesize);
14350 if (!data2)
14351 exit (1);
14352 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14355 exit (1);
14356 for (i = 0; i < pagesize; ++i)
14357 if (*(data + i) != *(data2 + i))
14358 exit (1);
14360 /* Finally, make sure that changes to the mapped area do not
14361 percolate back to the file as seen by read(). (This is a bug on
14362 some variants of i386 svr4.0.) */
14363 for (i = 0; i < pagesize; ++i)
14364 *(data2 + i) = *(data2 + i) + 1;
14365 data3 = (char *) malloc (pagesize);
14366 if (!data3)
14367 exit (1);
14368 if (read (fd, data3, pagesize) != pagesize)
14369 exit (1);
14370 for (i = 0; i < pagesize; ++i)
14371 if (*(data + i) != *(data3 + i))
14372 exit (1);
14373 close (fd);
14374 exit (0);
14376 _ACEOF
14377 rm -f conftest$ac_exeext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379 (eval $ac_link) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_func_mmap_fixed_mapped=yes
14389 else
14390 echo "$as_me: program exited with status $ac_status" >&5
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ( exit $ac_status )
14395 ac_cv_func_mmap_fixed_mapped=no
14397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14401 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14402 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_MMAP 1
14406 _ACEOF
14409 rm -f conftest.mmap
14413 for ac_func in munmap sysconf
14415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14416 echo "$as_me:$LINENO: checking for $ac_func" >&5
14417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14418 if eval "test \"\${$as_ac_var+set}\" = set"; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14429 #define $ac_func innocuous_$ac_func
14431 /* System header to define __stub macros and hopefully few prototypes,
14432 which can conflict with char $ac_func (); below.
14433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14434 <limits.h> exists even on freestanding compilers. */
14436 #ifdef __STDC__
14437 # include <limits.h>
14438 #else
14439 # include <assert.h>
14440 #endif
14442 #undef $ac_func
14444 /* Override any gcc2 internal prototype to avoid an error. */
14445 #ifdef __cplusplus
14446 extern "C"
14448 #endif
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451 char $ac_func ();
14452 /* The GNU C library defines this for functions which it implements
14453 to always fail with ENOSYS. Some functions are actually named
14454 something starting with __ and the normal name is an alias. */
14455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14456 choke me
14457 #else
14458 char (*f) () = $ac_func;
14459 #endif
14460 #ifdef __cplusplus
14462 #endif
14465 main ()
14467 return f != $ac_func;
14469 return 0;
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest$ac_exeext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 eval "$as_ac_var=yes"
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 eval "$as_ac_var=no"
14501 rm -f conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14506 if test `eval echo '${'$as_ac_var'}'` = yes; then
14507 cat >>confdefs.h <<_ACEOF
14508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14509 _ACEOF
14512 done
14514 if test $ac_cv_func_sysconf = yes; then
14516 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14517 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h. */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14526 #include <unistd.h>
14529 main ()
14532 return sysconf(_SC_PAGESIZE);
14535 return 0;
14538 _ACEOF
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14541 (eval $ac_link) 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest$ac_exeext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14562 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14563 echo "${ECHO_T}_SC_PAGESIZE" >&6
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE__SC_PAGESIZE 1
14567 _ACEOF
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14575 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14583 #include <unistd.h>
14586 main ()
14589 return sysconf(_SC_PAGE_SIZE);
14592 return 0;
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14619 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14620 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14622 cat >>confdefs.h <<\_ACEOF
14623 #define HAVE__SC_PAGE_SIZE 1
14624 _ACEOF
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14632 echo "$as_me:$LINENO: result: none" >&5
14633 echo "${ECHO_T}none" >&6
14636 rm -f conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14640 rm -f conftest.err conftest.$ac_objext \
14641 conftest$ac_exeext conftest.$ac_ext
14646 else
14648 # fake the result of the test for munmap() for the gettext macros
14649 ac_cv_func_munmap=no
14657 mule_backup_CPPFLAGS="$CPPFLAGS"
14658 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14659 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14660 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14661 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14672 main ()
14674 #ifndef strerror_r
14675 char *p = (char *) strerror_r;
14676 #endif
14679 return 0;
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_have_decl_strerror_r=yes
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_have_decl_strerror_r=no
14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14714 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14715 if test $ac_cv_have_decl_strerror_r = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_DECL_STRERROR_R 1
14719 _ACEOF
14722 else
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_DECL_STRERROR_R 0
14725 _ACEOF
14732 for ac_func in strerror_r
14734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14735 echo "$as_me:$LINENO: checking for $ac_func" >&5
14736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14737 if eval "test \"\${$as_ac_var+set}\" = set"; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14748 #define $ac_func innocuous_$ac_func
14750 /* System header to define __stub macros and hopefully few prototypes,
14751 which can conflict with char $ac_func (); below.
14752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14753 <limits.h> exists even on freestanding compilers. */
14755 #ifdef __STDC__
14756 # include <limits.h>
14757 #else
14758 # include <assert.h>
14759 #endif
14761 #undef $ac_func
14763 /* Override any gcc2 internal prototype to avoid an error. */
14764 #ifdef __cplusplus
14765 extern "C"
14767 #endif
14768 /* We use char because int might match the return type of a gcc2
14769 builtin and then its argument prototype would still apply. */
14770 char $ac_func ();
14771 /* The GNU C library defines this for functions which it implements
14772 to always fail with ENOSYS. Some functions are actually named
14773 something starting with __ and the normal name is an alias. */
14774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14775 choke me
14776 #else
14777 char (*f) () = $ac_func;
14778 #endif
14779 #ifdef __cplusplus
14781 #endif
14784 main ()
14786 return f != $ac_func;
14788 return 0;
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14793 (eval $ac_link) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest$ac_exeext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 eval "$as_ac_var=yes"
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 eval "$as_ac_var=no"
14820 rm -f conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14825 if test `eval echo '${'$as_ac_var'}'` = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14828 _ACEOF
14831 done
14833 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14834 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14835 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14839 ac_cv_func_strerror_r_char_p=no
14840 if test $ac_cv_have_decl_strerror_r = yes; then
14841 cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h. */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 $ac_includes_default
14849 main ()
14852 char buf[100];
14853 char x = *strerror_r (0, buf, sizeof buf);
14854 char *p = strerror_r (0, buf, sizeof buf);
14857 return 0;
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_func_strerror_r_char_p=yes
14883 else
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14889 else
14890 # strerror_r is not declared. Choose between
14891 # systems that have relatively inaccessible declarations for the
14892 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14893 # former has a strerror_r that returns char*, while the latter
14894 # has a strerror_r that returns `int'.
14895 # This test should segfault on the DEC system.
14896 if test "$cross_compiling" = yes; then
14898 else
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 $ac_includes_default
14906 extern char *strerror_r ();
14908 main ()
14910 char buf[100];
14911 char x = *strerror_r (0, buf, sizeof buf);
14912 exit (!isalpha (x));
14914 return 0;
14916 _ACEOF
14917 rm -f conftest$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919 (eval $ac_link) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_func_strerror_r_char_p=yes
14929 else
14930 echo "$as_me: program exited with status $ac_status" >&5
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14941 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14942 if test $ac_cv_func_strerror_r_char_p = yes; then
14944 cat >>confdefs.h <<\_ACEOF
14945 #define STRERROR_R_CHAR_P 1
14946 _ACEOF
14950 CPPFLAGS="$mule_backup_CPPFLAGS"
14952 # Look for a way to preallocate disk space for files.
14953 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
14955 echo "$as_me:$LINENO: checking for fallocate" >&5
14956 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14957 mule_backup_CPPFLAGS="$CPPFLAGS"
14958 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14959 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14967 #define _GNU_SOURCE
14968 #ifdef HAVE_FCNTL_H
14969 # include <fcntl.h>
14970 #endif
14971 #include <linux/falloc.h>
14974 main ()
14977 fallocate(0, 0, 0, 0);
14980 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_FALLOCATE 1
15011 _ACEOF
15013 echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15025 rm -f conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 CPPFLAGS="$mule_backup_CPPFLAGS"
15030 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15031 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15040 #include <sys/syscall.h>
15041 #include <sys/types.h>
15042 #include <unistd.h>
15045 main ()
15048 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15051 return 0;
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_SYS_FALLOCATE 1
15082 _ACEOF
15084 echo "$as_me:$LINENO: result: yes" >&5
15085 echo "${ECHO_T}yes" >&6
15087 else
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15092 echo "$as_me:$LINENO: result: no" >&5
15093 echo "${ECHO_T}no" >&6
15096 rm -f conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15099 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15100 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 #define _XOPEN_SOURCE 600
15110 #include <stdlib.h>
15111 #ifdef HAVE_FCNTL_H
15112 # include <fcntl.h>
15113 #endif
15116 main ()
15119 posix_fallocate(0, 0, 0);
15122 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_POSIX_FALLOCATE 1
15153 _ACEOF
15155 echo "$as_me:$LINENO: result: yes" >&5
15156 echo "${ECHO_T}yes" >&6
15158 else
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15163 echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15167 rm -f conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15173 # Checking Native Language Support
15176 MKINSTALLDIRS=
15177 if test -n "$ac_aux_dir"; then
15178 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15180 if test -z "$MKINSTALLDIRS"; then
15181 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15188 # Extract the first word of "msgfmt", so it can be a program name with args.
15189 set dummy msgfmt; ac_word=$2
15190 echo "$as_me:$LINENO: checking for $ac_word" >&5
15191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15192 if test "${ac_cv_path_MSGFMT+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195 case "$MSGFMT" in
15197 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15201 for ac_dir in $PATH; do
15202 test -z "$ac_dir" && ac_dir=.
15203 if test -f $ac_dir/$ac_word; then
15204 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15205 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15206 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15207 break
15210 done
15211 IFS="$ac_save_ifs"
15212 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15214 esac
15216 MSGFMT="$ac_cv_path_MSGFMT"
15217 if test "$MSGFMT" != ":"; then
15218 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15219 echo "${ECHO_T}$MSGFMT" >&6
15220 else
15221 echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6
15225 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15226 set dummy gmsgfmt; ac_word=$2
15227 echo "$as_me:$LINENO: checking for $ac_word" >&5
15228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15229 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232 case $GMSGFMT in
15233 [\\/]* | ?:[\\/]*)
15234 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15248 done
15249 done
15251 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15253 esac
15255 GMSGFMT=$ac_cv_path_GMSGFMT
15257 if test -n "$GMSGFMT"; then
15258 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15259 echo "${ECHO_T}$GMSGFMT" >&6
15260 else
15261 echo "$as_me:$LINENO: result: no" >&5
15262 echo "${ECHO_T}no" >&6
15266 # Extract the first word of "xgettext", so it can be a program name with args.
15267 set dummy xgettext; ac_word=$2
15268 echo "$as_me:$LINENO: checking for $ac_word" >&5
15269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15270 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 case "$XGETTEXT" in
15275 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15279 for ac_dir in $PATH; do
15280 test -z "$ac_dir" && ac_dir=.
15281 if test -f $ac_dir/$ac_word; then
15282 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15283 (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
15284 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15285 break
15288 done
15289 IFS="$ac_save_ifs"
15290 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15292 esac
15294 XGETTEXT="$ac_cv_path_XGETTEXT"
15295 if test "$XGETTEXT" != ":"; then
15296 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15297 echo "${ECHO_T}$XGETTEXT" >&6
15298 else
15299 echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6
15303 rm -f messages.po
15305 # Extract the first word of "msgmerge", so it can be a program name with args.
15306 set dummy msgmerge; ac_word=$2
15307 echo "$as_me:$LINENO: checking for $ac_word" >&5
15308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15309 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312 case "$MSGMERGE" in
15314 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15318 for ac_dir in $PATH; do
15319 test -z "$ac_dir" && ac_dir=.
15320 if test -f $ac_dir/$ac_word; then
15321 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15322 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15323 break
15326 done
15327 IFS="$ac_save_ifs"
15328 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15330 esac
15332 MSGMERGE="$ac_cv_path_MSGMERGE"
15333 if test "$MSGMERGE" != ":"; then
15334 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15335 echo "${ECHO_T}$MSGMERGE" >&6
15336 else
15337 echo "$as_me:$LINENO: result: no" >&5
15338 echo "${ECHO_T}no" >&6
15342 if test "$GMSGFMT" != ":"; then
15343 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15344 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15346 else
15347 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15348 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15349 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15350 GMSGFMT=":"
15354 if test "$XGETTEXT" != ":"; then
15355 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15356 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15358 else
15359 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15360 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15361 XGETTEXT=":"
15363 rm -f messages.po
15366 ac_config_commands="$ac_config_commands default-1"
15369 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15370 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15371 if test "${ac_cv_search_strerror+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 ac_func_search_save_LIBS=$LIBS
15375 ac_cv_search_strerror=no
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15383 /* Override any gcc2 internal prototype to avoid an error. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 /* We use char because int might match the return type of a gcc2
15388 builtin and then its argument prototype would still apply. */
15389 char strerror ();
15391 main ()
15393 strerror ();
15395 return 0;
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_search_strerror="none required"
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15426 rm -f conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 if test "$ac_cv_search_strerror" = no; then
15429 for ac_lib in cposix; do
15430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15431 cat >conftest.$ac_ext <<_ACEOF
15432 /* confdefs.h. */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15438 /* Override any gcc2 internal prototype to avoid an error. */
15439 #ifdef __cplusplus
15440 extern "C"
15441 #endif
15442 /* We use char because int might match the return type of a gcc2
15443 builtin and then its argument prototype would still apply. */
15444 char strerror ();
15446 main ()
15448 strerror ();
15450 return 0;
15452 _ACEOF
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15455 (eval $ac_link) 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag"
15463 || test ! -s conftest.err'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest$ac_exeext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 ac_cv_search_strerror="-l$ac_lib"
15476 break
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15482 rm -f conftest.err conftest.$ac_objext \
15483 conftest$ac_exeext conftest.$ac_ext
15484 done
15486 LIBS=$ac_func_search_save_LIBS
15488 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15489 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15490 if test "$ac_cv_search_strerror" != no; then
15491 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15496 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15497 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15498 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15508 #include <features.h>
15509 #ifdef __GNU_LIBRARY__
15510 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15511 Lucky GNU user
15512 #endif
15513 #endif
15515 _ACEOF
15516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15517 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15518 ac_cv_gnu_library_2_1=yes
15519 else
15520 ac_cv_gnu_library_2_1=no
15522 rm -f conftest*
15527 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15528 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15530 GLIBC21="$ac_cv_gnu_library_2_1"
15535 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15536 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15537 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15541 if test "$cross_compiling" = yes; then
15543 # Guess based on the CPU.
15544 case "$host_cpu" in
15545 alpha* | i3456786 | m68k | s390*)
15546 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15548 gt_cv_int_divbyzero_sigfpe="guessing no";;
15549 esac
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15559 #include <stdlib.h>
15560 #include <signal.h>
15562 static void
15563 #ifdef __cplusplus
15564 sigfpe_handler (int sig)
15565 #else
15566 sigfpe_handler (sig) int sig;
15567 #endif
15569 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15570 exit (sig != SIGFPE);
15573 int x = 1;
15574 int y = 0;
15575 int z;
15576 int nan;
15578 int main ()
15580 signal (SIGFPE, sigfpe_handler);
15581 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15582 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15583 signal (SIGTRAP, sigfpe_handler);
15584 #endif
15585 /* Linux/SPARC yields signal SIGILL. */
15586 #if defined (__sparc__) && defined (__linux__)
15587 signal (SIGILL, sigfpe_handler);
15588 #endif
15590 z = x / y;
15591 nan = y / y;
15592 exit (1);
15595 _ACEOF
15596 rm -f conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 gt_cv_int_divbyzero_sigfpe=yes
15608 else
15609 echo "$as_me: program exited with status $ac_status" >&5
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ( exit $ac_status )
15614 gt_cv_int_divbyzero_sigfpe=no
15616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15620 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15621 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15622 case "$gt_cv_int_divbyzero_sigfpe" in
15623 *yes) value=1;;
15624 *) value=0;;
15625 esac
15627 cat >>confdefs.h <<_ACEOF
15628 #define INTDIV0_RAISES_SIGFPE $value
15629 _ACEOF
15633 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15634 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15635 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <inttypes.h>
15647 main ()
15649 uintmax_t i = (uintmax_t) -1;
15651 return 0;
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -z "$ac_c_werror_flag"
15664 || test ! -s conftest.err'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; } &&
15670 { ac_try='test -s conftest.$ac_objext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 jm_ac_cv_header_inttypes_h=yes
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 jm_ac_cv_header_inttypes_h=no
15683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15685 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15686 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15687 if test $jm_ac_cv_header_inttypes_h = yes; then
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15691 _ACEOF
15696 echo "$as_me:$LINENO: checking for stdint.h" >&5
15697 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15698 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 #include <sys/types.h>
15708 #include <stdint.h>
15710 main ()
15712 uintmax_t i = (uintmax_t) -1;
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719 (eval $ac_compile) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 jm_ac_cv_header_stdint_h=yes
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 jm_ac_cv_header_stdint_h=no
15746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15748 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15749 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15750 if test $jm_ac_cv_header_stdint_h = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_STDINT_H_WITH_UINTMAX 1
15754 _ACEOF
15759 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15760 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15761 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h. */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15770 unsigned long long ull = 1; int i = 63;
15772 main ()
15774 unsigned long long ullmax = (unsigned long long) -1;
15775 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15777 return 0;
15779 _ACEOF
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15782 (eval $ac_link) 2>conftest.er1
15783 ac_status=$?
15784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -z "$ac_c_werror_flag"
15790 || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_type_unsigned_long_long=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_type_unsigned_long_long=no
15809 rm -f conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15813 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15814 if test $ac_cv_type_unsigned_long_long = yes; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_UNSIGNED_LONG_LONG 1
15818 _ACEOF
15825 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15827 test $ac_cv_type_unsigned_long_long = yes \
15828 && ac_type='unsigned long long' \
15829 || ac_type='unsigned long'
15831 cat >>confdefs.h <<_ACEOF
15832 #define uintmax_t $ac_type
15833 _ACEOF
15838 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15839 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15840 if test "${gt_cv_header_inttypes_h+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 #include <sys/types.h>
15851 #include <inttypes.h>
15853 main ()
15857 return 0;
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_c_werror_flag"
15870 || test ! -s conftest.err'
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); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 gt_cv_header_inttypes_h=yes
15883 else
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 gt_cv_header_inttypes_h=no
15889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15893 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15894 if test $gt_cv_header_inttypes_h = yes; then
15896 cat >>confdefs.h <<_ACEOF
15897 #define HAVE_INTTYPES_H 1
15898 _ACEOF
15904 if test $gt_cv_header_inttypes_h = yes; then
15905 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15906 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15907 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <inttypes.h>
15918 #ifdef PRId32
15919 char *p = PRId32;
15920 #endif
15923 main ()
15927 return 0;
15929 _ACEOF
15930 rm -f conftest.$ac_objext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag"
15940 || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 gt_cv_inttypes_pri_broken=no
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 gt_cv_inttypes_pri_broken=yes
15959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15963 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15965 if test "$gt_cv_inttypes_pri_broken" = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define PRI_MACROS_BROKEN 1
15969 _ACEOF
15974 if test "X$prefix" = "XNONE"; then
15975 acl_final_prefix="$ac_default_prefix"
15976 else
15977 acl_final_prefix="$prefix"
15979 if test "X$exec_prefix" = "XNONE"; then
15980 acl_final_exec_prefix='${prefix}'
15981 else
15982 acl_final_exec_prefix="$exec_prefix"
15984 acl_save_prefix="$prefix"
15985 prefix="$acl_final_prefix"
15986 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15987 prefix="$acl_save_prefix"
15990 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15991 if test "${with_gnu_ld+set}" = set; then
15992 withval="$with_gnu_ld"
15993 test "$withval" = no || with_gnu_ld=yes
15994 else
15995 with_gnu_ld=no
15997 ac_prog=ld
15998 if test "$GCC" = yes; then
15999 # Check if gcc -print-prog-name=ld gives a path.
16000 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16001 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16002 case $host in
16003 *-*-mingw*)
16004 # gcc leaves a trailing carriage return which upsets mingw
16005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16008 esac
16009 case $ac_prog in
16010 # Accept absolute paths.
16011 [\\/]* | [A-Za-z]:[\\/]*)
16012 re_direlt='/[^/][^/]*/\.\./'
16013 # Canonicalize the path of ld
16014 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16015 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16016 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16017 done
16018 test -z "$LD" && LD="$ac_prog"
16021 # If it fails, then pretend we aren't using GCC.
16022 ac_prog=ld
16025 # If it is relative, then search for the first ld in PATH.
16026 with_gnu_ld=unknown
16028 esac
16029 elif test "$with_gnu_ld" = yes; then
16030 echo "$as_me:$LINENO: checking for GNU ld" >&5
16031 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16032 else
16033 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16034 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16036 if test "${acl_cv_path_LD+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 if test -z "$LD"; then
16040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16041 for ac_dir in $PATH; do
16042 test -z "$ac_dir" && ac_dir=.
16043 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16044 acl_cv_path_LD="$ac_dir/$ac_prog"
16045 # Check to see if the program is GNU ld. I'd rather use --version,
16046 # but apparently some GNU ld's only accept -v.
16047 # Break only if it was the GNU/non-GNU ld that we prefer.
16048 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16049 test "$with_gnu_ld" != no && break
16050 else
16051 test "$with_gnu_ld" != yes && break
16054 done
16055 IFS="$ac_save_ifs"
16056 else
16057 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16061 LD="$acl_cv_path_LD"
16062 if test -n "$LD"; then
16063 echo "$as_me:$LINENO: result: $LD" >&5
16064 echo "${ECHO_T}$LD" >&6
16065 else
16066 echo "$as_me:$LINENO: result: no" >&5
16067 echo "${ECHO_T}no" >&6
16069 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16070 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16071 { (exit 1); exit 1; }; }
16072 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16073 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16074 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16078 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16079 acl_cv_prog_gnu_ld=yes
16080 else
16081 acl_cv_prog_gnu_ld=no
16084 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16085 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16086 with_gnu_ld=$acl_cv_prog_gnu_ld
16090 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16091 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16092 if test "${acl_cv_rpath+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16096 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16097 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16098 . ./conftest.sh
16099 rm -f ./conftest.sh
16100 acl_cv_rpath=done
16103 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16104 echo "${ECHO_T}$acl_cv_rpath" >&6
16105 wl="$acl_cv_wl"
16106 libext="$acl_cv_libext"
16107 shlibext="$acl_cv_shlibext"
16108 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16109 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16110 hardcode_direct="$acl_cv_hardcode_direct"
16111 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16112 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16113 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16114 # Check whether --enable-rpath or --disable-rpath was given.
16115 if test "${enable_rpath+set}" = set; then
16116 enableval="$enable_rpath"
16118 else
16119 enable_rpath=yes
16128 use_additional=yes
16130 acl_save_prefix="$prefix"
16131 prefix="$acl_final_prefix"
16132 acl_save_exec_prefix="$exec_prefix"
16133 exec_prefix="$acl_final_exec_prefix"
16135 eval additional_includedir=\"$includedir\"
16136 eval additional_libdir=\"$libdir\"
16138 exec_prefix="$acl_save_exec_prefix"
16139 prefix="$acl_save_prefix"
16142 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16143 if test "${with_libiconv_prefix+set}" = set; then
16144 withval="$with_libiconv_prefix"
16146 if test "X$withval" = "Xno"; then
16147 use_additional=no
16148 else
16149 if test "X$withval" = "X"; then
16151 acl_save_prefix="$prefix"
16152 prefix="$acl_final_prefix"
16153 acl_save_exec_prefix="$exec_prefix"
16154 exec_prefix="$acl_final_exec_prefix"
16156 eval additional_includedir=\"$includedir\"
16157 eval additional_libdir=\"$libdir\"
16159 exec_prefix="$acl_save_exec_prefix"
16160 prefix="$acl_save_prefix"
16162 else
16163 additional_includedir="$withval/include"
16164 additional_libdir="$withval/lib"
16169 LIBICONV=
16170 LTLIBICONV=
16171 INCICONV=
16172 rpathdirs=
16173 ltrpathdirs=
16174 names_already_handled=
16175 names_next_round='iconv '
16176 while test -n "$names_next_round"; do
16177 names_this_round="$names_next_round"
16178 names_next_round=
16179 for name in $names_this_round; do
16180 already_handled=
16181 for n in $names_already_handled; do
16182 if test "$n" = "$name"; then
16183 already_handled=yes
16184 break
16186 done
16187 if test -z "$already_handled"; then
16188 names_already_handled="$names_already_handled $name"
16189 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16190 eval value=\"\$HAVE_LIB$uppername\"
16191 if test -n "$value"; then
16192 if test "$value" = yes; then
16193 eval value=\"\$LIB$uppername\"
16194 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16195 eval value=\"\$LTLIB$uppername\"
16196 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16197 else
16200 else
16201 found_dir=
16202 found_la=
16203 found_so=
16204 found_a=
16205 if test $use_additional = yes; then
16206 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16207 found_dir="$additional_libdir"
16208 found_so="$additional_libdir/lib$name.$shlibext"
16209 if test -f "$additional_libdir/lib$name.la"; then
16210 found_la="$additional_libdir/lib$name.la"
16212 else
16213 if test -f "$additional_libdir/lib$name.$libext"; then
16214 found_dir="$additional_libdir"
16215 found_a="$additional_libdir/lib$name.$libext"
16216 if test -f "$additional_libdir/lib$name.la"; then
16217 found_la="$additional_libdir/lib$name.la"
16222 if test "X$found_dir" = "X"; then
16223 for x in $LDFLAGS $LTLIBICONV; do
16225 acl_save_prefix="$prefix"
16226 prefix="$acl_final_prefix"
16227 acl_save_exec_prefix="$exec_prefix"
16228 exec_prefix="$acl_final_exec_prefix"
16229 eval x=\"$x\"
16230 exec_prefix="$acl_save_exec_prefix"
16231 prefix="$acl_save_prefix"
16233 case "$x" in
16234 -L*)
16235 dir=`echo "X$x" | sed -e 's/^X-L//'`
16236 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16237 found_dir="$dir"
16238 found_so="$dir/lib$name.$shlibext"
16239 if test -f "$dir/lib$name.la"; then
16240 found_la="$dir/lib$name.la"
16242 else
16243 if test -f "$dir/lib$name.$libext"; then
16244 found_dir="$dir"
16245 found_a="$dir/lib$name.$libext"
16246 if test -f "$dir/lib$name.la"; then
16247 found_la="$dir/lib$name.la"
16252 esac
16253 if test "X$found_dir" != "X"; then
16254 break
16256 done
16258 if test "X$found_dir" != "X"; then
16259 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16260 if test "X$found_so" != "X"; then
16261 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16262 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16263 else
16264 haveit=
16265 for x in $ltrpathdirs; do
16266 if test "X$x" = "X$found_dir"; then
16267 haveit=yes
16268 break
16270 done
16271 if test -z "$haveit"; then
16272 ltrpathdirs="$ltrpathdirs $found_dir"
16274 if test "$hardcode_direct" = yes; then
16275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16276 else
16277 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16278 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16279 haveit=
16280 for x in $rpathdirs; do
16281 if test "X$x" = "X$found_dir"; then
16282 haveit=yes
16283 break
16285 done
16286 if test -z "$haveit"; then
16287 rpathdirs="$rpathdirs $found_dir"
16289 else
16290 haveit=
16291 for x in $LDFLAGS $LIBICONV; do
16293 acl_save_prefix="$prefix"
16294 prefix="$acl_final_prefix"
16295 acl_save_exec_prefix="$exec_prefix"
16296 exec_prefix="$acl_final_exec_prefix"
16297 eval x=\"$x\"
16298 exec_prefix="$acl_save_exec_prefix"
16299 prefix="$acl_save_prefix"
16301 if test "X$x" = "X-L$found_dir"; then
16302 haveit=yes
16303 break
16305 done
16306 if test -z "$haveit"; then
16307 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16309 if test "$hardcode_minus_L" != no; then
16310 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16311 else
16312 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16317 else
16318 if test "X$found_a" != "X"; then
16319 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16320 else
16321 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16324 additional_includedir=
16325 case "$found_dir" in
16326 */lib | */lib/)
16327 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16328 additional_includedir="$basedir/include"
16330 esac
16331 if test "X$additional_includedir" != "X"; then
16332 if test "X$additional_includedir" != "X/usr/include"; then
16333 haveit=
16334 if test "X$additional_includedir" = "X/usr/local/include"; then
16335 if test -n "$GCC"; then
16336 case $host_os in
16337 linux*) haveit=yes;;
16338 esac
16341 if test -z "$haveit"; then
16342 for x in $CPPFLAGS $INCICONV; do
16344 acl_save_prefix="$prefix"
16345 prefix="$acl_final_prefix"
16346 acl_save_exec_prefix="$exec_prefix"
16347 exec_prefix="$acl_final_exec_prefix"
16348 eval x=\"$x\"
16349 exec_prefix="$acl_save_exec_prefix"
16350 prefix="$acl_save_prefix"
16352 if test "X$x" = "X-I$additional_includedir"; then
16353 haveit=yes
16354 break
16356 done
16357 if test -z "$haveit"; then
16358 if test -d "$additional_includedir"; then
16359 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16365 if test -n "$found_la"; then
16366 save_libdir="$libdir"
16367 case "$found_la" in
16368 */* | *\\*) . "$found_la" ;;
16369 *) . "./$found_la" ;;
16370 esac
16371 libdir="$save_libdir"
16372 for dep in $dependency_libs; do
16373 case "$dep" in
16374 -L*)
16375 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16376 if test "X$additional_libdir" != "X/usr/lib"; then
16377 haveit=
16378 if test "X$additional_libdir" = "X/usr/local/lib"; then
16379 if test -n "$GCC"; then
16380 case $host_os in
16381 linux*) haveit=yes;;
16382 esac
16385 if test -z "$haveit"; then
16386 haveit=
16387 for x in $LDFLAGS $LIBICONV; do
16389 acl_save_prefix="$prefix"
16390 prefix="$acl_final_prefix"
16391 acl_save_exec_prefix="$exec_prefix"
16392 exec_prefix="$acl_final_exec_prefix"
16393 eval x=\"$x\"
16394 exec_prefix="$acl_save_exec_prefix"
16395 prefix="$acl_save_prefix"
16397 if test "X$x" = "X-L$additional_libdir"; then
16398 haveit=yes
16399 break
16401 done
16402 if test -z "$haveit"; then
16403 if test -d "$additional_libdir"; then
16404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16407 haveit=
16408 for x in $LDFLAGS $LTLIBICONV; do
16410 acl_save_prefix="$prefix"
16411 prefix="$acl_final_prefix"
16412 acl_save_exec_prefix="$exec_prefix"
16413 exec_prefix="$acl_final_exec_prefix"
16414 eval x=\"$x\"
16415 exec_prefix="$acl_save_exec_prefix"
16416 prefix="$acl_save_prefix"
16418 if test "X$x" = "X-L$additional_libdir"; then
16419 haveit=yes
16420 break
16422 done
16423 if test -z "$haveit"; then
16424 if test -d "$additional_libdir"; then
16425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16431 -R*)
16432 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16433 if test "$enable_rpath" != no; then
16434 haveit=
16435 for x in $rpathdirs; do
16436 if test "X$x" = "X$dir"; then
16437 haveit=yes
16438 break
16440 done
16441 if test -z "$haveit"; then
16442 rpathdirs="$rpathdirs $dir"
16444 haveit=
16445 for x in $ltrpathdirs; do
16446 if test "X$x" = "X$dir"; then
16447 haveit=yes
16448 break
16450 done
16451 if test -z "$haveit"; then
16452 ltrpathdirs="$ltrpathdirs $dir"
16456 -l*)
16457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16459 *.la)
16460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16463 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16464 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16466 esac
16467 done
16469 else
16470 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16475 done
16476 done
16477 if test "X$rpathdirs" != "X"; then
16478 if test -n "$hardcode_libdir_separator"; then
16479 alldirs=
16480 for found_dir in $rpathdirs; do
16481 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16482 done
16483 acl_save_libdir="$libdir"
16484 libdir="$alldirs"
16485 eval flag=\"$hardcode_libdir_flag_spec\"
16486 libdir="$acl_save_libdir"
16487 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16488 else
16489 for found_dir in $rpathdirs; do
16490 acl_save_libdir="$libdir"
16491 libdir="$found_dir"
16492 eval flag=\"$hardcode_libdir_flag_spec\"
16493 libdir="$acl_save_libdir"
16494 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16495 done
16498 if test "X$ltrpathdirs" != "X"; then
16499 for found_dir in $ltrpathdirs; do
16500 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16501 done
16517 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16518 stdlib.h string.h unistd.h sys/param.h
16520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo "$as_me:$LINENO: checking for $ac_header" >&5
16523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529 else
16530 # Is the header compilable?
16531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $ac_includes_default
16540 #include <$ac_header>
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_header_compiler=yes
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ac_header_compiler=no
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16573 echo "${ECHO_T}$ac_header_compiler" >&6
16575 # Is the header present?
16576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 #include <$ac_header>
16585 _ACEOF
16586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } >/dev/null; then
16594 if test -s conftest.err; then
16595 ac_cpp_err=$ac_c_preproc_warn_flag
16596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16597 else
16598 ac_cpp_err=
16600 else
16601 ac_cpp_err=yes
16603 if test -z "$ac_cpp_err"; then
16604 ac_header_preproc=yes
16605 else
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_header_preproc=no
16611 rm -f conftest.err conftest.$ac_ext
16612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16613 echo "${ECHO_T}$ac_header_preproc" >&6
16615 # So? What about this header?
16616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16617 yes:no: )
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16622 ac_header_preproc=yes
16624 no:yes:* )
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16638 cat <<\_ASBOX
16639 ## ------------------------------ ##
16640 ## Report this to admin@amule.org ##
16641 ## ------------------------------ ##
16642 _ASBOX
16644 sed "s/^/$as_me: WARNING: /" >&2
16646 esac
16647 echo "$as_me:$LINENO: checking for $ac_header" >&5
16648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652 eval "$as_ac_Header=\$ac_header_preproc"
16654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661 _ACEOF
16665 done
16688 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16689 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16690 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 echo "$as_me:$LINENO: checking for $ac_func" >&5
16694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_var+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16706 #define $ac_func innocuous_$ac_func
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16713 #ifdef __STDC__
16714 # include <limits.h>
16715 #else
16716 # include <assert.h>
16717 #endif
16719 #undef $ac_func
16721 /* Override any gcc2 internal prototype to avoid an error. */
16722 #ifdef __cplusplus
16723 extern "C"
16725 #endif
16726 /* We use char because int might match the return type of a gcc2
16727 builtin and then its argument prototype would still apply. */
16728 char $ac_func ();
16729 /* The GNU C library defines this for functions which it implements
16730 to always fail with ENOSYS. Some functions are actually named
16731 something starting with __ and the normal name is an alias. */
16732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16733 choke me
16734 #else
16735 char (*f) () = $ac_func;
16736 #endif
16737 #ifdef __cplusplus
16739 #endif
16742 main ()
16744 return f != $ac_func;
16746 return 0;
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_var=yes"
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_var=no"
16778 rm -f conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16783 if test `eval echo '${'$as_ac_var'}'` = yes; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16786 _ACEOF
16789 done
16797 am_save_CPPFLAGS="$CPPFLAGS"
16799 for element in $INCICONV; do
16800 haveit=
16801 for x in $CPPFLAGS; do
16803 acl_save_prefix="$prefix"
16804 prefix="$acl_final_prefix"
16805 acl_save_exec_prefix="$exec_prefix"
16806 exec_prefix="$acl_final_exec_prefix"
16807 eval x=\"$x\"
16808 exec_prefix="$acl_save_exec_prefix"
16809 prefix="$acl_save_prefix"
16811 if test "X$x" = "X$element"; then
16812 haveit=yes
16813 break
16815 done
16816 if test -z "$haveit"; then
16817 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16819 done
16822 echo "$as_me:$LINENO: checking for iconv" >&5
16823 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16824 if test "${am_cv_func_iconv+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16828 am_cv_func_iconv="no, consider installing GNU libiconv"
16829 am_cv_lib_iconv=no
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <stdlib.h>
16837 #include <iconv.h>
16839 main ()
16841 iconv_t cd = iconv_open("","");
16842 iconv(cd,NULL,NULL,NULL,NULL);
16843 iconv_close(cd);
16845 return 0;
16847 _ACEOF
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 am_cv_func_iconv=yes
16871 else
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16876 rm -f conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878 if test "$am_cv_func_iconv" != yes; then
16879 am_save_LIBS="$LIBS"
16880 LIBS="$LIBS $LIBICONV"
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 #include <stdlib.h>
16888 #include <iconv.h>
16890 main ()
16892 iconv_t cd = iconv_open("","");
16893 iconv(cd,NULL,NULL,NULL,NULL);
16894 iconv_close(cd);
16896 return 0;
16898 _ACEOF
16899 rm -f conftest.$ac_objext conftest$ac_exeext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901 (eval $ac_link) 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag"
16909 || test ! -s conftest.err'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 am_cv_lib_iconv=yes
16922 am_cv_func_iconv=yes
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16928 rm -f conftest.err conftest.$ac_objext \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS="$am_save_LIBS"
16934 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16935 echo "${ECHO_T}$am_cv_func_iconv" >&6
16936 if test "$am_cv_func_iconv" = yes; then
16938 cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_ICONV 1
16940 _ACEOF
16943 if test "$am_cv_lib_iconv" = yes; then
16944 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16945 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16946 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16947 echo "${ECHO_T}$LIBICONV" >&6
16948 else
16949 CPPFLAGS="$am_save_CPPFLAGS"
16950 LIBICONV=
16951 LTLIBICONV=
16956 if test "$am_cv_func_iconv" = yes; then
16957 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16958 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16959 if test "${am_cv_proto_iconv+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16963 cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16970 #include <stdlib.h>
16971 #include <iconv.h>
16972 extern
16973 #ifdef __cplusplus
16975 #endif
16976 #if defined(__STDC__) || defined(__cplusplus)
16977 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16978 #else
16979 size_t iconv();
16980 #endif
16983 main ()
16987 return 0;
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 am_cv_proto_iconv_arg1=""
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 am_cv_proto_iconv_arg1="const"
17019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17020 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);"
17023 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17024 echo "$as_me:$LINENO: result: ${ac_t:-
17025 }$am_cv_proto_iconv" >&5
17026 echo "${ECHO_T}${ac_t:-
17027 }$am_cv_proto_iconv" >&6
17029 cat >>confdefs.h <<_ACEOF
17030 #define ICONV_CONST $am_cv_proto_iconv_arg1
17031 _ACEOF
17036 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17037 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17038 if test "${am_cv_langinfo_codeset+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <langinfo.h>
17049 main ()
17051 char* cs = nl_langinfo(CODESET);
17053 return 0;
17055 _ACEOF
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -z "$ac_c_werror_flag"
17066 || test ! -s conftest.err'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; } &&
17072 { ac_try='test -s conftest$ac_exeext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 am_cv_langinfo_codeset=yes
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 am_cv_langinfo_codeset=no
17085 rm -f conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17089 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17090 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17091 if test $am_cv_langinfo_codeset = yes; then
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_LANGINFO_CODESET 1
17095 _ACEOF
17099 if test $ac_cv_header_locale_h = yes; then
17101 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17102 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17103 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 else
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h. */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 #include <locale.h>
17114 main ()
17116 return LC_MESSAGES
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 am_cv_val_LC_MESSAGES=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 am_cv_val_LC_MESSAGES=no
17150 rm -f conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17153 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17154 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17155 if test $am_cv_val_LC_MESSAGES = yes; then
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_LC_MESSAGES 1
17159 _ACEOF
17165 for ac_prog in bison
17167 # Extract the first word of "$ac_prog", so it can be a program name with args.
17168 set dummy $ac_prog; ac_word=$2
17169 echo "$as_me:$LINENO: checking for $ac_word" >&5
17170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17171 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174 if test -n "$INTLBISON"; then
17175 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17176 else
17177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17178 for as_dir in $PATH
17180 IFS=$as_save_IFS
17181 test -z "$as_dir" && as_dir=.
17182 for ac_exec_ext in '' $ac_executable_extensions; do
17183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17184 ac_cv_prog_INTLBISON="$ac_prog"
17185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17186 break 2
17188 done
17189 done
17193 INTLBISON=$ac_cv_prog_INTLBISON
17194 if test -n "$INTLBISON"; then
17195 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17196 echo "${ECHO_T}$INTLBISON" >&6
17197 else
17198 echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6
17202 test -n "$INTLBISON" && break
17203 done
17205 if test -z "$INTLBISON"; then
17206 ac_verc_fail=yes
17207 else
17208 echo "$as_me:$LINENO: checking version of bison" >&5
17209 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17210 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17211 case $ac_prog_version in
17212 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17213 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17214 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17215 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17216 esac
17217 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17218 echo "${ECHO_T}$ac_prog_version" >&6
17220 if test $ac_verc_fail = yes; then
17221 INTLBISON=:
17226 # Check whether --with-language or --without-language was given.
17227 if test "${with_language+set}" = set; then
17228 withval="$with_language"
17229 if test "$withval" != "all"; then
17230 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17249 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17250 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17251 # Check whether --enable-nls or --disable-nls was given.
17252 if test "${enable_nls+set}" = set; then
17253 enableval="$enable_nls"
17254 USE_NLS=$enableval
17255 else
17256 USE_NLS=yes
17258 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17259 echo "${ECHO_T}$USE_NLS" >&6
17263 BUILD_INCLUDED_LIBINTL=no
17264 USE_INCLUDED_LIBINTL=no
17266 LIBINTL=
17267 LTLIBINTL=
17268 POSUB=
17270 if test "$USE_NLS" = "yes"; then
17271 gt_use_preinstalled_gnugettext=no
17273 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17274 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17276 # Check whether --with-included-gettext or --without-included-gettext was given.
17277 if test "${with_included_gettext+set}" = set; then
17278 withval="$with_included_gettext"
17279 nls_cv_force_use_gnu_gettext=$withval
17280 else
17281 nls_cv_force_use_gnu_gettext=no
17283 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17284 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17286 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17287 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17294 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17295 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17296 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 #include <libintl.h>
17306 extern int _nl_msg_cat_cntr;
17307 extern int *_nl_domain_bindings;
17309 main ()
17311 bindtextdomain ("", "");
17312 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17314 return 0;
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 gt_cv_func_gnugettext2_libc=yes
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 gt_cv_func_gnugettext2_libc=no
17346 rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17349 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17350 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17352 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17356 use_additional=yes
17358 acl_save_prefix="$prefix"
17359 prefix="$acl_final_prefix"
17360 acl_save_exec_prefix="$exec_prefix"
17361 exec_prefix="$acl_final_exec_prefix"
17363 eval additional_includedir=\"$includedir\"
17364 eval additional_libdir=\"$libdir\"
17366 exec_prefix="$acl_save_exec_prefix"
17367 prefix="$acl_save_prefix"
17370 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17371 if test "${with_libintl_prefix+set}" = set; then
17372 withval="$with_libintl_prefix"
17374 if test "X$withval" = "Xno"; then
17375 use_additional=no
17376 else
17377 if test "X$withval" = "X"; then
17379 acl_save_prefix="$prefix"
17380 prefix="$acl_final_prefix"
17381 acl_save_exec_prefix="$exec_prefix"
17382 exec_prefix="$acl_final_exec_prefix"
17384 eval additional_includedir=\"$includedir\"
17385 eval additional_libdir=\"$libdir\"
17387 exec_prefix="$acl_save_exec_prefix"
17388 prefix="$acl_save_prefix"
17390 else
17391 additional_includedir="$withval/include"
17392 additional_libdir="$withval/lib"
17397 LIBINTL=
17398 LTLIBINTL=
17399 INCINTL=
17400 rpathdirs=
17401 ltrpathdirs=
17402 names_already_handled=
17403 names_next_round='intl '
17404 while test -n "$names_next_round"; do
17405 names_this_round="$names_next_round"
17406 names_next_round=
17407 for name in $names_this_round; do
17408 already_handled=
17409 for n in $names_already_handled; do
17410 if test "$n" = "$name"; then
17411 already_handled=yes
17412 break
17414 done
17415 if test -z "$already_handled"; then
17416 names_already_handled="$names_already_handled $name"
17417 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17418 eval value=\"\$HAVE_LIB$uppername\"
17419 if test -n "$value"; then
17420 if test "$value" = yes; then
17421 eval value=\"\$LIB$uppername\"
17422 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17423 eval value=\"\$LTLIB$uppername\"
17424 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17425 else
17428 else
17429 found_dir=
17430 found_la=
17431 found_so=
17432 found_a=
17433 if test $use_additional = yes; then
17434 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17435 found_dir="$additional_libdir"
17436 found_so="$additional_libdir/lib$name.$shlibext"
17437 if test -f "$additional_libdir/lib$name.la"; then
17438 found_la="$additional_libdir/lib$name.la"
17440 else
17441 if test -f "$additional_libdir/lib$name.$libext"; then
17442 found_dir="$additional_libdir"
17443 found_a="$additional_libdir/lib$name.$libext"
17444 if test -f "$additional_libdir/lib$name.la"; then
17445 found_la="$additional_libdir/lib$name.la"
17450 if test "X$found_dir" = "X"; then
17451 for x in $LDFLAGS $LTLIBINTL; do
17453 acl_save_prefix="$prefix"
17454 prefix="$acl_final_prefix"
17455 acl_save_exec_prefix="$exec_prefix"
17456 exec_prefix="$acl_final_exec_prefix"
17457 eval x=\"$x\"
17458 exec_prefix="$acl_save_exec_prefix"
17459 prefix="$acl_save_prefix"
17461 case "$x" in
17462 -L*)
17463 dir=`echo "X$x" | sed -e 's/^X-L//'`
17464 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17465 found_dir="$dir"
17466 found_so="$dir/lib$name.$shlibext"
17467 if test -f "$dir/lib$name.la"; then
17468 found_la="$dir/lib$name.la"
17470 else
17471 if test -f "$dir/lib$name.$libext"; then
17472 found_dir="$dir"
17473 found_a="$dir/lib$name.$libext"
17474 if test -f "$dir/lib$name.la"; then
17475 found_la="$dir/lib$name.la"
17480 esac
17481 if test "X$found_dir" != "X"; then
17482 break
17484 done
17486 if test "X$found_dir" != "X"; then
17487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17488 if test "X$found_so" != "X"; then
17489 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17490 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17491 else
17492 haveit=
17493 for x in $ltrpathdirs; do
17494 if test "X$x" = "X$found_dir"; then
17495 haveit=yes
17496 break
17498 done
17499 if test -z "$haveit"; then
17500 ltrpathdirs="$ltrpathdirs $found_dir"
17502 if test "$hardcode_direct" = yes; then
17503 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17504 else
17505 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17507 haveit=
17508 for x in $rpathdirs; do
17509 if test "X$x" = "X$found_dir"; then
17510 haveit=yes
17511 break
17513 done
17514 if test -z "$haveit"; then
17515 rpathdirs="$rpathdirs $found_dir"
17517 else
17518 haveit=
17519 for x in $LDFLAGS $LIBINTL; do
17521 acl_save_prefix="$prefix"
17522 prefix="$acl_final_prefix"
17523 acl_save_exec_prefix="$exec_prefix"
17524 exec_prefix="$acl_final_exec_prefix"
17525 eval x=\"$x\"
17526 exec_prefix="$acl_save_exec_prefix"
17527 prefix="$acl_save_prefix"
17529 if test "X$x" = "X-L$found_dir"; then
17530 haveit=yes
17531 break
17533 done
17534 if test -z "$haveit"; then
17535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17537 if test "$hardcode_minus_L" != no; then
17538 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17539 else
17540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17545 else
17546 if test "X$found_a" != "X"; then
17547 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17548 else
17549 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17552 additional_includedir=
17553 case "$found_dir" in
17554 */lib | */lib/)
17555 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17556 additional_includedir="$basedir/include"
17558 esac
17559 if test "X$additional_includedir" != "X"; then
17560 if test "X$additional_includedir" != "X/usr/include"; then
17561 haveit=
17562 if test "X$additional_includedir" = "X/usr/local/include"; then
17563 if test -n "$GCC"; then
17564 case $host_os in
17565 linux*) haveit=yes;;
17566 esac
17569 if test -z "$haveit"; then
17570 for x in $CPPFLAGS $INCINTL; do
17572 acl_save_prefix="$prefix"
17573 prefix="$acl_final_prefix"
17574 acl_save_exec_prefix="$exec_prefix"
17575 exec_prefix="$acl_final_exec_prefix"
17576 eval x=\"$x\"
17577 exec_prefix="$acl_save_exec_prefix"
17578 prefix="$acl_save_prefix"
17580 if test "X$x" = "X-I$additional_includedir"; then
17581 haveit=yes
17582 break
17584 done
17585 if test -z "$haveit"; then
17586 if test -d "$additional_includedir"; then
17587 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17593 if test -n "$found_la"; then
17594 save_libdir="$libdir"
17595 case "$found_la" in
17596 */* | *\\*) . "$found_la" ;;
17597 *) . "./$found_la" ;;
17598 esac
17599 libdir="$save_libdir"
17600 for dep in $dependency_libs; do
17601 case "$dep" in
17602 -L*)
17603 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17604 if test "X$additional_libdir" != "X/usr/lib"; then
17605 haveit=
17606 if test "X$additional_libdir" = "X/usr/local/lib"; then
17607 if test -n "$GCC"; then
17608 case $host_os in
17609 linux*) haveit=yes;;
17610 esac
17613 if test -z "$haveit"; then
17614 haveit=
17615 for x in $LDFLAGS $LIBINTL; do
17617 acl_save_prefix="$prefix"
17618 prefix="$acl_final_prefix"
17619 acl_save_exec_prefix="$exec_prefix"
17620 exec_prefix="$acl_final_exec_prefix"
17621 eval x=\"$x\"
17622 exec_prefix="$acl_save_exec_prefix"
17623 prefix="$acl_save_prefix"
17625 if test "X$x" = "X-L$additional_libdir"; then
17626 haveit=yes
17627 break
17629 done
17630 if test -z "$haveit"; then
17631 if test -d "$additional_libdir"; then
17632 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17635 haveit=
17636 for x in $LDFLAGS $LTLIBINTL; do
17638 acl_save_prefix="$prefix"
17639 prefix="$acl_final_prefix"
17640 acl_save_exec_prefix="$exec_prefix"
17641 exec_prefix="$acl_final_exec_prefix"
17642 eval x=\"$x\"
17643 exec_prefix="$acl_save_exec_prefix"
17644 prefix="$acl_save_prefix"
17646 if test "X$x" = "X-L$additional_libdir"; then
17647 haveit=yes
17648 break
17650 done
17651 if test -z "$haveit"; then
17652 if test -d "$additional_libdir"; then
17653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17659 -R*)
17660 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17661 if test "$enable_rpath" != no; then
17662 haveit=
17663 for x in $rpathdirs; do
17664 if test "X$x" = "X$dir"; then
17665 haveit=yes
17666 break
17668 done
17669 if test -z "$haveit"; then
17670 rpathdirs="$rpathdirs $dir"
17672 haveit=
17673 for x in $ltrpathdirs; do
17674 if test "X$x" = "X$dir"; then
17675 haveit=yes
17676 break
17678 done
17679 if test -z "$haveit"; then
17680 ltrpathdirs="$ltrpathdirs $dir"
17684 -l*)
17685 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17687 *.la)
17688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17691 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17692 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17694 esac
17695 done
17697 else
17698 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17703 done
17704 done
17705 if test "X$rpathdirs" != "X"; then
17706 if test -n "$hardcode_libdir_separator"; then
17707 alldirs=
17708 for found_dir in $rpathdirs; do
17709 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17710 done
17711 acl_save_libdir="$libdir"
17712 libdir="$alldirs"
17713 eval flag=\"$hardcode_libdir_flag_spec\"
17714 libdir="$acl_save_libdir"
17715 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17716 else
17717 for found_dir in $rpathdirs; do
17718 acl_save_libdir="$libdir"
17719 libdir="$found_dir"
17720 eval flag=\"$hardcode_libdir_flag_spec\"
17721 libdir="$acl_save_libdir"
17722 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17723 done
17726 if test "X$ltrpathdirs" != "X"; then
17727 for found_dir in $ltrpathdirs; do
17728 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17729 done
17732 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17733 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17734 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 gt_save_CPPFLAGS="$CPPFLAGS"
17738 CPPFLAGS="$CPPFLAGS $INCINTL"
17739 gt_save_LIBS="$LIBS"
17740 LIBS="$LIBS $LIBINTL"
17741 cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h. */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <libintl.h>
17748 extern int _nl_msg_cat_cntr;
17749 extern
17750 #ifdef __cplusplus
17752 #endif
17753 const char *_nl_expand_alias ();
17755 main ()
17757 bindtextdomain ("", "");
17758 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17760 return 0;
17762 _ACEOF
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17765 (eval $ac_link) 2>conftest.er1
17766 ac_status=$?
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -z "$ac_c_werror_flag"
17773 || test ! -s conftest.err'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 gt_cv_func_gnugettext2_libintl=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 gt_cv_func_gnugettext2_libintl=no
17792 rm -f conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17794 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17795 LIBS="$LIBS $LIBICONV"
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <libintl.h>
17803 extern int _nl_msg_cat_cntr;
17804 extern
17805 #ifdef __cplusplus
17807 #endif
17808 const char *_nl_expand_alias ();
17810 main ()
17812 bindtextdomain ("", "");
17813 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17815 return 0;
17817 _ACEOF
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17820 (eval $ac_link) 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag"
17828 || test ! -s conftest.err'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 LIBINTL="$LIBINTL $LIBICONV"
17841 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17842 gt_cv_func_gnugettext2_libintl=yes
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17849 rm -f conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17852 CPPFLAGS="$gt_save_CPPFLAGS"
17853 LIBS="$gt_save_LIBS"
17855 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17856 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17859 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17860 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17861 && test "$PACKAGE" != gettext; }; then
17862 gt_use_preinstalled_gnugettext=yes
17863 else
17864 LIBINTL=
17865 LTLIBINTL=
17866 INCINTL=
17870 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17871 nls_cv_use_gnu_gettext=yes
17875 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17876 INTLOBJS="\$(GETTOBJS)"
17877 BUILD_INCLUDED_LIBINTL=yes
17878 USE_INCLUDED_LIBINTL=yes
17879 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17880 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17881 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17884 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17885 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17886 CATOBJEXT=.gmo
17890 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17891 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define ENABLE_NLS 1
17895 _ACEOF
17897 else
17898 USE_NLS=no
17902 if test "$USE_NLS" = "yes"; then
17904 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17905 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17906 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17907 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17908 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17909 echo "${ECHO_T}$LIBINTL" >&6
17911 for element in $INCINTL; do
17912 haveit=
17913 for x in $CPPFLAGS; do
17915 acl_save_prefix="$prefix"
17916 prefix="$acl_final_prefix"
17917 acl_save_exec_prefix="$exec_prefix"
17918 exec_prefix="$acl_final_exec_prefix"
17919 eval x=\"$x\"
17920 exec_prefix="$acl_save_exec_prefix"
17921 prefix="$acl_save_prefix"
17923 if test "X$x" = "X$element"; then
17924 haveit=yes
17925 break
17927 done
17928 if test -z "$haveit"; then
17929 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17931 done
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_GETTEXT 1
17938 _ACEOF
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_DCGETTEXT 1
17943 _ACEOF
17947 POSUB=po
17951 if test "$PACKAGE" = gettext; then
17952 BUILD_INCLUDED_LIBINTL=yes
17960 nls_cv_header_intl=
17961 nls_cv_header_libgt=
17963 DATADIRNAME=share
17966 INSTOBJEXT=.mo
17969 GENCAT=gencat
17972 INTL_LIBTOOL_SUFFIX_PREFIX=
17976 INTLLIBS="$LIBINTL"
17983 if test $USE_INCLUDED_LIBINTL = yes; then
17984 INCINTL=-I\${top_builddir}/intl
17988 if test x$USE_NLS = xyes; then
17990 echo "$as_me:$LINENO: checking for autopoint" >&5
17991 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17992 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17993 if test -n "$autopoint_version"; then
17995 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17996 echo "${ECHO_T}yes ($autopoint_version)" >&6
17999 else
18001 echo "$as_me:$LINENO: result: no" >&5
18002 echo "${ECHO_T}no" >&6
18003 USE_NLS=no
18010 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18011 { echo "$as_me:$LINENO: WARNING:
18012 You need to install GNU gettext/gettext-tools to compile aMule with
18013 i18n support." >&5
18014 echo "$as_me: WARNING:
18015 You need to install GNU gettext/gettext-tools to compile aMule with
18016 i18n support." >&2;}
18017 _mule_warning_9=yes
18018 _mule_has_warnings=yes
18023 if test ${USE_NLS:-no} = yes; then
18025 echo "$as_me:$LINENO: checking for requested languages" >&5
18026 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18027 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18029 if test ${enable_amule_daemon:-no} = yes; then
18031 if test -z "$LINGUAS"; then
18032 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18033 else
18035 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18036 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18040 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18042 else
18043 AMULE_DAEMON_MANPAGES=
18049 if test ${enable_amulecmd:-no} = yes; then
18051 if test -z "$LINGUAS"; then
18052 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18053 else
18055 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18056 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18060 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18062 else
18063 AMULECMD_MANPAGES=
18069 if test ${enable_webserver:-no} = yes; then
18071 if test -z "$LINGUAS"; then
18072 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18073 else
18075 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18076 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
18080 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
18082 else
18083 WEBSERVER_MANPAGES=
18089 if test ${enable_amule_gui:-no} = yes; then
18091 if test -z "$LINGUAS"; then
18092 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18093 else
18095 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18096 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18100 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18102 else
18103 AMULE_GUI_MANPAGES=
18109 if test ${enable_cas:-no} = yes; then
18111 if test -z "$LINGUAS"; then
18112 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18113 else
18115 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18116 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18120 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18122 else
18123 CAS_MANPAGES=
18129 if test ${enable_wxcas:-no} = yes; then
18131 if test -z "$LINGUAS"; then
18132 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18133 else
18135 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18136 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18140 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18142 else
18143 WXCAS_MANPAGES=
18149 if test ${enable_ed2k:-yes} = yes; then
18151 if test -z "$LINGUAS"; then
18152 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18153 else
18155 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18156 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18160 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18162 else
18163 ED2K_MANPAGES=
18169 if test ${enable_alc:-no} = yes; then
18171 if test -z "$LINGUAS"; then
18172 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18173 else
18175 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18176 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18180 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18182 else
18183 ALC_MANPAGES=
18189 if test ${enable_alcc:-no} = yes; then
18191 if test -z "$LINGUAS"; then
18192 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18193 else
18195 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18196 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18200 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18202 else
18203 ALCC_MANPAGES=
18209 if test ${enable_monolithic:-yes} = yes; then
18211 if test -z "$LINGUAS"; then
18212 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18213 else
18215 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18216 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18220 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18222 else
18223 MONOLITHIC_MANPAGES=
18228 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18229 echo "${ECHO_T}${LINGUAS:-all}" >&6
18236 # Check for bfd.h (to have proper backtraces without using wxExecute)
18238 echo "$as_me:$LINENO: checking for bfd" >&5
18239 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18240 result=no
18241 for bfd_ldadd in "" "${LIBINTL}"; do
18242 mule_backup_LIBS="$LIBS"
18243 mule_backup_LDFLAGS="$LDFLAGS"
18244 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18245 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18246 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18254 #include <ansidecl.h>
18255 #include <bfd.h>
18258 main ()
18261 char *dummy = bfd_errmsg(bfd_get_error());
18264 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270 (eval $ac_link) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18291 result=yes
18292 BFD_CPPFLAGS="-DHAVE_BFD"
18293 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18294 LIBS="$mule_backup_LIBS"
18295 LDFLAGS="$mule_backup_LDFLAGS"
18296 break
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18303 rm -f conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS="$mule_backup_LIBS"
18306 LDFLAGS="$mule_backup_LDFLAGS"
18307 done
18309 echo "$as_me:$LINENO: result: $result" >&5
18310 echo "${ECHO_T}$result" >&6
18312 if test $result = no; then
18313 { echo "$as_me:$LINENO: WARNING:
18314 bfd.h not found or unusable, please install binutils development
18315 package if you are a developer or want to help testing aMule" >&5
18316 echo "$as_me: WARNING:
18317 bfd.h not found or unusable, please install binutils development
18318 package if you are a developer or want to help testing aMule" >&2;}
18319 _mule_warning_10=yes
18320 _mule_has_warnings=yes
18327 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18328 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18329 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h. */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 #include <execinfo.h>
18340 main ()
18343 void *bt[1];
18344 int n = backtrace(&bt, 1);
18345 const char **bt_syms = backtrace_symbols(bt, n);
18348 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18377 cat >>confdefs.h <<\_ACEOF
18378 #define HAVE_EXECINFO 1
18379 _ACEOF
18381 echo "$as_me:$LINENO: result: yes" >&5
18382 echo "${ECHO_T}yes" >&6
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18389 echo "$as_me:$LINENO: result: no" >&5
18390 echo "${ECHO_T}no" >&6
18393 rm -f conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext conftest.$ac_ext
18397 # Flush standard test results for speeding cache
18398 cat >confcache <<\_ACEOF
18399 # This file is a shell script that caches the results of configure
18400 # tests run on this system so they can be shared between configure
18401 # scripts and configure runs, see configure's option --config-cache.
18402 # It is not useful on other systems. If it contains results you don't
18403 # want to keep, you may remove or edit it.
18405 # config.status only pays attention to the cache file if you give it
18406 # the --recheck option to rerun configure.
18408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18410 # following values.
18412 _ACEOF
18414 # The following way of writing the cache mishandles newlines in values,
18415 # but we know of no workaround that is simple, portable, and efficient.
18416 # So, don't put newlines in cache variables' values.
18417 # Ultrix sh set writes to stderr and can't be redirected directly,
18418 # and sets the high bit in the cache file unless we assign to the vars.
18420 (set) 2>&1 |
18421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18422 *ac_space=\ *)
18423 # `set' does not quote correctly, so add quotes (double-quote
18424 # substitution turns \\\\ into \\, and sed turns \\ into \).
18425 sed -n \
18426 "s/'/'\\\\''/g;
18427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18430 # `set' quotes correctly as required by POSIX, so do not add quotes.
18431 sed -n \
18432 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18434 esac;
18436 sed '
18437 t clear
18438 : clear
18439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18440 t end
18441 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18442 : end' >>confcache
18443 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18444 if test -w $cache_file; then
18445 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18446 cat confcache >$cache_file
18447 else
18448 echo "not updating unwritable cache $cache_file"
18451 rm -f confcache
18453 # Other tests
18454 # aMule options
18456 # Check whether --enable-debug or --disable-debug was given.
18457 if test "${enable_debug+set}" = set; then
18458 enableval="$enable_debug"
18462 # Check whether --enable-profile or --disable-profile was given.
18463 if test "${enable_profile+set}" = set; then
18464 enableval="$enable_profile"
18468 # Check whether --enable-optimize or --disable-optimize was given.
18469 if test "${enable_optimize+set}" = set; then
18470 enableval="$enable_optimize"
18475 if test ${enable_debug:-yes} = yes; then
18477 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18479 MULECFLAGS="$MULECFLAGS -g"
18480 MULECXXFLAGS="$MULECXXFLAGS -g"
18482 if test ${GLIBCXX:-no} = yes; then
18483 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18486 if test ${GCC:-no} = yes; then
18488 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18489 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18493 if test ${SYS:-unknown} = win32; then
18494 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18498 else
18500 if test ${GCC:-no} = yes; then
18502 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18503 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18511 if test ${enable_profile:-no} = yes; then
18514 MULECFLAGS="$MULECFLAGS -pg"
18515 MULECXXFLAGS="$MULECXXFLAGS -pg"
18517 MULELDFLAGS="$MULELDFLAGS -pg"
18522 if test ${enable_optimize:-no} = yes; then
18524 MULECFLAGS="$MULECFLAGS -O2"
18525 MULECXXFLAGS="$MULECXXFLAGS -O2"
18530 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18533 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18534 echo "$as_me:$LINENO: checking for docdir" >&5
18535 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18536 if test -z "$docdir"; then
18537 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18540 echo "$as_me:$LINENO: result: $docdir" >&5
18541 echo "${ECHO_T}$docdir" >&6
18543 # Try to set the SVN checkout-date
18544 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18545 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18546 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18547 then
18548 svndate="rev. `cat $srcdir/.svn-revision`"
18549 elif test -d $srcdir/.svn # SVNDATE for svn
18550 then
18551 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18553 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18554 echo "${ECHO_T}${svndate:-None required}" >&6
18555 if test -n "$svndate"; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define SVNDATE "$svndate"
18560 _ACEOF
18562 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18566 SVNDATE=$svndate
18570 # Check whether --with-denoise-level or --without-denoise-level was given.
18571 if test "${with_denoise_level+set}" = set; then
18572 withval="$with_denoise_level"
18576 echo "$as_me:$LINENO: checking denoising level" >&5
18577 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18578 if test ${with_denoise_level:-5} = yes; then
18579 with_denoise_level=5
18582 if test ${with_denoise_level:-5} = no; then
18583 with_denoise_level=0
18586 if test ${with_denoise_level:-5} -gt 4; then
18587 if test "${svndate:+set}" = "set"; then
18588 with_denoise_level=0
18589 else
18590 with_denoise_level=4
18595 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18596 echo "${ECHO_T}$with_denoise_level" >&6
18598 ac_config_commands="$ac_config_commands denoiser"
18602 if test ${enable_plasmamule:-no} = yes; then
18605 if test -z ${QT_MOC}; then
18607 for ac_prog in moc-qt4 moc
18609 # Extract the first word of "$ac_prog", so it can be a program name with args.
18610 set dummy $ac_prog; ac_word=$2
18611 echo "$as_me:$LINENO: checking for $ac_word" >&5
18612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18613 if test "${ac_cv_path_QT_MOC+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616 case $QT_MOC in
18617 [\\/]* | ?:[\\/]*)
18618 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18624 IFS=$as_save_IFS
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
18629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 break 2
18632 done
18633 done
18636 esac
18638 QT_MOC=$ac_cv_path_QT_MOC
18640 if test -n "$QT_MOC"; then
18641 echo "$as_me:$LINENO: result: $QT_MOC" >&5
18642 echo "${ECHO_T}$QT_MOC" >&6
18643 else
18644 echo "$as_me:$LINENO: result: no" >&5
18645 echo "${ECHO_T}no" >&6
18648 test -n "$QT_MOC" && break
18649 done
18652 else
18654 echo "$as_me:$LINENO: checking for moc" >&5
18655 echo $ECHO_N "checking for moc... $ECHO_C" >&6
18656 if test -x ${QT_MOC}; then
18658 echo "$as_me:$LINENO: result: ${QT_MOC}" >&5
18659 echo "${ECHO_T}${QT_MOC}" >&6
18662 else
18664 echo "$as_me:$LINENO: result: \"not found\"" >&5
18665 echo "${ECHO_T}\"not found\"" >&6
18666 QT_MOC="not found"
18675 if test "${QT_MOC}" != "not found"; then
18677 echo "$as_me:$LINENO: checking for moc version >= 4" >&5
18678 echo $ECHO_N "checking for moc version >= 4... $ECHO_C" >&6
18679 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
18680 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then
18682 echo "$as_me:$LINENO: result: found ${QT_MOC_VERSION}" >&5
18683 echo "${ECHO_T}found ${QT_MOC_VERSION}" >&6
18685 else
18687 echo "$as_me:$LINENO: result: not found ${QT_MOC_VERSION} is too old" >&5
18688 echo "${ECHO_T}not found ${QT_MOC_VERSION} is too old" >&6
18689 QT_MOC="not found"
18697 if test "${QT_MOC}" = "not found"; then
18698 enable_plasmamule=disabled
18702 if test ${enable_plasmamule:-no} = yes; then
18706 echo "$as_me:$LINENO: checking for qt" >&5
18707 echo $ECHO_N "checking for qt... $ECHO_C" >&6
18708 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then
18710 echo "$as_me:$LINENO: result: found" >&5
18711 echo "${ECHO_T}found" >&6
18712 echo "$as_me:$LINENO: checking for qt core cflags" >&5
18713 echo $ECHO_N "checking for qt core cflags... $ECHO_C" >&6
18714 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
18715 echo "$as_me:$LINENO: result: $QT_CORE_CFLAGS" >&5
18716 echo "${ECHO_T}$QT_CORE_CFLAGS" >&6
18717 echo "$as_me:$LINENO: checking for qt core libs" >&5
18718 echo $ECHO_N "checking for qt core libs... $ECHO_C" >&6
18719 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
18720 echo "$as_me:$LINENO: result: $QT_CORE_LIBS" >&5
18721 echo "${ECHO_T}$QT_CORE_LIBS" >&6
18722 echo "$as_me:$LINENO: checking for qt gui cflags" >&5
18723 echo $ECHO_N "checking for qt gui cflags... $ECHO_C" >&6
18724 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
18725 echo "$as_me:$LINENO: result: $QT_GUI_CFLAGS" >&5
18726 echo "${ECHO_T}$QT_GUI_CFLAGS" >&6
18727 echo "$as_me:$LINENO: checking for qt gui libs" >&5
18728 echo $ECHO_N "checking for qt gui libs... $ECHO_C" >&6
18729 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
18730 echo "$as_me:$LINENO: result: $QT_GUI_LIBS" >&5
18731 echo "${ECHO_T}$QT_GUI_LIBS" >&6
18733 else
18734 echo "$as_me:$LINENO: result: not found" >&5
18735 echo "${ECHO_T}not found" >&6
18744 if test -z "${QT_CORE_CXXFLAGS}"; then
18745 enable_plasmamule=disabled
18752 if test ${enable_plasmamule:-no} = yes; then
18755 if test -z ${KDE4_CONFIG}; then
18757 # Extract the first word of "kde4-config", so it can be a program name with args.
18758 set dummy kde4-config; ac_word=$2
18759 echo "$as_me:$LINENO: checking for $ac_word" >&5
18760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764 case $KDE4_CONFIG in
18765 [\\/]* | ?:[\\/]*)
18766 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18772 IFS=$as_save_IFS
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778 break 2
18780 done
18781 done
18784 esac
18786 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
18788 if test -n "$KDE4_CONFIG"; then
18789 echo "$as_me:$LINENO: result: $KDE4_CONFIG" >&5
18790 echo "${ECHO_T}$KDE4_CONFIG" >&6
18791 else
18792 echo "$as_me:$LINENO: result: no" >&5
18793 echo "${ECHO_T}no" >&6
18797 else
18799 echo "$as_me:$LINENO: checking for kde4-config" >&5
18800 echo $ECHO_N "checking for kde4-config... $ECHO_C" >&6
18801 if test ! -x KDE4_CONFIG; then
18803 KDE4_CONFIG="not found"
18804 echo "$as_me:$LINENO: result: not found" >&5
18805 echo "${ECHO_T}not found" >&6
18813 if test "${KDE4_CONFIG}" != "not found"; then
18815 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
18816 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then
18818 echo "$as_me:$LINENO: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
18819 echo "${ECHO_T}found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6
18821 else
18823 echo "$as_me:$LINENO: result: not found" >&5
18824 echo "${ECHO_T}not found" >&6
18829 else
18831 echo "$as_me:$LINENO: result: not found" >&5
18832 echo "${ECHO_T}not found" >&6
18838 if test "${KDE4_CONFIG}" = "not found"; then
18839 enable_plasmamule=disabled
18846 if test ${enable_plasmamule:-no} = yes; then
18849 echo "$as_me:$LINENO: checking for kde4 headers" >&5
18850 echo $ECHO_N "checking for kde4 headers... $ECHO_C" >&6
18851 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
18853 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then
18855 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then
18857 echo "$as_me:$LINENO: result: ${KDE_HEADER_DIR}" >&5
18858 echo "${ECHO_T}${KDE_HEADER_DIR}" >&6
18860 else
18862 echo "$as_me:$LINENO: result: not found" >&5
18863 echo "${ECHO_T}not found" >&6
18868 else
18870 echo "$as_me:$LINENO: result: not found2" >&5
18871 echo "${ECHO_T}not found2" >&6
18877 if test -z ${KDE_HEADER_DIR}; then
18878 enable_plasmamule=disabled
18885 if test ${enable_plasmamule:-no} = yes; then
18887 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
18888 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then
18892 echo "$as_me:$LINENO: checking for kde4 applinks Path" >&5
18893 echo $ECHO_N "checking for kde4 applinks Path... $ECHO_C" >&6
18894 if test `echo ${prefix} | grep home | wc -l` == 1; then
18896 KDE_IN_HOME="yes"
18900 if test ${KDE_IN_HOME} = "yes"; then
18902 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18904 else
18906 if test -n ${prefix}; then
18908 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
18909 if test -n ${KDE_APPLNK_PATH}; then
18911 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18916 else
18918 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18925 echo "$as_me:$LINENO: result: ${KDE_APPLNK_PATH}" >&5
18926 echo "${ECHO_T}${KDE_APPLNK_PATH}" >&6
18931 echo "$as_me:$LINENO: checking for kde4 services Path" >&5
18932 echo $ECHO_N "checking for kde4 services Path... $ECHO_C" >&6
18933 if test `echo ${prefix} | grep home | wc -l` == 1; then
18935 KDE_IN_HOME="yes"
18939 if test ${KDE_IN_HOME} = "yes"; then
18941 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18943 else
18945 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
18949 echo "$as_me:$LINENO: result: ${KDE_SERVICE_PATH}" >&5
18950 echo "${ECHO_T}${KDE_SERVICE_PATH}" >&6
18955 echo "$as_me:$LINENO: checking for kde4 plugins Path" >&5
18956 echo $ECHO_N "checking for kde4 plugins Path... $ECHO_C" >&6
18957 if test `echo ${prefix} | grep home | wc -l` == 1; then
18959 KDE_IN_HOME="yes"
18963 if test ${KDE_IN_HOME} = "yes"; then
18965 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18967 else
18969 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
18973 echo "$as_me:$LINENO: result: ${KDE_MODULE_PATH}" >&5
18974 echo "${ECHO_T}${KDE_MODULE_PATH}" >&6
18979 echo "$as_me:$LINENO: checking for kde4 icons Path" >&5
18980 echo $ECHO_N "checking for kde4 icons Path... $ECHO_C" >&6
18981 if test `echo ${prefix} | grep home | wc -l` == 1; then
18983 KDE_IN_HOME="yes"
18987 if test ${KDE_IN_HOME} = "yes"; then
18989 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18991 else
18993 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
18997 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
18998 echo "$as_me:$LINENO: result: ${KDE_ICON_PATH}" >&5
18999 echo "${ECHO_T}${KDE_ICON_PATH}" >&6
19004 echo "$as_me:$LINENO: checking for location for mime-type installation" >&5
19005 echo $ECHO_N "checking for location for mime-type installation... $ECHO_C" >&6
19006 if test `echo ${prefix} | grep home | wc -l` == 1; then
19008 KDE_IN_HOME="yes"
19012 if test ${KDE_IN_HOME} = "yes"; then
19014 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
19016 else
19018 if test -n ${prefix}; then
19020 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
19021 if test -n ${KDE_MIME_PATH}; then
19023 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19028 else
19030 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19037 echo "$as_me:$LINENO: result: ${KDE_MIME_PATH}" >&5
19038 echo "${ECHO_T}${KDE_MIME_PATH}" >&6
19042 else
19043 enable_plasmamule=disabled
19055 if test x$SYS = xwin32; then
19056 SYS_WIN32_TRUE=
19057 SYS_WIN32_FALSE='#'
19058 else
19059 SYS_WIN32_TRUE='#'
19060 SYS_WIN32_FALSE=
19065 if test x$SYS = xwin32 -a "$RC" != ":"; then
19066 NEED_RC_TRUE=
19067 NEED_RC_FALSE='#'
19068 else
19069 NEED_RC_TRUE='#'
19070 NEED_RC_FALSE=
19075 if test x$SYS = xdarwin; then
19076 NEED_CORESERVICES_TRUE=
19077 NEED_CORESERVICES_FALSE='#'
19078 else
19079 NEED_CORESERVICES_TRUE='#'
19080 NEED_CORESERVICES_FALSE=
19085 if test x$USE_NLS = xyes; then
19086 COMPILE_NLS_TRUE=
19087 COMPILE_NLS_FALSE='#'
19088 else
19089 COMPILE_NLS_TRUE='#'
19090 COMPILE_NLS_FALSE=
19095 if test x$HAVE_FLEX_EXTENDED = xyes; then
19096 GENERATE_FLEX_HEADER_TRUE=
19097 GENERATE_FLEX_HEADER_FALSE='#'
19098 else
19099 GENERATE_FLEX_HEADER_TRUE='#'
19100 GENERATE_FLEX_HEADER_FALSE=
19105 if test x$INSTALL_SKINS = xyes; then
19106 INSTALL_SKINS_TRUE=
19107 INSTALL_SKINS_FALSE='#'
19108 else
19109 INSTALL_SKINS_TRUE='#'
19110 INSTALL_SKINS_FALSE=
19115 if test ${enable_plasmamule:-no} = yes; then
19116 PLASMAMULE_TRUE=
19117 PLASMAMULE_FALSE='#'
19118 else
19119 PLASMAMULE_TRUE='#'
19120 PLASMAMULE_FALSE=
19124 # Check for readline library
19125 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then
19127 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19128 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19129 if test "${vl_cv_lib_readline+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19133 ORIG_LIBS="$LIBS"
19134 for readline_lib in readline edit editline; do
19135 for termcap_lib in "" termcap curses ncurses; do
19136 if test -z "$termcap_lib"; then
19137 TRY_LIB="-l$readline_lib"
19138 else
19139 TRY_LIB="-l$readline_lib -l$termcap_lib"
19141 LIBS="$ORIG_LIBS $TRY_LIB"
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19149 /* Override any gcc2 internal prototype to avoid an error. */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 /* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155 char readline ();
19157 main ()
19159 readline ();
19161 return 0;
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest$ac_exeext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 vl_cv_lib_readline="$TRY_LIB"
19187 else
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -f conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 if test -n "$vl_cv_lib_readline"; then
19195 break
19197 done
19198 if test -n "$vl_cv_lib_readline"; then
19199 break
19201 done
19202 if test -z "$vl_cv_lib_readline"; then
19203 vl_cv_lib_readline="no"
19204 LIBS="$ORIG_LIBS"
19205 READLINE_LIBS=""
19206 else
19207 READLINE_LIBS="$vl_cv_lib_readline"
19211 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19212 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19214 if test "$vl_cv_lib_readline" != "no"; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LIBREADLINE 1
19218 _ACEOF
19222 for ac_header in readline.h readline/readline.h
19224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19226 echo "$as_me:$LINENO: checking for $ac_header" >&5
19227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19233 else
19234 # Is the header compilable?
19235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 $ac_includes_default
19244 #include <$ac_header>
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_header_compiler=yes
19269 else
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_header_compiler=no
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19277 echo "${ECHO_T}$ac_header_compiler" >&6
19279 # Is the header present?
19280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288 #include <$ac_header>
19289 _ACEOF
19290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } >/dev/null; then
19298 if test -s conftest.err; then
19299 ac_cpp_err=$ac_c_preproc_warn_flag
19300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19301 else
19302 ac_cpp_err=
19304 else
19305 ac_cpp_err=yes
19307 if test -z "$ac_cpp_err"; then
19308 ac_header_preproc=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_header_preproc=no
19315 rm -f conftest.err conftest.$ac_ext
19316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19317 echo "${ECHO_T}$ac_header_preproc" >&6
19319 # So? What about this header?
19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19321 yes:no: )
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19326 ac_header_preproc=yes
19328 no:yes:* )
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19342 cat <<\_ASBOX
19343 ## ------------------------------ ##
19344 ## Report this to admin@amule.org ##
19345 ## ------------------------------ ##
19346 _ASBOX
19348 sed "s/^/$as_me: WARNING: /" >&2
19350 esac
19351 echo "$as_me:$LINENO: checking for $ac_header" >&5
19352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356 eval "$as_ac_Header=\$ac_header_preproc"
19358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19363 cat >>confdefs.h <<_ACEOF
19364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19365 _ACEOF
19369 done
19371 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19372 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19373 if test "${vl_cv_lib_readline_history+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19377 vl_cv_lib_readline_history="no"
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19385 /* Override any gcc2 internal prototype to avoid an error. */
19386 #ifdef __cplusplus
19387 extern "C"
19388 #endif
19389 /* We use char because int might match the return type of a gcc2
19390 builtin and then its argument prototype would still apply. */
19391 char add_history ();
19393 main ()
19395 add_history ();
19397 return 0;
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402 (eval $ac_link) 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_c_werror_flag"
19410 || test ! -s conftest.err'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try='test -s conftest$ac_exeext'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 vl_cv_lib_readline_history="yes"
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f conftest.err conftest.$ac_objext \
19429 conftest$ac_exeext conftest.$ac_ext
19432 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19433 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19434 if test "$vl_cv_lib_readline_history" = "yes"; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_READLINE_HISTORY 1
19438 _ACEOF
19442 for ac_header in history.h readline/history.h
19444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19446 echo "$as_me:$LINENO: checking for $ac_header" >&5
19447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19453 else
19454 # Is the header compilable?
19455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19464 #include <$ac_header>
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19468 (eval $ac_compile) 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -z "$ac_c_werror_flag"
19476 || test ! -s conftest.err'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_header_compiler=yes
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_header_compiler=no
19495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19497 echo "${ECHO_T}$ac_header_compiler" >&6
19499 # Is the header present?
19500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19502 cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h. */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 #include <$ac_header>
19509 _ACEOF
19510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } >/dev/null; then
19518 if test -s conftest.err; then
19519 ac_cpp_err=$ac_c_preproc_warn_flag
19520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19521 else
19522 ac_cpp_err=
19524 else
19525 ac_cpp_err=yes
19527 if test -z "$ac_cpp_err"; then
19528 ac_header_preproc=yes
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_header_preproc=no
19535 rm -f conftest.err conftest.$ac_ext
19536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19537 echo "${ECHO_T}$ac_header_preproc" >&6
19539 # So? What about this header?
19540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19541 yes:no: )
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19546 ac_header_preproc=yes
19548 no:yes:* )
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19562 cat <<\_ASBOX
19563 ## ------------------------------ ##
19564 ## Report this to admin@amule.org ##
19565 ## ------------------------------ ##
19566 _ASBOX
19568 sed "s/^/$as_me: WARNING: /" >&2
19570 esac
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 eval "$as_ac_Header=\$ac_header_preproc"
19578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19585 _ACEOF
19589 done
19594 LIBS="$ORIG_LIBS"
19599 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19602 # Check whether --enable-ccache or --disable-ccache was given.
19603 if test "${enable_ccache+set}" = set; then
19604 enableval="$enable_ccache"
19610 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19611 if test "${with_ccache_prefix+set}" = set; then
19612 withval="$with_ccache_prefix"
19616 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19617 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19618 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19619 echo "${ECHO_T}${enable_ccache:-no}" >&6
19621 if test ${enable_ccache:-no} = yes; then
19623 echo "$as_me:$LINENO: checking for ccache presence" >&5
19624 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19625 if test -z "$with_ccache_prefix"; then
19627 ccache_full=`which ccache`
19628 with_ccache_prefix=`dirname ${ccache_full}`
19632 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19634 CC="$with_ccache_prefix/ccache $CC"
19635 CXX="$with_ccache_prefix/ccache $CXX"
19636 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19638 else
19639 enable_ccache=no
19642 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19643 echo "${ECHO_T}${enable_ccache:-no}" >&6
19649 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19651 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19653 if test x$SYS = xwin32; then
19654 ac_config_files="$ac_config_files version.rc"
19658 cat >confcache <<\_ACEOF
19659 # This file is a shell script that caches the results of configure
19660 # tests run on this system so they can be shared between configure
19661 # scripts and configure runs, see configure's option --config-cache.
19662 # It is not useful on other systems. If it contains results you don't
19663 # want to keep, you may remove or edit it.
19665 # config.status only pays attention to the cache file if you give it
19666 # the --recheck option to rerun configure.
19668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19670 # following values.
19672 _ACEOF
19674 # The following way of writing the cache mishandles newlines in values,
19675 # but we know of no workaround that is simple, portable, and efficient.
19676 # So, don't put newlines in cache variables' values.
19677 # Ultrix sh set writes to stderr and can't be redirected directly,
19678 # and sets the high bit in the cache file unless we assign to the vars.
19680 (set) 2>&1 |
19681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19682 *ac_space=\ *)
19683 # `set' does not quote correctly, so add quotes (double-quote
19684 # substitution turns \\\\ into \\, and sed turns \\ into \).
19685 sed -n \
19686 "s/'/'\\\\''/g;
19687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19690 # `set' quotes correctly as required by POSIX, so do not add quotes.
19691 sed -n \
19692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19694 esac;
19696 sed '
19697 t clear
19698 : clear
19699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19700 t end
19701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19702 : end' >>confcache
19703 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19704 if test -w $cache_file; then
19705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19706 cat confcache >$cache_file
19707 else
19708 echo "not updating unwritable cache $cache_file"
19711 rm -f confcache
19713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19714 # Let make expand exec_prefix.
19715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19719 # trailing colons and then remove the whole line if VPATH becomes empty
19720 # (actually we leave an empty line to preserve line numbers).
19721 if test "x$srcdir" = x.; then
19722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19723 s/:*\$(srcdir):*/:/;
19724 s/:*\${srcdir}:*/:/;
19725 s/:*@srcdir@:*/:/;
19726 s/^\([^=]*=[ ]*\):*/\1/;
19727 s/:*$//;
19728 s/^[^=]*=[ ]*$//;
19732 DEFS=-DHAVE_CONFIG_H
19734 ac_libobjs=
19735 ac_ltlibobjs=
19736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19737 # 1. Remove the extension, and $U if already installed.
19738 ac_i=`echo "$ac_i" |
19739 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19740 # 2. Add them.
19741 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19742 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19743 done
19744 LIBOBJS=$ac_libobjs
19746 LTLIBOBJS=$ac_ltlibobjs
19749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19750 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&5
19752 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19753 Usually this means the macro was only invoked conditionally." >&2;}
19754 { (exit 1); exit 1; }; }
19756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19757 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&5
19759 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19760 Usually this means the macro was only invoked conditionally." >&2;}
19761 { (exit 1); exit 1; }; }
19763 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19764 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&5
19766 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19767 Usually this means the macro was only invoked conditionally." >&2;}
19768 { (exit 1); exit 1; }; }
19770 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19771 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&5
19773 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&2;}
19775 { (exit 1); exit 1; }; }
19777 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19778 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19779 Usually this means the macro was only invoked conditionally." >&5
19780 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&2;}
19782 { (exit 1); exit 1; }; }
19784 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19785 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19786 Usually this means the macro was only invoked conditionally." >&5
19787 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&2;}
19789 { (exit 1); exit 1; }; }
19791 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19792 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19793 Usually this means the macro was only invoked conditionally." >&5
19794 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19795 Usually this means the macro was only invoked conditionally." >&2;}
19796 { (exit 1); exit 1; }; }
19798 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19799 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19800 Usually this means the macro was only invoked conditionally." >&5
19801 echo "$as_me: error: conditional \"WEB\" was never defined.
19802 Usually this means the macro was only invoked conditionally." >&2;}
19803 { (exit 1); exit 1; }; }
19805 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19806 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19807 Usually this means the macro was only invoked conditionally." >&5
19808 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19809 Usually this means the macro was only invoked conditionally." >&2;}
19810 { (exit 1); exit 1; }; }
19812 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19813 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19814 Usually this means the macro was only invoked conditionally." >&5
19815 echo "$as_me: error: conditional \"CAS\" was never defined.
19816 Usually this means the macro was only invoked conditionally." >&2;}
19817 { (exit 1); exit 1; }; }
19819 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19820 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19821 Usually this means the macro was only invoked conditionally." >&5
19822 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19823 Usually this means the macro was only invoked conditionally." >&2;}
19824 { (exit 1); exit 1; }; }
19826 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19827 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19828 Usually this means the macro was only invoked conditionally." >&5
19829 echo "$as_me: error: conditional \"ED2K\" was never defined.
19830 Usually this means the macro was only invoked conditionally." >&2;}
19831 { (exit 1); exit 1; }; }
19833 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19834 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19835 Usually this means the macro was only invoked conditionally." >&5
19836 echo "$as_me: error: conditional \"ALC\" was never defined.
19837 Usually this means the macro was only invoked conditionally." >&2;}
19838 { (exit 1); exit 1; }; }
19840 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19841 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19842 Usually this means the macro was only invoked conditionally." >&5
19843 echo "$as_me: error: conditional \"ALCC\" was never defined.
19844 Usually this means the macro was only invoked conditionally." >&2;}
19845 { (exit 1); exit 1; }; }
19847 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19848 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19849 Usually this means the macro was only invoked conditionally." >&5
19850 echo "$as_me: error: conditional \"XAS\" was never defined.
19851 Usually this means the macro was only invoked conditionally." >&2;}
19852 { (exit 1); exit 1; }; }
19854 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19855 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19856 Usually this means the macro was only invoked conditionally." >&5
19857 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19858 Usually this means the macro was only invoked conditionally." >&2;}
19859 { (exit 1); exit 1; }; }
19861 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19862 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19863 Usually this means the macro was only invoked conditionally." >&5
19864 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19865 Usually this means the macro was only invoked conditionally." >&2;}
19866 { (exit 1); exit 1; }; }
19868 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19869 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19870 Usually this means the macro was only invoked conditionally." >&5
19871 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19872 Usually this means the macro was only invoked conditionally." >&2;}
19873 { (exit 1); exit 1; }; }
19875 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19876 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19877 Usually this means the macro was only invoked conditionally." >&5
19878 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19879 Usually this means the macro was only invoked conditionally." >&2;}
19880 { (exit 1); exit 1; }; }
19882 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19883 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19884 Usually this means the macro was only invoked conditionally." >&5
19885 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19886 Usually this means the macro was only invoked conditionally." >&2;}
19887 { (exit 1); exit 1; }; }
19889 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19890 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19891 Usually this means the macro was only invoked conditionally." >&5
19892 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19893 Usually this means the macro was only invoked conditionally." >&2;}
19894 { (exit 1); exit 1; }; }
19896 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19897 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&5
19899 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&2;}
19901 { (exit 1); exit 1; }; }
19903 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
19904 { { echo "$as_me:$LINENO: error: conditional \"PLASMAMULE\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"PLASMAMULE\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908 { (exit 1); exit 1; }; }
19911 : ${CONFIG_STATUS=./config.status}
19912 ac_clean_files_save=$ac_clean_files
19913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19914 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19915 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19916 cat >$CONFIG_STATUS <<_ACEOF
19917 #! $SHELL
19918 # Generated by $as_me.
19919 # Run this file to recreate the current configuration.
19920 # Compiler output produced by configure, useful for debugging
19921 # configure, is in config.log if it exists.
19923 debug=false
19924 ac_cs_recheck=false
19925 ac_cs_silent=false
19926 SHELL=\${CONFIG_SHELL-$SHELL}
19927 _ACEOF
19929 cat >>$CONFIG_STATUS <<\_ACEOF
19930 ## --------------------- ##
19931 ## M4sh Initialization. ##
19932 ## --------------------- ##
19934 # Be Bourne compatible
19935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19936 emulate sh
19937 NULLCMD=:
19938 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19939 # is contrary to our usage. Disable this feature.
19940 alias -g '${1+"$@"}'='"$@"'
19941 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19942 set -o posix
19944 DUALCASE=1; export DUALCASE # for MKS sh
19946 # Support unset when possible.
19947 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19948 as_unset=unset
19949 else
19950 as_unset=false
19954 # Work around bugs in pre-3.0 UWIN ksh.
19955 $as_unset ENV MAIL MAILPATH
19956 PS1='$ '
19957 PS2='> '
19958 PS4='+ '
19960 # NLS nuisances.
19961 for as_var in \
19962 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19963 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19964 LC_TELEPHONE LC_TIME
19966 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19967 eval $as_var=C; export $as_var
19968 else
19969 $as_unset $as_var
19971 done
19973 # Required to use basename.
19974 if expr a : '\(a\)' >/dev/null 2>&1; then
19975 as_expr=expr
19976 else
19977 as_expr=false
19980 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19981 as_basename=basename
19982 else
19983 as_basename=false
19987 # Name of the executable.
19988 as_me=`$as_basename "$0" ||
19989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19990 X"$0" : 'X\(//\)$' \| \
19991 X"$0" : 'X\(/\)$' \| \
19992 . : '\(.\)' 2>/dev/null ||
19993 echo X/"$0" |
19994 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19995 /^X\/\(\/\/\)$/{ s//\1/; q; }
19996 /^X\/\(\/\).*/{ s//\1/; q; }
19997 s/.*/./; q'`
20000 # PATH needs CR, and LINENO needs CR and PATH.
20001 # Avoid depending upon Character Ranges.
20002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20005 as_cr_digits='0123456789'
20006 as_cr_alnum=$as_cr_Letters$as_cr_digits
20008 # The user is always right.
20009 if test "${PATH_SEPARATOR+set}" != set; then
20010 echo "#! /bin/sh" >conf$$.sh
20011 echo "exit 0" >>conf$$.sh
20012 chmod +x conf$$.sh
20013 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20014 PATH_SEPARATOR=';'
20015 else
20016 PATH_SEPARATOR=:
20018 rm -f conf$$.sh
20022 as_lineno_1=$LINENO
20023 as_lineno_2=$LINENO
20024 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20025 test "x$as_lineno_1" != "x$as_lineno_2" &&
20026 test "x$as_lineno_3" = "x$as_lineno_2" || {
20027 # Find who we are. Look in the path if we contain no path at all
20028 # relative or not.
20029 case $0 in
20030 *[\\/]* ) as_myself=$0 ;;
20031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20032 for as_dir in $PATH
20034 IFS=$as_save_IFS
20035 test -z "$as_dir" && as_dir=.
20036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20037 done
20040 esac
20041 # We did not find ourselves, most probably we were run as `sh COMMAND'
20042 # in which case we are not to be found in the path.
20043 if test "x$as_myself" = x; then
20044 as_myself=$0
20046 if test ! -f "$as_myself"; then
20047 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20048 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20049 { (exit 1); exit 1; }; }
20051 case $CONFIG_SHELL in
20053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20054 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20056 IFS=$as_save_IFS
20057 test -z "$as_dir" && as_dir=.
20058 for as_base in sh bash ksh sh5; do
20059 case $as_dir in
20061 if ("$as_dir/$as_base" -c '
20062 as_lineno_1=$LINENO
20063 as_lineno_2=$LINENO
20064 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20065 test "x$as_lineno_1" != "x$as_lineno_2" &&
20066 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20067 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20068 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20069 CONFIG_SHELL=$as_dir/$as_base
20070 export CONFIG_SHELL
20071 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20072 fi;;
20073 esac
20074 done
20075 done
20077 esac
20079 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20080 # uniformly replaced by the line number. The first 'sed' inserts a
20081 # line-number line before each line; the second 'sed' does the real
20082 # work. The second script uses 'N' to pair each line-number line
20083 # with the numbered line, and appends trailing '-' during
20084 # substitution so that $LINENO is not a special case at line end.
20085 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20086 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20087 sed '=' <$as_myself |
20088 sed '
20090 s,$,-,
20091 : loop
20092 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20093 t loop
20094 s,-$,,
20095 s,^['$as_cr_digits']*\n,,
20096 ' >$as_me.lineno &&
20097 chmod +x $as_me.lineno ||
20098 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20099 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20100 { (exit 1); exit 1; }; }
20102 # Don't try to exec as it changes $[0], causing all sort of problems
20103 # (the dirname of $[0] is not the place where we might find the
20104 # original and so on. Autoconf is especially sensible to this).
20105 . ./$as_me.lineno
20106 # Exit status is that of the last command.
20107 exit
20111 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20112 *c*,-n*) ECHO_N= ECHO_C='
20113 ' ECHO_T=' ' ;;
20114 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20115 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20116 esac
20118 if expr a : '\(a\)' >/dev/null 2>&1; then
20119 as_expr=expr
20120 else
20121 as_expr=false
20124 rm -f conf$$ conf$$.exe conf$$.file
20125 echo >conf$$.file
20126 if ln -s conf$$.file conf$$ 2>/dev/null; then
20127 # We could just check for DJGPP; but this test a) works b) is more generic
20128 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20129 if test -f conf$$.exe; then
20130 # Don't use ln at all; we don't have any links
20131 as_ln_s='cp -p'
20132 else
20133 as_ln_s='ln -s'
20135 elif ln conf$$.file conf$$ 2>/dev/null; then
20136 as_ln_s=ln
20137 else
20138 as_ln_s='cp -p'
20140 rm -f conf$$ conf$$.exe conf$$.file
20142 if mkdir -p . 2>/dev/null; then
20143 as_mkdir_p=:
20144 else
20145 test -d ./-p && rmdir ./-p
20146 as_mkdir_p=false
20149 as_executable_p="test -f"
20151 # Sed expression to map a string onto a valid CPP name.
20152 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20154 # Sed expression to map a string onto a valid variable name.
20155 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20158 # IFS
20159 # We need space, tab and new line, in precisely that order.
20160 as_nl='
20162 IFS=" $as_nl"
20164 # CDPATH.
20165 $as_unset CDPATH
20167 exec 6>&1
20169 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20170 # report actual input values of CONFIG_FILES etc. instead of their
20171 # values after options handling. Logging --version etc. is OK.
20172 exec 5>>config.log
20174 echo
20175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20176 ## Running $as_me. ##
20177 _ASBOX
20178 } >&5
20179 cat >&5 <<_CSEOF
20181 This file was extended by aMule $as_me SVN, which was
20182 generated by GNU Autoconf 2.59. Invocation command line was
20184 CONFIG_FILES = $CONFIG_FILES
20185 CONFIG_HEADERS = $CONFIG_HEADERS
20186 CONFIG_LINKS = $CONFIG_LINKS
20187 CONFIG_COMMANDS = $CONFIG_COMMANDS
20188 $ $0 $@
20190 _CSEOF
20191 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20192 echo >&5
20193 _ACEOF
20195 # Files that config.status was made for.
20196 if test -n "$ac_config_files"; then
20197 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20200 if test -n "$ac_config_headers"; then
20201 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20204 if test -n "$ac_config_links"; then
20205 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20208 if test -n "$ac_config_commands"; then
20209 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20212 cat >>$CONFIG_STATUS <<\_ACEOF
20214 ac_cs_usage="\
20215 \`$as_me' instantiates files from templates according to the
20216 current configuration.
20218 Usage: $0 [OPTIONS] [FILE]...
20220 -h, --help print this help, then exit
20221 -V, --version print version number, then exit
20222 -q, --quiet do not print progress messages
20223 -d, --debug don't remove temporary files
20224 --recheck update $as_me by reconfiguring in the same conditions
20225 --file=FILE[:TEMPLATE]
20226 instantiate the configuration file FILE
20227 --header=FILE[:TEMPLATE]
20228 instantiate the configuration header FILE
20230 Configuration files:
20231 $config_files
20233 Configuration headers:
20234 $config_headers
20236 Configuration commands:
20237 $config_commands
20239 Report bugs to <bug-autoconf@gnu.org>."
20240 _ACEOF
20242 cat >>$CONFIG_STATUS <<_ACEOF
20243 ac_cs_version="\\
20244 aMule config.status SVN
20245 configured by $0, generated by GNU Autoconf 2.59,
20246 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20248 Copyright (C) 2003 Free Software Foundation, Inc.
20249 This config.status script is free software; the Free Software Foundation
20250 gives unlimited permission to copy, distribute and modify it."
20251 srcdir=$srcdir
20252 INSTALL="$INSTALL"
20253 _ACEOF
20255 cat >>$CONFIG_STATUS <<\_ACEOF
20256 # If no file are specified by the user, then we need to provide default
20257 # value. By we need to know if files were specified by the user.
20258 ac_need_defaults=:
20259 while test $# != 0
20261 case $1 in
20262 --*=*)
20263 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20264 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20265 ac_shift=:
20268 ac_option=$1
20269 ac_optarg=$2
20270 ac_shift=shift
20272 *) # This is not an option, so the user has probably given explicit
20273 # arguments.
20274 ac_option=$1
20275 ac_need_defaults=false;;
20276 esac
20278 case $ac_option in
20279 # Handling of the options.
20280 _ACEOF
20281 cat >>$CONFIG_STATUS <<\_ACEOF
20282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20283 ac_cs_recheck=: ;;
20284 --version | --vers* | -V )
20285 echo "$ac_cs_version"; exit 0 ;;
20286 --he | --h)
20287 # Conflict between --help and --header
20288 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20289 Try \`$0 --help' for more information." >&5
20290 echo "$as_me: error: ambiguous option: $1
20291 Try \`$0 --help' for more information." >&2;}
20292 { (exit 1); exit 1; }; };;
20293 --help | --hel | -h )
20294 echo "$ac_cs_usage"; exit 0 ;;
20295 --debug | --d* | -d )
20296 debug=: ;;
20297 --file | --fil | --fi | --f )
20298 $ac_shift
20299 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20300 ac_need_defaults=false;;
20301 --header | --heade | --head | --hea )
20302 $ac_shift
20303 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20304 ac_need_defaults=false;;
20305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20307 ac_cs_silent=: ;;
20309 # This is an error.
20310 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20311 Try \`$0 --help' for more information." >&5
20312 echo "$as_me: error: unrecognized option: $1
20313 Try \`$0 --help' for more information." >&2;}
20314 { (exit 1); exit 1; }; } ;;
20316 *) ac_config_targets="$ac_config_targets $1" ;;
20318 esac
20319 shift
20320 done
20322 ac_configure_extra_args=
20324 if $ac_cs_silent; then
20325 exec 6>/dev/null
20326 ac_configure_extra_args="$ac_configure_extra_args --silent"
20329 _ACEOF
20330 cat >>$CONFIG_STATUS <<_ACEOF
20331 if \$ac_cs_recheck; then
20332 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20333 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20336 _ACEOF
20338 cat >>$CONFIG_STATUS <<_ACEOF
20340 # INIT-COMMANDS section.
20343 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20344 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20345 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20346 # from automake.
20347 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20348 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20349 LINGUAS="${LINGUAS-%UNSET%}"
20351 denoiserlevel=$with_denoise_level
20353 _ACEOF
20357 cat >>$CONFIG_STATUS <<\_ACEOF
20358 for ac_config_target in $ac_config_targets
20360 case "$ac_config_target" in
20361 # Handling of arguments.
20362 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20363 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20364 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20365 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20366 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20367 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20368 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20369 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20370 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20371 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20372 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20373 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20374 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20375 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20376 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20377 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20378 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20379 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20380 "src/utils/plasmamule/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
20381 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20382 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20383 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20384 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20385 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20386 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20387 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20388 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20389 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20390 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20391 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20392 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20393 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20394 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20395 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20396 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20397 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20398 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20399 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20400 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20401 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20402 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20403 { (exit 1); exit 1; }; };;
20404 esac
20405 done
20407 # If the user did not use the arguments to specify the items to instantiate,
20408 # then the envvar interface is used. Set only those that are not.
20409 # We use the long form for the default assignment because of an extremely
20410 # bizarre bug on SunOS 4.1.3.
20411 if $ac_need_defaults; then
20412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20417 # Have a temporary directory for convenience. Make it in the build tree
20418 # simply because there is no reason to put it here, and in addition,
20419 # creating and moving files from /tmp can sometimes cause problems.
20420 # Create a temporary directory, and hook for its removal unless debugging.
20421 $debug ||
20423 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20424 trap '{ (exit 1); exit 1; }' 1 2 13 15
20427 # Create a (secure) tmp directory for tmp files.
20430 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20431 test -n "$tmp" && test -d "$tmp"
20432 } ||
20434 tmp=./confstat$$-$RANDOM
20435 (umask 077 && mkdir $tmp)
20436 } ||
20438 echo "$me: cannot create a temporary directory in ." >&2
20439 { (exit 1); exit 1; }
20442 _ACEOF
20444 cat >>$CONFIG_STATUS <<_ACEOF
20447 # CONFIG_FILES section.
20450 # No need to generate the scripts if there are no CONFIG_FILES.
20451 # This happens for instance when ./config.status config.h
20452 if test -n "\$CONFIG_FILES"; then
20453 # Protect against being on the right side of a sed subst in config.status.
20454 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20455 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20456 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20457 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20458 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20459 s,@SHELL@,$SHELL,;t t
20460 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20461 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20462 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20463 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20464 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20465 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20466 s,@exec_prefix@,$exec_prefix,;t t
20467 s,@prefix@,$prefix,;t t
20468 s,@program_transform_name@,$program_transform_name,;t t
20469 s,@bindir@,$bindir,;t t
20470 s,@sbindir@,$sbindir,;t t
20471 s,@libexecdir@,$libexecdir,;t t
20472 s,@datadir@,$datadir,;t t
20473 s,@sysconfdir@,$sysconfdir,;t t
20474 s,@sharedstatedir@,$sharedstatedir,;t t
20475 s,@localstatedir@,$localstatedir,;t t
20476 s,@libdir@,$libdir,;t t
20477 s,@includedir@,$includedir,;t t
20478 s,@oldincludedir@,$oldincludedir,;t t
20479 s,@infodir@,$infodir,;t t
20480 s,@mandir@,$mandir,;t t
20481 s,@build_alias@,$build_alias,;t t
20482 s,@host_alias@,$host_alias,;t t
20483 s,@target_alias@,$target_alias,;t t
20484 s,@DEFS@,$DEFS,;t t
20485 s,@ECHO_C@,$ECHO_C,;t t
20486 s,@ECHO_N@,$ECHO_N,;t t
20487 s,@ECHO_T@,$ECHO_T,;t t
20488 s,@LIBS@,$LIBS,;t t
20489 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20490 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20491 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20492 s,@CYGPATH_W@,$CYGPATH_W,;t t
20493 s,@PACKAGE@,$PACKAGE,;t t
20494 s,@VERSION@,$VERSION,;t t
20495 s,@ACLOCAL@,$ACLOCAL,;t t
20496 s,@AUTOCONF@,$AUTOCONF,;t t
20497 s,@AUTOMAKE@,$AUTOMAKE,;t t
20498 s,@AUTOHEADER@,$AUTOHEADER,;t t
20499 s,@MAKEINFO@,$MAKEINFO,;t t
20500 s,@install_sh@,$install_sh,;t t
20501 s,@STRIP@,$STRIP,;t t
20502 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20503 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20504 s,@mkdir_p@,$mkdir_p,;t t
20505 s,@AWK@,$AWK,;t t
20506 s,@SET_MAKE@,$SET_MAKE,;t t
20507 s,@am__leading_dot@,$am__leading_dot,;t t
20508 s,@AMTAR@,$AMTAR,;t t
20509 s,@am__tar@,$am__tar,;t t
20510 s,@am__untar@,$am__untar,;t t
20511 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20512 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20513 s,@MAINT@,$MAINT,;t t
20514 s,@build@,$build,;t t
20515 s,@build_cpu@,$build_cpu,;t t
20516 s,@build_vendor@,$build_vendor,;t t
20517 s,@build_os@,$build_os,;t t
20518 s,@host@,$host,;t t
20519 s,@host_cpu@,$host_cpu,;t t
20520 s,@host_vendor@,$host_vendor,;t t
20521 s,@host_os@,$host_os,;t t
20522 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20523 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20524 s,@MULECFLAGS@,$MULECFLAGS,;t t
20525 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20526 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20527 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20528 s,@CXX@,$CXX,;t t
20529 s,@CXXFLAGS@,$CXXFLAGS,;t t
20530 s,@LDFLAGS@,$LDFLAGS,;t t
20531 s,@CPPFLAGS@,$CPPFLAGS,;t t
20532 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20533 s,@EXEEXT@,$EXEEXT,;t t
20534 s,@OBJEXT@,$OBJEXT,;t t
20535 s,@DEPDIR@,$DEPDIR,;t t
20536 s,@am__include@,$am__include,;t t
20537 s,@am__quote@,$am__quote,;t t
20538 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20539 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20540 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20541 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20542 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20543 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20544 s,@CXXCPP@,$CXXCPP,;t t
20545 s,@CC@,$CC,;t t
20546 s,@CFLAGS@,$CFLAGS,;t t
20547 s,@ac_ct_CC@,$ac_ct_CC,;t t
20548 s,@CCDEPMODE@,$CCDEPMODE,;t t
20549 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20550 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20551 s,@CPP@,$CPP,;t t
20552 s,@BUILD_CC@,$BUILD_CC,;t t
20553 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20554 s,@EXEEXT@,$EXEEXT,;t t
20555 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20556 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20557 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20558 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20559 s,@EGREP@,$EGREP,;t t
20560 s,@LEX@,$LEX,;t t
20561 s,@LEXLIB@,$LEXLIB,;t t
20562 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20563 s,@RANLIB@,$RANLIB,;t t
20564 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20565 s,@YACC@,$YACC,;t t
20566 s,@AR@,$AR,;t t
20567 s,@ac_ct_AR@,$ac_ct_AR,;t t
20568 s,@LD@,$LD,;t t
20569 s,@ac_ct_LD@,$ac_ct_LD,;t t
20570 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20571 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20572 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20573 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20574 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20575 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20576 s,@WEB_TRUE@,$WEB_TRUE,;t t
20577 s,@WEB_FALSE@,$WEB_FALSE,;t t
20578 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20579 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20580 s,@CAS_TRUE@,$CAS_TRUE,;t t
20581 s,@CAS_FALSE@,$CAS_FALSE,;t t
20582 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20583 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20584 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20585 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20586 s,@ALC_TRUE@,$ALC_TRUE,;t t
20587 s,@ALC_FALSE@,$ALC_FALSE,;t t
20588 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20589 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20590 s,@XAS_TRUE@,$XAS_TRUE,;t t
20591 s,@XAS_FALSE@,$XAS_FALSE,;t t
20592 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20593 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20594 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20595 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20596 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20597 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20598 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20599 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20600 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20601 s,@CAS_DEFS@,$CAS_DEFS,;t t
20602 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20603 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20604 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20605 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20606 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20607 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20608 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20609 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20610 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20611 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20612 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20613 s,@WX_LIBS@,$WX_LIBS,;t t
20614 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20615 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20616 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20617 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20618 s,@WX_UNICODE@,$WX_UNICODE,;t t
20619 s,@WX_DEBUG@,$WX_DEBUG,;t t
20620 s,@WX_SHARED@,$WX_SHARED,;t t
20621 s,@WX_PORT@,$WX_PORT,;t t
20622 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20623 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20624 s,@RC@,$RC,;t t
20625 s,@RCFLAGS@,$RCFLAGS,;t t
20626 s,@ac_ct_RC@,$ac_ct_RC,;t t
20627 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20628 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20629 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20630 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20631 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20632 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20633 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20634 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20635 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20636 s,@ALLOCA@,$ALLOCA,;t t
20637 s,@LIBOBJS@,$LIBOBJS,;t t
20638 s,@POW_LIB@,$POW_LIB,;t t
20639 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20640 s,@MSGFMT@,$MSGFMT,;t t
20641 s,@GMSGFMT@,$GMSGFMT,;t t
20642 s,@XGETTEXT@,$XGETTEXT,;t t
20643 s,@MSGMERGE@,$MSGMERGE,;t t
20644 s,@GLIBC21@,$GLIBC21,;t t
20645 s,@LIBICONV@,$LIBICONV,;t t
20646 s,@LTLIBICONV@,$LTLIBICONV,;t t
20647 s,@INTLBISON@,$INTLBISON,;t t
20648 s,@USE_NLS@,$USE_NLS,;t t
20649 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20650 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20651 s,@CATOBJEXT@,$CATOBJEXT,;t t
20652 s,@INTLOBJS@,$INTLOBJS,;t t
20653 s,@DATADIRNAME@,$DATADIRNAME,;t t
20654 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20655 s,@GENCAT@,$GENCAT,;t t
20656 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20657 s,@INTLLIBS@,$INTLLIBS,;t t
20658 s,@LIBINTL@,$LIBINTL,;t t
20659 s,@LTLIBINTL@,$LTLIBINTL,;t t
20660 s,@POSUB@,$POSUB,;t t
20661 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20662 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20663 s,@WEBSERVER_MANPAGES@,$WEBSERVER_MANPAGES,;t t
20664 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20665 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20666 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20667 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20668 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20669 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20670 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20671 s,@INCINTL@,$INCINTL,;t t
20672 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20673 s,@BFD_LIBS@,$BFD_LIBS,;t t
20674 s,@docdir@,$docdir,;t t
20675 s,@SVNDATE@,$SVNDATE,;t t
20676 s,@QT_MOC@,$QT_MOC,;t t
20677 s,@QT_CORE_CXXFLAGS@,$QT_CORE_CXXFLAGS,;t t
20678 s,@QT_CORE_LIBS@,$QT_CORE_LIBS,;t t
20679 s,@QT_GUI_CXXFLAGS@,$QT_GUI_CXXFLAGS,;t t
20680 s,@QT_GUI_LIBS@,$QT_GUI_LIBS,;t t
20681 s,@KDE4_CONFIG@,$KDE4_CONFIG,;t t
20682 s,@KDE_HEADER_DIR@,$KDE_HEADER_DIR,;t t
20683 s,@KDE_APPLNK_PATH@,$KDE_APPLNK_PATH,;t t
20684 s,@KDE_SERVICE_PATH@,$KDE_SERVICE_PATH,;t t
20685 s,@KDE_MODULE_PATH@,$KDE_MODULE_PATH,;t t
20686 s,@KDE_ICON_PATH@,$KDE_ICON_PATH,;t t
20687 s,@KDE_MIME_PATH@,$KDE_MIME_PATH,;t t
20688 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20689 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20690 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20691 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20692 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20693 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20694 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20695 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20696 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20697 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20698 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20699 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20700 s,@PLASMAMULE_TRUE@,$PLASMAMULE_TRUE,;t t
20701 s,@PLASMAMULE_FALSE@,$PLASMAMULE_FALSE,;t t
20702 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20703 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20704 CEOF
20706 _ACEOF
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20709 # Split the substitutions into bite-sized pieces for seds with
20710 # small command number limits, like on Digital OSF/1 and HP-UX.
20711 ac_max_sed_lines=48
20712 ac_sed_frag=1 # Number of current file.
20713 ac_beg=1 # First line for current file.
20714 ac_end=$ac_max_sed_lines # Line after last line for current file.
20715 ac_more_lines=:
20716 ac_sed_cmds=
20717 while $ac_more_lines; do
20718 if test $ac_beg -gt 1; then
20719 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20720 else
20721 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20723 if test ! -s $tmp/subs.frag; then
20724 ac_more_lines=false
20725 else
20726 # The purpose of the label and of the branching condition is to
20727 # speed up the sed processing (if there are no `@' at all, there
20728 # is no need to browse any of the substitutions).
20729 # These are the two extra sed commands mentioned above.
20730 (echo ':t
20731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20732 if test -z "$ac_sed_cmds"; then
20733 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20734 else
20735 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20737 ac_sed_frag=`expr $ac_sed_frag + 1`
20738 ac_beg=$ac_end
20739 ac_end=`expr $ac_end + $ac_max_sed_lines`
20741 done
20742 if test -z "$ac_sed_cmds"; then
20743 ac_sed_cmds=cat
20745 fi # test -n "$CONFIG_FILES"
20747 _ACEOF
20748 cat >>$CONFIG_STATUS <<\_ACEOF
20749 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20751 case $ac_file in
20752 - | *:- | *:-:* ) # input from stdin
20753 cat >$tmp/stdin
20754 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20756 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20758 * ) ac_file_in=$ac_file.in ;;
20759 esac
20761 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20762 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20764 X"$ac_file" : 'X\(//\)[^/]' \| \
20765 X"$ac_file" : 'X\(//\)$' \| \
20766 X"$ac_file" : 'X\(/\)' \| \
20767 . : '\(.\)' 2>/dev/null ||
20768 echo X"$ac_file" |
20769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20771 /^X\(\/\/\)$/{ s//\1/; q; }
20772 /^X\(\/\).*/{ s//\1/; q; }
20773 s/.*/./; q'`
20774 { if $as_mkdir_p; then
20775 mkdir -p "$ac_dir"
20776 else
20777 as_dir="$ac_dir"
20778 as_dirs=
20779 while test ! -d "$as_dir"; do
20780 as_dirs="$as_dir $as_dirs"
20781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20783 X"$as_dir" : 'X\(//\)[^/]' \| \
20784 X"$as_dir" : 'X\(//\)$' \| \
20785 X"$as_dir" : 'X\(/\)' \| \
20786 . : '\(.\)' 2>/dev/null ||
20787 echo X"$as_dir" |
20788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20790 /^X\(\/\/\)$/{ s//\1/; q; }
20791 /^X\(\/\).*/{ s//\1/; q; }
20792 s/.*/./; q'`
20793 done
20794 test ! -n "$as_dirs" || mkdir $as_dirs
20795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20797 { (exit 1); exit 1; }; }; }
20799 ac_builddir=.
20801 if test "$ac_dir" != .; then
20802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20803 # A "../" for each directory in $ac_dir_suffix.
20804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20805 else
20806 ac_dir_suffix= ac_top_builddir=
20809 case $srcdir in
20810 .) # No --srcdir option. We are building in place.
20811 ac_srcdir=.
20812 if test -z "$ac_top_builddir"; then
20813 ac_top_srcdir=.
20814 else
20815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20816 fi ;;
20817 [\\/]* | ?:[\\/]* ) # Absolute path.
20818 ac_srcdir=$srcdir$ac_dir_suffix;
20819 ac_top_srcdir=$srcdir ;;
20820 *) # Relative path.
20821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20823 esac
20825 # Do not use `cd foo && pwd` to compute absolute paths, because
20826 # the directories may not exist.
20827 case `pwd` in
20828 .) ac_abs_builddir="$ac_dir";;
20830 case "$ac_dir" in
20831 .) ac_abs_builddir=`pwd`;;
20832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20834 esac;;
20835 esac
20836 case $ac_abs_builddir in
20837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20839 case ${ac_top_builddir}. in
20840 .) ac_abs_top_builddir=$ac_abs_builddir;;
20841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20843 esac;;
20844 esac
20845 case $ac_abs_builddir in
20846 .) ac_abs_srcdir=$ac_srcdir;;
20848 case $ac_srcdir in
20849 .) ac_abs_srcdir=$ac_abs_builddir;;
20850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20852 esac;;
20853 esac
20854 case $ac_abs_builddir in
20855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20857 case $ac_top_srcdir in
20858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20861 esac;;
20862 esac
20865 case $INSTALL in
20866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20867 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20868 esac
20870 if test x"$ac_file" != x-; then
20871 { echo "$as_me:$LINENO: creating $ac_file" >&5
20872 echo "$as_me: creating $ac_file" >&6;}
20873 rm -f "$ac_file"
20875 # Let's still pretend it is `configure' which instantiates (i.e., don't
20876 # use $as_me), people would be surprised to read:
20877 # /* config.h. Generated by config.status. */
20878 if test x"$ac_file" = x-; then
20879 configure_input=
20880 else
20881 configure_input="$ac_file. "
20883 configure_input=$configure_input"Generated from `echo $ac_file_in |
20884 sed 's,.*/,,'` by configure."
20886 # First look for the input files in the build tree, otherwise in the
20887 # src tree.
20888 ac_file_inputs=`IFS=:
20889 for f in $ac_file_in; do
20890 case $f in
20891 -) echo $tmp/stdin ;;
20892 [\\/$]*)
20893 # Absolute (can't be DOS-style, as IFS=:)
20894 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20895 echo "$as_me: error: cannot find input file: $f" >&2;}
20896 { (exit 1); exit 1; }; }
20897 echo "$f";;
20898 *) # Relative
20899 if test -f "$f"; then
20900 # Build tree
20901 echo "$f"
20902 elif test -f "$srcdir/$f"; then
20903 # Source tree
20904 echo "$srcdir/$f"
20905 else
20906 # /dev/null tree
20907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20908 echo "$as_me: error: cannot find input file: $f" >&2;}
20909 { (exit 1); exit 1; }; }
20910 fi;;
20911 esac
20912 done` || { (exit 1); exit 1; }
20913 _ACEOF
20914 cat >>$CONFIG_STATUS <<_ACEOF
20915 sed "$ac_vpsub
20916 $extrasub
20917 _ACEOF
20918 cat >>$CONFIG_STATUS <<\_ACEOF
20920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20921 s,@configure_input@,$configure_input,;t t
20922 s,@srcdir@,$ac_srcdir,;t t
20923 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20924 s,@top_srcdir@,$ac_top_srcdir,;t t
20925 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20926 s,@builddir@,$ac_builddir,;t t
20927 s,@abs_builddir@,$ac_abs_builddir,;t t
20928 s,@top_builddir@,$ac_top_builddir,;t t
20929 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20930 s,@INSTALL@,$ac_INSTALL,;t t
20931 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20932 rm -f $tmp/stdin
20933 if test x"$ac_file" != x-; then
20934 mv $tmp/out $ac_file
20935 else
20936 cat $tmp/out
20937 rm -f $tmp/out
20940 done
20941 _ACEOF
20942 cat >>$CONFIG_STATUS <<\_ACEOF
20945 # CONFIG_HEADER section.
20948 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20949 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20951 # ac_d sets the value in "#define NAME VALUE" lines.
20952 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20953 ac_dB='[ ].*$,\1#\2'
20954 ac_dC=' '
20955 ac_dD=',;t'
20956 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20957 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20958 ac_uB='$,\1#\2define\3'
20959 ac_uC=' '
20960 ac_uD=',;t'
20962 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20964 case $ac_file in
20965 - | *:- | *:-:* ) # input from stdin
20966 cat >$tmp/stdin
20967 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20969 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20971 * ) ac_file_in=$ac_file.in ;;
20972 esac
20974 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20975 echo "$as_me: creating $ac_file" >&6;}
20977 # First look for the input files in the build tree, otherwise in the
20978 # src tree.
20979 ac_file_inputs=`IFS=:
20980 for f in $ac_file_in; do
20981 case $f in
20982 -) echo $tmp/stdin ;;
20983 [\\/$]*)
20984 # Absolute (can't be DOS-style, as IFS=:)
20985 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20986 echo "$as_me: error: cannot find input file: $f" >&2;}
20987 { (exit 1); exit 1; }; }
20988 # Do quote $f, to prevent DOS paths from being IFS'd.
20989 echo "$f";;
20990 *) # Relative
20991 if test -f "$f"; then
20992 # Build tree
20993 echo "$f"
20994 elif test -f "$srcdir/$f"; then
20995 # Source tree
20996 echo "$srcdir/$f"
20997 else
20998 # /dev/null tree
20999 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21000 echo "$as_me: error: cannot find input file: $f" >&2;}
21001 { (exit 1); exit 1; }; }
21002 fi;;
21003 esac
21004 done` || { (exit 1); exit 1; }
21005 # Remove the trailing spaces.
21006 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21008 _ACEOF
21010 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21011 # `conftest.undefs', that substitutes the proper values into
21012 # config.h.in to produce config.h. The first handles `#define'
21013 # templates, and the second `#undef' templates.
21014 # And first: Protect against being on the right side of a sed subst in
21015 # config.status. Protect against being in an unquoted here document
21016 # in config.status.
21017 rm -f conftest.defines conftest.undefs
21018 # Using a here document instead of a string reduces the quoting nightmare.
21019 # Putting comments in sed scripts is not portable.
21021 # `end' is used to avoid that the second main sed command (meant for
21022 # 0-ary CPP macros) applies to n-ary macro definitions.
21023 # See the Autoconf documentation for `clear'.
21024 cat >confdef2sed.sed <<\_ACEOF
21025 s/[\\&,]/\\&/g
21026 s,[\\$`],\\&,g
21027 t clear
21028 : clear
21029 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21030 t end
21031 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21032 : end
21033 _ACEOF
21034 # If some macros were called several times there might be several times
21035 # the same #defines, which is useless. Nevertheless, we may not want to
21036 # sort them, since we want the *last* AC-DEFINE to be honored.
21037 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21038 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21039 rm -f confdef2sed.sed
21041 # This sed command replaces #undef with comments. This is necessary, for
21042 # example, in the case of _POSIX_SOURCE, which is predefined and required
21043 # on some systems where configure will not decide to define it.
21044 cat >>conftest.undefs <<\_ACEOF
21045 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21046 _ACEOF
21048 # Break up conftest.defines because some shells have a limit on the size
21049 # of here documents, and old seds have small limits too (100 cmds).
21050 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21051 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21052 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21053 echo ' :' >>$CONFIG_STATUS
21054 rm -f conftest.tail
21055 while grep . conftest.defines >/dev/null
21057 # Write a limited-size here document to $tmp/defines.sed.
21058 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21059 # Speed up: don't consider the non `#define' lines.
21060 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21061 # Work around the forget-to-reset-the-flag bug.
21062 echo 't clr' >>$CONFIG_STATUS
21063 echo ': clr' >>$CONFIG_STATUS
21064 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21065 echo 'CEOF
21066 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21067 rm -f $tmp/in
21068 mv $tmp/out $tmp/in
21069 ' >>$CONFIG_STATUS
21070 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21071 rm -f conftest.defines
21072 mv conftest.tail conftest.defines
21073 done
21074 rm -f conftest.defines
21075 echo ' fi # grep' >>$CONFIG_STATUS
21076 echo >>$CONFIG_STATUS
21078 # Break up conftest.undefs because some shells have a limit on the size
21079 # of here documents, and old seds have small limits too (100 cmds).
21080 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21081 rm -f conftest.tail
21082 while grep . conftest.undefs >/dev/null
21084 # Write a limited-size here document to $tmp/undefs.sed.
21085 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21086 # Speed up: don't consider the non `#undef'
21087 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21088 # Work around the forget-to-reset-the-flag bug.
21089 echo 't clr' >>$CONFIG_STATUS
21090 echo ': clr' >>$CONFIG_STATUS
21091 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21092 echo 'CEOF
21093 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21094 rm -f $tmp/in
21095 mv $tmp/out $tmp/in
21096 ' >>$CONFIG_STATUS
21097 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21098 rm -f conftest.undefs
21099 mv conftest.tail conftest.undefs
21100 done
21101 rm -f conftest.undefs
21103 cat >>$CONFIG_STATUS <<\_ACEOF
21104 # Let's still pretend it is `configure' which instantiates (i.e., don't
21105 # use $as_me), people would be surprised to read:
21106 # /* config.h. Generated by config.status. */
21107 if test x"$ac_file" = x-; then
21108 echo "/* Generated by configure. */" >$tmp/config.h
21109 else
21110 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21112 cat $tmp/in >>$tmp/config.h
21113 rm -f $tmp/in
21114 if test x"$ac_file" != x-; then
21115 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21116 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21117 echo "$as_me: $ac_file is unchanged" >&6;}
21118 else
21119 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21121 X"$ac_file" : 'X\(//\)[^/]' \| \
21122 X"$ac_file" : 'X\(//\)$' \| \
21123 X"$ac_file" : 'X\(/\)' \| \
21124 . : '\(.\)' 2>/dev/null ||
21125 echo X"$ac_file" |
21126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21128 /^X\(\/\/\)$/{ s//\1/; q; }
21129 /^X\(\/\).*/{ s//\1/; q; }
21130 s/.*/./; q'`
21131 { if $as_mkdir_p; then
21132 mkdir -p "$ac_dir"
21133 else
21134 as_dir="$ac_dir"
21135 as_dirs=
21136 while test ! -d "$as_dir"; do
21137 as_dirs="$as_dir $as_dirs"
21138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21140 X"$as_dir" : 'X\(//\)[^/]' \| \
21141 X"$as_dir" : 'X\(//\)$' \| \
21142 X"$as_dir" : 'X\(/\)' \| \
21143 . : '\(.\)' 2>/dev/null ||
21144 echo X"$as_dir" |
21145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21147 /^X\(\/\/\)$/{ s//\1/; q; }
21148 /^X\(\/\).*/{ s//\1/; q; }
21149 s/.*/./; q'`
21150 done
21151 test ! -n "$as_dirs" || mkdir $as_dirs
21152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21153 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21154 { (exit 1); exit 1; }; }; }
21156 rm -f $ac_file
21157 mv $tmp/config.h $ac_file
21159 else
21160 cat $tmp/config.h
21161 rm -f $tmp/config.h
21163 # Compute $ac_file's index in $config_headers.
21164 _am_stamp_count=1
21165 for _am_header in $config_headers :; do
21166 case $_am_header in
21167 $ac_file | $ac_file:* )
21168 break ;;
21170 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21171 esac
21172 done
21173 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21174 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21175 X$ac_file : 'X\(//\)[^/]' \| \
21176 X$ac_file : 'X\(//\)$' \| \
21177 X$ac_file : 'X\(/\)' \| \
21178 . : '\(.\)' 2>/dev/null ||
21179 echo X$ac_file |
21180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21182 /^X\(\/\/\)$/{ s//\1/; q; }
21183 /^X\(\/\).*/{ s//\1/; q; }
21184 s/.*/./; q'`/stamp-h$_am_stamp_count
21185 done
21186 _ACEOF
21187 cat >>$CONFIG_STATUS <<\_ACEOF
21190 # CONFIG_COMMANDS section.
21192 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21193 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21194 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21195 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21196 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21197 X"$ac_dest" : 'X\(//\)[^/]' \| \
21198 X"$ac_dest" : 'X\(//\)$' \| \
21199 X"$ac_dest" : 'X\(/\)' \| \
21200 . : '\(.\)' 2>/dev/null ||
21201 echo X"$ac_dest" |
21202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21204 /^X\(\/\/\)$/{ s//\1/; q; }
21205 /^X\(\/\).*/{ s//\1/; q; }
21206 s/.*/./; q'`
21207 { if $as_mkdir_p; then
21208 mkdir -p "$ac_dir"
21209 else
21210 as_dir="$ac_dir"
21211 as_dirs=
21212 while test ! -d "$as_dir"; do
21213 as_dirs="$as_dir $as_dirs"
21214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216 X"$as_dir" : 'X\(//\)[^/]' \| \
21217 X"$as_dir" : 'X\(//\)$' \| \
21218 X"$as_dir" : 'X\(/\)' \| \
21219 . : '\(.\)' 2>/dev/null ||
21220 echo X"$as_dir" |
21221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21223 /^X\(\/\/\)$/{ s//\1/; q; }
21224 /^X\(\/\).*/{ s//\1/; q; }
21225 s/.*/./; q'`
21226 done
21227 test ! -n "$as_dirs" || mkdir $as_dirs
21228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21230 { (exit 1); exit 1; }; }; }
21232 ac_builddir=.
21234 if test "$ac_dir" != .; then
21235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21236 # A "../" for each directory in $ac_dir_suffix.
21237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21238 else
21239 ac_dir_suffix= ac_top_builddir=
21242 case $srcdir in
21243 .) # No --srcdir option. We are building in place.
21244 ac_srcdir=.
21245 if test -z "$ac_top_builddir"; then
21246 ac_top_srcdir=.
21247 else
21248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21249 fi ;;
21250 [\\/]* | ?:[\\/]* ) # Absolute path.
21251 ac_srcdir=$srcdir$ac_dir_suffix;
21252 ac_top_srcdir=$srcdir ;;
21253 *) # Relative path.
21254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21256 esac
21258 # Do not use `cd foo && pwd` to compute absolute paths, because
21259 # the directories may not exist.
21260 case `pwd` in
21261 .) ac_abs_builddir="$ac_dir";;
21263 case "$ac_dir" in
21264 .) ac_abs_builddir=`pwd`;;
21265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21267 esac;;
21268 esac
21269 case $ac_abs_builddir in
21270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21272 case ${ac_top_builddir}. in
21273 .) ac_abs_top_builddir=$ac_abs_builddir;;
21274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21276 esac;;
21277 esac
21278 case $ac_abs_builddir in
21279 .) ac_abs_srcdir=$ac_srcdir;;
21281 case $ac_srcdir in
21282 .) ac_abs_srcdir=$ac_abs_builddir;;
21283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21285 esac;;
21286 esac
21287 case $ac_abs_builddir in
21288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21290 case $ac_top_srcdir in
21291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21294 esac;;
21295 esac
21298 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21299 echo "$as_me: executing $ac_dest commands" >&6;}
21300 case $ac_dest in
21301 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21302 # Strip MF so we end up with the name of the file.
21303 mf=`echo "$mf" | sed -e 's/:.*$//'`
21304 # Check whether this is an Automake generated Makefile or not.
21305 # We used to match only the files named `Makefile.in', but
21306 # some people rename them; so instead we look at the file content.
21307 # Grep'ing the first line is not enough: some people post-process
21308 # each Makefile.in and add a new line on top of each file to say so.
21309 # So let's grep whole file.
21310 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21311 dirpart=`(dirname "$mf") 2>/dev/null ||
21312 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21313 X"$mf" : 'X\(//\)[^/]' \| \
21314 X"$mf" : 'X\(//\)$' \| \
21315 X"$mf" : 'X\(/\)' \| \
21316 . : '\(.\)' 2>/dev/null ||
21317 echo X"$mf" |
21318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21320 /^X\(\/\/\)$/{ s//\1/; q; }
21321 /^X\(\/\).*/{ s//\1/; q; }
21322 s/.*/./; q'`
21323 else
21324 continue
21326 # Extract the definition of DEPDIR, am__include, and am__quote
21327 # from the Makefile without running `make'.
21328 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21329 test -z "$DEPDIR" && continue
21330 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21331 test -z "am__include" && continue
21332 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21333 # When using ansi2knr, U may be empty or an underscore; expand it
21334 U=`sed -n 's/^U = //p' < "$mf"`
21335 # Find all dependency output files, they are included files with
21336 # $(DEPDIR) in their names. We invoke sed twice because it is the
21337 # simplest approach to changing $(DEPDIR) to its actual value in the
21338 # expansion.
21339 for file in `sed -n "
21340 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21341 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21342 # Make sure the directory exists.
21343 test -f "$dirpart/$file" && continue
21344 fdir=`(dirname "$file") 2>/dev/null ||
21345 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21346 X"$file" : 'X\(//\)[^/]' \| \
21347 X"$file" : 'X\(//\)$' \| \
21348 X"$file" : 'X\(/\)' \| \
21349 . : '\(.\)' 2>/dev/null ||
21350 echo X"$file" |
21351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21353 /^X\(\/\/\)$/{ s//\1/; q; }
21354 /^X\(\/\).*/{ s//\1/; q; }
21355 s/.*/./; q'`
21356 { if $as_mkdir_p; then
21357 mkdir -p $dirpart/$fdir
21358 else
21359 as_dir=$dirpart/$fdir
21360 as_dirs=
21361 while test ! -d "$as_dir"; do
21362 as_dirs="$as_dir $as_dirs"
21363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21365 X"$as_dir" : 'X\(//\)[^/]' \| \
21366 X"$as_dir" : 'X\(//\)$' \| \
21367 X"$as_dir" : 'X\(/\)' \| \
21368 . : '\(.\)' 2>/dev/null ||
21369 echo X"$as_dir" |
21370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21372 /^X\(\/\/\)$/{ s//\1/; q; }
21373 /^X\(\/\).*/{ s//\1/; q; }
21374 s/.*/./; q'`
21375 done
21376 test ! -n "$as_dirs" || mkdir $as_dirs
21377 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21378 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21379 { (exit 1); exit 1; }; }; }
21381 # echo "creating $dirpart/$file"
21382 echo '# dummy' > "$dirpart/$file"
21383 done
21384 done
21386 default-1 )
21387 for ac_file in $CONFIG_FILES; do
21388 # Support "outfile[:infile[:infile...]]"
21389 case "$ac_file" in
21390 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21391 esac
21392 # PO directories have a Makefile.in generated from Makefile.in.in.
21393 case "$ac_file" in */Makefile.in)
21394 # Adjust a relative srcdir.
21395 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21396 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21397 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21398 # In autoconf-2.13 it is called $ac_given_srcdir.
21399 # In autoconf-2.50 it is called $srcdir.
21400 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21401 case "$ac_given_srcdir" in
21402 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21403 /*) top_srcdir="$ac_given_srcdir" ;;
21404 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21405 esac
21406 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21407 rm -f "$ac_dir/POTFILES"
21408 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21409 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21410 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21411 # on $ac_dir but don't depend on user-specified configuration
21412 # parameters.
21413 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21414 # The LINGUAS file contains the set of available languages.
21415 if test -n "$ALL_LINGUAS"; then
21416 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21418 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21419 # Hide the ALL_LINGUAS assigment from automake.
21420 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21422 case "$ac_given_srcdir" in
21423 .) srcdirpre= ;;
21424 *) srcdirpre='$(srcdir)/' ;;
21425 esac
21426 POFILES=
21427 GMOFILES=
21428 UPDATEPOFILES=
21429 DUMMYPOFILES=
21430 for lang in $ALL_LINGUAS; do
21431 POFILES="$POFILES $srcdirpre$lang.po"
21432 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21433 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21434 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21435 done
21436 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21437 # environment variable.
21438 INST_LINGUAS=
21439 if test -n "$ALL_LINGUAS"; then
21440 for presentlang in $ALL_LINGUAS; do
21441 useit=no
21442 if test "%UNSET%" != "$LINGUAS"; then
21443 desiredlanguages="$LINGUAS"
21444 else
21445 desiredlanguages="$ALL_LINGUAS"
21447 for desiredlang in $desiredlanguages; do
21448 # Use the presentlang catalog if desiredlang is
21449 # a. equal to presentlang, or
21450 # b. a variant of presentlang (because in this case,
21451 # presentlang can be used as a fallback for messages
21452 # which are not translated in the desiredlang catalog).
21453 case "$desiredlang" in
21454 "$presentlang"*) useit=yes;;
21455 esac
21456 done
21457 if test $useit = yes; then
21458 INST_LINGUAS="$INST_LINGUAS $presentlang"
21460 done
21462 CATALOGS=
21463 if test -n "$INST_LINGUAS"; then
21464 for lang in $INST_LINGUAS; do
21465 CATALOGS="$CATALOGS $lang.gmo"
21466 done
21468 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21469 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"
21470 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21471 if test -f "$f"; then
21472 case "$f" in
21473 *.orig | *.bak | *~) ;;
21474 *) cat "$f" >> "$ac_dir/Makefile" ;;
21475 esac
21477 done
21480 esac
21481 done ;;
21482 denoiser ) if test $denoiserlevel -gt 0; then
21483 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21484 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21485 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21486 for i in `find . -name 'Makefile' -print`; do
21487 if test -n "`head -n 1 $i | grep '^#'`"; then
21488 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21490 done
21491 fi ;;
21492 esac
21493 done
21494 _ACEOF
21496 cat >>$CONFIG_STATUS <<\_ACEOF
21498 { (exit 0); exit 0; }
21499 _ACEOF
21500 chmod +x $CONFIG_STATUS
21501 ac_clean_files=$ac_clean_files_save
21504 # configure is writing to config.log, and then calls config.status.
21505 # config.status does its own redirection, appending to config.log.
21506 # Unfortunately, on DOS this fails, as config.log is still kept open
21507 # by configure, so config.status won't be able to write to it; its
21508 # output is simply discarded. So we exec the FD to /dev/null,
21509 # effectively closing config.log, so it can be properly (re)opened and
21510 # appended to by config.status. When coming back to configure, we
21511 # need to make the FD available again.
21512 if test "$no_create" != yes; then
21513 ac_cs_success=:
21514 ac_config_status_args=
21515 test "$silent" = yes &&
21516 ac_config_status_args="$ac_config_status_args --quiet"
21517 exec 5>/dev/null
21518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21519 exec 5>>config.log
21520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21521 # would make configure fail if this is the last instruction.
21522 $ac_cs_success || { (exit 1); exit 1; }
21526 if test -n "$svndate"; then
21527 SVN_REVISION=" ($svndate)"
21528 else
21529 SVN_REVISION=
21533 echo
21534 echo
21535 echo " Configure script has finished system check."
21536 echo
21537 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21538 echo
21539 echo " aMule enabled options:"
21540 echo
21541 echo " **** aMule Core ****"
21542 echo " Prefix where aMule should be installed? ${prefix:-none}"
21543 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21544 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
21545 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
21546 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
21547 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
21548 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
21549 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
21550 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
21551 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${enable_amule_gui:-no}"
21552 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21554 echo
21555 echo " **** aMule TextClient ****"
21556 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
21557 echo
21558 echo " **** aMule WebServer ****"
21559 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
21560 echo
21561 echo " **** aMule ED2K Links Handler ****"
21562 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
21563 echo
21564 echo " **** aMuleLinkCreator ****"
21565 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
21566 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
21567 echo
21568 echo " **** aMule Statistics ****"
21569 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
21570 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
21571 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
21572 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
21574 echo
21575 echo " **** General Libraries and Tools ****"
21576 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21577 echo " Libraries aMule will use to build:"
21578 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
21580 wxinfo="$WX_PORT"
21581 if test $WX_DEBUG -eq 1; then
21582 wxinfo="$wxinfo,debug"
21585 if test $WX_SHARED -eq 1; then
21586 wxinfo="$wxinfo,shared"
21587 else
21588 wxinfo="$wxinfo,static"
21591 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21595 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
21596 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21599 if test ${enable_upnp:-yes} = yes; then
21601 if test -n "$with_libupnp_prefix"; then
21602 libupnp_place=" (in $with_libupnp_prefix)"
21605 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21609 if test ${enable_nls:-yes} = yes; then
21610 if test x$USE_NLS = xno; then
21611 libintl_found="Not detected"
21612 else
21613 if test x$USE_INCLUDED_LIBINTL = xyes; then
21614 libintl_found="included"
21615 else
21616 libintl_found="system"
21621 echo " libintl $libintl_found"
21623 if test ${enable_geoip:-no} = yes; then
21624 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21625 geoip_style=system
21626 else
21627 geoip_style=user
21630 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
21631 echo " libGeoIP ${geoip_style}"
21636 if test ${enable_webserver:-no} = yes; then
21637 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21640 if test ${enable_cas:-no} = yes; then
21641 echo " libgd ${GDLIB_VERSION:-Not detected}"
21644 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
21645 echo " zlib ${ZLIB_VERSION:-Not detected}"
21648 if test ${enable_plasmamule:-no} = yes; then
21649 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
21650 echo " qt-core-libs ${QT_CORE_LIBS}"
21651 echo " qt-gui-libs ${QT_GUI_LIBS}"
21652 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
21653 echo " kde-headers ${KDE_HEADER_DIR}"
21654 echo " kde-services-path ${KDE_SERVICE_PATH}"
21655 echo " kde-module-path ${KDE_MODULE_PATH}"
21656 echo " kde-icon-path ${KDE_ICON_PATH}"
21657 echo " kde-mime-path ${KDE_MIME_PATH}"
21658 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
21659 echo " **** You have to run kbuildsycoca after installing to let plasma know the changes ****"
21660 echo " **** You have to run \"update-mime-database ${KDE_MIME_PATH}\" to register the mimetype ****"
21663 if test ${_mule_has_warnings:-no} = yes; then
21664 echo ""
21665 echo ""
21666 echo " *** Warnings during configuration ***"
21668 if test ${_mule_warning_0:-no} = yes; then
21669 cat <<_MULEEOT
21671 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21672 Please check that gdlib-config is in your default path, check out
21673 LD_LIBRARY_PATH or equivalent variable.
21674 Or this might also be that your gdlib-config has other name.
21675 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21676 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21677 If you use compiled packages check if you have devel pack installed.
21678 To download the latest version check http://www.boutell.com/gd for sources.
21679 _MULEEOT
21681 if test ${_mule_warning_1:-no} = yes; then
21682 cat <<_MULEEOT
21684 * libpng >= 1.2.0 not found.
21685 amuleweb will be compiled but file download progress bar images will NOT be
21686 generated.
21687 _MULEEOT
21689 if test ${_mule_warning_2:-no} = yes; then
21690 cat <<_MULEEOT
21692 * File::Copy perl module is required by the mldonkey_importer script.
21693 If you want to use this script please install File::Copy from CPAN.
21694 _MULEEOT
21696 if test ${_mule_warning_3:-no} = yes; then
21697 cat <<_MULEEOT
21699 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21700 _MULEEOT
21702 if test ${_mule_warning_4:-no} = yes; then
21703 cat <<_MULEEOT
21705 * GeoIP support has been disabled because the GeoIP libraries were not found
21706 _MULEEOT
21708 if test ${_mule_warning_5:-no} = yes; then
21709 cat <<_MULEEOT
21711 * GeoIP support has been disabled because the GeoIP header files were not
21712 found
21713 _MULEEOT
21715 if test ${_mule_warning_6:-no} = yes; then
21716 cat <<_MULEEOT
21718 * UPnP code has been disabled because ${libupnp_error}.
21719 _MULEEOT
21721 if test ${_mule_warning_7:-no} = yes; then
21722 cat <<_MULEEOT
21724 * Cross-compilation detected, so exception handling cannot be tested.
21725 Note that broken exception handling in your compiler may lead to unexpected
21726 crashes.
21727 _MULEEOT
21729 if test ${_mule_warning_8:-no} = yes; then
21730 cat <<_MULEEOT
21732 * configure cannot check whether malloc() and realloc() are GNU libc
21733 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21734 configure with the --without-gnu-malloc switch.
21735 _MULEEOT
21737 if test ${_mule_warning_9:-no} = yes; then
21738 cat <<_MULEEOT
21740 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21741 support.
21742 _MULEEOT
21744 if test ${_mule_warning_10:-no} = yes; then
21745 cat <<_MULEEOT
21747 * bfd.h not found or unusable, please install binutils development package if
21748 you are a developer or want to help testing aMule
21749 _MULEEOT