Fix a memory leak in our UPnP handler code
[amule.git] / configure
blob5d10c4d5d87630a30af6a11f8960231b7f4063ea
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='aMule'
554 PACKAGE_TARNAME='amule'
555 PACKAGE_VERSION='SVN'
556 PACKAGE_STRING='aMule SVN'
557 PACKAGE_BUGREPORT='admin@amule.org'
558 PACKAGE_URL=''
560 ac_unique_file="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 COMPILE_LIB_EC_FALSE
602 COMPILE_LIB_EC_TRUE
603 COMPILE_LIB_COMMON_FALSE
604 COMPILE_LIB_COMMON_TRUE
605 PLASMAMULE_FALSE
606 PLASMAMULE_TRUE
607 INSTALL_SKINS_FALSE
608 INSTALL_SKINS_TRUE
609 GENERATE_FLEX_HEADER_FALSE
610 GENERATE_FLEX_HEADER_TRUE
611 COMPILE_NLS_FALSE
612 COMPILE_NLS_TRUE
613 NEED_CORESERVICES_FALSE
614 NEED_CORESERVICES_TRUE
615 NEED_RC_FALSE
616 NEED_RC_TRUE
617 SYS_WIN32_FALSE
618 SYS_WIN32_TRUE
619 SVNDATE
620 READLINE_LIBS
621 DEBUGFLAG
622 KDE_MIME_PATH
623 KDE_ICON_PATH
624 KDE_MODULE_PATH
625 KDE_SERVICE_PATH
626 KDE_APPLNK_PATH
627 KDE_HEADER_DIR
628 KDE4_CONFIG
629 QT_GUI_LIBS
630 QT_GUI_CXXFLAGS
631 QT_CORE_LIBS
632 QT_CORE_CXXFLAGS
633 QT_DBUS_LDFLAGS
634 QT_MOC
635 BFD_LIBS
636 BFD_CPPFLAGS
637 INCINTL
638 MONOLITHIC_MANPAGES
639 ALCC_MANPAGES
640 ALC_MANPAGES
641 ED2K_MANPAGES
642 WXCAS_MANPAGES
643 CAS_MANPAGES
644 AMULE_GUI_MANPAGES
645 WEBSERVER_MANPAGES
646 AMULECMD_MANPAGES
647 AMULE_DAEMON_MANPAGES
648 POSUB
649 LTLIBINTL
650 LIBINTL
651 INTLLIBS
652 INTL_LIBTOOL_SUFFIX_PREFIX
653 GENCAT
654 INSTOBJEXT
655 DATADIRNAME
656 INTLOBJS
657 CATOBJEXT
658 USE_INCLUDED_LIBINTL
659 BUILD_INCLUDED_LIBINTL
660 USE_NLS
661 INTLBISON
662 LTLIBICONV
663 LIBICONV
664 GLIBC21
665 MSGMERGE
666 XGETTEXT
667 GMSGFMT
668 MSGFMT
669 MKINSTALLDIRS
670 POW_LIB
671 LIBOBJS
672 ALLOCA
673 BOOST_SYSTEM_LIBS
674 BOOST_LDPATH
675 BOOST_SYSTEM_LDPATH
676 BOOST_SYSTEM_LDFLAGS
677 BOOST_CPPFLAGS
678 DISTCHECK_CONFIGURE_FLAGS
679 BOOST_ROOT
680 CRYPTOPP_LIBS
681 CRYPTOPP_LDFLAGS
682 CRYPTOPP_CPPFLAGS
683 LIBUPNP_LIBS
684 LIBUPNP_LDFLAGS
685 LIBUPNP_CFLAGS
686 LIBUPNP_CPPFLAGS
687 PKG_CONFIG
688 RCFLAGS
690 WXBASE_CPPFLAGS
691 WXBASE_LIBS
692 WX_PORT
693 WX_SHARED
694 WX_DEBUG
695 WX_UNICODE
696 WX_VERSION_MINOR
697 WX_VERSION_MAJOR
698 WX_RESCOMP
699 WX_VERSION_FULL
700 WX_LIBS
701 WX_CXXFLAGS_ONLY
702 WX_CFLAGS_ONLY
703 WX_CXXFLAGS
704 WX_CFLAGS
705 WX_CPPFLAGS
706 WX_CONFIG_PATH
707 AMULEWEB_DEFS
708 LIBPNG_LIBS
709 LIBPNG_LDFLAGS
710 LIBPNG_CFLAGS
711 LIBPNG_CONFIG_PATH
712 ZLIB_LIBS
713 ZLIB_LDFLAGS
714 ZLIB_CPPFLAGS
715 CAS_DEFS
716 GDLIB_LIBS
717 GDLIB_LDFLAGS
718 GDLIB_CFLAGS
719 GDLIB_CONFIG_PATH
720 FILEVIEW_FALSE
721 FILEVIEW_TRUE
722 XAS_FALSE
723 XAS_TRUE
724 ALCC_FALSE
725 ALCC_TRUE
726 ALC_FALSE
727 ALC_TRUE
728 ED2K_FALSE
729 ED2K_TRUE
730 WXCAS_FALSE
731 WXCAS_TRUE
732 CAS_FALSE
733 CAS_TRUE
734 AMULE_GUI_FALSE
735 AMULE_GUI_TRUE
736 WEB_FALSE
737 WEB_TRUE
738 COMPILE_CMD_FALSE
739 COMPILE_CMD_TRUE
740 AMULE_DAEMON_FALSE
741 AMULE_DAEMON_TRUE
742 MONOLITHIC_FALSE
743 MONOLITHIC_TRUE
746 YFLAGS
747 YACC
749 RANLIB
750 LEXLIB
751 LEX_OUTPUT_ROOT
753 EGREP
754 GREP
755 BUILD_LDFLAGS
756 BUILD_CFLAGS
757 BUILD_CPPFLAGS
758 BUILD_EXEEXT
759 ac_ct_BUILD_CC
760 BUILD_CC
762 am__fastdepCC_FALSE
763 am__fastdepCC_TRUE
764 CCDEPMODE
765 ac_ct_CC
766 CFLAGS
768 CXXCPP
769 am__fastdepCXX_FALSE
770 am__fastdepCXX_TRUE
771 CXXDEPMODE
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__quote
776 am__include
777 DEPDIR
778 OBJEXT
779 EXEEXT
780 ac_ct_CXX
781 CPPFLAGS
782 LDFLAGS
783 CXXFLAGS
785 MULERCFLAGS
786 MULELDFLAGS
787 MULECXXFLAGS
788 MULECFLAGS
789 MULECPPFLAGS
790 RESOLV_LIB
791 host_os
792 host_vendor
793 host_cpu
794 host
795 build_os
796 build_vendor
797 build_cpu
798 build
799 MAINT
800 MAINTAINER_MODE_FALSE
801 MAINTAINER_MODE_TRUE
802 AM_BACKSLASH
803 AM_DEFAULT_VERBOSITY
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL
865 GEOIP_LIBS
866 GEOIP_LDFLAGS
867 GEOIP_CPPFLAGS'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_silent_rules
872 enable_maintainer_mode
873 enable_dependency_tracking
874 enable_monolithic
875 enable_amule_daemon
876 enable_amulecmd
877 enable_webserver
878 enable_amule_gui
879 enable_cas
880 enable_wxcas
881 enable_ed2k
882 enable_alc
883 enable_alcc
884 enable_xas
885 enable_fileview
886 enable_plasmamule
887 enable_static
888 with_kde4_config
889 enable_kde_in_home
890 with_moc
891 with_gnu_malloc
892 with_gdlib_prefix
893 with_gdlib_config
894 with_zlib
895 with_libpng_prefix
896 with_libpng_config
897 enable_geoip
898 with_geoip_headers
899 with_geoip_lib
900 with_geoip_static
901 with_wxdir
902 with_wx_config
903 with_wx_prefix
904 with_wx_exec_prefix
905 with_toolkit
906 with_wxshared
907 with_wxdebug
908 with_wxversion
909 enable_upnp
910 with_libupnp_prefix
911 with_crypto_prefix
912 enable_debug
913 enable_profile
914 enable_optimize
915 with_boost
916 enable_static_boost
917 enable_mmap
918 with_language
919 with_gnu_ld
920 enable_rpath
921 with_libiconv_prefix
922 enable_nls
923 with_included_gettext
924 with_libintl_prefix
925 with_denoise_level
926 enable_ccache
927 with_ccache_prefix
929 ac_precious_vars='build_alias
930 host_alias
931 target_alias
933 CXXFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
938 CXXCPP
940 CFLAGS
942 YACC
943 YFLAGS
945 RCFLAGS
946 PKG_CONFIG
947 BOOST_ROOT'
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1018 ac_dashdash=yes ;;
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 esac
1355 done
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1405 cross_compiling=yes
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1441 /^X\(\/\/\)$/{
1442 s//\1/
1445 /^X\(\/\).*/{
1446 s//\1/
1449 s/.*/./; q'`
1450 srcdir=$ac_confdir
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 srcdir=..
1454 else
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 srcdir=.
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1488 cat <<_ACEOF
1489 \`configure' configures aMule SVN to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1498 Configuration:
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 [PREFIX]
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1542 _ACEOF
1544 cat <<\_ACEOF
1546 Program names:
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of aMule SVN:";;
1560 esac
1561 cat <<\_ACEOF
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-silent-rules less verbose build output (undo: `make V=1')
1568 --disable-silent-rules verbose build output (undo: `make V=0')
1569 --enable-maintainer-mode enable make rules and dependencies not useful
1570 (and sometimes confusing) to the casual installer
1571 --disable-dependency-tracking speeds up one-time build
1572 --enable-dependency-tracking do not reject slow dependency extractors
1573 --disable-monolithic disable building of the monolithic aMule app
1574 --enable-amule-daemon compile aMule daemon version
1575 --enable-amulecmd compile aMule command line client
1576 --enable-webserver compile aMule WebServer
1577 --enable-amule-gui compile aMule remote GUI
1578 --enable-cas compile C aMule Statistics
1579 --enable-wxcas compile aMule GUI Statistics
1580 --disable-ed2k don't compile aMule ed2k links handler
1581 --enable-alc compile aMuleLinkCreator GUI version
1582 --enable-alcc compile aMuleLinkCreator for console
1583 --enable-xas install xas XChat2 plugin
1584 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1585 --enable-plasmamule compile aMule plasma applet and engine
1586 --enable-static produce a statically linked executable
1587 --enable-kde-in-home install KDE related stuff in your home dir
1588 --enable-geoip compile with GeoIP IP2Country library
1589 --disable-upnp do not compile UPnP code
1590 --disable-debug disable additional debugging output
1591 --enable-profile enable code profiling
1592 --enable-optimize enable code optimization
1593 --enable-static-boost Prefer the static boost libraries over the shared
1594 ones [no]
1595 --enable-mmap enable using mapped memory if supported
1596 --disable-rpath do not hardcode runtime library paths
1597 --disable-nls do not use Native Language Support
1598 --enable-ccache enable ccache support for fast recompilation
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-kde4-config=PATH kde4-config script to use
1604 --with-moc=PATH Search in PATH for Qt's meta object compiler
1605 --without-gnu-malloc Don't assume that we use GNU libc compatible
1606 malloc/realloc when cross-compiling
1607 --with-gdlib-prefix=PREFIX
1608 prefix where gdlib is installed (optional)
1609 --with-gdlib-config=CONFIG
1610 gdlib-config script to use (optional)
1611 --with-zlib=PREFIX use zlib in PREFIX
1612 --with-libpng-prefix=PREFIX
1613 prefix where libpng is installed (optional)
1614 --with-libpng-config=CONFIG
1615 libpng-config script to use (optional)
1616 --with-geoip-headers=DIR
1617 GeoIP include files location
1618 --with-geoip-lib=DIR GeoIP library location
1619 --with-geoip-static Explicitly link GeoIP statically (default=no)
1620 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1621 --with-wx-config=CONFIG wx-config script to use (optional)
1622 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1623 --with-wx-exec-prefix=PREFIX
1624 Exec prefix where wxWidgets is installed (optional)
1625 --with-toolkit Build against a specific wxWidgets toolkit (default
1626 is auto)
1627 --with-wxshared Force building against a shared build of wxWidgets,
1628 even if --disable-shared is given (default is auto)
1629 --with-wxdebug Force building against a debug build of wxWidgets,
1630 even if --disable-debug is given (default is auto)
1631 --with-wxversion Build against a specific version of wxWidgets
1632 (default is auto)
1633 --with-libupnp-prefix=PREFIX
1634 UPnP library location
1635 --with-crypto-prefix=PREFIX
1636 prefix where crypto++ is installed
1637 --with-boost[=DIR] use Boost.Asio for networking
1638 --with-language=<langs> Specify a comma-separated list of languages you want
1639 to have installed. See po/LINGUAS for available
1640 languages
1641 --with-gnu-ld assume the C compiler uses GNU ld default=no
1642 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1643 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1644 --with-included-gettext use the GNU gettext library included here
1645 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1646 --without-libintl-prefix don't search for libintl in includedir and libdir
1647 --with-denoise-level=<level>
1648 Specifies denoising level (0-4):
1649 0 - Do nothing
1650 4 - Suppress all normal output
1651 (for more information see
1652 src/utils/scripts/denoiser.rules)
1654 --with-ccache-prefix=PREFIX
1655 prefix where ccache is installed
1657 Some influential environment variables:
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXXCPP C++ preprocessor
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 CPP C preprocessor
1669 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1670 the first program found out of: `bison -y', `byacc', `yacc'.
1671 YFLAGS The list of arguments that will be passed by default to $YACC.
1672 This script will default YFLAGS to the empty string to avoid a
1673 default value of `-d' given by some make applications.
1674 RC Resource Compiler
1675 RCFLAGS Resource Compiler Flags
1676 PKG_CONFIG path to pkg-config utility
1677 BOOST_ROOT Location of Boost installation
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to <admin@amule.org>.
1683 _ACEOF
1684 ac_status=$?
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
1693 ac_builddir=.
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1711 case $srcdir in
1712 .) # We are building in place.
1713 ac_srcdir=.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1735 else
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 fi || ac_status=$?
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1739 done
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744 cat <<\_ACEOF
1745 aMule configure SVN
1746 generated by GNU Autoconf 2.65
1748 Copyright (C) 2009 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1751 _ACEOF
1752 exit
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_cxx_try_compile
1797 # ac_fn_cxx_try_cpp LINENO
1798 # ------------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } >/dev/null && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_cxx_try_cpp
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } >/dev/null && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_cpp
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 $as_test_x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ( cat <<\_ASBOX
2026 ## ------------------------------ ##
2027 ## Report this to admin@amule.org ##
2028 ## ------------------------------ ##
2029 _ASBOX
2030 ) | sed "s/^/$as_me: WARNING: /" >&2
2032 esac
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=\$ac_header_compiler"
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_header_mongrel
2048 # ac_fn_c_try_run LINENO
2049 # ----------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051 # that executables *can* be run.
2052 ac_fn_c_try_run ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2076 ac_retval=0
2077 else
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 ac_retval=$ac_status
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_try_run
2090 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2091 # -------------------------------------------------------
2092 # Tests whether HEADER exists and can be compiled using the include files in
2093 # INCLUDES, setting the cache variable VAR accordingly.
2094 ac_fn_c_check_header_compile ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 #include <$2>
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_check_header_compile
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 if (sizeof ($2))
2141 return 0;
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof (($2)))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2161 else
2162 eval "$3=yes"
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_type
2175 # ac_fn_cxx_try_link LINENO
2176 # -------------------------
2177 # Try to link conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_cxx_try_link ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext conftest$ac_exeext
2182 if { { ac_try="$ac_link"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_cxx_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest$ac_exeext && {
2201 test "$cross_compiling" = yes ||
2202 $as_test_x conftest$ac_exeext
2203 }; then :
2204 ac_retval=0
2205 else
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 ac_retval=1
2211 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2212 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2213 # interfere with the next link command; also delete a directory that is
2214 # left behind by Apple's compiler. We do this before executing the actions.
2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_cxx_try_link
2221 # ac_fn_cxx_try_run LINENO
2222 # ------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2224 # that executables *can* be run.
2225 ac_fn_cxx_try_run ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2239 { { case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_try") 2>&5
2246 ac_status=$?
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; }; }; then :
2249 ac_retval=0
2250 else
2251 $as_echo "$as_me: program exited with status $ac_status" >&5
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_retval=$ac_status
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 as_fn_set_status $ac_retval
2261 } # ac_fn_cxx_try_run
2263 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2264 # ---------------------------------------------------------
2265 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2266 # the include files in INCLUDES and setting the cache variable VAR
2267 # accordingly.
2268 ac_fn_cxx_check_header_mongrel ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273 $as_echo_n "checking for $2... " >&6; }
2274 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 else
2281 # Is the header compilable?
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2283 $as_echo_n "checking $2 usability... " >&6; }
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2287 #include <$2>
2288 _ACEOF
2289 if ac_fn_cxx_try_compile "$LINENO"; then :
2290 ac_header_compiler=yes
2291 else
2292 ac_header_compiler=no
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2296 $as_echo "$ac_header_compiler" >&6; }
2298 # Is the header present?
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2300 $as_echo_n "checking $2 presence... " >&6; }
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 #include <$2>
2304 _ACEOF
2305 if ac_fn_cxx_try_cpp "$LINENO"; then :
2306 ac_header_preproc=yes
2307 else
2308 ac_header_preproc=no
2310 rm -f conftest.err conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2312 $as_echo "$ac_header_preproc" >&6; }
2314 # So? What about this header?
2315 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2316 yes:no: )
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2318 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2320 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2322 no:yes:* )
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2324 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2326 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2328 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2330 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2332 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2333 ( cat <<\_ASBOX
2334 ## ------------------------------ ##
2335 ## Report this to admin@amule.org ##
2336 ## ------------------------------ ##
2337 _ASBOX
2338 ) | sed "s/^/$as_me: WARNING: /" >&2
2340 esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=\$ac_header_compiler"
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_cxx_check_header_mongrel
2356 # ac_fn_cxx_check_func LINENO FUNC VAR
2357 # ------------------------------------
2358 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2359 ac_fn_cxx_check_func ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2371 #define $2 innocuous_$2
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $2 (); below.
2375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376 <limits.h> exists even on freestanding compilers. */
2378 #ifdef __STDC__
2379 # include <limits.h>
2380 #else
2381 # include <assert.h>
2382 #endif
2384 #undef $2
2386 /* Override any GCC internal prototype to avoid an error.
2387 Use char because int might match the return type of a GCC
2388 builtin and then its argument prototype would still apply. */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 char $2 ();
2393 /* The GNU C library defines this for functions which it implements
2394 to always fail with ENOSYS. Some functions are actually named
2395 something starting with __ and the normal name is an alias. */
2396 #if defined __stub_$2 || defined __stub___$2
2397 choke me
2398 #endif
2401 main ()
2403 return $2 ();
2405 return 0;
2407 _ACEOF
2408 if ac_fn_cxx_try_link "$LINENO"; then :
2409 eval "$3=yes"
2410 else
2411 eval "$3=no"
2413 rm -f core conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2416 eval ac_res=\$$3
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 } # ac_fn_cxx_check_func
2423 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2424 # ---------------------------------------------
2425 # Tests whether TYPE exists after having included INCLUDES, setting cache
2426 # variable VAR accordingly.
2427 ac_fn_cxx_check_type ()
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2431 $as_echo_n "checking for $2... " >&6; }
2432 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 eval "$3=no"
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 if (sizeof ($2))
2443 return 0;
2445 return 0;
2447 _ACEOF
2448 if ac_fn_cxx_try_compile "$LINENO"; then :
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2453 main ()
2455 if (sizeof (($2)))
2456 return 0;
2458 return 0;
2460 _ACEOF
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2463 else
2464 eval "$3=yes"
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_cxx_check_type
2477 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2478 # ---------------------------------------------------------
2479 # Tests whether HEADER exists and can be compiled using the include files in
2480 # INCLUDES, setting the cache variable VAR accordingly.
2481 ac_fn_cxx_check_header_compile ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2485 $as_echo_n "checking for $2... " >&6; }
2486 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2492 #include <$2>
2493 _ACEOF
2494 if ac_fn_cxx_try_compile "$LINENO"; then :
2495 eval "$3=yes"
2496 else
2497 eval "$3=no"
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 eval ac_res=\$$3
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2503 $as_echo "$ac_res" >&6; }
2504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506 } # ac_fn_cxx_check_header_compile
2508 # ac_fn_c_check_func LINENO FUNC VAR
2509 # ----------------------------------
2510 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2511 ac_fn_c_check_func ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2523 #define $2 innocuous_$2
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $2 (); below.
2527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528 <limits.h> exists even on freestanding compilers. */
2530 #ifdef __STDC__
2531 # include <limits.h>
2532 #else
2533 # include <assert.h>
2534 #endif
2536 #undef $2
2538 /* Override any GCC internal prototype to avoid an error.
2539 Use char because int might match the return type of a GCC
2540 builtin and then its argument prototype would still apply. */
2541 #ifdef __cplusplus
2542 extern "C"
2543 #endif
2544 char $2 ();
2545 /* The GNU C library defines this for functions which it implements
2546 to always fail with ENOSYS. Some functions are actually named
2547 something starting with __ and the normal name is an alias. */
2548 #if defined __stub_$2 || defined __stub___$2
2549 choke me
2550 #endif
2553 main ()
2555 return $2 ();
2557 return 0;
2559 _ACEOF
2560 if ac_fn_c_try_link "$LINENO"; then :
2561 eval "$3=yes"
2562 else
2563 eval "$3=no"
2565 rm -f core conftest.err conftest.$ac_objext \
2566 conftest$ac_exeext conftest.$ac_ext
2568 eval ac_res=\$$3
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2573 } # ac_fn_c_check_func
2575 # ac_fn_c_check_decl LINENO SYMBOL VAR
2576 # ------------------------------------
2577 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2578 ac_fn_c_check_decl ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2582 $as_echo_n "checking whether $2 is declared... " >&6; }
2583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2590 main ()
2592 #ifndef $2
2593 (void) $2;
2594 #endif
2597 return 0;
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601 eval "$3=yes"
2602 else
2603 eval "$3=no"
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_decl
2613 cat >config.log <<_ACEOF
2614 This file contains any messages produced by compilers while
2615 running configure, to aid debugging if configure makes a mistake.
2617 It was created by aMule $as_me SVN, which was
2618 generated by GNU Autoconf 2.65. Invocation command line was
2620 $ $0 $@
2622 _ACEOF
2623 exec 5>>config.log
2625 cat <<_ASUNAME
2626 ## --------- ##
2627 ## Platform. ##
2628 ## --------- ##
2630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2647 _ASUNAME
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 $as_echo "PATH: $as_dir"
2655 done
2656 IFS=$as_save_IFS
2658 } >&5
2660 cat >&5 <<_ACEOF
2663 ## ----------- ##
2664 ## Core tests. ##
2665 ## ----------- ##
2667 _ACEOF
2670 # Keep a trace of the command line.
2671 # Strip out --no-create and --no-recursion so they do not pile up.
2672 # Strip out --silent because we don't want to record it for future runs.
2673 # Also quote any args containing shell meta-characters.
2674 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_configure_args=
2676 ac_configure_args0=
2677 ac_configure_args1=
2678 ac_must_keep_next=false
2679 for ac_pass in 1 2
2681 for ac_arg
2683 case $ac_arg in
2684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2686 | -silent | --silent | --silen | --sile | --sil)
2687 continue ;;
2688 *\'*)
2689 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 esac
2691 case $ac_pass in
2692 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694 as_fn_append ac_configure_args1 " '$ac_arg'"
2695 if test $ac_must_keep_next = true; then
2696 ac_must_keep_next=false # Got value, back to normal.
2697 else
2698 case $ac_arg in
2699 *=* | --config-cache | -C | -disable-* | --disable-* \
2700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2702 | -with-* | --with-* | -without-* | --without-* | --x)
2703 case "$ac_configure_args0 " in
2704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2705 esac
2707 -* ) ac_must_keep_next=true ;;
2708 esac
2710 as_fn_append ac_configure_args " '$ac_arg'"
2712 esac
2713 done
2714 done
2715 { ac_configure_args0=; unset ac_configure_args0;}
2716 { ac_configure_args1=; unset ac_configure_args1;}
2718 # When interrupted or exit'd, cleanup temporary files, and complete
2719 # config.log. We remove comments because anyway the quotes in there
2720 # would cause problems or look ugly.
2721 # WARNING: Use '\'' to represent an apostrophe within the trap.
2722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2723 trap 'exit_status=$?
2724 # Save into config.log some information that might help in debugging.
2726 echo
2728 cat <<\_ASBOX
2729 ## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##
2732 _ASBOX
2733 echo
2734 # The following way of writing the cache mishandles newlines in values,
2736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in #(
2739 *${as_nl}*)
2740 case $ac_var in #(
2741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2743 esac
2744 case $ac_var in #(
2745 _ | IFS | as_nl) ;; #(
2746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2747 *) { eval $ac_var=; unset $ac_var;} ;;
2748 esac ;;
2749 esac
2750 done
2751 (set) 2>&1 |
2752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2753 *${as_nl}ac_space=\ *)
2754 sed -n \
2755 "s/'\''/'\''\\\\'\'''\''/g;
2756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2757 ;; #(
2759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761 esac |
2762 sort
2764 echo
2766 cat <<\_ASBOX
2767 ## ----------------- ##
2768 ## Output variables. ##
2769 ## ----------------- ##
2770 _ASBOX
2771 echo
2772 for ac_var in $ac_subst_vars
2774 eval ac_val=\$$ac_var
2775 case $ac_val in
2776 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777 esac
2778 $as_echo "$ac_var='\''$ac_val'\''"
2779 done | sort
2780 echo
2782 if test -n "$ac_subst_files"; then
2783 cat <<\_ASBOX
2784 ## ------------------- ##
2785 ## File substitutions. ##
2786 ## ------------------- ##
2787 _ASBOX
2788 echo
2789 for ac_var in $ac_subst_files
2791 eval ac_val=\$$ac_var
2792 case $ac_val in
2793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2794 esac
2795 $as_echo "$ac_var='\''$ac_val'\''"
2796 done | sort
2797 echo
2800 if test -s confdefs.h; then
2801 cat <<\_ASBOX
2802 ## ----------- ##
2803 ## confdefs.h. ##
2804 ## ----------- ##
2805 _ASBOX
2806 echo
2807 cat confdefs.h
2808 echo
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2813 } >&5
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816 exit $exit_status
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2826 $as_echo "/* confdefs.h */" > confdefs.h
2828 # Predefined preprocessor variables.
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860 ac_site_file1=$CONFIG_SITE
2861 elif test "x$prefix" != xNONE; then
2862 ac_site_file1=$prefix/share/config.site
2863 ac_site_file2=$prefix/etc/config.site
2864 else
2865 ac_site_file1=$ac_default_prefix/share/config.site
2866 ac_site_file2=$ac_default_prefix/etc/config.site
2868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 test "x$ac_site_file" = xNONE && continue
2871 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2874 sed 's/^/| /' "$ac_site_file" >&5
2875 . "$ac_site_file"
2877 done
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special files
2881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 case $cache_file in
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2888 esac
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 >$cache_file
2896 as_fn_append ac_header_list " stdlib.h"
2897 as_fn_append ac_header_list " unistd.h"
2898 as_fn_append ac_header_list " sys/param.h"
2899 # Check that the precious variables saved in the cache have kept the same
2900 # value.
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2908 set,)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2912 ,set)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2914 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2916 ,);;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x $ac_old_val`
2921 ac_new_val_w=`echo x $ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2925 ac_cache_corrupted=:
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2935 fi;;
2936 esac
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2939 case $ac_new_val in
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2942 esac
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2946 esac
2948 done
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 am__api_version='1.11'
2969 ac_aux_dir=
2970 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2971 for ac_t in install-sh install.sh shtool; do
2972 if test -f "$ac_dir/$ac_t"; then
2973 ac_aux_dir=$ac_dir
2974 ac_install_sh="$ac_aux_dir/$ac_t -c"
2975 break 2
2977 done
2978 done
2979 if test -z "$ac_aux_dir"; then
2980 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2983 # These three variables are undocumented and unsupported,
2984 # and are intended to be withdrawn in a future Autoconf release.
2985 # They can cause serious problems if a builder's source tree is in a directory
2986 # whose full name contains unusual characters.
2987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2992 # Find a good install program. We prefer a C program (faster),
2993 # so one script is as good as another. But avoid the broken or
2994 # incompatible versions:
2995 # SysV /etc/install, /usr/sbin/install
2996 # SunOS /usr/etc/install
2997 # IRIX /sbin/install
2998 # AIX /bin/install
2999 # AmigaOS /C/install, which installs bootblocks on floppy discs
3000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3003 # OS/2's system install, which has a completely different semantic
3004 # ./install, which can be erroneously created by make from ./install.sh.
3005 # Reject install programs that cannot install multiple files.
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3007 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3008 if test -z "$INSTALL"; then
3009 if test "${ac_cv_path_install+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 # Account for people who put trailing slashes in PATH elements.
3018 case $as_dir/ in #((
3019 ./ | .// | /[cC]/* | \
3020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3021 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3022 /usr/ucb/* ) ;;
3024 # OSF1 and SCO ODT 3.0 have their own names for install.
3025 # Don't use installbsd from OSF since it installs stuff as root
3026 # by default.
3027 for ac_prog in ginstall scoinst install; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3038 else
3039 rm -rf conftest.one conftest.two conftest.dir
3040 echo one > conftest.one
3041 echo two > conftest.two
3042 mkdir conftest.dir
3043 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3044 test -s conftest.one && test -s conftest.two &&
3045 test -s conftest.dir/conftest.one &&
3046 test -s conftest.dir/conftest.two
3047 then
3048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049 break 3
3053 done
3054 done
3056 esac
3058 done
3059 IFS=$as_save_IFS
3061 rm -rf conftest.one conftest.two conftest.dir
3064 if test "${ac_cv_path_install+set}" = set; then
3065 INSTALL=$ac_cv_path_install
3066 else
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for INSTALL within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
3071 INSTALL=$ac_install_sh
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3075 $as_echo "$INSTALL" >&6; }
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3086 $as_echo_n "checking whether build environment is sane... " >&6; }
3087 # Just in case
3088 sleep 1
3089 echo timestamp > conftest.file
3090 # Reject unsafe characters in $srcdir or the absolute working directory
3091 # name. Accept space and tab only in the latter.
3092 am_lf='
3094 case `pwd` in
3095 *[\\\"\#\$\&\'\`$am_lf]*)
3096 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3097 esac
3098 case $srcdir in
3099 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3100 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3101 esac
3103 # Do `set' in a subshell so we don't clobber the current shell's
3104 # arguments. Must try -L first in case configure is actually a
3105 # symlink; some systems play weird games with the mod time of symlinks
3106 # (eg FreeBSD returns the mod time of the symlink's containing
3107 # directory).
3108 if (
3109 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3110 if test "$*" = "X"; then
3111 # -L didn't work.
3112 set X `ls -t "$srcdir/configure" conftest.file`
3114 rm -f conftest.file
3115 if test "$*" != "X $srcdir/configure conftest.file" \
3116 && test "$*" != "X conftest.file $srcdir/configure"; then
3118 # If neither matched, then we have a broken ls. This can happen
3119 # if, for instance, CONFIG_SHELL is bash and it inherits a
3120 # broken ls alias from the environment. This has actually
3121 # happened. Such a system could not be considered "sane".
3122 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3123 alias in your environment" "$LINENO" 5
3126 test "$2" = conftest.file
3128 then
3129 # Ok.
3131 else
3132 as_fn_error "newly created file is older than distributed files!
3133 Check your system clock" "$LINENO" 5
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3137 test "$program_prefix" != NONE &&
3138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3139 # Use a double $ so make ignores it.
3140 test "$program_suffix" != NONE &&
3141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3142 # Double any \ or $.
3143 # By default was `s,x,x', remove it if useless.
3144 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3145 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3147 # expand $ac_aux_dir to an absolute path
3148 am_aux_dir=`cd $ac_aux_dir && pwd`
3150 if test x"${MISSING+set}" != xset; then
3151 case $am_aux_dir in
3152 *\ * | *\ *)
3153 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3155 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3156 esac
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --run true"; then
3160 am_missing_run="$MISSING --run "
3161 else
3162 am_missing_run=
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3167 if test x"${install_sh}" != xset; then
3168 case $am_aux_dir in
3169 *\ * | *\ *)
3170 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3172 install_sh="\${SHELL} $am_aux_dir/install-sh"
3173 esac
3176 # Installed binaries are usually stripped using `strip' when the user
3177 # run `make install-strip'. However `strip' might not be the right
3178 # tool to use in cross-compilation environments, therefore Automake
3179 # will honor the `STRIP' environment variable to overrule this program.
3180 if test "$cross_compiling" != no; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}strip; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_STRIP+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$STRIP"; then
3190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3209 STRIP=$ac_cv_prog_STRIP
3210 if test -n "$STRIP"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3212 $as_echo "$STRIP" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3220 if test -z "$ac_cv_prog_STRIP"; then
3221 ac_ct_STRIP=$STRIP
3222 # Extract the first word of "strip", so it can be a program name with args.
3223 set dummy strip; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$ac_ct_STRIP"; then
3230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 ac_cv_prog_ac_ct_STRIP="strip"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3243 done
3244 done
3245 IFS=$as_save_IFS
3249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3250 if test -n "$ac_ct_STRIP"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3252 $as_echo "$ac_ct_STRIP" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3258 if test "x$ac_ct_STRIP" = x; then
3259 STRIP=":"
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 STRIP=$ac_ct_STRIP
3269 else
3270 STRIP="$ac_cv_prog_STRIP"
3274 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3277 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3278 if test -z "$MKDIR_P"; then
3279 if test "${ac_cv_path_mkdir+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_prog in mkdir gmkdir; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3290 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3291 'mkdir (GNU coreutils) '* | \
3292 'mkdir (coreutils) '* | \
3293 'mkdir (fileutils) '4.1*)
3294 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3295 break 3;;
3296 esac
3297 done
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 test -d ./--version && rmdir ./--version
3305 if test "${ac_cv_path_mkdir+set}" = set; then
3306 MKDIR_P="$ac_cv_path_mkdir -p"
3307 else
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for MKDIR_P within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the value is a relative name.
3312 MKDIR_P="$ac_install_sh -d"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3316 $as_echo "$MKDIR_P" >&6; }
3318 mkdir_p="$MKDIR_P"
3319 case $mkdir_p in
3320 [\\/$]* | ?:[\\/]*) ;;
3321 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3322 esac
3324 for ac_prog in gawk mawk nawk awk
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_AWK+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$AWK"; then
3334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_AWK="$ac_prog"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3347 done
3348 done
3349 IFS=$as_save_IFS
3353 AWK=$ac_cv_prog_AWK
3354 if test -n "$AWK"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3356 $as_echo "$AWK" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3363 test -n "$AWK" && break
3364 done
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3367 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3368 set x ${MAKE-make}
3369 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 cat >conftest.make <<\_ACEOF
3374 SHELL = /bin/sh
3375 all:
3376 @echo '@@@%%%=$(MAKE)=@@@%%%'
3377 _ACEOF
3378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3380 *@@@%%%=?*=@@@%%%*)
3381 eval ac_cv_prog_make_${ac_make}_set=yes;;
3383 eval ac_cv_prog_make_${ac_make}_set=no;;
3384 esac
3385 rm -f conftest.make
3387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389 $as_echo "yes" >&6; }
3390 SET_MAKE=
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 SET_MAKE="MAKE=${MAKE-make}"
3397 rm -rf .tst 2>/dev/null
3398 mkdir .tst 2>/dev/null
3399 if test -d .tst; then
3400 am__leading_dot=.
3401 else
3402 am__leading_dot=_
3404 rmdir .tst 2>/dev/null
3406 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3407 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3408 # is not polluted with repeated "-I."
3409 am__isrc=' -I$(srcdir)'
3410 # test to see if srcdir already configured
3411 if test -f $srcdir/config.status; then
3412 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3416 # test whether we have cygpath
3417 if test -z "$CYGPATH_W"; then
3418 if (cygpath --version) >/dev/null 2>/dev/null; then
3419 CYGPATH_W='cygpath -w'
3420 else
3421 CYGPATH_W=echo
3426 # Define the identity of the package.
3427 PACKAGE='amule'
3428 VERSION='SVN'
3431 cat >>confdefs.h <<_ACEOF
3432 #define PACKAGE "$PACKAGE"
3433 _ACEOF
3436 cat >>confdefs.h <<_ACEOF
3437 #define VERSION "$VERSION"
3438 _ACEOF
3440 # Some tools Automake needs.
3442 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3445 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3448 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3451 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3454 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3456 # We need awk for the "check" target. The system "awk" is bad on
3457 # some platforms.
3458 # Always define AMTAR for backward compatibility.
3460 AMTAR=${AMTAR-"${am_missing_run}tar"}
3462 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3468 # Check whether --enable-silent-rules was given.
3469 if test "${enable_silent_rules+set}" = set; then :
3470 enableval=$enable_silent_rules;
3473 case $enable_silent_rules in
3474 yes) AM_DEFAULT_VERBOSITY=0;;
3475 no) AM_DEFAULT_VERBOSITY=1;;
3476 *) AM_DEFAULT_VERBOSITY=1;;
3477 esac
3478 AM_BACKSLASH='\'
3484 ac_config_headers="$ac_config_headers config.h"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3489 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3490 # Check whether --enable-maintainer-mode was given.
3491 if test "${enable_maintainer_mode+set}" = set; then :
3492 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3498 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3499 if test $USE_MAINTAINER_MODE = yes; then
3500 MAINTAINER_MODE_TRUE=
3501 MAINTAINER_MODE_FALSE='#'
3502 else
3503 MAINTAINER_MODE_TRUE='#'
3504 MAINTAINER_MODE_FALSE=
3507 MAINT=$MAINTAINER_MODE_TRUE
3511 # Make sure we can run config.sub.
3512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3513 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3516 $as_echo_n "checking build system type... " >&6; }
3517 if test "${ac_cv_build+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_build_alias=$build_alias
3521 test "x$ac_build_alias" = x &&
3522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3523 test "x$ac_build_alias" = x &&
3524 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3526 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3530 $as_echo "$ac_cv_build" >&6; }
3531 case $ac_cv_build in
3532 *-*-*) ;;
3533 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3534 esac
3535 build=$ac_cv_build
3536 ac_save_IFS=$IFS; IFS='-'
3537 set x $ac_cv_build
3538 shift
3539 build_cpu=$1
3540 build_vendor=$2
3541 shift; shift
3542 # Remember, the first character of IFS is used to create $*,
3543 # except with old shells:
3544 build_os=$*
3545 IFS=$ac_save_IFS
3546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3550 $as_echo_n "checking host system type... " >&6; }
3551 if test "${ac_cv_host+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test "x$host_alias" = x; then
3555 ac_cv_host=$ac_cv_build
3556 else
3557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3558 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3563 $as_echo "$ac_cv_host" >&6; }
3564 case $ac_cv_host in
3565 *-*-*) ;;
3566 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3567 esac
3568 host=$ac_cv_host
3569 ac_save_IFS=$IFS; IFS='-'
3570 set x $ac_cv_host
3571 shift
3572 host_cpu=$1
3573 host_vendor=$2
3574 shift; shift
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3577 host_os=$*
3578 IFS=$ac_save_IFS
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3583 case "${host_os}" in
3584 darwin*)
3585 SYS=darwin
3586 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3587 MULELDFLAGS="-bind_at_load"
3588 touch src/Scanner.cpp
3590 openbsd*)
3591 SYS=openbsd
3592 LIBS="$LIBS -L/usr/local/lib"
3593 MULECPPFLAGS="-D__OPENBSD__"
3595 *cygwin* | *mingw32*)
3596 SYS=win32
3597 MULECPPFLAGS="-DNOMINMAX"
3599 solaris*)
3600 SYS=solaris
3601 RESOLV_LIB="-lresolv -lnsl"
3602 LIBS="$LIBS -lrt"
3604 *netbsd*)
3605 SYS=netbsd
3606 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3607 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3608 # Still, we prepend them, instead of adding, so the user may override them.
3609 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3610 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3612 *irix*)
3613 SYS=irix
3614 MULECPPFLAGS="-D__IRIX__"
3617 SYS=unknown
3619 esac
3621 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3622 if test ${SYS:-unknown} != win32; then :
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3625 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3626 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3628 MULELDFLAGS="$MULELDFLAGS -pthread"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3632 else
3634 MULELDFLAGS="$MULELDFLAGS -lpthread"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3644 mule_backup_CFLAGS="$CFLAGS"
3645 mule_backup_CXXFLAGS="$CXXFLAGS"
3646 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3647 ac_ext=cpp
3648 ac_cpp='$CXXCPP $CPPFLAGS'
3649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652 if test -z "$CXX"; then
3653 if test -n "$CCC"; then
3654 CXX=$CCC
3655 else
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_CXX+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$CXX"; then
3667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3682 IFS=$as_save_IFS
3686 CXX=$ac_cv_prog_CXX
3687 if test -n "$CXX"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3689 $as_echo "$CXX" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$CXX" && break
3697 done
3699 if test -z "$CXX"; then
3700 ac_ct_CXX=$CXX
3701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -n "$ac_ct_CXX"; then
3711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_ac_ct_CXX="$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3724 done
3725 done
3726 IFS=$as_save_IFS
3730 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3731 if test -n "$ac_ct_CXX"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3733 $as_echo "$ac_ct_CXX" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$ac_ct_CXX" && break
3741 done
3743 if test "x$ac_ct_CXX" = x; then
3744 CXX="g++"
3745 else
3746 case $cross_compiling:$ac_tool_warned in
3747 yes:)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3751 esac
3752 CXX=$ac_ct_CXX
3758 # Provide some information about the compiler.
3759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3760 set X $ac_compile
3761 ac_compiler=$2
3762 for ac_option in --version -v -V -qversion; do
3763 { { ac_try="$ac_compiler $ac_option >&5"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3771 ac_status=$?
3772 if test -s conftest.err; then
3773 sed '10a\
3774 ... rest of stderr output deleted ...
3775 10q' conftest.err >conftest.er1
3776 cat conftest.er1 >&5
3778 rm -f conftest.er1 conftest.err
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }
3781 done
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3787 main ()
3791 return 0;
3793 _ACEOF
3794 ac_clean_files_save=$ac_clean_files
3795 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3796 # Try to create an executable without -o first, disregard a.out.
3797 # It will help us diagnose broken compilers, and finding out an intuition
3798 # of exeext.
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3800 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3801 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3803 # The possible output files:
3804 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3806 ac_rmfiles=
3807 for ac_file in $ac_files
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3812 esac
3813 done
3814 rm -f $ac_rmfiles
3816 if { { ac_try="$ac_link_default"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link_default") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3830 # so that the user can short-circuit this test for compilers unknown to
3831 # Autoconf.
3832 for ac_file in $ac_files ''
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3838 [ab].out )
3839 # We found the default executable, but exeext='' is most
3840 # certainly right.
3841 break;;
3842 *.* )
3843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3844 then :; else
3845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847 # We set ac_cv_exeext here because the later test for it is not
3848 # safe: cross compilers may not add the suffix if given an `-o'
3849 # argument, so we may need to know it at that point already.
3850 # Even if this section looks crufty: it has the advantage of
3851 # actually working.
3852 break;;
3854 break;;
3855 esac
3856 done
3857 test "$ac_cv_exeext" = no && ac_cv_exeext=
3859 else
3860 ac_file=''
3862 if test -z "$ac_file"; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 { as_fn_set_status 77
3871 as_fn_error "C++ compiler cannot create executables
3872 See \`config.log' for more details." "$LINENO" 5; }; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3878 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3880 $as_echo "$ac_file" >&6; }
3881 ac_exeext=$ac_cv_exeext
3883 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3884 ac_clean_files=$ac_clean_files_save
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3886 $as_echo_n "checking for suffix of executables... " >&6; }
3887 if { { ac_try="$ac_link"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_link") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3900 # work properly (i.e., refer to `conftest.exe'), while it won't with
3901 # `rm'.
3902 for ac_file in conftest.exe conftest conftest.*; do
3903 test -f "$ac_file" || continue
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 break;;
3908 * ) break;;
3909 esac
3910 done
3911 else
3912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error "cannot compute suffix of executables: cannot compile and link
3915 See \`config.log' for more details." "$LINENO" 5; }
3917 rm -f conftest conftest$ac_cv_exeext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3919 $as_echo "$ac_cv_exeext" >&6; }
3921 rm -f conftest.$ac_ext
3922 EXEEXT=$ac_cv_exeext
3923 ac_exeext=$EXEEXT
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdio.h>
3928 main ()
3930 FILE *f = fopen ("conftest.out", "w");
3931 return ferror (f) || fclose (f) != 0;
3934 return 0;
3936 _ACEOF
3937 ac_clean_files="$ac_clean_files conftest.out"
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 if test "$cross_compiling" != yes; then
3943 { { ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3951 ac_status=$?
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }
3954 if { ac_try='./conftest$ac_cv_exeext'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C++ compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3979 $as_echo "$cross_compiling" >&6; }
3981 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 $as_echo_n "checking for suffix of object files... " >&6; }
3985 if test "${ac_cv_objext+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3992 main ()
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.o conftest.obj
4000 if { { ac_try="$ac_compile"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_compile") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 for ac_file in conftest.o conftest.obj conftest.*; do
4012 test -f "$ac_file" || continue;
4013 case $ac_file in
4014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016 break;;
4017 esac
4018 done
4019 else
4020 $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "cannot compute suffix of object files: cannot compile
4026 See \`config.log' for more details." "$LINENO" 5; }
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4033 ac_objext=$OBJEXT
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4043 main ()
4045 #ifndef __GNUC__
4046 choke me
4047 #endif
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4054 ac_compiler_gnu=yes
4055 else
4056 ac_compiler_gnu=no
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4063 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4064 if test $ac_compiler_gnu = yes; then
4065 GXX=yes
4066 else
4067 GXX=
4069 ac_test_CXXFLAGS=${CXXFLAGS+set}
4070 ac_save_CXXFLAGS=$CXXFLAGS
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4072 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4073 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4077 ac_cxx_werror_flag=yes
4078 ac_cv_prog_cxx_g=no
4079 CXXFLAGS="-g"
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4084 main ()
4088 return 0;
4090 _ACEOF
4091 if ac_fn_cxx_try_compile "$LINENO"; then :
4092 ac_cv_prog_cxx_g=yes
4093 else
4094 CXXFLAGS=""
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_cxx_try_compile "$LINENO"; then :
4108 else
4109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4110 CXXFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_cxx_try_compile "$LINENO"; then :
4123 ac_cv_prog_cxx_g=yes
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4133 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4134 if test "$ac_test_CXXFLAGS" = set; then
4135 CXXFLAGS=$ac_save_CXXFLAGS
4136 elif test $ac_cv_prog_cxx_g = yes; then
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-g -O2"
4139 else
4140 CXXFLAGS="-g"
4142 else
4143 if test "$GXX" = yes; then
4144 CXXFLAGS="-O2"
4145 else
4146 CXXFLAGS=
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 DEPDIR="${am__leading_dot}deps"
4156 ac_config_commands="$ac_config_commands depfiles"
4159 am_make=${MAKE-make}
4160 cat > confinc << 'END'
4161 am__doit:
4162 @echo this is the am__doit target
4163 .PHONY: am__doit
4165 # If we don't find an include directive, just comment out the code.
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4168 am__include="#"
4169 am__quote=
4170 _am_result=none
4171 # First try GNU make style include.
4172 echo "include confinc" > confmf
4173 # Ignore all kinds of additional output from `make'.
4174 case `$am_make -s -f confmf 2> /dev/null` in #(
4175 *the\ am__doit\ target*)
4176 am__include=include
4177 am__quote=
4178 _am_result=GNU
4180 esac
4181 # Now try BSD make style include.
4182 if test "$am__include" = "#"; then
4183 echo '.include "confinc"' > confmf
4184 case `$am_make -s -f confmf 2> /dev/null` in #(
4185 *the\ am__doit\ target*)
4186 am__include=.include
4187 am__quote="\""
4188 _am_result=BSD
4190 esac
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195 $as_echo "$_am_result" >&6; }
4196 rm -f confinc confmf
4198 # Check whether --enable-dependency-tracking was given.
4199 if test "${enable_dependency_tracking+set}" = set; then :
4200 enableval=$enable_dependency_tracking;
4203 if test "x$enable_dependency_tracking" != xno; then
4204 am_depcomp="$ac_aux_dir/depcomp"
4205 AMDEPBACKSLASH='\'
4207 if test "x$enable_dependency_tracking" != xno; then
4208 AMDEP_TRUE=
4209 AMDEP_FALSE='#'
4210 else
4211 AMDEP_TRUE='#'
4212 AMDEP_FALSE=
4217 depcc="$CXX" am_compiler_list=
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named `D' -- because `-MD' means `put the output
4229 # in D'.
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4243 am_cv_CXX_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264 # Solaris 8's {/usr,}/bin/sh.
4265 touch sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle `-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4280 nosideeffect)
4281 # after this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4289 msvisualcpp | msvcmsys)
4290 # This compiler won't grok `-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CXX_dependencies_compiler_type=$depmode
4317 break
4320 done
4322 cd ..
4323 rm -rf conftest.dir
4324 else
4325 am_cv_CXX_dependencies_compiler_type=none
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4331 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCXX_TRUE=
4337 am__fastdepCXX_FALSE='#'
4338 else
4339 am__fastdepCXX_TRUE='#'
4340 am__fastdepCXX_FALSE=
4344 ac_ext=cpp
4345 ac_cpp='$CXXCPP $CPPFLAGS'
4346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4350 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4351 if test -z "$CXXCPP"; then
4352 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 # Double quotes because CXXCPP needs to be expanded
4356 for CXXCPP in "$CXX -E" "/lib/cpp"
4358 ac_preproc_ok=false
4359 for ac_cxx_preproc_warn_flag in '' yes
4361 # Use a header file that comes with gcc, so configuring glibc
4362 # with a fresh cross-compiler works.
4363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4364 # <limits.h> exists even on freestanding compilers.
4365 # On the NeXT, cc -E runs the code through the compiler's parser,
4366 # not just through cpp. "Syntax error" is here to catch this case.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #ifdef __STDC__
4370 # include <limits.h>
4371 #else
4372 # include <assert.h>
4373 #endif
4374 Syntax error
4375 _ACEOF
4376 if ac_fn_cxx_try_cpp "$LINENO"; then :
4378 else
4379 # Broken: fails on valid input.
4380 continue
4382 rm -f conftest.err conftest.$ac_ext
4384 # OK, works on sane cases. Now check whether nonexistent headers
4385 # can be detected and how.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if ac_fn_cxx_try_cpp "$LINENO"; then :
4391 # Broken: success on invalid input.
4392 continue
4393 else
4394 # Passes both tests.
4395 ac_preproc_ok=:
4396 break
4398 rm -f conftest.err conftest.$ac_ext
4400 done
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then :
4404 break
4407 done
4408 ac_cv_prog_CXXCPP=$CXXCPP
4411 CXXCPP=$ac_cv_prog_CXXCPP
4412 else
4413 ac_cv_prog_CXXCPP=$CXXCPP
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4416 $as_echo "$CXXCPP" >&6; }
4417 ac_preproc_ok=false
4418 for ac_cxx_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #ifdef __STDC__
4429 # include <limits.h>
4430 #else
4431 # include <assert.h>
4432 #endif
4433 Syntax error
4434 _ACEOF
4435 if ac_fn_cxx_try_cpp "$LINENO"; then :
4437 else
4438 # Broken: fails on valid input.
4439 continue
4441 rm -f conftest.err conftest.$ac_ext
4443 # OK, works on sane cases. Now check whether nonexistent headers
4444 # can be detected and how.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <ac_nonexistent.h>
4448 _ACEOF
4449 if ac_fn_cxx_try_cpp "$LINENO"; then :
4450 # Broken: success on invalid input.
4451 continue
4452 else
4453 # Passes both tests.
4454 ac_preproc_ok=:
4455 break
4457 rm -f conftest.err conftest.$ac_ext
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then :
4464 else
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4468 See \`config.log' for more details." "$LINENO" 5; }
4471 ac_ext=c
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_CC+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 CC=$ac_cv_prog_CC
4511 if test -n "$CC"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513 $as_echo "$CC" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4521 if test -z "$ac_cv_prog_CC"; then
4522 ac_ct_CC=$CC
4523 # Extract the first word of "gcc", so it can be a program name with args.
4524 set dummy gcc; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$ac_ct_CC"; then
4531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_ac_ct_CC="gcc"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4551 if test -n "$ac_ct_CC"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4553 $as_echo "$ac_ct_CC" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4559 if test "x$ac_ct_CC" = x; then
4560 CC=""
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 CC=$ac_ct_CC
4570 else
4571 CC="$ac_cv_prog_CC"
4574 if test -z "$CC"; then
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}cc; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CC="${ac_tool_prefix}cc"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4615 if test -z "$CC"; then
4616 # Extract the first word of "cc", so it can be a program name with args.
4617 set dummy cc; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 ac_prog_rejected=no
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4635 ac_prog_rejected=yes
4636 continue
4638 ac_cv_prog_CC="cc"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4646 if test $ac_prog_rejected = yes; then
4647 # We found a bogon in the path, so make sure we never use it.
4648 set dummy $ac_cv_prog_CC
4649 shift
4650 if test $# != 0; then
4651 # We chose a different compiler from the bogus one.
4652 # However, it has the same basename, so the bogon will be chosen
4653 # first if we set CC to just the basename; use the full file name.
4654 shift
4655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$CC"; then
4672 if test -n "$ac_tool_prefix"; then
4673 for ac_prog in cl.exe
4675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_CC+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$CC"; then
4683 ac_cv_prog_CC="$CC" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4696 done
4697 done
4698 IFS=$as_save_IFS
4702 CC=$ac_cv_prog_CC
4703 if test -n "$CC"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4705 $as_echo "$CC" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4712 test -n "$CC" && break
4713 done
4715 if test -z "$CC"; then
4716 ac_ct_CC=$CC
4717 for ac_prog in cl.exe
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$ac_ct_CC"; then
4727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_ac_ct_CC="$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4747 if test -n "$ac_ct_CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4749 $as_echo "$ac_ct_CC" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$ac_ct_CC" && break
4757 done
4759 if test "x$ac_ct_CC" = x; then
4760 CC=""
4761 else
4762 case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768 CC=$ac_ct_CC
4775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 as_fn_error "no acceptable C compiler found in \$PATH
4778 See \`config.log' for more details." "$LINENO" 5; }
4780 # Provide some information about the compiler.
4781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4782 set X $ac_compile
4783 ac_compiler=$2
4784 for ac_option in --version -v -V -qversion; do
4785 { { ac_try="$ac_compiler $ac_option >&5"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 $as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4793 ac_status=$?
4794 if test -s conftest.err; then
4795 sed '10a\
4796 ... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
4800 rm -f conftest.er1 conftest.err
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4803 done
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4807 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4814 main ()
4816 #ifndef __GNUC__
4817 choke me
4818 #endif
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_compiler_gnu=yes
4826 else
4827 ac_compiler_gnu=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4835 if test $ac_compiler_gnu = yes; then
4836 GCC=yes
4837 else
4838 GCC=
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 ac_save_c_werror_flag=$ac_c_werror_flag
4848 ac_c_werror_flag=yes
4849 ac_cv_prog_cc_g=no
4850 CFLAGS="-g"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4855 main ()
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_prog_cc_g=yes
4864 else
4865 CFLAGS=""
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4870 main ()
4874 return 0;
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4879 else
4880 ac_c_werror_flag=$ac_save_c_werror_flag
4881 CFLAGS="-g"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4886 main ()
4890 return 0;
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_prog_cc_g=yes
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 ac_c_werror_flag=$ac_save_c_werror_flag
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4904 $as_echo "$ac_cv_prog_cc_g" >&6; }
4905 if test "$ac_test_CFLAGS" = set; then
4906 CFLAGS=$ac_save_CFLAGS
4907 elif test $ac_cv_prog_cc_g = yes; then
4908 if test "$GCC" = yes; then
4909 CFLAGS="-g -O2"
4910 else
4911 CFLAGS="-g"
4913 else
4914 if test "$GCC" = yes; then
4915 CFLAGS="-O2"
4916 else
4917 CFLAGS=
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4922 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_cv_prog_cc_c89=no
4926 ac_save_CC=$CC
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #include <stdarg.h>
4930 #include <stdio.h>
4931 #include <sys/types.h>
4932 #include <sys/stat.h>
4933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4934 struct buf { int x; };
4935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4936 static char *e (p, i)
4937 char **p;
4938 int i;
4940 return p[i];
4942 static char *f (char * (*g) (char **, int), char **p, ...)
4944 char *s;
4945 va_list v;
4946 va_start (v,p);
4947 s = g (p, va_arg (v,int));
4948 va_end (v);
4949 return s;
4952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4953 function prototypes and stuff, but not '\xHH' hex character constants.
4954 These don't provoke an error unfortunately, instead are silently treated
4955 as 'x'. The following induces an error, until -std is added to get
4956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4957 array size at least. It's necessary to write '\x00'==0 to get something
4958 that's true only with -std. */
4959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4962 inside strings and character constants. */
4963 #define FOO(x) 'x'
4964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4966 int test (int i, double x);
4967 struct s1 {int (*f) (int a);};
4968 struct s2 {int (*f) (double a);};
4969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4970 int argc;
4971 char **argv;
4973 main ()
4975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4977 return 0;
4979 _ACEOF
4980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4983 CC="$ac_save_CC $ac_arg"
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_prog_cc_c89=$ac_arg
4987 rm -f core conftest.err conftest.$ac_objext
4988 test "x$ac_cv_prog_cc_c89" != "xno" && break
4989 done
4990 rm -f conftest.$ac_ext
4991 CC=$ac_save_CC
4994 # AC_CACHE_VAL
4995 case "x$ac_cv_prog_cc_c89" in
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4998 $as_echo "none needed" >&6; } ;;
4999 xno)
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5001 $as_echo "unsupported" >&6; } ;;
5003 CC="$CC $ac_cv_prog_cc_c89"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5006 esac
5007 if test "x$ac_cv_prog_cc_c89" != xno; then :
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 depcc="$CC" am_compiler_list=
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5020 $as_echo_n "checking dependency style of $depcc... " >&6; }
5021 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5025 # We make a subdir and do the tests there. Otherwise we can end up
5026 # making bogus files that we don't know about and never remove. For
5027 # instance it was reported that on HP-UX the gcc test will end up
5028 # making a dummy file named `D' -- because `-MD' means `put the output
5029 # in D'.
5030 mkdir conftest.dir
5031 # Copy depcomp to subdir because otherwise we won't find it if we're
5032 # using a relative directory.
5033 cp "$am_depcomp" conftest.dir
5034 cd conftest.dir
5035 # We will build objects and dependencies in a subdirectory because
5036 # it helps to detect inapplicable dependency modes. For instance
5037 # both Tru64's cc and ICC support -MD to output dependencies as a
5038 # side effect of compilation, but ICC will put the dependencies in
5039 # the current directory while Tru64 will put them in the object
5040 # directory.
5041 mkdir sub
5043 am_cv_CC_dependencies_compiler_type=none
5044 if test "$am_compiler_list" = ""; then
5045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5047 am__universal=false
5048 case " $depcc " in #(
5049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5050 esac
5052 for depmode in $am_compiler_list; do
5053 # Setup a source with many dependencies, because some compilers
5054 # like to wrap large dependency lists on column 80 (with \), and
5055 # we should not choose a depcomp mode which is confused by this.
5057 # We need to recreate these files for each test, as the compiler may
5058 # overwrite some of them when testing with obscure command lines.
5059 # This happens at least with the AIX C compiler.
5060 : > sub/conftest.c
5061 for i in 1 2 3 4 5 6; do
5062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5064 # Solaris 8's {/usr,}/bin/sh.
5065 touch sub/conftst$i.h
5066 done
5067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5070 # mode. It turns out that the SunPro C++ compiler does not properly
5071 # handle `-M -o', and we need to detect this. Also, some Intel
5072 # versions had trouble with output in subdirs
5073 am__obj=sub/conftest.${OBJEXT-o}
5074 am__minus_obj="-o $am__obj"
5075 case $depmode in
5076 gcc)
5077 # This depmode causes a compiler race in universal mode.
5078 test "$am__universal" = false || continue
5080 nosideeffect)
5081 # after this tag, mechanisms are not by side-effect, so they'll
5082 # only be used when explicitly requested
5083 if test "x$enable_dependency_tracking" = xyes; then
5084 continue
5085 else
5086 break
5089 msvisualcpp | msvcmsys)
5090 # This compiler won't grok `-c -o', but also, the minuso test has
5091 # not run yet. These depmodes are late enough in the game, and
5092 # so weak that their functioning should not be impacted.
5093 am__obj=conftest.${OBJEXT-o}
5094 am__minus_obj=
5096 none) break ;;
5097 esac
5098 if depmode=$depmode \
5099 source=sub/conftest.c object=$am__obj \
5100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5102 >/dev/null 2>conftest.err &&
5103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5107 # icc doesn't choke on unknown options, it will just issue warnings
5108 # or remarks (even with -Werror). So we grep stderr for any message
5109 # that says an option was ignored or not supported.
5110 # When given -MP, icc 7.0 and 7.1 complain thusly:
5111 # icc: Command line warning: ignoring option '-M'; no argument required
5112 # The diagnosis changed in icc 8.0:
5113 # icc: Command line remark: option '-MP' not supported
5114 if (grep 'ignoring option' conftest.err ||
5115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5116 am_cv_CC_dependencies_compiler_type=$depmode
5117 break
5120 done
5122 cd ..
5123 rm -rf conftest.dir
5124 else
5125 am_cv_CC_dependencies_compiler_type=none
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5134 test "x$enable_dependency_tracking" != xno \
5135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5136 am__fastdepCC_TRUE=
5137 am__fastdepCC_FALSE='#'
5138 else
5139 am__fastdepCC_TRUE='#'
5140 am__fastdepCC_FALSE=
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5151 # On Suns, sometimes $CPP names a directory.
5152 if test -n "$CPP" && test -d "$CPP"; then
5153 CPP=
5155 if test -z "$CPP"; then
5156 if test "${ac_cv_prog_CPP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 # Double quotes because CPP needs to be expanded
5160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5162 ac_preproc_ok=false
5163 for ac_c_preproc_warn_flag in '' yes
5165 # Use a header file that comes with gcc, so configuring glibc
5166 # with a fresh cross-compiler works.
5167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168 # <limits.h> exists even on freestanding compilers.
5169 # On the NeXT, cc -E runs the code through the compiler's parser,
5170 # not just through cpp. "Syntax error" is here to catch this case.
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #ifdef __STDC__
5174 # include <limits.h>
5175 #else
5176 # include <assert.h>
5177 #endif
5178 Syntax error
5179 _ACEOF
5180 if ac_fn_c_try_cpp "$LINENO"; then :
5182 else
5183 # Broken: fails on valid input.
5184 continue
5186 rm -f conftest.err conftest.$ac_ext
5188 # OK, works on sane cases. Now check whether nonexistent headers
5189 # can be detected and how.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if ac_fn_c_try_cpp "$LINENO"; then :
5195 # Broken: success on invalid input.
5196 continue
5197 else
5198 # Passes both tests.
5199 ac_preproc_ok=:
5200 break
5202 rm -f conftest.err conftest.$ac_ext
5204 done
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then :
5208 break
5211 done
5212 ac_cv_prog_CPP=$CPP
5215 CPP=$ac_cv_prog_CPP
5216 else
5217 ac_cv_prog_CPP=$CPP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5220 $as_echo "$CPP" >&6; }
5221 ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237 Syntax error
5238 _ACEOF
5239 if ac_fn_c_try_cpp "$LINENO"; then :
5241 else
5242 # Broken: fails on valid input.
5243 continue
5245 rm -f conftest.err conftest.$ac_ext
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <ac_nonexistent.h>
5252 _ACEOF
5253 if ac_fn_c_try_cpp "$LINENO"; then :
5254 # Broken: success on invalid input.
5255 continue
5256 else
5257 # Passes both tests.
5258 ac_preproc_ok=:
5259 break
5261 rm -f conftest.err conftest.$ac_ext
5263 done
5264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5265 rm -f conftest.err conftest.$ac_ext
5266 if $ac_preproc_ok; then :
5268 else
5269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." "$LINENO" 5; }
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5281 ac_build_prefix=
5282 test -n "$build_alias" && ac_build_prefix=$build_alias-
5284 if test "$cross_compiling" = yes; then :
5286 # Even if we're cross-compiling, we want a compiler here
5287 # that is not a cross-compiler.
5288 saved_cross=$cross_compiling
5289 cross_compiling=no
5291 ac_ext=c
5292 ac_cpp='$CPP $BUILD_CPPFLAGS'
5293 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 if test -n "$ac_build_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5298 set dummy ${ac_build_prefix}gcc; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$BUILD_CC"; then
5305 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 BUILD_CC=$ac_cv_prog_BUILD_CC
5325 if test -n "$BUILD_CC"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5327 $as_echo "$BUILD_CC" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_BUILD_CC"; then
5336 ac_ct_BUILD_CC=$BUILD_CC
5337 # Extract the first word of "gcc", so it can be a program name with args.
5338 set dummy gcc; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_BUILD_CC"; then
5345 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5365 if test -n "$ac_ct_BUILD_CC"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5367 $as_echo "$ac_ct_BUILD_CC" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_BUILD_CC" = x; then
5374 BUILD_CC=""
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380 ac_tool_warned=yes ;;
5381 esac
5382 BUILD_CC=$ac_ct_BUILD_CC
5384 else
5385 BUILD_CC="$ac_cv_prog_BUILD_CC"
5388 if test -z "$BUILD_CC"; then
5389 if test -n "$ac_build_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5391 set dummy ${ac_build_prefix}cc; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$BUILD_CC"; then
5398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5417 BUILD_CC=$ac_cv_prog_BUILD_CC
5418 if test -n "$BUILD_CC"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5420 $as_echo "$BUILD_CC" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_BUILD_CC"; then
5429 ac_ct_BUILD_CC=$BUILD_CC
5430 # Extract the first word of "cc", so it can be a program name with args.
5431 set dummy cc; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$ac_ct_BUILD_CC"; then
5438 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_BUILD_CC="cc"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5458 if test -n "$ac_ct_BUILD_CC"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5460 $as_echo "$ac_ct_BUILD_CC" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_BUILD_CC" = x; then
5467 BUILD_CC=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475 BUILD_CC=$ac_ct_BUILD_CC
5477 else
5478 BUILD_CC="$ac_cv_prog_BUILD_CC"
5482 if test -z "$BUILD_CC"; then
5483 # Extract the first word of "cc", so it can be a program name with args.
5484 set dummy cc; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$BUILD_CC"; then
5491 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5492 else
5493 ac_prog_rejected=no
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5502 ac_prog_rejected=yes
5503 continue
5505 ac_cv_prog_BUILD_CC="cc"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5513 if test $ac_prog_rejected = yes; then
5514 # We found a bogon in the path, so make sure we never use it.
5515 set dummy $ac_cv_prog_BUILD_CC
5516 shift
5517 if test $# != 0; then
5518 # We chose a different compiler from the bogus one.
5519 # However, it has the same basename, so the bogon will be chosen
5520 # first if we set BUILD_CC to just the basename; use the full file name.
5521 shift
5522 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5527 BUILD_CC=$ac_cv_prog_BUILD_CC
5528 if test -n "$BUILD_CC"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5530 $as_echo "$BUILD_CC" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5538 if test -z "$BUILD_CC"; then
5539 if test -n "$ac_build_prefix"; then
5540 for ac_prog in cl
5542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5543 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$BUILD_CC"; then
5550 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 BUILD_CC=$ac_cv_prog_BUILD_CC
5570 if test -n "$BUILD_CC"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5572 $as_echo "$BUILD_CC" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5579 test -n "$BUILD_CC" && break
5580 done
5582 if test -z "$BUILD_CC"; then
5583 ac_ct_BUILD_CC=$BUILD_CC
5584 for ac_prog in cl
5586 # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$ac_ct_BUILD_CC"; then
5594 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5614 if test -n "$ac_ct_BUILD_CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5616 $as_echo "$ac_ct_BUILD_CC" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 test -n "$ac_ct_BUILD_CC" && break
5624 done
5626 if test "x$ac_ct_BUILD_CC" = x; then
5627 BUILD_CC=""
5628 else
5629 case $cross_compiling:$ac_tool_warned in
5630 yes:)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633 ac_tool_warned=yes ;;
5634 esac
5635 BUILD_CC=$ac_ct_BUILD_CC
5642 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 as_fn_error "no acceptable C compiler found in \$PATH
5645 See \`config.log' for more details." "$LINENO" 5; }
5647 # Provide some information about the compiler.
5648 echo "$as_me:$LINENO:" \
5649 "checking for C compiler version" >&5
5650 ac_compiler=`set X $ac_compile; echo $2`
5651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5652 (eval $ac_compiler --version </dev/null >&5) 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }
5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5657 (eval $ac_compiler -v </dev/null >&5) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }
5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5662 (eval $ac_compiler -V </dev/null >&5) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5671 main ()
5675 return 0;
5677 _ACEOF
5678 ac_clean_files_save=$ac_clean_files
5679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5680 # Try to create an executable without -o first, disregard a.out.
5681 # It will help us diagnose broken compilers, and finding out an intuition
5682 # of exeext.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5684 $as_echo_n "checking whether the C compiler works... " >&6; }
5685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5687 # The possible output files:
5688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5690 ac_rmfiles=
5691 for ac_file in $ac_files
5693 case $ac_file in
5694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5696 esac
5697 done
5698 rm -f $ac_rmfiles
5700 if { { ac_try="$ac_link_default"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_link_default") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }; then :
5711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5714 # so that the user can short-circuit this test for compilers unknown to
5715 # Autoconf.
5716 for ac_file in $ac_files ''
5718 test -f "$ac_file" || continue
5719 case $ac_file in
5720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5722 [ab].out )
5723 # We found the default executable, but exeext='' is most
5724 # certainly right.
5725 break;;
5726 *.* )
5727 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5728 then :; else
5729 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5731 # We set ac_cv_exeext here because the later test for it is not
5732 # safe: cross compilers may not add the suffix if given an `-o'
5733 # argument, so we may need to know it at that point already.
5734 # Even if this section looks crufty: it has the advantage of
5735 # actually working.
5736 break;;
5738 break;;
5739 esac
5740 done
5741 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5743 else
5744 ac_file=''
5746 if test -z "$ac_file"; then :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5754 { as_fn_set_status 77
5755 as_fn_error "C compiler cannot create executables
5756 See \`config.log' for more details." "$LINENO" 5; }; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5762 $as_echo_n "checking for C compiler default output file name... " >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5764 $as_echo "$ac_file" >&6; }
5765 ac_build_exeext=$ac_cv_build_exeext
5767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5768 ac_clean_files=$ac_clean_files_save
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5770 $as_echo_n "checking for suffix of executables... " >&6; }
5771 if { { ac_try="$ac_link"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$ac_link") 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then :
5782 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5783 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5784 # work properly (i.e., refer to `conftest.exe'), while it won't with
5785 # `rm'.
5786 for ac_file in conftest.exe conftest conftest.*; do
5787 test -f "$ac_file" || continue
5788 case $ac_file in
5789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5790 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5791 break;;
5792 * ) break;;
5793 esac
5794 done
5795 else
5796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5798 as_fn_error "cannot compute suffix of executables: cannot compile and link
5799 See \`config.log' for more details." "$LINENO" 5; }
5801 rm -f conftest conftest$ac_cv_build_exeext
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5803 $as_echo "$ac_cv_build_exeext" >&6; }
5805 rm -f conftest.$ac_ext
5806 BUILD_EXEEXT=$ac_cv_build_exeext
5807 ac_build_exeext=$BUILD_EXEEXT
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <stdio.h>
5812 main ()
5814 FILE *f = fopen ("conftest.out", "w");
5815 return ferror (f) || fclose (f) != 0;
5818 return 0;
5820 _ACEOF
5821 ac_clean_files="$ac_clean_files conftest.out"
5822 # Check that the compiler produces executables we can run. If not, either
5823 # the compiler is broken, or we cross compile.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5825 $as_echo_n "checking whether we are cross compiling... " >&6; }
5826 if test "$cross_compiling" != yes; then
5827 { { ac_try="$ac_link"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5833 $as_echo "$ac_try_echo"; } >&5
5834 (eval "$ac_link") 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; }
5838 if { ac_try='./conftest$ac_cv_build_exeext'
5839 { { case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5844 $as_echo "$ac_try_echo"; } >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5848 test $ac_status = 0; }; }; then
5849 cross_compiling=no
5850 else
5851 if test "$cross_compiling" = maybe; then
5852 cross_compiling=yes
5853 else
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 as_fn_error "cannot run C compiled programs.
5857 If you meant to cross compile, use \`--host'.
5858 See \`config.log' for more details." "$LINENO" 5; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5863 $as_echo "$cross_compiling" >&6; }
5865 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5866 ac_clean_files=$ac_clean_files_save
5869 # Restore configuration environment
5870 cross_compiling=$saved_cross
5872 ac_ext=c
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878 else
5879 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5881 CFLAGS="$mule_backup_CFLAGS"
5882 CXXFLAGS="$mule_backup_CXXFLAGS"
5883 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5884 for ac_prog in gawk mawk nawk awk
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_AWK+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$AWK"; then
5894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_AWK="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5913 AWK=$ac_cv_prog_AWK
5914 if test -n "$AWK"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5916 $as_echo "$AWK" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5923 test -n "$AWK" && break
5924 done
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5928 if test "${ac_cv_path_GREP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -z "$GREP"; then
5932 ac_path_GREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in grep ggrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5943 # Check for GNU ac_path_GREP and select it if it is found.
5944 # Check for GNU $ac_path_GREP
5945 case `"$ac_path_GREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'GREP' >> "conftest.nl"
5957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_GREP="$ac_path_GREP"
5963 ac_path_GREP_max=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5971 $ac_path_GREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_GREP"; then
5977 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 else
5980 ac_cv_path_GREP=$GREP
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5985 $as_echo "$ac_cv_path_GREP" >&6; }
5986 GREP="$ac_cv_path_GREP"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5990 $as_echo_n "checking for egrep... " >&6; }
5991 if test "${ac_cv_path_EGREP+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5995 then ac_cv_path_EGREP="$GREP -E"
5996 else
5997 if test -z "$EGREP"; then
5998 ac_path_EGREP_found=false
5999 # Loop through the user's path and test for each of PROGNAME-LIST
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_prog in egrep; do
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6008 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6009 # Check for GNU ac_path_EGREP and select it if it is found.
6010 # Check for GNU $ac_path_EGREP
6011 case `"$ac_path_EGREP" --version 2>&1` in
6012 *GNU*)
6013 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6015 ac_count=0
6016 $as_echo_n 0123456789 >"conftest.in"
6017 while :
6019 cat "conftest.in" "conftest.in" >"conftest.tmp"
6020 mv "conftest.tmp" "conftest.in"
6021 cp "conftest.in" "conftest.nl"
6022 $as_echo 'EGREP' >> "conftest.nl"
6023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6025 as_fn_arith $ac_count + 1 && ac_count=$as_val
6026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6027 # Best one so far, save it but keep looking for a better one
6028 ac_cv_path_EGREP="$ac_path_EGREP"
6029 ac_path_EGREP_max=$ac_count
6031 # 10*(2^10) chars as input seems more than enough
6032 test $ac_count -gt 10 && break
6033 done
6034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 esac
6037 $ac_path_EGREP_found && break 3
6038 done
6039 done
6040 done
6041 IFS=$as_save_IFS
6042 if test -z "$ac_cv_path_EGREP"; then
6043 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045 else
6046 ac_cv_path_EGREP=$EGREP
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053 EGREP="$ac_cv_path_EGREP"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6058 set x ${MAKE-make}
6059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6060 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat >conftest.make <<\_ACEOF
6064 SHELL = /bin/sh
6065 all:
6066 @echo '@@@%%%=$(MAKE)=@@@%%%'
6067 _ACEOF
6068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6070 *@@@%%%=?*=@@@%%%*)
6071 eval ac_cv_prog_make_${ac_make}_set=yes;;
6073 eval ac_cv_prog_make_${ac_make}_set=no;;
6074 esac
6075 rm -f conftest.make
6077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079 $as_echo "yes" >&6; }
6080 SET_MAKE=
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 SET_MAKE="MAKE=${MAKE-make}"
6088 for ac_prog in flex lex
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_LEX+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$LEX"; then
6098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_LEX="$ac_prog"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6111 done
6112 done
6113 IFS=$as_save_IFS
6117 LEX=$ac_cv_prog_LEX
6118 if test -n "$LEX"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6120 $as_echo "$LEX" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6127 test -n "$LEX" && break
6128 done
6129 test -n "$LEX" || LEX=":"
6131 if test "x$LEX" != "x:"; then
6132 cat >conftest.l <<_ACEOF
6134 a { ECHO; }
6135 b { REJECT; }
6136 c { yymore (); }
6137 d { yyless (1); }
6138 e { yyless (input () != 0); }
6139 f { unput (yytext[0]); }
6140 . { BEGIN INITIAL; }
6142 #ifdef YYTEXT_POINTER
6143 extern char *yytext;
6144 #endif
6146 main (void)
6148 return ! yylex () + ! yywrap ();
6150 _ACEOF
6151 { { ac_try="$LEX conftest.l"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6157 $as_echo "$ac_try_echo"; } >&5
6158 (eval "$LEX conftest.l") 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6163 $as_echo_n "checking lex output file root... " >&6; }
6164 if test "${ac_cv_prog_lex_root+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6168 if test -f lex.yy.c; then
6169 ac_cv_prog_lex_root=lex.yy
6170 elif test -f lexyy.c; then
6171 ac_cv_prog_lex_root=lexyy
6172 else
6173 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6177 $as_echo "$ac_cv_prog_lex_root" >&6; }
6178 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6180 if test -z "${LEXLIB+set}"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6182 $as_echo_n "checking lex library... " >&6; }
6183 if test "${ac_cv_lib_lex+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6187 ac_save_LIBS=$LIBS
6188 ac_cv_lib_lex='none needed'
6189 for ac_lib in '' -lfl -ll; do
6190 LIBS="$ac_lib $ac_save_LIBS"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 `cat $LEX_OUTPUT_ROOT.c`
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 ac_cv_lib_lex=$ac_lib
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 test "$ac_cv_lib_lex" != 'none needed' && break
6201 done
6202 LIBS=$ac_save_LIBS
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6206 $as_echo "$ac_cv_lib_lex" >&6; }
6207 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6212 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6213 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 # POSIX says lex can declare yytext either as a pointer or an array; the
6217 # default is implementation-dependent. Figure out which it is, since
6218 # not all implementations provide the %pointer and %array declarations.
6219 ac_cv_prog_lex_yytext_pointer=no
6220 ac_save_LIBS=$LIBS
6221 LIBS="$LEXLIB $ac_save_LIBS"
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 #define YYTEXT_POINTER 1
6225 `cat $LEX_OUTPUT_ROOT.c`
6226 _ACEOF
6227 if ac_fn_c_try_link "$LINENO"; then :
6228 ac_cv_prog_lex_yytext_pointer=yes
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_save_LIBS
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6236 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6237 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6239 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6242 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$RANLIB"; then
6255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6268 done
6269 done
6270 IFS=$as_save_IFS
6274 RANLIB=$ac_cv_prog_RANLIB
6275 if test -n "$RANLIB"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6277 $as_echo "$RANLIB" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6285 if test -z "$ac_cv_prog_RANLIB"; then
6286 ac_ct_RANLIB=$RANLIB
6287 # Extract the first word of "ranlib", so it can be a program name with args.
6288 set dummy ranlib; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_RANLIB"; then
6295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_RANLIB="ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6315 if test -n "$ac_ct_RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6317 $as_echo "$ac_ct_RANLIB" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6323 if test "x$ac_ct_RANLIB" = x; then
6324 RANLIB=":"
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 RANLIB=$ac_ct_RANLIB
6334 else
6335 RANLIB="$ac_cv_prog_RANLIB"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6339 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6344 for ac_i in 1 2 3 4 5 6 7; do
6345 ac_script="$ac_script$as_nl$ac_script"
6346 done
6347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6348 { ac_script=; unset ac_script;}
6349 if test -z "$SED"; then
6350 ac_path_SED_found=false
6351 # Loop through the user's path and test for each of PROGNAME-LIST
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_prog in sed gsed; do
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6360 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6361 # Check for GNU ac_path_SED and select it if it is found.
6362 # Check for GNU $ac_path_SED
6363 case `"$ac_path_SED" --version 2>&1` in
6364 *GNU*)
6365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6367 ac_count=0
6368 $as_echo_n 0123456789 >"conftest.in"
6369 while :
6371 cat "conftest.in" "conftest.in" >"conftest.tmp"
6372 mv "conftest.tmp" "conftest.in"
6373 cp "conftest.in" "conftest.nl"
6374 $as_echo '' >> "conftest.nl"
6375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6377 as_fn_arith $ac_count + 1 && ac_count=$as_val
6378 if test $ac_count -gt ${ac_path_SED_max-0}; then
6379 # Best one so far, save it but keep looking for a better one
6380 ac_cv_path_SED="$ac_path_SED"
6381 ac_path_SED_max=$ac_count
6383 # 10*(2^10) chars as input seems more than enough
6384 test $ac_count -gt 10 && break
6385 done
6386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6387 esac
6389 $ac_path_SED_found && break 3
6390 done
6391 done
6392 done
6393 IFS=$as_save_IFS
6394 if test -z "$ac_cv_path_SED"; then
6395 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6397 else
6398 ac_cv_path_SED=$SED
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6403 $as_echo "$ac_cv_path_SED" >&6; }
6404 SED="$ac_cv_path_SED"
6405 rm -f conftest.sed
6407 for ac_prog in 'bison -y' byacc
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_YACC+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -n "$YACC"; then
6417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_YACC="$ac_prog"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6430 done
6431 done
6432 IFS=$as_save_IFS
6436 YACC=$ac_cv_prog_YACC
6437 if test -n "$YACC"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6439 $as_echo "$YACC" >&6; }
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6446 test -n "$YACC" && break
6447 done
6448 test -n "$YACC" || YACC="yacc"
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6482 $as_echo "$RANLIB" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6522 $as_echo "$ac_ct_RANLIB" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=""
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 RANLIB=$ac_ct_RANLIB
6539 else
6540 RANLIB="$ac_cv_prog_RANLIB"
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}strip; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_STRIP+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$STRIP"; then
6552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 STRIP=$ac_cv_prog_STRIP
6572 if test -n "$STRIP"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6574 $as_echo "$STRIP" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6582 if test -z "$ac_cv_prog_STRIP"; then
6583 ac_ct_STRIP=$STRIP
6584 # Extract the first word of "strip", so it can be a program name with args.
6585 set dummy strip; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$ac_ct_STRIP"; then
6592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_STRIP="strip"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6612 if test -n "$ac_ct_STRIP"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6614 $as_echo "$ac_ct_STRIP" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6620 if test "x$ac_ct_STRIP" = x; then
6621 STRIP=""
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629 STRIP=$ac_ct_STRIP
6631 else
6632 STRIP="$ac_cv_prog_STRIP"
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ar; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_AR+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$AR"; then
6644 ac_cv_prog_AR="$AR" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_AR="${ac_tool_prefix}ar"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6657 done
6658 done
6659 IFS=$as_save_IFS
6663 AR=$ac_cv_prog_AR
6664 if test -n "$AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6666 $as_echo "$AR" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6674 if test -z "$ac_cv_prog_AR"; then
6675 ac_ct_AR=$AR
6676 # Extract the first word of "ar", so it can be a program name with args.
6677 set dummy ar; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$ac_ct_AR"; then
6684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_ac_ct_AR="ar"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6699 IFS=$as_save_IFS
6703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704 if test -n "$ac_ct_AR"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706 $as_echo "$ac_ct_AR" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6712 if test "x$ac_ct_AR" = x; then
6713 AR=""
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 AR=$ac_ct_AR
6723 else
6724 AR="$ac_cv_prog_AR"
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}ld; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_LD+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$LD"; then
6736 ac_cv_prog_LD="$LD" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_LD="${ac_tool_prefix}ld"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 LD=$ac_cv_prog_LD
6756 if test -n "$LD"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6758 $as_echo "$LD" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6766 if test -z "$ac_cv_prog_LD"; then
6767 ac_ct_LD=$LD
6768 # Extract the first word of "ld", so it can be a program name with args.
6769 set dummy ld; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_LD"; then
6776 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_LD="ld"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6796 if test -n "$ac_ct_LD"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6798 $as_echo "$ac_ct_LD" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6804 if test "x$ac_ct_LD" = x; then
6805 LD=""
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813 LD=$ac_ct_LD
6815 else
6816 LD="$ac_cv_prog_LD"
6820 # Check whether --enable-monolithic was given.
6821 if test "${enable_monolithic+set}" = set; then :
6822 enableval=$enable_monolithic;
6825 if test ${enable_monolithic:-yes} = yes; then
6826 MONOLITHIC_TRUE=
6827 MONOLITHIC_FALSE='#'
6828 else
6829 MONOLITHIC_TRUE='#'
6830 MONOLITHIC_FALSE=
6834 # Check whether --enable-amule-daemon was given.
6835 if test "${enable_amule_daemon+set}" = set; then :
6836 enableval=$enable_amule_daemon;
6839 if test ${enable_amule_daemon:-no} = yes; then
6840 AMULE_DAEMON_TRUE=
6841 AMULE_DAEMON_FALSE='#'
6842 else
6843 AMULE_DAEMON_TRUE='#'
6844 AMULE_DAEMON_FALSE=
6848 # Check whether --enable-amulecmd was given.
6849 if test "${enable_amulecmd+set}" = set; then :
6850 enableval=$enable_amulecmd;
6853 if test ${enable_amulecmd:-no} = yes; then
6854 COMPILE_CMD_TRUE=
6855 COMPILE_CMD_FALSE='#'
6856 else
6857 COMPILE_CMD_TRUE='#'
6858 COMPILE_CMD_FALSE=
6862 # Check whether --enable-webserver was given.
6863 if test "${enable_webserver+set}" = set; then :
6864 enableval=$enable_webserver;
6867 if test ${enable_webserver:-no} = yes; then
6868 WEB_TRUE=
6869 WEB_FALSE='#'
6870 else
6871 WEB_TRUE='#'
6872 WEB_FALSE=
6876 # Check whether --enable-amule-gui was given.
6877 if test "${enable_amule_gui+set}" = set; then :
6878 enableval=$enable_amule_gui;
6881 if test ${enable_amule_gui:-no} = yes; then
6882 AMULE_GUI_TRUE=
6883 AMULE_GUI_FALSE='#'
6884 else
6885 AMULE_GUI_TRUE='#'
6886 AMULE_GUI_FALSE=
6890 # Check whether --enable-cas was given.
6891 if test "${enable_cas+set}" = set; then :
6892 enableval=$enable_cas;
6895 if test ${enable_cas:-no} = yes; then
6896 CAS_TRUE=
6897 CAS_FALSE='#'
6898 else
6899 CAS_TRUE='#'
6900 CAS_FALSE=
6904 # Check whether --enable-wxcas was given.
6905 if test "${enable_wxcas+set}" = set; then :
6906 enableval=$enable_wxcas;
6909 if test ${enable_wxcas:-no} = yes; then
6910 WXCAS_TRUE=
6911 WXCAS_FALSE='#'
6912 else
6913 WXCAS_TRUE='#'
6914 WXCAS_FALSE=
6918 # Check whether --enable-ed2k was given.
6919 if test "${enable_ed2k+set}" = set; then :
6920 enableval=$enable_ed2k;
6923 if test ${enable_ed2k:-yes} = yes; then
6924 ED2K_TRUE=
6925 ED2K_FALSE='#'
6926 else
6927 ED2K_TRUE='#'
6928 ED2K_FALSE=
6932 # Check whether --enable-alc was given.
6933 if test "${enable_alc+set}" = set; then :
6934 enableval=$enable_alc;
6937 if test ${enable_alc:-no} = yes; then
6938 ALC_TRUE=
6939 ALC_FALSE='#'
6940 else
6941 ALC_TRUE='#'
6942 ALC_FALSE=
6946 # Check whether --enable-alcc was given.
6947 if test "${enable_alcc+set}" = set; then :
6948 enableval=$enable_alcc;
6951 if test ${enable_alcc:-no} = yes; then
6952 ALCC_TRUE=
6953 ALCC_FALSE='#'
6954 else
6955 ALCC_TRUE='#'
6956 ALCC_FALSE=
6960 # Check whether --enable-xas was given.
6961 if test "${enable_xas+set}" = set; then :
6962 enableval=$enable_xas;
6965 if test ${enable_xas:-no} = yes; then
6966 XAS_TRUE=
6967 XAS_FALSE='#'
6968 else
6969 XAS_TRUE='#'
6970 XAS_FALSE=
6974 # Check whether --enable-fileview was given.
6975 if test "${enable_fileview+set}" = set; then :
6976 enableval=$enable_fileview;
6979 if test ${enable_fileview:-no} = yes; then
6980 FILEVIEW_TRUE=
6981 FILEVIEW_FALSE='#'
6982 else
6983 FILEVIEW_TRUE='#'
6984 FILEVIEW_FALSE=
6988 # Check whether --enable-plasmamule was given.
6989 if test "${enable_plasmamule+set}" = set; then :
6990 enableval=$enable_plasmamule;
6995 # Run all the tests with static linkage if we want a statically linked binary
6996 # Check whether --enable-static was given.
6997 if test "${enable_static+set}" = set; then :
6998 enableval=$enable_static;
7002 if test ${enable_static:-no} = yes; then :
7003 LDFLAGS="$LDFLAGS -static"
7008 # Check whether --with-kde4-config was given.
7009 if test "${with_kde4_config+set}" = set; then :
7010 withval=$with_kde4_config; KDE4_CONFIG=$withval
7011 else
7012 KDE4_CONFIG=""
7015 # Check whether --enable-kde-in-home was given.
7016 if test "${enable_kde_in_home+set}" = set; then :
7017 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7018 else
7019 KDE_IN_HOME=no
7025 # Check whether --with-moc was given.
7026 if test "${with_moc+set}" = set; then :
7027 withval=$with_moc; QT_MOC=$withval
7028 else
7029 QT_MOC=""
7034 # Default is yes, because they're most likely compatible.
7035 # However, this is only used when cross-compiling.
7037 # Check whether --with-gnu-malloc was given.
7038 if test "${with_gnu_malloc+set}" = set; then :
7039 withval=$with_gnu_malloc; gnumalloc=$withval
7040 else
7041 gnumalloc=yes
7046 # Checking for libs before all other stuff to break
7047 # configure as soon as possible in case of a missing one
7048 # to avoid losing too much time
7050 # Check for gd
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7053 $as_echo_n "checking for ANSI C header files... " >&6; }
7054 if test "${ac_cv_header_stdc+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #include <stdlib.h>
7060 #include <stdarg.h>
7061 #include <string.h>
7062 #include <float.h>
7065 main ()
7069 return 0;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"; then :
7073 ac_cv_header_stdc=yes
7074 else
7075 ac_cv_header_stdc=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 if test $ac_cv_header_stdc = yes; then
7080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <string.h>
7085 _ACEOF
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 $EGREP "memchr" >/dev/null 2>&1; then :
7089 else
7090 ac_cv_header_stdc=no
7092 rm -f conftest*
7096 if test $ac_cv_header_stdc = yes; then
7097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <stdlib.h>
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "free" >/dev/null 2>&1; then :
7106 else
7107 ac_cv_header_stdc=no
7109 rm -f conftest*
7113 if test $ac_cv_header_stdc = yes; then
7114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7115 if test "$cross_compiling" = yes; then :
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <ctype.h>
7121 #include <stdlib.h>
7122 #if ((' ' & 0x0FF) == 0x020)
7123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125 #else
7126 # define ISLOWER(c) \
7127 (('a' <= (c) && (c) <= 'i') \
7128 || ('j' <= (c) && (c) <= 'r') \
7129 || ('s' <= (c) && (c) <= 'z'))
7130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7131 #endif
7133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135 main ()
7137 int i;
7138 for (i = 0; i < 256; i++)
7139 if (XOR (islower (i), ISLOWER (i))
7140 || toupper (i) != TOUPPER (i))
7141 return 2;
7142 return 0;
7144 _ACEOF
7145 if ac_fn_c_try_run "$LINENO"; then :
7147 else
7148 ac_cv_header_stdc=no
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7157 $as_echo "$ac_cv_header_stdc" >&6; }
7158 if test $ac_cv_header_stdc = yes; then
7160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7166 inttypes.h stdint.h unistd.h
7167 do :
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7171 eval as_val=\$$as_ac_Header
7172 if test "x$as_val" = x""yes; then :
7173 cat >>confdefs.h <<_ACEOF
7174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 _ACEOF
7179 done
7182 if test ${enable_cas:-no} = yes; then :
7186 # Check whether --with-gdlib-prefix was given.
7187 if test "${with_gdlib_prefix+set}" = set; then :
7188 withval=$with_gdlib_prefix;
7192 # Check whether --with-gdlib-config was given.
7193 if test "${with_gdlib_config+set}" = set; then :
7194 withval=$with_gdlib_config;
7198 GDLIB_VERSION=
7200 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7201 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7202 GDLIB_CONFIG_NAME=gdlib-config
7204 if test -n "$with_gdlib_config"; then :
7205 GDLIB_CONFIG_NAME="$with_gdlib_config"
7208 # deal with optional prefix
7209 if test -n "$with_gdlib_prefix"; then :
7210 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7213 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7214 if test -x "$GDLIB_CONFIG_NAME"; then :
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7217 $as_echo_n "checking for gdlib-config... " >&6; }
7218 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7220 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7222 else
7223 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7224 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 case $GDLIB_CONFIG_PATH in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7237 for as_dir in $as_dummy
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7251 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7253 esac
7255 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7256 if test -n "$GDLIB_CONFIG_PATH"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7258 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7267 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7270 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7271 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7273 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7274 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7275 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7276 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7278 gdlib_ver_ok=
7279 if test $gdlib_config_major_version -gt 2; then
7280 gdlib_ver_ok=yes
7281 elif test $gdlib_config_major_version -eq 2; then
7283 if test $gdlib_config_minor_version -gt 0; then
7284 gdlib_ver_ok=yes
7285 elif test $gdlib_config_minor_version -eq 0; then
7286 if test $gdlib_config_micro_version -ge 0; then
7287 gdlib_ver_ok=yes
7296 if test -z "$gdlib_ver_ok"; then :
7298 if test -z "$GDLIB_VERSION"; then :
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7304 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7305 GDLIB_VERSION=
7309 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7312 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7313 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7314 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7315 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7316 mule_backup_CFLAGS="$CFLAGS"
7317 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7318 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7319 if test "x$ac_cv_header_gd_h" = x""yes; then :
7321 else
7322 GDLIB_VERSION=
7326 CFLAGS="$mule_backup_CFLAGS"
7332 if test -n "$GDLIB_VERSION"; then :
7334 CAS_DEFS="-D__GD__"
7335 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7337 else
7338 CAS_DEFS=
7343 if test -z "$CAS_DEFS"; then :
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7346 Please check that gdlib-config is in your default path, check out
7347 LD_LIBRARY_PATH or equivalent variable.
7348 Or this might also be that your gdlib-config has other name.
7349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7350 (replace /usr/bin/gdlib-config with a valid path to your
7351 gdlib-config).
7352 If you use compiled packages check if you have devel pack installed.
7353 To download the latest version check http://www.boutell.com/gd for
7354 sources." >&5
7355 $as_echo "$as_me: WARNING:
7356 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7357 Please check that gdlib-config is in your default path, check out
7358 LD_LIBRARY_PATH or equivalent variable.
7359 Or this might also be that your gdlib-config has other name.
7360 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7361 (replace /usr/bin/gdlib-config with a valid path to your
7362 gdlib-config).
7363 If you use compiled packages check if you have devel pack installed.
7364 To download the latest version check http://www.boutell.com/gd for
7365 sources." >&2;}
7366 _mule_warning_0=yes
7367 _mule_has_warnings=yes
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7374 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7375 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7381 #include <stdbool.h>
7382 #ifndef bool
7383 "error: bool is not defined"
7384 #endif
7385 #ifndef false
7386 "error: false is not defined"
7387 #endif
7388 #if false
7389 "error: false is not 0"
7390 #endif
7391 #ifndef true
7392 "error: true is not defined"
7393 #endif
7394 #if true != 1
7395 "error: true is not 1"
7396 #endif
7397 #ifndef __bool_true_false_are_defined
7398 "error: __bool_true_false_are_defined is not defined"
7399 #endif
7401 struct s { _Bool s: 1; _Bool t; } s;
7403 char a[true == 1 ? 1 : -1];
7404 char b[false == 0 ? 1 : -1];
7405 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7406 char d[(bool) 0.5 == true ? 1 : -1];
7407 bool e = &s;
7408 char f[(_Bool) 0.0 == false ? 1 : -1];
7409 char g[true];
7410 char h[sizeof (_Bool)];
7411 char i[sizeof s.t];
7412 enum { j = false, k = true, l = false * true, m = true * 256 };
7413 /* The following fails for
7414 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7415 _Bool n[m];
7416 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7417 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7418 # if defined __xlc__ || defined __GNUC__
7419 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7420 reported by James Lemley on 2005-10-05; see
7421 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7422 This test is not quite right, since xlc is allowed to
7423 reject this program, as the initializer for xlcbug is
7424 not one of the forms that C requires support for.
7425 However, doing the test right would require a runtime
7426 test, and that would make cross-compilation harder.
7427 Let us hope that IBM fixes the xlc bug, and also adds
7428 support for this kind of constant expression. In the
7429 meantime, this test will reject xlc, which is OK, since
7430 our stdbool.h substitute should suffice. We also test
7431 this with GCC, where it should work, to detect more
7432 quickly whether someone messes up the test in the
7433 future. */
7434 char digs[] = "0123456789";
7435 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7436 # endif
7437 /* Catch a bug in an HP-UX C compiler. See
7438 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7439 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7441 _Bool q = true;
7442 _Bool *pq = &q;
7445 main ()
7448 *pq |= q;
7449 *pq |= ! q;
7450 /* Refer to every declared value, to avoid compiler optimizations. */
7451 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7452 + !m + !n + !o + !p + !q + !pq);
7455 return 0;
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459 ac_cv_header_stdbool_h=yes
7460 else
7461 ac_cv_header_stdbool_h=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7466 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7467 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7468 if test "x$ac_cv_type__Bool" = x""yes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE__BOOL 1
7472 _ACEOF
7477 if test $ac_cv_header_stdbool_h = yes; then
7479 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7484 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7485 if test "${ac_cv_c_const+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7492 main ()
7494 /* FIXME: Include the comments suggested by Paul. */
7495 #ifndef __cplusplus
7496 /* Ultrix mips cc rejects this. */
7497 typedef int charset[2];
7498 const charset cs;
7499 /* SunOS 4.1.1 cc rejects this. */
7500 char const *const *pcpcc;
7501 char **ppc;
7502 /* NEC SVR4.0.2 mips cc rejects this. */
7503 struct point {int x, y;};
7504 static struct point const zero = {0,0};
7505 /* AIX XL C 1.02.0.0 rejects this.
7506 It does not let you subtract one const X* pointer from another in
7507 an arm of an if-expression whose if-part is not a constant
7508 expression */
7509 const char *g = "string";
7510 pcpcc = &g + (g ? g-g : 0);
7511 /* HPUX 7.0 cc rejects these. */
7512 ++pcpcc;
7513 ppc = (char**) pcpcc;
7514 pcpcc = (char const *const *) ppc;
7515 { /* SCO 3.2v4 cc rejects this. */
7516 char *t;
7517 char const *s = 0 ? (char *) 0 : (char const *) 0;
7519 *t++ = 0;
7520 if (s) return 0;
7522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7523 int x[] = {25, 17};
7524 const int *foo = &x[0];
7525 ++foo;
7527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7528 typedef const int *iptr;
7529 iptr p = 0;
7530 ++p;
7532 { /* AIX XL C 1.02.0.0 rejects this saying
7533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7534 struct s { int j; const int *ap[3]; };
7535 struct s *b; b->j = 5;
7537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7538 const int foo = 10;
7539 if (!foo) return 0;
7541 return !cs[0] && !zero.x;
7542 #endif
7545 return 0;
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"; then :
7549 ac_cv_c_const=yes
7550 else
7551 ac_cv_c_const=no
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7556 $as_echo "$ac_cv_c_const" >&6; }
7557 if test $ac_cv_c_const = no; then
7559 $as_echo "#define const /**/" >>confdefs.h
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7564 $as_echo_n "checking for inline... " >&6; }
7565 if test "${ac_cv_c_inline+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 ac_cv_c_inline=no
7569 for ac_kw in inline __inline__ __inline; do
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #ifndef __cplusplus
7573 typedef int foo_t;
7574 static $ac_kw foo_t static_foo () {return 0; }
7575 $ac_kw foo_t foo () {return 0; }
7576 #endif
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 ac_cv_c_inline=$ac_kw
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 test "$ac_cv_c_inline" != no && break
7584 done
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7588 $as_echo "$ac_cv_c_inline" >&6; }
7590 case $ac_cv_c_inline in
7591 inline | yes) ;;
7593 case $ac_cv_c_inline in
7594 no) ac_val=;;
7595 *) ac_val=$ac_cv_c_inline;;
7596 esac
7597 cat >>confdefs.h <<_ACEOF
7598 #ifndef __cplusplus
7599 #define inline $ac_val
7600 #endif
7601 _ACEOF
7603 esac
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7606 $as_echo_n "checking for working volatile... " >&6; }
7607 if test "${ac_cv_c_volatile+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7614 main ()
7617 volatile int x;
7618 int * volatile y = (int *) 0;
7619 return !x && !y;
7621 return 0;
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625 ac_cv_c_volatile=yes
7626 else
7627 ac_cv_c_volatile=no
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7632 $as_echo "$ac_cv_c_volatile" >&6; }
7633 if test $ac_cv_c_volatile = no; then
7635 $as_echo "#define volatile /**/" >>confdefs.h
7640 ac_ext=cpp
7641 ac_cpp='$CXXCPP $CPPFLAGS'
7642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7648 # Check for zlib
7650 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 :
7653 # Check whether --with-zlib was given.
7654 if test "${with_zlib+set}" = set; then :
7655 withval=$with_zlib;
7659 case "${with_zlib:-yes}" in
7661 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7663 yes | sys)
7666 zlib_prefix="$with_zlib"
7667 esac
7669 mule_backup_CPPFLAGS="$CPPFLAGS"
7670 mule_backup_LDFLAGS="$LDFLAGS"
7671 mule_backup_LIBS="$LIBS"
7672 if test -n "$zlib_prefix"; then :
7674 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7675 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7676 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7677 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7679 else
7681 ZLIB_CPPFLAGS=
7682 ZLIB_LDFLAGS=
7685 ZLIB_LIBS="-lz"
7686 LIBS="$ZLIB_LIBS $LIBS"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7689 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7690 if test "$cross_compiling" = yes; then :
7692 result=no
7693 z_version=
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7698 #include <zlib.h>
7699 #include <stdio.h>
7702 main ()
7705 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7706 zlibVersion();
7709 return 0;
7712 _ACEOF
7713 if ac_fn_cxx_try_link "$LINENO"; then :
7715 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7716 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7717 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7718 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7719 if test "$cross_zver_max" -gt "1"; then
7720 result=yes
7721 elif test "$cross_zver_max" -eq "1"; then
7723 if test "$cross_zver_mid" -gt "1"; then
7724 result=yes
7725 elif test "$cross_zver_mid" -eq "1"; then
7726 if test "$cross_zver_min" -ge "4"; then
7727 result=yes
7735 if test ${result:-no} = yes; then :
7736 z_version=" (version $ZLIB_VERSION)"
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7743 $as_echo "$result$z_version" >&6; }
7745 else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7750 #include <zlib.h>
7751 #include <stdio.h>
7754 main ()
7756 const char *zver = zlibVersion();
7757 FILE *f=fopen("conftestval", "w");
7758 if (!f) return 1;
7759 fprintf(f, "%s",
7760 zver[0] > '1' ||
7761 (zver[0] == '1' &&
7762 (zver[2] > '1' ||
7763 (zver[2] == '1' &&
7764 zver[4] >= '4'))) ? "yes" : "no");
7765 fclose(f);
7766 f=fopen("conftestver", "w");
7767 if (f) {
7768 fprintf(f, "%s", ZLIB_VERSION);
7769 fclose(f);
7773 return 0;
7776 _ACEOF
7777 if ac_fn_cxx_try_run "$LINENO"; then :
7779 if test -f conftestval; then :
7780 result=`cat conftestval`
7781 else
7782 result=no
7784 if test ${result:-no} = yes; then :
7786 if test -f conftestver; then :
7788 ZLIB_VERSION=`cat conftestver`
7789 z_version=" (version $ZLIB_VERSION)"
7791 else
7792 z_version=
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7797 $as_echo "$result$z_version" >&6; }
7799 else
7801 result=no
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7803 $as_echo "$result" >&6; }
7806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7807 conftest.$ac_objext conftest.beam conftest.$ac_ext
7811 CPPFLAGS="$mule_backup_CPPFLAGS"
7812 LDFLAGS="$mule_backup_LDFLAGS"
7813 LIBS="$mule_backup_LIBS"
7815 if test ${result:-no} = no; then :
7817 ZLIB_CPPFLAGS=
7818 ZLIB_LDFLAGS=
7819 ZLIB_LIBS=
7820 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7828 # Check for libpng
7829 if test ${enable_webserver:-no} = yes; then :
7832 # Check whether --with-libpng-prefix was given.
7833 if test "${with_libpng_prefix+set}" = set; then :
7834 withval=$with_libpng_prefix;
7838 # Check whether --with-libpng-config was given.
7839 if test "${with_libpng_config+set}" = set; then :
7840 withval=$with_libpng_config;
7844 LIBPNG_VERSION=
7846 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7847 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7848 LIBPNG_CONFIG_NAME=libpng-config
7850 if test -n "$with_libpng_config"; then :
7851 LIBPNG_CONFIG_NAME="$with_libpng_config"
7854 # deal with optional prefix
7855 if test -n "$with_libpng_prefix"; then :
7856 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7859 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7860 if test -x "$LIBPNG_CONFIG_NAME"; then :
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7863 $as_echo_n "checking for libpng-config... " >&6; }
7864 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7866 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7868 else
7869 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7870 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 case $LIBPNG_CONFIG_PATH in
7877 [\\/]* | ?:[\\/]*)
7878 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7883 for as_dir in $as_dummy
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7895 IFS=$as_save_IFS
7897 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7899 esac
7901 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7902 if test -n "$LIBPNG_CONFIG_PATH"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7904 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7913 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7916 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7918 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7920 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7921 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7922 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7923 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7925 libpng_ver_ok=
7926 if test $libpng_config_major_version -gt 1; then
7927 libpng_ver_ok=yes
7928 elif test $libpng_config_major_version -eq 1; then
7930 if test $libpng_config_minor_version -gt 2; then
7931 libpng_ver_ok=yes
7932 elif test $libpng_config_minor_version -eq 2; then
7933 if test $libpng_config_micro_version -ge 0; then
7934 libpng_ver_ok=yes
7943 if test -z "$libpng_ver_ok"; then :
7945 if test -z "$LIBPNG_VERSION"; then :
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7951 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7952 LIBPNG_VERSION=
7956 else
7958 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7959 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7960 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7962 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7965 $as_echo_n "checking if libpng is usable... " >&6; }
7967 SAVED_CFLAGS=$CFLAGS
7968 SAVED_LDFLAGS=$LDFLAGS
7969 SAVED_LIBS=$LIBS
7971 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7972 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7973 LIBS="$LIBS $LIBPNG_LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7979 #include <png.h>
7980 #include <stdio.h>
7983 main ()
7986 png_uint_32 libpng_vn = png_access_version_number();
7987 printf("\nlibpng version %i\n\n", libpng_vn);
7990 return 0;
7993 _ACEOF
7994 if ac_fn_cxx_try_link "$LINENO"; then :
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7999 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8002 $as_echo "no (failed to compile and link test program)" >&6; }
8003 LIBPNG_LIBS=
8004 LIBPNG_LDFLAGS=
8005 LIBPNG_CFLAGS=
8006 LIBPNG_VERSION=
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8012 CFLAGS=$SAVED_CFLAGS
8013 LDFLAGS=$SAVED_LDFLAGS
8014 LIBS=$SAVED_LIBS
8020 if test -n "$LIBPNG_VERSION"; then :
8021 AMULEWEB_DEFS="-DWITH_LIBPNG"
8022 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8025 libpng >= 1.2.0 not found.
8026 amuleweb will be compiled but file download progress bar images will
8027 NOT be generated." >&5
8028 $as_echo "$as_me: WARNING:
8029 libpng >= 1.2.0 not found.
8030 amuleweb will be compiled but file download progress bar images will
8031 NOT be generated." >&2;}
8032 _mule_warning_1=yes
8033 _mule_has_warnings=yes
8044 # Check for perl File::Copy
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8046 $as_echo_n "checking for File::Copy... " >&6; }
8047 if perl -e "require File::Copy" 2>/dev/null; then :
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8049 $as_echo "ok" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8052 File::Copy perl module is required by the mldonkey_importer script.
8053 If you want to use this script please install File::Copy from CPAN." >&5
8054 $as_echo "$as_me: WARNING:
8055 File::Copy perl module is required by the mldonkey_importer script.
8056 If you want to use this script please install File::Copy from CPAN." >&2;}
8057 _mule_warning_2=yes
8058 _mule_has_warnings=yes
8063 # Check for GeoIP (required for IP2Country capability)
8065 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8067 # Check whether --enable-geoip was given.
8068 if test "${enable_geoip+set}" = set; then :
8069 enableval=$enable_geoip;
8074 if test ${enable_geoip:-no} = yes; then :
8077 # Check whether --with-geoip-headers was given.
8078 if test "${with_geoip_headers+set}" = set; then :
8079 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8083 # Check whether --with-geoip-lib was given.
8084 if test "${with_geoip_lib+set}" = set; then :
8085 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8089 mule_backup_CPPFLAGS="$CPPFLAGS"
8090 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8091 mule_backup_LDFLAGS="$LDFLAGS"
8092 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8094 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8095 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8097 if test x$SYS = xwin32; then :
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8100 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8101 # Actually, we might not need any if GeoIP is linked as a .dll
8102 # - but that's even harder to check for
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8107 #include <GeoIP.h>
8108 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8109 I do know it's not the best approach, but at least works with MinGW stock headers.
8110 (tested with w32api-3.12)
8111 #endif
8114 main ()
8118 return 0;
8121 _ACEOF
8122 if ac_fn_cxx_try_compile "$LINENO"; then :
8124 GEOIP_WINSOCK_LIB="-lwsock32"
8126 else
8128 GEOIP_WINSOCK_LIB="-lws2_32"
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8133 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8137 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8138 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char GeoIP_open ();
8154 main ()
8156 return GeoIP_open ();
8158 return 0;
8160 _ACEOF
8161 if ac_fn_cxx_try_link "$LINENO"; then :
8162 ac_cv_lib_GeoIP_GeoIP_open=yes
8163 else
8164 ac_cv_lib_GeoIP_GeoIP_open=no
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8171 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8172 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8175 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8177 GEOIP_LIBS="-lGeoIP"
8178 if test x$SYS = xwin32; then :
8179 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8181 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8183 # Check whether --with-geoip-static was given.
8184 if test "${with_geoip_static+set}" = set; then :
8185 withval=$with_geoip_static;
8186 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8188 mule_backup_LIBS="$LIBS"
8189 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8194 #include <GeoIP.h>
8197 main ()
8200 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8203 return 0;
8206 _ACEOF
8207 if ac_fn_cxx_try_link "$LINENO"; then :
8209 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8211 else
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8214 Cannot link GeoIP statically, because your linker ($LD) does not
8215 support it." >&5
8216 $as_echo "$as_me: WARNING:
8217 Cannot link GeoIP statically, because your linker ($LD) does not
8218 support it." >&2;}
8219 _mule_warning_3=yes
8220 _mule_has_warnings=yes
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 LIBS="$mule_backup_LIBS"
8233 else
8235 enable_geoip=disabled
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8237 GeoIP support has been disabled because the GeoIP libraries were not
8238 found" >&5
8239 $as_echo "$as_me: WARNING:
8240 GeoIP support has been disabled because the GeoIP libraries were not
8241 found" >&2;}
8242 _mule_warning_4=yes
8243 _mule_has_warnings=yes
8249 else
8251 enable_geoip=disabled
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8253 GeoIP support has been disabled because the GeoIP header files were
8254 not found" >&5
8255 $as_echo "$as_me: WARNING:
8256 GeoIP support has been disabled because the GeoIP header files were
8257 not found" >&2;}
8258 _mule_warning_5=yes
8259 _mule_has_warnings=yes
8266 CPPFLAGS="$mule_backup_CPPFLAGS"
8267 LDFLAGS="$mule_backup_LDFLAGS"
8274 # Check for wx
8275 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 :
8278 # Check whether --with-wxdir was given.
8279 if test "${with_wxdir+set}" = set; then :
8280 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8281 wx_config_args="--inplace"
8285 # Check whether --with-wx-config was given.
8286 if test "${with_wx_config+set}" = set; then :
8287 withval=$with_wx_config; wx_config_name="$withval"
8291 # Check whether --with-wx-prefix was given.
8292 if test "${with_wx_prefix+set}" = set; then :
8293 withval=$with_wx_prefix; wx_config_prefix="$withval"
8294 else
8295 wx_config_prefix=""
8299 # Check whether --with-wx-exec-prefix was given.
8300 if test "${with_wx_exec_prefix+set}" = set; then :
8301 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8302 else
8303 wx_config_exec_prefix=""
8318 # Check whether --with-toolkit was given.
8319 if test "${with_toolkit+set}" = set; then :
8320 withval=$with_toolkit;
8321 else
8322 withval="auto"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8327 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8328 if test "$withval" = "auto" ; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8330 $as_echo "will be automatically detected" >&6; }
8331 TOOLKIT="auto"
8332 else
8333 TOOLKIT="$withval"
8335 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
8336 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8337 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
8338 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
8339 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
8340 "$TOOLKIT" != "osx_cocoa"; then
8341 as_fn_error "
8342 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
8343 " "$LINENO" 5
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8347 $as_echo "$TOOLKIT" >&6; }
8354 # Check whether --with-wxshared was given.
8355 if test "${with_wxshared+set}" = set; then :
8356 withval=$with_wxshared;
8357 else
8358 withval="auto"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8363 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8364 if test "$withval" = "yes" ; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8366 $as_echo "yes" >&6; }
8367 WX_SHARED=1
8369 elif test "1" = "1" -a "$withval" = "no" ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 WX_SHARED=0
8373 elif test "$withval" = "auto" ; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8375 $as_echo "will be automatically detected" >&6; }
8376 WX_SHARED="auto"
8377 else
8378 as_fn_error "
8379 Unrecognized option value (allowed values: yes, auto)
8380 " "$LINENO" 5
8387 # Check whether --with-wxdebug was given.
8388 if test "${with_wxdebug+set}" = set; then :
8389 withval=$with_wxdebug;
8390 else
8391 withval="auto"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8396 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8397 if test "$withval" = "yes" ; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8399 $as_echo "yes" >&6; }
8400 WX_DEBUG=1
8402 elif test "1" = "1" -a "$withval" = "no" ; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 WX_DEBUG=0
8406 elif test "$withval" = "auto" ; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8408 $as_echo "will be automatically detected" >&6; }
8409 WX_DEBUG="auto"
8410 else
8411 as_fn_error "
8412 Unrecognized option value (allowed values: yes, auto)
8413 " "$LINENO" 5
8420 # Check whether --with-wxversion was given.
8421 if test "${with_wxversion+set}" = set; then :
8422 withval=$with_wxversion;
8423 else
8424 withval="auto"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8429 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8430 if test "$withval" = "auto" ; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8432 $as_echo "will be automatically detected" >&6; }
8433 WX_VERSION="auto"
8434 else
8436 wx_requested_major_version=`echo $withval | \
8437 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8438 wx_requested_minor_version=`echo $withval | \
8439 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8441 if test "${#wx_requested_major_version}" != "1" -o \
8442 "${#wx_requested_minor_version}" != "1" ; then
8443 as_fn_error "
8444 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8445 " "$LINENO" 5
8448 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8450 $as_echo "$WX_VERSION" >&6; }
8454 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8455 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8456 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8457 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8458 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8459 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8462 # Force using a static wxWidgets library if the executable is to be linked statically.
8463 if test ${enable_static:-no} = yes; then :
8464 WX_SHARED=0
8466 # Force using a unicode build of the library
8467 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 :
8468 WX_UNICODE=1
8470 DEBUG=$WX_DEBUG
8472 if test "$WX_SHARED" = "1" ; then
8473 WXCONFIG_FLAGS="--static=no "
8474 elif test "$WX_SHARED" = "0" ; then
8475 WXCONFIG_FLAGS="--static=yes "
8478 if test "$WX_DEBUG" = "1" ; then
8479 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8480 elif test "$WX_DEBUG" = "0" ; then
8481 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8484 if test "$WX_UNICODE" = "1" ; then
8485 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8486 elif test "$WX_UNICODE" = "0" ; then
8487 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8490 if test "$TOOLKIT" != "auto" ; then
8491 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8494 if test "$WX_VERSION" != "auto" ; then
8495 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8498 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8500 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8501 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8505 if test x${WX_CONFIG_NAME+set} != xset ; then
8506 WX_CONFIG_NAME=wx-config
8509 if test "x$wx_config_name" != x ; then
8510 WX_CONFIG_NAME="$wx_config_name"
8513 if test x$wx_config_exec_prefix != x ; then
8514 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8515 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8517 if test x$wx_config_prefix != x ; then
8518 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8519 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8521 if test "$cross_compiling" = "yes"; then
8522 wx_config_args="$wx_config_args --host=$host_alias"
8525 if test -x "$WX_CONFIG_NAME" ; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8527 $as_echo_n "checking for wx-config... " >&6; }
8528 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8530 $as_echo "$WX_CONFIG_PATH" >&6; }
8531 else
8532 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8533 set dummy $WX_CONFIG_NAME; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 case $WX_CONFIG_PATH in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8546 for as_dir in $as_dummy
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8560 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8562 esac
8564 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8565 if test -n "$WX_CONFIG_PATH"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8567 $as_echo "$WX_CONFIG_PATH" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8576 if test "$WX_CONFIG_PATH" != "no" ; then
8577 WX_VERSION_FULL=""
8579 min_wx_version=2.8.12
8580 if test -z "$WXCONFIG_FLAGS" ; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8582 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8585 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8588 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8590 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8591 wx_config_major_version=`echo $WX_VERSION_FULL | \
8592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8593 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8595 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8598 wx_requested_major_version=`echo $min_wx_version | \
8599 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8600 wx_requested_minor_version=`echo $min_wx_version | \
8601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8602 wx_requested_micro_version=`echo $min_wx_version | \
8603 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8606 wx_ver_ok=""
8607 if test "x$WX_VERSION_FULL" != x ; then
8608 if test $wx_config_major_version -gt $wx_requested_major_version; then
8609 wx_ver_ok=yes
8610 else
8611 if test $wx_config_major_version -eq $wx_requested_major_version; then
8612 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8613 wx_ver_ok=yes
8614 else
8615 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8616 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8617 wx_ver_ok=yes
8626 if test -n "$wx_ver_ok"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8629 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8630 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8632 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8634 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8635 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8636 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8638 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8639 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8641 wxWin=1
8643 else
8645 if test "x$WX_VERSION_FULL" = x; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8650 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8653 WX_CFLAGS=""
8654 WX_CPPFLAGS=""
8655 WX_CXXFLAGS=""
8656 WX_LIBS=""
8657 WX_RESCOMP=""
8659 if test ! -z "$WXCONFIG_FLAGS"; then
8661 wx_error_message="
8662 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8663 build with the following settings:
8664 $WXCONFIG_FLAGS
8665 but such build is not available.
8667 To see the wxWidgets builds available on this system, please use
8668 'wx-config --list' command. To use the default build, returned by
8669 'wx-config --selected-config', use the options with their 'auto'
8670 default values."
8674 wx_error_message="
8675 The requested wxWidgets build couldn't be found.
8676 $wx_error_message
8678 If you still get this error, then check that 'wx-config' is
8679 in path, the directory where wxWidgets libraries are installed
8680 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8681 or equivalent variable and wxWidgets version is 2.8.12 or above."
8683 as_fn_error "$wx_error_message" "$LINENO" 5
8686 else
8688 WX_CFLAGS=""
8689 WX_CPPFLAGS=""
8690 WX_CXXFLAGS=""
8691 WX_LIBS=""
8692 WX_RESCOMP=""
8707 WX_VERSION_MAJOR="$wx_config_major_version"
8708 WX_VERSION_MINOR="$wx_config_minor_version"
8712 if test "$wxWin" != 1; then :
8713 as_fn_error "
8714 wxWidgets must be installed on your system but wx-config
8715 script couldn't be found. Please check that wx-config is
8716 in path or specified by --with-wx-config=path flag, the
8717 directory where wxWidgets libraries are installed (returned
8718 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8719 equivalent variable and wxWidgets version is 2.8.12 or above.
8720 " "$LINENO" 5
8723 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8724 as_fn_error "
8725 This version of wxWidgets is known to not work with aMule.
8726 Please upgrade to a newer version.
8727 " "$LINENO" 5
8731 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8733 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8735 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8736 echo "[dbg] Using wx-config --selected-config"
8737 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8741 if test $WX_SHARED = "1"; then
8742 STATIC=0
8743 elif test $WX_SHARED = "0"; then
8744 STATIC=1
8745 elif test $WX_SHARED = "auto"; then
8746 STATIC="auto"
8750 if test "$UNICODE" = "auto" ; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8753 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8755 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8757 if test "$WX_UNICODE" != "0"; then
8758 WX_UNICODE=1
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8760 $as_echo "yes" >&6; }
8762 else
8763 WX_UNICODE=0
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8768 else
8770 WX_UNICODE=$UNICODE
8774 if test "$DEBUG" = "auto" ; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8777 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8779 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8781 if test "$WX_DEBUG" != "0"; then
8782 WX_DEBUG=1
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8784 $as_echo "yes" >&6; }
8786 else
8787 WX_DEBUG=0
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8792 else
8794 WX_DEBUG=$DEBUG
8798 if test "$STATIC" = "auto" ; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8801 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8803 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8805 if test "$WX_STATIC" != "0"; then
8806 WX_STATIC=1
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8810 else
8811 WX_STATIC=0
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8816 else
8818 WX_STATIC=$STATIC
8822 if test "$WX_STATIC" != "0"; then
8823 WX_SHARED=0
8824 else
8825 WX_SHARED=1
8832 if test "$TOOLKIT" = "auto" ; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8835 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8837 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8838 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8839 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8840 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8841 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8842 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8843 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8844 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8845 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8846 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8847 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8849 WX_PORT="unknown"
8850 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8851 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8852 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8853 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8854 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8855 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8856 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8857 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8858 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8859 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8860 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8863 if test "$WX_PORT" = "unknown" ; then
8864 as_fn_error "
8865 Cannot detect the currently installed wxWidgets port !
8866 Please check your 'wx-config --cxxflags'...
8867 " "$LINENO" 5
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8871 $as_echo "$WX_PORT" >&6; }
8872 else
8874 if test -n "$TOOLKIT" ; then
8875 WX_PORT=$TOOLKIT
8876 else
8877 WX_PORT=$PORT
8883 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8884 echo "[dbg] Values of all WX_* options after final detection:"
8885 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8886 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8887 echo "[dbg] WX_SHARED: $WX_SHARED"
8888 echo "[dbg] WX_VERSION: $WX_VERSION"
8889 echo "[dbg] WX_PORT: $WX_PORT"
8892 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8893 as_fn_error "
8894 Cannot build shared library against a static build of wxWidgets !
8895 This error happens because the wxWidgets build which was selected
8896 has been detected as static while you asked to build $PACKAGE_NAME
8897 as shared library and this is not possible.
8898 Use the '--disable-shared' option to build $PACKAGE_NAME
8899 as static library or '--with-wxshared' to use wxWidgets as shared library.
8900 " "$LINENO" 5
8903 if test "$DEBUG" = "auto"; then
8904 DEBUG=$WX_DEBUG
8906 if test "$DEBUG" = "1"; then
8907 BUILD="debug"
8908 elif test "$DEBUG" = ""; then
8909 BUILD="release"
8912 if test "$UNICODE" = "auto"; then
8913 UNICODE=$WX_UNICODE
8915 if test "$SHARED" = "auto"; then
8916 SHARED=$WX_SHARED
8918 if test "$TOOLKIT" = "auto"; then
8919 TOOLKIT=$WX_PORT
8923 # We also need wxBase
8924 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8925 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8926 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8928 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8932 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8933 if test "${WX_PORT}" = base; then :
8934 as_fn_error "
8935 The selected components need a wxWidgets library with GUI,
8936 but your installation is base-only. Please install a GUI
8937 enabled version of wxWidgets and then retry.
8938 " "$LINENO" 5
8944 if test ${SYS:-unknown} = win32; then :
8945 if test -n "$ac_tool_prefix"; then
8946 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}windres; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_prog_RC+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 if test -n "$RC"; then
8954 ac_cv_prog_RC="$RC" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_RC="${ac_tool_prefix}windres"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8973 RC=$ac_cv_prog_RC
8974 if test -n "$RC"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8976 $as_echo "$RC" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8984 if test -z "$ac_cv_prog_RC"; then
8985 ac_ct_RC=$RC
8986 # Extract the first word of "windres", so it can be a program name with args.
8987 set dummy windres; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$ac_ct_RC"; then
8994 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_ac_ct_RC="windres"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9014 if test -n "$ac_ct_RC"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9016 $as_echo "$ac_ct_RC" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9022 if test "x$ac_ct_RC" = x; then
9023 RC=":"
9024 else
9025 case $cross_compiling:$ac_tool_warned in
9026 yes:)
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9030 esac
9031 RC=$ac_ct_RC
9033 else
9034 RC="$ac_cv_prog_RC"
9040 # Check for libupnp
9041 # Check whether --enable-upnp was given.
9042 if test "${enable_upnp+set}" = set; then :
9043 enableval=$enable_upnp;
9047 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9049 else
9050 enable_upnp=no
9054 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9055 if test -n "$ac_tool_prefix"; then
9056 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9057 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 case $PKG_CONFIG in
9064 [\\/]* | ?:[\\/]*)
9065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9079 done
9080 done
9081 IFS=$as_save_IFS
9084 esac
9086 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9087 if test -n "$PKG_CONFIG"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9089 $as_echo "$PKG_CONFIG" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9097 if test -z "$ac_cv_path_PKG_CONFIG"; then
9098 ac_pt_PKG_CONFIG=$PKG_CONFIG
9099 # Extract the first word of "pkg-config", so it can be a program name with args.
9100 set dummy pkg-config; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 case $ac_pt_PKG_CONFIG in
9107 [\\/]* | ?:[\\/]*)
9108 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9122 done
9123 done
9124 IFS=$as_save_IFS
9127 esac
9129 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9130 if test -n "$ac_pt_PKG_CONFIG"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9132 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9138 if test "x$ac_pt_PKG_CONFIG" = x; then
9139 PKG_CONFIG=""
9140 else
9141 case $cross_compiling:$ac_tool_warned in
9142 yes:)
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9146 esac
9147 PKG_CONFIG=$ac_pt_PKG_CONFIG
9149 else
9150 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9154 if test -n "$PKG_CONFIG"; then
9155 _pkg_min_version=0.9.0
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9157 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9158 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 $as_echo "yes" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164 PKG_CONFIG=""
9168 if test ${enable_upnp:-yes} = yes; then :
9172 # Check whether --with-libupnp-prefix was given.
9173 if test "${with_libupnp_prefix+set}" = set; then :
9174 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9178 if test $cross_compiling = no; then :
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9181 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9182 if test -n "$PKG_CONFIG"; then :
9184 if $PKG_CONFIG libupnp --exists; then :
9186 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9187 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9189 result=yes
9190 resultstr=" (version $LIBUPNP_VERSION)"
9191 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9192 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9193 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9194 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9195 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9197 else
9199 result=no
9200 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9204 else
9206 result=no
9207 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9211 else
9213 result=no
9214 resultstr=" (pkg-config not found)"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9218 $as_echo "$result$resultstr" >&6; }
9219 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9221 else
9223 result=no
9224 libupnp_error="cross compiling"
9228 if test ${result:-no} = yes; then :
9229 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9230 else
9231 enable_upnp=disabled
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9233 UPnP code has been disabled because ${libupnp_error}." >&5
9234 $as_echo "$as_me: WARNING:
9235 UPnP code has been disabled because ${libupnp_error}." >&2;}
9236 _mule_warning_6=yes
9237 _mule_has_warnings=yes
9246 # Check for Crypto++
9247 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9250 # Check whether --with-crypto-prefix was given.
9251 if test "${with_crypto_prefix+set}" = set; then :
9252 withval=$with_crypto_prefix;
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9257 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9259 cryptopp_file_with_version="cryptlib.h"
9261 CRYPTOPP_STYLE="unknown"
9262 CRYPTOPP_LIB_NAME="unknown"
9263 cryptopp_includedir="unknown"
9264 CRYPTOPP_INCLUDE_PREFIX="unknown"
9265 cryptopp_libdir="unknown"
9267 if test -n "$with_crypto_prefix"; then :
9269 CRYPTOPP_PREFIX="$with_crypto_prefix"
9270 # Find the Cryptopp header in the user-provided location
9271 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9273 CRYPTOPP_STYLE="sources"
9274 CRYPTOPP_LIB_NAME="cryptopp"
9275 cryptopp_includedir=
9276 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9277 cryptopp_libdir=
9279 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9281 CRYPTOPP_STYLE="installed"
9282 CRYPTOPP_LIB_NAME="cryptopp"
9283 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9284 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9285 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9287 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9289 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9290 CRYPTOPP_STYLE="gentoo_debian"
9291 CRYPTOPP_LIB_NAME="crypto++"
9292 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9293 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9294 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9299 else
9301 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
9302 # Find the Cryptopp header in system locations
9303 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9305 CRYPTOPP_STYLE="sources"
9306 CRYPTOPP_LIB_NAME="cryptopp"
9307 cryptopp_includedir=
9308 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9309 cryptopp_libdir=
9310 break
9312 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9314 CRYPTOPP_STYLE="installed"
9315 CRYPTOPP_LIB_NAME="cryptopp"
9316 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9317 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9318 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9319 break
9321 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9323 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9324 CRYPTOPP_STYLE="gentoo_debian"
9325 CRYPTOPP_LIB_NAME="crypto++"
9326 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9327 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9328 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9329 break
9333 done
9337 if test $CRYPTOPP_STYLE = "unknown"; then :
9338 result=no; resultstr=""
9339 else
9341 # Find out the crypto++ version and check against the minimum required
9342 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
9343 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9344 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9345 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9347 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9349 result=yes
9350 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
9351 if test -n "$cryptopp_includedir"; then :
9352 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
9353 else
9354 CRYPTOPP_CPPFLAGS=
9356 if test -n "$cryptopp_libdir"; then :
9358 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
9359 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9361 else
9363 CRYPTOPP_LDFLAGS=
9364 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9368 cat >>confdefs.h <<_ACEOF
9369 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9370 _ACEOF
9373 else
9375 result=no
9376 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9383 $as_echo "$result$resultstr" >&6; }
9385 if test ${result:-no} = yes; then :
9387 # Check for CryptoPP >= 5.5
9388 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9389 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9392 else
9394 as_fn_error "
9395 Could not find crypto++ header file \"$cryptopp_file_with_version\".
9396 Please try again with --with-crypto-prefix=/my_crypto_prefix
9397 (replace /my_crypto_prefix with a valid path to your crypto++
9398 installation directory)." "$LINENO" 5
9407 # Check whether --enable-debug was given.
9408 if test "${enable_debug+set}" = set; then :
9409 enableval=$enable_debug;
9413 # Check whether --enable-profile was given.
9414 if test "${enable_profile+set}" = set; then :
9415 enableval=$enable_profile;
9419 # Check whether --enable-optimize was given.
9420 if test "${enable_optimize+set}" = set; then :
9421 enableval=$enable_optimize;
9426 if test ${enable_debug:-yes} = yes; then :
9428 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9430 MULECFLAGS="$MULECFLAGS -g"
9431 MULECXXFLAGS="$MULECXXFLAGS -g"
9433 if test ${GCC:-no} = yes; then :
9435 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9436 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9439 if test ${SYS:-unknown} = win32; then :
9440 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9443 else
9445 if test ${GCC:-no} = yes; then :
9447 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9448 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9454 if test ${enable_profile:-no} = yes; then :
9457 MULECFLAGS="$MULECFLAGS -pg"
9458 MULECXXFLAGS="$MULECXXFLAGS -pg"
9460 MULELDFLAGS="$MULELDFLAGS -pg"
9464 if test ${enable_optimize:-no} = yes; then :
9466 MULECFLAGS="$MULECFLAGS -O2"
9467 MULECXXFLAGS="$MULECXXFLAGS -O2"
9471 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9475 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 :
9480 if test ${GCC:-no} = yes; then :
9482 mule_backup_CXXFLAGS="$CXXFLAGS"
9483 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9486 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9492 main ()
9495 int a;
9496 short *b = (short*)&a;
9497 short c = *b;
9499 return c;
9502 return 0;
9505 _ACEOF
9506 if ac_fn_cxx_try_compile "$LINENO"; then :
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9511 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9515 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 CXXFLAGS="$mule_backup_CXXFLAGS"
9525 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9527 mule_backup_CPPFLAGS="$CPPFLAGS"
9528 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9531 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9536 #include <wx/wx.h>
9537 #include <wx/filefn.h>
9538 #ifndef wxHAS_LARGE_FILES
9539 #error No LargeFile support!
9540 #endif
9543 _ACEOF
9544 if ac_fn_cxx_try_cpp "$LINENO"; then :
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9547 $as_echo "yes" >&6; }
9549 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 as_fn_error "
9554 Support for large files in wxWidgets is required by aMule.
9555 To continue you must recompile wxWidgets with support for
9556 large files enabled." "$LINENO" 5
9559 rm -f conftest.err conftest.$ac_ext
9561 CPPFLAGS="$mule_backup_CPPFLAGS"
9565 # Check if the compiler is broken, wrt. exceptions.
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9568 $as_echo_n "checking for exception-handling... " >&6; }
9569 if test "$cross_compiling" = yes; then :
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9572 $as_echo "undeterminable" >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9574 Cross-compilation detected, so exception handling cannot be tested.
9575 Note that broken exception handling in your compiler may lead to
9576 unexpected crashes." >&5
9577 $as_echo "$as_me: WARNING:
9578 Cross-compilation detected, so exception handling cannot be tested.
9579 Note that broken exception handling in your compiler may lead to
9580 unexpected crashes." >&2;}
9581 _mule_warning_7=yes
9582 _mule_has_warnings=yes
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9591 main ()
9594 try {
9595 throw 1;
9596 } catch (int) {
9597 return 0;
9599 return 1;
9602 return 0;
9605 _ACEOF
9606 if ac_fn_cxx_try_run "$LINENO"; then :
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9609 $as_echo "yes" >&6; }
9611 else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9615 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9619 conftest.$ac_objext conftest.beam conftest.$ac_ext
9625 for ac_header in typeinfo
9626 do :
9627 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9628 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_TYPEINFO 1
9631 _ACEOF
9635 done
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9638 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9643 #ifdef HAVE_TYPEINFO
9644 # include <typeinfo>
9645 #endif
9646 #include <cxxabi.h>
9649 main ()
9652 int status;
9653 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9654 std::type_info *ti = abi::__cxa_current_exception_type();
9657 return 0;
9660 _ACEOF
9661 if ac_fn_cxx_try_link "$LINENO"; then :
9664 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9667 $as_echo "yes" >&6; }
9669 else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9679 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 ; then :
9682 # Check whether --with-boost was given.
9683 if test "${with_boost+set}" = set; then :
9684 withval=$with_boost;
9685 else
9686 with_boost=no
9690 if test ${with_boost:-no} != no; then :
9692 echo "$as_me: this is boost.m4 serial 25" >&5
9693 boost_save_IFS=$IFS
9694 boost_version_req=1.47
9695 IFS=.
9696 set x $boost_version_req 0 0 0
9697 IFS=$boost_save_IFS
9698 shift
9699 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9700 boost_version_req_string=$1.$2.$3
9701 # If BOOST_ROOT is set and the user has not provided a value to
9702 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9703 if test x"$BOOST_ROOT" != x; then
9704 if test x"$with_boost" = x; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9706 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9707 with_boost=$BOOST_ROOT
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9710 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9713 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9714 boost_save_CPPFLAGS=$CPPFLAGS
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9716 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9717 if test "${boost_cv_inc_path+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 boost_cv_inc_path=no
9721 ac_ext=cpp
9722 ac_cpp='$CXXCPP $CPPFLAGS'
9723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <boost/version.hpp>
9729 #if !defined BOOST_VERSION
9730 # error BOOST_VERSION is not defined
9731 #elif BOOST_VERSION < $boost_version_req
9732 # error Boost headers version < $boost_version_req
9733 #endif
9736 main ()
9740 return 0;
9742 _ACEOF
9743 # If the user provided a value to --with-boost, use it and only it.
9744 case $with_boost in #(
9745 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9746 /usr/include C:/Boost/include;; #(
9747 *) set x "$with_boost/include" "$with_boost";;
9748 esac
9749 shift
9750 for boost_dir
9752 # Without --layout=system, Boost (or at least some versions) installs
9753 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9754 # find headers in such directories.
9756 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9757 # order followed by ${boost_dir}. The final '.' is a sentinel for
9758 # searching $boost_dir" itself. Entries are whitespace separated.
9760 # I didn't indent this loop on purpose (to avoid over-indented code)
9761 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9762 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9763 && echo .`
9764 for boost_inc in $boost_layout_system_search_list
9766 if test x"$boost_inc" != x.; then
9767 boost_inc="$boost_dir/$boost_inc"
9768 else
9769 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9771 if test x"$boost_inc" != x; then
9772 # We are going to check whether the version of Boost installed
9773 # in $boost_inc is usable by running a compilation that
9774 # #includes it. But if we pass a -I/some/path in which Boost
9775 # is not installed, the compiler will just skip this -I and
9776 # use other locations (either from CPPFLAGS, or from its list
9777 # of system include directories). As a result we would use
9778 # header installed on the machine instead of the /some/path
9779 # specified by the user. So in that precise case (trying
9780 # $boost_inc), make sure the version.hpp exists.
9782 # Use test -e as there can be symlinks.
9783 test -e "$boost_inc/boost/version.hpp" || continue
9784 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9786 if ac_fn_cxx_try_compile "$LINENO"; then :
9787 boost_cv_inc_path=yes
9788 else
9789 boost_cv_version=no
9791 rm -f core conftest.err conftest.$ac_objext
9792 if test x"$boost_cv_inc_path" = xyes; then
9793 if test x"$boost_inc" != x; then
9794 boost_cv_inc_path=$boost_inc
9796 break 2
9798 done
9799 done
9800 ac_ext=cpp
9801 ac_cpp='$CXXCPP $CPPFLAGS'
9802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9808 $as_echo "$boost_cv_inc_path" >&6; }
9809 case $boost_cv_inc_path in #(
9811 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9813 $as_echo "$as_me: $boost_errmsg" >&6;}
9814 with_boost=disabled
9815 ;;#(
9816 yes)
9817 BOOST_CPPFLAGS=
9818 ;;#(
9820 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9822 esac
9823 if test x"$boost_cv_inc_path" != xno; then
9825 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9828 $as_echo_n "checking for Boost's header version... " >&6; }
9829 if test "${boost_cv_lib_version+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 ac_ext=cpp
9833 ac_cpp='$CXXCPP $CPPFLAGS'
9834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include <boost/version.hpp>
9840 boost-lib-version = BOOST_LIB_VERSION
9841 _ACEOF
9842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9843 grep -v '#' |
9844 tr -d '\r' |
9845 tr -s '\n' ' ' |
9846 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9847 boost_cv_lib_version=`cat conftest.i`
9849 rm -rf conftest*
9850 ac_ext=cpp
9851 ac_cpp='$CXXCPP $CPPFLAGS'
9852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9858 $as_echo "$boost_cv_lib_version" >&6; }
9859 # e.g. "134" for 1_34_1 or "135" for 1_35
9860 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9861 case $boost_major_version in #(
9862 '' | *[!0-9]*)
9863 as_fn_error "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9865 esac
9867 CPPFLAGS=$boost_save_CPPFLAGS
9869 if test ${with_boost:-no} != disabled; then :
9871 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9872 for cc_temp in $compiler""; do
9873 case $cc_temp in
9874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9876 \-*) ;;
9877 *) break;;
9878 esac
9879 done
9880 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9881 # All known linkers require a `.a' archive for static linking (except MSVC,
9882 # which needs '.lib').
9883 libext=a
9884 case $cc_basename in
9885 cl*) libext=lib ;;
9886 esac
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9889 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9890 if test "${boost_cv_lib_tag+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 boost_cv_lib_tag=unknown
9894 if test x$boost_cv_inc_path != xno; then
9895 ac_ext=cpp
9896 ac_cpp='$CXXCPP $CPPFLAGS'
9897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9900 # The following tests are mostly inspired by boost/config/auto_link.hpp
9901 # The list is sorted to most recent/common to oldest compiler (in order
9902 # to increase the likelihood of finding the right compiler with the
9903 # least number of compilation attempt).
9904 # Beware that some tests are sensible to the order (for instance, we must
9905 # look for MinGW before looking for GCC3).
9906 # I used one compilation test per compiler with a #error to recognize
9907 # each compiler so that it works even when cross-compiling (let me know
9908 # if you know a better approach).
9909 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9910 # como, edg, kcc, bck, mp, sw, tru, xlc
9911 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
9912 # the same defines as GCC's).
9913 for i in \
9914 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
9915 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9916 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
9917 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
9918 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
9919 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9920 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
9921 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
9922 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
9923 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9924 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
9925 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
9926 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
9927 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9928 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
9929 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
9930 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
9931 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9932 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
9933 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
9934 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
9935 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9936 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
9937 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
9938 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
9939 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9940 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
9941 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
9942 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
9943 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9944 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
9945 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9946 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
9947 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9948 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
9949 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9950 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
9951 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9952 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
9953 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9954 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
9955 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9956 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
9957 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9958 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
9959 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9960 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
9961 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9962 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
9963 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9964 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
9965 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9966 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
9967 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9968 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
9969 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9970 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9971 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9972 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9973 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9974 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9975 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9976 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9977 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9978 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9979 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9980 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9981 "defined __BORLANDC__ @ bcb" \
9982 "defined __ICC && (defined __unix || defined ) @ il" \
9983 "defined __ICL @ iw" \
9984 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9985 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9986 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9987 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9988 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9989 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9991 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
9992 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9996 #if $boost_tag_test
9997 /* OK */
9998 #else
9999 # error $boost_tag_test
10000 #endif
10003 main ()
10007 return 0;
10009 _ACEOF
10010 if ac_fn_cxx_try_compile "$LINENO"; then :
10011 boost_cv_lib_tag=$boost_tag; break
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 done
10015 ac_ext=cpp
10016 ac_cpp='$CXXCPP $CPPFLAGS'
10017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10020 case $boost_cv_lib_tag in #(
10021 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10022 # to "gcc41" for instance.
10023 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10024 gcc*)
10025 boost_tag_x=
10026 case $host_os in #(
10027 darwin*)
10028 if test $boost_major_version -ge 136; then
10029 # The `x' added in r46793 of Boost.
10030 boost_tag_x=x
10031 fi;;
10032 esac
10033 # We can specify multiple tags in this variable because it's used by
10034 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10035 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10036 ;; #(
10037 unknown)
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10039 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10040 boost_cv_lib_tag=
10042 esac
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10046 $as_echo "$boost_cv_lib_tag" >&6; }
10047 # Check whether --enable-static-boost was given.
10048 if test "${enable_static_boost+set}" = set; then :
10049 enableval=$enable_static_boost; enable_static_boost=yes
10050 else
10051 enable_static_boost=no
10054 # Check whether we do better use `mt' even though we weren't ask to.
10055 ac_ext=cpp
10056 ac_cpp='$CXXCPP $CPPFLAGS'
10057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10063 #if defined _REENTRANT || defined _MT || defined __MT__
10064 /* use -mt */
10065 #else
10066 # error MT not needed
10067 #endif
10070 main ()
10074 return 0;
10076 _ACEOF
10077 if ac_fn_cxx_try_compile "$LINENO"; then :
10078 boost_guess_use_mt=:
10079 else
10080 boost_guess_use_mt=false
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 ac_ext=cpp
10084 ac_cpp='$CXXCPP $CPPFLAGS'
10085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10090 $as_echo_n "checking for Boost sources... " >&6; }
10091 mule_backup_CPPFLAGS="$CPPFLAGS"
10092 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10096 #include <boost/../libs/system/src/error_code.cpp>
10098 main ()
10102 return 0;
10105 _ACEOF
10106 if ac_fn_cxx_try_compile "$LINENO"; then :
10109 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10112 $as_echo "yes" >&6; }
10114 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 if test x"$boost_cv_inc_path" = xno; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10120 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10121 else
10122 ac_ext=cpp
10123 ac_cpp='$CXXCPP $CPPFLAGS'
10124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10127 if test x"$boost_cv_inc_path" = xno; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10129 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10130 else
10131 ac_ext=cpp
10132 ac_cpp='$CXXCPP $CPPFLAGS'
10133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10136 boost_save_CPPFLAGS=$CPPFLAGS
10137 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10138 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10139 if test "x$ac_cv_header_boost_system_error_code_hpp" = x""yes; then :
10141 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10143 else
10144 as_fn_error "cannot find boost/system/error_code.hpp" "$LINENO" 5
10148 CPPFLAGS=$boost_save_CPPFLAGS
10149 ac_ext=cpp
10150 ac_cpp='$CXXCPP $CPPFLAGS'
10151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10156 boost_save_CPPFLAGS=$CPPFLAGS
10157 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10159 $as_echo_n "checking for the Boost system library... " >&6; }
10160 if test "${boost_cv_lib_system+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 boost_cv_lib_system=no
10164 case "mt" in #(
10165 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10166 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10167 (*) boost_mt=; boost_rtopt=mt;;
10168 esac
10169 if test $enable_static_boost = yes; then
10170 boost_rtopt="s$boost_rtopt"
10172 # Find the proper debug variant depending on what we've been asked to find.
10173 case $boost_rtopt in #(
10174 (*d*) boost_rt_d=$boost_rtopt;; #(
10175 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10176 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10177 (*) boost_rt_d='-d';;
10178 esac
10179 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10180 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10181 $boost_guess_use_mt && boost_mt=-mt
10182 # Look for the abs path the static archive.
10183 # $libext is computed by Libtool but let's make sure it's non empty.
10184 test -z "$libext" &&
10185 as_fn_error "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10186 boost_save_ac_objext=$ac_objext
10187 # Generate the test file.
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 #include <boost/system/error_code.hpp>
10193 main ()
10195 boost::system::error_code e; e.clear();
10197 return 0;
10199 _ACEOF
10200 if ac_fn_cxx_try_compile "$LINENO"; then :
10201 ac_objext=do_not_rm_me_plz
10202 else
10203 as_fn_error "cannot compile a test that uses Boost system" "$LINENO" 5
10205 rm -f core conftest.err conftest.$ac_objext
10206 ac_objext=$boost_save_ac_objext
10207 boost_failed_libs=
10208 # Don't bother to ident the following nested for loops, only the 2
10209 # innermost ones matter.
10210 for boost_lib_ in system; do
10211 for boost_tag_ in -$boost_cv_lib_tag ''; do
10212 for boost_ver_ in -$boost_cv_lib_version ''; do
10213 for boost_mt_ in $boost_mt -mt ''; do
10214 for boost_rtopt_ in $boost_rtopt '' -d; do
10215 for boost_lib in \
10216 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10217 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10218 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10219 boost_$boost_lib_$boost_tag_$boost_ver_
10221 # Avoid testing twice the same lib
10222 case $boost_failed_libs in #(
10223 (*@$boost_lib@*) continue;;
10224 esac
10225 # If with_boost is empty, we'll search in /lib first, which is not quite
10226 # right so instead we'll try to a location based on where the headers are.
10227 boost_tmp_lib=$with_boost
10228 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10229 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10230 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10231 "$with_boost" C:/Boost/lib /lib*
10233 # Don't waste time with directories that don't exist.
10234 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10235 continue
10237 boost_save_LDFLAGS=$LDFLAGS
10238 # Are we looking for a static library?
10239 case $boost_ldpath:$boost_rtopt_ in #(
10240 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10241 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10242 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10243 (*) # No: use -lboost_foo to find the shared library.
10244 boost_cv_lib_system_LIBS="-l$boost_lib";;
10245 esac
10246 boost_save_LIBS=$LIBS
10247 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10248 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10249 rm -f conftest$ac_exeext
10250 boost_save_ac_ext=$ac_ext
10251 boost_use_source=:
10252 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10253 # tries to link the existing object file instead of compiling from source.
10254 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10255 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10256 if { { ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10262 $as_echo "$ac_try_echo"; } >&5
10263 (eval "$ac_link") 2>conftest.err
10264 ac_status=$?
10265 if test -s conftest.err; then
10266 grep -v '^ *+' conftest.err >conftest.er1
10267 cat conftest.er1 >&5
10268 mv -f conftest.er1 conftest.err
10270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10271 test $ac_status = 0; } && {
10272 test -z "$ac_cxx_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext && {
10275 test "$cross_compiling" = yes ||
10276 $as_executable_p conftest$ac_exeext
10277 }; then :
10278 boost_cv_lib_system=yes
10279 else
10280 if $boost_use_source; then
10281 $as_echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10285 boost_cv_lib_system=no
10287 ac_objext=$boost_save_ac_objext
10288 ac_ext=$boost_save_ac_ext
10289 rm -f core conftest.err conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext
10291 ac_objext=$boost_save_ac_objext
10292 LDFLAGS=$boost_save_LDFLAGS
10293 LIBS=$boost_save_LIBS
10294 if test x"$boost_cv_lib_system" = xyes; then
10295 # Check or used cached result of whether or not using -R or
10296 # -rpath makes sense. Some implementations of ld, such as for
10297 # Mac OSX, require -rpath but -R is the flag known to work on
10298 # other systems. https://github.com/tsuna/boost.m4/issues/19
10299 if test "${boost_cv_rpath_link_ldflag+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 case $boost_ldpath in
10303 '') # Nothing to do.
10304 boost_cv_rpath_link_ldflag=
10305 boost_rpath_link_ldflag_found=yes;;
10307 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10308 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10309 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10310 rm -f conftest$ac_exeext
10311 boost_save_ac_ext=$ac_ext
10312 boost_use_source=:
10313 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10314 # tries to link the existing object file instead of compiling from source.
10315 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10316 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10317 if { { ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321 esac
10322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10323 $as_echo "$ac_try_echo"; } >&5
10324 (eval "$ac_link") 2>conftest.err
10325 ac_status=$?
10326 if test -s conftest.err; then
10327 grep -v '^ *+' conftest.err >conftest.er1
10328 cat conftest.er1 >&5
10329 mv -f conftest.er1 conftest.err
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } && {
10333 test -z "$ac_cxx_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_executable_p conftest$ac_exeext
10338 }; then :
10339 boost_rpath_link_ldflag_found=yes
10340 break
10341 else
10342 if $boost_use_source; then
10343 $as_echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10347 boost_rpath_link_ldflag_found=no
10349 ac_objext=$boost_save_ac_objext
10350 ac_ext=$boost_save_ac_ext
10351 rm -f core conftest.err conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext
10353 done
10355 esac
10356 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10357 as_fn_error "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10359 LDFLAGS=$boost_save_LDFLAGS
10360 LIBS=$boost_save_LIBS
10364 test x"$boost_ldpath" != x &&
10365 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10366 boost_cv_lib_system_LDPATH="$boost_ldpath"
10367 break 7
10368 else
10369 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10371 done
10372 done
10373 done
10374 done
10375 done
10376 done
10377 done # boost_lib_
10378 rm -f conftest.$ac_objext
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10382 $as_echo "$boost_cv_lib_system" >&6; }
10383 case $boost_cv_lib_system in #(
10384 (no) $as_echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 as_fn_error "cannot find the flags to link with Boost system" "$LINENO" 5
10389 esac
10390 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10391 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10392 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10393 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10394 CPPFLAGS=$boost_save_CPPFLAGS
10395 ac_ext=cpp
10396 ac_cpp='$CXXCPP $CPPFLAGS'
10397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10404 if test ${boost_cv_lib_system:-no} != yes; then :
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10407 Boost support has been disabled because Boost.System not found" >&5
10408 $as_echo "$as_me: WARNING:
10409 Boost support has been disabled because Boost.System not found" >&2;}
10410 _mule_warning_8=yes
10411 _mule_has_warnings=yes
10413 with_boost=disabled
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 CPPFLAGS="$mule_backup_CPPFLAGS"
10420 if test x"$boost_cv_inc_path" = xno; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10423 Boost support has been disabled because Boost.Asio not found" >&5
10424 $as_echo "$as_me: WARNING:
10425 Boost support has been disabled because Boost.Asio not found" >&2;}
10426 _mule_warning_9=yes
10427 _mule_has_warnings=yes
10429 with_boost=disabled
10431 else
10432 ac_ext=cpp
10433 ac_cpp='$CXXCPP $CPPFLAGS'
10434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10437 boost_save_CPPFLAGS=$CPPFLAGS
10438 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10439 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10440 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
10442 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10444 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10447 Boost support has been disabled because Boost.Asio not found" >&5
10448 $as_echo "$as_me: WARNING:
10449 Boost support has been disabled because Boost.Asio not found" >&2;}
10450 _mule_warning_10=yes
10451 _mule_has_warnings=yes
10453 with_boost=disabled
10458 CPPFLAGS=$boost_save_CPPFLAGS
10459 ac_ext=cpp
10460 ac_cpp='$CXXCPP $CPPFLAGS'
10461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10467 else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10469 Boost support has been disabled because of insufficient Boost version." >&5
10470 $as_echo "$as_me: WARNING:
10471 Boost support has been disabled because of insufficient Boost version." >&2;}
10472 _mule_warning_11=yes
10473 _mule_has_warnings=yes
10483 # Ok, we have all needed libs, now checking for other stuff
10484 if test "$LEX" = "flex"; then :
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10487 $as_echo_n "checking for extended flex capabilities... " >&6; }
10489 extended_flex=`flex --help | grep header-file`
10490 if test -n "$extended_flex"; then :
10491 HAVE_FLEX_EXTENDED=yes
10492 else
10493 HAVE_FLEX_EXTENDED=no
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10496 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10498 if test $HAVE_FLEX_EXTENDED = no; then :
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
10500 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10503 else
10504 HAVE_FLEX_EXTENDED=no
10508 # Checks for header files.
10509 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10510 # for constant arguments. Useless!
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10512 $as_echo_n "checking for working alloca.h... " >&6; }
10513 if test "${ac_cv_working_alloca_h+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 #include <alloca.h>
10520 main ()
10522 char *p = (char *) alloca (2 * sizeof (int));
10523 if (p) return 0;
10525 return 0;
10527 _ACEOF
10528 if ac_fn_cxx_try_link "$LINENO"; then :
10529 ac_cv_working_alloca_h=yes
10530 else
10531 ac_cv_working_alloca_h=no
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10537 $as_echo "$ac_cv_working_alloca_h" >&6; }
10538 if test $ac_cv_working_alloca_h = yes; then
10540 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10545 $as_echo_n "checking for alloca... " >&6; }
10546 if test "${ac_cv_func_alloca_works+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 #ifdef __GNUC__
10552 # define alloca __builtin_alloca
10553 #else
10554 # ifdef _MSC_VER
10555 # include <malloc.h>
10556 # define alloca _alloca
10557 # else
10558 # ifdef HAVE_ALLOCA_H
10559 # include <alloca.h>
10560 # else
10561 # ifdef _AIX
10562 #pragma alloca
10563 # else
10564 # ifndef alloca /* predefined by HP cc +Olibcalls */
10565 char *alloca ();
10566 # endif
10567 # endif
10568 # endif
10569 # endif
10570 #endif
10573 main ()
10575 char *p = (char *) alloca (1);
10576 if (p) return 0;
10578 return 0;
10580 _ACEOF
10581 if ac_fn_cxx_try_link "$LINENO"; then :
10582 ac_cv_func_alloca_works=yes
10583 else
10584 ac_cv_func_alloca_works=no
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10590 $as_echo "$ac_cv_func_alloca_works" >&6; }
10592 if test $ac_cv_func_alloca_works = yes; then
10594 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10596 else
10597 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10598 # that cause trouble. Some versions do not even contain alloca or
10599 # contain a buggy version. If you still want to use their alloca,
10600 # use ar to extract alloca.o from them instead of compiling alloca.c.
10602 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10604 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10608 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10609 if test "${ac_cv_os_cray+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 #if defined CRAY && ! defined CRAY2
10615 webecray
10616 #else
10617 wenotbecray
10618 #endif
10620 _ACEOF
10621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10622 $EGREP "webecray" >/dev/null 2>&1; then :
10623 ac_cv_os_cray=yes
10624 else
10625 ac_cv_os_cray=no
10627 rm -f conftest*
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10631 $as_echo "$ac_cv_os_cray" >&6; }
10632 if test $ac_cv_os_cray = yes; then
10633 for ac_func in _getb67 GETB67 getb67; do
10634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10635 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10636 eval as_val=\$$as_ac_var
10637 if test "x$as_val" = x""yes; then :
10639 cat >>confdefs.h <<_ACEOF
10640 #define CRAY_STACKSEG_END $ac_func
10641 _ACEOF
10643 break
10646 done
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10650 $as_echo_n "checking stack direction for C alloca... " >&6; }
10651 if test "${ac_cv_c_stack_direction+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 if test "$cross_compiling" = yes; then :
10655 ac_cv_c_stack_direction=0
10656 else
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 $ac_includes_default
10661 find_stack_direction ()
10663 static char *addr = 0;
10664 auto char dummy;
10665 if (addr == 0)
10667 addr = &dummy;
10668 return find_stack_direction ();
10670 else
10671 return (&dummy > addr) ? 1 : -1;
10675 main ()
10677 return find_stack_direction () < 0;
10679 _ACEOF
10680 if ac_fn_cxx_try_run "$LINENO"; then :
10681 ac_cv_c_stack_direction=1
10682 else
10683 ac_cv_c_stack_direction=-1
10685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10686 conftest.$ac_objext conftest.beam conftest.$ac_ext
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10691 $as_echo "$ac_cv_c_stack_direction" >&6; }
10692 cat >>confdefs.h <<_ACEOF
10693 #define STACK_DIRECTION $ac_cv_c_stack_direction
10694 _ACEOF
10699 ac_header_dirent=no
10700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10701 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10703 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <sys/types.h>
10710 #include <$ac_hdr>
10713 main ()
10715 if ((DIR *) 0)
10716 return 0;
10718 return 0;
10720 _ACEOF
10721 if ac_fn_cxx_try_compile "$LINENO"; then :
10722 eval "$as_ac_Header=yes"
10723 else
10724 eval "$as_ac_Header=no"
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 eval ac_res=\$$as_ac_Header
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10730 $as_echo "$ac_res" >&6; }
10731 eval as_val=\$$as_ac_Header
10732 if test "x$as_val" = x""yes; then :
10733 cat >>confdefs.h <<_ACEOF
10734 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10735 _ACEOF
10737 ac_header_dirent=$ac_hdr; break
10740 done
10741 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10742 if test $ac_header_dirent = dirent.h; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10744 $as_echo_n "checking for library containing opendir... " >&6; }
10745 if test "${ac_cv_search_opendir+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 ac_func_search_save_LIBS=$LIBS
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10752 /* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char opendir ();
10760 main ()
10762 return opendir ();
10764 return 0;
10766 _ACEOF
10767 for ac_lib in '' dir; do
10768 if test -z "$ac_lib"; then
10769 ac_res="none required"
10770 else
10771 ac_res=-l$ac_lib
10772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10774 if ac_fn_cxx_try_link "$LINENO"; then :
10775 ac_cv_search_opendir=$ac_res
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext
10779 if test "${ac_cv_search_opendir+set}" = set; then :
10780 break
10782 done
10783 if test "${ac_cv_search_opendir+set}" = set; then :
10785 else
10786 ac_cv_search_opendir=no
10788 rm conftest.$ac_ext
10789 LIBS=$ac_func_search_save_LIBS
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10792 $as_echo "$ac_cv_search_opendir" >&6; }
10793 ac_res=$ac_cv_search_opendir
10794 if test "$ac_res" != no; then :
10795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10801 $as_echo_n "checking for library containing opendir... " >&6; }
10802 if test "${ac_cv_search_opendir+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 ac_func_search_save_LIBS=$LIBS
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char opendir ();
10817 main ()
10819 return opendir ();
10821 return 0;
10823 _ACEOF
10824 for ac_lib in '' x; do
10825 if test -z "$ac_lib"; then
10826 ac_res="none required"
10827 else
10828 ac_res=-l$ac_lib
10829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10831 if ac_fn_cxx_try_link "$LINENO"; then :
10832 ac_cv_search_opendir=$ac_res
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext
10836 if test "${ac_cv_search_opendir+set}" = set; then :
10837 break
10839 done
10840 if test "${ac_cv_search_opendir+set}" = set; then :
10842 else
10843 ac_cv_search_opendir=no
10845 rm conftest.$ac_ext
10846 LIBS=$ac_func_search_save_LIBS
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10849 $as_echo "$ac_cv_search_opendir" >&6; }
10850 ac_res=$ac_cv_search_opendir
10851 if test "$ac_res" != no; then :
10852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10859 $as_echo_n "checking for ANSI C header files... " >&6; }
10860 if test "${ac_cv_header_stdc+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 #include <stdlib.h>
10866 #include <stdarg.h>
10867 #include <string.h>
10868 #include <float.h>
10871 main ()
10875 return 0;
10877 _ACEOF
10878 if ac_fn_cxx_try_compile "$LINENO"; then :
10879 ac_cv_header_stdc=yes
10880 else
10881 ac_cv_header_stdc=no
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10885 if test $ac_cv_header_stdc = yes; then
10886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 #include <string.h>
10891 _ACEOF
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "memchr" >/dev/null 2>&1; then :
10895 else
10896 ac_cv_header_stdc=no
10898 rm -f conftest*
10902 if test $ac_cv_header_stdc = yes; then
10903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #include <stdlib.h>
10908 _ACEOF
10909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10910 $EGREP "free" >/dev/null 2>&1; then :
10912 else
10913 ac_cv_header_stdc=no
10915 rm -f conftest*
10919 if test $ac_cv_header_stdc = yes; then
10920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10921 if test "$cross_compiling" = yes; then :
10923 else
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #include <ctype.h>
10927 #include <stdlib.h>
10928 #if ((' ' & 0x0FF) == 0x020)
10929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10931 #else
10932 # define ISLOWER(c) \
10933 (('a' <= (c) && (c) <= 'i') \
10934 || ('j' <= (c) && (c) <= 'r') \
10935 || ('s' <= (c) && (c) <= 'z'))
10936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10937 #endif
10939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10941 main ()
10943 int i;
10944 for (i = 0; i < 256; i++)
10945 if (XOR (islower (i), ISLOWER (i))
10946 || toupper (i) != TOUPPER (i))
10947 return 2;
10948 return 0;
10950 _ACEOF
10951 if ac_fn_cxx_try_run "$LINENO"; then :
10953 else
10954 ac_cv_header_stdc=no
10956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10957 conftest.$ac_objext conftest.beam conftest.$ac_ext
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10963 $as_echo "$ac_cv_header_stdc" >&6; }
10964 if test $ac_cv_header_stdc = yes; then
10966 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10970 for ac_header in argz.h arpa/inet.h errno.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 signal.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
10971 do :
10972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10973 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10974 eval as_val=\$$as_ac_Header
10975 if test "x$as_val" = x""yes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978 _ACEOF
10982 done
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10985 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10986 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #include <sys/types.h>
10992 #include <sys/wait.h>
10993 #ifndef WEXITSTATUS
10994 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10995 #endif
10996 #ifndef WIFEXITED
10997 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10998 #endif
11001 main ()
11003 int s;
11004 wait (&s);
11005 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11007 return 0;
11009 _ACEOF
11010 if ac_fn_cxx_try_compile "$LINENO"; then :
11011 ac_cv_header_sys_wait_h=yes
11012 else
11013 ac_cv_header_sys_wait_h=no
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11018 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11019 if test $ac_cv_header_sys_wait_h = yes; then
11021 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11027 # Checks for typedefs, structures, and compiler characteristics.
11028 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11029 if test "x$ac_cv_type_mode_t" = x""yes; then :
11031 else
11033 cat >>confdefs.h <<_ACEOF
11034 #define mode_t int
11035 _ACEOF
11039 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11040 if test "x$ac_cv_type_off_t" = x""yes; then :
11042 else
11044 cat >>confdefs.h <<_ACEOF
11045 #define off_t long int
11046 _ACEOF
11050 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11051 if test "x$ac_cv_type_size_t" = x""yes; then :
11053 else
11055 cat >>confdefs.h <<_ACEOF
11056 #define size_t unsigned int
11057 _ACEOF
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11062 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11063 if test "${ac_cv_header_time+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068 #include <sys/types.h>
11069 #include <sys/time.h>
11070 #include <time.h>
11073 main ()
11075 if ((struct tm *) 0)
11076 return 0;
11078 return 0;
11080 _ACEOF
11081 if ac_fn_cxx_try_compile "$LINENO"; then :
11082 ac_cv_header_time=yes
11083 else
11084 ac_cv_header_time=no
11086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11089 $as_echo "$ac_cv_header_time" >&6; }
11090 if test $ac_cv_header_time = yes; then
11092 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11097 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11098 if test "${ac_cv_struct_tm+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103 #include <sys/types.h>
11104 #include <time.h>
11107 main ()
11109 struct tm tm;
11110 int *p = &tm.tm_sec;
11111 return !p;
11113 return 0;
11115 _ACEOF
11116 if ac_fn_cxx_try_compile "$LINENO"; then :
11117 ac_cv_struct_tm=time.h
11118 else
11119 ac_cv_struct_tm=sys/time.h
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11124 $as_echo "$ac_cv_struct_tm" >&6; }
11125 if test $ac_cv_struct_tm = sys/time.h; then
11127 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11132 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11133 if test "${ac_cv_type_uid_t+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138 #include <sys/types.h>
11140 _ACEOF
11141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11142 $EGREP "uid_t" >/dev/null 2>&1; then :
11143 ac_cv_type_uid_t=yes
11144 else
11145 ac_cv_type_uid_t=no
11147 rm -f conftest*
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11151 $as_echo "$ac_cv_type_uid_t" >&6; }
11152 if test $ac_cv_type_uid_t = no; then
11154 $as_echo "#define uid_t int" >>confdefs.h
11157 $as_echo "#define gid_t int" >>confdefs.h
11161 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11162 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11164 cat >>confdefs.h <<_ACEOF
11165 #define HAVE_PTRDIFF_T 1
11166 _ACEOF
11173 # Checks for library functions.
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11175 $as_echo_n "checking whether closedir returns void... " >&6; }
11176 if test "${ac_cv_func_closedir_void+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test "$cross_compiling" = yes; then :
11180 ac_cv_func_closedir_void=yes
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 $ac_includes_default
11185 #include <$ac_header_dirent>
11186 #ifndef __cplusplus
11187 int closedir ();
11188 #endif
11191 main ()
11193 return closedir (opendir (".")) != 0;
11195 return 0;
11197 _ACEOF
11198 if ac_fn_cxx_try_run "$LINENO"; then :
11199 ac_cv_func_closedir_void=no
11200 else
11201 ac_cv_func_closedir_void=yes
11203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11204 conftest.$ac_objext conftest.beam conftest.$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11209 $as_echo "$ac_cv_func_closedir_void" >&6; }
11210 if test $ac_cv_func_closedir_void = yes; then
11212 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11216 if test $ac_cv_c_compiler_gnu = yes; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11218 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11219 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 ac_pattern="Autoconf.*'x'"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <sgtty.h>
11226 Autoconf TIOCGETP
11227 _ACEOF
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11230 ac_cv_prog_gcc_traditional=yes
11231 else
11232 ac_cv_prog_gcc_traditional=no
11234 rm -f conftest*
11237 if test $ac_cv_prog_gcc_traditional = no; then
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 #include <termio.h>
11241 Autoconf TCGETA
11242 _ACEOF
11243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11244 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11245 ac_cv_prog_gcc_traditional=yes
11247 rm -f conftest*
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11252 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11253 if test $ac_cv_prog_gcc_traditional = yes; then
11254 CC="$CC -traditional"
11258 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11259 if test "x$ac_cv_type_pid_t" = x""yes; then :
11261 else
11263 cat >>confdefs.h <<_ACEOF
11264 #define pid_t int
11265 _ACEOF
11269 for ac_header in vfork.h
11270 do :
11271 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11272 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11273 cat >>confdefs.h <<_ACEOF
11274 #define HAVE_VFORK_H 1
11275 _ACEOF
11279 done
11281 for ac_func in fork vfork
11282 do :
11283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11285 eval as_val=\$$as_ac_var
11286 if test "x$as_val" = x""yes; then :
11287 cat >>confdefs.h <<_ACEOF
11288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11289 _ACEOF
11292 done
11294 if test "x$ac_cv_func_fork" = xyes; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11296 $as_echo_n "checking for working fork... " >&6; }
11297 if test "${ac_cv_func_fork_works+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 if test "$cross_compiling" = yes; then :
11301 ac_cv_func_fork_works=cross
11302 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 $ac_includes_default
11307 main ()
11310 /* By Ruediger Kuhlmann. */
11311 return fork () < 0;
11314 return 0;
11316 _ACEOF
11317 if ac_fn_cxx_try_run "$LINENO"; then :
11318 ac_cv_func_fork_works=yes
11319 else
11320 ac_cv_func_fork_works=no
11322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11323 conftest.$ac_objext conftest.beam conftest.$ac_ext
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11328 $as_echo "$ac_cv_func_fork_works" >&6; }
11330 else
11331 ac_cv_func_fork_works=$ac_cv_func_fork
11333 if test "x$ac_cv_func_fork_works" = xcross; then
11334 case $host in
11335 *-*-amigaos* | *-*-msdosdjgpp*)
11336 # Override, as these systems have only a dummy fork() stub
11337 ac_cv_func_fork_works=no
11340 ac_cv_func_fork_works=yes
11342 esac
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11344 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11346 ac_cv_func_vfork_works=$ac_cv_func_vfork
11347 if test "x$ac_cv_func_vfork" = xyes; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11349 $as_echo_n "checking for working vfork... " >&6; }
11350 if test "${ac_cv_func_vfork_works+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 if test "$cross_compiling" = yes; then :
11354 ac_cv_func_vfork_works=cross
11355 else
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 /* Thanks to Paul Eggert for this test. */
11359 $ac_includes_default
11360 #include <sys/wait.h>
11361 #ifdef HAVE_VFORK_H
11362 # include <vfork.h>
11363 #endif
11364 /* On some sparc systems, changes by the child to local and incoming
11365 argument registers are propagated back to the parent. The compiler
11366 is told about this with #include <vfork.h>, but some compilers
11367 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11368 static variable whose address is put into a register that is
11369 clobbered by the vfork. */
11370 static void
11371 #ifdef __cplusplus
11372 sparc_address_test (int arg)
11373 # else
11374 sparc_address_test (arg) int arg;
11375 #endif
11377 static pid_t child;
11378 if (!child) {
11379 child = vfork ();
11380 if (child < 0) {
11381 perror ("vfork");
11382 _exit(2);
11384 if (!child) {
11385 arg = getpid();
11386 write(-1, "", 0);
11387 _exit (arg);
11393 main ()
11395 pid_t parent = getpid ();
11396 pid_t child;
11398 sparc_address_test (0);
11400 child = vfork ();
11402 if (child == 0) {
11403 /* Here is another test for sparc vfork register problems. This
11404 test uses lots of local variables, at least as many local
11405 variables as main has allocated so far including compiler
11406 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11407 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11408 reuse the register of parent for one of the local variables,
11409 since it will think that parent can't possibly be used any more
11410 in this routine. Assigning to the local variable will thus
11411 munge parent in the parent process. */
11412 pid_t
11413 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11414 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11415 /* Convince the compiler that p..p7 are live; otherwise, it might
11416 use the same hardware register for all 8 local variables. */
11417 if (p != p1 || p != p2 || p != p3 || p != p4
11418 || p != p5 || p != p6 || p != p7)
11419 _exit(1);
11421 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11422 from child file descriptors. If the child closes a descriptor
11423 before it execs or exits, this munges the parent's descriptor
11424 as well. Test for this by closing stdout in the child. */
11425 _exit(close(fileno(stdout)) != 0);
11426 } else {
11427 int status;
11428 struct stat st;
11430 while (wait(&status) != child)
11432 return (
11433 /* Was there some problem with vforking? */
11434 child < 0
11436 /* Did the child fail? (This shouldn't happen.) */
11437 || status
11439 /* Did the vfork/compiler bug occur? */
11440 || parent != getpid()
11442 /* Did the file descriptor bug occur? */
11443 || fstat(fileno(stdout), &st) != 0
11447 _ACEOF
11448 if ac_fn_cxx_try_run "$LINENO"; then :
11449 ac_cv_func_vfork_works=yes
11450 else
11451 ac_cv_func_vfork_works=no
11453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11454 conftest.$ac_objext conftest.beam conftest.$ac_ext
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11459 $as_echo "$ac_cv_func_vfork_works" >&6; }
11462 if test "x$ac_cv_func_fork_works" = xcross; then
11463 ac_cv_func_vfork_works=$ac_cv_func_vfork
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11465 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11468 if test "x$ac_cv_func_vfork_works" = xyes; then
11470 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11472 else
11474 $as_echo "#define vfork fork" >>confdefs.h
11477 if test "x$ac_cv_func_fork_works" = xyes; then
11479 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11484 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11485 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 rm -f conftest.sym conftest.file
11489 echo >conftest.file
11490 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11491 if test "$cross_compiling" = yes; then :
11492 ac_cv_func_lstat_dereferences_slashed_symlink=no
11493 else
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11496 $ac_includes_default
11498 main ()
11500 struct stat sbuf;
11501 /* Linux will dereference the symlink and fail, as required by POSIX.
11502 That is better in the sense that it means we will not
11503 have to compile and use the lstat wrapper. */
11504 return lstat ("conftest.sym/", &sbuf) == 0;
11506 return 0;
11508 _ACEOF
11509 if ac_fn_cxx_try_run "$LINENO"; then :
11510 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11511 else
11512 ac_cv_func_lstat_dereferences_slashed_symlink=no
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11515 conftest.$ac_objext conftest.beam conftest.$ac_ext
11518 else
11519 # If the `ln -s' command failed, then we probably don't even
11520 # have an lstat function.
11521 ac_cv_func_lstat_dereferences_slashed_symlink=no
11523 rm -f conftest.sym conftest.file
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11527 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11529 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11531 cat >>confdefs.h <<_ACEOF
11532 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11533 _ACEOF
11536 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11537 case " $LIBOBJS " in
11538 *" lstat.$ac_objext "* ) ;;
11539 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11541 esac
11545 if test x$SYS != xwin32; then :
11547 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11548 # -lseq on Dynix/PTX, -lgen on Unixware.
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11550 $as_echo_n "checking for library containing getmntent... " >&6; }
11551 if test "${ac_cv_search_getmntent+set}" = set; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 ac_func_search_save_LIBS=$LIBS
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 char getmntent ();
11566 main ()
11568 return getmntent ();
11570 return 0;
11572 _ACEOF
11573 for ac_lib in '' sun seq gen; do
11574 if test -z "$ac_lib"; then
11575 ac_res="none required"
11576 else
11577 ac_res=-l$ac_lib
11578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11580 if ac_fn_cxx_try_link "$LINENO"; then :
11581 ac_cv_search_getmntent=$ac_res
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext
11585 if test "${ac_cv_search_getmntent+set}" = set; then :
11586 break
11588 done
11589 if test "${ac_cv_search_getmntent+set}" = set; then :
11591 else
11592 ac_cv_search_getmntent=no
11594 rm conftest.$ac_ext
11595 LIBS=$ac_func_search_save_LIBS
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11598 $as_echo "$ac_cv_search_getmntent" >&6; }
11599 ac_res=$ac_cv_search_getmntent
11600 if test "$ac_res" != no; then :
11601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11602 ac_cv_func_getmntent=yes
11604 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11606 else
11607 ac_cv_func_getmntent=no
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11612 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11613 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test "$cross_compiling" = yes; then :
11617 ac_cv_func_lstat_empty_string_bug=yes
11618 else
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 $ac_includes_default
11623 main ()
11625 struct stat sbuf;
11626 return lstat ("", &sbuf) == 0;
11628 return 0;
11630 _ACEOF
11631 if ac_fn_cxx_try_run "$LINENO"; then :
11632 ac_cv_func_lstat_empty_string_bug=no
11633 else
11634 ac_cv_func_lstat_empty_string_bug=yes
11636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11637 conftest.$ac_objext conftest.beam conftest.$ac_ext
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11642 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11643 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11644 case " $LIBOBJS " in
11645 *" lstat.$ac_objext "* ) ;;
11646 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11648 esac
11651 cat >>confdefs.h <<_ACEOF
11652 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11653 _ACEOF
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11658 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11659 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 rm -f conftest.sym conftest.file
11663 echo >conftest.file
11664 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11665 if test "$cross_compiling" = yes; then :
11666 ac_cv_func_lstat_dereferences_slashed_symlink=no
11667 else
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670 $ac_includes_default
11672 main ()
11674 struct stat sbuf;
11675 /* Linux will dereference the symlink and fail, as required by POSIX.
11676 That is better in the sense that it means we will not
11677 have to compile and use the lstat wrapper. */
11678 return lstat ("conftest.sym/", &sbuf) == 0;
11680 return 0;
11682 _ACEOF
11683 if ac_fn_cxx_try_run "$LINENO"; then :
11684 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11685 else
11686 ac_cv_func_lstat_dereferences_slashed_symlink=no
11688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11689 conftest.$ac_objext conftest.beam conftest.$ac_ext
11692 else
11693 # If the `ln -s' command failed, then we probably don't even
11694 # have an lstat function.
11695 ac_cv_func_lstat_dereferences_slashed_symlink=no
11697 rm -f conftest.sym conftest.file
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11701 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11703 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11705 cat >>confdefs.h <<_ACEOF
11706 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11707 _ACEOF
11710 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11711 case " $LIBOBJS " in
11712 *" lstat.$ac_objext "* ) ;;
11713 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11715 esac
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11722 $as_echo_n "checking for working memcmp... " >&6; }
11723 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 if test "$cross_compiling" = yes; then :
11727 ac_cv_func_memcmp_working=no
11728 else
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11731 $ac_includes_default
11733 main ()
11736 /* Some versions of memcmp are not 8-bit clean. */
11737 char c0 = '\100', c1 = '\200', c2 = '\201';
11738 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11739 return 1;
11741 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11742 or more and with at least one buffer not starting on a 4-byte boundary.
11743 William Lewis provided this test program. */
11745 char foo[21];
11746 char bar[21];
11747 int i;
11748 for (i = 0; i < 4; i++)
11750 char *a = foo + i;
11751 char *b = bar + i;
11752 strcpy (a, "--------01111111");
11753 strcpy (b, "--------10000000");
11754 if (memcmp (a, b, 16) >= 0)
11755 return 1;
11757 return 0;
11761 return 0;
11763 _ACEOF
11764 if ac_fn_cxx_try_run "$LINENO"; then :
11765 ac_cv_func_memcmp_working=yes
11766 else
11767 ac_cv_func_memcmp_working=no
11769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11770 conftest.$ac_objext conftest.beam conftest.$ac_ext
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11775 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11776 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11777 *" memcmp.$ac_objext "* ) ;;
11778 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11780 esac
11783 for ac_header in sys/select.h sys/socket.h
11784 do :
11785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11786 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11787 eval as_val=\$$as_ac_Header
11788 if test "x$as_val" = x""yes; then :
11789 cat >>confdefs.h <<_ACEOF
11790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11791 _ACEOF
11795 done
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11798 $as_echo_n "checking types of arguments for select... " >&6; }
11799 if test "${ac_cv_func_select_args+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11803 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11804 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 #ifdef HAVE_SYS_SELECT_H
11809 # include <sys/select.h>
11810 #endif
11811 #ifdef HAVE_SYS_SOCKET_H
11812 # include <sys/socket.h>
11813 #endif
11816 main ()
11818 extern int select ($ac_arg1,
11819 $ac_arg234, $ac_arg234, $ac_arg234,
11820 $ac_arg5);
11822 return 0;
11824 _ACEOF
11825 if ac_fn_cxx_try_compile "$LINENO"; then :
11826 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 done
11830 done
11831 done
11832 # Provide a safe default value.
11833 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11837 $as_echo "$ac_cv_func_select_args" >&6; }
11838 ac_save_IFS=$IFS; IFS=','
11839 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11840 IFS=$ac_save_IFS
11841 shift
11843 cat >>confdefs.h <<_ACEOF
11844 #define SELECT_TYPE_ARG1 $1
11845 _ACEOF
11848 cat >>confdefs.h <<_ACEOF
11849 #define SELECT_TYPE_ARG234 ($2)
11850 _ACEOF
11853 cat >>confdefs.h <<_ACEOF
11854 #define SELECT_TYPE_ARG5 ($3)
11855 _ACEOF
11857 rm -f conftest*
11859 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 ac_cv_func_setvbuf_reversed=no
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11867 $as_echo_n "checking return type of signal handlers... " >&6; }
11868 if test "${ac_cv_type_signal+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <sys/types.h>
11874 #include <signal.h>
11877 main ()
11879 return *(signal (0, 0)) (0) == 1;
11881 return 0;
11883 _ACEOF
11884 if ac_fn_cxx_try_compile "$LINENO"; then :
11885 ac_cv_type_signal=int
11886 else
11887 ac_cv_type_signal=void
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11892 $as_echo "$ac_cv_type_signal" >&6; }
11894 cat >>confdefs.h <<_ACEOF
11895 #define RETSIGTYPE $ac_cv_type_signal
11896 _ACEOF
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11900 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11901 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if test "$cross_compiling" = yes; then :
11905 ac_cv_func_stat_empty_string_bug=yes
11906 else
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 $ac_includes_default
11911 main ()
11913 struct stat sbuf;
11914 return stat ("", &sbuf) == 0;
11916 return 0;
11918 _ACEOF
11919 if ac_fn_cxx_try_run "$LINENO"; then :
11920 ac_cv_func_stat_empty_string_bug=no
11921 else
11922 ac_cv_func_stat_empty_string_bug=yes
11924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11925 conftest.$ac_objext conftest.beam conftest.$ac_ext
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11930 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11931 if test $ac_cv_func_stat_empty_string_bug = yes; then
11932 case " $LIBOBJS " in
11933 *" stat.$ac_objext "* ) ;;
11934 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11936 esac
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_STAT_EMPTY_STRING_BUG 1
11941 _ACEOF
11945 for ac_func in strftime
11946 do :
11947 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11948 if test "x$ac_cv_func_strftime" = x""yes; then :
11949 cat >>confdefs.h <<_ACEOF
11950 #define HAVE_STRFTIME 1
11951 _ACEOF
11953 else
11954 # strftime is in -lintl on SCO UNIX.
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11956 $as_echo_n "checking for strftime in -lintl... " >&6; }
11957 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lintl $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char strftime ();
11973 main ()
11975 return strftime ();
11977 return 0;
11979 _ACEOF
11980 if ac_fn_cxx_try_link "$LINENO"; then :
11981 ac_cv_lib_intl_strftime=yes
11982 else
11983 ac_cv_lib_intl_strftime=no
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11990 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11991 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11992 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11994 LIBS="-lintl $LIBS"
11998 done
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12001 $as_echo_n "checking for working strtod... " >&6; }
12002 if test "${ac_cv_func_strtod+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 if test "$cross_compiling" = yes; then :
12006 ac_cv_func_strtod=no
12007 else
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 $ac_includes_default
12012 #ifndef strtod
12013 double strtod ();
12014 #endif
12016 main()
12019 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12020 char *string = " +69";
12021 char *term;
12022 double value;
12023 value = strtod (string, &term);
12024 if (value != 69 || term != (string + 4))
12025 return 1;
12029 /* Under Solaris 2.4, strtod returns the wrong value for the
12030 terminating character under some conditions. */
12031 char *string = "NaN";
12032 char *term;
12033 strtod (string, &term);
12034 if (term != string && *(term - 1) == 0)
12035 return 1;
12037 return 0;
12040 _ACEOF
12041 if ac_fn_cxx_try_run "$LINENO"; then :
12042 ac_cv_func_strtod=yes
12043 else
12044 ac_cv_func_strtod=no
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12047 conftest.$ac_objext conftest.beam conftest.$ac_ext
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12052 $as_echo "$ac_cv_func_strtod" >&6; }
12053 if test $ac_cv_func_strtod = no; then
12054 case " $LIBOBJS " in
12055 *" strtod.$ac_objext "* ) ;;
12056 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12058 esac
12060 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12061 if test "x$ac_cv_func_pow" = x""yes; then :
12065 if test $ac_cv_func_pow = no; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12067 $as_echo_n "checking for pow in -lm... " >&6; }
12068 if test "${ac_cv_lib_m_pow+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lm $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char pow ();
12084 main ()
12086 return pow ();
12088 return 0;
12090 _ACEOF
12091 if ac_fn_cxx_try_link "$LINENO"; then :
12092 ac_cv_lib_m_pow=yes
12093 else
12094 ac_cv_lib_m_pow=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12101 $as_echo "$ac_cv_lib_m_pow" >&6; }
12102 if test "x$ac_cv_lib_m_pow" = x""yes; then :
12103 POW_LIB=-lm
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12106 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12113 for ac_func in vprintf
12114 do :
12115 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12116 if test "x$ac_cv_func_vprintf" = x""yes; then :
12117 cat >>confdefs.h <<_ACEOF
12118 #define HAVE_VPRINTF 1
12119 _ACEOF
12121 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12122 if test "x$ac_cv_func__doprnt" = x""yes; then :
12124 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12129 done
12132 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12135 configure cannot check whether malloc() and realloc() are GNU libc
12136 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12137 run configure with the --without-gnu-malloc switch." >&5
12138 $as_echo "$as_me: WARNING:
12139 configure cannot check whether malloc() and realloc() are GNU libc
12140 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12141 run configure with the --without-gnu-malloc switch." >&2;}
12142 _mule_warning_12=yes
12143 _mule_has_warnings=yes
12145 ac_cv_func_malloc_0_nonnull=yes
12146 ac_cv_func_realloc_0_nonnull=yes
12149 for ac_header in stdlib.h
12150 do :
12151 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12152 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12153 cat >>confdefs.h <<_ACEOF
12154 #define HAVE_STDLIB_H 1
12155 _ACEOF
12159 done
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12162 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12163 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 if test "$cross_compiling" = yes; then :
12167 ac_cv_func_malloc_0_nonnull=no
12168 else
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12172 # include <stdlib.h>
12173 #else
12174 char *malloc ();
12175 #endif
12178 main ()
12180 return ! malloc (0);
12182 return 0;
12184 _ACEOF
12185 if ac_fn_cxx_try_run "$LINENO"; then :
12186 ac_cv_func_malloc_0_nonnull=yes
12187 else
12188 ac_cv_func_malloc_0_nonnull=no
12190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12191 conftest.$ac_objext conftest.beam conftest.$ac_ext
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12196 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12197 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12199 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12201 else
12202 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12204 case " $LIBOBJS " in
12205 *" malloc.$ac_objext "* ) ;;
12206 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12208 esac
12211 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12216 for ac_header in stdlib.h
12217 do :
12218 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12219 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12220 cat >>confdefs.h <<_ACEOF
12221 #define HAVE_STDLIB_H 1
12222 _ACEOF
12226 done
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12229 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12230 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test "$cross_compiling" = yes; then :
12234 ac_cv_func_realloc_0_nonnull=no
12235 else
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12239 # include <stdlib.h>
12240 #else
12241 char *realloc ();
12242 #endif
12245 main ()
12247 return ! realloc (0, 0);
12249 return 0;
12251 _ACEOF
12252 if ac_fn_cxx_try_run "$LINENO"; then :
12253 ac_cv_func_realloc_0_nonnull=yes
12254 else
12255 ac_cv_func_realloc_0_nonnull=no
12257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12258 conftest.$ac_objext conftest.beam conftest.$ac_ext
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12263 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12264 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12266 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12268 else
12269 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12271 case " $LIBOBJS " in
12272 *" realloc.$ac_objext "* ) ;;
12273 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12275 esac
12278 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12283 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12284 do :
12285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12286 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12287 eval as_val=\$$as_ac_var
12288 if test "x$as_val" = x""yes; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291 _ACEOF
12294 done
12301 for ac_header in $ac_header_list
12302 do :
12303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12304 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12306 eval as_val=\$$as_ac_Header
12307 if test "x$as_val" = x""yes; then :
12308 cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12310 _ACEOF
12314 done
12322 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12324 # Check whether --enable-mmap was given.
12325 if test "${enable_mmap+set}" = set; then :
12326 enableval=$enable_mmap;
12333 if test ${enable_mmap:-no} = yes; then :
12335 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12338 for ac_func in getpagesize
12339 do :
12340 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12341 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_GETPAGESIZE 1
12344 _ACEOF
12347 done
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12350 $as_echo_n "checking for working mmap... " >&6; }
12351 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test "$cross_compiling" = yes; then :
12355 ac_cv_func_mmap_fixed_mapped=no
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 $ac_includes_default
12360 /* malloc might have been renamed as rpl_malloc. */
12361 #undef malloc
12363 /* Thanks to Mike Haertel and Jim Avera for this test.
12364 Here is a matrix of mmap possibilities:
12365 mmap private not fixed
12366 mmap private fixed at somewhere currently unmapped
12367 mmap private fixed at somewhere already mapped
12368 mmap shared not fixed
12369 mmap shared fixed at somewhere currently unmapped
12370 mmap shared fixed at somewhere already mapped
12371 For private mappings, we should verify that changes cannot be read()
12372 back from the file, nor mmap's back from the file at a different
12373 address. (There have been systems where private was not correctly
12374 implemented like the infamous i386 svr4.0, and systems where the
12375 VM page cache was not coherent with the file system buffer cache
12376 like early versions of FreeBSD and possibly contemporary NetBSD.)
12377 For shared mappings, we should conversely verify that changes get
12378 propagated back to all the places they're supposed to be.
12380 Grep wants private fixed already mapped.
12381 The main things grep needs to know about mmap are:
12382 * does it exist and is it safe to write into the mmap'd area
12383 * how to use it (BSD variants) */
12385 #include <fcntl.h>
12386 #include <sys/mman.h>
12388 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12389 char *malloc ();
12390 #endif
12392 /* This mess was copied from the GNU getpagesize.h. */
12393 #ifndef HAVE_GETPAGESIZE
12394 # ifdef _SC_PAGESIZE
12395 # define getpagesize() sysconf(_SC_PAGESIZE)
12396 # else /* no _SC_PAGESIZE */
12397 # ifdef HAVE_SYS_PARAM_H
12398 # include <sys/param.h>
12399 # ifdef EXEC_PAGESIZE
12400 # define getpagesize() EXEC_PAGESIZE
12401 # else /* no EXEC_PAGESIZE */
12402 # ifdef NBPG
12403 # define getpagesize() NBPG * CLSIZE
12404 # ifndef CLSIZE
12405 # define CLSIZE 1
12406 # endif /* no CLSIZE */
12407 # else /* no NBPG */
12408 # ifdef NBPC
12409 # define getpagesize() NBPC
12410 # else /* no NBPC */
12411 # ifdef PAGESIZE
12412 # define getpagesize() PAGESIZE
12413 # endif /* PAGESIZE */
12414 # endif /* no NBPC */
12415 # endif /* no NBPG */
12416 # endif /* no EXEC_PAGESIZE */
12417 # else /* no HAVE_SYS_PARAM_H */
12418 # define getpagesize() 8192 /* punt totally */
12419 # endif /* no HAVE_SYS_PARAM_H */
12420 # endif /* no _SC_PAGESIZE */
12422 #endif /* no HAVE_GETPAGESIZE */
12425 main ()
12427 char *data, *data2, *data3;
12428 int i, pagesize;
12429 int fd, fd2;
12431 pagesize = getpagesize ();
12433 /* First, make a file with some known garbage in it. */
12434 data = (char *) malloc (pagesize);
12435 if (!data)
12436 return 1;
12437 for (i = 0; i < pagesize; ++i)
12438 *(data + i) = rand ();
12439 umask (0);
12440 fd = creat ("conftest.mmap", 0600);
12441 if (fd < 0)
12442 return 2;
12443 if (write (fd, data, pagesize) != pagesize)
12444 return 3;
12445 close (fd);
12447 /* Next, check that the tail of a page is zero-filled. File must have
12448 non-zero length, otherwise we risk SIGBUS for entire page. */
12449 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12450 if (fd2 < 0)
12451 return 4;
12452 data2 = (char *) "";
12453 if (write (fd2, data2, 1) != 1)
12454 return 5;
12455 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12456 if (data2 == MAP_FAILED)
12457 return 6;
12458 for (i = 0; i < pagesize; ++i)
12459 if (*(data2 + i))
12460 return 7;
12461 close (fd2);
12462 if (munmap (data2, pagesize))
12463 return 8;
12465 /* Next, try to mmap the file at a fixed address which already has
12466 something else allocated at it. If we can, also make sure that
12467 we see the same garbage. */
12468 fd = open ("conftest.mmap", O_RDWR);
12469 if (fd < 0)
12470 return 9;
12471 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12472 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12473 return 10;
12474 for (i = 0; i < pagesize; ++i)
12475 if (*(data + i) != *(data2 + i))
12476 return 11;
12478 /* Finally, make sure that changes to the mapped area do not
12479 percolate back to the file as seen by read(). (This is a bug on
12480 some variants of i386 svr4.0.) */
12481 for (i = 0; i < pagesize; ++i)
12482 *(data2 + i) = *(data2 + i) + 1;
12483 data3 = (char *) malloc (pagesize);
12484 if (!data3)
12485 return 12;
12486 if (read (fd, data3, pagesize) != pagesize)
12487 return 13;
12488 for (i = 0; i < pagesize; ++i)
12489 if (*(data + i) != *(data3 + i))
12490 return 14;
12491 close (fd);
12492 return 0;
12494 _ACEOF
12495 if ac_fn_cxx_try_run "$LINENO"; then :
12496 ac_cv_func_mmap_fixed_mapped=yes
12497 else
12498 ac_cv_func_mmap_fixed_mapped=no
12500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12501 conftest.$ac_objext conftest.beam conftest.$ac_ext
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12506 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12507 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12509 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12512 rm -f conftest.mmap conftest.txt
12514 for ac_func in munmap sysconf
12515 do :
12516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12517 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12518 eval as_val=\$$as_ac_var
12519 if test "x$as_val" = x""yes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12522 _ACEOF
12525 done
12527 if test $ac_cv_func_sysconf = yes; then :
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12530 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12535 #include <unistd.h>
12538 main ()
12541 return sysconf(_SC_PAGESIZE);
12544 return 0;
12547 _ACEOF
12548 if ac_fn_cxx_try_link "$LINENO"; then :
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12551 $as_echo "_SC_PAGESIZE" >&6; }
12553 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12556 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12562 #include <unistd.h>
12565 main ()
12568 return sysconf(_SC_PAGE_SIZE);
12571 return 0;
12574 _ACEOF
12575 if ac_fn_cxx_try_link "$LINENO"; then :
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12578 $as_echo "_SC_PAGE_SIZE" >&6; }
12580 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12583 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12586 $as_echo "none" >&6; }
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12603 # Look for a way to preallocate disk space for files.
12604 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12607 $as_echo_n "checking for fallocate... " >&6; }
12608 mule_backup_CPPFLAGS="$CPPFLAGS"
12609 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12614 #ifndef _GNU_SOURCE
12615 # define _GNU_SOURCE
12616 #endif
12617 #ifdef HAVE_FCNTL_H
12618 # include <fcntl.h>
12619 #endif
12620 #include <linux/falloc.h>
12623 main ()
12626 fallocate(0, 0, 0, 0);
12629 return 0;
12632 _ACEOF
12633 if ac_fn_cxx_try_link "$LINENO"; then :
12636 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639 $as_echo "yes" >&6; }
12641 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 CPPFLAGS="$mule_backup_CPPFLAGS"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12653 $as_echo_n "checking for SYS_fallocate... " >&6; }
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12658 #include <sys/syscall.h>
12659 #include <sys/types.h>
12660 #include <unistd.h>
12663 main ()
12666 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12669 return 0;
12672 _ACEOF
12673 if ac_fn_cxx_try_link "$LINENO"; then :
12676 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12679 $as_echo "yes" >&6; }
12681 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12691 $as_echo_n "checking for posix_fallocate... " >&6; }
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12696 #define _XOPEN_SOURCE 600
12697 #include <stdlib.h>
12698 #ifdef HAVE_FCNTL_H
12699 # include <fcntl.h>
12700 #endif
12703 main ()
12706 posix_fallocate(0, 0, 0);
12709 return 0;
12712 _ACEOF
12713 if ac_fn_cxx_try_link "$LINENO"; then :
12716 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12719 $as_echo "yes" >&6; }
12721 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12733 ac_ext=c
12734 ac_cpp='$CPP $CPPFLAGS'
12735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739 # Checking Native Language Support
12742 MKINSTALLDIRS=
12743 if test -n "$ac_aux_dir"; then
12744 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12746 if test -z "$MKINSTALLDIRS"; then
12747 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12754 # Extract the first word of "msgfmt", so it can be a program name with args.
12755 set dummy msgfmt; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 case "$MSGFMT" in
12763 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12767 for ac_dir in $PATH; do
12768 test -z "$ac_dir" && ac_dir=.
12769 if test -f $ac_dir/$ac_word; then
12770 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12771 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12772 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12773 break
12776 done
12777 IFS="$ac_save_ifs"
12778 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12780 esac
12782 MSGFMT="$ac_cv_path_MSGFMT"
12783 if test "$MSGFMT" != ":"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12785 $as_echo "$MSGFMT" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12791 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12792 set dummy gmsgfmt; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 case $GMSGFMT in
12799 [\\/]* | ?:[\\/]*)
12800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12810 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12814 done
12815 done
12816 IFS=$as_save_IFS
12818 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12820 esac
12822 GMSGFMT=$ac_cv_path_GMSGFMT
12823 if test -n "$GMSGFMT"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12825 $as_echo "$GMSGFMT" >&6; }
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12833 # Extract the first word of "xgettext", so it can be a program name with args.
12834 set dummy xgettext; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 case "$XGETTEXT" in
12842 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12846 for ac_dir in $PATH; do
12847 test -z "$ac_dir" && ac_dir=.
12848 if test -f $ac_dir/$ac_word; then
12849 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12850 (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
12851 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12852 break
12855 done
12856 IFS="$ac_save_ifs"
12857 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12859 esac
12861 XGETTEXT="$ac_cv_path_XGETTEXT"
12862 if test "$XGETTEXT" != ":"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12864 $as_echo "$XGETTEXT" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12870 rm -f messages.po
12872 # Extract the first word of "msgmerge", so it can be a program name with args.
12873 set dummy msgmerge; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 case "$MSGMERGE" in
12881 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12885 for ac_dir in $PATH; do
12886 test -z "$ac_dir" && ac_dir=.
12887 if test -f $ac_dir/$ac_word; then
12888 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12889 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12890 break
12893 done
12894 IFS="$ac_save_ifs"
12895 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12897 esac
12899 MSGMERGE="$ac_cv_path_MSGMERGE"
12900 if test "$MSGMERGE" != ":"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12902 $as_echo "$MSGMERGE" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12909 if test "$GMSGFMT" != ":"; then
12910 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12911 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12913 else
12914 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12916 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12917 GMSGFMT=":"
12921 if test "$XGETTEXT" != ":"; then
12922 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12923 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12927 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12928 XGETTEXT=":"
12930 rm -f messages.po
12933 ac_config_commands="$ac_config_commands default-1"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12938 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12939 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lcposix $LIBS"
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 char strerror ();
12955 main ()
12957 return strerror ();
12959 return 0;
12961 _ACEOF
12962 if ac_fn_c_try_link "$LINENO"; then :
12963 ac_cv_lib_cposix_strerror=yes
12964 else
12965 ac_cv_lib_cposix_strerror=no
12967 rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12972 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12973 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12974 LIBS="$LIBS -lcposix"
12980 for ac_func in getpagesize
12981 do :
12982 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12983 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12984 cat >>confdefs.h <<_ACEOF
12985 #define HAVE_GETPAGESIZE 1
12986 _ACEOF
12989 done
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12992 $as_echo_n "checking for working mmap... " >&6; }
12993 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 if test "$cross_compiling" = yes; then :
12997 ac_cv_func_mmap_fixed_mapped=no
12998 else
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001 $ac_includes_default
13002 /* malloc might have been renamed as rpl_malloc. */
13003 #undef malloc
13005 /* Thanks to Mike Haertel and Jim Avera for this test.
13006 Here is a matrix of mmap possibilities:
13007 mmap private not fixed
13008 mmap private fixed at somewhere currently unmapped
13009 mmap private fixed at somewhere already mapped
13010 mmap shared not fixed
13011 mmap shared fixed at somewhere currently unmapped
13012 mmap shared fixed at somewhere already mapped
13013 For private mappings, we should verify that changes cannot be read()
13014 back from the file, nor mmap's back from the file at a different
13015 address. (There have been systems where private was not correctly
13016 implemented like the infamous i386 svr4.0, and systems where the
13017 VM page cache was not coherent with the file system buffer cache
13018 like early versions of FreeBSD and possibly contemporary NetBSD.)
13019 For shared mappings, we should conversely verify that changes get
13020 propagated back to all the places they're supposed to be.
13022 Grep wants private fixed already mapped.
13023 The main things grep needs to know about mmap are:
13024 * does it exist and is it safe to write into the mmap'd area
13025 * how to use it (BSD variants) */
13027 #include <fcntl.h>
13028 #include <sys/mman.h>
13030 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13031 char *malloc ();
13032 #endif
13034 /* This mess was copied from the GNU getpagesize.h. */
13035 #ifndef HAVE_GETPAGESIZE
13036 # ifdef _SC_PAGESIZE
13037 # define getpagesize() sysconf(_SC_PAGESIZE)
13038 # else /* no _SC_PAGESIZE */
13039 # ifdef HAVE_SYS_PARAM_H
13040 # include <sys/param.h>
13041 # ifdef EXEC_PAGESIZE
13042 # define getpagesize() EXEC_PAGESIZE
13043 # else /* no EXEC_PAGESIZE */
13044 # ifdef NBPG
13045 # define getpagesize() NBPG * CLSIZE
13046 # ifndef CLSIZE
13047 # define CLSIZE 1
13048 # endif /* no CLSIZE */
13049 # else /* no NBPG */
13050 # ifdef NBPC
13051 # define getpagesize() NBPC
13052 # else /* no NBPC */
13053 # ifdef PAGESIZE
13054 # define getpagesize() PAGESIZE
13055 # endif /* PAGESIZE */
13056 # endif /* no NBPC */
13057 # endif /* no NBPG */
13058 # endif /* no EXEC_PAGESIZE */
13059 # else /* no HAVE_SYS_PARAM_H */
13060 # define getpagesize() 8192 /* punt totally */
13061 # endif /* no HAVE_SYS_PARAM_H */
13062 # endif /* no _SC_PAGESIZE */
13064 #endif /* no HAVE_GETPAGESIZE */
13067 main ()
13069 char *data, *data2, *data3;
13070 int i, pagesize;
13071 int fd, fd2;
13073 pagesize = getpagesize ();
13075 /* First, make a file with some known garbage in it. */
13076 data = (char *) malloc (pagesize);
13077 if (!data)
13078 return 1;
13079 for (i = 0; i < pagesize; ++i)
13080 *(data + i) = rand ();
13081 umask (0);
13082 fd = creat ("conftest.mmap", 0600);
13083 if (fd < 0)
13084 return 2;
13085 if (write (fd, data, pagesize) != pagesize)
13086 return 3;
13087 close (fd);
13089 /* Next, check that the tail of a page is zero-filled. File must have
13090 non-zero length, otherwise we risk SIGBUS for entire page. */
13091 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13092 if (fd2 < 0)
13093 return 4;
13094 data2 = "";
13095 if (write (fd2, data2, 1) != 1)
13096 return 5;
13097 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13098 if (data2 == MAP_FAILED)
13099 return 6;
13100 for (i = 0; i < pagesize; ++i)
13101 if (*(data2 + i))
13102 return 7;
13103 close (fd2);
13104 if (munmap (data2, pagesize))
13105 return 8;
13107 /* Next, try to mmap the file at a fixed address which already has
13108 something else allocated at it. If we can, also make sure that
13109 we see the same garbage. */
13110 fd = open ("conftest.mmap", O_RDWR);
13111 if (fd < 0)
13112 return 9;
13113 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13114 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13115 return 10;
13116 for (i = 0; i < pagesize; ++i)
13117 if (*(data + i) != *(data2 + i))
13118 return 11;
13120 /* Finally, make sure that changes to the mapped area do not
13121 percolate back to the file as seen by read(). (This is a bug on
13122 some variants of i386 svr4.0.) */
13123 for (i = 0; i < pagesize; ++i)
13124 *(data2 + i) = *(data2 + i) + 1;
13125 data3 = (char *) malloc (pagesize);
13126 if (!data3)
13127 return 12;
13128 if (read (fd, data3, pagesize) != pagesize)
13129 return 13;
13130 for (i = 0; i < pagesize; ++i)
13131 if (*(data + i) != *(data3 + i))
13132 return 14;
13133 close (fd);
13134 return 0;
13136 _ACEOF
13137 if ac_fn_c_try_run "$LINENO"; then :
13138 ac_cv_func_mmap_fixed_mapped=yes
13139 else
13140 ac_cv_func_mmap_fixed_mapped=no
13142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13143 conftest.$ac_objext conftest.beam conftest.$ac_ext
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13148 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13149 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13151 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13154 rm -f conftest.mmap conftest.txt
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13158 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13159 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 #include <features.h>
13166 #ifdef __GNU_LIBRARY__
13167 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13168 Lucky GNU user
13169 #endif
13170 #endif
13172 _ACEOF
13173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13174 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13175 ac_cv_gnu_library_2_1=yes
13176 else
13177 ac_cv_gnu_library_2_1=no
13179 rm -f conftest*
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13185 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13187 GLIBC21="$ac_cv_gnu_library_2_1"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13193 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13194 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13198 if test "$cross_compiling" = yes; then :
13200 # Guess based on the CPU.
13201 case "$host_cpu" in
13202 alpha* | i3456786 | m68k | s390*)
13203 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13205 gt_cv_int_divbyzero_sigfpe="guessing no";;
13206 esac
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 #include <stdlib.h>
13213 #include <signal.h>
13215 static void
13216 #ifdef __cplusplus
13217 sigfpe_handler (int sig)
13218 #else
13219 sigfpe_handler (sig) int sig;
13220 #endif
13222 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13223 exit (sig != SIGFPE);
13226 int x = 1;
13227 int y = 0;
13228 int z;
13229 int nan;
13231 int main ()
13233 signal (SIGFPE, sigfpe_handler);
13234 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13235 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13236 signal (SIGTRAP, sigfpe_handler);
13237 #endif
13238 /* Linux/SPARC yields signal SIGILL. */
13239 #if defined (__sparc__) && defined (__linux__)
13240 signal (SIGILL, sigfpe_handler);
13241 #endif
13243 z = x / y;
13244 nan = y / y;
13245 exit (1);
13248 _ACEOF
13249 if ac_fn_c_try_run "$LINENO"; then :
13250 gt_cv_int_divbyzero_sigfpe=yes
13251 else
13252 gt_cv_int_divbyzero_sigfpe=no
13254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13255 conftest.$ac_objext conftest.beam conftest.$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13261 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13262 case "$gt_cv_int_divbyzero_sigfpe" in
13263 *yes) value=1;;
13264 *) value=0;;
13265 esac
13267 cat >>confdefs.h <<_ACEOF
13268 #define INTDIV0_RAISES_SIGFPE $value
13269 _ACEOF
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13274 $as_echo_n "checking for inttypes.h... " >&6; }
13275 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <sys/types.h>
13281 #include <inttypes.h>
13283 main ()
13285 uintmax_t i = (uintmax_t) -1;
13287 return 0;
13289 _ACEOF
13290 if ac_fn_c_try_compile "$LINENO"; then :
13291 jm_ac_cv_header_inttypes_h=yes
13292 else
13293 jm_ac_cv_header_inttypes_h=no
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13298 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13299 if test $jm_ac_cv_header_inttypes_h = yes; then
13301 cat >>confdefs.h <<_ACEOF
13302 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13303 _ACEOF
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13309 $as_echo_n "checking for stdint.h... " >&6; }
13310 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #include <sys/types.h>
13316 #include <stdint.h>
13318 main ()
13320 uintmax_t i = (uintmax_t) -1;
13322 return 0;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 jm_ac_cv_header_stdint_h=yes
13327 else
13328 jm_ac_cv_header_stdint_h=no
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13333 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13334 if test $jm_ac_cv_header_stdint_h = yes; then
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_STDINT_H_WITH_UINTMAX 1
13338 _ACEOF
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13344 $as_echo_n "checking for unsigned long long... " >&6; }
13345 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 unsigned long long ull = 1; int i = 63;
13352 main ()
13354 unsigned long long ullmax = (unsigned long long) -1;
13355 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13357 return 0;
13359 _ACEOF
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 ac_cv_type_unsigned_long_long=yes
13362 else
13363 ac_cv_type_unsigned_long_long=no
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13369 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13370 if test $ac_cv_type_unsigned_long_long = yes; then
13372 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13379 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13381 test $ac_cv_type_unsigned_long_long = yes \
13382 && ac_type='unsigned long long' \
13383 || ac_type='unsigned long'
13385 cat >>confdefs.h <<_ACEOF
13386 #define uintmax_t $ac_type
13387 _ACEOF
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13393 $as_echo_n "checking for inttypes.h... " >&6; }
13394 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #include <sys/types.h>
13401 #include <inttypes.h>
13403 main ()
13407 return 0;
13409 _ACEOF
13410 if ac_fn_c_try_compile "$LINENO"; then :
13411 gt_cv_header_inttypes_h=yes
13412 else
13413 gt_cv_header_inttypes_h=no
13415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13419 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13420 if test $gt_cv_header_inttypes_h = yes; then
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_INTTYPES_H 1
13424 _ACEOF
13430 if test $gt_cv_header_inttypes_h = yes; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13432 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13433 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 #include <inttypes.h>
13440 #ifdef PRId32
13441 char *p = PRId32;
13442 #endif
13445 main ()
13449 return 0;
13451 _ACEOF
13452 if ac_fn_c_try_compile "$LINENO"; then :
13453 gt_cv_inttypes_pri_broken=no
13454 else
13455 gt_cv_inttypes_pri_broken=yes
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13461 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13463 if test "$gt_cv_inttypes_pri_broken" = yes; then
13465 cat >>confdefs.h <<_ACEOF
13466 #define PRI_MACROS_BROKEN 1
13467 _ACEOF
13472 if test "X$prefix" = "XNONE"; then
13473 acl_final_prefix="$ac_default_prefix"
13474 else
13475 acl_final_prefix="$prefix"
13477 if test "X$exec_prefix" = "XNONE"; then
13478 acl_final_exec_prefix='${prefix}'
13479 else
13480 acl_final_exec_prefix="$exec_prefix"
13482 acl_save_prefix="$prefix"
13483 prefix="$acl_final_prefix"
13484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13485 prefix="$acl_save_prefix"
13488 # Check whether --with-gnu-ld was given.
13489 if test "${with_gnu_ld+set}" = set; then :
13490 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13491 else
13492 with_gnu_ld=no
13495 ac_prog=ld
13496 if test "$GCC" = yes; then
13497 # Check if gcc -print-prog-name=ld gives a path.
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13499 $as_echo_n "checking for ld used by GCC... " >&6; }
13500 case $host in
13501 *-*-mingw*)
13502 # gcc leaves a trailing carriage return which upsets mingw
13503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13505 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13506 esac
13507 case $ac_prog in
13508 # Accept absolute paths.
13509 [\\/]* | [A-Za-z]:[\\/]*)
13510 re_direlt='/[^/][^/]*/\.\./'
13511 # Canonicalize the path of ld
13512 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13513 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13514 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13515 done
13516 test -z "$LD" && LD="$ac_prog"
13519 # If it fails, then pretend we aren't using GCC.
13520 ac_prog=ld
13523 # If it is relative, then search for the first ld in PATH.
13524 with_gnu_ld=unknown
13526 esac
13527 elif test "$with_gnu_ld" = yes; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13529 $as_echo_n "checking for GNU ld... " >&6; }
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13532 $as_echo_n "checking for non-GNU ld... " >&6; }
13534 if test "${acl_cv_path_LD+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 if test -z "$LD"; then
13538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13539 for ac_dir in $PATH; do
13540 test -z "$ac_dir" && ac_dir=.
13541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13542 acl_cv_path_LD="$ac_dir/$ac_prog"
13543 # Check to see if the program is GNU ld. I'd rather use --version,
13544 # but apparently some GNU ld's only accept -v.
13545 # Break only if it was the GNU/non-GNU ld that we prefer.
13546 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13547 test "$with_gnu_ld" != no && break
13548 else
13549 test "$with_gnu_ld" != yes && break
13552 done
13553 IFS="$ac_save_ifs"
13554 else
13555 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13559 LD="$acl_cv_path_LD"
13560 if test -n "$LD"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13562 $as_echo "$LD" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13567 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13569 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13570 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13574 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13575 acl_cv_prog_gnu_ld=yes
13576 else
13577 acl_cv_prog_gnu_ld=no
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13581 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13582 with_gnu_ld=$acl_cv_prog_gnu_ld
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13587 $as_echo_n "checking for shared library run path origin... " >&6; }
13588 if test "${acl_cv_rpath+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13592 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13593 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13594 . ./conftest.sh
13595 rm -f ./conftest.sh
13596 acl_cv_rpath=done
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13600 $as_echo "$acl_cv_rpath" >&6; }
13601 wl="$acl_cv_wl"
13602 libext="$acl_cv_libext"
13603 shlibext="$acl_cv_shlibext"
13604 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13605 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13606 hardcode_direct="$acl_cv_hardcode_direct"
13607 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13608 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13609 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13610 # Check whether --enable-rpath was given.
13611 if test "${enable_rpath+set}" = set; then :
13612 enableval=$enable_rpath; :
13613 else
13614 enable_rpath=yes
13624 use_additional=yes
13626 acl_save_prefix="$prefix"
13627 prefix="$acl_final_prefix"
13628 acl_save_exec_prefix="$exec_prefix"
13629 exec_prefix="$acl_final_exec_prefix"
13631 eval additional_includedir=\"$includedir\"
13632 eval additional_libdir=\"$libdir\"
13634 exec_prefix="$acl_save_exec_prefix"
13635 prefix="$acl_save_prefix"
13638 # Check whether --with-libiconv-prefix was given.
13639 if test "${with_libiconv_prefix+set}" = set; then :
13640 withval=$with_libiconv_prefix;
13641 if test "X$withval" = "Xno"; then
13642 use_additional=no
13643 else
13644 if test "X$withval" = "X"; then
13646 acl_save_prefix="$prefix"
13647 prefix="$acl_final_prefix"
13648 acl_save_exec_prefix="$exec_prefix"
13649 exec_prefix="$acl_final_exec_prefix"
13651 eval additional_includedir=\"$includedir\"
13652 eval additional_libdir=\"$libdir\"
13654 exec_prefix="$acl_save_exec_prefix"
13655 prefix="$acl_save_prefix"
13657 else
13658 additional_includedir="$withval/include"
13659 additional_libdir="$withval/lib"
13665 LIBICONV=
13666 LTLIBICONV=
13667 INCICONV=
13668 rpathdirs=
13669 ltrpathdirs=
13670 names_already_handled=
13671 names_next_round='iconv '
13672 while test -n "$names_next_round"; do
13673 names_this_round="$names_next_round"
13674 names_next_round=
13675 for name in $names_this_round; do
13676 already_handled=
13677 for n in $names_already_handled; do
13678 if test "$n" = "$name"; then
13679 already_handled=yes
13680 break
13682 done
13683 if test -z "$already_handled"; then
13684 names_already_handled="$names_already_handled $name"
13685 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13686 eval value=\"\$HAVE_LIB$uppername\"
13687 if test -n "$value"; then
13688 if test "$value" = yes; then
13689 eval value=\"\$LIB$uppername\"
13690 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13691 eval value=\"\$LTLIB$uppername\"
13692 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13693 else
13696 else
13697 found_dir=
13698 found_la=
13699 found_so=
13700 found_a=
13701 if test $use_additional = yes; then
13702 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13703 found_dir="$additional_libdir"
13704 found_so="$additional_libdir/lib$name.$shlibext"
13705 if test -f "$additional_libdir/lib$name.la"; then
13706 found_la="$additional_libdir/lib$name.la"
13708 else
13709 if test -f "$additional_libdir/lib$name.$libext"; then
13710 found_dir="$additional_libdir"
13711 found_a="$additional_libdir/lib$name.$libext"
13712 if test -f "$additional_libdir/lib$name.la"; then
13713 found_la="$additional_libdir/lib$name.la"
13718 if test "X$found_dir" = "X"; then
13719 for x in $LDFLAGS $LTLIBICONV; do
13721 acl_save_prefix="$prefix"
13722 prefix="$acl_final_prefix"
13723 acl_save_exec_prefix="$exec_prefix"
13724 exec_prefix="$acl_final_exec_prefix"
13725 eval x=\"$x\"
13726 exec_prefix="$acl_save_exec_prefix"
13727 prefix="$acl_save_prefix"
13729 case "$x" in
13730 -L*)
13731 dir=`echo "X$x" | sed -e 's/^X-L//'`
13732 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13733 found_dir="$dir"
13734 found_so="$dir/lib$name.$shlibext"
13735 if test -f "$dir/lib$name.la"; then
13736 found_la="$dir/lib$name.la"
13738 else
13739 if test -f "$dir/lib$name.$libext"; then
13740 found_dir="$dir"
13741 found_a="$dir/lib$name.$libext"
13742 if test -f "$dir/lib$name.la"; then
13743 found_la="$dir/lib$name.la"
13748 esac
13749 if test "X$found_dir" != "X"; then
13750 break
13752 done
13754 if test "X$found_dir" != "X"; then
13755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13756 if test "X$found_so" != "X"; then
13757 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13759 else
13760 haveit=
13761 for x in $ltrpathdirs; do
13762 if test "X$x" = "X$found_dir"; then
13763 haveit=yes
13764 break
13766 done
13767 if test -z "$haveit"; then
13768 ltrpathdirs="$ltrpathdirs $found_dir"
13770 if test "$hardcode_direct" = yes; then
13771 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13772 else
13773 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13775 haveit=
13776 for x in $rpathdirs; do
13777 if test "X$x" = "X$found_dir"; then
13778 haveit=yes
13779 break
13781 done
13782 if test -z "$haveit"; then
13783 rpathdirs="$rpathdirs $found_dir"
13785 else
13786 haveit=
13787 for x in $LDFLAGS $LIBICONV; do
13789 acl_save_prefix="$prefix"
13790 prefix="$acl_final_prefix"
13791 acl_save_exec_prefix="$exec_prefix"
13792 exec_prefix="$acl_final_exec_prefix"
13793 eval x=\"$x\"
13794 exec_prefix="$acl_save_exec_prefix"
13795 prefix="$acl_save_prefix"
13797 if test "X$x" = "X-L$found_dir"; then
13798 haveit=yes
13799 break
13801 done
13802 if test -z "$haveit"; then
13803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13805 if test "$hardcode_minus_L" != no; then
13806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13807 else
13808 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13813 else
13814 if test "X$found_a" != "X"; then
13815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13816 else
13817 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13820 additional_includedir=
13821 case "$found_dir" in
13822 */lib | */lib/)
13823 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13824 additional_includedir="$basedir/include"
13826 esac
13827 if test "X$additional_includedir" != "X"; then
13828 if test "X$additional_includedir" != "X/usr/include"; then
13829 haveit=
13830 if test "X$additional_includedir" = "X/usr/local/include"; then
13831 if test -n "$GCC"; then
13832 case $host_os in
13833 linux*) haveit=yes;;
13834 esac
13837 if test -z "$haveit"; then
13838 for x in $CPPFLAGS $INCICONV; do
13840 acl_save_prefix="$prefix"
13841 prefix="$acl_final_prefix"
13842 acl_save_exec_prefix="$exec_prefix"
13843 exec_prefix="$acl_final_exec_prefix"
13844 eval x=\"$x\"
13845 exec_prefix="$acl_save_exec_prefix"
13846 prefix="$acl_save_prefix"
13848 if test "X$x" = "X-I$additional_includedir"; then
13849 haveit=yes
13850 break
13852 done
13853 if test -z "$haveit"; then
13854 if test -d "$additional_includedir"; then
13855 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13861 if test -n "$found_la"; then
13862 save_libdir="$libdir"
13863 case "$found_la" in
13864 */* | *\\*) . "$found_la" ;;
13865 *) . "./$found_la" ;;
13866 esac
13867 libdir="$save_libdir"
13868 for dep in $dependency_libs; do
13869 case "$dep" in
13870 -L*)
13871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13872 if test "X$additional_libdir" != "X/usr/lib"; then
13873 haveit=
13874 if test "X$additional_libdir" = "X/usr/local/lib"; then
13875 if test -n "$GCC"; then
13876 case $host_os in
13877 linux*) haveit=yes;;
13878 esac
13881 if test -z "$haveit"; then
13882 haveit=
13883 for x in $LDFLAGS $LIBICONV; do
13885 acl_save_prefix="$prefix"
13886 prefix="$acl_final_prefix"
13887 acl_save_exec_prefix="$exec_prefix"
13888 exec_prefix="$acl_final_exec_prefix"
13889 eval x=\"$x\"
13890 exec_prefix="$acl_save_exec_prefix"
13891 prefix="$acl_save_prefix"
13893 if test "X$x" = "X-L$additional_libdir"; then
13894 haveit=yes
13895 break
13897 done
13898 if test -z "$haveit"; then
13899 if test -d "$additional_libdir"; then
13900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13903 haveit=
13904 for x in $LDFLAGS $LTLIBICONV; do
13906 acl_save_prefix="$prefix"
13907 prefix="$acl_final_prefix"
13908 acl_save_exec_prefix="$exec_prefix"
13909 exec_prefix="$acl_final_exec_prefix"
13910 eval x=\"$x\"
13911 exec_prefix="$acl_save_exec_prefix"
13912 prefix="$acl_save_prefix"
13914 if test "X$x" = "X-L$additional_libdir"; then
13915 haveit=yes
13916 break
13918 done
13919 if test -z "$haveit"; then
13920 if test -d "$additional_libdir"; then
13921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13927 -R*)
13928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13929 if test "$enable_rpath" != no; then
13930 haveit=
13931 for x in $rpathdirs; do
13932 if test "X$x" = "X$dir"; then
13933 haveit=yes
13934 break
13936 done
13937 if test -z "$haveit"; then
13938 rpathdirs="$rpathdirs $dir"
13940 haveit=
13941 for x in $ltrpathdirs; do
13942 if test "X$x" = "X$dir"; then
13943 haveit=yes
13944 break
13946 done
13947 if test -z "$haveit"; then
13948 ltrpathdirs="$ltrpathdirs $dir"
13952 -l*)
13953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13955 *.la)
13956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13959 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13962 esac
13963 done
13965 else
13966 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13971 done
13972 done
13973 if test "X$rpathdirs" != "X"; then
13974 if test -n "$hardcode_libdir_separator"; then
13975 alldirs=
13976 for found_dir in $rpathdirs; do
13977 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13978 done
13979 acl_save_libdir="$libdir"
13980 libdir="$alldirs"
13981 eval flag=\"$hardcode_libdir_flag_spec\"
13982 libdir="$acl_save_libdir"
13983 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13984 else
13985 for found_dir in $rpathdirs; do
13986 acl_save_libdir="$libdir"
13987 libdir="$found_dir"
13988 eval flag=\"$hardcode_libdir_flag_spec\"
13989 libdir="$acl_save_libdir"
13990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13991 done
13994 if test "X$ltrpathdirs" != "X"; then
13995 for found_dir in $ltrpathdirs; do
13996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13997 done
14003 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14004 stdlib.h string.h unistd.h sys/param.h
14005 do :
14006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14008 eval as_val=\$$as_ac_Header
14009 if test "x$as_val" = x""yes; then :
14010 cat >>confdefs.h <<_ACEOF
14011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14012 _ACEOF
14016 done
14018 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14019 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14020 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14021 do :
14022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14024 eval as_val=\$$as_ac_var
14025 if test "x$as_val" = x""yes; then :
14026 cat >>confdefs.h <<_ACEOF
14027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14028 _ACEOF
14031 done
14039 am_save_CPPFLAGS="$CPPFLAGS"
14041 for element in $INCICONV; do
14042 haveit=
14043 for x in $CPPFLAGS; do
14045 acl_save_prefix="$prefix"
14046 prefix="$acl_final_prefix"
14047 acl_save_exec_prefix="$exec_prefix"
14048 exec_prefix="$acl_final_exec_prefix"
14049 eval x=\"$x\"
14050 exec_prefix="$acl_save_exec_prefix"
14051 prefix="$acl_save_prefix"
14053 if test "X$x" = "X$element"; then
14054 haveit=yes
14055 break
14057 done
14058 if test -z "$haveit"; then
14059 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14061 done
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14065 $as_echo_n "checking for iconv... " >&6; }
14066 if test "${am_cv_func_iconv+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14070 am_cv_func_iconv="no, consider installing GNU libiconv"
14071 am_cv_lib_iconv=no
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 #include <stdlib.h>
14075 #include <iconv.h>
14077 main ()
14079 iconv_t cd = iconv_open("","");
14080 iconv(cd,NULL,NULL,NULL,NULL);
14081 iconv_close(cd);
14083 return 0;
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 am_cv_func_iconv=yes
14089 rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14091 if test "$am_cv_func_iconv" != yes; then
14092 am_save_LIBS="$LIBS"
14093 LIBS="$LIBS $LIBICONV"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 #include <stdlib.h>
14097 #include <iconv.h>
14099 main ()
14101 iconv_t cd = iconv_open("","");
14102 iconv(cd,NULL,NULL,NULL,NULL);
14103 iconv_close(cd);
14105 return 0;
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 am_cv_lib_iconv=yes
14110 am_cv_func_iconv=yes
14112 rm -f core conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114 LIBS="$am_save_LIBS"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14119 $as_echo "$am_cv_func_iconv" >&6; }
14120 if test "$am_cv_func_iconv" = yes; then
14122 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14125 if test "$am_cv_lib_iconv" = yes; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14127 $as_echo_n "checking how to link with libiconv... " >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14129 $as_echo "$LIBICONV" >&6; }
14130 else
14131 CPPFLAGS="$am_save_CPPFLAGS"
14132 LIBICONV=
14133 LTLIBICONV=
14138 if test "$am_cv_func_iconv" = yes; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14140 $as_echo_n "checking for iconv declaration... " >&6; }
14141 if test "${am_cv_proto_iconv+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 #include <stdlib.h>
14149 #include <iconv.h>
14150 extern
14151 #ifdef __cplusplus
14153 #endif
14154 #if defined(__STDC__) || defined(__cplusplus)
14155 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14156 #else
14157 size_t iconv();
14158 #endif
14161 main ()
14165 return 0;
14167 _ACEOF
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169 am_cv_proto_iconv_arg1=""
14170 else
14171 am_cv_proto_iconv_arg1="const"
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 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);"
14177 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14179 }$am_cv_proto_iconv" >&5
14180 $as_echo "${ac_t:-
14181 }$am_cv_proto_iconv" >&6; }
14183 cat >>confdefs.h <<_ACEOF
14184 #define ICONV_CONST $am_cv_proto_iconv_arg1
14185 _ACEOF
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14191 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14192 if test "${am_cv_langinfo_codeset+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
14194 else
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #include <langinfo.h>
14199 main ()
14201 char* cs = nl_langinfo(CODESET);
14203 return 0;
14205 _ACEOF
14206 if ac_fn_c_try_link "$LINENO"; then :
14207 am_cv_langinfo_codeset=yes
14208 else
14209 am_cv_langinfo_codeset=no
14211 rm -f core conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14216 $as_echo "$am_cv_langinfo_codeset" >&6; }
14217 if test $am_cv_langinfo_codeset = yes; then
14219 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14223 if test $ac_cv_header_locale_h = yes; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14226 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14227 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #include <locale.h>
14234 main ()
14236 return LC_MESSAGES
14238 return 0;
14240 _ACEOF
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 am_cv_val_LC_MESSAGES=yes
14243 else
14244 am_cv_val_LC_MESSAGES=no
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14250 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14251 if test $am_cv_val_LC_MESSAGES = yes; then
14253 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14259 for ac_prog in bison
14261 # Extract the first word of "$ac_prog", so it can be a program name with args.
14262 set dummy $ac_prog; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264 $as_echo_n "checking for $ac_word... " >&6; }
14265 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
14266 $as_echo_n "(cached) " >&6
14267 else
14268 if test -n "$INTLBISON"; then
14269 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14270 else
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14274 IFS=$as_save_IFS
14275 test -z "$as_dir" && as_dir=.
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14278 ac_cv_prog_INTLBISON="$ac_prog"
14279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280 break 2
14282 done
14283 done
14284 IFS=$as_save_IFS
14288 INTLBISON=$ac_cv_prog_INTLBISON
14289 if test -n "$INTLBISON"; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14291 $as_echo "$INTLBISON" >&6; }
14292 else
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14298 test -n "$INTLBISON" && break
14299 done
14301 if test -z "$INTLBISON"; then
14302 ac_verc_fail=yes
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14305 $as_echo_n "checking version of bison... " >&6; }
14306 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14307 case $ac_prog_version in
14308 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14309 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14310 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14311 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14312 esac
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14314 $as_echo "$ac_prog_version" >&6; }
14316 if test $ac_verc_fail = yes; then
14317 INTLBISON=:
14322 # Check whether --with-language was given.
14323 if test "${with_language+set}" = set; then :
14324 withval=$with_language; if test "$withval" != "all"; then :
14325 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14345 $as_echo_n "checking whether NLS is requested... " >&6; }
14346 # Check whether --enable-nls was given.
14347 if test "${enable_nls+set}" = set; then :
14348 enableval=$enable_nls; USE_NLS=$enableval
14349 else
14350 USE_NLS=yes
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14354 $as_echo "$USE_NLS" >&6; }
14358 BUILD_INCLUDED_LIBINTL=no
14359 USE_INCLUDED_LIBINTL=no
14361 LIBINTL=
14362 LTLIBINTL=
14363 POSUB=
14365 if test "$USE_NLS" = "yes"; then
14366 gt_use_preinstalled_gnugettext=no
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14369 $as_echo_n "checking whether included gettext is requested... " >&6; }
14371 # Check whether --with-included-gettext was given.
14372 if test "${with_included_gettext+set}" = set; then :
14373 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14374 else
14375 nls_cv_force_use_gnu_gettext=no
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14379 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14381 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14382 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14390 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14391 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 #include <libintl.h>
14397 extern int _nl_msg_cat_cntr;
14398 extern int *_nl_domain_bindings;
14400 main ()
14402 bindtextdomain ("", "");
14403 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14405 return 0;
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 gt_cv_func_gnugettext2_libc=yes
14410 else
14411 gt_cv_func_gnugettext2_libc=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14417 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14419 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14423 use_additional=yes
14425 acl_save_prefix="$prefix"
14426 prefix="$acl_final_prefix"
14427 acl_save_exec_prefix="$exec_prefix"
14428 exec_prefix="$acl_final_exec_prefix"
14430 eval additional_includedir=\"$includedir\"
14431 eval additional_libdir=\"$libdir\"
14433 exec_prefix="$acl_save_exec_prefix"
14434 prefix="$acl_save_prefix"
14437 # Check whether --with-libintl-prefix was given.
14438 if test "${with_libintl_prefix+set}" = set; then :
14439 withval=$with_libintl_prefix;
14440 if test "X$withval" = "Xno"; then
14441 use_additional=no
14442 else
14443 if test "X$withval" = "X"; then
14445 acl_save_prefix="$prefix"
14446 prefix="$acl_final_prefix"
14447 acl_save_exec_prefix="$exec_prefix"
14448 exec_prefix="$acl_final_exec_prefix"
14450 eval additional_includedir=\"$includedir\"
14451 eval additional_libdir=\"$libdir\"
14453 exec_prefix="$acl_save_exec_prefix"
14454 prefix="$acl_save_prefix"
14456 else
14457 additional_includedir="$withval/include"
14458 additional_libdir="$withval/lib"
14464 LIBINTL=
14465 LTLIBINTL=
14466 INCINTL=
14467 rpathdirs=
14468 ltrpathdirs=
14469 names_already_handled=
14470 names_next_round='intl '
14471 while test -n "$names_next_round"; do
14472 names_this_round="$names_next_round"
14473 names_next_round=
14474 for name in $names_this_round; do
14475 already_handled=
14476 for n in $names_already_handled; do
14477 if test "$n" = "$name"; then
14478 already_handled=yes
14479 break
14481 done
14482 if test -z "$already_handled"; then
14483 names_already_handled="$names_already_handled $name"
14484 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14485 eval value=\"\$HAVE_LIB$uppername\"
14486 if test -n "$value"; then
14487 if test "$value" = yes; then
14488 eval value=\"\$LIB$uppername\"
14489 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14490 eval value=\"\$LTLIB$uppername\"
14491 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14492 else
14495 else
14496 found_dir=
14497 found_la=
14498 found_so=
14499 found_a=
14500 if test $use_additional = yes; then
14501 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14502 found_dir="$additional_libdir"
14503 found_so="$additional_libdir/lib$name.$shlibext"
14504 if test -f "$additional_libdir/lib$name.la"; then
14505 found_la="$additional_libdir/lib$name.la"
14507 else
14508 if test -f "$additional_libdir/lib$name.$libext"; then
14509 found_dir="$additional_libdir"
14510 found_a="$additional_libdir/lib$name.$libext"
14511 if test -f "$additional_libdir/lib$name.la"; then
14512 found_la="$additional_libdir/lib$name.la"
14517 if test "X$found_dir" = "X"; then
14518 for x in $LDFLAGS $LTLIBINTL; do
14520 acl_save_prefix="$prefix"
14521 prefix="$acl_final_prefix"
14522 acl_save_exec_prefix="$exec_prefix"
14523 exec_prefix="$acl_final_exec_prefix"
14524 eval x=\"$x\"
14525 exec_prefix="$acl_save_exec_prefix"
14526 prefix="$acl_save_prefix"
14528 case "$x" in
14529 -L*)
14530 dir=`echo "X$x" | sed -e 's/^X-L//'`
14531 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14532 found_dir="$dir"
14533 found_so="$dir/lib$name.$shlibext"
14534 if test -f "$dir/lib$name.la"; then
14535 found_la="$dir/lib$name.la"
14537 else
14538 if test -f "$dir/lib$name.$libext"; then
14539 found_dir="$dir"
14540 found_a="$dir/lib$name.$libext"
14541 if test -f "$dir/lib$name.la"; then
14542 found_la="$dir/lib$name.la"
14547 esac
14548 if test "X$found_dir" != "X"; then
14549 break
14551 done
14553 if test "X$found_dir" != "X"; then
14554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14555 if test "X$found_so" != "X"; then
14556 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14557 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14558 else
14559 haveit=
14560 for x in $ltrpathdirs; do
14561 if test "X$x" = "X$found_dir"; then
14562 haveit=yes
14563 break
14565 done
14566 if test -z "$haveit"; then
14567 ltrpathdirs="$ltrpathdirs $found_dir"
14569 if test "$hardcode_direct" = yes; then
14570 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14571 else
14572 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14573 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14574 haveit=
14575 for x in $rpathdirs; do
14576 if test "X$x" = "X$found_dir"; then
14577 haveit=yes
14578 break
14580 done
14581 if test -z "$haveit"; then
14582 rpathdirs="$rpathdirs $found_dir"
14584 else
14585 haveit=
14586 for x in $LDFLAGS $LIBINTL; do
14588 acl_save_prefix="$prefix"
14589 prefix="$acl_final_prefix"
14590 acl_save_exec_prefix="$exec_prefix"
14591 exec_prefix="$acl_final_exec_prefix"
14592 eval x=\"$x\"
14593 exec_prefix="$acl_save_exec_prefix"
14594 prefix="$acl_save_prefix"
14596 if test "X$x" = "X-L$found_dir"; then
14597 haveit=yes
14598 break
14600 done
14601 if test -z "$haveit"; then
14602 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14604 if test "$hardcode_minus_L" != no; then
14605 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14606 else
14607 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14612 else
14613 if test "X$found_a" != "X"; then
14614 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14615 else
14616 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14619 additional_includedir=
14620 case "$found_dir" in
14621 */lib | */lib/)
14622 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14623 additional_includedir="$basedir/include"
14625 esac
14626 if test "X$additional_includedir" != "X"; then
14627 if test "X$additional_includedir" != "X/usr/include"; then
14628 haveit=
14629 if test "X$additional_includedir" = "X/usr/local/include"; then
14630 if test -n "$GCC"; then
14631 case $host_os in
14632 linux*) haveit=yes;;
14633 esac
14636 if test -z "$haveit"; then
14637 for x in $CPPFLAGS $INCINTL; do
14639 acl_save_prefix="$prefix"
14640 prefix="$acl_final_prefix"
14641 acl_save_exec_prefix="$exec_prefix"
14642 exec_prefix="$acl_final_exec_prefix"
14643 eval x=\"$x\"
14644 exec_prefix="$acl_save_exec_prefix"
14645 prefix="$acl_save_prefix"
14647 if test "X$x" = "X-I$additional_includedir"; then
14648 haveit=yes
14649 break
14651 done
14652 if test -z "$haveit"; then
14653 if test -d "$additional_includedir"; then
14654 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14660 if test -n "$found_la"; then
14661 save_libdir="$libdir"
14662 case "$found_la" in
14663 */* | *\\*) . "$found_la" ;;
14664 *) . "./$found_la" ;;
14665 esac
14666 libdir="$save_libdir"
14667 for dep in $dependency_libs; do
14668 case "$dep" in
14669 -L*)
14670 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14671 if test "X$additional_libdir" != "X/usr/lib"; then
14672 haveit=
14673 if test "X$additional_libdir" = "X/usr/local/lib"; then
14674 if test -n "$GCC"; then
14675 case $host_os in
14676 linux*) haveit=yes;;
14677 esac
14680 if test -z "$haveit"; then
14681 haveit=
14682 for x in $LDFLAGS $LIBINTL; do
14684 acl_save_prefix="$prefix"
14685 prefix="$acl_final_prefix"
14686 acl_save_exec_prefix="$exec_prefix"
14687 exec_prefix="$acl_final_exec_prefix"
14688 eval x=\"$x\"
14689 exec_prefix="$acl_save_exec_prefix"
14690 prefix="$acl_save_prefix"
14692 if test "X$x" = "X-L$additional_libdir"; then
14693 haveit=yes
14694 break
14696 done
14697 if test -z "$haveit"; then
14698 if test -d "$additional_libdir"; then
14699 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14702 haveit=
14703 for x in $LDFLAGS $LTLIBINTL; do
14705 acl_save_prefix="$prefix"
14706 prefix="$acl_final_prefix"
14707 acl_save_exec_prefix="$exec_prefix"
14708 exec_prefix="$acl_final_exec_prefix"
14709 eval x=\"$x\"
14710 exec_prefix="$acl_save_exec_prefix"
14711 prefix="$acl_save_prefix"
14713 if test "X$x" = "X-L$additional_libdir"; then
14714 haveit=yes
14715 break
14717 done
14718 if test -z "$haveit"; then
14719 if test -d "$additional_libdir"; then
14720 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14726 -R*)
14727 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14728 if test "$enable_rpath" != no; then
14729 haveit=
14730 for x in $rpathdirs; do
14731 if test "X$x" = "X$dir"; then
14732 haveit=yes
14733 break
14735 done
14736 if test -z "$haveit"; then
14737 rpathdirs="$rpathdirs $dir"
14739 haveit=
14740 for x in $ltrpathdirs; do
14741 if test "X$x" = "X$dir"; then
14742 haveit=yes
14743 break
14745 done
14746 if test -z "$haveit"; then
14747 ltrpathdirs="$ltrpathdirs $dir"
14751 -l*)
14752 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14754 *.la)
14755 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14758 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14759 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14761 esac
14762 done
14764 else
14765 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14766 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14770 done
14771 done
14772 if test "X$rpathdirs" != "X"; then
14773 if test -n "$hardcode_libdir_separator"; then
14774 alldirs=
14775 for found_dir in $rpathdirs; do
14776 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14777 done
14778 acl_save_libdir="$libdir"
14779 libdir="$alldirs"
14780 eval flag=\"$hardcode_libdir_flag_spec\"
14781 libdir="$acl_save_libdir"
14782 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14783 else
14784 for found_dir in $rpathdirs; do
14785 acl_save_libdir="$libdir"
14786 libdir="$found_dir"
14787 eval flag=\"$hardcode_libdir_flag_spec\"
14788 libdir="$acl_save_libdir"
14789 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14790 done
14793 if test "X$ltrpathdirs" != "X"; then
14794 for found_dir in $ltrpathdirs; do
14795 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14796 done
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14800 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14801 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 gt_save_CPPFLAGS="$CPPFLAGS"
14805 CPPFLAGS="$CPPFLAGS $INCINTL"
14806 gt_save_LIBS="$LIBS"
14807 LIBS="$LIBS $LIBINTL"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14810 #include <libintl.h>
14811 extern int _nl_msg_cat_cntr;
14812 extern
14813 #ifdef __cplusplus
14815 #endif
14816 const char *_nl_expand_alias ();
14818 main ()
14820 bindtextdomain ("", "");
14821 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14823 return 0;
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 gt_cv_func_gnugettext2_libintl=yes
14828 else
14829 gt_cv_func_gnugettext2_libintl=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14834 LIBS="$LIBS $LIBICONV"
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14837 #include <libintl.h>
14838 extern int _nl_msg_cat_cntr;
14839 extern
14840 #ifdef __cplusplus
14842 #endif
14843 const char *_nl_expand_alias ();
14845 main ()
14847 bindtextdomain ("", "");
14848 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14850 return 0;
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 LIBINTL="$LIBINTL $LIBICONV"
14855 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14856 gt_cv_func_gnugettext2_libintl=yes
14859 rm -f core conftest.err conftest.$ac_objext \
14860 conftest$ac_exeext conftest.$ac_ext
14862 CPPFLAGS="$gt_save_CPPFLAGS"
14863 LIBS="$gt_save_LIBS"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14866 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14869 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14870 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14871 && test "$PACKAGE" != gettext; }; then
14872 gt_use_preinstalled_gnugettext=yes
14873 else
14874 LIBINTL=
14875 LTLIBINTL=
14876 INCINTL=
14880 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14881 nls_cv_use_gnu_gettext=yes
14885 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14886 INTLOBJS="\$(GETTOBJS)"
14887 BUILD_INCLUDED_LIBINTL=yes
14888 USE_INCLUDED_LIBINTL=yes
14889 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14890 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14891 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14894 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14895 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14896 CATOBJEXT=.gmo
14900 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14901 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14903 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14905 else
14906 USE_NLS=no
14910 if test "$USE_NLS" = "yes"; then
14912 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14913 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14915 $as_echo_n "checking how to link with libintl... " >&6; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14917 $as_echo "$LIBINTL" >&6; }
14919 for element in $INCINTL; do
14920 haveit=
14921 for x in $CPPFLAGS; do
14923 acl_save_prefix="$prefix"
14924 prefix="$acl_final_prefix"
14925 acl_save_exec_prefix="$exec_prefix"
14926 exec_prefix="$acl_final_exec_prefix"
14927 eval x=\"$x\"
14928 exec_prefix="$acl_save_exec_prefix"
14929 prefix="$acl_save_prefix"
14931 if test "X$x" = "X$element"; then
14932 haveit=yes
14933 break
14935 done
14936 if test -z "$haveit"; then
14937 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14939 done
14944 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14947 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14951 POSUB=po
14955 if test "$PACKAGE" = gettext; then
14956 BUILD_INCLUDED_LIBINTL=yes
14964 nls_cv_header_intl=
14965 nls_cv_header_libgt=
14967 DATADIRNAME=share
14970 INSTOBJEXT=.mo
14973 GENCAT=gencat
14976 INTL_LIBTOOL_SUFFIX_PREFIX=
14980 INTLLIBS="$LIBINTL"
14987 if test $USE_INCLUDED_LIBINTL = yes; then :
14988 INCINTL=-I\${top_builddir}/intl
14991 if test x$USE_NLS = xyes; then :
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14994 $as_echo_n "checking for autopoint... " >&6; }
14995 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14996 if test -n "$autopoint_version"; then :
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14999 $as_echo "yes ($autopoint_version)" >&6; }
15002 else
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15005 $as_echo "no" >&6; }
15006 USE_NLS=no
15011 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15013 You need to install GNU gettext/gettext-tools to compile aMule with
15014 i18n support." >&5
15015 $as_echo "$as_me: WARNING:
15016 You need to install GNU gettext/gettext-tools to compile aMule with
15017 i18n support." >&2;}
15018 _mule_warning_13=yes
15019 _mule_has_warnings=yes
15023 if test ${USE_NLS:-no} = yes; then :
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15026 $as_echo_n "checking for requested languages... " >&6; }
15027 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15029 if test ${enable_amule_daemon:-no} = yes; then :
15031 if test -z "$LINGUAS"; then :
15032 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15033 else
15035 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15036 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15039 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15041 else
15042 AMULE_DAEMON_MANPAGES=
15047 if test ${enable_amulecmd:-no} = yes; then :
15049 if test -z "$LINGUAS"; then :
15050 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15051 else
15053 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15054 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15057 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15059 else
15060 AMULECMD_MANPAGES=
15065 if test ${enable_webserver:-no} = yes; then :
15067 if test -z "$LINGUAS"; then :
15068 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15069 else
15071 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15072 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15075 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15077 else
15078 WEBSERVER_MANPAGES=
15083 if test ${enable_amule_gui:-no} = yes; then :
15085 if test -z "$LINGUAS"; then :
15086 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15087 else
15089 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15090 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15093 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15095 else
15096 AMULE_GUI_MANPAGES=
15101 if test ${enable_cas:-no} = yes; then :
15103 if test -z "$LINGUAS"; then :
15104 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15105 else
15107 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15108 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15111 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15113 else
15114 CAS_MANPAGES=
15119 if test ${enable_wxcas:-no} = yes; then :
15121 if test -z "$LINGUAS"; then :
15122 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15123 else
15125 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15126 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15129 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15131 else
15132 WXCAS_MANPAGES=
15137 if test ${enable_ed2k:-yes} = yes; then :
15139 if test -z "$LINGUAS"; then :
15140 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15141 else
15143 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15144 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15147 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15149 else
15150 ED2K_MANPAGES=
15155 if test ${enable_alc:-no} = yes; then :
15157 if test -z "$LINGUAS"; then :
15158 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15159 else
15161 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15162 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15165 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15167 else
15168 ALC_MANPAGES=
15173 if test ${enable_alcc:-no} = yes; then :
15175 if test -z "$LINGUAS"; then :
15176 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15177 else
15179 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15180 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15183 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15185 else
15186 ALCC_MANPAGES=
15191 if test ${enable_monolithic:-yes} = yes; then :
15193 if test -z "$LINGUAS"; then :
15194 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15195 else
15197 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15198 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15201 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15203 else
15204 MONOLITHIC_MANPAGES=
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15209 $as_echo "${LINGUAS:-all}" >&6; }
15214 ac_ext=cpp
15215 ac_cpp='$CXXCPP $CPPFLAGS'
15216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15222 # Check for bfd.h (to have proper backtraces without using wxExecute)
15224 for ac_header in ansidecl.h bfd.h
15225 do :
15226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15228 eval as_val=\$$as_ac_Header
15229 if test "x$as_val" = x""yes; then :
15230 cat >>confdefs.h <<_ACEOF
15231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232 _ACEOF
15236 done
15238 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15241 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15242 if test "${mule_cv_lib_bfd+set}" = set; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15246 for bfd_ldadd in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15247 # Doing some black magic to prevent multiple tests for the same set of
15248 # libraries when any of the shell variables above expand to nothing.
15249 echo $bfd_ldadd
15250 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15251 while read bfd_ldadd; do
15252 mule_backup_LIBS="$LIBS"
15253 mule_backup_LDFLAGS="$LDFLAGS"
15254 LIBS="${bfd_ldadd} $LIBS"
15255 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15260 #include <ansidecl.h>
15261 #include <bfd.h>
15264 main ()
15266 const char *dummy = bfd_errmsg(bfd_get_error());
15268 return 0;
15271 _ACEOF
15272 if ac_fn_cxx_try_link "$LINENO"; then :
15274 LIBS="$mule_backup_LIBS"
15275 LDFLAGS="$mule_backup_LDFLAGS"
15276 mule_cv_lib_bfd="${bfd_ldadd}"
15279 rm -f core conftest.err conftest.$ac_objext \
15280 conftest$ac_exeext conftest.$ac_ext
15281 LIBS="$mule_backup_LIBS"
15282 LDFLAGS="$mule_backup_LDFLAGS"
15283 if ${mule_cv_lib_bfd+:} false; then :
15284 break
15286 done <conftest.bfd_ldadd
15287 rm -f conftest.bfd_ldadd
15292 if ${mule_cv_lib_bfd+:} false; then :
15294 BFD_CPPFLAGS="-DHAVE_BFD"
15295 BFD_LIBS="${mule_cv_lib_bfd}"
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15297 $as_echo "${BFD_LIBS:-none required}" >&6; }
15299 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15302 $as_echo "not found" >&6; }
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15304 Cannot link to the library containing the bfd functions." >&5
15305 $as_echo "$as_me: WARNING:
15306 Cannot link to the library containing the bfd functions." >&2;}
15307 _mule_warning_14=yes
15308 _mule_has_warnings=yes
15313 else
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15316 bfd.h not found or unusable, please install binutils development
15317 package if you are a developer or want to help testing aMule" >&5
15318 $as_echo "$as_me: WARNING:
15319 bfd.h not found or unusable, please install binutils development
15320 package if you are a developer or want to help testing aMule" >&2;}
15321 _mule_warning_15=yes
15322 _mule_has_warnings=yes
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15330 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15335 #include <execinfo.h>
15338 main ()
15341 void *bt[1];
15342 int n = backtrace((void **)&bt, 1);
15343 char **bt_syms = backtrace_symbols(bt, n);
15346 return 0;
15349 _ACEOF
15350 if ac_fn_cxx_try_link "$LINENO"; then :
15353 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 $as_echo "yes" >&6; }
15358 else
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15364 rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15369 # aMule plasma widget
15370 if test ${enable_plasmamule:-no} = yes; then :
15373 if test -z ${QT_MOC}; then :
15375 for ac_prog in moc-qt4 moc
15377 # Extract the first word of "$ac_prog", so it can be a program name with args.
15378 set dummy $ac_prog; ac_word=$2
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15380 $as_echo_n "checking for $ac_word... " >&6; }
15381 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 case $QT_MOC in
15385 [\\/]* | ?:[\\/]*)
15386 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
15395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15396 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15400 done
15401 done
15402 IFS=$as_save_IFS
15405 esac
15407 QT_MOC=$ac_cv_path_QT_MOC
15408 if test -n "$QT_MOC"; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15410 $as_echo "$QT_MOC" >&6; }
15411 else
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15413 $as_echo "no" >&6; }
15417 test -n "$QT_MOC" && break
15418 done
15420 if test -z ${QT_MOC}; then :
15422 echo moc not found
15423 exit 1
15427 else
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15430 $as_echo_n "checking for moc... " >&6; }
15431 if test -x ${QT_MOC}; then :
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15434 $as_echo "${QT_MOC}" >&6; }
15437 else
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15440 $as_echo "\"not found\"" >&6; }
15441 QT_MOC="not found"
15442 exit 1
15449 if test "${QT_MOC}" != "not found"; then :
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15452 $as_echo_n "checking for moc version >= 4... " >&6; }
15453 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15454 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15457 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15459 else
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15462 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15463 QT_MOC="not found"
15464 exit 1
15470 if test "${QT_MOC}" = "not found"; then :
15471 enable_plasmamule=disabled
15474 if test ${enable_plasmamule:-no} = yes; then :
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15479 $as_echo_n "checking for qt... " >&6; }
15480 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15483 $as_echo "found" >&6; }
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15485 $as_echo_n "checking for qt core cflags... " >&6; }
15486 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15488 $as_echo "$QT_CORE_CFLAGS" >&6; }
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15490 $as_echo_n "checking for qt core libs... " >&6; }
15491 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15493 $as_echo "$QT_CORE_LIBS" >&6; }
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15495 $as_echo_n "checking for qt gui cflags... " >&6; }
15496 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15498 $as_echo "$QT_GUI_CFLAGS" >&6; }
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15500 $as_echo_n "checking for qt gui libs... " >&6; }
15501 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15503 $as_echo "$QT_GUI_LIBS" >&6; }
15505 else
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15507 $as_echo "not found" >&6; }
15508 exit 1
15512 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15514 QT_DBUS_LDFLAGS="-lQtDBus"
15524 if test -z "${QT_CORE_CXXFLAGS}"; then :
15525 enable_plasmamule=disabled
15530 if test ${enable_plasmamule:-no} = yes; then :
15533 if test -z ${KDE4_CONFIG}; then :
15535 # Extract the first word of "kde4-config", so it can be a program name with args.
15536 set dummy kde4-config; ac_word=$2
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15538 $as_echo_n "checking for $ac_word... " >&6; }
15539 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 case $KDE4_CONFIG in
15543 [\\/]* | ?:[\\/]*)
15544 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548 for as_dir in $PATH
15550 IFS=$as_save_IFS
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15554 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15556 break 2
15558 done
15559 done
15560 IFS=$as_save_IFS
15563 esac
15565 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15566 if test -n "$KDE4_CONFIG"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15568 $as_echo "$KDE4_CONFIG" >&6; }
15569 else
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571 $as_echo "no" >&6; }
15576 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15579 $as_echo_n "checking for kde4-config... " >&6; }
15580 if test ! -x KDE4_CONFIG; then :
15582 KDE4_CONFIG="not found"
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15584 $as_echo "not found" >&6; }
15585 exit 1
15591 if test "${KDE4_CONFIG}" != "not found"; then :
15593 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15594 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15597 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15599 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15602 $as_echo "at least version 4 required" >&6; }
15603 exit 1
15607 else
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15610 $as_echo "not found" >&6; }
15611 exit 1
15616 if test "${KDE4_CONFIG}" = "not found"; then :
15617 enable_plasmamule=disabled
15622 if test ${enable_plasmamule:-no} = yes; then :
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15626 $as_echo_n "checking for kde4 headers... " >&6; }
15627 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15629 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15631 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15634 $as_echo "${KDE_HEADER_DIR}" >&6; }
15636 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15639 $as_echo "dataengine.h not found" >&6; }
15640 exit 1
15644 else
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15647 $as_echo "kdirwatch.h not found" >&6; }
15648 exit 1
15653 if test -z ${KDE_HEADER_DIR}; then :
15654 enable_plasmamule=disabled
15659 if test ${enable_plasmamule:-no} = yes; then :
15661 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15662 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15667 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15668 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15670 KDE_IN_HOME="yes"
15673 if test ${KDE_IN_HOME} = "yes"; then :
15675 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15677 else
15679 if test -n ${prefix}; then :
15681 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15682 if test -n ${KDE_APPLNK_PATH}; then :
15684 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15688 else
15690 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15696 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15702 $as_echo_n "checking for kde4 services Path... " >&6; }
15703 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15705 KDE_IN_HOME="yes"
15708 if test ${KDE_IN_HOME} = "yes"; then :
15710 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15712 else
15714 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15718 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15724 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15725 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15727 KDE_IN_HOME="yes"
15730 if test ${KDE_IN_HOME} = "yes"; then :
15732 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15734 else
15736 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15740 $as_echo "${KDE_MODULE_PATH}" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15746 $as_echo_n "checking for kde4 icons Path... " >&6; }
15747 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15749 KDE_IN_HOME="yes"
15752 if test ${KDE_IN_HOME} = "yes"; then :
15754 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15756 else
15758 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15761 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15763 $as_echo "${KDE_ICON_PATH}" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15769 $as_echo_n "checking for location for mime-type installation... " >&6; }
15770 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15772 KDE_IN_HOME="yes"
15775 if test ${KDE_IN_HOME} = "yes"; then :
15777 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15779 else
15781 if test -n ${prefix}; then :
15783 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15784 if test -n ${KDE_MIME_PATH}; then :
15786 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15790 else
15792 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15798 $as_echo "${KDE_MIME_PATH}" >&6; }
15802 else
15803 enable_plasmamule=disabled
15808 if test ${enable_debug:-yes} = yes; then :
15810 DEBUGFLAG="-D__DEBUG__"
15818 # Check for readline library
15819 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15822 $as_echo_n "checking for a readline compatible library... " >&6; }
15823 if test "${vl_cv_lib_readline+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15827 ORIG_LIBS="$LIBS"
15828 for readline_lib in readline edit editline; do
15829 for termcap_lib in "" termcap curses ncurses; do
15830 if test -z "$termcap_lib"; then
15831 TRY_LIB="-l$readline_lib"
15832 else
15833 TRY_LIB="-l$readline_lib -l$termcap_lib"
15835 LIBS="$ORIG_LIBS $TRY_LIB"
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15839 /* Override any GCC internal prototype to avoid an error.
15840 Use char because int might match the return type of a GCC
15841 builtin and then its argument prototype would still apply. */
15842 #ifdef __cplusplus
15843 extern "C"
15844 #endif
15845 char readline ();
15847 main ()
15849 return readline ();
15851 return 0;
15853 _ACEOF
15854 if ac_fn_cxx_try_link "$LINENO"; then :
15855 vl_cv_lib_readline="$TRY_LIB"
15857 rm -f core conftest.err conftest.$ac_objext \
15858 conftest$ac_exeext conftest.$ac_ext
15859 if test -n "$vl_cv_lib_readline"; then
15860 break
15862 done
15863 if test -n "$vl_cv_lib_readline"; then
15864 break
15866 done
15867 if test -z "$vl_cv_lib_readline"; then
15868 vl_cv_lib_readline="no"
15869 LIBS="$ORIG_LIBS"
15870 READLINE_LIBS=""
15871 else
15872 READLINE_LIBS="$vl_cv_lib_readline"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15877 $as_echo "$vl_cv_lib_readline" >&6; }
15879 if test "$vl_cv_lib_readline" != "no"; then
15881 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15883 for ac_header in readline.h readline/readline.h
15884 do :
15885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15886 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15887 eval as_val=\$$as_ac_Header
15888 if test "x$as_val" = x""yes; then :
15889 cat >>confdefs.h <<_ACEOF
15890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15891 _ACEOF
15895 done
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15898 $as_echo_n "checking whether readline supports history... " >&6; }
15899 if test "${vl_cv_lib_readline_history+set}" = set; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15903 vl_cv_lib_readline_history="no"
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15907 /* Override any GCC internal prototype to avoid an error.
15908 Use char because int might match the return type of a GCC
15909 builtin and then its argument prototype would still apply. */
15910 #ifdef __cplusplus
15911 extern "C"
15912 #endif
15913 char add_history ();
15915 main ()
15917 return add_history ();
15919 return 0;
15921 _ACEOF
15922 if ac_fn_cxx_try_link "$LINENO"; then :
15923 vl_cv_lib_readline_history="yes"
15925 rm -f core conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15930 $as_echo "$vl_cv_lib_readline_history" >&6; }
15931 if test "$vl_cv_lib_readline_history" = "yes"; then
15933 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15935 for ac_header in history.h readline/history.h
15936 do :
15937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15938 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15939 eval as_val=\$$as_ac_Header
15940 if test "x$as_val" = x""yes; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 _ACEOF
15947 done
15952 LIBS="$ORIG_LIBS"
15957 ac_ext=c
15958 ac_cpp='$CPP $CPPFLAGS'
15959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15964 # Check for strerror_r
15965 mule_backup_CPPFLAGS="$CPPFLAGS"
15966 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
15967 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15968 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
15969 ac_have_decl=1
15970 else
15971 ac_have_decl=0
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_DECL_STRERROR_R $ac_have_decl
15976 _ACEOF
15978 for ac_func in strerror_r
15979 do :
15980 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15981 if test "x$ac_cv_func_strerror_r" = x""yes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_STRERROR_R 1
15984 _ACEOF
15987 done
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15990 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15991 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15995 ac_cv_func_strerror_r_char_p=no
15996 if test $ac_cv_have_decl_strerror_r = yes; then
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999 $ac_includes_default
16001 main ()
16004 char buf[100];
16005 char x = *strerror_r (0, buf, sizeof buf);
16006 char *p = strerror_r (0, buf, sizeof buf);
16007 return !p || x;
16010 return 0;
16012 _ACEOF
16013 if ac_fn_c_try_compile "$LINENO"; then :
16014 ac_cv_func_strerror_r_char_p=yes
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 else
16018 # strerror_r is not declared. Choose between
16019 # systems that have relatively inaccessible declarations for the
16020 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16021 # former has a strerror_r that returns char*, while the latter
16022 # has a strerror_r that returns `int'.
16023 # This test should segfault on the DEC system.
16024 if test "$cross_compiling" = yes; then :
16026 else
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 extern char *strerror_r ();
16032 main ()
16034 char buf[100];
16035 char x = *strerror_r (0, buf, sizeof buf);
16036 return ! isalpha (x);
16038 return 0;
16040 _ACEOF
16041 if ac_fn_c_try_run "$LINENO"; then :
16042 ac_cv_func_strerror_r_char_p=yes
16044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16045 conftest.$ac_objext conftest.beam conftest.$ac_ext
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16052 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16053 if test $ac_cv_func_strerror_r_char_p = yes; then
16055 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16059 CPPFLAGS="$mule_backup_CPPFLAGS"
16062 # Other tests
16064 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16066 $as_echo_n "checking for docdir... " >&6; }
16067 if test -z "$docdir"; then :
16068 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16071 $as_echo "$docdir" >&6; }
16074 # Try to set the SVN checkout-date
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16076 $as_echo_n "checking for SVNDATE... " >&6; }
16077 modified=
16078 if test -f "$srcdir/.svn-revision"; then
16079 svndate="rev. `cat $srcdir/.svn-revision`"
16080 elif test -d "$srcdir"/.svn; then
16081 svndate="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16082 elif test -d "$srcdir"/.git; then
16084 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16085 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16086 modified="+"
16088 if test -f $srcdir/.git/svn/.metadata ; then
16089 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16090 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16091 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16092 if test -n "\${svn_revision}" ; then
16093 if test \${sha} = ${git_sha} ; then
16094 echo "rev. \${svn_revision}${modified}"
16095 else
16096 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16098 break
16100 done`
16101 else
16102 svndate="rev. g${git_revision}${modified}"
16105 elif test -d "$srcdir"/.hg; then
16107 hg_revision=`hg --cwd "$srcdir" identify --id`
16108 hg_revid=${hg_revision%+}
16109 if test ${hg_revision} != ${hg_revid} ; then
16110 modified="+"
16112 if test -f "$srcdir"/.hg/svn/uuid ; then
16113 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16114 if test \${svn_revision} != r ; then
16115 if test \${hg_sha} = ${hg_revid} ; then
16116 echo "rev. \${svn_revision#r}${modified}"
16117 else
16118 echo "rev. \${svn_revision#r}+h${hg_revision}"
16120 break
16122 done`
16123 else
16124 svndate="rev. h${hg_revision}"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16131 $as_echo "${svndate:-None required}" >&6; }
16132 if test -n "$svndate"; then :
16135 cat >>confdefs.h <<_ACEOF
16136 #define SVNDATE "$svndate"
16137 _ACEOF
16139 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16142 SVNDATE=$svndate
16147 # Check whether --with-denoise-level was given.
16148 if test "${with_denoise_level+set}" = set; then :
16149 withval=$with_denoise_level;
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16154 $as_echo_n "checking denoising level... " >&6; }
16155 if test ${with_denoise_level:-5} = yes; then :
16156 with_denoise_level=5
16158 if test ${with_denoise_level:-5} = no; then :
16159 with_denoise_level=0
16161 if test ${with_denoise_level:-5} -gt 4; then :
16162 if test "${svndate:+set}" = "set"; then :
16163 with_denoise_level=0
16164 else
16165 with_denoise_level=4
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16169 $as_echo "$with_denoise_level" >&6; }
16171 ac_config_commands="$ac_config_commands denoiser"
16176 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16178 # Check whether --enable-ccache was given.
16179 if test "${enable_ccache+set}" = set; then :
16180 enableval=$enable_ccache;
16186 # Check whether --with-ccache-prefix was given.
16187 if test "${with_ccache_prefix+set}" = set; then :
16188 withval=$with_ccache_prefix;
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16193 $as_echo_n "checking whether ccache support should be added... " >&6; }
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16195 $as_echo "${enable_ccache:-no}" >&6; }
16197 if test ${enable_ccache:-no} = yes; then :
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16200 $as_echo_n "checking for ccache presence... " >&6; }
16201 if test -z "$with_ccache_prefix"; then :
16203 ccache_full=`which ccache`
16204 with_ccache_prefix=`dirname ${ccache_full}`
16207 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16209 CC="$with_ccache_prefix/ccache $CC"
16210 CXX="$with_ccache_prefix/ccache $CXX"
16211 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16213 else
16214 enable_ccache=no
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16217 $as_echo "${enable_ccache:-no}" >&6; }
16224 if test x$SYS = xwin32; then
16225 SYS_WIN32_TRUE=
16226 SYS_WIN32_FALSE='#'
16227 else
16228 SYS_WIN32_TRUE='#'
16229 SYS_WIN32_FALSE=
16232 if test x$SYS = xwin32 -a "$RC" != ":"; then
16233 NEED_RC_TRUE=
16234 NEED_RC_FALSE='#'
16235 else
16236 NEED_RC_TRUE='#'
16237 NEED_RC_FALSE=
16240 if test x$SYS = xdarwin; then
16241 NEED_CORESERVICES_TRUE=
16242 NEED_CORESERVICES_FALSE='#'
16243 else
16244 NEED_CORESERVICES_TRUE='#'
16245 NEED_CORESERVICES_FALSE=
16248 if test x$USE_NLS = xyes; then
16249 COMPILE_NLS_TRUE=
16250 COMPILE_NLS_FALSE='#'
16251 else
16252 COMPILE_NLS_TRUE='#'
16253 COMPILE_NLS_FALSE=
16256 if test x$HAVE_FLEX_EXTENDED = xyes; then
16257 GENERATE_FLEX_HEADER_TRUE=
16258 GENERATE_FLEX_HEADER_FALSE='#'
16259 else
16260 GENERATE_FLEX_HEADER_TRUE='#'
16261 GENERATE_FLEX_HEADER_FALSE=
16264 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16265 INSTALL_SKINS_TRUE=
16266 INSTALL_SKINS_FALSE='#'
16267 else
16268 INSTALL_SKINS_TRUE='#'
16269 INSTALL_SKINS_FALSE=
16272 if test ${enable_plasmamule:-no} = yes; then
16273 PLASMAMULE_TRUE=
16274 PLASMAMULE_FALSE='#'
16275 else
16276 PLASMAMULE_TRUE='#'
16277 PLASMAMULE_FALSE=
16281 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 -o ${enable_fileview:-no} = yes ; then
16282 COMPILE_LIB_COMMON_TRUE=
16283 COMPILE_LIB_COMMON_FALSE='#'
16284 else
16285 COMPILE_LIB_COMMON_TRUE='#'
16286 COMPILE_LIB_COMMON_FALSE=
16289 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
16290 COMPILE_LIB_EC_TRUE=
16291 COMPILE_LIB_EC_FALSE='#'
16292 else
16293 COMPILE_LIB_EC_TRUE='#'
16294 COMPILE_LIB_EC_FALSE=
16298 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in 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"
16301 if test x$SYS = xwin32; then :
16302 ac_config_files="$ac_config_files version.rc"
16305 cat >confcache <<\_ACEOF
16306 # This file is a shell script that caches the results of configure
16307 # tests run on this system so they can be shared between configure
16308 # scripts and configure runs, see configure's option --config-cache.
16309 # It is not useful on other systems. If it contains results you don't
16310 # want to keep, you may remove or edit it.
16312 # config.status only pays attention to the cache file if you give it
16313 # the --recheck option to rerun configure.
16315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16317 # following values.
16319 _ACEOF
16321 # The following way of writing the cache mishandles newlines in values,
16322 # but we know of no workaround that is simple, portable, and efficient.
16323 # So, we kill variables containing newlines.
16324 # Ultrix sh set writes to stderr and can't be redirected directly,
16325 # and sets the high bit in the cache file unless we assign to the vars.
16327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16328 eval ac_val=\$$ac_var
16329 case $ac_val in #(
16330 *${as_nl}*)
16331 case $ac_var in #(
16332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16334 esac
16335 case $ac_var in #(
16336 _ | IFS | as_nl) ;; #(
16337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16338 *) { eval $ac_var=; unset $ac_var;} ;;
16339 esac ;;
16340 esac
16341 done
16343 (set) 2>&1 |
16344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16345 *${as_nl}ac_space=\ *)
16346 # `set' does not quote correctly, so add quotes: double-quote
16347 # substitution turns \\\\ into \\, and sed turns \\ into \.
16348 sed -n \
16349 "s/'/'\\\\''/g;
16350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16351 ;; #(
16353 # `set' quotes correctly as required by POSIX, so do not add quotes.
16354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16356 esac |
16357 sort
16359 sed '
16360 /^ac_cv_env_/b end
16361 t clear
16362 :clear
16363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16364 t end
16365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16366 :end' >>confcache
16367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16368 if test -w "$cache_file"; then
16369 test "x$cache_file" != "x/dev/null" &&
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16371 $as_echo "$as_me: updating cache $cache_file" >&6;}
16372 cat confcache >$cache_file
16373 else
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16378 rm -f confcache
16380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16381 # Let make expand exec_prefix.
16382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16384 DEFS=-DHAVE_CONFIG_H
16386 ac_libobjs=
16387 ac_ltlibobjs=
16388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16389 # 1. Remove the extension, and $U if already installed.
16390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16393 # will be set to the directory where LIBOBJS objects are built.
16394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16396 done
16397 LIBOBJS=$ac_libobjs
16399 LTLIBOBJS=$ac_ltlibobjs
16402 if test -n "$EXEEXT"; then
16403 am__EXEEXT_TRUE=
16404 am__EXEEXT_FALSE='#'
16405 else
16406 am__EXEEXT_TRUE='#'
16407 am__EXEEXT_FALSE=
16410 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16411 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16415 as_fn_error "conditional \"AMDEP\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16419 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16423 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16426 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16427 as_fn_error "conditional \"MONOLITHIC\" was never defined.
16428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16430 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16431 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
16432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16434 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16435 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
16436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16438 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16439 as_fn_error "conditional \"WEB\" was never defined.
16440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16442 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16443 as_fn_error "conditional \"AMULE_GUI\" was never defined.
16444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16446 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16447 as_fn_error "conditional \"CAS\" was never defined.
16448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16450 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16451 as_fn_error "conditional \"WXCAS\" was never defined.
16452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16454 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16455 as_fn_error "conditional \"ED2K\" was never defined.
16456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16458 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16459 as_fn_error "conditional \"ALC\" was never defined.
16460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16462 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16463 as_fn_error "conditional \"ALCC\" was never defined.
16464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16466 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16467 as_fn_error "conditional \"XAS\" was never defined.
16468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16470 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16471 as_fn_error "conditional \"FILEVIEW\" was never defined.
16472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16474 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16475 as_fn_error "conditional \"SYS_WIN32\" was never defined.
16476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16478 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16479 as_fn_error "conditional \"NEED_RC\" was never defined.
16480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16482 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16483 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
16484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16486 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16487 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
16488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16490 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16491 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16494 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16495 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
16496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16498 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16499 as_fn_error "conditional \"PLASMAMULE\" was never defined.
16500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16502 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16503 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
16504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16507 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
16508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 : ${CONFIG_STATUS=./config.status}
16512 ac_write_fail=0
16513 ac_clean_files_save=$ac_clean_files
16514 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16516 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16517 as_write_fail=0
16518 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16519 #! $SHELL
16520 # Generated by $as_me.
16521 # Run this file to recreate the current configuration.
16522 # Compiler output produced by configure, useful for debugging
16523 # configure, is in config.log if it exists.
16525 debug=false
16526 ac_cs_recheck=false
16527 ac_cs_silent=false
16529 SHELL=\${CONFIG_SHELL-$SHELL}
16530 export SHELL
16531 _ASEOF
16532 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16533 ## -------------------- ##
16534 ## M4sh Initialization. ##
16535 ## -------------------- ##
16537 # Be more Bourne compatible
16538 DUALCASE=1; export DUALCASE # for MKS sh
16539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16540 emulate sh
16541 NULLCMD=:
16542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16543 # is contrary to our usage. Disable this feature.
16544 alias -g '${1+"$@"}'='"$@"'
16545 setopt NO_GLOB_SUBST
16546 else
16547 case `(set -o) 2>/dev/null` in #(
16548 *posix*) :
16549 set -o posix ;; #(
16550 *) :
16552 esac
16556 as_nl='
16558 export as_nl
16559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16563 # Prefer a ksh shell builtin over an external printf program on Solaris,
16564 # but without wasting forks for bash or zsh.
16565 if test -z "$BASH_VERSION$ZSH_VERSION" \
16566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16567 as_echo='print -r --'
16568 as_echo_n='print -rn --'
16569 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16570 as_echo='printf %s\n'
16571 as_echo_n='printf %s'
16572 else
16573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16574 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16575 as_echo_n='/usr/ucb/echo -n'
16576 else
16577 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16578 as_echo_n_body='eval
16579 arg=$1;
16580 case $arg in #(
16581 *"$as_nl"*)
16582 expr "X$arg" : "X\\(.*\\)$as_nl";
16583 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16584 esac;
16585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16587 export as_echo_n_body
16588 as_echo_n='sh -c $as_echo_n_body as_echo'
16590 export as_echo_body
16591 as_echo='sh -c $as_echo_body as_echo'
16594 # The user is always right.
16595 if test "${PATH_SEPARATOR+set}" != set; then
16596 PATH_SEPARATOR=:
16597 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16598 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16599 PATH_SEPARATOR=';'
16604 # IFS
16605 # We need space, tab and new line, in precisely that order. Quoting is
16606 # there to prevent editors from complaining about space-tab.
16607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16608 # splitting by setting IFS to empty value.)
16609 IFS=" "" $as_nl"
16611 # Find who we are. Look in the path if we contain no directory separator.
16612 case $0 in #((
16613 *[\\/]* ) as_myself=$0 ;;
16614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16615 for as_dir in $PATH
16617 IFS=$as_save_IFS
16618 test -z "$as_dir" && as_dir=.
16619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16620 done
16621 IFS=$as_save_IFS
16624 esac
16625 # We did not find ourselves, most probably we were run as `sh COMMAND'
16626 # in which case we are not to be found in the path.
16627 if test "x$as_myself" = x; then
16628 as_myself=$0
16630 if test ! -f "$as_myself"; then
16631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16632 exit 1
16635 # Unset variables that we do not need and which cause bugs (e.g. in
16636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16637 # suppresses any "Segmentation fault" message there. '((' could
16638 # trigger a bug in pdksh 5.2.14.
16639 for as_var in BASH_ENV ENV MAIL MAILPATH
16640 do eval test x\${$as_var+set} = xset \
16641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16642 done
16643 PS1='$ '
16644 PS2='> '
16645 PS4='+ '
16647 # NLS nuisances.
16648 LC_ALL=C
16649 export LC_ALL
16650 LANGUAGE=C
16651 export LANGUAGE
16653 # CDPATH.
16654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16657 # as_fn_error ERROR [LINENO LOG_FD]
16658 # ---------------------------------
16659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16661 # script with status $?, using 1 if that was 0.
16662 as_fn_error ()
16664 as_status=$?; test $as_status -eq 0 && as_status=1
16665 if test "$3"; then
16666 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16669 $as_echo "$as_me: error: $1" >&2
16670 as_fn_exit $as_status
16671 } # as_fn_error
16674 # as_fn_set_status STATUS
16675 # -----------------------
16676 # Set $? to STATUS, without forking.
16677 as_fn_set_status ()
16679 return $1
16680 } # as_fn_set_status
16682 # as_fn_exit STATUS
16683 # -----------------
16684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16685 as_fn_exit ()
16687 set +e
16688 as_fn_set_status $1
16689 exit $1
16690 } # as_fn_exit
16692 # as_fn_unset VAR
16693 # ---------------
16694 # Portably unset VAR.
16695 as_fn_unset ()
16697 { eval $1=; unset $1;}
16699 as_unset=as_fn_unset
16700 # as_fn_append VAR VALUE
16701 # ----------------------
16702 # Append the text in VALUE to the end of the definition contained in VAR. Take
16703 # advantage of any shell optimizations that allow amortized linear growth over
16704 # repeated appends, instead of the typical quadratic growth present in naive
16705 # implementations.
16706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16707 eval 'as_fn_append ()
16709 eval $1+=\$2
16711 else
16712 as_fn_append ()
16714 eval $1=\$$1\$2
16716 fi # as_fn_append
16718 # as_fn_arith ARG...
16719 # ------------------
16720 # Perform arithmetic evaluation on the ARGs, and store the result in the
16721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16722 # must be portable across $(()) and expr.
16723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16724 eval 'as_fn_arith ()
16726 as_val=$(( $* ))
16728 else
16729 as_fn_arith ()
16731 as_val=`expr "$@" || test $? -eq 1`
16733 fi # as_fn_arith
16736 if expr a : '\(a\)' >/dev/null 2>&1 &&
16737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16738 as_expr=expr
16739 else
16740 as_expr=false
16743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16744 as_basename=basename
16745 else
16746 as_basename=false
16749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16750 as_dirname=dirname
16751 else
16752 as_dirname=false
16755 as_me=`$as_basename -- "$0" ||
16756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16757 X"$0" : 'X\(//\)$' \| \
16758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16759 $as_echo X/"$0" |
16760 sed '/^.*\/\([^/][^/]*\)\/*$/{
16761 s//\1/
16764 /^X\/\(\/\/\)$/{
16765 s//\1/
16768 /^X\/\(\/\).*/{
16769 s//\1/
16772 s/.*/./; q'`
16774 # Avoid depending upon Character Ranges.
16775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16778 as_cr_digits='0123456789'
16779 as_cr_alnum=$as_cr_Letters$as_cr_digits
16781 ECHO_C= ECHO_N= ECHO_T=
16782 case `echo -n x` in #(((((
16783 -n*)
16784 case `echo 'xy\c'` in
16785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16786 xy) ECHO_C='\c';;
16787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16788 ECHO_T=' ';;
16789 esac;;
16791 ECHO_N='-n';;
16792 esac
16794 rm -f conf$$ conf$$.exe conf$$.file
16795 if test -d conf$$.dir; then
16796 rm -f conf$$.dir/conf$$.file
16797 else
16798 rm -f conf$$.dir
16799 mkdir conf$$.dir 2>/dev/null
16801 if (echo >conf$$.file) 2>/dev/null; then
16802 if ln -s conf$$.file conf$$ 2>/dev/null; then
16803 as_ln_s='ln -s'
16804 # ... but there are two gotchas:
16805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16807 # In both cases, we have to default to `cp -p'.
16808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16809 as_ln_s='cp -p'
16810 elif ln conf$$.file conf$$ 2>/dev/null; then
16811 as_ln_s=ln
16812 else
16813 as_ln_s='cp -p'
16815 else
16816 as_ln_s='cp -p'
16818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16819 rmdir conf$$.dir 2>/dev/null
16822 # as_fn_mkdir_p
16823 # -------------
16824 # Create "$as_dir" as a directory, including parents if necessary.
16825 as_fn_mkdir_p ()
16828 case $as_dir in #(
16829 -*) as_dir=./$as_dir;;
16830 esac
16831 test -d "$as_dir" || eval $as_mkdir_p || {
16832 as_dirs=
16833 while :; do
16834 case $as_dir in #(
16835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16836 *) as_qdir=$as_dir;;
16837 esac
16838 as_dirs="'$as_qdir' $as_dirs"
16839 as_dir=`$as_dirname -- "$as_dir" ||
16840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16841 X"$as_dir" : 'X\(//\)[^/]' \| \
16842 X"$as_dir" : 'X\(//\)$' \| \
16843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16844 $as_echo X"$as_dir" |
16845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16846 s//\1/
16849 /^X\(\/\/\)[^/].*/{
16850 s//\1/
16853 /^X\(\/\/\)$/{
16854 s//\1/
16857 /^X\(\/\).*/{
16858 s//\1/
16861 s/.*/./; q'`
16862 test -d "$as_dir" && break
16863 done
16864 test -z "$as_dirs" || eval "mkdir $as_dirs"
16865 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16868 } # as_fn_mkdir_p
16869 if mkdir -p . 2>/dev/null; then
16870 as_mkdir_p='mkdir -p "$as_dir"'
16871 else
16872 test -d ./-p && rmdir ./-p
16873 as_mkdir_p=false
16876 if test -x / >/dev/null 2>&1; then
16877 as_test_x='test -x'
16878 else
16879 if ls -dL / >/dev/null 2>&1; then
16880 as_ls_L_option=L
16881 else
16882 as_ls_L_option=
16884 as_test_x='
16885 eval sh -c '\''
16886 if test -d "$1"; then
16887 test -d "$1/.";
16888 else
16889 case $1 in #(
16890 -*)set "./$1";;
16891 esac;
16892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16893 ???[sx]*):;;*)false;;esac;fi
16894 '\'' sh
16897 as_executable_p=$as_test_x
16899 # Sed expression to map a string onto a valid CPP name.
16900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16902 # Sed expression to map a string onto a valid variable name.
16903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16906 exec 6>&1
16907 ## ----------------------------------- ##
16908 ## Main body of $CONFIG_STATUS script. ##
16909 ## ----------------------------------- ##
16910 _ASEOF
16911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 # Save the log message, to keep $0 and so on meaningful, and to
16915 # report actual input values of CONFIG_FILES etc. instead of their
16916 # values after options handling.
16917 ac_log="
16918 This file was extended by aMule $as_me SVN, which was
16919 generated by GNU Autoconf 2.65. Invocation command line was
16921 CONFIG_FILES = $CONFIG_FILES
16922 CONFIG_HEADERS = $CONFIG_HEADERS
16923 CONFIG_LINKS = $CONFIG_LINKS
16924 CONFIG_COMMANDS = $CONFIG_COMMANDS
16925 $ $0 $@
16927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16930 _ACEOF
16932 case $ac_config_files in *"
16933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16934 esac
16936 case $ac_config_headers in *"
16937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16938 esac
16941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16942 # Files that config.status was made for.
16943 config_files="$ac_config_files"
16944 config_headers="$ac_config_headers"
16945 config_commands="$ac_config_commands"
16947 _ACEOF
16949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16950 ac_cs_usage="\
16951 \`$as_me' instantiates files and other configuration actions
16952 from templates according to the current configuration. Unless the files
16953 and actions are specified as TAGs, all are instantiated by default.
16955 Usage: $0 [OPTION]... [TAG]...
16957 -h, --help print this help, then exit
16958 -V, --version print version number and configuration settings, then exit
16959 --config print configuration, then exit
16960 -q, --quiet, --silent
16961 do not print progress messages
16962 -d, --debug don't remove temporary files
16963 --recheck update $as_me by reconfiguring in the same conditions
16964 --file=FILE[:TEMPLATE]
16965 instantiate the configuration file FILE
16966 --header=FILE[:TEMPLATE]
16967 instantiate the configuration header FILE
16969 Configuration files:
16970 $config_files
16972 Configuration headers:
16973 $config_headers
16975 Configuration commands:
16976 $config_commands
16978 Report bugs to <admin@amule.org>."
16980 _ACEOF
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16983 ac_cs_version="\\
16984 aMule config.status SVN
16985 configured by $0, generated by GNU Autoconf 2.65,
16986 with options \\"\$ac_cs_config\\"
16988 Copyright (C) 2009 Free Software Foundation, Inc.
16989 This config.status script is free software; the Free Software Foundation
16990 gives unlimited permission to copy, distribute and modify it."
16992 ac_pwd='$ac_pwd'
16993 srcdir='$srcdir'
16994 INSTALL='$INSTALL'
16995 MKDIR_P='$MKDIR_P'
16996 AWK='$AWK'
16997 test -n "\$AWK" || AWK=awk
16998 _ACEOF
17000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17001 # The default lists apply if the user does not specify any file.
17002 ac_need_defaults=:
17003 while test $# != 0
17005 case $1 in
17006 --*=*)
17007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17009 ac_shift=:
17012 ac_option=$1
17013 ac_optarg=$2
17014 ac_shift=shift
17016 esac
17018 case $ac_option in
17019 # Handling of the options.
17020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17021 ac_cs_recheck=: ;;
17022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17023 $as_echo "$ac_cs_version"; exit ;;
17024 --config | --confi | --conf | --con | --co | --c )
17025 $as_echo "$ac_cs_config"; exit ;;
17026 --debug | --debu | --deb | --de | --d | -d )
17027 debug=: ;;
17028 --file | --fil | --fi | --f )
17029 $ac_shift
17030 case $ac_optarg in
17031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 esac
17033 as_fn_append CONFIG_FILES " '$ac_optarg'"
17034 ac_need_defaults=false;;
17035 --header | --heade | --head | --hea )
17036 $ac_shift
17037 case $ac_optarg in
17038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17039 esac
17040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17041 ac_need_defaults=false;;
17042 --he | --h)
17043 # Conflict between --help and --header
17044 as_fn_error "ambiguous option: \`$1'
17045 Try \`$0 --help' for more information.";;
17046 --help | --hel | -h )
17047 $as_echo "$ac_cs_usage"; exit ;;
17048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17050 ac_cs_silent=: ;;
17052 # This is an error.
17053 -*) as_fn_error "unrecognized option: \`$1'
17054 Try \`$0 --help' for more information." ;;
17056 *) as_fn_append ac_config_targets " $1"
17057 ac_need_defaults=false ;;
17059 esac
17060 shift
17061 done
17063 ac_configure_extra_args=
17065 if $ac_cs_silent; then
17066 exec 6>/dev/null
17067 ac_configure_extra_args="$ac_configure_extra_args --silent"
17070 _ACEOF
17071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17072 if \$ac_cs_recheck; then
17073 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17074 shift
17075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17076 CONFIG_SHELL='$SHELL'
17077 export CONFIG_SHELL
17078 exec "\$@"
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 exec 5>>config.log
17085 echo
17086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17087 ## Running $as_me. ##
17088 _ASBOX
17089 $as_echo "$ac_log"
17090 } >&5
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 # INIT-COMMANDS
17097 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17098 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17099 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17100 # from automake.
17101 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17102 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17103 LINGUAS="${LINGUAS-%UNSET%}"
17105 denoiserlevel=$with_denoise_level
17107 _ACEOF
17109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111 # Handling of arguments.
17112 for ac_config_target in $ac_config_targets
17114 case $ac_config_target in
17115 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17117 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17118 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17119 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17120 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17121 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17122 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17123 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17124 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17125 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17126 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17127 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17128 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17129 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17130 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17131 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17132 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17133 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17134 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17135 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17136 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17137 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17138 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17139 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17140 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17141 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17142 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17143 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17144 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17145 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17146 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17147 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17148 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17149 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17150 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17151 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17152 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17154 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17155 esac
17156 done
17159 # If the user did not use the arguments to specify the items to instantiate,
17160 # then the envvar interface is used. Set only those that are not.
17161 # We use the long form for the default assignment because of an extremely
17162 # bizarre bug on SunOS 4.1.3.
17163 if $ac_need_defaults; then
17164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17166 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17169 # Have a temporary directory for convenience. Make it in the build tree
17170 # simply because there is no reason against having it here, and in addition,
17171 # creating and moving files from /tmp can sometimes cause problems.
17172 # Hook for its removal unless debugging.
17173 # Note that there is a small window in which the directory will not be cleaned:
17174 # after its creation but before its name has been assigned to `$tmp'.
17175 $debug ||
17177 tmp=
17178 trap 'exit_status=$?
17179 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17181 trap 'as_fn_exit 1' 1 2 13 15
17183 # Create a (secure) tmp directory for tmp files.
17186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17187 test -n "$tmp" && test -d "$tmp"
17188 } ||
17190 tmp=./conf$$-$RANDOM
17191 (umask 077 && mkdir "$tmp")
17192 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17194 # Set up the scripts for CONFIG_FILES section.
17195 # No need to generate them if there are no CONFIG_FILES.
17196 # This happens for instance with `./config.status config.h'.
17197 if test -n "$CONFIG_FILES"; then
17200 ac_cr=`echo X | tr X '\015'`
17201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17202 # But we know of no other shell where ac_cr would be empty at this
17203 # point, so we can use a bashism as a fallback.
17204 if test "x$ac_cr" = x; then
17205 eval ac_cr=\$\'\\r\'
17207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17209 ac_cs_awk_cr='\r'
17210 else
17211 ac_cs_awk_cr=$ac_cr
17214 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17215 _ACEOF
17219 echo "cat >conf$$subs.awk <<_ACEOF" &&
17220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17221 echo "_ACEOF"
17222 } >conf$$subs.sh ||
17223 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17225 ac_delim='%!_!# '
17226 for ac_last_try in false false false false false :; do
17227 . ./conf$$subs.sh ||
17228 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17231 if test $ac_delim_n = $ac_delim_num; then
17232 break
17233 elif $ac_last_try; then
17234 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17235 else
17236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17238 done
17239 rm -f conf$$subs.sh
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17243 _ACEOF
17244 sed -n '
17246 s/^/S["/; s/!.*/"]=/
17249 s/^[^!]*!//
17250 :repl
17251 t repl
17252 s/'"$ac_delim"'$//
17253 t delim
17256 s/\(.\{148\}\)..*/\1/
17257 t more1
17258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17261 b repl
17262 :more1
17263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17266 s/.\{148\}//
17267 t nl
17268 :delim
17270 s/\(.\{148\}\)..*/\1/
17271 t more2
17272 s/["\\]/\\&/g; s/^/"/; s/$/"/
17275 :more2
17276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17279 s/.\{148\}//
17280 t delim
17281 ' <conf$$subs.awk | sed '
17282 /^[^""]/{
17284 s/\n//
17286 ' >>$CONFIG_STATUS || ac_write_fail=1
17287 rm -f conf$$subs.awk
17288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289 _ACAWK
17290 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17291 for (key in S) S_is_set[key] = 1
17292 FS = "\a"
17296 line = $ 0
17297 nfields = split(line, field, "@")
17298 substed = 0
17299 len = length(field[1])
17300 for (i = 2; i < nfields; i++) {
17301 key = field[i]
17302 keylen = length(key)
17303 if (S_is_set[key]) {
17304 value = S[key]
17305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17306 len += length(value) + length(field[++i])
17307 substed = 1
17308 } else
17309 len += 1 + keylen
17312 print line
17315 _ACAWK
17316 _ACEOF
17317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17320 else
17322 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17323 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17324 _ACEOF
17326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17328 # trailing colons and then remove the whole line if VPATH becomes empty
17329 # (actually we leave an empty line to preserve line numbers).
17330 if test "x$srcdir" = x.; then
17331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17332 s/:*\$(srcdir):*/:/
17333 s/:*\${srcdir}:*/:/
17334 s/:*@srcdir@:*/:/
17335 s/^\([^=]*=[ ]*\):*/\1/
17336 s/:*$//
17337 s/^[^=]*=[ ]*$//
17341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17342 fi # test -n "$CONFIG_FILES"
17344 # Set up the scripts for CONFIG_HEADERS section.
17345 # No need to generate them if there are no CONFIG_HEADERS.
17346 # This happens for instance with `./config.status Makefile'.
17347 if test -n "$CONFIG_HEADERS"; then
17348 cat >"$tmp/defines.awk" <<\_ACAWK ||
17349 BEGIN {
17350 _ACEOF
17352 # Transform confdefs.h into an awk script `defines.awk', embedded as
17353 # here-document in config.status, that substitutes the proper values into
17354 # config.h.in to produce config.h.
17356 # Create a delimiter string that does not exist in confdefs.h, to ease
17357 # handling of long lines.
17358 ac_delim='%!_!# '
17359 for ac_last_try in false false :; do
17360 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17361 if test -z "$ac_t"; then
17362 break
17363 elif $ac_last_try; then
17364 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17365 else
17366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17368 done
17370 # For the awk script, D is an array of macro values keyed by name,
17371 # likewise P contains macro parameters if any. Preserve backslash
17372 # newline sequences.
17374 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17375 sed -n '
17376 s/.\{148\}/&'"$ac_delim"'/g
17377 t rset
17378 :rset
17379 s/^[ ]*#[ ]*define[ ][ ]*/ /
17380 t def
17382 :def
17383 s/\\$//
17384 t bsnl
17385 s/["\\]/\\&/g
17386 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17387 D["\1"]=" \3"/p
17388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17390 :bsnl
17391 s/["\\]/\\&/g
17392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17393 D["\1"]=" \3\\\\\\n"\\/p
17394 t cont
17395 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17396 t cont
17398 :cont
17400 s/.\{148\}/&'"$ac_delim"'/g
17401 t clear
17402 :clear
17403 s/\\$//
17404 t bsnlc
17405 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17407 :bsnlc
17408 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17409 b cont
17410 ' <confdefs.h | sed '
17411 s/'"$ac_delim"'/"\\\
17412 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17415 for (key in D) D_is_set[key] = 1
17416 FS = "\a"
17418 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17419 line = \$ 0
17420 split(line, arg, " ")
17421 if (arg[1] == "#") {
17422 defundef = arg[2]
17423 mac1 = arg[3]
17424 } else {
17425 defundef = substr(arg[1], 2)
17426 mac1 = arg[2]
17428 split(mac1, mac2, "(") #)
17429 macro = mac2[1]
17430 prefix = substr(line, 1, index(line, defundef) - 1)
17431 if (D_is_set[macro]) {
17432 # Preserve the white space surrounding the "#".
17433 print prefix "define", macro P[macro] D[macro]
17434 next
17435 } else {
17436 # Replace #undef with comments. This is necessary, for example,
17437 # in the case of _POSIX_SOURCE, which is predefined and required
17438 # on some systems where configure will not decide to define it.
17439 if (defundef == "undef") {
17440 print "/*", prefix defundef, macro, "*/"
17441 next
17445 { print }
17446 _ACAWK
17447 _ACEOF
17448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17449 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17450 fi # test -n "$CONFIG_HEADERS"
17453 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17454 shift
17455 for ac_tag
17457 case $ac_tag in
17458 :[FHLC]) ac_mode=$ac_tag; continue;;
17459 esac
17460 case $ac_mode$ac_tag in
17461 :[FHL]*:*);;
17462 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17463 :[FH]-) ac_tag=-:-;;
17464 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17465 esac
17466 ac_save_IFS=$IFS
17467 IFS=:
17468 set x $ac_tag
17469 IFS=$ac_save_IFS
17470 shift
17471 ac_file=$1
17472 shift
17474 case $ac_mode in
17475 :L) ac_source=$1;;
17476 :[FH])
17477 ac_file_inputs=
17478 for ac_f
17480 case $ac_f in
17481 -) ac_f="$tmp/stdin";;
17482 *) # Look for the file first in the build tree, then in the source tree
17483 # (if the path is not absolute). The absolute path cannot be DOS-style,
17484 # because $ac_f cannot contain `:'.
17485 test -f "$ac_f" ||
17486 case $ac_f in
17487 [\\/$]*) false;;
17488 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17489 esac ||
17490 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17491 esac
17492 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17493 as_fn_append ac_file_inputs " '$ac_f'"
17494 done
17496 # Let's still pretend it is `configure' which instantiates (i.e., don't
17497 # use $as_me), people would be surprised to read:
17498 # /* config.h. Generated by config.status. */
17499 configure_input='Generated from '`
17500 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17501 `' by configure.'
17502 if test x"$ac_file" != x-; then
17503 configure_input="$ac_file. $configure_input"
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17505 $as_echo "$as_me: creating $ac_file" >&6;}
17507 # Neutralize special characters interpreted by sed in replacement strings.
17508 case $configure_input in #(
17509 *\&* | *\|* | *\\* )
17510 ac_sed_conf_input=`$as_echo "$configure_input" |
17511 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17512 *) ac_sed_conf_input=$configure_input;;
17513 esac
17515 case $ac_tag in
17516 *:-:* | *:-) cat >"$tmp/stdin" \
17517 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17518 esac
17520 esac
17522 ac_dir=`$as_dirname -- "$ac_file" ||
17523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17524 X"$ac_file" : 'X\(//\)[^/]' \| \
17525 X"$ac_file" : 'X\(//\)$' \| \
17526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17527 $as_echo X"$ac_file" |
17528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17529 s//\1/
17532 /^X\(\/\/\)[^/].*/{
17533 s//\1/
17536 /^X\(\/\/\)$/{
17537 s//\1/
17540 /^X\(\/\).*/{
17541 s//\1/
17544 s/.*/./; q'`
17545 as_dir="$ac_dir"; as_fn_mkdir_p
17546 ac_builddir=.
17548 case "$ac_dir" in
17549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17552 # A ".." for each directory in $ac_dir_suffix.
17553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17554 case $ac_top_builddir_sub in
17555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17557 esac ;;
17558 esac
17559 ac_abs_top_builddir=$ac_pwd
17560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17561 # for backward compatibility:
17562 ac_top_builddir=$ac_top_build_prefix
17564 case $srcdir in
17565 .) # We are building in place.
17566 ac_srcdir=.
17567 ac_top_srcdir=$ac_top_builddir_sub
17568 ac_abs_top_srcdir=$ac_pwd ;;
17569 [\\/]* | ?:[\\/]* ) # Absolute name.
17570 ac_srcdir=$srcdir$ac_dir_suffix;
17571 ac_top_srcdir=$srcdir
17572 ac_abs_top_srcdir=$srcdir ;;
17573 *) # Relative name.
17574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17575 ac_top_srcdir=$ac_top_build_prefix$srcdir
17576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17577 esac
17578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17581 case $ac_mode in
17584 # CONFIG_FILE
17587 case $INSTALL in
17588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17590 esac
17591 ac_MKDIR_P=$MKDIR_P
17592 case $MKDIR_P in
17593 [\\/$]* | ?:[\\/]* ) ;;
17594 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17595 esac
17596 _ACEOF
17598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17599 # If the template does not know about datarootdir, expand it.
17600 # FIXME: This hack should be removed a few years after 2.60.
17601 ac_datarootdir_hack=; ac_datarootdir_seen=
17602 ac_sed_dataroot='
17603 /datarootdir/ {
17607 /@datadir@/p
17608 /@docdir@/p
17609 /@infodir@/p
17610 /@localedir@/p
17611 /@mandir@/p'
17612 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17613 *datarootdir*) ac_datarootdir_seen=yes;;
17614 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17616 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17617 _ACEOF
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 ac_datarootdir_hack='
17620 s&@datadir@&$datadir&g
17621 s&@docdir@&$docdir&g
17622 s&@infodir@&$infodir&g
17623 s&@localedir@&$localedir&g
17624 s&@mandir@&$mandir&g
17625 s&\\\${datarootdir}&$datarootdir&g' ;;
17626 esac
17627 _ACEOF
17629 # Neutralize VPATH when `$srcdir' = `.'.
17630 # Shell code in configure.ac might set extrasub.
17631 # FIXME: do we really want to maintain this feature?
17632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17633 ac_sed_extra="$ac_vpsub
17634 $extrasub
17635 _ACEOF
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17639 s|@configure_input@|$ac_sed_conf_input|;t t
17640 s&@top_builddir@&$ac_top_builddir_sub&;t t
17641 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17642 s&@srcdir@&$ac_srcdir&;t t
17643 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17644 s&@top_srcdir@&$ac_top_srcdir&;t t
17645 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17646 s&@builddir@&$ac_builddir&;t t
17647 s&@abs_builddir@&$ac_abs_builddir&;t t
17648 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17649 s&@INSTALL@&$ac_INSTALL&;t t
17650 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17651 $ac_datarootdir_hack
17653 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17654 || as_fn_error "could not create $ac_file" "$LINENO" 5
17656 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17657 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17658 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17660 which seems to be undefined. Please make sure it is defined." >&5
17661 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17662 which seems to be undefined. Please make sure it is defined." >&2;}
17664 rm -f "$tmp/stdin"
17665 case $ac_file in
17666 -) cat "$tmp/out" && rm -f "$tmp/out";;
17667 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17668 esac \
17669 || as_fn_error "could not create $ac_file" "$LINENO" 5
17673 # CONFIG_HEADER
17675 if test x"$ac_file" != x-; then
17677 $as_echo "/* $configure_input */" \
17678 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17679 } >"$tmp/config.h" \
17680 || as_fn_error "could not create $ac_file" "$LINENO" 5
17681 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17684 else
17685 rm -f "$ac_file"
17686 mv "$tmp/config.h" "$ac_file" \
17687 || as_fn_error "could not create $ac_file" "$LINENO" 5
17689 else
17690 $as_echo "/* $configure_input */" \
17691 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17692 || as_fn_error "could not create -" "$LINENO" 5
17694 # Compute "$ac_file"'s index in $config_headers.
17695 _am_arg="$ac_file"
17696 _am_stamp_count=1
17697 for _am_header in $config_headers :; do
17698 case $_am_header in
17699 $_am_arg | $_am_arg:* )
17700 break ;;
17702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17703 esac
17704 done
17705 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17706 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17707 X"$_am_arg" : 'X\(//\)[^/]' \| \
17708 X"$_am_arg" : 'X\(//\)$' \| \
17709 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17710 $as_echo X"$_am_arg" |
17711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17712 s//\1/
17715 /^X\(\/\/\)[^/].*/{
17716 s//\1/
17719 /^X\(\/\/\)$/{
17720 s//\1/
17723 /^X\(\/\).*/{
17724 s//\1/
17727 s/.*/./; q'`/stamp-h$_am_stamp_count
17730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17731 $as_echo "$as_me: executing $ac_file commands" >&6;}
17733 esac
17736 case $ac_file$ac_mode in
17737 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17738 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17739 # are listed without --file. Let's play safe and only enable the eval
17740 # if we detect the quoting.
17741 case $CONFIG_FILES in
17742 *\'*) eval set x "$CONFIG_FILES" ;;
17743 *) set x $CONFIG_FILES ;;
17744 esac
17745 shift
17746 for mf
17748 # Strip MF so we end up with the name of the file.
17749 mf=`echo "$mf" | sed -e 's/:.*$//'`
17750 # Check whether this is an Automake generated Makefile or not.
17751 # We used to match only the files named `Makefile.in', but
17752 # some people rename them; so instead we look at the file content.
17753 # Grep'ing the first line is not enough: some people post-process
17754 # each Makefile.in and add a new line on top of each file to say so.
17755 # Grep'ing the whole file is not good either: AIX grep has a line
17756 # limit of 2048, but all sed's we know have understand at least 4000.
17757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17758 dirpart=`$as_dirname -- "$mf" ||
17759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17760 X"$mf" : 'X\(//\)[^/]' \| \
17761 X"$mf" : 'X\(//\)$' \| \
17762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17763 $as_echo X"$mf" |
17764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17765 s//\1/
17768 /^X\(\/\/\)[^/].*/{
17769 s//\1/
17772 /^X\(\/\/\)$/{
17773 s//\1/
17776 /^X\(\/\).*/{
17777 s//\1/
17780 s/.*/./; q'`
17781 else
17782 continue
17784 # Extract the definition of DEPDIR, am__include, and am__quote
17785 # from the Makefile without running `make'.
17786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17787 test -z "$DEPDIR" && continue
17788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17789 test -z "am__include" && continue
17790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17791 # When using ansi2knr, U may be empty or an underscore; expand it
17792 U=`sed -n 's/^U = //p' < "$mf"`
17793 # Find all dependency output files, they are included files with
17794 # $(DEPDIR) in their names. We invoke sed twice because it is the
17795 # simplest approach to changing $(DEPDIR) to its actual value in the
17796 # expansion.
17797 for file in `sed -n "
17798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17800 # Make sure the directory exists.
17801 test -f "$dirpart/$file" && continue
17802 fdir=`$as_dirname -- "$file" ||
17803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804 X"$file" : 'X\(//\)[^/]' \| \
17805 X"$file" : 'X\(//\)$' \| \
17806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17807 $as_echo X"$file" |
17808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17809 s//\1/
17812 /^X\(\/\/\)[^/].*/{
17813 s//\1/
17816 /^X\(\/\/\)$/{
17817 s//\1/
17820 /^X\(\/\).*/{
17821 s//\1/
17824 s/.*/./; q'`
17825 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17826 # echo "creating $dirpart/$file"
17827 echo '# dummy' > "$dirpart/$file"
17828 done
17829 done
17832 "default-1":C)
17833 for ac_file in $CONFIG_FILES; do
17834 # Support "outfile[:infile[:infile...]]"
17835 case "$ac_file" in
17836 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17837 esac
17838 # PO directories have a Makefile.in generated from Makefile.in.in.
17839 case "$ac_file" in */Makefile.in)
17840 # Adjust a relative srcdir.
17841 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17842 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17843 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17844 # In autoconf-2.13 it is called $ac_given_srcdir.
17845 # In autoconf-2.50 it is called $srcdir.
17846 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17847 case "$ac_given_srcdir" in
17848 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17849 /*) top_srcdir="$ac_given_srcdir" ;;
17850 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17851 esac
17852 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17853 rm -f "$ac_dir/POTFILES"
17854 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17855 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17856 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17857 # on $ac_dir but don't depend on user-specified configuration
17858 # parameters.
17859 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17860 # The LINGUAS file contains the set of available languages.
17861 if test -n "$ALL_LINGUAS"; then
17862 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17864 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17865 # Hide the ALL_LINGUAS assigment from automake.
17866 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17868 case "$ac_given_srcdir" in
17869 .) srcdirpre= ;;
17870 *) srcdirpre='$(srcdir)/' ;;
17871 esac
17872 POFILES=
17873 GMOFILES=
17874 UPDATEPOFILES=
17875 DUMMYPOFILES=
17876 for lang in $ALL_LINGUAS; do
17877 POFILES="$POFILES $srcdirpre$lang.po"
17878 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17879 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17880 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17881 done
17882 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17883 # environment variable.
17884 INST_LINGUAS=
17885 if test -n "$ALL_LINGUAS"; then
17886 for presentlang in $ALL_LINGUAS; do
17887 useit=no
17888 if test "%UNSET%" != "$LINGUAS"; then
17889 desiredlanguages="$LINGUAS"
17890 else
17891 desiredlanguages="$ALL_LINGUAS"
17893 for desiredlang in $desiredlanguages; do
17894 # Use the presentlang catalog if desiredlang is
17895 # a. equal to presentlang, or
17896 # b. a variant of presentlang (because in this case,
17897 # presentlang can be used as a fallback for messages
17898 # which are not translated in the desiredlang catalog).
17899 case "$desiredlang" in
17900 "$presentlang"*) useit=yes;;
17901 esac
17902 done
17903 if test $useit = yes; then
17904 INST_LINGUAS="$INST_LINGUAS $presentlang"
17906 done
17908 CATALOGS=
17909 if test -n "$INST_LINGUAS"; then
17910 for lang in $INST_LINGUAS; do
17911 CATALOGS="$CATALOGS $lang.gmo"
17912 done
17914 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17915 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"
17916 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17917 if test -f "$f"; then
17918 case "$f" in
17919 *.orig | *.bak | *~) ;;
17920 *) cat "$f" >> "$ac_dir/Makefile" ;;
17921 esac
17923 done
17926 esac
17927 done ;;
17928 "denoiser":C) if test $denoiserlevel -gt 0; then
17929 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17930 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" \
17931 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17932 for i in `find . -name 'Makefile' -print`; do
17933 if test -n "`head -n 1 $i | grep '^#'`"; then
17934 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17936 done
17937 fi ;;
17939 esac
17940 done # for ac_tag
17943 as_fn_exit 0
17944 _ACEOF
17945 ac_clean_files=$ac_clean_files_save
17947 test $ac_write_fail = 0 ||
17948 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17951 # configure is writing to config.log, and then calls config.status.
17952 # config.status does its own redirection, appending to config.log.
17953 # Unfortunately, on DOS this fails, as config.log is still kept open
17954 # by configure, so config.status won't be able to write to it; its
17955 # output is simply discarded. So we exec the FD to /dev/null,
17956 # effectively closing config.log, so it can be properly (re)opened and
17957 # appended to by config.status. When coming back to configure, we
17958 # need to make the FD available again.
17959 if test "$no_create" != yes; then
17960 ac_cs_success=:
17961 ac_config_status_args=
17962 test "$silent" = yes &&
17963 ac_config_status_args="$ac_config_status_args --quiet"
17964 exec 5>/dev/null
17965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17966 exec 5>>config.log
17967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17968 # would make configure fail if this is the last instruction.
17969 $ac_cs_success || as_fn_exit $?
17971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17977 if test -n "$svndate"; then :
17978 SVN_REVISION=" ($svndate)"
17979 else
17980 SVN_REVISION=
17983 echo
17984 echo
17985 echo " Configure script has finished system check."
17986 echo
17987 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17988 echo
17989 echo " aMule enabled options:"
17990 echo
17991 echo " **** aMule Core ****"
17992 echo " Prefix where aMule should be installed? ${prefix:-none}"
17993 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17994 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17995 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17996 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17997 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17998 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17999 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18000 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18001 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18002 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
18004 echo
18005 echo " **** aMule TextClient ****"
18006 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18007 echo
18008 echo " **** aMule WebServer ****"
18009 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18010 echo
18011 echo " **** aMule ED2K Links Handler ****"
18012 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18013 echo
18014 echo " **** aMuleLinkCreator ****"
18015 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18016 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18017 echo
18018 echo " **** aMule Statistics ****"
18019 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18020 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18021 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18022 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
18024 echo
18025 echo " **** General Libraries and Tools ****"
18026 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18027 echo " Libraries aMule will use to build:"
18028 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 :
18030 wxinfo="$WX_PORT"
18031 if test $WX_DEBUG -eq 1; then :
18032 wxinfo="$wxinfo,debug"
18034 if test $WX_SHARED -eq 1; then :
18035 wxinfo="$wxinfo,shared"
18036 else
18037 wxinfo="$wxinfo,static"
18039 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
18042 if test ${with_boost:-no} != no; then :
18043 if test ${with_boost:-no} = disabled; then
18044 echo " boost Not detected"
18045 elif test ${boost_cv_inc_path:-yes} != yes; then
18046 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18047 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18052 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18053 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
18055 if test ${enable_upnp:-yes} = yes; then :
18057 if test -n "$with_libupnp_prefix"; then :
18058 libupnp_place=" (in $with_libupnp_prefix)"
18060 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18063 if test ${enable_nls:-yes} = yes; then
18064 if test x$USE_NLS = xno; then :
18065 libintl_found="Not detected"
18066 else
18067 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18068 libintl_found="included"
18069 else
18070 libintl_found="system"
18073 echo " libintl $libintl_found"
18075 if test ${enable_geoip:-no} = yes; then :
18076 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18077 geoip_style=system
18078 else
18079 geoip_style=user
18081 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18082 echo " libGeoIP ${geoip_style}"
18085 if test ${enable_webserver:-no} = yes; then :
18086 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18088 if test ${enable_cas:-no} = yes; then :
18089 echo " libgd ${GDLIB_VERSION:-Not detected}"
18091 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 :
18092 echo " zlib ${ZLIB_VERSION:-Not detected}"
18094 if test ${enable_plasmamule:-no} = yes; then :
18095 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18096 echo " qt-core-libs ${QT_CORE_LIBS}"
18097 echo " qt-gui-libs ${QT_GUI_LIBS}"
18098 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18099 echo " kde-headers ${KDE_HEADER_DIR}"
18100 echo " kde-services-path ${KDE_SERVICE_PATH}"
18101 echo " kde-module-path ${KDE_MODULE_PATH}"
18102 echo " kde-icon-path ${KDE_ICON_PATH}"
18103 echo " kde-mime-path ${KDE_MIME_PATH}"
18104 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18107 if test ${_mule_has_warnings:-no} = yes; then
18108 echo ""
18109 echo ""
18110 echo " *** Warnings during configuration ***"
18112 if test ${_mule_warning_0:-no} = yes; then
18113 cat <<_MULEEOT
18115 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18116 Please check that gdlib-config is in your default path, check out
18117 LD_LIBRARY_PATH or equivalent variable.
18118 Or this might also be that your gdlib-config has other name.
18119 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18120 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18121 If you use compiled packages check if you have devel pack installed.
18122 To download the latest version check http://www.boutell.com/gd for sources.
18123 _MULEEOT
18125 if test ${_mule_warning_1:-no} = yes; then
18126 cat <<_MULEEOT
18128 * libpng >= 1.2.0 not found.
18129 amuleweb will be compiled but file download progress bar images will NOT be
18130 generated.
18131 _MULEEOT
18133 if test ${_mule_warning_2:-no} = yes; then
18134 cat <<_MULEEOT
18136 * File::Copy perl module is required by the mldonkey_importer script.
18137 If you want to use this script please install File::Copy from CPAN.
18138 _MULEEOT
18140 if test ${_mule_warning_3:-no} = yes; then
18141 cat <<_MULEEOT
18143 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18144 _MULEEOT
18146 if test ${_mule_warning_4:-no} = yes; then
18147 cat <<_MULEEOT
18149 * GeoIP support has been disabled because the GeoIP libraries were not found
18150 _MULEEOT
18152 if test ${_mule_warning_5:-no} = yes; then
18153 cat <<_MULEEOT
18155 * GeoIP support has been disabled because the GeoIP header files were not
18156 found
18157 _MULEEOT
18159 if test ${_mule_warning_6:-no} = yes; then
18160 cat <<_MULEEOT
18162 * UPnP code has been disabled because ${libupnp_error}.
18163 _MULEEOT
18165 if test ${_mule_warning_7:-no} = yes; then
18166 cat <<_MULEEOT
18168 * Cross-compilation detected, so exception handling cannot be tested.
18169 Note that broken exception handling in your compiler may lead to unexpected
18170 crashes.
18171 _MULEEOT
18173 if test ${_mule_warning_8:-no} = yes; then
18174 cat <<_MULEEOT
18176 * Boost support has been disabled because Boost.System not found
18177 _MULEEOT
18179 if test ${_mule_warning_9:-no} = yes; then
18180 cat <<_MULEEOT
18182 * Boost support has been disabled because Boost.Asio not found
18183 _MULEEOT
18185 if test ${_mule_warning_10:-no} = yes; then
18186 cat <<_MULEEOT
18188 * Boost support has been disabled because Boost.Asio not found
18189 _MULEEOT
18191 if test ${_mule_warning_11:-no} = yes; then
18192 cat <<_MULEEOT
18194 * Boost support has been disabled because of insufficient Boost version.
18195 _MULEEOT
18197 if test ${_mule_warning_12:-no} = yes; then
18198 cat <<_MULEEOT
18200 * configure cannot check whether malloc() and realloc() are GNU libc
18201 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18202 configure with the --without-gnu-malloc switch.
18203 _MULEEOT
18205 if test ${_mule_warning_13:-no} = yes; then
18206 cat <<_MULEEOT
18208 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18209 support.
18210 _MULEEOT
18212 if test ${_mule_warning_14:-no} = yes; then
18213 cat <<_MULEEOT
18215 * Cannot link to the library containing the bfd functions.
18216 _MULEEOT
18218 if test ${_mule_warning_15:-no} = yes; then
18219 cat <<_MULEEOT
18221 * bfd.h not found or unusable, please install binutils development package if
18222 you are a developer or want to help testing aMule
18223 _MULEEOT