Another warning
[amule.git] / configure
blobe77d75e47afa405e9cb2d067b29b73a0099ac6b8
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 READLINE_LIBS
602 COMPILE_LIB_EC_FALSE
603 COMPILE_LIB_EC_TRUE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
606 PLASMAMULE_FALSE
607 PLASMAMULE_TRUE
608 INSTALL_SKINS_FALSE
609 INSTALL_SKINS_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
612 COMPILE_NLS_FALSE
613 COMPILE_NLS_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
616 NEED_RC_FALSE
617 NEED_RC_TRUE
618 SYS_WIN32_FALSE
619 SYS_WIN32_TRUE
620 DEBUGFLAG
621 KDE_MIME_PATH
622 KDE_ICON_PATH
623 KDE_MODULE_PATH
624 KDE_SERVICE_PATH
625 KDE_APPLNK_PATH
626 KDE_HEADER_DIR
627 KDE4_CONFIG
628 QT_GUI_LIBS
629 QT_GUI_CXXFLAGS
630 QT_CORE_LIBS
631 QT_CORE_CXXFLAGS
632 QT_DBUS_LDFLAGS
633 QT_MOC
634 SVNDATE
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 CAS_DEFS
713 GDLIB_LIBS
714 GDLIB_LDFLAGS
715 GDLIB_CFLAGS
716 GDLIB_CONFIG_PATH
717 ZLIB_LIBS
718 ZLIB_LDFLAGS
719 ZLIB_CPPFLAGS
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_zlib
893 with_gdlib_prefix
894 with_gdlib_config
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_mmap
917 with_language
918 with_gnu_ld
919 enable_rpath
920 with_libiconv_prefix
921 enable_nls
922 with_included_gettext
923 with_libintl_prefix
924 with_denoise_level
925 enable_ccache
926 with_ccache_prefix
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CXXFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
937 CXXCPP
939 CFLAGS
941 YACC
942 YFLAGS
944 RCFLAGS
945 PKG_CONFIG
946 BOOST_ROOT'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures aMule SVN to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of aMule SVN:";;
1559 esac
1560 cat <<\_ACEOF
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-silent-rules less verbose build output (undo: `make V=1')
1567 --disable-silent-rules verbose build output (undo: `make V=0')
1568 --enable-maintainer-mode enable make rules and dependencies not useful
1569 (and sometimes confusing) to the casual installer
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --disable-monolithic disable building of the monolithic aMule app
1573 --enable-amule-daemon compile aMule daemon version
1574 --enable-amulecmd compile aMule command line client
1575 --enable-webserver compile aMule WebServer
1576 --enable-amule-gui compile aMule remote GUI
1577 --enable-cas compile C aMule Statistics
1578 --enable-wxcas compile aMule GUI Statistics
1579 --disable-ed2k don't compile aMule ed2k links handler
1580 --enable-alc compile aMuleLinkCreator GUI version
1581 --enable-alcc compile aMuleLinkCreator for console
1582 --enable-xas install xas XChat2 plugin
1583 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1584 --enable-plasmamule compile aMule plasma applet and engine
1585 --enable-static produce a statically linked executable
1586 --enable-kde-in-home install KDE related stuff in your home dir
1587 --enable-geoip compile with GeoIP IP2Country library
1588 --disable-upnp do not compile UPnP code
1589 --disable-debug disable additional debugging output
1590 --enable-profile enable code profiling
1591 --enable-optimize enable code optimization
1592 --enable-mmap enable using mapped memory if supported
1593 --disable-rpath do not hardcode runtime library paths
1594 --disable-nls do not use Native Language Support
1595 --enable-ccache enable ccache support for fast recompilation
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-kde4-config=PATH kde4-config script to use
1601 --with-moc=PATH Search in PATH for Qt's meta object compiler
1602 --without-gnu-malloc Don't assume that we use GNU libc compatible
1603 malloc/realloc when cross-compiling
1604 --with-zlib=PREFIX use zlib in PREFIX
1605 --with-gdlib-prefix=PREFIX
1606 prefix where gdlib is installed (optional)
1607 --with-gdlib-config=CONFIG
1608 gdlib-config script to use (optional)
1609 --with-libpng-prefix=PREFIX
1610 prefix where libpng is installed (optional)
1611 --with-libpng-config=CONFIG
1612 libpng-config script to use (optional)
1613 --with-geoip-headers=DIR
1614 GeoIP include files location
1615 --with-geoip-lib=DIR GeoIP library location
1616 --with-geoip-static Explicitly link GeoIP statically (default=no)
1617 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1618 --with-wx-config=CONFIG wx-config script to use (optional)
1619 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1620 --with-wx-exec-prefix=PREFIX
1621 Exec prefix where wxWidgets is installed (optional)
1622 --with-toolkit Build against a specific wxWidgets toolkit (default
1623 is auto)
1624 --with-wxshared Force building against a shared build of wxWidgets,
1625 even if --disable-shared is given (default is auto)
1626 --with-wxdebug Force building against a debug build of wxWidgets,
1627 even if --disable-debug is given (default is auto)
1628 --with-wxversion Build against a specific version of wxWidgets
1629 (default is auto)
1630 --with-libupnp-prefix=PREFIX
1631 UPnP library location
1632 --with-crypto-prefix=PREFIX
1633 prefix where crypto++ is installed
1634 --with-boost[=DIR] use Boost.Asio for networking
1635 --with-language=<langs> Specify a comma-separated list of languages you want
1636 to have installed. See po/LINGUAS for available
1637 languages
1638 --with-gnu-ld assume the C compiler uses GNU ld default=no
1639 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1640 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1641 --with-included-gettext use the GNU gettext library included here
1642 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1643 --without-libintl-prefix don't search for libintl in includedir and libdir
1644 --with-denoise-level=<level>
1645 Specifies denoising level (0-4):
1646 0 - Do nothing
1647 4 - Suppress all normal output
1648 (for more information see
1649 src/utils/scripts/denoiser.rules)
1651 --with-ccache-prefix=PREFIX
1652 prefix where ccache is installed
1654 Some influential environment variables:
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 CXXCPP C++ preprocessor
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 CPP C preprocessor
1666 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1667 the first program found out of: `bison -y', `byacc', `yacc'.
1668 YFLAGS The list of arguments that will be passed by default to $YACC.
1669 This script will default YFLAGS to the empty string to avoid a
1670 default value of `-d' given by some make applications.
1671 RC Resource Compiler
1672 RCFLAGS Resource Compiler Flags
1673 PKG_CONFIG path to pkg-config utility
1674 BOOST_ROOT Location of Boost installation
1676 Use these variables to override the choices made by `configure' or to help
1677 it to find libraries and programs with nonstandard names/locations.
1679 Report bugs to <admin@amule.org>.
1680 _ACEOF
1681 ac_status=$?
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 continue
1690 ac_builddir=.
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1708 case $srcdir in
1709 .) # We are building in place.
1710 ac_srcdir=.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1717 *) # Relative name.
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1732 else
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734 fi || ac_status=$?
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1736 done
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741 cat <<\_ACEOF
1742 aMule configure SVN
1743 generated by GNU Autoconf 2.65
1745 Copyright (C) 2009 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749 exit
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_cxx_try_compile LINENO
1757 # ----------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_cxx_try_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext
1763 if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_cxx_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=1
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_cxx_try_compile
1794 # ac_fn_cxx_try_cpp LINENO
1795 # ------------------------
1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_cpp ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } >/dev/null && {
1816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_cxx_try_cpp
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev/null && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_cpp
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 $as_test_x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=1
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_c_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1956 ac_fn_c_try_run ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 ac_retval=$ac_status
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 as_fn_set_status $ac_retval
1992 } # ac_fn_c_try_run
1994 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1997 # the include files in INCLUDES and setting the cache variable VAR
1998 # accordingly.
1999 ac_fn_c_check_header_mongrel ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 else
2012 # Is the header compilable?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2014 $as_echo_n "checking $2 usability... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_header_compiler=yes
2022 else
2023 ac_header_compiler=no
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2027 $as_echo "$ac_header_compiler" >&6; }
2029 # Is the header present?
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2031 $as_echo_n "checking $2 presence... " >&6; }
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 #include <$2>
2035 _ACEOF
2036 if ac_fn_c_try_cpp "$LINENO"; then :
2037 ac_header_preproc=yes
2038 else
2039 ac_header_preproc=no
2041 rm -f conftest.err conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2043 $as_echo "$ac_header_preproc" >&6; }
2045 # So? What about this header?
2046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2047 yes:no: )
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2049 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 no:yes:* )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2055 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2057 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2059 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2061 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 ( cat <<\_ASBOX
2065 ## ------------------------------ ##
2066 ## Report this to admin@amule.org ##
2067 ## ------------------------------ ##
2068 _ASBOX
2069 ) | sed "s/^/$as_me: WARNING: /" >&2
2071 esac
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=\$ac_header_compiler"
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_check_header_mongrel
2087 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists and can be compiled using the include files in
2090 # INCLUDES, setting the cache variable VAR accordingly.
2091 ac_fn_c_check_header_compile ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 eval "$3=yes"
2106 else
2107 eval "$3=no"
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_check_header_compile
2118 # ac_fn_cxx_try_run LINENO
2119 # ------------------------
2120 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2121 # that executables *can* be run.
2122 ac_fn_cxx_try_run ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { { ac_try="$ac_link"
2126 case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_link") 2>&5
2133 ac_status=$?
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2136 { { case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_try") 2>&5
2143 ac_status=$?
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; }; }; then :
2146 ac_retval=0
2147 else
2148 $as_echo "$as_me: program exited with status $ac_status" >&5
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 ac_retval=$ac_status
2154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_cxx_try_run
2160 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2161 # ---------------------------------------------------------
2162 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2163 # the include files in INCLUDES and setting the cache variable VAR
2164 # accordingly.
2165 ac_fn_cxx_check_header_mongrel ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2174 eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 else
2178 # Is the header compilable?
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2180 $as_echo_n "checking $2 usability... " >&6; }
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 #include <$2>
2185 _ACEOF
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187 ac_header_compiler=yes
2188 else
2189 ac_header_compiler=no
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2193 $as_echo "$ac_header_compiler" >&6; }
2195 # Is the header present?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2197 $as_echo_n "checking $2 presence... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_cxx_try_cpp "$LINENO"; then :
2203 ac_header_preproc=yes
2204 else
2205 ac_header_preproc=no
2207 rm -f conftest.err conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2209 $as_echo "$ac_header_preproc" >&6; }
2211 # So? What about this header?
2212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2213 yes:no: )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2215 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2217 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 no:yes:* )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2221 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2223 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2225 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2227 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ( cat <<\_ASBOX
2231 ## ------------------------------ ##
2232 ## Report this to admin@amule.org ##
2233 ## ------------------------------ ##
2234 _ASBOX
2235 ) | sed "s/^/$as_me: WARNING: /" >&2
2237 esac
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2242 else
2243 eval "$3=\$ac_header_compiler"
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_cxx_check_header_mongrel
2253 # ac_fn_cxx_try_link LINENO
2254 # -------------------------
2255 # Try to link conftest.$ac_ext, and return whether this succeeded.
2256 ac_fn_cxx_try_link ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 rm -f conftest.$ac_objext conftest$ac_exeext
2260 if { { ac_try="$ac_link"
2261 case "(($ac_try" in
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2264 esac
2265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2266 $as_echo "$ac_try_echo"; } >&5
2267 (eval "$ac_link") 2>conftest.err
2268 ac_status=$?
2269 if test -s conftest.err; then
2270 grep -v '^ *+' conftest.err >conftest.er1
2271 cat conftest.er1 >&5
2272 mv -f conftest.er1 conftest.err
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && {
2276 test -z "$ac_cxx_werror_flag" ||
2277 test ! -s conftest.err
2278 } && test -s conftest$ac_exeext && {
2279 test "$cross_compiling" = yes ||
2280 $as_test_x conftest$ac_exeext
2281 }; then :
2282 ac_retval=0
2283 else
2284 $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2287 ac_retval=1
2289 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2290 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2291 # interfere with the next link command; also delete a directory that is
2292 # left behind by Apple's compiler. We do this before executing the actions.
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 as_fn_set_status $ac_retval
2297 } # ac_fn_cxx_try_link
2299 # ac_fn_c_check_func LINENO FUNC VAR
2300 # ----------------------------------
2301 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2302 ac_fn_c_check_func ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2314 #define $2 innocuous_$2
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $2 (); below.
2318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2319 <limits.h> exists even on freestanding compilers. */
2321 #ifdef __STDC__
2322 # include <limits.h>
2323 #else
2324 # include <assert.h>
2325 #endif
2327 #undef $2
2329 /* Override any GCC internal prototype to avoid an error.
2330 Use char because int might match the return type of a GCC
2331 builtin and then its argument prototype would still apply. */
2332 #ifdef __cplusplus
2333 extern "C"
2334 #endif
2335 char $2 ();
2336 /* The GNU C library defines this for functions which it implements
2337 to always fail with ENOSYS. Some functions are actually named
2338 something starting with __ and the normal name is an alias. */
2339 #if defined __stub_$2 || defined __stub___$2
2340 choke me
2341 #endif
2344 main ()
2346 return $2 ();
2348 return 0;
2350 _ACEOF
2351 if ac_fn_c_try_link "$LINENO"; then :
2352 eval "$3=yes"
2353 else
2354 eval "$3=no"
2356 rm -f core conftest.err conftest.$ac_objext \
2357 conftest$ac_exeext conftest.$ac_ext
2359 eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_check_func
2366 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2367 # -------------------------------------------
2368 # Tests whether TYPE exists after having included INCLUDES, setting cache
2369 # variable VAR accordingly.
2370 ac_fn_c_check_type ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 eval "$3=no"
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2383 main ()
2385 if (sizeof ($2))
2386 return 0;
2388 return 0;
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2396 main ()
2398 if (sizeof (($2)))
2399 return 0;
2401 return 0;
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2406 else
2407 eval "$3=yes"
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 eval ac_res=\$$3
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2418 } # ac_fn_c_check_type
2420 # ac_fn_c_check_decl LINENO SYMBOL VAR
2421 # ------------------------------------
2422 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2423 ac_fn_c_check_decl ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2427 $as_echo_n "checking whether $2 is declared... " >&6; }
2428 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2435 main ()
2437 #ifndef $2
2438 (void) $2;
2439 #endif
2442 return 0;
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 eval "$3=yes"
2447 else
2448 eval "$3=no"
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 } # ac_fn_c_check_decl
2458 cat >config.log <<_ACEOF
2459 This file contains any messages produced by compilers while
2460 running configure, to aid debugging if configure makes a mistake.
2462 It was created by aMule $as_me SVN, which was
2463 generated by GNU Autoconf 2.65. Invocation command line was
2465 $ $0 $@
2467 _ACEOF
2468 exec 5>>config.log
2470 cat <<_ASUNAME
2471 ## --------- ##
2472 ## Platform. ##
2473 ## --------- ##
2475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2492 _ASUNAME
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 $as_echo "PATH: $as_dir"
2500 done
2501 IFS=$as_save_IFS
2503 } >&5
2505 cat >&5 <<_ACEOF
2508 ## ----------- ##
2509 ## Core tests. ##
2510 ## ----------- ##
2512 _ACEOF
2515 # Keep a trace of the command line.
2516 # Strip out --no-create and --no-recursion so they do not pile up.
2517 # Strip out --silent because we don't want to record it for future runs.
2518 # Also quote any args containing shell meta-characters.
2519 # Make two passes to allow for proper duplicate-argument suppression.
2520 ac_configure_args=
2521 ac_configure_args0=
2522 ac_configure_args1=
2523 ac_must_keep_next=false
2524 for ac_pass in 1 2
2526 for ac_arg
2528 case $ac_arg in
2529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2531 | -silent | --silent | --silen | --sile | --sil)
2532 continue ;;
2533 *\'*)
2534 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535 esac
2536 case $ac_pass in
2537 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2539 as_fn_append ac_configure_args1 " '$ac_arg'"
2540 if test $ac_must_keep_next = true; then
2541 ac_must_keep_next=false # Got value, back to normal.
2542 else
2543 case $ac_arg in
2544 *=* | --config-cache | -C | -disable-* | --disable-* \
2545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2547 | -with-* | --with-* | -without-* | --without-* | --x)
2548 case "$ac_configure_args0 " in
2549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550 esac
2552 -* ) ac_must_keep_next=true ;;
2553 esac
2555 as_fn_append ac_configure_args " '$ac_arg'"
2557 esac
2558 done
2559 done
2560 { ac_configure_args0=; unset ac_configure_args0;}
2561 { ac_configure_args1=; unset ac_configure_args1;}
2563 # When interrupted or exit'd, cleanup temporary files, and complete
2564 # config.log. We remove comments because anyway the quotes in there
2565 # would cause problems or look ugly.
2566 # WARNING: Use '\'' to represent an apostrophe within the trap.
2567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2568 trap 'exit_status=$?
2569 # Save into config.log some information that might help in debugging.
2571 echo
2573 cat <<\_ASBOX
2574 ## ---------------- ##
2575 ## Cache variables. ##
2576 ## ---------------- ##
2577 _ASBOX
2578 echo
2579 # The following way of writing the cache mishandles newlines in values,
2581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2582 eval ac_val=\$$ac_var
2583 case $ac_val in #(
2584 *${as_nl}*)
2585 case $ac_var in #(
2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2588 esac
2589 case $ac_var in #(
2590 _ | IFS | as_nl) ;; #(
2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592 *) { eval $ac_var=; unset $ac_var;} ;;
2593 esac ;;
2594 esac
2595 done
2596 (set) 2>&1 |
2597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2598 *${as_nl}ac_space=\ *)
2599 sed -n \
2600 "s/'\''/'\''\\\\'\'''\''/g;
2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2602 ;; #(
2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2606 esac |
2607 sort
2609 echo
2611 cat <<\_ASBOX
2612 ## ----------------- ##
2613 ## Output variables. ##
2614 ## ----------------- ##
2615 _ASBOX
2616 echo
2617 for ac_var in $ac_subst_vars
2619 eval ac_val=\$$ac_var
2620 case $ac_val in
2621 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2622 esac
2623 $as_echo "$ac_var='\''$ac_val'\''"
2624 done | sort
2625 echo
2627 if test -n "$ac_subst_files"; then
2628 cat <<\_ASBOX
2629 ## ------------------- ##
2630 ## File substitutions. ##
2631 ## ------------------- ##
2632 _ASBOX
2633 echo
2634 for ac_var in $ac_subst_files
2636 eval ac_val=\$$ac_var
2637 case $ac_val in
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639 esac
2640 $as_echo "$ac_var='\''$ac_val'\''"
2641 done | sort
2642 echo
2645 if test -s confdefs.h; then
2646 cat <<\_ASBOX
2647 ## ----------- ##
2648 ## confdefs.h. ##
2649 ## ----------- ##
2650 _ASBOX
2651 echo
2652 cat confdefs.h
2653 echo
2655 test "$ac_signal" != 0 &&
2656 $as_echo "$as_me: caught signal $ac_signal"
2657 $as_echo "$as_me: exit $exit_status"
2658 } >&5
2659 rm -f core *.core core.conftest.* &&
2660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661 exit $exit_status
2663 for ac_signal in 1 2 13 15; do
2664 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2665 done
2666 ac_signal=0
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2671 $as_echo "/* confdefs.h */" > confdefs.h
2673 # Predefined preprocessor variables.
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_NAME "$PACKAGE_NAME"
2677 _ACEOF
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2685 _ACEOF
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_STRING "$PACKAGE_STRING"
2689 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_URL "$PACKAGE_URL"
2697 _ACEOF
2700 # Let the site file select an alternate cache file if it wants to.
2701 # Prefer an explicitly selected file to automatically selected ones.
2702 ac_site_file1=NONE
2703 ac_site_file2=NONE
2704 if test -n "$CONFIG_SITE"; then
2705 ac_site_file1=$CONFIG_SITE
2706 elif test "x$prefix" != xNONE; then
2707 ac_site_file1=$prefix/share/config.site
2708 ac_site_file2=$prefix/etc/config.site
2709 else
2710 ac_site_file1=$ac_default_prefix/share/config.site
2711 ac_site_file2=$ac_default_prefix/etc/config.site
2713 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2715 test "x$ac_site_file" = xNONE && continue
2716 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2718 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2719 sed 's/^/| /' "$ac_site_file" >&5
2720 . "$ac_site_file"
2722 done
2724 if test -r "$cache_file"; then
2725 # Some versions of bash will fail to source /dev/null (special files
2726 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2727 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729 $as_echo "$as_me: loading cache $cache_file" >&6;}
2730 case $cache_file in
2731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2732 *) . "./$cache_file";;
2733 esac
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737 $as_echo "$as_me: creating cache $cache_file" >&6;}
2738 >$cache_file
2741 as_fn_append ac_header_list " stdlib.h"
2742 as_fn_append ac_header_list " unistd.h"
2743 as_fn_append ac_header_list " sys/param.h"
2744 # Check that the precious variables saved in the cache have kept the same
2745 # value.
2746 ac_cache_corrupted=false
2747 for ac_var in $ac_precious_vars; do
2748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2749 eval ac_new_set=\$ac_env_${ac_var}_set
2750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2751 eval ac_new_val=\$ac_env_${ac_var}_value
2752 case $ac_old_set,$ac_new_set in
2753 set,)
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756 ac_cache_corrupted=: ;;
2757 ,set)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760 ac_cache_corrupted=: ;;
2761 ,);;
2763 if test "x$ac_old_val" != "x$ac_new_val"; then
2764 # differences in whitespace do not lead to failure.
2765 ac_old_val_w=`echo x $ac_old_val`
2766 ac_new_val_w=`echo x $ac_new_val`
2767 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770 ac_cache_corrupted=:
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774 eval $ac_var=\$ac_old_val
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2777 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2779 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2780 fi;;
2781 esac
2782 # Pass precious variables to config.status.
2783 if test "$ac_new_set" = set; then
2784 case $ac_new_val in
2785 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 *) ac_arg=$ac_var=$ac_new_val ;;
2787 esac
2788 case " $ac_configure_args " in
2789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2790 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2791 esac
2793 done
2794 if $ac_cache_corrupted; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801 ## -------------------- ##
2802 ## Main body of script. ##
2803 ## -------------------- ##
2805 ac_ext=c
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 am__api_version='1.11'
2814 ac_aux_dir=
2815 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2816 for ac_t in install-sh install.sh shtool; do
2817 if test -f "$ac_dir/$ac_t"; then
2818 ac_aux_dir=$ac_dir
2819 ac_install_sh="$ac_aux_dir/$ac_t -c"
2820 break 2
2822 done
2823 done
2824 if test -z "$ac_aux_dir"; then
2825 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2828 # These three variables are undocumented and unsupported,
2829 # and are intended to be withdrawn in a future Autoconf release.
2830 # They can cause serious problems if a builder's source tree is in a directory
2831 # whose full name contains unusual characters.
2832 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2833 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2834 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2837 # Find a good install program. We prefer a C program (faster),
2838 # so one script is as good as another. But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2843 # AIX /bin/install
2844 # AmigaOS /C/install, which installs bootblocks on floppy discs
2845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2848 # OS/2's system install, which has a completely different semantic
2849 # ./install, which can be erroneously created by make from ./install.sh.
2850 # Reject install programs that cannot install multiple files.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2852 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2853 if test -z "$INSTALL"; then
2854 if test "${ac_cv_path_install+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 # Account for people who put trailing slashes in PATH elements.
2863 case $as_dir/ in #((
2864 ./ | .// | /[cC]/* | \
2865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2866 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2867 /usr/ucb/* ) ;;
2869 # OSF1 and SCO ODT 3.0 have their own names for install.
2870 # Don't use installbsd from OSF since it installs stuff as root
2871 # by default.
2872 for ac_prog in ginstall scoinst install; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2875 if test $ac_prog = install &&
2876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877 # AIX install. It has an incompatible calling convention.
2879 elif test $ac_prog = install &&
2880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2881 # program-specific install script used by HP pwplus--don't use.
2883 else
2884 rm -rf conftest.one conftest.two conftest.dir
2885 echo one > conftest.one
2886 echo two > conftest.two
2887 mkdir conftest.dir
2888 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2889 test -s conftest.one && test -s conftest.two &&
2890 test -s conftest.dir/conftest.one &&
2891 test -s conftest.dir/conftest.two
2892 then
2893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2894 break 3
2898 done
2899 done
2901 esac
2903 done
2904 IFS=$as_save_IFS
2906 rm -rf conftest.one conftest.two conftest.dir
2909 if test "${ac_cv_path_install+set}" = set; then
2910 INSTALL=$ac_cv_path_install
2911 else
2912 # As a last resort, use the slow shell script. Don't cache a
2913 # value for INSTALL within a source directory, because that will
2914 # break other packages using the cache if that directory is
2915 # removed, or if the value is a relative name.
2916 INSTALL=$ac_install_sh
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2920 $as_echo "$INSTALL" >&6; }
2922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2923 # It thinks the first close brace ends the variable substitution.
2924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2931 $as_echo_n "checking whether build environment is sane... " >&6; }
2932 # Just in case
2933 sleep 1
2934 echo timestamp > conftest.file
2935 # Reject unsafe characters in $srcdir or the absolute working directory
2936 # name. Accept space and tab only in the latter.
2937 am_lf='
2939 case `pwd` in
2940 *[\\\"\#\$\&\'\`$am_lf]*)
2941 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2942 esac
2943 case $srcdir in
2944 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2945 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2946 esac
2948 # Do `set' in a subshell so we don't clobber the current shell's
2949 # arguments. Must try -L first in case configure is actually a
2950 # symlink; some systems play weird games with the mod time of symlinks
2951 # (eg FreeBSD returns the mod time of the symlink's containing
2952 # directory).
2953 if (
2954 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2955 if test "$*" = "X"; then
2956 # -L didn't work.
2957 set X `ls -t "$srcdir/configure" conftest.file`
2959 rm -f conftest.file
2960 if test "$*" != "X $srcdir/configure conftest.file" \
2961 && test "$*" != "X conftest.file $srcdir/configure"; then
2963 # If neither matched, then we have a broken ls. This can happen
2964 # if, for instance, CONFIG_SHELL is bash and it inherits a
2965 # broken ls alias from the environment. This has actually
2966 # happened. Such a system could not be considered "sane".
2967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2968 alias in your environment" "$LINENO" 5
2971 test "$2" = conftest.file
2973 then
2974 # Ok.
2976 else
2977 as_fn_error "newly created file is older than distributed files!
2978 Check your system clock" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 test "$program_prefix" != NONE &&
2983 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2984 # Use a double $ so make ignores it.
2985 test "$program_suffix" != NONE &&
2986 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987 # Double any \ or $.
2988 # By default was `s,x,x', remove it if useless.
2989 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2992 # expand $ac_aux_dir to an absolute path
2993 am_aux_dir=`cd $ac_aux_dir && pwd`
2995 if test x"${MISSING+set}" != xset; then
2996 case $am_aux_dir in
2997 *\ * | *\ *)
2998 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3000 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3001 esac
3003 # Use eval to expand $SHELL
3004 if eval "$MISSING --run true"; then
3005 am_missing_run="$MISSING --run "
3006 else
3007 am_missing_run=
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3009 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3012 if test x"${install_sh}" != xset; then
3013 case $am_aux_dir in
3014 *\ * | *\ *)
3015 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3017 install_sh="\${SHELL} $am_aux_dir/install-sh"
3018 esac
3021 # Installed binaries are usually stripped using `strip' when the user
3022 # run `make install-strip'. However `strip' might not be the right
3023 # tool to use in cross-compilation environments, therefore Automake
3024 # will honor the `STRIP' environment variable to overrule this program.
3025 if test "$cross_compiling" != no; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}strip; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_STRIP+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$STRIP"; then
3035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3048 done
3049 done
3050 IFS=$as_save_IFS
3054 STRIP=$ac_cv_prog_STRIP
3055 if test -n "$STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057 $as_echo "$STRIP" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$ac_cv_prog_STRIP"; then
3066 ac_ct_STRIP=$STRIP
3067 # Extract the first word of "strip", so it can be a program name with args.
3068 set dummy strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_STRIP="strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095 if test -n "$ac_ct_STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097 $as_echo "$ac_ct_STRIP" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3103 if test "x$ac_ct_STRIP" = x; then
3104 STRIP=":"
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112 STRIP=$ac_ct_STRIP
3114 else
3115 STRIP="$ac_cv_prog_STRIP"
3119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123 if test -z "$MKDIR_P"; then
3124 if test "${ac_cv_path_mkdir+set}" = set; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_prog in mkdir gmkdir; do
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136 'mkdir (GNU coreutils) '* | \
3137 'mkdir (coreutils) '* | \
3138 'mkdir (fileutils) '4.1*)
3139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3140 break 3;;
3141 esac
3142 done
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 test -d ./--version && rmdir ./--version
3150 if test "${ac_cv_path_mkdir+set}" = set; then
3151 MKDIR_P="$ac_cv_path_mkdir -p"
3152 else
3153 # As a last resort, use the slow shell script. Don't cache a
3154 # value for MKDIR_P within a source directory, because that will
3155 # break other packages using the cache if that directory is
3156 # removed, or if the value is a relative name.
3157 MKDIR_P="$ac_install_sh -d"
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161 $as_echo "$MKDIR_P" >&6; }
3163 mkdir_p="$MKDIR_P"
3164 case $mkdir_p in
3165 [\\/$]* | ?:[\\/]*) ;;
3166 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3167 esac
3169 for ac_prog in gawk mawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_AWK+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_AWK="$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 AWK=$ac_cv_prog_AWK
3199 if test -n "$AWK"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3201 $as_echo "$AWK" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3208 test -n "$AWK" && break
3209 done
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3213 set x ${MAKE-make}
3214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3215 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 cat >conftest.make <<\_ACEOF
3219 SHELL = /bin/sh
3220 all:
3221 @echo '@@@%%%=$(MAKE)=@@@%%%'
3222 _ACEOF
3223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3225 *@@@%%%=?*=@@@%%%*)
3226 eval ac_cv_prog_make_${ac_make}_set=yes;;
3228 eval ac_cv_prog_make_${ac_make}_set=no;;
3229 esac
3230 rm -f conftest.make
3232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3235 SET_MAKE=
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 SET_MAKE="MAKE=${MAKE-make}"
3242 rm -rf .tst 2>/dev/null
3243 mkdir .tst 2>/dev/null
3244 if test -d .tst; then
3245 am__leading_dot=.
3246 else
3247 am__leading_dot=_
3249 rmdir .tst 2>/dev/null
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253 # is not polluted with repeated "-I."
3254 am__isrc=' -I$(srcdir)'
3255 # test to see if srcdir already configured
3256 if test -f $srcdir/config.status; then
3257 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263 if (cygpath --version) >/dev/null 2>/dev/null; then
3264 CYGPATH_W='cygpath -w'
3265 else
3266 CYGPATH_W=echo
3271 # Define the identity of the package.
3272 PACKAGE='amule'
3273 VERSION='SVN'
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3278 _ACEOF
3281 cat >>confdefs.h <<_ACEOF
3282 #define VERSION "$VERSION"
3283 _ACEOF
3285 # Some tools Automake needs.
3287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3301 # We need awk for the "check" target. The system "awk" is bad on
3302 # some platforms.
3303 # Always define AMTAR for backward compatibility.
3305 AMTAR=${AMTAR-"${am_missing_run}tar"}
3307 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3313 # Check whether --enable-silent-rules was given.
3314 if test "${enable_silent_rules+set}" = set; then :
3315 enableval=$enable_silent_rules;
3318 case $enable_silent_rules in
3319 yes) AM_DEFAULT_VERBOSITY=0;;
3320 no) AM_DEFAULT_VERBOSITY=1;;
3321 *) AM_DEFAULT_VERBOSITY=1;;
3322 esac
3323 AM_BACKSLASH='\'
3329 ac_config_headers="$ac_config_headers config.h"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3334 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3335 # Check whether --enable-maintainer-mode was given.
3336 if test "${enable_maintainer_mode+set}" = set; then :
3337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3338 else
3339 USE_MAINTAINER_MODE=no
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3344 if test $USE_MAINTAINER_MODE = yes; then
3345 MAINTAINER_MODE_TRUE=
3346 MAINTAINER_MODE_FALSE='#'
3347 else
3348 MAINTAINER_MODE_TRUE='#'
3349 MAINTAINER_MODE_FALSE=
3352 MAINT=$MAINTAINER_MODE_TRUE
3356 # Make sure we can run config.sub.
3357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 $as_echo_n "checking build system type... " >&6; }
3362 if test "${ac_cv_build+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 ac_build_alias=$build_alias
3366 test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368 test "x$ac_build_alias" = x &&
3369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3375 $as_echo "$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3377 *-*-*) ;;
3378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3379 esac
3380 build=$ac_cv_build
3381 ac_save_IFS=$IFS; IFS='-'
3382 set x $ac_cv_build
3383 shift
3384 build_cpu=$1
3385 build_vendor=$2
3386 shift; shift
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3389 build_os=$*
3390 IFS=$ac_save_IFS
3391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3395 $as_echo_n "checking host system type... " >&6; }
3396 if test "${ac_cv_host+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3401 else
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3408 $as_echo "$ac_cv_host" >&6; }
3409 case $ac_cv_host in
3410 *-*-*) ;;
3411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3412 esac
3413 host=$ac_cv_host
3414 ac_save_IFS=$IFS; IFS='-'
3415 set x $ac_cv_host
3416 shift
3417 host_cpu=$1
3418 host_vendor=$2
3419 shift; shift
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3422 host_os=$*
3423 IFS=$ac_save_IFS
3424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3428 case "${host_os}" in
3429 darwin*)
3430 SYS=darwin
3431 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3432 MULELDFLAGS="-bind_at_load"
3433 touch src/Scanner.cpp
3435 openbsd*)
3436 SYS=openbsd
3437 LIBS="$LIBS -L/usr/local/lib"
3438 MULECPPFLAGS="-D__OPENBSD__"
3440 *cygwin* | *mingw32*)
3441 SYS=win32
3442 MULECPPFLAGS="-DNOMINMAX"
3444 solaris*)
3445 SYS=solaris
3446 RESOLV_LIB="-lresolv -lnsl"
3447 LIBS="$LIBS -lrt"
3449 *netbsd*)
3450 SYS=netbsd
3451 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3452 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3453 # Still, we prepend them, instead of adding, so the user may override them.
3454 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3455 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3457 *irix*)
3458 SYS=irix
3459 MULECPPFLAGS="-D__IRIX__"
3462 SYS=unknown
3464 esac
3466 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3467 if test ${SYS:-unknown} != win32; then :
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3470 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3471 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3473 MULELDFLAGS="$MULELDFLAGS -pthread"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475 $as_echo "yes" >&6; }
3477 else
3479 MULELDFLAGS="$MULELDFLAGS -lpthread"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3489 mule_backup_CFLAGS="$CFLAGS"
3490 mule_backup_CXXFLAGS="$CXXFLAGS"
3491 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3492 ac_ext=cpp
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497 if test -z "$CXX"; then
3498 if test -n "$CCC"; then
3499 CXX=$CCC
3500 else
3501 if test -n "$ac_tool_prefix"; then
3502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if test "${ac_cv_prog_CXX+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 if test -n "$CXX"; then
3512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 break 2
3525 done
3526 done
3527 IFS=$as_save_IFS
3531 CXX=$ac_cv_prog_CXX
3532 if test -n "$CXX"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3534 $as_echo "$CXX" >&6; }
3535 else
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3541 test -n "$CXX" && break
3542 done
3544 if test -z "$CXX"; then
3545 ac_ct_CXX=$CXX
3546 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3548 # Extract the first word of "$ac_prog", so it can be a program name with args.
3549 set dummy $ac_prog; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$ac_ct_CXX"; then
3556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CXX="$ac_prog"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3569 done
3570 done
3571 IFS=$as_save_IFS
3575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3576 if test -n "$ac_ct_CXX"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3578 $as_echo "$ac_ct_CXX" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3585 test -n "$ac_ct_CXX" && break
3586 done
3588 if test "x$ac_ct_CXX" = x; then
3589 CXX="g++"
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597 CXX=$ac_ct_CXX
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3605 set X $ac_compile
3606 ac_compiler=$2
3607 for ac_option in --version -v -V -qversion; do
3608 { { ac_try="$ac_compiler $ac_option >&5"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3616 ac_status=$?
3617 if test -s conftest.err; then
3618 sed '10a\
3619 ... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3626 done
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3636 return 0;
3638 _ACEOF
3639 ac_clean_files_save=$ac_clean_files
3640 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3641 # Try to create an executable without -o first, disregard a.out.
3642 # It will help us diagnose broken compilers, and finding out an intuition
3643 # of exeext.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3645 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3646 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3648 # The possible output files:
3649 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3651 ac_rmfiles=
3652 for ac_file in $ac_files
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3657 esac
3658 done
3659 rm -f $ac_rmfiles
3661 if { { ac_try="$ac_link_default"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link_default") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3676 # Autoconf.
3677 for ac_file in $ac_files ''
3679 test -f "$ac_file" || continue
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3683 [ab].out )
3684 # We found the default executable, but exeext='' is most
3685 # certainly right.
3686 break;;
3687 *.* )
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3689 then :; else
3690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3696 # actually working.
3697 break;;
3699 break;;
3700 esac
3701 done
3702 test "$ac_cv_exeext" = no && ac_cv_exeext=
3704 else
3705 ac_file=''
3707 if test -z "$ac_file"; then :
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 { as_fn_set_status 77
3716 as_fn_error "C++ compiler cannot create executables
3717 See \`config.log' for more details." "$LINENO" 5; }; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3723 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725 $as_echo "$ac_file" >&6; }
3726 ac_exeext=$ac_cv_exeext
3728 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731 $as_echo_n "checking for suffix of executables... " >&6; }
3732 if { { ac_try="$ac_link"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3740 ac_status=$?
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 break;;
3753 * ) break;;
3754 esac
3755 done
3756 else
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error "cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." "$LINENO" 5; }
3762 rm -f conftest conftest$ac_cv_exeext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 $as_echo "$ac_cv_exeext" >&6; }
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3768 ac_exeext=$EXEEXT
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdio.h>
3773 main ()
3775 FILE *f = fopen ("conftest.out", "w");
3776 return ferror (f) || fclose (f) != 0;
3779 return 0;
3781 _ACEOF
3782 ac_clean_files="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 $as_echo_n "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788 { { ac_try="$ac_link"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 if { ac_try='./conftest$ac_cv_exeext'
3800 { { case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; }; then
3810 cross_compiling=no
3811 else
3812 if test "$cross_compiling" = maybe; then
3813 cross_compiling=yes
3814 else
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error "cannot run C++ compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details." "$LINENO" 5; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 $as_echo "$cross_compiling" >&6; }
3826 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3827 ac_clean_files=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 $as_echo_n "checking for suffix of object files... " >&6; }
3830 if test "${ac_cv_objext+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3837 main ()
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.o conftest.obj
3845 if { { ac_try="$ac_compile"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compile") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 for ac_file in conftest.o conftest.obj conftest.*; do
3857 test -f "$ac_file" || continue;
3858 case $ac_file in
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3861 break;;
3862 esac
3863 done
3864 else
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_error "cannot compute suffix of object files: cannot compile
3871 See \`config.log' for more details." "$LINENO" 5; }
3873 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3876 $as_echo "$ac_cv_objext" >&6; }
3877 OBJEXT=$ac_cv_objext
3878 ac_objext=$OBJEXT
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3880 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3881 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3890 #ifndef __GNUC__
3891 choke me
3892 #endif
3895 return 0;
3897 _ACEOF
3898 if ac_fn_cxx_try_compile "$LINENO"; then :
3899 ac_compiler_gnu=yes
3900 else
3901 ac_compiler_gnu=no
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3908 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3909 if test $ac_compiler_gnu = yes; then
3910 GXX=yes
3911 else
3912 GXX=
3914 ac_test_CXXFLAGS=${CXXFLAGS+set}
3915 ac_save_CXXFLAGS=$CXXFLAGS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3917 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3918 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3922 ac_cxx_werror_flag=yes
3923 ac_cv_prog_cxx_g=no
3924 CXXFLAGS="-g"
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3933 return 0;
3935 _ACEOF
3936 if ac_fn_cxx_try_compile "$LINENO"; then :
3937 ac_cv_prog_cxx_g=yes
3938 else
3939 CXXFLAGS=""
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3944 main ()
3948 return 0;
3950 _ACEOF
3951 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 else
3954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955 CXXFLAGS="-g"
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 main ()
3964 return 0;
3966 _ACEOF
3967 if ac_fn_cxx_try_compile "$LINENO"; then :
3968 ac_cv_prog_cxx_g=yes
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3978 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3979 if test "$ac_test_CXXFLAGS" = set; then
3980 CXXFLAGS=$ac_save_CXXFLAGS
3981 elif test $ac_cv_prog_cxx_g = yes; then
3982 if test "$GXX" = yes; then
3983 CXXFLAGS="-g -O2"
3984 else
3985 CXXFLAGS="-g"
3987 else
3988 if test "$GXX" = yes; then
3989 CXXFLAGS="-O2"
3990 else
3991 CXXFLAGS=
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4001 ac_config_commands="$ac_config_commands depfiles"
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4006 am__doit:
4007 @echo this is the am__doit target
4008 .PHONY: am__doit
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4013 am__include="#"
4014 am__quote=
4015 _am_result=none
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # Ignore all kinds of additional output from `make'.
4019 case `$am_make -s -f confmf 2> /dev/null` in #(
4020 *the\ am__doit\ target*)
4021 am__include=include
4022 am__quote=
4023 _am_result=GNU
4025 esac
4026 # Now try BSD make style include.
4027 if test "$am__include" = "#"; then
4028 echo '.include "confinc"' > confmf
4029 case `$am_make -s -f confmf 2> /dev/null` in #(
4030 *the\ am__doit\ target*)
4031 am__include=.include
4032 am__quote="\""
4033 _am_result=BSD
4035 esac
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045 enableval=$enable_dependency_tracking;
4048 if test "x$enable_dependency_tracking" != xno; then
4049 am_depcomp="$ac_aux_dir/depcomp"
4050 AMDEPBACKSLASH='\'
4052 if test "x$enable_dependency_tracking" != xno; then
4053 AMDEP_TRUE=
4054 AMDEP_FALSE='#'
4055 else
4056 AMDEP_TRUE='#'
4057 AMDEP_FALSE=
4062 depcc="$CXX" am_compiler_list=
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070 # We make a subdir and do the tests there. Otherwise we can end up
4071 # making bogus files that we don't know about and never remove. For
4072 # instance it was reported that on HP-UX the gcc test will end up
4073 # making a dummy file named `D' -- because `-MD' means `put the output
4074 # in D'.
4075 mkdir conftest.dir
4076 # Copy depcomp to subdir because otherwise we won't find it if we're
4077 # using a relative directory.
4078 cp "$am_depcomp" conftest.dir
4079 cd conftest.dir
4080 # We will build objects and dependencies in a subdirectory because
4081 # it helps to detect inapplicable dependency modes. For instance
4082 # both Tru64's cc and ICC support -MD to output dependencies as a
4083 # side effect of compilation, but ICC will put the dependencies in
4084 # the current directory while Tru64 will put them in the object
4085 # directory.
4086 mkdir sub
4088 am_cv_CXX_dependencies_compiler_type=none
4089 if test "$am_compiler_list" = ""; then
4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4092 am__universal=false
4093 case " $depcc " in #(
4094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095 esac
4097 for depmode in $am_compiler_list; do
4098 # Setup a source with many dependencies, because some compilers
4099 # like to wrap large dependency lists on column 80 (with \), and
4100 # we should not choose a depcomp mode which is confused by this.
4102 # We need to recreate these files for each test, as the compiler may
4103 # overwrite some of them when testing with obscure command lines.
4104 # This happens at least with the AIX C compiler.
4105 : > sub/conftest.c
4106 for i in 1 2 3 4 5 6; do
4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109 # Solaris 8's {/usr,}/bin/sh.
4110 touch sub/conftst$i.h
4111 done
4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115 # mode. It turns out that the SunPro C++ compiler does not properly
4116 # handle `-M -o', and we need to detect this. Also, some Intel
4117 # versions had trouble with output in subdirs
4118 am__obj=sub/conftest.${OBJEXT-o}
4119 am__minus_obj="-o $am__obj"
4120 case $depmode in
4121 gcc)
4122 # This depmode causes a compiler race in universal mode.
4123 test "$am__universal" = false || continue
4125 nosideeffect)
4126 # after this tag, mechanisms are not by side-effect, so they'll
4127 # only be used when explicitly requested
4128 if test "x$enable_dependency_tracking" = xyes; then
4129 continue
4130 else
4131 break
4134 msvisualcpp | msvcmsys)
4135 # This compiler won't grok `-c -o', but also, the minuso test has
4136 # not run yet. These depmodes are late enough in the game, and
4137 # so weak that their functioning should not be impacted.
4138 am__obj=conftest.${OBJEXT-o}
4139 am__minus_obj=
4141 none) break ;;
4142 esac
4143 if depmode=$depmode \
4144 source=sub/conftest.c object=$am__obj \
4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147 >/dev/null 2>conftest.err &&
4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # or remarks (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored or not supported.
4155 # When given -MP, icc 7.0 and 7.1 complain thusly:
4156 # icc: Command line warning: ignoring option '-M'; no argument required
4157 # The diagnosis changed in icc 8.0:
4158 # icc: Command line remark: option '-MP' not supported
4159 if (grep 'ignoring option' conftest.err ||
4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161 am_cv_CXX_dependencies_compiler_type=$depmode
4162 break
4165 done
4167 cd ..
4168 rm -rf conftest.dir
4169 else
4170 am_cv_CXX_dependencies_compiler_type=none
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4176 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4179 test "x$enable_dependency_tracking" != xno \
4180 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4181 am__fastdepCXX_TRUE=
4182 am__fastdepCXX_FALSE='#'
4183 else
4184 am__fastdepCXX_TRUE='#'
4185 am__fastdepCXX_FALSE=
4189 ac_ext=cpp
4190 ac_cpp='$CXXCPP $CPPFLAGS'
4191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4195 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4196 if test -z "$CXXCPP"; then
4197 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 # Double quotes because CXXCPP needs to be expanded
4201 for CXXCPP in "$CXX -E" "/lib/cpp"
4203 ac_preproc_ok=false
4204 for ac_cxx_preproc_warn_flag in '' yes
4206 # Use a header file that comes with gcc, so configuring glibc
4207 # with a fresh cross-compiler works.
4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4209 # <limits.h> exists even on freestanding compilers.
4210 # On the NeXT, cc -E runs the code through the compiler's parser,
4211 # not just through cpp. "Syntax error" is here to catch this case.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #ifdef __STDC__
4215 # include <limits.h>
4216 #else
4217 # include <assert.h>
4218 #endif
4219 Syntax error
4220 _ACEOF
4221 if ac_fn_cxx_try_cpp "$LINENO"; then :
4223 else
4224 # Broken: fails on valid input.
4225 continue
4227 rm -f conftest.err conftest.$ac_ext
4229 # OK, works on sane cases. Now check whether nonexistent headers
4230 # can be detected and how.
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <ac_nonexistent.h>
4234 _ACEOF
4235 if ac_fn_cxx_try_cpp "$LINENO"; then :
4236 # Broken: success on invalid input.
4237 continue
4238 else
4239 # Passes both tests.
4240 ac_preproc_ok=:
4241 break
4243 rm -f conftest.err conftest.$ac_ext
4245 done
4246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4247 rm -f conftest.err conftest.$ac_ext
4248 if $ac_preproc_ok; then :
4249 break
4252 done
4253 ac_cv_prog_CXXCPP=$CXXCPP
4256 CXXCPP=$ac_cv_prog_CXXCPP
4257 else
4258 ac_cv_prog_CXXCPP=$CXXCPP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4261 $as_echo "$CXXCPP" >&6; }
4262 ac_preproc_ok=false
4263 for ac_cxx_preproc_warn_flag in '' yes
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #ifdef __STDC__
4274 # include <limits.h>
4275 #else
4276 # include <assert.h>
4277 #endif
4278 Syntax error
4279 _ACEOF
4280 if ac_fn_cxx_try_cpp "$LINENO"; then :
4282 else
4283 # Broken: fails on valid input.
4284 continue
4286 rm -f conftest.err conftest.$ac_ext
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4293 _ACEOF
4294 if ac_fn_cxx_try_cpp "$LINENO"; then :
4295 # Broken: success on invalid input.
4296 continue
4297 else
4298 # Passes both tests.
4299 ac_preproc_ok=:
4300 break
4302 rm -f conftest.err conftest.$ac_ext
4304 done
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.err conftest.$ac_ext
4307 if $ac_preproc_ok; then :
4309 else
4310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4312 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4313 See \`config.log' for more details." "$LINENO" 5; }
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 if test -n "$ac_tool_prefix"; then
4328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_prog_CC+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC="$CC" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4351 IFS=$as_save_IFS
4355 CC=$ac_cv_prog_CC
4356 if test -n "$CC"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4358 $as_echo "$CC" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4366 if test -z "$ac_cv_prog_CC"; then
4367 ac_ct_CC=$CC
4368 # Extract the first word of "gcc", so it can be a program name with args.
4369 set dummy gcc; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_ac_ct_CC="gcc"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396 if test -n "$ac_ct_CC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398 $as_echo "$ac_ct_CC" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4404 if test "x$ac_ct_CC" = x; then
4405 CC=""
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408 yes:)
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4412 esac
4413 CC=$ac_ct_CC
4415 else
4416 CC="$ac_cv_prog_CC"
4419 if test -z "$CC"; then
4420 if test -n "$ac_tool_prefix"; then
4421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4422 set dummy ${ac_tool_prefix}cc; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_prog_CC+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -n "$CC"; then
4429 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_CC="${ac_tool_prefix}cc"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4444 IFS=$as_save_IFS
4448 CC=$ac_cv_prog_CC
4449 if test -n "$CC"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4451 $as_echo "$CC" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4460 if test -z "$CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471 ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4483 ac_cv_prog_CC="cc"
4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4505 CC=$ac_cv_prog_CC
4506 if test -n "$CC"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4508 $as_echo "$CC" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4516 if test -z "$CC"; then
4517 if test -n "$ac_tool_prefix"; then
4518 for ac_prog in cl.exe
4520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 CC=$ac_cv_prog_CC
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4557 test -n "$CC" && break
4558 done
4560 if test -z "$CC"; then
4561 ac_ct_CC=$CC
4562 for ac_prog in cl.exe
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$ac_ct_CC"; then
4572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_ac_ct_CC="$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4592 if test -n "$ac_ct_CC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4594 $as_echo "$ac_ct_CC" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4601 test -n "$ac_ct_CC" && break
4602 done
4604 if test "x$ac_ct_CC" = x; then
4605 CC=""
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 CC=$ac_ct_CC
4620 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error "no acceptable C compiler found in \$PATH
4623 See \`config.log' for more details." "$LINENO" 5; }
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4627 set X $ac_compile
4628 ac_compiler=$2
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 ac_status=$?
4639 if test -s conftest.err; then
4640 sed '10a\
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4645 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4648 done
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4652 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GCC=yes
4682 else
4683 GCC=
4685 ac_test_CFLAGS=${CFLAGS+set}
4686 ac_save_CFLAGS=$CFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cc_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_c_werror_flag=$ac_c_werror_flag
4693 ac_c_werror_flag=yes
4694 ac_cv_prog_cc_g=no
4695 CFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_g=yes
4709 else
4710 CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4724 else
4725 ac_c_werror_flag=$ac_save_c_werror_flag
4726 CFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_prog_cc_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4758 else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_cv_prog_cc_c89=no
4771 ac_save_CC=$CC
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <stdarg.h>
4775 #include <stdio.h>
4776 #include <sys/types.h>
4777 #include <sys/stat.h>
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4782 char **p;
4783 int i;
4785 return p[i];
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4789 char *s;
4790 va_list v;
4791 va_start (v,p);
4792 s = g (p, va_arg (v,int));
4793 va_end (v);
4794 return s;
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4808 #define FOO(x) 'x'
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4815 int argc;
4816 char **argv;
4818 main ()
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4822 return 0;
4824 _ACEOF
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4834 done
4835 rm -f conftest.$ac_ext
4836 CC=$ac_save_CC
4839 # AC_CACHE_VAL
4840 case "x$ac_cv_prog_cc_c89" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4844 xno)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4851 esac
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 depcc="$CC" am_compiler_list=
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4865 $as_echo_n "checking dependency style of $depcc... " >&6; }
4866 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4870 # We make a subdir and do the tests there. Otherwise we can end up
4871 # making bogus files that we don't know about and never remove. For
4872 # instance it was reported that on HP-UX the gcc test will end up
4873 # making a dummy file named `D' -- because `-MD' means `put the output
4874 # in D'.
4875 mkdir conftest.dir
4876 # Copy depcomp to subdir because otherwise we won't find it if we're
4877 # using a relative directory.
4878 cp "$am_depcomp" conftest.dir
4879 cd conftest.dir
4880 # We will build objects and dependencies in a subdirectory because
4881 # it helps to detect inapplicable dependency modes. For instance
4882 # both Tru64's cc and ICC support -MD to output dependencies as a
4883 # side effect of compilation, but ICC will put the dependencies in
4884 # the current directory while Tru64 will put them in the object
4885 # directory.
4886 mkdir sub
4888 am_cv_CC_dependencies_compiler_type=none
4889 if test "$am_compiler_list" = ""; then
4890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4892 am__universal=false
4893 case " $depcc " in #(
4894 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4895 esac
4897 for depmode in $am_compiler_list; do
4898 # Setup a source with many dependencies, because some compilers
4899 # like to wrap large dependency lists on column 80 (with \), and
4900 # we should not choose a depcomp mode which is confused by this.
4902 # We need to recreate these files for each test, as the compiler may
4903 # overwrite some of them when testing with obscure command lines.
4904 # This happens at least with the AIX C compiler.
4905 : > sub/conftest.c
4906 for i in 1 2 3 4 5 6; do
4907 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4908 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4909 # Solaris 8's {/usr,}/bin/sh.
4910 touch sub/conftst$i.h
4911 done
4912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4915 # mode. It turns out that the SunPro C++ compiler does not properly
4916 # handle `-M -o', and we need to detect this. Also, some Intel
4917 # versions had trouble with output in subdirs
4918 am__obj=sub/conftest.${OBJEXT-o}
4919 am__minus_obj="-o $am__obj"
4920 case $depmode in
4921 gcc)
4922 # This depmode causes a compiler race in universal mode.
4923 test "$am__universal" = false || continue
4925 nosideeffect)
4926 # after this tag, mechanisms are not by side-effect, so they'll
4927 # only be used when explicitly requested
4928 if test "x$enable_dependency_tracking" = xyes; then
4929 continue
4930 else
4931 break
4934 msvisualcpp | msvcmsys)
4935 # This compiler won't grok `-c -o', but also, the minuso test has
4936 # not run yet. These depmodes are late enough in the game, and
4937 # so weak that their functioning should not be impacted.
4938 am__obj=conftest.${OBJEXT-o}
4939 am__minus_obj=
4941 none) break ;;
4942 esac
4943 if depmode=$depmode \
4944 source=sub/conftest.c object=$am__obj \
4945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4946 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4947 >/dev/null 2>conftest.err &&
4948 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4950 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4952 # icc doesn't choke on unknown options, it will just issue warnings
4953 # or remarks (even with -Werror). So we grep stderr for any message
4954 # that says an option was ignored or not supported.
4955 # When given -MP, icc 7.0 and 7.1 complain thusly:
4956 # icc: Command line warning: ignoring option '-M'; no argument required
4957 # The diagnosis changed in icc 8.0:
4958 # icc: Command line remark: option '-MP' not supported
4959 if (grep 'ignoring option' conftest.err ||
4960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4961 am_cv_CC_dependencies_compiler_type=$depmode
4962 break
4965 done
4967 cd ..
4968 rm -rf conftest.dir
4969 else
4970 am_cv_CC_dependencies_compiler_type=none
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4975 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4976 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4979 test "x$enable_dependency_tracking" != xno \
4980 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4981 am__fastdepCC_TRUE=
4982 am__fastdepCC_FALSE='#'
4983 else
4984 am__fastdepCC_TRUE='#'
4985 am__fastdepCC_FALSE=
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4995 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4996 # On Suns, sometimes $CPP names a directory.
4997 if test -n "$CPP" && test -d "$CPP"; then
4998 CPP=
5000 if test -z "$CPP"; then
5001 if test "${ac_cv_prog_CPP+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 # Double quotes because CPP needs to be expanded
5005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5007 ac_preproc_ok=false
5008 for ac_c_preproc_warn_flag in '' yes
5010 # Use a header file that comes with gcc, so configuring glibc
5011 # with a fresh cross-compiler works.
5012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5013 # <limits.h> exists even on freestanding compilers.
5014 # On the NeXT, cc -E runs the code through the compiler's parser,
5015 # not just through cpp. "Syntax error" is here to catch this case.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023 Syntax error
5024 _ACEOF
5025 if ac_fn_c_try_cpp "$LINENO"; then :
5027 else
5028 # Broken: fails on valid input.
5029 continue
5031 rm -f conftest.err conftest.$ac_ext
5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5038 _ACEOF
5039 if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: success on invalid input.
5041 continue
5042 else
5043 # Passes both tests.
5044 ac_preproc_ok=:
5045 break
5047 rm -f conftest.err conftest.$ac_ext
5049 done
5050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051 rm -f conftest.err conftest.$ac_ext
5052 if $ac_preproc_ok; then :
5053 break
5056 done
5057 ac_cv_prog_CPP=$CPP
5060 CPP=$ac_cv_prog_CPP
5061 else
5062 ac_cv_prog_CPP=$CPP
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5065 $as_echo "$CPP" >&6; }
5066 ac_preproc_ok=false
5067 for ac_c_preproc_warn_flag in '' yes
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #ifdef __STDC__
5078 # include <limits.h>
5079 #else
5080 # include <assert.h>
5081 #endif
5082 Syntax error
5083 _ACEOF
5084 if ac_fn_c_try_cpp "$LINENO"; then :
5086 else
5087 # Broken: fails on valid input.
5088 continue
5090 rm -f conftest.err conftest.$ac_ext
5092 # OK, works on sane cases. Now check whether nonexistent headers
5093 # can be detected and how.
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5097 _ACEOF
5098 if ac_fn_c_try_cpp "$LINENO"; then :
5099 # Broken: success on invalid input.
5100 continue
5101 else
5102 # Passes both tests.
5103 ac_preproc_ok=:
5104 break
5106 rm -f conftest.err conftest.$ac_ext
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then :
5113 else
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." "$LINENO" 5; }
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 ac_build_prefix=
5127 test -n "$build_alias" && ac_build_prefix=$build_alias-
5129 if test "$cross_compiling" = yes; then :
5131 # Even if we're cross-compiling, we want a compiler here
5132 # that is not a cross-compiler.
5133 saved_cross=$cross_compiling
5134 cross_compiling=no
5136 ac_ext=c
5137 ac_cpp='$CPP $BUILD_CPPFLAGS'
5138 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 if test -n "$ac_build_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5143 set dummy ${ac_build_prefix}gcc; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$BUILD_CC"; then
5150 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 BUILD_CC=$ac_cv_prog_BUILD_CC
5170 if test -n "$BUILD_CC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5172 $as_echo "$BUILD_CC" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5180 if test -z "$ac_cv_prog_BUILD_CC"; then
5181 ac_ct_BUILD_CC=$BUILD_CC
5182 # Extract the first word of "gcc", so it can be a program name with args.
5183 set dummy gcc; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$ac_ct_BUILD_CC"; then
5190 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5205 IFS=$as_save_IFS
5209 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5210 if test -n "$ac_ct_BUILD_CC"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5212 $as_echo "$ac_ct_BUILD_CC" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 if test "x$ac_ct_BUILD_CC" = x; then
5219 BUILD_CC=""
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 BUILD_CC=$ac_ct_BUILD_CC
5229 else
5230 BUILD_CC="$ac_cv_prog_BUILD_CC"
5233 if test -z "$BUILD_CC"; then
5234 if test -n "$ac_build_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5236 set dummy ${ac_build_prefix}cc; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$BUILD_CC"; then
5243 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5256 done
5257 done
5258 IFS=$as_save_IFS
5262 BUILD_CC=$ac_cv_prog_BUILD_CC
5263 if test -n "$BUILD_CC"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5265 $as_echo "$BUILD_CC" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5273 if test -z "$ac_cv_prog_BUILD_CC"; then
5274 ac_ct_BUILD_CC=$BUILD_CC
5275 # Extract the first word of "cc", so it can be a program name with args.
5276 set dummy cc; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$ac_ct_BUILD_CC"; then
5283 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_ac_ct_BUILD_CC="cc"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5296 done
5297 done
5298 IFS=$as_save_IFS
5302 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5303 if test -n "$ac_ct_BUILD_CC"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5305 $as_echo "$ac_ct_BUILD_CC" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5311 if test "x$ac_ct_BUILD_CC" = x; then
5312 BUILD_CC=""
5313 else
5314 case $cross_compiling:$ac_tool_warned in
5315 yes:)
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 BUILD_CC=$ac_ct_BUILD_CC
5322 else
5323 BUILD_CC="$ac_cv_prog_BUILD_CC"
5327 if test -z "$BUILD_CC"; then
5328 # Extract the first word of "cc", so it can be a program name with args.
5329 set dummy cc; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$BUILD_CC"; then
5336 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5337 else
5338 ac_prog_rejected=no
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5347 ac_prog_rejected=yes
5348 continue
5350 ac_cv_prog_BUILD_CC="cc"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5358 if test $ac_prog_rejected = yes; then
5359 # We found a bogon in the path, so make sure we never use it.
5360 set dummy $ac_cv_prog_BUILD_CC
5361 shift
5362 if test $# != 0; then
5363 # We chose a different compiler from the bogus one.
5364 # However, it has the same basename, so the bogon will be chosen
5365 # first if we set BUILD_CC to just the basename; use the full file name.
5366 shift
5367 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5372 BUILD_CC=$ac_cv_prog_BUILD_CC
5373 if test -n "$BUILD_CC"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5375 $as_echo "$BUILD_CC" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$BUILD_CC"; then
5384 if test -n "$ac_build_prefix"; then
5385 for ac_prog in cl
5387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5388 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$BUILD_CC"; then
5395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 BUILD_CC=$ac_cv_prog_BUILD_CC
5415 if test -n "$BUILD_CC"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5417 $as_echo "$BUILD_CC" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5424 test -n "$BUILD_CC" && break
5425 done
5427 if test -z "$BUILD_CC"; then
5428 ac_ct_BUILD_CC=$BUILD_CC
5429 for ac_prog in cl
5431 # Extract the first word of "$ac_prog", so it can be a program name with args.
5432 set dummy $ac_prog; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$ac_ct_BUILD_CC"; then
5439 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5452 done
5453 done
5454 IFS=$as_save_IFS
5458 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5459 if test -n "$ac_ct_BUILD_CC"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5461 $as_echo "$ac_ct_BUILD_CC" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 test -n "$ac_ct_BUILD_CC" && break
5469 done
5471 if test "x$ac_ct_BUILD_CC" = x; then
5472 BUILD_CC=""
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5479 esac
5480 BUILD_CC=$ac_ct_BUILD_CC
5487 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5489 as_fn_error "no acceptable C compiler found in \$PATH
5490 See \`config.log' for more details." "$LINENO" 5; }
5492 # Provide some information about the compiler.
5493 echo "$as_me:$LINENO:" \
5494 "checking for C compiler version" >&5
5495 ac_compiler=`set X $ac_compile; echo $2`
5496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5497 (eval $ac_compiler --version </dev/null >&5) 2>&5
5498 ac_status=$?
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }
5501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5502 (eval $ac_compiler -v </dev/null >&5) 2>&5
5503 ac_status=$?
5504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505 test $ac_status = 0; }
5506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5507 (eval $ac_compiler -V </dev/null >&5) 2>&5
5508 ac_status=$?
5509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510 test $ac_status = 0; }
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5516 main ()
5520 return 0;
5522 _ACEOF
5523 ac_clean_files_save=$ac_clean_files
5524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5525 # Try to create an executable without -o first, disregard a.out.
5526 # It will help us diagnose broken compilers, and finding out an intuition
5527 # of exeext.
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5529 $as_echo_n "checking whether the C compiler works... " >&6; }
5530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5532 # The possible output files:
5533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5535 ac_rmfiles=
5536 for ac_file in $ac_files
5538 case $ac_file in
5539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5540 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5541 esac
5542 done
5543 rm -f $ac_rmfiles
5545 if { { ac_try="$ac_link_default"
5546 case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549 esac
5550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5551 $as_echo "$ac_try_echo"; } >&5
5552 (eval "$ac_link_default") 2>&5
5553 ac_status=$?
5554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555 test $ac_status = 0; }; then :
5556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5558 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5559 # so that the user can short-circuit this test for compilers unknown to
5560 # Autoconf.
5561 for ac_file in $ac_files ''
5563 test -f "$ac_file" || continue
5564 case $ac_file in
5565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5567 [ab].out )
5568 # We found the default executable, but exeext='' is most
5569 # certainly right.
5570 break;;
5571 *.* )
5572 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5573 then :; else
5574 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5576 # We set ac_cv_exeext here because the later test for it is not
5577 # safe: cross compilers may not add the suffix if given an `-o'
5578 # argument, so we may need to know it at that point already.
5579 # Even if this section looks crufty: it has the advantage of
5580 # actually working.
5581 break;;
5583 break;;
5584 esac
5585 done
5586 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5588 else
5589 ac_file=''
5591 if test -z "$ac_file"; then :
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 $as_echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5599 { as_fn_set_status 77
5600 as_fn_error "C compiler cannot create executables
5601 See \`config.log' for more details." "$LINENO" 5; }; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5604 $as_echo "yes" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5607 $as_echo_n "checking for C compiler default output file name... " >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5609 $as_echo "$ac_file" >&6; }
5610 ac_build_exeext=$ac_cv_build_exeext
5612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5613 ac_clean_files=$ac_clean_files_save
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5615 $as_echo_n "checking for suffix of executables... " >&6; }
5616 if { { ac_try="$ac_link"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_link") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; then :
5627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5629 # work properly (i.e., refer to `conftest.exe'), while it won't with
5630 # `rm'.
5631 for ac_file in conftest.exe conftest conftest.*; do
5632 test -f "$ac_file" || continue
5633 case $ac_file in
5634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5635 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5636 break;;
5637 * ) break;;
5638 esac
5639 done
5640 else
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 as_fn_error "cannot compute suffix of executables: cannot compile and link
5644 See \`config.log' for more details." "$LINENO" 5; }
5646 rm -f conftest conftest$ac_cv_build_exeext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5648 $as_echo "$ac_cv_build_exeext" >&6; }
5650 rm -f conftest.$ac_ext
5651 BUILD_EXEEXT=$ac_cv_build_exeext
5652 ac_build_exeext=$BUILD_EXEEXT
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <stdio.h>
5657 main ()
5659 FILE *f = fopen ("conftest.out", "w");
5660 return ferror (f) || fclose (f) != 0;
5663 return 0;
5665 _ACEOF
5666 ac_clean_files="$ac_clean_files conftest.out"
5667 # Check that the compiler produces executables we can run. If not, either
5668 # the compiler is broken, or we cross compile.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5670 $as_echo_n "checking whether we are cross compiling... " >&6; }
5671 if test "$cross_compiling" != yes; then
5672 { { ac_try="$ac_link"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_link") 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }
5683 if { ac_try='./conftest$ac_cv_build_exeext'
5684 { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5694 cross_compiling=no
5695 else
5696 if test "$cross_compiling" = maybe; then
5697 cross_compiling=yes
5698 else
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 as_fn_error "cannot run C compiled programs.
5702 If you meant to cross compile, use \`--host'.
5703 See \`config.log' for more details." "$LINENO" 5; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5708 $as_echo "$cross_compiling" >&6; }
5710 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5711 ac_clean_files=$ac_clean_files_save
5714 # Restore configuration environment
5715 cross_compiling=$saved_cross
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723 else
5724 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5726 CFLAGS="$mule_backup_CFLAGS"
5727 CXXFLAGS="$mule_backup_CXXFLAGS"
5728 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5729 for ac_prog in gawk mawk nawk awk
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732 set dummy $ac_prog; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if test "${ac_cv_prog_AWK+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test -n "$AWK"; then
5739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_AWK="$ac_prog"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5754 IFS=$as_save_IFS
5758 AWK=$ac_cv_prog_AWK
5759 if test -n "$AWK"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5761 $as_echo "$AWK" >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5768 test -n "$AWK" && break
5769 done
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5773 if test "${ac_cv_path_GREP+set}" = set; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -z "$GREP"; then
5777 ac_path_GREP_found=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in grep ggrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5788 # Check for GNU ac_path_GREP and select it if it is found.
5789 # Check for GNU $ac_path_GREP
5790 case `"$ac_path_GREP" --version 2>&1` in
5791 *GNU*)
5792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5794 ac_count=0
5795 $as_echo_n 0123456789 >"conftest.in"
5796 while :
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'GREP' >> "conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804 as_fn_arith $ac_count + 1 && ac_count=$as_val
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP="$ac_path_GREP"
5808 ac_path_GREP_max=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5812 done
5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814 esac
5816 $ac_path_GREP_found && break 3
5817 done
5818 done
5819 done
5820 IFS=$as_save_IFS
5821 if test -z "$ac_cv_path_GREP"; then
5822 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5824 else
5825 ac_cv_path_GREP=$GREP
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5830 $as_echo "$ac_cv_path_GREP" >&6; }
5831 GREP="$ac_cv_path_GREP"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5835 $as_echo_n "checking for egrep... " >&6; }
5836 if test "${ac_cv_path_EGREP+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5840 then ac_cv_path_EGREP="$GREP -E"
5841 else
5842 if test -z "$EGREP"; then
5843 ac_path_EGREP_found=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_prog in egrep; do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5853 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5854 # Check for GNU ac_path_EGREP and select it if it is found.
5855 # Check for GNU $ac_path_EGREP
5856 case `"$ac_path_EGREP" --version 2>&1` in
5857 *GNU*)
5858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5860 ac_count=0
5861 $as_echo_n 0123456789 >"conftest.in"
5862 while :
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'EGREP' >> "conftest.nl"
5868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870 as_fn_arith $ac_count + 1 && ac_count=$as_val
5871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_EGREP="$ac_path_EGREP"
5874 ac_path_EGREP_max=$ac_count
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5878 done
5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 esac
5882 $ac_path_EGREP_found && break 3
5883 done
5884 done
5885 done
5886 IFS=$as_save_IFS
5887 if test -z "$ac_cv_path_EGREP"; then
5888 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5890 else
5891 ac_cv_path_EGREP=$EGREP
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5897 $as_echo "$ac_cv_path_EGREP" >&6; }
5898 EGREP="$ac_cv_path_EGREP"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5903 set x ${MAKE-make}
5904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat >conftest.make <<\_ACEOF
5909 SHELL = /bin/sh
5910 all:
5911 @echo '@@@%%%=$(MAKE)=@@@%%%'
5912 _ACEOF
5913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5915 *@@@%%%=?*=@@@%%%*)
5916 eval ac_cv_prog_make_${ac_make}_set=yes;;
5918 eval ac_cv_prog_make_${ac_make}_set=no;;
5919 esac
5920 rm -f conftest.make
5922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924 $as_echo "yes" >&6; }
5925 SET_MAKE=
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 SET_MAKE="MAKE=${MAKE-make}"
5933 for ac_prog in flex lex
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_LEX+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$LEX"; then
5943 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_LEX="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5956 done
5957 done
5958 IFS=$as_save_IFS
5962 LEX=$ac_cv_prog_LEX
5963 if test -n "$LEX"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5965 $as_echo "$LEX" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5972 test -n "$LEX" && break
5973 done
5974 test -n "$LEX" || LEX=":"
5976 if test "x$LEX" != "x:"; then
5977 cat >conftest.l <<_ACEOF
5979 a { ECHO; }
5980 b { REJECT; }
5981 c { yymore (); }
5982 d { yyless (1); }
5983 e { yyless (input () != 0); }
5984 f { unput (yytext[0]); }
5985 . { BEGIN INITIAL; }
5987 #ifdef YYTEXT_POINTER
5988 extern char *yytext;
5989 #endif
5991 main (void)
5993 return ! yylex () + ! yywrap ();
5995 _ACEOF
5996 { { ac_try="$LEX conftest.l"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6002 $as_echo "$ac_try_echo"; } >&5
6003 (eval "$LEX conftest.l") 2>&5
6004 ac_status=$?
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6008 $as_echo_n "checking lex output file root... " >&6; }
6009 if test "${ac_cv_prog_lex_root+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6013 if test -f lex.yy.c; then
6014 ac_cv_prog_lex_root=lex.yy
6015 elif test -f lexyy.c; then
6016 ac_cv_prog_lex_root=lexyy
6017 else
6018 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6022 $as_echo "$ac_cv_prog_lex_root" >&6; }
6023 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6025 if test -z "${LEXLIB+set}"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6027 $as_echo_n "checking lex library... " >&6; }
6028 if test "${ac_cv_lib_lex+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6032 ac_save_LIBS=$LIBS
6033 ac_cv_lib_lex='none needed'
6034 for ac_lib in '' -lfl -ll; do
6035 LIBS="$ac_lib $ac_save_LIBS"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 `cat $LEX_OUTPUT_ROOT.c`
6039 _ACEOF
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 ac_cv_lib_lex=$ac_lib
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 test "$ac_cv_lib_lex" != 'none needed' && break
6046 done
6047 LIBS=$ac_save_LIBS
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6051 $as_echo "$ac_cv_lib_lex" >&6; }
6052 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6057 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6058 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 # POSIX says lex can declare yytext either as a pointer or an array; the
6062 # default is implementation-dependent. Figure out which it is, since
6063 # not all implementations provide the %pointer and %array declarations.
6064 ac_cv_prog_lex_yytext_pointer=no
6065 ac_save_LIBS=$LIBS
6066 LIBS="$LEXLIB $ac_save_LIBS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #define YYTEXT_POINTER 1
6070 `cat $LEX_OUTPUT_ROOT.c`
6071 _ACEOF
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_prog_lex_yytext_pointer=yes
6075 rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6077 LIBS=$ac_save_LIBS
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6081 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6082 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6084 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6087 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$RANLIB"; then
6100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6115 IFS=$as_save_IFS
6119 RANLIB=$ac_cv_prog_RANLIB
6120 if test -n "$RANLIB"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6122 $as_echo "$RANLIB" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6130 if test -z "$ac_cv_prog_RANLIB"; then
6131 ac_ct_RANLIB=$RANLIB
6132 # Extract the first word of "ranlib", so it can be a program name with args.
6133 set dummy ranlib; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$ac_ct_RANLIB"; then
6140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_RANLIB="ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6160 if test -n "$ac_ct_RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6162 $as_echo "$ac_ct_RANLIB" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6168 if test "x$ac_ct_RANLIB" = x; then
6169 RANLIB=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177 RANLIB=$ac_ct_RANLIB
6179 else
6180 RANLIB="$ac_cv_prog_RANLIB"
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6185 if test "${ac_cv_path_SED+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6189 for ac_i in 1 2 3 4 5 6 7; do
6190 ac_script="$ac_script$as_nl$ac_script"
6191 done
6192 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6193 { ac_script=; unset ac_script;}
6194 if test -z "$SED"; then
6195 ac_path_SED_found=false
6196 # Loop through the user's path and test for each of PROGNAME-LIST
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_prog in sed gsed; do
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6205 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6206 # Check for GNU ac_path_SED and select it if it is found.
6207 # Check for GNU $ac_path_SED
6208 case `"$ac_path_SED" --version 2>&1` in
6209 *GNU*)
6210 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6212 ac_count=0
6213 $as_echo_n 0123456789 >"conftest.in"
6214 while :
6216 cat "conftest.in" "conftest.in" >"conftest.tmp"
6217 mv "conftest.tmp" "conftest.in"
6218 cp "conftest.in" "conftest.nl"
6219 $as_echo '' >> "conftest.nl"
6220 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6222 as_fn_arith $ac_count + 1 && ac_count=$as_val
6223 if test $ac_count -gt ${ac_path_SED_max-0}; then
6224 # Best one so far, save it but keep looking for a better one
6225 ac_cv_path_SED="$ac_path_SED"
6226 ac_path_SED_max=$ac_count
6228 # 10*(2^10) chars as input seems more than enough
6229 test $ac_count -gt 10 && break
6230 done
6231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6232 esac
6234 $ac_path_SED_found && break 3
6235 done
6236 done
6237 done
6238 IFS=$as_save_IFS
6239 if test -z "$ac_cv_path_SED"; then
6240 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6242 else
6243 ac_cv_path_SED=$SED
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6248 $as_echo "$ac_cv_path_SED" >&6; }
6249 SED="$ac_cv_path_SED"
6250 rm -f conftest.sed
6252 for ac_prog in 'bison -y' byacc
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_YACC+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$YACC"; then
6262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_YACC="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 YACC=$ac_cv_prog_YACC
6282 if test -n "$YACC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6284 $as_echo "$YACC" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$YACC" && break
6292 done
6293 test -n "$YACC" || YACC="yacc"
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$RANLIB"; then
6305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6318 done
6319 done
6320 IFS=$as_save_IFS
6324 RANLIB=$ac_cv_prog_RANLIB
6325 if test -n "$RANLIB"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6327 $as_echo "$RANLIB" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6335 if test -z "$ac_cv_prog_RANLIB"; then
6336 ac_ct_RANLIB=$RANLIB
6337 # Extract the first word of "ranlib", so it can be a program name with args.
6338 set dummy ranlib; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_RANLIB"; then
6345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_RANLIB="ranlib"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6365 if test -n "$ac_ct_RANLIB"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6367 $as_echo "$ac_ct_RANLIB" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6373 if test "x$ac_ct_RANLIB" = x; then
6374 RANLIB=""
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 RANLIB=$ac_ct_RANLIB
6384 else
6385 RANLIB="$ac_cv_prog_RANLIB"
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}strip; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_prog_STRIP+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$STRIP"; then
6397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6410 done
6411 done
6412 IFS=$as_save_IFS
6416 STRIP=$ac_cv_prog_STRIP
6417 if test -n "$STRIP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6419 $as_echo "$STRIP" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_STRIP"; then
6428 ac_ct_STRIP=$STRIP
6429 # Extract the first word of "strip", so it can be a program name with args.
6430 set dummy strip; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_STRIP"; then
6437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_STRIP="strip"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6457 if test -n "$ac_ct_STRIP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6459 $as_echo "$ac_ct_STRIP" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_STRIP" = x; then
6466 STRIP=""
6467 else
6468 case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474 STRIP=$ac_ct_STRIP
6476 else
6477 STRIP="$ac_cv_prog_STRIP"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}ar; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_AR+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR="$AR" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_AR="${ac_tool_prefix}ar"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 AR=$ac_cv_prog_AR
6509 if test -n "$AR"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6511 $as_echo "$AR" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_AR"; then
6520 ac_ct_AR=$AR
6521 # Extract the first word of "ar", so it can be a program name with args.
6522 set dummy ar; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$ac_ct_AR"; then
6529 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_AR="ar"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549 if test -n "$ac_ct_AR"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6551 $as_echo "$ac_ct_AR" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_AR" = x; then
6558 AR=""
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 AR=$ac_ct_AR
6568 else
6569 AR="$ac_cv_prog_AR"
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ld; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_LD+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$LD"; then
6581 ac_cv_prog_LD="$LD" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_LD="${ac_tool_prefix}ld"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 LD=$ac_cv_prog_LD
6601 if test -n "$LD"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6603 $as_echo "$LD" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_LD"; then
6612 ac_ct_LD=$LD
6613 # Extract the first word of "ld", so it can be a program name with args.
6614 set dummy ld; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$ac_ct_LD"; then
6621 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_LD="ld"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6634 done
6635 done
6636 IFS=$as_save_IFS
6640 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6641 if test -n "$ac_ct_LD"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6643 $as_echo "$ac_ct_LD" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_LD" = x; then
6650 LD=""
6651 else
6652 case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6657 esac
6658 LD=$ac_ct_LD
6660 else
6661 LD="$ac_cv_prog_LD"
6665 # Check whether --enable-monolithic was given.
6666 if test "${enable_monolithic+set}" = set; then :
6667 enableval=$enable_monolithic;
6670 if test ${enable_monolithic:-yes} = yes; then
6671 MONOLITHIC_TRUE=
6672 MONOLITHIC_FALSE='#'
6673 else
6674 MONOLITHIC_TRUE='#'
6675 MONOLITHIC_FALSE=
6679 # Check whether --enable-amule-daemon was given.
6680 if test "${enable_amule_daemon+set}" = set; then :
6681 enableval=$enable_amule_daemon;
6684 if test ${enable_amule_daemon:-no} = yes; then
6685 AMULE_DAEMON_TRUE=
6686 AMULE_DAEMON_FALSE='#'
6687 else
6688 AMULE_DAEMON_TRUE='#'
6689 AMULE_DAEMON_FALSE=
6693 # Check whether --enable-amulecmd was given.
6694 if test "${enable_amulecmd+set}" = set; then :
6695 enableval=$enable_amulecmd;
6698 if test ${enable_amulecmd:-no} = yes; then
6699 COMPILE_CMD_TRUE=
6700 COMPILE_CMD_FALSE='#'
6701 else
6702 COMPILE_CMD_TRUE='#'
6703 COMPILE_CMD_FALSE=
6707 # Check whether --enable-webserver was given.
6708 if test "${enable_webserver+set}" = set; then :
6709 enableval=$enable_webserver;
6712 if test ${enable_webserver:-no} = yes; then
6713 WEB_TRUE=
6714 WEB_FALSE='#'
6715 else
6716 WEB_TRUE='#'
6717 WEB_FALSE=
6721 # Check whether --enable-amule-gui was given.
6722 if test "${enable_amule_gui+set}" = set; then :
6723 enableval=$enable_amule_gui;
6726 if test ${enable_amule_gui:-no} = yes; then
6727 AMULE_GUI_TRUE=
6728 AMULE_GUI_FALSE='#'
6729 else
6730 AMULE_GUI_TRUE='#'
6731 AMULE_GUI_FALSE=
6735 # Check whether --enable-cas was given.
6736 if test "${enable_cas+set}" = set; then :
6737 enableval=$enable_cas;
6740 if test ${enable_cas:-no} = yes; then
6741 CAS_TRUE=
6742 CAS_FALSE='#'
6743 else
6744 CAS_TRUE='#'
6745 CAS_FALSE=
6749 # Check whether --enable-wxcas was given.
6750 if test "${enable_wxcas+set}" = set; then :
6751 enableval=$enable_wxcas;
6754 if test ${enable_wxcas:-no} = yes; then
6755 WXCAS_TRUE=
6756 WXCAS_FALSE='#'
6757 else
6758 WXCAS_TRUE='#'
6759 WXCAS_FALSE=
6763 # Check whether --enable-ed2k was given.
6764 if test "${enable_ed2k+set}" = set; then :
6765 enableval=$enable_ed2k;
6768 if test ${enable_ed2k:-yes} = yes; then
6769 ED2K_TRUE=
6770 ED2K_FALSE='#'
6771 else
6772 ED2K_TRUE='#'
6773 ED2K_FALSE=
6777 # Check whether --enable-alc was given.
6778 if test "${enable_alc+set}" = set; then :
6779 enableval=$enable_alc;
6782 if test ${enable_alc:-no} = yes; then
6783 ALC_TRUE=
6784 ALC_FALSE='#'
6785 else
6786 ALC_TRUE='#'
6787 ALC_FALSE=
6791 # Check whether --enable-alcc was given.
6792 if test "${enable_alcc+set}" = set; then :
6793 enableval=$enable_alcc;
6796 if test ${enable_alcc:-no} = yes; then
6797 ALCC_TRUE=
6798 ALCC_FALSE='#'
6799 else
6800 ALCC_TRUE='#'
6801 ALCC_FALSE=
6805 # Check whether --enable-xas was given.
6806 if test "${enable_xas+set}" = set; then :
6807 enableval=$enable_xas;
6810 if test ${enable_xas:-no} = yes; then
6811 XAS_TRUE=
6812 XAS_FALSE='#'
6813 else
6814 XAS_TRUE='#'
6815 XAS_FALSE=
6819 # Check whether --enable-fileview was given.
6820 if test "${enable_fileview+set}" = set; then :
6821 enableval=$enable_fileview;
6824 if test ${enable_fileview:-no} = yes; then
6825 FILEVIEW_TRUE=
6826 FILEVIEW_FALSE='#'
6827 else
6828 FILEVIEW_TRUE='#'
6829 FILEVIEW_FALSE=
6833 # Check whether --enable-plasmamule was given.
6834 if test "${enable_plasmamule+set}" = set; then :
6835 enableval=$enable_plasmamule;
6840 # Run all the tests with static linkage if we want a statically linked binary
6841 # Check whether --enable-static was given.
6842 if test "${enable_static+set}" = set; then :
6843 enableval=$enable_static;
6847 if test ${enable_static:-no} = yes; then :
6848 LDFLAGS="$LDFLAGS -static"
6853 # Check whether --with-kde4-config was given.
6854 if test "${with_kde4_config+set}" = set; then :
6855 withval=$with_kde4_config; KDE4_CONFIG=$withval
6856 else
6857 KDE4_CONFIG=""
6860 # Check whether --enable-kde-in-home was given.
6861 if test "${enable_kde_in_home+set}" = set; then :
6862 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6863 else
6864 KDE_IN_HOME=no
6870 # Check whether --with-moc was given.
6871 if test "${with_moc+set}" = set; then :
6872 withval=$with_moc; QT_MOC=$withval
6873 else
6874 QT_MOC=""
6879 # Default is yes, because they're most likely compatible.
6880 # However, this is only used when cross-compiling.
6882 # Check whether --with-gnu-malloc was given.
6883 if test "${with_gnu_malloc+set}" = set; then :
6884 withval=$with_gnu_malloc; gnumalloc=$withval
6885 else
6886 gnumalloc=yes
6891 # Checking for libs before all other stuff to break
6892 # configure as soon as possible in case of a missing one
6893 # to avoid losing too much time
6895 # Check for zlib
6896 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 :
6899 # Check whether --with-zlib was given.
6900 if test "${with_zlib+set}" = set; then :
6901 withval=$with_zlib;
6905 case "${with_zlib:-yes}" in
6907 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6909 yes | sys)
6912 zlib_prefix="$with_zlib"
6913 esac
6915 mule_backup_CPPFLAGS="$CPPFLAGS"
6916 mule_backup_LDFLAGS="$LDFLAGS"
6917 mule_backup_LIBS="$LIBS"
6918 if test -n "$zlib_prefix"; then :
6920 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6921 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6922 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6923 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6925 else
6927 ZLIB_CPPFLAGS=
6928 ZLIB_LDFLAGS=
6931 ZLIB_LIBS="-lz"
6932 LIBS="$ZLIB_LIBS $LIBS"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6935 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6936 if test "$cross_compiling" = yes; then :
6938 result=no
6939 z_version=
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6944 #include <zlib.h>
6945 #include <stdio.h>
6948 main ()
6951 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6952 zlibVersion();
6955 return 0;
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6961 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6962 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6963 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6964 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6965 if test "$cross_zver_max" -gt "1"; then
6966 result=yes
6967 elif test "$cross_zver_max" -eq "1"; then
6969 if test "$cross_zver_mid" -gt "1"; then
6970 result=yes
6971 elif test "$cross_zver_mid" -eq "1"; then
6972 if test "$cross_zver_min" -ge "4"; then
6973 result=yes
6981 if test ${result:-no} = yes; then :
6982 z_version=" (version $ZLIB_VERSION)"
6986 rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6989 $as_echo "$result$z_version" >&6; }
6991 else
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6996 #include <zlib.h>
6997 #include <stdio.h>
7000 main ()
7002 char *zver = zlibVersion();
7003 FILE *f=fopen("conftestval", "w");
7004 if (!f) return 1;
7005 fprintf(f, "%s",
7006 zver[0] > '1' ||
7007 (zver[0] == '1' &&
7008 (zver[2] > '1' ||
7009 (zver[2] == '1' &&
7010 zver[4] >= '4'))) ? "yes" : "no");
7011 fclose(f);
7012 f=fopen("conftestver", "w");
7013 if (f) {
7014 fprintf(f, "%s", ZLIB_VERSION);
7015 fclose(f);
7019 return 0;
7022 _ACEOF
7023 if ac_fn_c_try_run "$LINENO"; then :
7025 if test -f conftestval; then :
7026 result=`cat conftestval`
7027 else
7028 result=no
7030 if test ${result:-no} = yes; then :
7032 if test -f conftestver; then :
7034 ZLIB_VERSION=`cat conftestver`
7035 z_version=" (version $ZLIB_VERSION)"
7037 else
7038 z_version=
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7043 $as_echo "$result$z_version" >&6; }
7045 else
7047 result=no
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7049 $as_echo "$result" >&6; }
7052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7053 conftest.$ac_objext conftest.beam conftest.$ac_ext
7057 CPPFLAGS="$mule_backup_CPPFLAGS"
7058 LDFLAGS="$mule_backup_LDFLAGS"
7059 LIBS="$mule_backup_LIBS"
7061 if test ${result:-no} = no; then :
7063 ZLIB_CPPFLAGS=
7064 ZLIB_LDFLAGS=
7065 ZLIB_LIBS=
7066 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7075 $as_echo_n "checking for ANSI C header files... " >&6; }
7076 if test "${ac_cv_header_stdc+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #include <stdlib.h>
7082 #include <stdarg.h>
7083 #include <string.h>
7084 #include <float.h>
7087 main ()
7091 return 0;
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"; then :
7095 ac_cv_header_stdc=yes
7096 else
7097 ac_cv_header_stdc=no
7099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 if test $ac_cv_header_stdc = yes; then
7102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105 #include <string.h>
7107 _ACEOF
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "memchr" >/dev/null 2>&1; then :
7111 else
7112 ac_cv_header_stdc=no
7114 rm -f conftest*
7118 if test $ac_cv_header_stdc = yes; then
7119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 #include <stdlib.h>
7124 _ACEOF
7125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7126 $EGREP "free" >/dev/null 2>&1; then :
7128 else
7129 ac_cv_header_stdc=no
7131 rm -f conftest*
7135 if test $ac_cv_header_stdc = yes; then
7136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7137 if test "$cross_compiling" = yes; then :
7139 else
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <ctype.h>
7143 #include <stdlib.h>
7144 #if ((' ' & 0x0FF) == 0x020)
7145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7147 #else
7148 # define ISLOWER(c) \
7149 (('a' <= (c) && (c) <= 'i') \
7150 || ('j' <= (c) && (c) <= 'r') \
7151 || ('s' <= (c) && (c) <= 'z'))
7152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7153 #endif
7155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7157 main ()
7159 int i;
7160 for (i = 0; i < 256; i++)
7161 if (XOR (islower (i), ISLOWER (i))
7162 || toupper (i) != TOUPPER (i))
7163 return 2;
7164 return 0;
7166 _ACEOF
7167 if ac_fn_c_try_run "$LINENO"; then :
7169 else
7170 ac_cv_header_stdc=no
7172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7173 conftest.$ac_objext conftest.beam conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7179 $as_echo "$ac_cv_header_stdc" >&6; }
7180 if test $ac_cv_header_stdc = yes; then
7182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7188 inttypes.h stdint.h unistd.h
7189 do :
7190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7193 eval as_val=\$$as_ac_Header
7194 if test "x$as_val" = x""yes; then :
7195 cat >>confdefs.h <<_ACEOF
7196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7197 _ACEOF
7201 done
7204 if test ${enable_cas:-no} = yes; then :
7206 # Check for gd
7209 # Check whether --with-gdlib-prefix was given.
7210 if test "${with_gdlib_prefix+set}" = set; then :
7211 withval=$with_gdlib_prefix;
7215 # Check whether --with-gdlib-config was given.
7216 if test "${with_gdlib_config+set}" = set; then :
7217 withval=$with_gdlib_config;
7221 GDLIB_VERSION=
7223 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7224 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7225 GDLIB_CONFIG_NAME=gdlib-config
7227 if test -n "$with_gdlib_config"; then :
7228 GDLIB_CONFIG_NAME="$with_gdlib_config"
7231 # deal with optional prefix
7232 if test -n "$with_gdlib_prefix"; then :
7233 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7236 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7237 if test -x "$GDLIB_CONFIG_NAME"; then :
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7240 $as_echo_n "checking for gdlib-config... " >&6; }
7241 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7243 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7245 else
7246 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7247 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case $GDLIB_CONFIG_PATH in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7260 for as_dir in $as_dummy
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7270 done
7271 done
7272 IFS=$as_save_IFS
7274 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7276 esac
7278 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7279 if test -n "$GDLIB_CONFIG_PATH"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7281 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7290 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7293 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7294 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7296 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7297 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7298 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7299 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7301 gdlib_ver_ok=
7302 if test $gdlib_config_major_version -gt 2; then
7303 gdlib_ver_ok=yes
7304 elif test $gdlib_config_major_version -eq 2; then
7306 if test $gdlib_config_minor_version -gt 0; then
7307 gdlib_ver_ok=yes
7308 elif test $gdlib_config_minor_version -eq 0; then
7309 if test $gdlib_config_micro_version -ge 0; then
7310 gdlib_ver_ok=yes
7319 if test -z "$gdlib_ver_ok"; then :
7321 if test -z "$GDLIB_VERSION"; then :
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7327 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7328 GDLIB_VERSION=
7332 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7335 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7336 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7337 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7338 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7339 mule_backup_CFLAGS="$CFLAGS"
7340 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7341 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7342 if test "x$ac_cv_header_gd_h" = x""yes; then :
7344 else
7345 GDLIB_VERSION=
7349 CFLAGS="$mule_backup_CFLAGS"
7355 if test -n "$GDLIB_VERSION"; then :
7357 CAS_DEFS="-D__GD__"
7358 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7360 else
7361 CAS_DEFS=
7366 if test -z "$CAS_DEFS"; then :
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7368 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7369 Please check that gdlib-config is in your default path, check out
7370 LD_LIBRARY_PATH or equivalent variable.
7371 Or this might also be that your gdlib-config has other name.
7372 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7373 (replace /usr/bin/gdlib-config with a valid path to your
7374 gdlib-config).
7375 If you use compiled packages check if you have devel pack installed.
7376 To download the latest version check http://www.boutell.com/gd for
7377 sources." >&5
7378 $as_echo "$as_me: WARNING:
7379 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7380 Please check that gdlib-config is in your default path, check out
7381 LD_LIBRARY_PATH or equivalent variable.
7382 Or this might also be that your gdlib-config has other name.
7383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7384 (replace /usr/bin/gdlib-config with a valid path to your
7385 gdlib-config).
7386 If you use compiled packages check if you have devel pack installed.
7387 To download the latest version check http://www.boutell.com/gd for
7388 sources." >&2;}
7389 _mule_warning_0=yes
7390 _mule_has_warnings=yes
7396 if test ${enable_webserver:-no} = yes; then :
7399 # Check whether --with-libpng-prefix was given.
7400 if test "${with_libpng_prefix+set}" = set; then :
7401 withval=$with_libpng_prefix;
7405 # Check whether --with-libpng-config was given.
7406 if test "${with_libpng_config+set}" = set; then :
7407 withval=$with_libpng_config;
7411 LIBPNG_VERSION=
7413 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7414 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7415 LIBPNG_CONFIG_NAME=libpng-config
7417 if test -n "$with_libpng_config"; then :
7418 LIBPNG_CONFIG_NAME="$with_libpng_config"
7421 # deal with optional prefix
7422 if test -n "$with_libpng_prefix"; then :
7423 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7426 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7427 if test -x "$LIBPNG_CONFIG_NAME"; then :
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7430 $as_echo_n "checking for libpng-config... " >&6; }
7431 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7433 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7435 else
7436 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7437 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 case $LIBPNG_CONFIG_PATH in
7444 [\\/]* | ?:[\\/]*)
7445 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7450 for as_dir in $as_dummy
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7460 done
7461 done
7462 IFS=$as_save_IFS
7464 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7466 esac
7468 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7469 if test -n "$LIBPNG_CONFIG_PATH"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7471 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7480 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7483 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7485 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7487 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7488 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7489 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7490 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7492 libpng_ver_ok=
7493 if test $libpng_config_major_version -gt 1; then
7494 libpng_ver_ok=yes
7495 elif test $libpng_config_major_version -eq 1; then
7497 if test $libpng_config_minor_version -gt 2; then
7498 libpng_ver_ok=yes
7499 elif test $libpng_config_minor_version -eq 2; then
7500 if test $libpng_config_micro_version -ge 0; then
7501 libpng_ver_ok=yes
7510 if test -z "$libpng_ver_ok"; then :
7512 if test -z "$LIBPNG_VERSION"; then :
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7518 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7519 LIBPNG_VERSION=
7523 else
7525 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7526 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7527 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7529 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7532 $as_echo_n "checking if libpng is usable... " >&6; }
7534 SAVED_CFLAGS=$CFLAGS
7535 SAVED_LDFLAGS=$LDFLAGS
7536 SAVED_LIBS=$LIBS
7538 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7539 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7540 LIBS="$LIBS $LIBPNG_LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7546 #include <png.h>
7547 #include <stdio.h>
7550 main ()
7553 png_uint_32 libpng_vn = png_access_version_number();
7554 printf("\nlibpng version %i\n\n", libpng_vn);
7557 return 0;
7560 _ACEOF
7561 if ac_fn_c_try_link "$LINENO"; then :
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7566 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7569 $as_echo "no (failed to compile and link test program)" >&6; }
7570 LIBPNG_LIBS=
7571 LIBPNG_LDFLAGS=
7572 LIBPNG_CFLAGS=
7573 LIBPNG_VERSION=
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7579 CFLAGS=$SAVED_CFLAGS
7580 LDFLAGS=$SAVED_LDFLAGS
7581 LIBS=$SAVED_LIBS
7587 if test -n "$LIBPNG_VERSION"; then :
7588 AMULEWEB_DEFS="-DWITH_LIBPNG"
7589 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7592 libpng >= 1.2.0 not found.
7593 amuleweb will be compiled but file download progress bar images will
7594 NOT be generated." >&5
7595 $as_echo "$as_me: WARNING:
7596 libpng >= 1.2.0 not found.
7597 amuleweb will be compiled but file download progress bar images will
7598 NOT be generated." >&2;}
7599 _mule_warning_1=yes
7600 _mule_has_warnings=yes
7610 # Check for perl File::Copy
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7612 $as_echo_n "checking for File::Copy... " >&6; }
7613 if perl -e "require File::Copy" 2>/dev/null; then :
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7615 $as_echo "ok" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7618 File::Copy perl module is required by the mldonkey_importer script.
7619 If you want to use this script please install File::Copy from CPAN." >&5
7620 $as_echo "$as_me: WARNING:
7621 File::Copy perl module is required by the mldonkey_importer script.
7622 If you want to use this script please install File::Copy from CPAN." >&2;}
7623 _mule_warning_2=yes
7624 _mule_has_warnings=yes
7628 # Check for GeoIP (required for IP2Country capability)
7629 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7631 # Check whether --enable-geoip was given.
7632 if test "${enable_geoip+set}" = set; then :
7633 enableval=$enable_geoip;
7638 if test ${enable_geoip:-no} = yes; then :
7641 # Check whether --with-geoip-headers was given.
7642 if test "${with_geoip_headers+set}" = set; then :
7643 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7647 # Check whether --with-geoip-lib was given.
7648 if test "${with_geoip_lib+set}" = set; then :
7649 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7653 mule_backup_CPPFLAGS="$CPPFLAGS"
7654 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7655 mule_backup_LDFLAGS="$LDFLAGS"
7656 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7658 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7659 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7661 if test x$SYS = xwin32; then :
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7664 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7665 # Actually, we might not need any if GeoIP is linked as a .dll
7666 # - but that's even harder to check for
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7671 #include <GeoIP.h>
7672 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
7673 I do know it's not the best approach, but at least works with MinGW stock headers.
7674 (tested with w32api-3.12)
7675 #endif
7678 main ()
7682 return 0;
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7688 GEOIP_WINSOCK_LIB="-lwsock32"
7690 else
7692 GEOIP_WINSOCK_LIB="-lws2_32"
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7697 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7701 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7702 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char GeoIP_open ();
7718 main ()
7720 return GeoIP_open ();
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_GeoIP_GeoIP_open=yes
7727 else
7728 ac_cv_lib_GeoIP_GeoIP_open=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7735 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7736 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7739 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7741 GEOIP_LIBS="-lGeoIP"
7742 if test x$SYS = xwin32; then :
7743 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7745 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7747 # Check whether --with-geoip-static was given.
7748 if test "${with_geoip_static+set}" = set; then :
7749 withval=$with_geoip_static;
7750 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7752 mule_backup_LIBS="$LIBS"
7753 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 #include <GeoIP.h>
7761 main ()
7764 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7767 return 0;
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7773 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7775 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7778 Cannot link GeoIP statically, because your linker ($LD) does not
7779 support it." >&5
7780 $as_echo "$as_me: WARNING:
7781 Cannot link GeoIP statically, because your linker ($LD) does not
7782 support it." >&2;}
7783 _mule_warning_3=yes
7784 _mule_has_warnings=yes
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 LIBS="$mule_backup_LIBS"
7797 else
7799 enable_geoip=disabled
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7801 GeoIP support has been disabled because the GeoIP libraries were not
7802 found" >&5
7803 $as_echo "$as_me: WARNING:
7804 GeoIP support has been disabled because the GeoIP libraries were not
7805 found" >&2;}
7806 _mule_warning_4=yes
7807 _mule_has_warnings=yes
7813 else
7815 enable_geoip=disabled
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7817 GeoIP support has been disabled because the GeoIP header files were
7818 not found" >&5
7819 $as_echo "$as_me: WARNING:
7820 GeoIP support has been disabled because the GeoIP header files were
7821 not found" >&2;}
7822 _mule_warning_5=yes
7823 _mule_has_warnings=yes
7830 CPPFLAGS="$mule_backup_CPPFLAGS"
7831 LDFLAGS="$mule_backup_LDFLAGS"
7837 # Check for wx
7838 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 :
7841 # Check whether --with-wxdir was given.
7842 if test "${with_wxdir+set}" = set; then :
7843 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7844 wx_config_args="--inplace"
7848 # Check whether --with-wx-config was given.
7849 if test "${with_wx_config+set}" = set; then :
7850 withval=$with_wx_config; wx_config_name="$withval"
7854 # Check whether --with-wx-prefix was given.
7855 if test "${with_wx_prefix+set}" = set; then :
7856 withval=$with_wx_prefix; wx_config_prefix="$withval"
7857 else
7858 wx_config_prefix=""
7862 # Check whether --with-wx-exec-prefix was given.
7863 if test "${with_wx_exec_prefix+set}" = set; then :
7864 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7865 else
7866 wx_config_exec_prefix=""
7881 # Check whether --with-toolkit was given.
7882 if test "${with_toolkit+set}" = set; then :
7883 withval=$with_toolkit;
7884 else
7885 withval="auto"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7890 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7891 if test "$withval" = "auto" ; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7893 $as_echo "will be automatically detected" >&6; }
7894 TOOLKIT="auto"
7895 else
7896 TOOLKIT="$withval"
7898 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7899 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7900 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7901 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7902 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7903 "$TOOLKIT" != "osx_cocoa"; then
7904 as_fn_error "
7905 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7906 " "$LINENO" 5
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7910 $as_echo "$TOOLKIT" >&6; }
7917 # Check whether --with-wxshared was given.
7918 if test "${with_wxshared+set}" = set; then :
7919 withval=$with_wxshared;
7920 else
7921 withval="auto"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7926 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7927 if test "$withval" = "yes" ; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7930 WX_SHARED=1
7932 elif test "1" = "1" -a "$withval" = "no" ; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 WX_SHARED=0
7936 elif test "$withval" = "auto" ; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7938 $as_echo "will be automatically detected" >&6; }
7939 WX_SHARED="auto"
7940 else
7941 as_fn_error "
7942 Unrecognized option value (allowed values: yes, auto)
7943 " "$LINENO" 5
7950 # Check whether --with-wxdebug was given.
7951 if test "${with_wxdebug+set}" = set; then :
7952 withval=$with_wxdebug;
7953 else
7954 withval="auto"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7959 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7960 if test "$withval" = "yes" ; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7963 WX_DEBUG=1
7965 elif test "1" = "1" -a "$withval" = "no" ; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 WX_DEBUG=0
7969 elif test "$withval" = "auto" ; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7971 $as_echo "will be automatically detected" >&6; }
7972 WX_DEBUG="auto"
7973 else
7974 as_fn_error "
7975 Unrecognized option value (allowed values: yes, auto)
7976 " "$LINENO" 5
7983 # Check whether --with-wxversion was given.
7984 if test "${with_wxversion+set}" = set; then :
7985 withval=$with_wxversion;
7986 else
7987 withval="auto"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7992 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7993 if test "$withval" = "auto" ; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7995 $as_echo "will be automatically detected" >&6; }
7996 WX_VERSION="auto"
7997 else
7999 wx_requested_major_version=`echo $withval | \
8000 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8001 wx_requested_minor_version=`echo $withval | \
8002 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8004 if test "${#wx_requested_major_version}" != "1" -o \
8005 "${#wx_requested_minor_version}" != "1" ; then
8006 as_fn_error "
8007 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8008 " "$LINENO" 5
8011 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8013 $as_echo "$WX_VERSION" >&6; }
8017 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8018 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8019 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8020 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8021 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8022 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8025 # Force using a static wxWidgets library if the executable is to be linked statically.
8026 if test ${enable_static:-no} = yes; then :
8027 WX_SHARED=0
8029 # Force using a unicode build of the library
8030 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 :
8031 WX_UNICODE=1
8033 DEBUG=$WX_DEBUG
8035 if test "$WX_SHARED" = "1" ; then
8036 WXCONFIG_FLAGS="--static=no "
8037 elif test "$WX_SHARED" = "0" ; then
8038 WXCONFIG_FLAGS="--static=yes "
8041 if test "$WX_DEBUG" = "1" ; then
8042 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8043 elif test "$WX_DEBUG" = "0" ; then
8044 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8047 if test "$WX_UNICODE" = "1" ; then
8048 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8049 elif test "$WX_UNICODE" = "0" ; then
8050 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8053 if test "$TOOLKIT" != "auto" ; then
8054 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8057 if test "$WX_VERSION" != "auto" ; then
8058 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8061 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8063 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8064 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8068 if test x${WX_CONFIG_NAME+set} != xset ; then
8069 WX_CONFIG_NAME=wx-config
8072 if test "x$wx_config_name" != x ; then
8073 WX_CONFIG_NAME="$wx_config_name"
8076 if test x$wx_config_exec_prefix != x ; then
8077 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8078 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8080 if test x$wx_config_prefix != x ; then
8081 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8082 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8084 if test "$cross_compiling" = "yes"; then
8085 wx_config_args="$wx_config_args --host=$host_alias"
8088 if test -x "$WX_CONFIG_NAME" ; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8090 $as_echo_n "checking for wx-config... " >&6; }
8091 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8093 $as_echo "$WX_CONFIG_PATH" >&6; }
8094 else
8095 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8096 set dummy $WX_CONFIG_NAME; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 case $WX_CONFIG_PATH in
8103 [\\/]* | ?:[\\/]*)
8104 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8109 for as_dir in $as_dummy
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8119 done
8120 done
8121 IFS=$as_save_IFS
8123 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8125 esac
8127 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8128 if test -n "$WX_CONFIG_PATH"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8130 $as_echo "$WX_CONFIG_PATH" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8139 if test "$WX_CONFIG_PATH" != "no" ; then
8140 WX_VERSION_FULL=""
8142 min_wx_version=2.8.12
8143 if test -z "$WXCONFIG_FLAGS" ; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8145 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8148 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8151 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8153 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8154 wx_config_major_version=`echo $WX_VERSION_FULL | \
8155 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8156 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8158 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8161 wx_requested_major_version=`echo $min_wx_version | \
8162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8163 wx_requested_minor_version=`echo $min_wx_version | \
8164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8165 wx_requested_micro_version=`echo $min_wx_version | \
8166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8169 wx_ver_ok=""
8170 if test "x$WX_VERSION_FULL" != x ; then
8171 if test $wx_config_major_version -gt $wx_requested_major_version; then
8172 wx_ver_ok=yes
8173 else
8174 if test $wx_config_major_version -eq $wx_requested_major_version; then
8175 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8176 wx_ver_ok=yes
8177 else
8178 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8179 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8180 wx_ver_ok=yes
8189 if test -n "$wx_ver_ok"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8192 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8193 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8195 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8197 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8198 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8199 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8201 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8202 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8204 wxWin=1
8206 else
8208 if test "x$WX_VERSION_FULL" = x; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8213 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8216 WX_CFLAGS=""
8217 WX_CPPFLAGS=""
8218 WX_CXXFLAGS=""
8219 WX_LIBS=""
8220 WX_RESCOMP=""
8222 if test ! -z "$WXCONFIG_FLAGS"; then
8224 wx_error_message="
8225 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8226 build with the following settings:
8227 $WXCONFIG_FLAGS
8228 but such build is not available.
8230 To see the wxWidgets builds available on this system, please use
8231 'wx-config --list' command. To use the default build, returned by
8232 'wx-config --selected-config', use the options with their 'auto'
8233 default values."
8237 wx_error_message="
8238 The requested wxWidgets build couldn't be found.
8239 $wx_error_message
8241 If you still get this error, then check that 'wx-config' is
8242 in path, the directory where wxWidgets libraries are installed
8243 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8244 or equivalent variable and wxWidgets version is 2.8.12 or above."
8246 as_fn_error "$wx_error_message" "$LINENO" 5
8249 else
8251 WX_CFLAGS=""
8252 WX_CPPFLAGS=""
8253 WX_CXXFLAGS=""
8254 WX_LIBS=""
8255 WX_RESCOMP=""
8270 WX_VERSION_MAJOR="$wx_config_major_version"
8271 WX_VERSION_MINOR="$wx_config_minor_version"
8275 if test "$wxWin" != 1; then :
8276 as_fn_error "
8277 wxWidgets must be installed on your system but wx-config
8278 script couldn't be found. Please check that wx-config is
8279 in path or specified by --with-wx-config=path flag, the
8280 directory where wxWidgets libraries are installed (returned
8281 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8282 equivalent variable and wxWidgets version is 2.8.12 or above.
8283 " "$LINENO" 5
8286 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8287 as_fn_error "
8288 This version of wxWidgets is known to not work with aMule.
8289 Please upgrade to a newer version.
8290 " "$LINENO" 5
8294 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8296 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8298 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8299 echo "[dbg] Using wx-config --selected-config"
8300 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8304 if test $WX_SHARED = "1"; then
8305 STATIC=0
8306 elif test $WX_SHARED = "0"; then
8307 STATIC=1
8308 elif test $WX_SHARED = "auto"; then
8309 STATIC="auto"
8313 if test "$UNICODE" = "auto" ; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8316 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8318 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8320 if test "$WX_UNICODE" != "0"; then
8321 WX_UNICODE=1
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8325 else
8326 WX_UNICODE=0
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8331 else
8333 WX_UNICODE=$UNICODE
8337 if test "$DEBUG" = "auto" ; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8340 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8342 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8344 if test "$WX_DEBUG" != "0"; then
8345 WX_DEBUG=1
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347 $as_echo "yes" >&6; }
8349 else
8350 WX_DEBUG=0
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8355 else
8357 WX_DEBUG=$DEBUG
8361 if test "$STATIC" = "auto" ; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8364 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8366 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8368 if test "$WX_STATIC" != "0"; then
8369 WX_STATIC=1
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371 $as_echo "yes" >&6; }
8373 else
8374 WX_STATIC=0
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8379 else
8381 WX_STATIC=$STATIC
8385 if test "$WX_STATIC" != "0"; then
8386 WX_SHARED=0
8387 else
8388 WX_SHARED=1
8395 if test "$TOOLKIT" = "auto" ; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8398 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8400 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8401 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8402 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8403 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8404 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8405 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8406 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8407 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8408 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8409 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8410 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8412 WX_PORT="unknown"
8413 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8414 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8415 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8416 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8417 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8418 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8419 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8420 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8421 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8422 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8423 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8426 if test "$WX_PORT" = "unknown" ; then
8427 as_fn_error "
8428 Cannot detect the currently installed wxWidgets port !
8429 Please check your 'wx-config --cxxflags'...
8430 " "$LINENO" 5
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8434 $as_echo "$WX_PORT" >&6; }
8435 else
8437 if test -n "$TOOLKIT" ; then
8438 WX_PORT=$TOOLKIT
8439 else
8440 WX_PORT=$PORT
8446 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8447 echo "[dbg] Values of all WX_* options after final detection:"
8448 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8449 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8450 echo "[dbg] WX_SHARED: $WX_SHARED"
8451 echo "[dbg] WX_VERSION: $WX_VERSION"
8452 echo "[dbg] WX_PORT: $WX_PORT"
8455 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8456 as_fn_error "
8457 Cannot build shared library against a static build of wxWidgets !
8458 This error happens because the wxWidgets build which was selected
8459 has been detected as static while you asked to build $PACKAGE_NAME
8460 as shared library and this is not possible.
8461 Use the '--disable-shared' option to build $PACKAGE_NAME
8462 as static library or '--with-wxshared' to use wxWidgets as shared library.
8463 " "$LINENO" 5
8466 if test "$DEBUG" = "auto"; then
8467 DEBUG=$WX_DEBUG
8469 if test "$DEBUG" = "1"; then
8470 BUILD="debug"
8471 elif test "$DEBUG" = ""; then
8472 BUILD="release"
8475 if test "$UNICODE" = "auto"; then
8476 UNICODE=$WX_UNICODE
8478 if test "$SHARED" = "auto"; then
8479 SHARED=$WX_SHARED
8481 if test "$TOOLKIT" = "auto"; then
8482 TOOLKIT=$WX_PORT
8486 # We also need wxBase
8487 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8488 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8489 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8491 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8495 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8496 if test "${WX_PORT}" = base; then :
8497 as_fn_error "
8498 The selected components need a wxWidgets library with GUI,
8499 but your installation is base-only. Please install a GUI
8500 enabled version of wxWidgets and then retry.
8501 " "$LINENO" 5
8506 if test ${SYS:-unknown} = win32; then :
8507 if test -n "$ac_tool_prefix"; then
8508 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8509 set dummy ${ac_tool_prefix}windres; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_RC+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 if test -n "$RC"; then
8516 ac_cv_prog_RC="$RC" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_RC="${ac_tool_prefix}windres"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8529 done
8530 done
8531 IFS=$as_save_IFS
8535 RC=$ac_cv_prog_RC
8536 if test -n "$RC"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8538 $as_echo "$RC" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8546 if test -z "$ac_cv_prog_RC"; then
8547 ac_ct_RC=$RC
8548 # Extract the first word of "windres", so it can be a program name with args.
8549 set dummy windres; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 if test -n "$ac_ct_RC"; then
8556 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_prog_ac_ct_RC="windres"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8569 done
8570 done
8571 IFS=$as_save_IFS
8575 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8576 if test -n "$ac_ct_RC"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8578 $as_echo "$ac_ct_RC" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8584 if test "x$ac_ct_RC" = x; then
8585 RC=":"
8586 else
8587 case $cross_compiling:$ac_tool_warned in
8588 yes:)
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8591 ac_tool_warned=yes ;;
8592 esac
8593 RC=$ac_ct_RC
8595 else
8596 RC="$ac_cv_prog_RC"
8602 # Check for libupnp
8603 # Check whether --enable-upnp was given.
8604 if test "${enable_upnp+set}" = set; then :
8605 enableval=$enable_upnp;
8609 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8611 else
8612 enable_upnp=no
8616 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8619 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 case $PKG_CONFIG in
8626 [\\/]* | ?:[\\/]*)
8627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8641 done
8642 done
8643 IFS=$as_save_IFS
8646 esac
8648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8649 if test -n "$PKG_CONFIG"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8651 $as_echo "$PKG_CONFIG" >&6; }
8652 else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8659 if test -z "$ac_cv_path_PKG_CONFIG"; then
8660 ac_pt_PKG_CONFIG=$PKG_CONFIG
8661 # Extract the first word of "pkg-config", so it can be a program name with args.
8662 set dummy pkg-config; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 case $ac_pt_PKG_CONFIG in
8669 [\\/]* | ?:[\\/]*)
8670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8689 esac
8691 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8692 if test -n "$ac_pt_PKG_CONFIG"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8694 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8700 if test "x$ac_pt_PKG_CONFIG" = x; then
8701 PKG_CONFIG=""
8702 else
8703 case $cross_compiling:$ac_tool_warned in
8704 yes:)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8707 ac_tool_warned=yes ;;
8708 esac
8709 PKG_CONFIG=$ac_pt_PKG_CONFIG
8711 else
8712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8716 if test -n "$PKG_CONFIG"; then
8717 _pkg_min_version=0.9.0
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8719 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8722 $as_echo "yes" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 PKG_CONFIG=""
8730 if test ${enable_upnp:-yes} = yes; then :
8734 # Check whether --with-libupnp-prefix was given.
8735 if test "${with_libupnp_prefix+set}" = set; then :
8736 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8740 if test $cross_compiling = no; then :
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8743 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8744 if test -n "$PKG_CONFIG"; then :
8746 if $PKG_CONFIG libupnp --exists; then :
8748 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8749 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8751 result=yes
8752 resultstr=" (version $LIBUPNP_VERSION)"
8753 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8754 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8755 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8756 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8757 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8759 else
8761 result=no
8762 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8766 else
8768 result=no
8769 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8773 else
8775 result=no
8776 resultstr=" (pkg-config not found)"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8780 $as_echo "$result$resultstr" >&6; }
8781 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8783 else
8785 result=no
8786 libupnp_error="cross compiling"
8790 if test ${result:-no} = yes; then :
8791 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8792 else
8793 enable_upnp=disabled
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8795 UPnP code has been disabled because ${libupnp_error}." >&5
8796 $as_echo "$as_me: WARNING:
8797 UPnP code has been disabled because ${libupnp_error}." >&2;}
8798 _mule_warning_6=yes
8799 _mule_has_warnings=yes
8808 # Check for Crypto++
8809 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8812 # Check whether --with-crypto-prefix was given.
8813 if test "${with_crypto_prefix+set}" = set; then :
8814 withval=$with_crypto_prefix;
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8819 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8821 cryptopp_file_with_version="cryptlib.h"
8823 CRYPTOPP_STYLE="unknown"
8824 CRYPTOPP_LIB_NAME="unknown"
8825 cryptopp_includedir="unknown"
8826 CRYPTOPP_INCLUDE_PREFIX="unknown"
8827 cryptopp_libdir="unknown"
8829 if test -n "$with_crypto_prefix"; then :
8831 CRYPTOPP_PREFIX="$with_crypto_prefix"
8832 # Find the Cryptopp header in the user-provided location
8833 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8835 CRYPTOPP_STYLE="sources"
8836 CRYPTOPP_LIB_NAME="cryptopp"
8837 cryptopp_includedir=
8838 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8839 cryptopp_libdir=
8841 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8843 CRYPTOPP_STYLE="installed"
8844 CRYPTOPP_LIB_NAME="cryptopp"
8845 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8846 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8847 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8849 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8851 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8852 CRYPTOPP_STYLE="gentoo_debian"
8853 CRYPTOPP_LIB_NAME="crypto++"
8854 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8855 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8856 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8861 else
8863 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8864 # Find the Cryptopp header in system locations
8865 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8867 CRYPTOPP_STYLE="sources"
8868 CRYPTOPP_LIB_NAME="cryptopp"
8869 cryptopp_includedir=
8870 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8871 cryptopp_libdir=
8872 break
8874 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8876 CRYPTOPP_STYLE="installed"
8877 CRYPTOPP_LIB_NAME="cryptopp"
8878 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8879 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8880 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8881 break
8883 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8885 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8886 CRYPTOPP_STYLE="gentoo_debian"
8887 CRYPTOPP_LIB_NAME="crypto++"
8888 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8889 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8890 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8891 break
8895 done
8899 if test $CRYPTOPP_STYLE = "unknown"; then :
8900 result=no; resultstr=""
8901 else
8903 # Find out the crypto++ version and check against the minimum required
8904 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8905 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8906 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8907 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8909 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8911 result=yes
8912 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8913 if test -n "$cryptopp_includedir"; then :
8914 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8915 else
8916 CRYPTOPP_CPPFLAGS=
8918 if test -n "$cryptopp_libdir"; then :
8920 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8921 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8923 else
8925 CRYPTOPP_LDFLAGS=
8926 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8930 cat >>confdefs.h <<_ACEOF
8931 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8932 _ACEOF
8935 else
8937 result=no
8938 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8945 $as_echo "$result$resultstr" >&6; }
8947 if test ${result:-no} = yes; then :
8949 # Check for CryptoPP >= 5.5
8950 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8951 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8954 else
8956 as_fn_error "
8957 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8958 Please try again with --with-crypto-prefix=/my_crypto_prefix
8959 (replace /my_crypto_prefix with a valid path to your crypto++
8960 installation directory)." "$LINENO" 5
8968 # Check whether --enable-debug was given.
8969 if test "${enable_debug+set}" = set; then :
8970 enableval=$enable_debug;
8974 # Check whether --enable-profile was given.
8975 if test "${enable_profile+set}" = set; then :
8976 enableval=$enable_profile;
8980 # Check whether --enable-optimize was given.
8981 if test "${enable_optimize+set}" = set; then :
8982 enableval=$enable_optimize;
8987 if test ${enable_debug:-yes} = yes; then :
8989 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
8991 MULECFLAGS="$MULECFLAGS -g"
8992 MULECXXFLAGS="$MULECXXFLAGS -g"
8994 if test ${GCC:-no} = yes; then :
8996 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
8997 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9000 if test ${SYS:-unknown} = win32; then :
9001 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9004 else
9006 if test ${GCC:-no} = yes; then :
9008 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9009 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9015 if test ${enable_profile:-no} = yes; then :
9018 MULECFLAGS="$MULECFLAGS -pg"
9019 MULECXXFLAGS="$MULECXXFLAGS -pg"
9021 MULELDFLAGS="$MULELDFLAGS -pg"
9025 if test ${enable_optimize:-no} = yes; then :
9027 MULECFLAGS="$MULECFLAGS -O2"
9028 MULECXXFLAGS="$MULECXXFLAGS -O2"
9032 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9037 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 :
9038 ac_ext=cpp
9039 ac_cpp='$CXXCPP $CPPFLAGS'
9040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9047 if test ${GCC:-no} = yes; then :
9049 mule_backup_CXXFLAGS="$CXXFLAGS"
9050 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9053 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9059 main ()
9062 int a;
9063 short *b = (short*)&a;
9064 short c = *b;
9066 return c;
9069 return 0;
9072 _ACEOF
9073 if ac_fn_cxx_try_compile "$LINENO"; then :
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9078 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9081 $as_echo "yes" >&6; }
9082 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 CXXFLAGS="$mule_backup_CXXFLAGS"
9092 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9094 mule_backup_CPPFLAGS="$CPPFLAGS"
9095 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9098 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9103 #include <wx/wx.h>
9104 #include <wx/filefn.h>
9105 #ifndef wxHAS_LARGE_FILES
9106 #error No LargeFile support!
9107 #endif
9110 _ACEOF
9111 if ac_fn_cxx_try_cpp "$LINENO"; then :
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9114 $as_echo "yes" >&6; }
9116 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 as_fn_error "
9121 Support for large files in wxWidgets is required by aMule.
9122 To continue you must recompile wxWidgets with support for
9123 large files enabled." "$LINENO" 5
9126 rm -f conftest.err conftest.$ac_ext
9128 CPPFLAGS="$mule_backup_CPPFLAGS"
9132 # Check if the compiler is broken, wrt. exceptions.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9135 $as_echo_n "checking for exception-handling... " >&6; }
9136 if test "$cross_compiling" = yes; then :
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9139 $as_echo "undeterminable" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9141 Cross-compilation detected, so exception handling cannot be tested.
9142 Note that broken exception handling in your compiler may lead to
9143 unexpected crashes." >&5
9144 $as_echo "$as_me: WARNING:
9145 Cross-compilation detected, so exception handling cannot be tested.
9146 Note that broken exception handling in your compiler may lead to
9147 unexpected crashes." >&2;}
9148 _mule_warning_7=yes
9149 _mule_has_warnings=yes
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9158 main ()
9161 try {
9162 throw 1;
9163 } catch (int) {
9164 return 0;
9166 return 1;
9169 return 0;
9172 _ACEOF
9173 if ac_fn_cxx_try_run "$LINENO"; then :
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9176 $as_echo "yes" >&6; }
9178 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9186 conftest.$ac_objext conftest.beam conftest.$ac_ext
9192 for ac_header in typeinfo
9193 do :
9194 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9195 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_TYPEINFO 1
9198 _ACEOF
9202 done
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9205 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 #ifdef HAVE_TYPEINFO
9211 # include <typeinfo>
9212 #endif
9213 #include <cxxabi.h>
9216 main ()
9219 int status;
9220 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9221 std::type_info *ti = abi::__cxa_current_exception_type();
9224 return 0;
9227 _ACEOF
9228 if ac_fn_cxx_try_link "$LINENO"; then :
9231 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9234 $as_echo "yes" >&6; }
9236 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9246 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 :
9249 # Check whether --with-boost was given.
9250 if test "${with_boost+set}" = set; then :
9251 withval=$with_boost; with_boost=${withval:-yes}
9252 else
9253 with_boost=no
9257 if test ${with_boost:-no} != no; then :
9259 echo "$as_me: this is boost.m4 serial 16" >&5
9260 boost_save_IFS=$IFS
9261 boost_version_req=1.47
9262 IFS=.
9263 set x $boost_version_req 0 0 0
9264 IFS=$boost_save_IFS
9265 shift
9266 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9267 boost_version_req_string=$1.$2.$3
9268 # If BOOST_ROOT is set and the user has not provided a value to
9269 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9270 if test x"$BOOST_ROOT" != x; then
9271 if test x"$with_boost" = x; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9273 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9274 with_boost=$BOOST_ROOT
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9277 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9280 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9281 boost_save_CPPFLAGS=$CPPFLAGS
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9283 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9284 if test "${boost_cv_inc_path+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 boost_cv_inc_path=no
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <boost/version.hpp>
9291 #if !defined BOOST_VERSION
9292 # error BOOST_VERSION is not defined
9293 #elif BOOST_VERSION < $boost_version_req
9294 # error Boost headers version < $boost_version_req
9295 #endif
9298 main ()
9302 return 0;
9304 _ACEOF
9305 # If the user provided a value to --with-boost, use it and only it.
9306 case $with_boost in #(
9307 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9308 /usr/include C:/Boost/include;; #(
9309 *) set x "$with_boost/include" "$with_boost";;
9310 esac
9311 shift
9312 for boost_dir
9314 # Without --layout=system, Boost (or at least some versions) installs
9315 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9316 # find headers in such directories.
9318 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9319 # order followed by ${boost_dir}. The final '.' is a sentinel for
9320 # searching $boost_dir" itself. Entries are whitespace separated.
9322 # I didn't indent this loop on purpose (to avoid over-indented code)
9323 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9324 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9325 && echo .`
9326 for boost_inc in $boost_layout_system_search_list
9328 if test x"$boost_inc" != x.; then
9329 boost_inc="$boost_dir/$boost_inc"
9330 else
9331 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9333 if test x"$boost_inc" != x; then
9334 # We are going to check whether the version of Boost installed
9335 # in $boost_inc is usable by running a compilation that
9336 # #includes it. But if we pass a -I/some/path in which Boost
9337 # is not installed, the compiler will just skip this -I and
9338 # use other locations (either from CPPFLAGS, or from its list
9339 # of system include directories). As a result we would use
9340 # header installed on the machine instead of the /some/path
9341 # specified by the user. So in that precise case (trying
9342 # $boost_inc), make sure the version.hpp exists.
9344 # Use test -e as there can be symlinks.
9345 test -e "$boost_inc/boost/version.hpp" || continue
9346 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9348 if ac_fn_cxx_try_compile "$LINENO"; then :
9349 boost_cv_inc_path=yes
9350 else
9351 boost_cv_version=no
9353 rm -f core conftest.err conftest.$ac_objext
9354 if test x"$boost_cv_inc_path" = xyes; then
9355 if test x"$boost_inc" != x; then
9356 boost_cv_inc_path=$boost_inc
9358 break 2
9360 done
9361 done
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9365 $as_echo "$boost_cv_inc_path" >&6; }
9366 case $boost_cv_inc_path in #(
9368 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9370 $as_echo "$as_me: $boost_errmsg" >&6;}
9371 with_boost=disabled
9372 ;;#(
9373 yes)
9374 BOOST_CPPFLAGS=
9375 ;;#(
9377 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9379 esac
9380 if test x"$boost_cv_inc_path" != xno; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9382 $as_echo_n "checking for Boost's header version... " >&6; }
9383 if test "${boost_cv_lib_version+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <boost/version.hpp>
9389 boost-lib-version = BOOST_LIB_VERSION
9390 _ACEOF
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 tr -d '\r' |
9393 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
9394 boost_cv_lib_version=`cat conftest.i`
9396 rm -rf conftest*
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9400 $as_echo "$boost_cv_lib_version" >&6; }
9401 # e.g. "134" for 1_34_1 or "135" for 1_35
9402 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9403 case $boost_major_version in #(
9404 '' | *[!0-9]*)
9405 as_fn_error "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
9407 esac
9409 CPPFLAGS=$boost_save_CPPFLAGS
9411 if test ${with_boost:-no} != disabled; then :
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9414 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9415 if test "${boost_cv_lib_tag+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 boost_cv_lib_tag=unknown
9419 if test x$boost_cv_inc_path != xno; then
9420 # The following tests are mostly inspired by boost/config/auto_link.hpp
9421 # The list is sorted to most recent/common to oldest compiler (in order
9422 # to increase the likelihood of finding the right compiler with the
9423 # least number of compilation attempt).
9424 # Beware that some tests are sensible to the order (for instance, we must
9425 # look for MinGW before looking for GCC3).
9426 # I used one compilation test per compiler with a #error to recognize
9427 # each compiler so that it works even when cross-compiling (let me know
9428 # if you know a better approach).
9429 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9430 # como, edg, kcc, bck, mp, sw, tru, xlc
9431 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
9432 # the same defines as GCC's).
9433 for i in \
9434 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9435 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9436 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9437 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9438 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9439 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9440 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9441 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9442 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9443 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9444 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9445 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9446 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9447 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9448 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9449 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9450 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9451 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9452 "defined __BORLANDC__ @ bcb" \
9453 "defined __ICC && (defined __unix || defined ) @ il" \
9454 "defined __ICL @ iw" \
9455 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9456 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9457 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9458 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9459 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9460 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9462 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
9463 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9467 #if $boost_tag_test
9468 /* OK */
9469 #else
9470 # error $boost_tag_test
9471 #endif
9474 main ()
9478 return 0;
9480 _ACEOF
9481 if ac_fn_cxx_try_compile "$LINENO"; then :
9482 boost_cv_lib_tag=$boost_tag; break
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 done
9486 case $boost_cv_lib_tag in #(
9487 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
9488 # to "gcc41" for instance.
9489 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
9490 gcc*)
9491 boost_tag_x=
9492 case $host_os in #(
9493 darwin*)
9494 if test $boost_major_version -ge 136; then
9495 # The `x' added in r46793 of Boost.
9496 boost_tag_x=x
9497 fi;;
9498 esac
9499 # We can specify multiple tags in this variable because it's used by
9500 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
9501 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
9502 ;; #(
9503 unknown)
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
9505 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
9506 boost_cv_lib_tag=
9508 esac
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
9512 $as_echo "$boost_cv_lib_tag" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
9514 $as_echo_n "checking for Boost sources... " >&6; }
9515 mule_backup_CPPFLAGS="$CPPFLAGS"
9516 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9520 #include <boost/../libs/system/src/error_code.cpp>
9522 main ()
9526 return 0;
9529 _ACEOF
9530 if ac_fn_cxx_try_compile "$LINENO"; then :
9533 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9536 $as_echo "yes" >&6; }
9538 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 if test x"$boost_cv_inc_path" = xno; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
9544 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
9545 else
9546 if test x"$boost_cv_inc_path" = xno; then
9548 else
9549 boost_save_CPPFLAGS=$CPPFLAGS
9550 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9551 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
9552 if test "x$ac_cv_header_boost_system_error_code_hpp" = x""yes; then :
9554 else
9559 CPPFLAGS=$boost_save_CPPFLAGS
9562 boost_save_CPPFLAGS=$CPPFLAGS
9563 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9564 # Now let's try to find the library. The algorithm is as follows: first look
9565 # for a given library name according to the user's PREFERRED-RT-OPT. For each
9566 # library name, we prefer to use the ones that carry the tag (toolset name).
9567 # Each library is searched through the various standard paths were Boost is
9568 # usually installed. If we can't find the standard variants, we try to
9569 # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
9570 # but there's -obviously- libboost_threads-mt.dylib).
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
9572 $as_echo_n "checking for the Boost system library... " >&6; }
9573 if test "${boost_cv_lib_system+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 boost_cv_lib_system=no
9577 boost_rtopt=
9578 boost_mt=-mt
9579 boost_save_ac_objext=$ac_objext
9580 # Generate the test file.
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #include <boost/system/error_code.hpp>
9586 main ()
9588 boost::system::error_code e; e.clear();
9590 return 0;
9592 _ACEOF
9593 if ac_fn_cxx_try_compile "$LINENO"; then :
9594 ac_objext=do_not_rm_me_plz
9595 else
9596 as_fn_error "cannot compile a test that uses Boost system" "$LINENO" 5
9598 rm -f core conftest.err conftest.$ac_objext
9599 ac_objext=$boost_save_ac_objext
9600 boost_failed_libs=
9601 # Don't bother to ident the 6 nested for loops, only the 2 innermost ones
9602 # matter.
9603 for boost_tag_ in -$boost_cv_lib_tag ''; do
9604 for boost_ver_ in -$boost_cv_lib_version ''; do
9605 for boost_mt_ in $boost_mt -mt ''; do
9606 for boost_rtopt_ in $boost_rtopt '' -d; do
9607 for boost_lib in \
9608 boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
9609 boost_system$boost_tag_$boost_rtopt_$boost_ver_ \
9610 boost_system$boost_tag_$boost_mt_$boost_ver_ \
9611 boost_system$boost_tag_$boost_ver_
9613 # Avoid testing twice the same lib
9614 case $boost_failed_libs in #(
9615 *@$boost_lib@*) continue;;
9616 esac
9617 # If with_boost is empty, we'll search in /lib first, which is not quite
9618 # right so instead we'll try to a location based on where the headers are.
9619 boost_tmp_lib=$with_boost
9620 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
9621 for boost_ldpath in "$boost_tmp_lib/lib" '' \
9622 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
9623 "$with_boost" C:/Boost/lib /lib*
9625 test -e "$boost_ldpath" || continue
9626 boost_save_LDFLAGS=$LDFLAGS
9627 boost_cv_lib_system_LIBS="-l$boost_lib"
9628 boost_save_LIBS=$LIBS
9629 LIBS="$boost_cv_lib_system_LIBS $LIBS"
9630 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
9631 rm -f conftest$ac_exeext
9632 boost_save_ac_ext=$ac_ext
9633 boost_use_source=:
9634 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
9635 # tries to link the existing object file instead of compiling from source.
9636 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
9637 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
9638 if { { ac_try="$ac_link"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9644 $as_echo "$ac_try_echo"; } >&5
9645 (eval "$ac_link") 2>conftest.err
9646 ac_status=$?
9647 if test -s conftest.err; then
9648 grep -v '^ *+' conftest.err >conftest.er1
9649 cat conftest.er1 >&5
9650 mv -f conftest.er1 conftest.err
9652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9653 test $ac_status = 0; } && {
9654 test -z "$ac_cxx_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest$ac_exeext && {
9657 test "$cross_compiling" = yes ||
9658 $as_executable_p conftest$ac_exeext
9659 }; then :
9660 boost_cv_lib_system=yes
9661 else
9662 if $boost_use_source; then
9663 $as_echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9667 boost_cv_lib_system=no
9669 ac_objext=$boost_save_ac_objext
9670 ac_ext=$boost_save_ac_ext
9671 rm -f core conftest.err conftest_ipa8_conftest.oo \
9672 conftest$ac_exeext
9673 ac_objext=$boost_save_ac_objext
9674 LDFLAGS=$boost_save_LDFLAGS
9675 LIBS=$boost_save_LIBS
9676 if test x"$boost_cv_lib_system" = xyes; then
9677 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath"
9678 boost_cv_lib_system_LDPATH="$boost_ldpath"
9679 break 6
9680 else
9681 boost_failed_libs="$boost_failed_libs@$boost_lib@"
9682 boost_cv_lib_system_LDFLAGS=
9683 boost_cv_lib_system_LDPATH=
9684 boost_cv_lib_system_LIBS=
9686 done
9687 done
9688 done
9689 done
9690 done
9691 done
9692 rm -f conftest.$ac_objext
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
9696 $as_echo "$boost_cv_lib_system" >&6; }
9697 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
9698 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
9699 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
9700 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
9701 CPPFLAGS=$boost_save_CPPFLAGS
9706 if test ${boost_cv_lib_system:-no} != yes; then :
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9709 Boost support has been disabled because Boost.System not found" >&5
9710 $as_echo "$as_me: WARNING:
9711 Boost support has been disabled because Boost.System not found" >&2;}
9712 _mule_warning_8=yes
9713 _mule_has_warnings=yes
9715 with_boost=disabled
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 CPPFLAGS="$mule_backup_CPPFLAGS"
9722 if test x"$boost_cv_inc_path" = xno; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9725 Boost support has been disabled because Boost.Asio not found" >&5
9726 $as_echo "$as_me: WARNING:
9727 Boost support has been disabled because Boost.Asio not found" >&2;}
9728 _mule_warning_9=yes
9729 _mule_has_warnings=yes
9731 with_boost=disabled
9733 else
9734 boost_save_CPPFLAGS=$CPPFLAGS
9735 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9736 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
9737 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
9739 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
9741 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9744 Boost support has been disabled because Boost.Asio not found" >&5
9745 $as_echo "$as_me: WARNING:
9746 Boost support has been disabled because Boost.Asio not found" >&2;}
9747 _mule_warning_10=yes
9748 _mule_has_warnings=yes
9750 with_boost=disabled
9755 CPPFLAGS=$boost_save_CPPFLAGS
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9761 Boost support has been disabled because of insufficient Boost version." >&5
9762 $as_echo "$as_me: WARNING:
9763 Boost support has been disabled because of insufficient Boost version." >&2;}
9764 _mule_warning_11=yes
9765 _mule_has_warnings=yes
9772 ac_ext=c
9773 ac_cpp='$CPP $CPPFLAGS'
9774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781 # Ok, we have all needed libs, now checking for other stuff
9782 if test "$LEX" = "flex"; then :
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
9785 $as_echo_n "checking for extended flex capabilities... " >&6; }
9787 extended_flex=`flex --help | grep header-file`
9788 if test -n "$extended_flex"; then :
9789 HAVE_FLEX_EXTENDED=yes
9790 else
9791 HAVE_FLEX_EXTENDED=no
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
9794 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
9796 if test $HAVE_FLEX_EXTENDED = no; then :
9797 { $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
9798 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9801 else
9802 HAVE_FLEX_EXTENDED=no
9805 # Flush standard test results for speeding cache
9806 cat >confcache <<\_ACEOF
9807 # This file is a shell script that caches the results of configure
9808 # tests run on this system so they can be shared between configure
9809 # scripts and configure runs, see configure's option --config-cache.
9810 # It is not useful on other systems. If it contains results you don't
9811 # want to keep, you may remove or edit it.
9813 # config.status only pays attention to the cache file if you give it
9814 # the --recheck option to rerun configure.
9816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9818 # following values.
9820 _ACEOF
9822 # The following way of writing the cache mishandles newlines in values,
9823 # but we know of no workaround that is simple, portable, and efficient.
9824 # So, we kill variables containing newlines.
9825 # Ultrix sh set writes to stderr and can't be redirected directly,
9826 # and sets the high bit in the cache file unless we assign to the vars.
9828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9829 eval ac_val=\$$ac_var
9830 case $ac_val in #(
9831 *${as_nl}*)
9832 case $ac_var in #(
9833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9835 esac
9836 case $ac_var in #(
9837 _ | IFS | as_nl) ;; #(
9838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9839 *) { eval $ac_var=; unset $ac_var;} ;;
9840 esac ;;
9841 esac
9842 done
9844 (set) 2>&1 |
9845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9846 *${as_nl}ac_space=\ *)
9847 # `set' does not quote correctly, so add quotes: double-quote
9848 # substitution turns \\\\ into \\, and sed turns \\ into \.
9849 sed -n \
9850 "s/'/'\\\\''/g;
9851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9852 ;; #(
9854 # `set' quotes correctly as required by POSIX, so do not add quotes.
9855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9857 esac |
9858 sort
9860 sed '
9861 /^ac_cv_env_/b end
9862 t clear
9863 :clear
9864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9865 t end
9866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9867 :end' >>confcache
9868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9869 if test -w "$cache_file"; then
9870 test "x$cache_file" != "x/dev/null" &&
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9872 $as_echo "$as_me: updating cache $cache_file" >&6;}
9873 cat confcache >$cache_file
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9879 rm -f confcache
9881 # Checks for header files.
9882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9883 # for constant arguments. Useless!
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9885 $as_echo_n "checking for working alloca.h... " >&6; }
9886 if test "${ac_cv_working_alloca_h+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 #include <alloca.h>
9893 main ()
9895 char *p = (char *) alloca (2 * sizeof (int));
9896 if (p) return 0;
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902 ac_cv_working_alloca_h=yes
9903 else
9904 ac_cv_working_alloca_h=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9910 $as_echo "$ac_cv_working_alloca_h" >&6; }
9911 if test $ac_cv_working_alloca_h = yes; then
9913 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9918 $as_echo_n "checking for alloca... " >&6; }
9919 if test "${ac_cv_func_alloca_works+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 #ifdef __GNUC__
9925 # define alloca __builtin_alloca
9926 #else
9927 # ifdef _MSC_VER
9928 # include <malloc.h>
9929 # define alloca _alloca
9930 # else
9931 # ifdef HAVE_ALLOCA_H
9932 # include <alloca.h>
9933 # else
9934 # ifdef _AIX
9935 #pragma alloca
9936 # else
9937 # ifndef alloca /* predefined by HP cc +Olibcalls */
9938 char *alloca ();
9939 # endif
9940 # endif
9941 # endif
9942 # endif
9943 #endif
9946 main ()
9948 char *p = (char *) alloca (1);
9949 if (p) return 0;
9951 return 0;
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955 ac_cv_func_alloca_works=yes
9956 else
9957 ac_cv_func_alloca_works=no
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9963 $as_echo "$ac_cv_func_alloca_works" >&6; }
9965 if test $ac_cv_func_alloca_works = yes; then
9967 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9969 else
9970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9971 # that cause trouble. Some versions do not even contain alloca or
9972 # contain a buggy version. If you still want to use their alloca,
9973 # use ar to extract alloca.o from them instead of compiling alloca.c.
9975 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9977 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9981 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9982 if test "${ac_cv_os_cray+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 #if defined CRAY && ! defined CRAY2
9988 webecray
9989 #else
9990 wenotbecray
9991 #endif
9993 _ACEOF
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "webecray" >/dev/null 2>&1; then :
9996 ac_cv_os_cray=yes
9997 else
9998 ac_cv_os_cray=no
10000 rm -f conftest*
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10004 $as_echo "$ac_cv_os_cray" >&6; }
10005 if test $ac_cv_os_cray = yes; then
10006 for ac_func in _getb67 GETB67 getb67; do
10007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10009 eval as_val=\$$as_ac_var
10010 if test "x$as_val" = x""yes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define CRAY_STACKSEG_END $ac_func
10014 _ACEOF
10016 break
10019 done
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10023 $as_echo_n "checking stack direction for C alloca... " >&6; }
10024 if test "${ac_cv_c_stack_direction+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test "$cross_compiling" = yes; then :
10028 ac_cv_c_stack_direction=0
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 $ac_includes_default
10034 find_stack_direction ()
10036 static char *addr = 0;
10037 auto char dummy;
10038 if (addr == 0)
10040 addr = &dummy;
10041 return find_stack_direction ();
10043 else
10044 return (&dummy > addr) ? 1 : -1;
10048 main ()
10050 return find_stack_direction () < 0;
10052 _ACEOF
10053 if ac_fn_c_try_run "$LINENO"; then :
10054 ac_cv_c_stack_direction=1
10055 else
10056 ac_cv_c_stack_direction=-1
10058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10059 conftest.$ac_objext conftest.beam conftest.$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10064 $as_echo "$ac_cv_c_stack_direction" >&6; }
10065 cat >>confdefs.h <<_ACEOF
10066 #define STACK_DIRECTION $ac_cv_c_stack_direction
10067 _ACEOF
10072 ac_header_dirent=no
10073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10074 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10076 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 #include <sys/types.h>
10083 #include <$ac_hdr>
10086 main ()
10088 if ((DIR *) 0)
10089 return 0;
10091 return 0;
10093 _ACEOF
10094 if ac_fn_c_try_compile "$LINENO"; then :
10095 eval "$as_ac_Header=yes"
10096 else
10097 eval "$as_ac_Header=no"
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101 eval ac_res=\$$as_ac_Header
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10103 $as_echo "$ac_res" >&6; }
10104 eval as_val=\$$as_ac_Header
10105 if test "x$as_val" = x""yes; then :
10106 cat >>confdefs.h <<_ACEOF
10107 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10108 _ACEOF
10110 ac_header_dirent=$ac_hdr; break
10113 done
10114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10115 if test $ac_header_dirent = dirent.h; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10117 $as_echo_n "checking for library containing opendir... " >&6; }
10118 if test "${ac_cv_search_opendir+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 ac_func_search_save_LIBS=$LIBS
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 /* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 char opendir ();
10133 main ()
10135 return opendir ();
10137 return 0;
10139 _ACEOF
10140 for ac_lib in '' dir; do
10141 if test -z "$ac_lib"; then
10142 ac_res="none required"
10143 else
10144 ac_res=-l$ac_lib
10145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10147 if ac_fn_c_try_link "$LINENO"; then :
10148 ac_cv_search_opendir=$ac_res
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext
10152 if test "${ac_cv_search_opendir+set}" = set; then :
10153 break
10155 done
10156 if test "${ac_cv_search_opendir+set}" = set; then :
10158 else
10159 ac_cv_search_opendir=no
10161 rm conftest.$ac_ext
10162 LIBS=$ac_func_search_save_LIBS
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10165 $as_echo "$ac_cv_search_opendir" >&6; }
10166 ac_res=$ac_cv_search_opendir
10167 if test "$ac_res" != no; then :
10168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10174 $as_echo_n "checking for library containing opendir... " >&6; }
10175 if test "${ac_cv_search_opendir+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 ac_func_search_save_LIBS=$LIBS
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 char opendir ();
10190 main ()
10192 return opendir ();
10194 return 0;
10196 _ACEOF
10197 for ac_lib in '' x; do
10198 if test -z "$ac_lib"; then
10199 ac_res="none required"
10200 else
10201 ac_res=-l$ac_lib
10202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 ac_cv_search_opendir=$ac_res
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext
10209 if test "${ac_cv_search_opendir+set}" = set; then :
10210 break
10212 done
10213 if test "${ac_cv_search_opendir+set}" = set; then :
10215 else
10216 ac_cv_search_opendir=no
10218 rm conftest.$ac_ext
10219 LIBS=$ac_func_search_save_LIBS
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10222 $as_echo "$ac_cv_search_opendir" >&6; }
10223 ac_res=$ac_cv_search_opendir
10224 if test "$ac_res" != no; then :
10225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10232 $as_echo_n "checking for ANSI C header files... " >&6; }
10233 if test "${ac_cv_header_stdc+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10238 #include <stdlib.h>
10239 #include <stdarg.h>
10240 #include <string.h>
10241 #include <float.h>
10244 main ()
10248 return 0;
10250 _ACEOF
10251 if ac_fn_c_try_compile "$LINENO"; then :
10252 ac_cv_header_stdc=yes
10253 else
10254 ac_cv_header_stdc=no
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 if test $ac_cv_header_stdc = yes; then
10259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 #include <string.h>
10264 _ACEOF
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "memchr" >/dev/null 2>&1; then :
10268 else
10269 ac_cv_header_stdc=no
10271 rm -f conftest*
10275 if test $ac_cv_header_stdc = yes; then
10276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <stdlib.h>
10281 _ACEOF
10282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10283 $EGREP "free" >/dev/null 2>&1; then :
10285 else
10286 ac_cv_header_stdc=no
10288 rm -f conftest*
10292 if test $ac_cv_header_stdc = yes; then
10293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10294 if test "$cross_compiling" = yes; then :
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <ctype.h>
10300 #include <stdlib.h>
10301 #if ((' ' & 0x0FF) == 0x020)
10302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10304 #else
10305 # define ISLOWER(c) \
10306 (('a' <= (c) && (c) <= 'i') \
10307 || ('j' <= (c) && (c) <= 'r') \
10308 || ('s' <= (c) && (c) <= 'z'))
10309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10310 #endif
10312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10314 main ()
10316 int i;
10317 for (i = 0; i < 256; i++)
10318 if (XOR (islower (i), ISLOWER (i))
10319 || toupper (i) != TOUPPER (i))
10320 return 2;
10321 return 0;
10323 _ACEOF
10324 if ac_fn_c_try_run "$LINENO"; then :
10326 else
10327 ac_cv_header_stdc=no
10329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10330 conftest.$ac_objext conftest.beam conftest.$ac_ext
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10336 $as_echo "$ac_cv_header_stdc" >&6; }
10337 if test $ac_cv_header_stdc = yes; then
10339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10343 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
10344 do :
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10347 eval as_val=\$$as_ac_Header
10348 if test "x$as_val" = x""yes; then :
10349 cat >>confdefs.h <<_ACEOF
10350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10351 _ACEOF
10355 done
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10358 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10359 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <sys/types.h>
10365 #include <sys/wait.h>
10366 #ifndef WEXITSTATUS
10367 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10368 #endif
10369 #ifndef WIFEXITED
10370 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10371 #endif
10374 main ()
10376 int s;
10377 wait (&s);
10378 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10380 return 0;
10382 _ACEOF
10383 if ac_fn_c_try_compile "$LINENO"; then :
10384 ac_cv_header_sys_wait_h=yes
10385 else
10386 ac_cv_header_sys_wait_h=no
10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
10391 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
10392 if test $ac_cv_header_sys_wait_h = yes; then
10394 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10399 # Checks for typedefs, structures, and compiler characteristics.
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10401 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10402 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 #include <stdbool.h>
10409 #ifndef bool
10410 "error: bool is not defined"
10411 #endif
10412 #ifndef false
10413 "error: false is not defined"
10414 #endif
10415 #if false
10416 "error: false is not 0"
10417 #endif
10418 #ifndef true
10419 "error: true is not defined"
10420 #endif
10421 #if true != 1
10422 "error: true is not 1"
10423 #endif
10424 #ifndef __bool_true_false_are_defined
10425 "error: __bool_true_false_are_defined is not defined"
10426 #endif
10428 struct s { _Bool s: 1; _Bool t; } s;
10430 char a[true == 1 ? 1 : -1];
10431 char b[false == 0 ? 1 : -1];
10432 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10433 char d[(bool) 0.5 == true ? 1 : -1];
10434 bool e = &s;
10435 char f[(_Bool) 0.0 == false ? 1 : -1];
10436 char g[true];
10437 char h[sizeof (_Bool)];
10438 char i[sizeof s.t];
10439 enum { j = false, k = true, l = false * true, m = true * 256 };
10440 /* The following fails for
10441 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10442 _Bool n[m];
10443 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10444 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10445 # if defined __xlc__ || defined __GNUC__
10446 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10447 reported by James Lemley on 2005-10-05; see
10448 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10449 This test is not quite right, since xlc is allowed to
10450 reject this program, as the initializer for xlcbug is
10451 not one of the forms that C requires support for.
10452 However, doing the test right would require a runtime
10453 test, and that would make cross-compilation harder.
10454 Let us hope that IBM fixes the xlc bug, and also adds
10455 support for this kind of constant expression. In the
10456 meantime, this test will reject xlc, which is OK, since
10457 our stdbool.h substitute should suffice. We also test
10458 this with GCC, where it should work, to detect more
10459 quickly whether someone messes up the test in the
10460 future. */
10461 char digs[] = "0123456789";
10462 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10463 # endif
10464 /* Catch a bug in an HP-UX C compiler. See
10465 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10466 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10468 _Bool q = true;
10469 _Bool *pq = &q;
10472 main ()
10475 *pq |= q;
10476 *pq |= ! q;
10477 /* Refer to every declared value, to avoid compiler optimizations. */
10478 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10479 + !m + !n + !o + !p + !q + !pq);
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10486 ac_cv_header_stdbool_h=yes
10487 else
10488 ac_cv_header_stdbool_h=no
10490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10493 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10494 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10495 if test "x$ac_cv_type__Bool" = x""yes; then :
10497 cat >>confdefs.h <<_ACEOF
10498 #define HAVE__BOOL 1
10499 _ACEOF
10504 if test $ac_cv_header_stdbool_h = yes; then
10506 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10511 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10512 if test "${ac_cv_c_const+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10519 main ()
10521 /* FIXME: Include the comments suggested by Paul. */
10522 #ifndef __cplusplus
10523 /* Ultrix mips cc rejects this. */
10524 typedef int charset[2];
10525 const charset cs;
10526 /* SunOS 4.1.1 cc rejects this. */
10527 char const *const *pcpcc;
10528 char **ppc;
10529 /* NEC SVR4.0.2 mips cc rejects this. */
10530 struct point {int x, y;};
10531 static struct point const zero = {0,0};
10532 /* AIX XL C 1.02.0.0 rejects this.
10533 It does not let you subtract one const X* pointer from another in
10534 an arm of an if-expression whose if-part is not a constant
10535 expression */
10536 const char *g = "string";
10537 pcpcc = &g + (g ? g-g : 0);
10538 /* HPUX 7.0 cc rejects these. */
10539 ++pcpcc;
10540 ppc = (char**) pcpcc;
10541 pcpcc = (char const *const *) ppc;
10542 { /* SCO 3.2v4 cc rejects this. */
10543 char *t;
10544 char const *s = 0 ? (char *) 0 : (char const *) 0;
10546 *t++ = 0;
10547 if (s) return 0;
10549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10550 int x[] = {25, 17};
10551 const int *foo = &x[0];
10552 ++foo;
10554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10555 typedef const int *iptr;
10556 iptr p = 0;
10557 ++p;
10559 { /* AIX XL C 1.02.0.0 rejects this saying
10560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10561 struct s { int j; const int *ap[3]; };
10562 struct s *b; b->j = 5;
10564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10565 const int foo = 10;
10566 if (!foo) return 0;
10568 return !cs[0] && !zero.x;
10569 #endif
10572 return 0;
10574 _ACEOF
10575 if ac_fn_c_try_compile "$LINENO"; then :
10576 ac_cv_c_const=yes
10577 else
10578 ac_cv_c_const=no
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10583 $as_echo "$ac_cv_c_const" >&6; }
10584 if test $ac_cv_c_const = no; then
10586 $as_echo "#define const /**/" >>confdefs.h
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10591 $as_echo_n "checking for inline... " >&6; }
10592 if test "${ac_cv_c_inline+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 ac_cv_c_inline=no
10596 for ac_kw in inline __inline__ __inline; do
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 #ifndef __cplusplus
10600 typedef int foo_t;
10601 static $ac_kw foo_t static_foo () {return 0; }
10602 $ac_kw foo_t foo () {return 0; }
10603 #endif
10605 _ACEOF
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 ac_cv_c_inline=$ac_kw
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 test "$ac_cv_c_inline" != no && break
10611 done
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10615 $as_echo "$ac_cv_c_inline" >&6; }
10617 case $ac_cv_c_inline in
10618 inline | yes) ;;
10620 case $ac_cv_c_inline in
10621 no) ac_val=;;
10622 *) ac_val=$ac_cv_c_inline;;
10623 esac
10624 cat >>confdefs.h <<_ACEOF
10625 #ifndef __cplusplus
10626 #define inline $ac_val
10627 #endif
10628 _ACEOF
10630 esac
10632 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10633 if test "x$ac_cv_type_mode_t" = x""yes; then :
10635 else
10637 cat >>confdefs.h <<_ACEOF
10638 #define mode_t int
10639 _ACEOF
10643 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10644 if test "x$ac_cv_type_off_t" = x""yes; then :
10646 else
10648 cat >>confdefs.h <<_ACEOF
10649 #define off_t long int
10650 _ACEOF
10654 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10655 if test "x$ac_cv_type_size_t" = x""yes; then :
10657 else
10659 cat >>confdefs.h <<_ACEOF
10660 #define size_t unsigned int
10661 _ACEOF
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10666 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10667 if test "${ac_cv_header_time+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <sys/types.h>
10673 #include <sys/time.h>
10674 #include <time.h>
10677 main ()
10679 if ((struct tm *) 0)
10680 return 0;
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686 ac_cv_header_time=yes
10687 else
10688 ac_cv_header_time=no
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10693 $as_echo "$ac_cv_header_time" >&6; }
10694 if test $ac_cv_header_time = yes; then
10696 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10701 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10702 if test "${ac_cv_struct_tm+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10708 #include <time.h>
10711 main ()
10713 struct tm tm;
10714 int *p = &tm.tm_sec;
10715 return !p;
10717 return 0;
10719 _ACEOF
10720 if ac_fn_c_try_compile "$LINENO"; then :
10721 ac_cv_struct_tm=time.h
10722 else
10723 ac_cv_struct_tm=sys/time.h
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10728 $as_echo "$ac_cv_struct_tm" >&6; }
10729 if test $ac_cv_struct_tm = sys/time.h; then
10731 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10736 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10737 if test "${ac_cv_type_uid_t+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <sys/types.h>
10744 _ACEOF
10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10746 $EGREP "uid_t" >/dev/null 2>&1; then :
10747 ac_cv_type_uid_t=yes
10748 else
10749 ac_cv_type_uid_t=no
10751 rm -f conftest*
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10755 $as_echo "$ac_cv_type_uid_t" >&6; }
10756 if test $ac_cv_type_uid_t = no; then
10758 $as_echo "#define uid_t int" >>confdefs.h
10761 $as_echo "#define gid_t int" >>confdefs.h
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10766 $as_echo_n "checking for working volatile... " >&6; }
10767 if test "${ac_cv_c_volatile+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10774 main ()
10777 volatile int x;
10778 int * volatile y = (int *) 0;
10779 return !x && !y;
10781 return 0;
10783 _ACEOF
10784 if ac_fn_c_try_compile "$LINENO"; then :
10785 ac_cv_c_volatile=yes
10786 else
10787 ac_cv_c_volatile=no
10789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10792 $as_echo "$ac_cv_c_volatile" >&6; }
10793 if test $ac_cv_c_volatile = no; then
10795 $as_echo "#define volatile /**/" >>confdefs.h
10799 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10800 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
10802 cat >>confdefs.h <<_ACEOF
10803 #define HAVE_PTRDIFF_T 1
10804 _ACEOF
10810 # Checks for library functions.
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10812 $as_echo_n "checking whether closedir returns void... " >&6; }
10813 if test "${ac_cv_func_closedir_void+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 if test "$cross_compiling" = yes; then :
10817 ac_cv_func_closedir_void=yes
10818 else
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 #include <$ac_header_dirent>
10823 #ifndef __cplusplus
10824 int closedir ();
10825 #endif
10828 main ()
10830 return closedir (opendir (".")) != 0;
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_run "$LINENO"; then :
10836 ac_cv_func_closedir_void=no
10837 else
10838 ac_cv_func_closedir_void=yes
10840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10841 conftest.$ac_objext conftest.beam conftest.$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10846 $as_echo "$ac_cv_func_closedir_void" >&6; }
10847 if test $ac_cv_func_closedir_void = yes; then
10849 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10853 if test $ac_cv_c_compiler_gnu = yes; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10855 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10856 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_pattern="Autoconf.*'x'"
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 #include <sgtty.h>
10863 Autoconf TIOCGETP
10864 _ACEOF
10865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10867 ac_cv_prog_gcc_traditional=yes
10868 else
10869 ac_cv_prog_gcc_traditional=no
10871 rm -f conftest*
10874 if test $ac_cv_prog_gcc_traditional = no; then
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <termio.h>
10878 Autoconf TCGETA
10879 _ACEOF
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10882 ac_cv_prog_gcc_traditional=yes
10884 rm -f conftest*
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10889 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10890 if test $ac_cv_prog_gcc_traditional = yes; then
10891 CC="$CC -traditional"
10895 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10896 if test "x$ac_cv_type_pid_t" = x""yes; then :
10898 else
10900 cat >>confdefs.h <<_ACEOF
10901 #define pid_t int
10902 _ACEOF
10906 for ac_header in vfork.h
10907 do :
10908 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10909 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10910 cat >>confdefs.h <<_ACEOF
10911 #define HAVE_VFORK_H 1
10912 _ACEOF
10916 done
10918 for ac_func in fork vfork
10919 do :
10920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10922 eval as_val=\$$as_ac_var
10923 if test "x$as_val" = x""yes; then :
10924 cat >>confdefs.h <<_ACEOF
10925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10929 done
10931 if test "x$ac_cv_func_fork" = xyes; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10933 $as_echo_n "checking for working fork... " >&6; }
10934 if test "${ac_cv_func_fork_works+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 if test "$cross_compiling" = yes; then :
10938 ac_cv_func_fork_works=cross
10939 else
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 $ac_includes_default
10944 main ()
10947 /* By Ruediger Kuhlmann. */
10948 return fork () < 0;
10951 return 0;
10953 _ACEOF
10954 if ac_fn_c_try_run "$LINENO"; then :
10955 ac_cv_func_fork_works=yes
10956 else
10957 ac_cv_func_fork_works=no
10959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10960 conftest.$ac_objext conftest.beam conftest.$ac_ext
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10965 $as_echo "$ac_cv_func_fork_works" >&6; }
10967 else
10968 ac_cv_func_fork_works=$ac_cv_func_fork
10970 if test "x$ac_cv_func_fork_works" = xcross; then
10971 case $host in
10972 *-*-amigaos* | *-*-msdosdjgpp*)
10973 # Override, as these systems have only a dummy fork() stub
10974 ac_cv_func_fork_works=no
10977 ac_cv_func_fork_works=yes
10979 esac
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10981 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10983 ac_cv_func_vfork_works=$ac_cv_func_vfork
10984 if test "x$ac_cv_func_vfork" = xyes; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10986 $as_echo_n "checking for working vfork... " >&6; }
10987 if test "${ac_cv_func_vfork_works+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test "$cross_compiling" = yes; then :
10991 ac_cv_func_vfork_works=cross
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 /* Thanks to Paul Eggert for this test. */
10996 $ac_includes_default
10997 #include <sys/wait.h>
10998 #ifdef HAVE_VFORK_H
10999 # include <vfork.h>
11000 #endif
11001 /* On some sparc systems, changes by the child to local and incoming
11002 argument registers are propagated back to the parent. The compiler
11003 is told about this with #include <vfork.h>, but some compilers
11004 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11005 static variable whose address is put into a register that is
11006 clobbered by the vfork. */
11007 static void
11008 #ifdef __cplusplus
11009 sparc_address_test (int arg)
11010 # else
11011 sparc_address_test (arg) int arg;
11012 #endif
11014 static pid_t child;
11015 if (!child) {
11016 child = vfork ();
11017 if (child < 0) {
11018 perror ("vfork");
11019 _exit(2);
11021 if (!child) {
11022 arg = getpid();
11023 write(-1, "", 0);
11024 _exit (arg);
11030 main ()
11032 pid_t parent = getpid ();
11033 pid_t child;
11035 sparc_address_test (0);
11037 child = vfork ();
11039 if (child == 0) {
11040 /* Here is another test for sparc vfork register problems. This
11041 test uses lots of local variables, at least as many local
11042 variables as main has allocated so far including compiler
11043 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11044 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11045 reuse the register of parent for one of the local variables,
11046 since it will think that parent can't possibly be used any more
11047 in this routine. Assigning to the local variable will thus
11048 munge parent in the parent process. */
11049 pid_t
11050 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11051 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11052 /* Convince the compiler that p..p7 are live; otherwise, it might
11053 use the same hardware register for all 8 local variables. */
11054 if (p != p1 || p != p2 || p != p3 || p != p4
11055 || p != p5 || p != p6 || p != p7)
11056 _exit(1);
11058 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11059 from child file descriptors. If the child closes a descriptor
11060 before it execs or exits, this munges the parent's descriptor
11061 as well. Test for this by closing stdout in the child. */
11062 _exit(close(fileno(stdout)) != 0);
11063 } else {
11064 int status;
11065 struct stat st;
11067 while (wait(&status) != child)
11069 return (
11070 /* Was there some problem with vforking? */
11071 child < 0
11073 /* Did the child fail? (This shouldn't happen.) */
11074 || status
11076 /* Did the vfork/compiler bug occur? */
11077 || parent != getpid()
11079 /* Did the file descriptor bug occur? */
11080 || fstat(fileno(stdout), &st) != 0
11084 _ACEOF
11085 if ac_fn_c_try_run "$LINENO"; then :
11086 ac_cv_func_vfork_works=yes
11087 else
11088 ac_cv_func_vfork_works=no
11090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11091 conftest.$ac_objext conftest.beam conftest.$ac_ext
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11096 $as_echo "$ac_cv_func_vfork_works" >&6; }
11099 if test "x$ac_cv_func_fork_works" = xcross; then
11100 ac_cv_func_vfork_works=$ac_cv_func_vfork
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11102 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11105 if test "x$ac_cv_func_vfork_works" = xyes; then
11107 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11109 else
11111 $as_echo "#define vfork fork" >>confdefs.h
11114 if test "x$ac_cv_func_fork_works" = xyes; then
11116 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11121 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11122 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 rm -f conftest.sym conftest.file
11126 echo >conftest.file
11127 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11128 if test "$cross_compiling" = yes; then :
11129 ac_cv_func_lstat_dereferences_slashed_symlink=no
11130 else
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11133 $ac_includes_default
11135 main ()
11137 struct stat sbuf;
11138 /* Linux will dereference the symlink and fail, as required by POSIX.
11139 That is better in the sense that it means we will not
11140 have to compile and use the lstat wrapper. */
11141 return lstat ("conftest.sym/", &sbuf) == 0;
11143 return 0;
11145 _ACEOF
11146 if ac_fn_c_try_run "$LINENO"; then :
11147 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11148 else
11149 ac_cv_func_lstat_dereferences_slashed_symlink=no
11151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11152 conftest.$ac_objext conftest.beam conftest.$ac_ext
11155 else
11156 # If the `ln -s' command failed, then we probably don't even
11157 # have an lstat function.
11158 ac_cv_func_lstat_dereferences_slashed_symlink=no
11160 rm -f conftest.sym conftest.file
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11164 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11166 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11168 cat >>confdefs.h <<_ACEOF
11169 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11170 _ACEOF
11173 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11174 case " $LIBOBJS " in
11175 *" lstat.$ac_objext "* ) ;;
11176 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11178 esac
11182 if test x$SYS != xwin32; then :
11184 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11185 # -lseq on Dynix/PTX, -lgen on Unixware.
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11187 $as_echo_n "checking for library containing getmntent... " >&6; }
11188 if test "${ac_cv_search_getmntent+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_func_search_save_LIBS=$LIBS
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char getmntent ();
11203 main ()
11205 return getmntent ();
11207 return 0;
11209 _ACEOF
11210 for ac_lib in '' sun seq gen; do
11211 if test -z "$ac_lib"; then
11212 ac_res="none required"
11213 else
11214 ac_res=-l$ac_lib
11215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11217 if ac_fn_c_try_link "$LINENO"; then :
11218 ac_cv_search_getmntent=$ac_res
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext
11222 if test "${ac_cv_search_getmntent+set}" = set; then :
11223 break
11225 done
11226 if test "${ac_cv_search_getmntent+set}" = set; then :
11228 else
11229 ac_cv_search_getmntent=no
11231 rm conftest.$ac_ext
11232 LIBS=$ac_func_search_save_LIBS
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11235 $as_echo "$ac_cv_search_getmntent" >&6; }
11236 ac_res=$ac_cv_search_getmntent
11237 if test "$ac_res" != no; then :
11238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11239 ac_cv_func_getmntent=yes
11241 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11243 else
11244 ac_cv_func_getmntent=no
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11249 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11250 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test "$cross_compiling" = yes; then :
11254 ac_cv_func_lstat_empty_string_bug=yes
11255 else
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258 $ac_includes_default
11260 main ()
11262 struct stat sbuf;
11263 return lstat ("", &sbuf) == 0;
11265 return 0;
11267 _ACEOF
11268 if ac_fn_c_try_run "$LINENO"; then :
11269 ac_cv_func_lstat_empty_string_bug=no
11270 else
11271 ac_cv_func_lstat_empty_string_bug=yes
11273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11274 conftest.$ac_objext conftest.beam conftest.$ac_ext
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11279 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11280 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11281 case " $LIBOBJS " in
11282 *" lstat.$ac_objext "* ) ;;
11283 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11285 esac
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11290 _ACEOF
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11295 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11296 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 rm -f conftest.sym conftest.file
11300 echo >conftest.file
11301 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11302 if test "$cross_compiling" = yes; then :
11303 ac_cv_func_lstat_dereferences_slashed_symlink=no
11304 else
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 $ac_includes_default
11309 main ()
11311 struct stat sbuf;
11312 /* Linux will dereference the symlink and fail, as required by POSIX.
11313 That is better in the sense that it means we will not
11314 have to compile and use the lstat wrapper. */
11315 return lstat ("conftest.sym/", &sbuf) == 0;
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_run "$LINENO"; then :
11321 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11322 else
11323 ac_cv_func_lstat_dereferences_slashed_symlink=no
11325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11326 conftest.$ac_objext conftest.beam conftest.$ac_ext
11329 else
11330 # If the `ln -s' command failed, then we probably don't even
11331 # have an lstat function.
11332 ac_cv_func_lstat_dereferences_slashed_symlink=no
11334 rm -f conftest.sym conftest.file
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11338 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11340 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11342 cat >>confdefs.h <<_ACEOF
11343 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11344 _ACEOF
11347 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11348 case " $LIBOBJS " in
11349 *" lstat.$ac_objext "* ) ;;
11350 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11352 esac
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11359 $as_echo_n "checking for working memcmp... " >&6; }
11360 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 if test "$cross_compiling" = yes; then :
11364 ac_cv_func_memcmp_working=no
11365 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 $ac_includes_default
11370 main ()
11373 /* Some versions of memcmp are not 8-bit clean. */
11374 char c0 = '\100', c1 = '\200', c2 = '\201';
11375 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11376 return 1;
11378 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11379 or more and with at least one buffer not starting on a 4-byte boundary.
11380 William Lewis provided this test program. */
11382 char foo[21];
11383 char bar[21];
11384 int i;
11385 for (i = 0; i < 4; i++)
11387 char *a = foo + i;
11388 char *b = bar + i;
11389 strcpy (a, "--------01111111");
11390 strcpy (b, "--------10000000");
11391 if (memcmp (a, b, 16) >= 0)
11392 return 1;
11394 return 0;
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_run "$LINENO"; then :
11402 ac_cv_func_memcmp_working=yes
11403 else
11404 ac_cv_func_memcmp_working=no
11406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11407 conftest.$ac_objext conftest.beam conftest.$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11412 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11413 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11414 *" memcmp.$ac_objext "* ) ;;
11415 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11417 esac
11420 for ac_header in sys/select.h sys/socket.h
11421 do :
11422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11424 eval as_val=\$$as_ac_Header
11425 if test "x$as_val" = x""yes; then :
11426 cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11432 done
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11435 $as_echo_n "checking types of arguments for select... " >&6; }
11436 if test "${ac_cv_func_select_args+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11440 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11441 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 $ac_includes_default
11445 #ifdef HAVE_SYS_SELECT_H
11446 # include <sys/select.h>
11447 #endif
11448 #ifdef HAVE_SYS_SOCKET_H
11449 # include <sys/socket.h>
11450 #endif
11453 main ()
11455 extern int select ($ac_arg1,
11456 $ac_arg234, $ac_arg234, $ac_arg234,
11457 $ac_arg5);
11459 return 0;
11461 _ACEOF
11462 if ac_fn_c_try_compile "$LINENO"; then :
11463 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 done
11467 done
11468 done
11469 # Provide a safe default value.
11470 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11474 $as_echo "$ac_cv_func_select_args" >&6; }
11475 ac_save_IFS=$IFS; IFS=','
11476 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11477 IFS=$ac_save_IFS
11478 shift
11480 cat >>confdefs.h <<_ACEOF
11481 #define SELECT_TYPE_ARG1 $1
11482 _ACEOF
11485 cat >>confdefs.h <<_ACEOF
11486 #define SELECT_TYPE_ARG234 ($2)
11487 _ACEOF
11490 cat >>confdefs.h <<_ACEOF
11491 #define SELECT_TYPE_ARG5 ($3)
11492 _ACEOF
11494 rm -f conftest*
11496 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_cv_func_setvbuf_reversed=no
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11504 $as_echo_n "checking return type of signal handlers... " >&6; }
11505 if test "${ac_cv_type_signal+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <sys/types.h>
11511 #include <signal.h>
11514 main ()
11516 return *(signal (0, 0)) (0) == 1;
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"; then :
11522 ac_cv_type_signal=int
11523 else
11524 ac_cv_type_signal=void
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11529 $as_echo "$ac_cv_type_signal" >&6; }
11531 cat >>confdefs.h <<_ACEOF
11532 #define RETSIGTYPE $ac_cv_type_signal
11533 _ACEOF
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11537 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11538 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test "$cross_compiling" = yes; then :
11542 ac_cv_func_stat_empty_string_bug=yes
11543 else
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 $ac_includes_default
11548 main ()
11550 struct stat sbuf;
11551 return stat ("", &sbuf) == 0;
11553 return 0;
11555 _ACEOF
11556 if ac_fn_c_try_run "$LINENO"; then :
11557 ac_cv_func_stat_empty_string_bug=no
11558 else
11559 ac_cv_func_stat_empty_string_bug=yes
11561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11562 conftest.$ac_objext conftest.beam conftest.$ac_ext
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11567 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11568 if test $ac_cv_func_stat_empty_string_bug = yes; then
11569 case " $LIBOBJS " in
11570 *" stat.$ac_objext "* ) ;;
11571 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11573 esac
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_STAT_EMPTY_STRING_BUG 1
11578 _ACEOF
11582 for ac_func in strftime
11583 do :
11584 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11585 if test "x$ac_cv_func_strftime" = x""yes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_STRFTIME 1
11588 _ACEOF
11590 else
11591 # strftime is in -lintl on SCO UNIX.
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11593 $as_echo_n "checking for strftime in -lintl... " >&6; }
11594 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-lintl $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char strftime ();
11610 main ()
11612 return strftime ();
11614 return 0;
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_lib_intl_strftime=yes
11619 else
11620 ac_cv_lib_intl_strftime=no
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11627 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11628 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11629 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11631 LIBS="-lintl $LIBS"
11635 done
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11638 $as_echo_n "checking for working strtod... " >&6; }
11639 if test "${ac_cv_func_strtod+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test "$cross_compiling" = yes; then :
11643 ac_cv_func_strtod=no
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11648 $ac_includes_default
11649 #ifndef strtod
11650 double strtod ();
11651 #endif
11653 main()
11656 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11657 char *string = " +69";
11658 char *term;
11659 double value;
11660 value = strtod (string, &term);
11661 if (value != 69 || term != (string + 4))
11662 return 1;
11666 /* Under Solaris 2.4, strtod returns the wrong value for the
11667 terminating character under some conditions. */
11668 char *string = "NaN";
11669 char *term;
11670 strtod (string, &term);
11671 if (term != string && *(term - 1) == 0)
11672 return 1;
11674 return 0;
11677 _ACEOF
11678 if ac_fn_c_try_run "$LINENO"; then :
11679 ac_cv_func_strtod=yes
11680 else
11681 ac_cv_func_strtod=no
11683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11684 conftest.$ac_objext conftest.beam conftest.$ac_ext
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11689 $as_echo "$ac_cv_func_strtod" >&6; }
11690 if test $ac_cv_func_strtod = no; then
11691 case " $LIBOBJS " in
11692 *" strtod.$ac_objext "* ) ;;
11693 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11695 esac
11697 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11698 if test "x$ac_cv_func_pow" = x""yes; then :
11702 if test $ac_cv_func_pow = no; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11704 $as_echo_n "checking for pow in -lm... " >&6; }
11705 if test "${ac_cv_lib_m_pow+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lm $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char pow ();
11721 main ()
11723 return pow ();
11725 return 0;
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_m_pow=yes
11730 else
11731 ac_cv_lib_m_pow=no
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11738 $as_echo "$ac_cv_lib_m_pow" >&6; }
11739 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11740 POW_LIB=-lm
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11743 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11750 for ac_func in vprintf
11751 do :
11752 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11753 if test "x$ac_cv_func_vprintf" = x""yes; then :
11754 cat >>confdefs.h <<_ACEOF
11755 #define HAVE_VPRINTF 1
11756 _ACEOF
11758 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11759 if test "x$ac_cv_func__doprnt" = x""yes; then :
11761 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11766 done
11769 if test $cross_compiling = yes -a $gnumalloc = yes; then :
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11772 configure cannot check whether malloc() and realloc() are GNU libc
11773 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11774 run configure with the --without-gnu-malloc switch." >&5
11775 $as_echo "$as_me: WARNING:
11776 configure cannot check whether malloc() and realloc() are GNU libc
11777 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11778 run configure with the --without-gnu-malloc switch." >&2;}
11779 _mule_warning_12=yes
11780 _mule_has_warnings=yes
11782 ac_cv_func_malloc_0_nonnull=yes
11783 ac_cv_func_realloc_0_nonnull=yes
11786 for ac_header in stdlib.h
11787 do :
11788 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11789 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11790 cat >>confdefs.h <<_ACEOF
11791 #define HAVE_STDLIB_H 1
11792 _ACEOF
11796 done
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11799 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11800 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 if test "$cross_compiling" = yes; then :
11804 ac_cv_func_malloc_0_nonnull=no
11805 else
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11809 # include <stdlib.h>
11810 #else
11811 char *malloc ();
11812 #endif
11815 main ()
11817 return ! malloc (0);
11819 return 0;
11821 _ACEOF
11822 if ac_fn_c_try_run "$LINENO"; then :
11823 ac_cv_func_malloc_0_nonnull=yes
11824 else
11825 ac_cv_func_malloc_0_nonnull=no
11827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11828 conftest.$ac_objext conftest.beam conftest.$ac_ext
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11833 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11834 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11836 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11838 else
11839 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11841 case " $LIBOBJS " in
11842 *" malloc.$ac_objext "* ) ;;
11843 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11845 esac
11848 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11853 for ac_header in stdlib.h
11854 do :
11855 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11856 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11857 cat >>confdefs.h <<_ACEOF
11858 #define HAVE_STDLIB_H 1
11859 _ACEOF
11863 done
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11866 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11867 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test "$cross_compiling" = yes; then :
11871 ac_cv_func_realloc_0_nonnull=no
11872 else
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11876 # include <stdlib.h>
11877 #else
11878 char *realloc ();
11879 #endif
11882 main ()
11884 return ! realloc (0, 0);
11886 return 0;
11888 _ACEOF
11889 if ac_fn_c_try_run "$LINENO"; then :
11890 ac_cv_func_realloc_0_nonnull=yes
11891 else
11892 ac_cv_func_realloc_0_nonnull=no
11894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11895 conftest.$ac_objext conftest.beam conftest.$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11900 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11901 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11903 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11905 else
11906 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11908 case " $LIBOBJS " in
11909 *" realloc.$ac_objext "* ) ;;
11910 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11912 esac
11915 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11920 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11921 do :
11922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11924 eval as_val=\$$as_ac_var
11925 if test "x$as_val" = x""yes; then :
11926 cat >>confdefs.h <<_ACEOF
11927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11931 done
11933 #-------------------------------------------------------------------------------
11934 # End of autoscan stuff
11935 #-------------------------------------------------------------------------------
11937 for ac_func in mkdir getrlimit setrlimit getopt_long
11938 do :
11939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11941 eval as_val=\$$as_ac_var
11942 if test "x$as_val" = x""yes; then :
11943 cat >>confdefs.h <<_ACEOF
11944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 _ACEOF
11948 done
11954 for ac_header in $ac_header_list
11955 do :
11956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11959 eval as_val=\$$as_ac_Header
11960 if test "x$as_val" = x""yes; then :
11961 cat >>confdefs.h <<_ACEOF
11962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 _ACEOF
11967 done
11975 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11977 # Check whether --enable-mmap was given.
11978 if test "${enable_mmap+set}" = set; then :
11979 enableval=$enable_mmap;
11984 if test ${enable_mmap:-no} = yes; then :
11986 for ac_header in sys/mman.h
11987 do :
11988 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11989 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11990 cat >>confdefs.h <<_ACEOF
11991 #define HAVE_SYS_MMAN_H 1
11992 _ACEOF
11996 done
11999 for ac_func in getpagesize
12000 do :
12001 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12002 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12003 cat >>confdefs.h <<_ACEOF
12004 #define HAVE_GETPAGESIZE 1
12005 _ACEOF
12008 done
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12011 $as_echo_n "checking for working mmap... " >&6; }
12012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test "$cross_compiling" = yes; then :
12016 ac_cv_func_mmap_fixed_mapped=no
12017 else
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 $ac_includes_default
12021 /* malloc might have been renamed as rpl_malloc. */
12022 #undef malloc
12024 /* Thanks to Mike Haertel and Jim Avera for this test.
12025 Here is a matrix of mmap possibilities:
12026 mmap private not fixed
12027 mmap private fixed at somewhere currently unmapped
12028 mmap private fixed at somewhere already mapped
12029 mmap shared not fixed
12030 mmap shared fixed at somewhere currently unmapped
12031 mmap shared fixed at somewhere already mapped
12032 For private mappings, we should verify that changes cannot be read()
12033 back from the file, nor mmap's back from the file at a different
12034 address. (There have been systems where private was not correctly
12035 implemented like the infamous i386 svr4.0, and systems where the
12036 VM page cache was not coherent with the file system buffer cache
12037 like early versions of FreeBSD and possibly contemporary NetBSD.)
12038 For shared mappings, we should conversely verify that changes get
12039 propagated back to all the places they're supposed to be.
12041 Grep wants private fixed already mapped.
12042 The main things grep needs to know about mmap are:
12043 * does it exist and is it safe to write into the mmap'd area
12044 * how to use it (BSD variants) */
12046 #include <fcntl.h>
12047 #include <sys/mman.h>
12049 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12050 char *malloc ();
12051 #endif
12053 /* This mess was copied from the GNU getpagesize.h. */
12054 #ifndef HAVE_GETPAGESIZE
12055 # ifdef _SC_PAGESIZE
12056 # define getpagesize() sysconf(_SC_PAGESIZE)
12057 # else /* no _SC_PAGESIZE */
12058 # ifdef HAVE_SYS_PARAM_H
12059 # include <sys/param.h>
12060 # ifdef EXEC_PAGESIZE
12061 # define getpagesize() EXEC_PAGESIZE
12062 # else /* no EXEC_PAGESIZE */
12063 # ifdef NBPG
12064 # define getpagesize() NBPG * CLSIZE
12065 # ifndef CLSIZE
12066 # define CLSIZE 1
12067 # endif /* no CLSIZE */
12068 # else /* no NBPG */
12069 # ifdef NBPC
12070 # define getpagesize() NBPC
12071 # else /* no NBPC */
12072 # ifdef PAGESIZE
12073 # define getpagesize() PAGESIZE
12074 # endif /* PAGESIZE */
12075 # endif /* no NBPC */
12076 # endif /* no NBPG */
12077 # endif /* no EXEC_PAGESIZE */
12078 # else /* no HAVE_SYS_PARAM_H */
12079 # define getpagesize() 8192 /* punt totally */
12080 # endif /* no HAVE_SYS_PARAM_H */
12081 # endif /* no _SC_PAGESIZE */
12083 #endif /* no HAVE_GETPAGESIZE */
12086 main ()
12088 char *data, *data2, *data3;
12089 int i, pagesize;
12090 int fd, fd2;
12092 pagesize = getpagesize ();
12094 /* First, make a file with some known garbage in it. */
12095 data = (char *) malloc (pagesize);
12096 if (!data)
12097 return 1;
12098 for (i = 0; i < pagesize; ++i)
12099 *(data + i) = rand ();
12100 umask (0);
12101 fd = creat ("conftest.mmap", 0600);
12102 if (fd < 0)
12103 return 2;
12104 if (write (fd, data, pagesize) != pagesize)
12105 return 3;
12106 close (fd);
12108 /* Next, check that the tail of a page is zero-filled. File must have
12109 non-zero length, otherwise we risk SIGBUS for entire page. */
12110 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12111 if (fd2 < 0)
12112 return 4;
12113 data2 = "";
12114 if (write (fd2, data2, 1) != 1)
12115 return 5;
12116 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12117 if (data2 == MAP_FAILED)
12118 return 6;
12119 for (i = 0; i < pagesize; ++i)
12120 if (*(data2 + i))
12121 return 7;
12122 close (fd2);
12123 if (munmap (data2, pagesize))
12124 return 8;
12126 /* Next, try to mmap the file at a fixed address which already has
12127 something else allocated at it. If we can, also make sure that
12128 we see the same garbage. */
12129 fd = open ("conftest.mmap", O_RDWR);
12130 if (fd < 0)
12131 return 9;
12132 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12133 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12134 return 10;
12135 for (i = 0; i < pagesize; ++i)
12136 if (*(data + i) != *(data2 + i))
12137 return 11;
12139 /* Finally, make sure that changes to the mapped area do not
12140 percolate back to the file as seen by read(). (This is a bug on
12141 some variants of i386 svr4.0.) */
12142 for (i = 0; i < pagesize; ++i)
12143 *(data2 + i) = *(data2 + i) + 1;
12144 data3 = (char *) malloc (pagesize);
12145 if (!data3)
12146 return 12;
12147 if (read (fd, data3, pagesize) != pagesize)
12148 return 13;
12149 for (i = 0; i < pagesize; ++i)
12150 if (*(data + i) != *(data3 + i))
12151 return 14;
12152 close (fd);
12153 return 0;
12155 _ACEOF
12156 if ac_fn_c_try_run "$LINENO"; then :
12157 ac_cv_func_mmap_fixed_mapped=yes
12158 else
12159 ac_cv_func_mmap_fixed_mapped=no
12161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12162 conftest.$ac_objext conftest.beam conftest.$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12167 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12168 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12170 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12173 rm -f conftest.mmap conftest.txt
12175 for ac_func in munmap sysconf
12176 do :
12177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12179 eval as_val=\$$as_ac_var
12180 if test "x$as_val" = x""yes; then :
12181 cat >>confdefs.h <<_ACEOF
12182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 _ACEOF
12186 done
12188 if test $ac_cv_func_sysconf = yes; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12191 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12196 #include <unistd.h>
12199 main ()
12202 return sysconf(_SC_PAGESIZE);
12205 return 0;
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"; then :
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12212 $as_echo "_SC_PAGESIZE" >&6; }
12214 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12217 else
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12223 #include <unistd.h>
12226 main ()
12229 return sysconf(_SC_PAGE_SIZE);
12232 return 0;
12235 _ACEOF
12236 if ac_fn_c_try_link "$LINENO"; then :
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12239 $as_echo "_SC_PAGE_SIZE" >&6; }
12241 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12244 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12247 $as_echo "none" >&6; }
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12259 else
12261 # fake the result of the test for munmap() for the gettext macros
12262 ac_cv_func_munmap=no
12268 mule_backup_CPPFLAGS="$CPPFLAGS"
12269 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
12270 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12271 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
12272 ac_have_decl=1
12273 else
12274 ac_have_decl=0
12277 cat >>confdefs.h <<_ACEOF
12278 #define HAVE_DECL_STRERROR_R $ac_have_decl
12279 _ACEOF
12281 for ac_func in strerror_r
12282 do :
12283 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12284 if test "x$ac_cv_func_strerror_r" = x""yes; then :
12285 cat >>confdefs.h <<_ACEOF
12286 #define HAVE_STRERROR_R 1
12287 _ACEOF
12290 done
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12293 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12294 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12298 ac_cv_func_strerror_r_char_p=no
12299 if test $ac_cv_have_decl_strerror_r = yes; then
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 $ac_includes_default
12304 main ()
12307 char buf[100];
12308 char x = *strerror_r (0, buf, sizeof buf);
12309 char *p = strerror_r (0, buf, sizeof buf);
12310 return !p || x;
12313 return 0;
12315 _ACEOF
12316 if ac_fn_c_try_compile "$LINENO"; then :
12317 ac_cv_func_strerror_r_char_p=yes
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 else
12321 # strerror_r is not declared. Choose between
12322 # systems that have relatively inaccessible declarations for the
12323 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12324 # former has a strerror_r that returns char*, while the latter
12325 # has a strerror_r that returns `int'.
12326 # This test should segfault on the DEC system.
12327 if test "$cross_compiling" = yes; then :
12329 else
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 extern char *strerror_r ();
12335 main ()
12337 char buf[100];
12338 char x = *strerror_r (0, buf, sizeof buf);
12339 return ! isalpha (x);
12341 return 0;
12343 _ACEOF
12344 if ac_fn_c_try_run "$LINENO"; then :
12345 ac_cv_func_strerror_r_char_p=yes
12347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12348 conftest.$ac_objext conftest.beam conftest.$ac_ext
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12355 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12356 if test $ac_cv_func_strerror_r_char_p = yes; then
12358 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12362 CPPFLAGS="$mule_backup_CPPFLAGS"
12364 # Look for a way to preallocate disk space for files.
12365 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12368 $as_echo_n "checking for fallocate... " >&6; }
12369 mule_backup_CPPFLAGS="$CPPFLAGS"
12370 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12375 #define _GNU_SOURCE
12376 #ifdef HAVE_FCNTL_H
12377 # include <fcntl.h>
12378 #endif
12379 #include <linux/falloc.h>
12382 main ()
12385 fallocate(0, 0, 0, 0);
12388 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12395 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12400 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 CPPFLAGS="$mule_backup_CPPFLAGS"
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12412 $as_echo_n "checking for SYS_fallocate... " >&6; }
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12417 #include <sys/syscall.h>
12418 #include <sys/types.h>
12419 #include <unistd.h>
12422 main ()
12425 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12428 return 0;
12431 _ACEOF
12432 if ac_fn_c_try_link "$LINENO"; then :
12435 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438 $as_echo "yes" >&6; }
12440 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12450 $as_echo_n "checking for posix_fallocate... " >&6; }
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12455 #define _XOPEN_SOURCE 600
12456 #include <stdlib.h>
12457 #ifdef HAVE_FCNTL_H
12458 # include <fcntl.h>
12459 #endif
12462 main ()
12465 posix_fallocate(0, 0, 0);
12468 return 0;
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12475 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12478 $as_echo "yes" >&6; }
12480 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12491 # Checking Native Language Support
12494 MKINSTALLDIRS=
12495 if test -n "$ac_aux_dir"; then
12496 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12498 if test -z "$MKINSTALLDIRS"; then
12499 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12506 # Extract the first word of "msgfmt", so it can be a program name with args.
12507 set dummy msgfmt; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 case "$MSGFMT" in
12515 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12519 for ac_dir in $PATH; do
12520 test -z "$ac_dir" && ac_dir=.
12521 if test -f $ac_dir/$ac_word; then
12522 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12523 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12524 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12525 break
12528 done
12529 IFS="$ac_save_ifs"
12530 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12532 esac
12534 MSGFMT="$ac_cv_path_MSGFMT"
12535 if test "$MSGFMT" != ":"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12537 $as_echo "$MSGFMT" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12543 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12544 set dummy gmsgfmt; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $GMSGFMT in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12566 done
12567 done
12568 IFS=$as_save_IFS
12570 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12572 esac
12574 GMSGFMT=$ac_cv_path_GMSGFMT
12575 if test -n "$GMSGFMT"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12577 $as_echo "$GMSGFMT" >&6; }
12578 else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12585 # Extract the first word of "xgettext", so it can be a program name with args.
12586 set dummy xgettext; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case "$XGETTEXT" in
12594 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12598 for ac_dir in $PATH; do
12599 test -z "$ac_dir" && ac_dir=.
12600 if test -f $ac_dir/$ac_word; then
12601 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12602 (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
12603 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12604 break
12607 done
12608 IFS="$ac_save_ifs"
12609 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12611 esac
12613 XGETTEXT="$ac_cv_path_XGETTEXT"
12614 if test "$XGETTEXT" != ":"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12616 $as_echo "$XGETTEXT" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12622 rm -f messages.po
12624 # Extract the first word of "msgmerge", so it can be a program name with args.
12625 set dummy msgmerge; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 case "$MSGMERGE" in
12633 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12637 for ac_dir in $PATH; do
12638 test -z "$ac_dir" && ac_dir=.
12639 if test -f $ac_dir/$ac_word; then
12640 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12641 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12642 break
12645 done
12646 IFS="$ac_save_ifs"
12647 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12649 esac
12651 MSGMERGE="$ac_cv_path_MSGMERGE"
12652 if test "$MSGMERGE" != ":"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12654 $as_echo "$MSGMERGE" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12661 if test "$GMSGFMT" != ":"; then
12662 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12663 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12665 else
12666 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12668 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12669 GMSGFMT=":"
12673 if test "$XGETTEXT" != ":"; then
12674 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12675 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12679 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12680 XGETTEXT=":"
12682 rm -f messages.po
12685 ac_config_commands="$ac_config_commands default-1"
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12690 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12691 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 ac_check_lib_save_LIBS=$LIBS
12695 LIBS="-lcposix $LIBS"
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char strerror ();
12707 main ()
12709 return strerror ();
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715 ac_cv_lib_cposix_strerror=yes
12716 else
12717 ac_cv_lib_cposix_strerror=no
12719 rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12724 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12725 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12726 LIBS="$LIBS -lcposix"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12733 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12734 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 #include <features.h>
12741 #ifdef __GNU_LIBRARY__
12742 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12743 Lucky GNU user
12744 #endif
12745 #endif
12747 _ACEOF
12748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12749 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12750 ac_cv_gnu_library_2_1=yes
12751 else
12752 ac_cv_gnu_library_2_1=no
12754 rm -f conftest*
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12760 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12762 GLIBC21="$ac_cv_gnu_library_2_1"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12768 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12769 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12773 if test "$cross_compiling" = yes; then :
12775 # Guess based on the CPU.
12776 case "$host_cpu" in
12777 alpha* | i3456786 | m68k | s390*)
12778 gt_cv_int_divbyzero_sigfpe="guessing yes";;
12780 gt_cv_int_divbyzero_sigfpe="guessing no";;
12781 esac
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 #include <stdlib.h>
12788 #include <signal.h>
12790 static void
12791 #ifdef __cplusplus
12792 sigfpe_handler (int sig)
12793 #else
12794 sigfpe_handler (sig) int sig;
12795 #endif
12797 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12798 exit (sig != SIGFPE);
12801 int x = 1;
12802 int y = 0;
12803 int z;
12804 int nan;
12806 int main ()
12808 signal (SIGFPE, sigfpe_handler);
12809 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12810 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12811 signal (SIGTRAP, sigfpe_handler);
12812 #endif
12813 /* Linux/SPARC yields signal SIGILL. */
12814 #if defined (__sparc__) && defined (__linux__)
12815 signal (SIGILL, sigfpe_handler);
12816 #endif
12818 z = x / y;
12819 nan = y / y;
12820 exit (1);
12823 _ACEOF
12824 if ac_fn_c_try_run "$LINENO"; then :
12825 gt_cv_int_divbyzero_sigfpe=yes
12826 else
12827 gt_cv_int_divbyzero_sigfpe=no
12829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12830 conftest.$ac_objext conftest.beam conftest.$ac_ext
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12836 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12837 case "$gt_cv_int_divbyzero_sigfpe" in
12838 *yes) value=1;;
12839 *) value=0;;
12840 esac
12842 cat >>confdefs.h <<_ACEOF
12843 #define INTDIV0_RAISES_SIGFPE $value
12844 _ACEOF
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12849 $as_echo_n "checking for inttypes.h... " >&6; }
12850 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 #include <sys/types.h>
12856 #include <inttypes.h>
12858 main ()
12860 uintmax_t i = (uintmax_t) -1;
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 jm_ac_cv_header_inttypes_h=yes
12867 else
12868 jm_ac_cv_header_inttypes_h=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12873 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12874 if test $jm_ac_cv_header_inttypes_h = yes; then
12876 cat >>confdefs.h <<_ACEOF
12877 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12878 _ACEOF
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12884 $as_echo_n "checking for stdint.h... " >&6; }
12885 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <sys/types.h>
12891 #include <stdint.h>
12893 main ()
12895 uintmax_t i = (uintmax_t) -1;
12897 return 0;
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 jm_ac_cv_header_stdint_h=yes
12902 else
12903 jm_ac_cv_header_stdint_h=no
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12908 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12909 if test $jm_ac_cv_header_stdint_h = yes; then
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_STDINT_H_WITH_UINTMAX 1
12913 _ACEOF
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12919 $as_echo_n "checking for unsigned long long... " >&6; }
12920 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 unsigned long long ull = 1; int i = 63;
12927 main ()
12929 unsigned long long ullmax = (unsigned long long) -1;
12930 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12932 return 0;
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 ac_cv_type_unsigned_long_long=yes
12937 else
12938 ac_cv_type_unsigned_long_long=no
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12944 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12945 if test $ac_cv_type_unsigned_long_long = yes; then
12947 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12954 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12956 test $ac_cv_type_unsigned_long_long = yes \
12957 && ac_type='unsigned long long' \
12958 || ac_type='unsigned long'
12960 cat >>confdefs.h <<_ACEOF
12961 #define uintmax_t $ac_type
12962 _ACEOF
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12968 $as_echo_n "checking for inttypes.h... " >&6; }
12969 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <sys/types.h>
12976 #include <inttypes.h>
12978 main ()
12982 return 0;
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 gt_cv_header_inttypes_h=yes
12987 else
12988 gt_cv_header_inttypes_h=no
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12994 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12995 if test $gt_cv_header_inttypes_h = yes; then
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_INTTYPES_H 1
12999 _ACEOF
13005 if test $gt_cv_header_inttypes_h = yes; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13007 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13008 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <inttypes.h>
13015 #ifdef PRId32
13016 char *p = PRId32;
13017 #endif
13020 main ()
13024 return 0;
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 gt_cv_inttypes_pri_broken=no
13029 else
13030 gt_cv_inttypes_pri_broken=yes
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13036 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13038 if test "$gt_cv_inttypes_pri_broken" = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define PRI_MACROS_BROKEN 1
13042 _ACEOF
13047 if test "X$prefix" = "XNONE"; then
13048 acl_final_prefix="$ac_default_prefix"
13049 else
13050 acl_final_prefix="$prefix"
13052 if test "X$exec_prefix" = "XNONE"; then
13053 acl_final_exec_prefix='${prefix}'
13054 else
13055 acl_final_exec_prefix="$exec_prefix"
13057 acl_save_prefix="$prefix"
13058 prefix="$acl_final_prefix"
13059 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13060 prefix="$acl_save_prefix"
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then :
13065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13066 else
13067 with_gnu_ld=no
13070 ac_prog=ld
13071 if test "$GCC" = yes; then
13072 # Check if gcc -print-prog-name=ld gives a path.
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13074 $as_echo_n "checking for ld used by GCC... " >&6; }
13075 case $host in
13076 *-*-mingw*)
13077 # gcc leaves a trailing carriage return which upsets mingw
13078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081 esac
13082 case $ac_prog in
13083 # Accept absolute paths.
13084 [\\/]* | [A-Za-z]:[\\/]*)
13085 re_direlt='/[^/][^/]*/\.\./'
13086 # Canonicalize the path of ld
13087 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13088 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13089 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13090 done
13091 test -z "$LD" && LD="$ac_prog"
13094 # If it fails, then pretend we aren't using GCC.
13095 ac_prog=ld
13098 # If it is relative, then search for the first ld in PATH.
13099 with_gnu_ld=unknown
13101 esac
13102 elif test "$with_gnu_ld" = yes; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13104 $as_echo_n "checking for GNU ld... " >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13107 $as_echo_n "checking for non-GNU ld... " >&6; }
13109 if test "${acl_cv_path_LD+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if test -z "$LD"; then
13113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13114 for ac_dir in $PATH; do
13115 test -z "$ac_dir" && ac_dir=.
13116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13117 acl_cv_path_LD="$ac_dir/$ac_prog"
13118 # Check to see if the program is GNU ld. I'd rather use --version,
13119 # but apparently some GNU ld's only accept -v.
13120 # Break only if it was the GNU/non-GNU ld that we prefer.
13121 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13122 test "$with_gnu_ld" != no && break
13123 else
13124 test "$with_gnu_ld" != yes && break
13127 done
13128 IFS="$ac_save_ifs"
13129 else
13130 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13134 LD="$acl_cv_path_LD"
13135 if test -n "$LD"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13137 $as_echo "$LD" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13142 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13144 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13145 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13149 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13150 acl_cv_prog_gnu_ld=yes
13151 else
13152 acl_cv_prog_gnu_ld=no
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13156 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13157 with_gnu_ld=$acl_cv_prog_gnu_ld
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13162 $as_echo_n "checking for shared library run path origin... " >&6; }
13163 if test "${acl_cv_rpath+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13167 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13168 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13169 . ./conftest.sh
13170 rm -f ./conftest.sh
13171 acl_cv_rpath=done
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13175 $as_echo "$acl_cv_rpath" >&6; }
13176 wl="$acl_cv_wl"
13177 libext="$acl_cv_libext"
13178 shlibext="$acl_cv_shlibext"
13179 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13180 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13181 hardcode_direct="$acl_cv_hardcode_direct"
13182 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13183 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13184 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13185 # Check whether --enable-rpath was given.
13186 if test "${enable_rpath+set}" = set; then :
13187 enableval=$enable_rpath; :
13188 else
13189 enable_rpath=yes
13199 use_additional=yes
13201 acl_save_prefix="$prefix"
13202 prefix="$acl_final_prefix"
13203 acl_save_exec_prefix="$exec_prefix"
13204 exec_prefix="$acl_final_exec_prefix"
13206 eval additional_includedir=\"$includedir\"
13207 eval additional_libdir=\"$libdir\"
13209 exec_prefix="$acl_save_exec_prefix"
13210 prefix="$acl_save_prefix"
13213 # Check whether --with-libiconv-prefix was given.
13214 if test "${with_libiconv_prefix+set}" = set; then :
13215 withval=$with_libiconv_prefix;
13216 if test "X$withval" = "Xno"; then
13217 use_additional=no
13218 else
13219 if test "X$withval" = "X"; then
13221 acl_save_prefix="$prefix"
13222 prefix="$acl_final_prefix"
13223 acl_save_exec_prefix="$exec_prefix"
13224 exec_prefix="$acl_final_exec_prefix"
13226 eval additional_includedir=\"$includedir\"
13227 eval additional_libdir=\"$libdir\"
13229 exec_prefix="$acl_save_exec_prefix"
13230 prefix="$acl_save_prefix"
13232 else
13233 additional_includedir="$withval/include"
13234 additional_libdir="$withval/lib"
13240 LIBICONV=
13241 LTLIBICONV=
13242 INCICONV=
13243 rpathdirs=
13244 ltrpathdirs=
13245 names_already_handled=
13246 names_next_round='iconv '
13247 while test -n "$names_next_round"; do
13248 names_this_round="$names_next_round"
13249 names_next_round=
13250 for name in $names_this_round; do
13251 already_handled=
13252 for n in $names_already_handled; do
13253 if test "$n" = "$name"; then
13254 already_handled=yes
13255 break
13257 done
13258 if test -z "$already_handled"; then
13259 names_already_handled="$names_already_handled $name"
13260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13261 eval value=\"\$HAVE_LIB$uppername\"
13262 if test -n "$value"; then
13263 if test "$value" = yes; then
13264 eval value=\"\$LIB$uppername\"
13265 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13266 eval value=\"\$LTLIB$uppername\"
13267 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13268 else
13271 else
13272 found_dir=
13273 found_la=
13274 found_so=
13275 found_a=
13276 if test $use_additional = yes; then
13277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13278 found_dir="$additional_libdir"
13279 found_so="$additional_libdir/lib$name.$shlibext"
13280 if test -f "$additional_libdir/lib$name.la"; then
13281 found_la="$additional_libdir/lib$name.la"
13283 else
13284 if test -f "$additional_libdir/lib$name.$libext"; then
13285 found_dir="$additional_libdir"
13286 found_a="$additional_libdir/lib$name.$libext"
13287 if test -f "$additional_libdir/lib$name.la"; then
13288 found_la="$additional_libdir/lib$name.la"
13293 if test "X$found_dir" = "X"; then
13294 for x in $LDFLAGS $LTLIBICONV; do
13296 acl_save_prefix="$prefix"
13297 prefix="$acl_final_prefix"
13298 acl_save_exec_prefix="$exec_prefix"
13299 exec_prefix="$acl_final_exec_prefix"
13300 eval x=\"$x\"
13301 exec_prefix="$acl_save_exec_prefix"
13302 prefix="$acl_save_prefix"
13304 case "$x" in
13305 -L*)
13306 dir=`echo "X$x" | sed -e 's/^X-L//'`
13307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13308 found_dir="$dir"
13309 found_so="$dir/lib$name.$shlibext"
13310 if test -f "$dir/lib$name.la"; then
13311 found_la="$dir/lib$name.la"
13313 else
13314 if test -f "$dir/lib$name.$libext"; then
13315 found_dir="$dir"
13316 found_a="$dir/lib$name.$libext"
13317 if test -f "$dir/lib$name.la"; then
13318 found_la="$dir/lib$name.la"
13323 esac
13324 if test "X$found_dir" != "X"; then
13325 break
13327 done
13329 if test "X$found_dir" != "X"; then
13330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13331 if test "X$found_so" != "X"; then
13332 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13334 else
13335 haveit=
13336 for x in $ltrpathdirs; do
13337 if test "X$x" = "X$found_dir"; then
13338 haveit=yes
13339 break
13341 done
13342 if test -z "$haveit"; then
13343 ltrpathdirs="$ltrpathdirs $found_dir"
13345 if test "$hardcode_direct" = yes; then
13346 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13347 else
13348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13349 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13350 haveit=
13351 for x in $rpathdirs; do
13352 if test "X$x" = "X$found_dir"; then
13353 haveit=yes
13354 break
13356 done
13357 if test -z "$haveit"; then
13358 rpathdirs="$rpathdirs $found_dir"
13360 else
13361 haveit=
13362 for x in $LDFLAGS $LIBICONV; do
13364 acl_save_prefix="$prefix"
13365 prefix="$acl_final_prefix"
13366 acl_save_exec_prefix="$exec_prefix"
13367 exec_prefix="$acl_final_exec_prefix"
13368 eval x=\"$x\"
13369 exec_prefix="$acl_save_exec_prefix"
13370 prefix="$acl_save_prefix"
13372 if test "X$x" = "X-L$found_dir"; then
13373 haveit=yes
13374 break
13376 done
13377 if test -z "$haveit"; then
13378 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13380 if test "$hardcode_minus_L" != no; then
13381 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13382 else
13383 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13388 else
13389 if test "X$found_a" != "X"; then
13390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13391 else
13392 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13395 additional_includedir=
13396 case "$found_dir" in
13397 */lib | */lib/)
13398 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13399 additional_includedir="$basedir/include"
13401 esac
13402 if test "X$additional_includedir" != "X"; then
13403 if test "X$additional_includedir" != "X/usr/include"; then
13404 haveit=
13405 if test "X$additional_includedir" = "X/usr/local/include"; then
13406 if test -n "$GCC"; then
13407 case $host_os in
13408 linux*) haveit=yes;;
13409 esac
13412 if test -z "$haveit"; then
13413 for x in $CPPFLAGS $INCICONV; do
13415 acl_save_prefix="$prefix"
13416 prefix="$acl_final_prefix"
13417 acl_save_exec_prefix="$exec_prefix"
13418 exec_prefix="$acl_final_exec_prefix"
13419 eval x=\"$x\"
13420 exec_prefix="$acl_save_exec_prefix"
13421 prefix="$acl_save_prefix"
13423 if test "X$x" = "X-I$additional_includedir"; then
13424 haveit=yes
13425 break
13427 done
13428 if test -z "$haveit"; then
13429 if test -d "$additional_includedir"; then
13430 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13436 if test -n "$found_la"; then
13437 save_libdir="$libdir"
13438 case "$found_la" in
13439 */* | *\\*) . "$found_la" ;;
13440 *) . "./$found_la" ;;
13441 esac
13442 libdir="$save_libdir"
13443 for dep in $dependency_libs; do
13444 case "$dep" in
13445 -L*)
13446 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13447 if test "X$additional_libdir" != "X/usr/lib"; then
13448 haveit=
13449 if test "X$additional_libdir" = "X/usr/local/lib"; then
13450 if test -n "$GCC"; then
13451 case $host_os in
13452 linux*) haveit=yes;;
13453 esac
13456 if test -z "$haveit"; then
13457 haveit=
13458 for x in $LDFLAGS $LIBICONV; do
13460 acl_save_prefix="$prefix"
13461 prefix="$acl_final_prefix"
13462 acl_save_exec_prefix="$exec_prefix"
13463 exec_prefix="$acl_final_exec_prefix"
13464 eval x=\"$x\"
13465 exec_prefix="$acl_save_exec_prefix"
13466 prefix="$acl_save_prefix"
13468 if test "X$x" = "X-L$additional_libdir"; then
13469 haveit=yes
13470 break
13472 done
13473 if test -z "$haveit"; then
13474 if test -d "$additional_libdir"; then
13475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13478 haveit=
13479 for x in $LDFLAGS $LTLIBICONV; do
13481 acl_save_prefix="$prefix"
13482 prefix="$acl_final_prefix"
13483 acl_save_exec_prefix="$exec_prefix"
13484 exec_prefix="$acl_final_exec_prefix"
13485 eval x=\"$x\"
13486 exec_prefix="$acl_save_exec_prefix"
13487 prefix="$acl_save_prefix"
13489 if test "X$x" = "X-L$additional_libdir"; then
13490 haveit=yes
13491 break
13493 done
13494 if test -z "$haveit"; then
13495 if test -d "$additional_libdir"; then
13496 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13502 -R*)
13503 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13504 if test "$enable_rpath" != no; then
13505 haveit=
13506 for x in $rpathdirs; do
13507 if test "X$x" = "X$dir"; then
13508 haveit=yes
13509 break
13511 done
13512 if test -z "$haveit"; then
13513 rpathdirs="$rpathdirs $dir"
13515 haveit=
13516 for x in $ltrpathdirs; do
13517 if test "X$x" = "X$dir"; then
13518 haveit=yes
13519 break
13521 done
13522 if test -z "$haveit"; then
13523 ltrpathdirs="$ltrpathdirs $dir"
13527 -l*)
13528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13530 *.la)
13531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13534 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13535 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13537 esac
13538 done
13540 else
13541 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13542 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13546 done
13547 done
13548 if test "X$rpathdirs" != "X"; then
13549 if test -n "$hardcode_libdir_separator"; then
13550 alldirs=
13551 for found_dir in $rpathdirs; do
13552 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13553 done
13554 acl_save_libdir="$libdir"
13555 libdir="$alldirs"
13556 eval flag=\"$hardcode_libdir_flag_spec\"
13557 libdir="$acl_save_libdir"
13558 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13559 else
13560 for found_dir in $rpathdirs; do
13561 acl_save_libdir="$libdir"
13562 libdir="$found_dir"
13563 eval flag=\"$hardcode_libdir_flag_spec\"
13564 libdir="$acl_save_libdir"
13565 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13566 done
13569 if test "X$ltrpathdirs" != "X"; then
13570 for found_dir in $ltrpathdirs; do
13571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13572 done
13578 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13579 stdlib.h string.h unistd.h sys/param.h
13580 do :
13581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13582 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13583 eval as_val=\$$as_ac_Header
13584 if test "x$as_val" = x""yes; then :
13585 cat >>confdefs.h <<_ACEOF
13586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13587 _ACEOF
13591 done
13593 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
13594 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
13595 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13596 do :
13597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13599 eval as_val=\$$as_ac_var
13600 if test "x$as_val" = x""yes; then :
13601 cat >>confdefs.h <<_ACEOF
13602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603 _ACEOF
13606 done
13614 am_save_CPPFLAGS="$CPPFLAGS"
13616 for element in $INCICONV; do
13617 haveit=
13618 for x in $CPPFLAGS; do
13620 acl_save_prefix="$prefix"
13621 prefix="$acl_final_prefix"
13622 acl_save_exec_prefix="$exec_prefix"
13623 exec_prefix="$acl_final_exec_prefix"
13624 eval x=\"$x\"
13625 exec_prefix="$acl_save_exec_prefix"
13626 prefix="$acl_save_prefix"
13628 if test "X$x" = "X$element"; then
13629 haveit=yes
13630 break
13632 done
13633 if test -z "$haveit"; then
13634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13636 done
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13640 $as_echo_n "checking for iconv... " >&6; }
13641 if test "${am_cv_func_iconv+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13645 am_cv_func_iconv="no, consider installing GNU libiconv"
13646 am_cv_lib_iconv=no
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <stdlib.h>
13650 #include <iconv.h>
13652 main ()
13654 iconv_t cd = iconv_open("","");
13655 iconv(cd,NULL,NULL,NULL,NULL);
13656 iconv_close(cd);
13658 return 0;
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 am_cv_func_iconv=yes
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 if test "$am_cv_func_iconv" != yes; then
13667 am_save_LIBS="$LIBS"
13668 LIBS="$LIBS $LIBICONV"
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <stdlib.h>
13672 #include <iconv.h>
13674 main ()
13676 iconv_t cd = iconv_open("","");
13677 iconv(cd,NULL,NULL,NULL,NULL);
13678 iconv_close(cd);
13680 return 0;
13682 _ACEOF
13683 if ac_fn_c_try_link "$LINENO"; then :
13684 am_cv_lib_iconv=yes
13685 am_cv_func_iconv=yes
13687 rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS="$am_save_LIBS"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13694 $as_echo "$am_cv_func_iconv" >&6; }
13695 if test "$am_cv_func_iconv" = yes; then
13697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13700 if test "$am_cv_lib_iconv" = yes; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13702 $as_echo_n "checking how to link with libiconv... " >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13704 $as_echo "$LIBICONV" >&6; }
13705 else
13706 CPPFLAGS="$am_save_CPPFLAGS"
13707 LIBICONV=
13708 LTLIBICONV=
13713 if test "$am_cv_func_iconv" = yes; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13715 $as_echo_n "checking for iconv declaration... " >&6; }
13716 if test "${am_cv_proto_iconv+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #include <stdlib.h>
13724 #include <iconv.h>
13725 extern
13726 #ifdef __cplusplus
13728 #endif
13729 #if defined(__STDC__) || defined(__cplusplus)
13730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13731 #else
13732 size_t iconv();
13733 #endif
13736 main ()
13740 return 0;
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 am_cv_proto_iconv_arg1=""
13745 else
13746 am_cv_proto_iconv_arg1="const"
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 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);"
13752 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13754 }$am_cv_proto_iconv" >&5
13755 $as_echo "${ac_t:-
13756 }$am_cv_proto_iconv" >&6; }
13758 cat >>confdefs.h <<_ACEOF
13759 #define ICONV_CONST $am_cv_proto_iconv_arg1
13760 _ACEOF
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13766 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13767 if test "${am_cv_langinfo_codeset+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 #include <langinfo.h>
13774 main ()
13776 char* cs = nl_langinfo(CODESET);
13778 return 0;
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 am_cv_langinfo_codeset=yes
13783 else
13784 am_cv_langinfo_codeset=no
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13791 $as_echo "$am_cv_langinfo_codeset" >&6; }
13792 if test $am_cv_langinfo_codeset = yes; then
13794 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13798 if test $ac_cv_header_locale_h = yes; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13801 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13802 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 #include <locale.h>
13809 main ()
13811 return LC_MESSAGES
13813 return 0;
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 am_cv_val_LC_MESSAGES=yes
13818 else
13819 am_cv_val_LC_MESSAGES=no
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13825 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13826 if test $am_cv_val_LC_MESSAGES = yes; then
13828 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13834 for ac_prog in bison
13836 # Extract the first word of "$ac_prog", so it can be a program name with args.
13837 set dummy $ac_prog; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 if test -n "$INTLBISON"; then
13844 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13845 else
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13849 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_prog_INTLBISON="$ac_prog"
13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13855 break 2
13857 done
13858 done
13859 IFS=$as_save_IFS
13863 INTLBISON=$ac_cv_prog_INTLBISON
13864 if test -n "$INTLBISON"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13866 $as_echo "$INTLBISON" >&6; }
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13873 test -n "$INTLBISON" && break
13874 done
13876 if test -z "$INTLBISON"; then
13877 ac_verc_fail=yes
13878 else
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13880 $as_echo_n "checking version of bison... " >&6; }
13881 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13882 case $ac_prog_version in
13883 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13884 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13885 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13886 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13887 esac
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13889 $as_echo "$ac_prog_version" >&6; }
13891 if test $ac_verc_fail = yes; then
13892 INTLBISON=:
13897 # Check whether --with-language was given.
13898 if test "${with_language+set}" = set; then :
13899 withval=$with_language; if test "$withval" != "all"; then :
13900 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13920 $as_echo_n "checking whether NLS is requested... " >&6; }
13921 # Check whether --enable-nls was given.
13922 if test "${enable_nls+set}" = set; then :
13923 enableval=$enable_nls; USE_NLS=$enableval
13924 else
13925 USE_NLS=yes
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13929 $as_echo "$USE_NLS" >&6; }
13933 BUILD_INCLUDED_LIBINTL=no
13934 USE_INCLUDED_LIBINTL=no
13936 LIBINTL=
13937 LTLIBINTL=
13938 POSUB=
13940 if test "$USE_NLS" = "yes"; then
13941 gt_use_preinstalled_gnugettext=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13944 $as_echo_n "checking whether included gettext is requested... " >&6; }
13946 # Check whether --with-included-gettext was given.
13947 if test "${with_included_gettext+set}" = set; then :
13948 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13949 else
13950 nls_cv_force_use_gnu_gettext=no
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13954 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13956 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13957 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13965 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13966 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <libintl.h>
13972 extern int _nl_msg_cat_cntr;
13973 extern int *_nl_domain_bindings;
13975 main ()
13977 bindtextdomain ("", "");
13978 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13980 return 0;
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 gt_cv_func_gnugettext2_libc=yes
13985 else
13986 gt_cv_func_gnugettext2_libc=no
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13992 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13994 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13998 use_additional=yes
14000 acl_save_prefix="$prefix"
14001 prefix="$acl_final_prefix"
14002 acl_save_exec_prefix="$exec_prefix"
14003 exec_prefix="$acl_final_exec_prefix"
14005 eval additional_includedir=\"$includedir\"
14006 eval additional_libdir=\"$libdir\"
14008 exec_prefix="$acl_save_exec_prefix"
14009 prefix="$acl_save_prefix"
14012 # Check whether --with-libintl-prefix was given.
14013 if test "${with_libintl_prefix+set}" = set; then :
14014 withval=$with_libintl_prefix;
14015 if test "X$withval" = "Xno"; then
14016 use_additional=no
14017 else
14018 if test "X$withval" = "X"; then
14020 acl_save_prefix="$prefix"
14021 prefix="$acl_final_prefix"
14022 acl_save_exec_prefix="$exec_prefix"
14023 exec_prefix="$acl_final_exec_prefix"
14025 eval additional_includedir=\"$includedir\"
14026 eval additional_libdir=\"$libdir\"
14028 exec_prefix="$acl_save_exec_prefix"
14029 prefix="$acl_save_prefix"
14031 else
14032 additional_includedir="$withval/include"
14033 additional_libdir="$withval/lib"
14039 LIBINTL=
14040 LTLIBINTL=
14041 INCINTL=
14042 rpathdirs=
14043 ltrpathdirs=
14044 names_already_handled=
14045 names_next_round='intl '
14046 while test -n "$names_next_round"; do
14047 names_this_round="$names_next_round"
14048 names_next_round=
14049 for name in $names_this_round; do
14050 already_handled=
14051 for n in $names_already_handled; do
14052 if test "$n" = "$name"; then
14053 already_handled=yes
14054 break
14056 done
14057 if test -z "$already_handled"; then
14058 names_already_handled="$names_already_handled $name"
14059 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14060 eval value=\"\$HAVE_LIB$uppername\"
14061 if test -n "$value"; then
14062 if test "$value" = yes; then
14063 eval value=\"\$LIB$uppername\"
14064 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14065 eval value=\"\$LTLIB$uppername\"
14066 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14067 else
14070 else
14071 found_dir=
14072 found_la=
14073 found_so=
14074 found_a=
14075 if test $use_additional = yes; then
14076 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14077 found_dir="$additional_libdir"
14078 found_so="$additional_libdir/lib$name.$shlibext"
14079 if test -f "$additional_libdir/lib$name.la"; then
14080 found_la="$additional_libdir/lib$name.la"
14082 else
14083 if test -f "$additional_libdir/lib$name.$libext"; then
14084 found_dir="$additional_libdir"
14085 found_a="$additional_libdir/lib$name.$libext"
14086 if test -f "$additional_libdir/lib$name.la"; then
14087 found_la="$additional_libdir/lib$name.la"
14092 if test "X$found_dir" = "X"; then
14093 for x in $LDFLAGS $LTLIBINTL; do
14095 acl_save_prefix="$prefix"
14096 prefix="$acl_final_prefix"
14097 acl_save_exec_prefix="$exec_prefix"
14098 exec_prefix="$acl_final_exec_prefix"
14099 eval x=\"$x\"
14100 exec_prefix="$acl_save_exec_prefix"
14101 prefix="$acl_save_prefix"
14103 case "$x" in
14104 -L*)
14105 dir=`echo "X$x" | sed -e 's/^X-L//'`
14106 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14107 found_dir="$dir"
14108 found_so="$dir/lib$name.$shlibext"
14109 if test -f "$dir/lib$name.la"; then
14110 found_la="$dir/lib$name.la"
14112 else
14113 if test -f "$dir/lib$name.$libext"; then
14114 found_dir="$dir"
14115 found_a="$dir/lib$name.$libext"
14116 if test -f "$dir/lib$name.la"; then
14117 found_la="$dir/lib$name.la"
14122 esac
14123 if test "X$found_dir" != "X"; then
14124 break
14126 done
14128 if test "X$found_dir" != "X"; then
14129 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14130 if test "X$found_so" != "X"; then
14131 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14133 else
14134 haveit=
14135 for x in $ltrpathdirs; do
14136 if test "X$x" = "X$found_dir"; then
14137 haveit=yes
14138 break
14140 done
14141 if test -z "$haveit"; then
14142 ltrpathdirs="$ltrpathdirs $found_dir"
14144 if test "$hardcode_direct" = yes; then
14145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14146 else
14147 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14148 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14149 haveit=
14150 for x in $rpathdirs; do
14151 if test "X$x" = "X$found_dir"; then
14152 haveit=yes
14153 break
14155 done
14156 if test -z "$haveit"; then
14157 rpathdirs="$rpathdirs $found_dir"
14159 else
14160 haveit=
14161 for x in $LDFLAGS $LIBINTL; do
14163 acl_save_prefix="$prefix"
14164 prefix="$acl_final_prefix"
14165 acl_save_exec_prefix="$exec_prefix"
14166 exec_prefix="$acl_final_exec_prefix"
14167 eval x=\"$x\"
14168 exec_prefix="$acl_save_exec_prefix"
14169 prefix="$acl_save_prefix"
14171 if test "X$x" = "X-L$found_dir"; then
14172 haveit=yes
14173 break
14175 done
14176 if test -z "$haveit"; then
14177 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14179 if test "$hardcode_minus_L" != no; then
14180 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14181 else
14182 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14187 else
14188 if test "X$found_a" != "X"; then
14189 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14190 else
14191 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14194 additional_includedir=
14195 case "$found_dir" in
14196 */lib | */lib/)
14197 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14198 additional_includedir="$basedir/include"
14200 esac
14201 if test "X$additional_includedir" != "X"; then
14202 if test "X$additional_includedir" != "X/usr/include"; then
14203 haveit=
14204 if test "X$additional_includedir" = "X/usr/local/include"; then
14205 if test -n "$GCC"; then
14206 case $host_os in
14207 linux*) haveit=yes;;
14208 esac
14211 if test -z "$haveit"; then
14212 for x in $CPPFLAGS $INCINTL; do
14214 acl_save_prefix="$prefix"
14215 prefix="$acl_final_prefix"
14216 acl_save_exec_prefix="$exec_prefix"
14217 exec_prefix="$acl_final_exec_prefix"
14218 eval x=\"$x\"
14219 exec_prefix="$acl_save_exec_prefix"
14220 prefix="$acl_save_prefix"
14222 if test "X$x" = "X-I$additional_includedir"; then
14223 haveit=yes
14224 break
14226 done
14227 if test -z "$haveit"; then
14228 if test -d "$additional_includedir"; then
14229 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14235 if test -n "$found_la"; then
14236 save_libdir="$libdir"
14237 case "$found_la" in
14238 */* | *\\*) . "$found_la" ;;
14239 *) . "./$found_la" ;;
14240 esac
14241 libdir="$save_libdir"
14242 for dep in $dependency_libs; do
14243 case "$dep" in
14244 -L*)
14245 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14246 if test "X$additional_libdir" != "X/usr/lib"; then
14247 haveit=
14248 if test "X$additional_libdir" = "X/usr/local/lib"; then
14249 if test -n "$GCC"; then
14250 case $host_os in
14251 linux*) haveit=yes;;
14252 esac
14255 if test -z "$haveit"; then
14256 haveit=
14257 for x in $LDFLAGS $LIBINTL; do
14259 acl_save_prefix="$prefix"
14260 prefix="$acl_final_prefix"
14261 acl_save_exec_prefix="$exec_prefix"
14262 exec_prefix="$acl_final_exec_prefix"
14263 eval x=\"$x\"
14264 exec_prefix="$acl_save_exec_prefix"
14265 prefix="$acl_save_prefix"
14267 if test "X$x" = "X-L$additional_libdir"; then
14268 haveit=yes
14269 break
14271 done
14272 if test -z "$haveit"; then
14273 if test -d "$additional_libdir"; then
14274 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14277 haveit=
14278 for x in $LDFLAGS $LTLIBINTL; do
14280 acl_save_prefix="$prefix"
14281 prefix="$acl_final_prefix"
14282 acl_save_exec_prefix="$exec_prefix"
14283 exec_prefix="$acl_final_exec_prefix"
14284 eval x=\"$x\"
14285 exec_prefix="$acl_save_exec_prefix"
14286 prefix="$acl_save_prefix"
14288 if test "X$x" = "X-L$additional_libdir"; then
14289 haveit=yes
14290 break
14292 done
14293 if test -z "$haveit"; then
14294 if test -d "$additional_libdir"; then
14295 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14301 -R*)
14302 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14303 if test "$enable_rpath" != no; then
14304 haveit=
14305 for x in $rpathdirs; do
14306 if test "X$x" = "X$dir"; then
14307 haveit=yes
14308 break
14310 done
14311 if test -z "$haveit"; then
14312 rpathdirs="$rpathdirs $dir"
14314 haveit=
14315 for x in $ltrpathdirs; do
14316 if test "X$x" = "X$dir"; then
14317 haveit=yes
14318 break
14320 done
14321 if test -z "$haveit"; then
14322 ltrpathdirs="$ltrpathdirs $dir"
14326 -l*)
14327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14329 *.la)
14330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14333 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14334 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14336 esac
14337 done
14339 else
14340 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14345 done
14346 done
14347 if test "X$rpathdirs" != "X"; then
14348 if test -n "$hardcode_libdir_separator"; then
14349 alldirs=
14350 for found_dir in $rpathdirs; do
14351 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14352 done
14353 acl_save_libdir="$libdir"
14354 libdir="$alldirs"
14355 eval flag=\"$hardcode_libdir_flag_spec\"
14356 libdir="$acl_save_libdir"
14357 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14358 else
14359 for found_dir in $rpathdirs; do
14360 acl_save_libdir="$libdir"
14361 libdir="$found_dir"
14362 eval flag=\"$hardcode_libdir_flag_spec\"
14363 libdir="$acl_save_libdir"
14364 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14365 done
14368 if test "X$ltrpathdirs" != "X"; then
14369 for found_dir in $ltrpathdirs; do
14370 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14371 done
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14375 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14376 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 gt_save_CPPFLAGS="$CPPFLAGS"
14380 CPPFLAGS="$CPPFLAGS $INCINTL"
14381 gt_save_LIBS="$LIBS"
14382 LIBS="$LIBS $LIBINTL"
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 #include <libintl.h>
14386 extern int _nl_msg_cat_cntr;
14387 extern
14388 #ifdef __cplusplus
14390 #endif
14391 const char *_nl_expand_alias ();
14393 main ()
14395 bindtextdomain ("", "");
14396 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14398 return 0;
14400 _ACEOF
14401 if ac_fn_c_try_link "$LINENO"; then :
14402 gt_cv_func_gnugettext2_libintl=yes
14403 else
14404 gt_cv_func_gnugettext2_libintl=no
14406 rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext conftest.$ac_ext
14408 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14409 LIBS="$LIBS $LIBICONV"
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #include <libintl.h>
14413 extern int _nl_msg_cat_cntr;
14414 extern
14415 #ifdef __cplusplus
14417 #endif
14418 const char *_nl_expand_alias ();
14420 main ()
14422 bindtextdomain ("", "");
14423 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14425 return 0;
14427 _ACEOF
14428 if ac_fn_c_try_link "$LINENO"; then :
14429 LIBINTL="$LIBINTL $LIBICONV"
14430 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14431 gt_cv_func_gnugettext2_libintl=yes
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14437 CPPFLAGS="$gt_save_CPPFLAGS"
14438 LIBS="$gt_save_LIBS"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14441 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14444 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14445 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14446 && test "$PACKAGE" != gettext; }; then
14447 gt_use_preinstalled_gnugettext=yes
14448 else
14449 LIBINTL=
14450 LTLIBINTL=
14451 INCINTL=
14455 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14456 nls_cv_use_gnu_gettext=yes
14460 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14461 INTLOBJS="\$(GETTOBJS)"
14462 BUILD_INCLUDED_LIBINTL=yes
14463 USE_INCLUDED_LIBINTL=yes
14464 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14465 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14466 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14469 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14470 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14471 CATOBJEXT=.gmo
14475 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14476 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14478 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14480 else
14481 USE_NLS=no
14485 if test "$USE_NLS" = "yes"; then
14487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14488 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14490 $as_echo_n "checking how to link with libintl... " >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14492 $as_echo "$LIBINTL" >&6; }
14494 for element in $INCINTL; do
14495 haveit=
14496 for x in $CPPFLAGS; do
14498 acl_save_prefix="$prefix"
14499 prefix="$acl_final_prefix"
14500 acl_save_exec_prefix="$exec_prefix"
14501 exec_prefix="$acl_final_exec_prefix"
14502 eval x=\"$x\"
14503 exec_prefix="$acl_save_exec_prefix"
14504 prefix="$acl_save_prefix"
14506 if test "X$x" = "X$element"; then
14507 haveit=yes
14508 break
14510 done
14511 if test -z "$haveit"; then
14512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14514 done
14519 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14522 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14526 POSUB=po
14530 if test "$PACKAGE" = gettext; then
14531 BUILD_INCLUDED_LIBINTL=yes
14539 nls_cv_header_intl=
14540 nls_cv_header_libgt=
14542 DATADIRNAME=share
14545 INSTOBJEXT=.mo
14548 GENCAT=gencat
14551 INTL_LIBTOOL_SUFFIX_PREFIX=
14555 INTLLIBS="$LIBINTL"
14562 if test $USE_INCLUDED_LIBINTL = yes; then :
14563 INCINTL=-I\${top_builddir}/intl
14566 if test x$USE_NLS = xyes; then :
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14569 $as_echo_n "checking for autopoint... " >&6; }
14570 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14571 if test -n "$autopoint_version"; then :
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14574 $as_echo "yes ($autopoint_version)" >&6; }
14577 else
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581 USE_NLS=no
14586 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14588 You need to install GNU gettext/gettext-tools to compile aMule with
14589 i18n support." >&5
14590 $as_echo "$as_me: WARNING:
14591 You need to install GNU gettext/gettext-tools to compile aMule with
14592 i18n support." >&2;}
14593 _mule_warning_13=yes
14594 _mule_has_warnings=yes
14598 if test ${USE_NLS:-no} = yes; then :
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
14601 $as_echo_n "checking for requested languages... " >&6; }
14602 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
14604 if test ${enable_amule_daemon:-no} = yes; then :
14606 if test -z "$LINGUAS"; then :
14607 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
14608 else
14610 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14611 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
14614 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
14616 else
14617 AMULE_DAEMON_MANPAGES=
14622 if test ${enable_amulecmd:-no} = yes; then :
14624 if test -z "$LINGUAS"; then :
14625 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
14626 else
14628 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14629 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
14632 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
14634 else
14635 AMULECMD_MANPAGES=
14640 if test ${enable_webserver:-no} = yes; then :
14642 if test -z "$LINGUAS"; then :
14643 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
14644 else
14646 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14647 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
14650 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
14652 else
14653 WEBSERVER_MANPAGES=
14658 if test ${enable_amule_gui:-no} = yes; then :
14660 if test -z "$LINGUAS"; then :
14661 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
14662 else
14664 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14665 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
14668 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
14670 else
14671 AMULE_GUI_MANPAGES=
14676 if test ${enable_cas:-no} = yes; then :
14678 if test -z "$LINGUAS"; then :
14679 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
14680 else
14682 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14683 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
14686 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
14688 else
14689 CAS_MANPAGES=
14694 if test ${enable_wxcas:-no} = yes; then :
14696 if test -z "$LINGUAS"; then :
14697 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
14698 else
14700 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14701 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
14704 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
14706 else
14707 WXCAS_MANPAGES=
14712 if test ${enable_ed2k:-yes} = yes; then :
14714 if test -z "$LINGUAS"; then :
14715 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
14716 else
14718 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14719 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
14722 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
14724 else
14725 ED2K_MANPAGES=
14730 if test ${enable_alc:-no} = yes; then :
14732 if test -z "$LINGUAS"; then :
14733 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
14734 else
14736 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14737 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
14740 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
14742 else
14743 ALC_MANPAGES=
14748 if test ${enable_alcc:-no} = yes; then :
14750 if test -z "$LINGUAS"; then :
14751 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
14752 else
14754 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14755 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
14758 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
14760 else
14761 ALCC_MANPAGES=
14766 if test ${enable_monolithic:-yes} = yes; then :
14768 if test -z "$LINGUAS"; then :
14769 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
14770 else
14772 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14773 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
14776 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
14778 else
14779 MONOLITHIC_MANPAGES=
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
14784 $as_echo "${LINGUAS:-all}" >&6; }
14790 # Check for bfd.h (to have proper backtraces without using wxExecute)
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
14793 $as_echo_n "checking for bfd... " >&6; }
14794 result=no
14795 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
14796 mule_backup_LIBS="$LIBS"
14797 mule_backup_LDFLAGS="$LDFLAGS"
14798 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
14799 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14804 #include <ansidecl.h>
14805 #include <bfd.h>
14808 main ()
14811 char *dummy = bfd_errmsg(bfd_get_error());
14814 return 0;
14817 _ACEOF
14818 if ac_fn_c_try_link "$LINENO"; then :
14820 result=yes
14821 BFD_CPPFLAGS="-DHAVE_BFD"
14822 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
14823 LIBS="$mule_backup_LIBS"
14824 LDFLAGS="$mule_backup_LDFLAGS"
14825 break
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830 LIBS="$mule_backup_LIBS"
14831 LDFLAGS="$mule_backup_LDFLAGS"
14832 done
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14835 $as_echo "$result" >&6; }
14837 if test $result = no; then :
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14839 bfd.h not found or unusable, please install binutils development
14840 package if you are a developer or want to help testing aMule" >&5
14841 $as_echo "$as_me: WARNING:
14842 bfd.h not found or unusable, please install binutils development
14843 package if you are a developer or want to help testing aMule" >&2;}
14844 _mule_warning_14=yes
14845 _mule_has_warnings=yes
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14852 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14857 #include <execinfo.h>
14860 main ()
14863 void *bt[1];
14864 int n = backtrace(&bt, 1);
14865 const char **bt_syms = backtrace_symbols(bt, n);
14868 return 0;
14871 _ACEOF
14872 if ac_fn_c_try_link "$LINENO"; then :
14875 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878 $as_echo "yes" >&6; }
14880 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14886 rm -f core conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14890 # Flush standard test results for speeding cache
14891 cat >confcache <<\_ACEOF
14892 # This file is a shell script that caches the results of configure
14893 # tests run on this system so they can be shared between configure
14894 # scripts and configure runs, see configure's option --config-cache.
14895 # It is not useful on other systems. If it contains results you don't
14896 # want to keep, you may remove or edit it.
14898 # config.status only pays attention to the cache file if you give it
14899 # the --recheck option to rerun configure.
14901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14903 # following values.
14905 _ACEOF
14907 # The following way of writing the cache mishandles newlines in values,
14908 # but we know of no workaround that is simple, portable, and efficient.
14909 # So, we kill variables containing newlines.
14910 # Ultrix sh set writes to stderr and can't be redirected directly,
14911 # and sets the high bit in the cache file unless we assign to the vars.
14913 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14914 eval ac_val=\$$ac_var
14915 case $ac_val in #(
14916 *${as_nl}*)
14917 case $ac_var in #(
14918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14920 esac
14921 case $ac_var in #(
14922 _ | IFS | as_nl) ;; #(
14923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14924 *) { eval $ac_var=; unset $ac_var;} ;;
14925 esac ;;
14926 esac
14927 done
14929 (set) 2>&1 |
14930 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14931 *${as_nl}ac_space=\ *)
14932 # `set' does not quote correctly, so add quotes: double-quote
14933 # substitution turns \\\\ into \\, and sed turns \\ into \.
14934 sed -n \
14935 "s/'/'\\\\''/g;
14936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14937 ;; #(
14939 # `set' quotes correctly as required by POSIX, so do not add quotes.
14940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14942 esac |
14943 sort
14945 sed '
14946 /^ac_cv_env_/b end
14947 t clear
14948 :clear
14949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14950 t end
14951 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14952 :end' >>confcache
14953 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14954 if test -w "$cache_file"; then
14955 test "x$cache_file" != "x/dev/null" &&
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14957 $as_echo "$as_me: updating cache $cache_file" >&6;}
14958 cat confcache >$cache_file
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14964 rm -f confcache
14966 # Other tests
14968 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14970 $as_echo_n "checking for docdir... " >&6; }
14971 if test -z "$docdir"; then :
14972 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14975 $as_echo "$docdir" >&6; }
14977 # Try to set the SVN checkout-date
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14979 $as_echo_n "checking for SVNDATE... " >&6; }
14980 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14981 then
14982 svndate="rev. `cat $srcdir/.svn-revision`"
14983 elif test -d $srcdir/.svn # SVNDATE for svn
14984 then
14985 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14988 $as_echo "${svndate:-None required}" >&6; }
14989 if test -n "$svndate"; then :
14992 cat >>confdefs.h <<_ACEOF
14993 #define SVNDATE "$svndate"
14994 _ACEOF
14996 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14999 SVNDATE=$svndate
15003 # Check whether --with-denoise-level was given.
15004 if test "${with_denoise_level+set}" = set; then :
15005 withval=$with_denoise_level;
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
15010 $as_echo_n "checking denoising level... " >&6; }
15011 if test ${with_denoise_level:-5} = yes; then :
15012 with_denoise_level=5
15014 if test ${with_denoise_level:-5} = no; then :
15015 with_denoise_level=0
15017 if test ${with_denoise_level:-5} -gt 4; then :
15018 if test "${svndate:+set}" = "set"; then :
15019 with_denoise_level=0
15020 else
15021 with_denoise_level=4
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
15025 $as_echo "$with_denoise_level" >&6; }
15027 ac_config_commands="$ac_config_commands denoiser"
15031 if test ${enable_plasmamule:-no} = yes; then :
15034 if test -z ${QT_MOC}; then :
15036 for ac_prog in moc-qt4 moc
15038 # Extract the first word of "$ac_prog", so it can be a program name with args.
15039 set dummy $ac_prog; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 case $QT_MOC in
15046 [\\/]* | ?:[\\/]*)
15047 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15053 IFS=$as_save_IFS
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15057 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 break 2
15061 done
15062 done
15063 IFS=$as_save_IFS
15066 esac
15068 QT_MOC=$ac_cv_path_QT_MOC
15069 if test -n "$QT_MOC"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15071 $as_echo "$QT_MOC" >&6; }
15072 else
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15078 test -n "$QT_MOC" && break
15079 done
15081 if test -z ${QT_MOC}; then :
15083 echo moc not found
15084 exit 1
15088 else
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15091 $as_echo_n "checking for moc... " >&6; }
15092 if test -x ${QT_MOC}; then :
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15095 $as_echo "${QT_MOC}" >&6; }
15098 else
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15101 $as_echo "\"not found\"" >&6; }
15102 QT_MOC="not found"
15103 exit 1
15110 if test "${QT_MOC}" != "not found"; then :
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15113 $as_echo_n "checking for moc version >= 4... " >&6; }
15114 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15115 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15118 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15120 else
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15123 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15124 QT_MOC="not found"
15125 exit 1
15131 if test "${QT_MOC}" = "not found"; then :
15132 enable_plasmamule=disabled
15135 if test ${enable_plasmamule:-no} = yes; then :
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15140 $as_echo_n "checking for qt... " >&6; }
15141 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15144 $as_echo "found" >&6; }
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15146 $as_echo_n "checking for qt core cflags... " >&6; }
15147 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15149 $as_echo "$QT_CORE_CFLAGS" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15151 $as_echo_n "checking for qt core libs... " >&6; }
15152 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15154 $as_echo "$QT_CORE_LIBS" >&6; }
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15156 $as_echo_n "checking for qt gui cflags... " >&6; }
15157 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15159 $as_echo "$QT_GUI_CFLAGS" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15161 $as_echo_n "checking for qt gui libs... " >&6; }
15162 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15164 $as_echo "$QT_GUI_LIBS" >&6; }
15166 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15168 $as_echo "not found" >&6; }
15169 exit 1
15173 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15175 QT_DBUS_LDFLAGS="-lQtDBus"
15185 if test -z "${QT_CORE_CXXFLAGS}"; then :
15186 enable_plasmamule=disabled
15191 if test ${enable_plasmamule:-no} = yes; then :
15194 if test -z ${KDE4_CONFIG}; then :
15196 # Extract the first word of "kde4-config", so it can be a program name with args.
15197 set dummy kde4-config; ac_word=$2
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 $as_echo_n "checking for $ac_word... " >&6; }
15200 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 case $KDE4_CONFIG in
15204 [\\/]* | ?:[\\/]*)
15205 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15215 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 break 2
15219 done
15220 done
15221 IFS=$as_save_IFS
15224 esac
15226 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15227 if test -n "$KDE4_CONFIG"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15229 $as_echo "$KDE4_CONFIG" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15237 else
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15240 $as_echo_n "checking for kde4-config... " >&6; }
15241 if test ! -x KDE4_CONFIG; then :
15243 KDE4_CONFIG="not found"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15245 $as_echo "not found" >&6; }
15246 exit 1
15252 if test "${KDE4_CONFIG}" != "not found"; then :
15254 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15255 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15258 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15260 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15263 $as_echo "at least version 4 required" >&6; }
15264 exit 1
15268 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15271 $as_echo "not found" >&6; }
15272 exit 1
15277 if test "${KDE4_CONFIG}" = "not found"; then :
15278 enable_plasmamule=disabled
15283 if test ${enable_plasmamule:-no} = yes; then :
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15287 $as_echo_n "checking for kde4 headers... " >&6; }
15288 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15290 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15292 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15295 $as_echo "${KDE_HEADER_DIR}" >&6; }
15297 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15300 $as_echo "dataengine.h not found" >&6; }
15301 exit 1
15305 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15308 $as_echo "kdirwatch.h not found" >&6; }
15309 exit 1
15314 if test -z ${KDE_HEADER_DIR}; then :
15315 enable_plasmamule=disabled
15320 if test ${enable_plasmamule:-no} = yes; then :
15322 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15323 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15328 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15329 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15331 KDE_IN_HOME="yes"
15334 if test ${KDE_IN_HOME} = "yes"; then :
15336 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15338 else
15340 if test -n ${prefix}; then :
15342 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15343 if test -n ${KDE_APPLNK_PATH}; then :
15345 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15349 else
15351 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15357 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15363 $as_echo_n "checking for kde4 services Path... " >&6; }
15364 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15366 KDE_IN_HOME="yes"
15369 if test ${KDE_IN_HOME} = "yes"; then :
15371 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15373 else
15375 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15379 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15385 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15386 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15388 KDE_IN_HOME="yes"
15391 if test ${KDE_IN_HOME} = "yes"; then :
15393 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15395 else
15397 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15401 $as_echo "${KDE_MODULE_PATH}" >&6; }
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15407 $as_echo_n "checking for kde4 icons Path... " >&6; }
15408 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15410 KDE_IN_HOME="yes"
15413 if test ${KDE_IN_HOME} = "yes"; then :
15415 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15417 else
15419 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15422 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15424 $as_echo "${KDE_ICON_PATH}" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15430 $as_echo_n "checking for location for mime-type installation... " >&6; }
15431 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15433 KDE_IN_HOME="yes"
15436 if test ${KDE_IN_HOME} = "yes"; then :
15438 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15440 else
15442 if test -n ${prefix}; then :
15444 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15445 if test -n ${KDE_MIME_PATH}; then :
15447 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15451 else
15453 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15459 $as_echo "${KDE_MIME_PATH}" >&6; }
15463 else
15464 enable_plasmamule=disabled
15469 if test ${enable_debug:-yes} = yes; then :
15471 DEBUGFLAG="-D__DEBUG__"
15478 if test x$SYS = xwin32; then
15479 SYS_WIN32_TRUE=
15480 SYS_WIN32_FALSE='#'
15481 else
15482 SYS_WIN32_TRUE='#'
15483 SYS_WIN32_FALSE=
15486 if test x$SYS = xwin32 -a "$RC" != ":"; then
15487 NEED_RC_TRUE=
15488 NEED_RC_FALSE='#'
15489 else
15490 NEED_RC_TRUE='#'
15491 NEED_RC_FALSE=
15494 if test x$SYS = xdarwin; then
15495 NEED_CORESERVICES_TRUE=
15496 NEED_CORESERVICES_FALSE='#'
15497 else
15498 NEED_CORESERVICES_TRUE='#'
15499 NEED_CORESERVICES_FALSE=
15502 if test x$USE_NLS = xyes; then
15503 COMPILE_NLS_TRUE=
15504 COMPILE_NLS_FALSE='#'
15505 else
15506 COMPILE_NLS_TRUE='#'
15507 COMPILE_NLS_FALSE=
15510 if test x$HAVE_FLEX_EXTENDED = xyes; then
15511 GENERATE_FLEX_HEADER_TRUE=
15512 GENERATE_FLEX_HEADER_FALSE='#'
15513 else
15514 GENERATE_FLEX_HEADER_TRUE='#'
15515 GENERATE_FLEX_HEADER_FALSE=
15518 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
15519 INSTALL_SKINS_TRUE=
15520 INSTALL_SKINS_FALSE='#'
15521 else
15522 INSTALL_SKINS_TRUE='#'
15523 INSTALL_SKINS_FALSE=
15526 if test ${enable_plasmamule:-no} = yes; then
15527 PLASMAMULE_TRUE=
15528 PLASMAMULE_FALSE='#'
15529 else
15530 PLASMAMULE_TRUE='#'
15531 PLASMAMULE_FALSE=
15535 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
15536 COMPILE_LIB_COMMON_TRUE=
15537 COMPILE_LIB_COMMON_FALSE='#'
15538 else
15539 COMPILE_LIB_COMMON_TRUE='#'
15540 COMPILE_LIB_COMMON_FALSE=
15543 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
15544 COMPILE_LIB_EC_TRUE=
15545 COMPILE_LIB_EC_FALSE='#'
15546 else
15547 COMPILE_LIB_EC_TRUE='#'
15548 COMPILE_LIB_EC_FALSE=
15552 # Check for readline library
15553 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15556 $as_echo_n "checking for a readline compatible library... " >&6; }
15557 if test "${vl_cv_lib_readline+set}" = set; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15561 ORIG_LIBS="$LIBS"
15562 for readline_lib in readline edit editline; do
15563 for termcap_lib in "" termcap curses ncurses; do
15564 if test -z "$termcap_lib"; then
15565 TRY_LIB="-l$readline_lib"
15566 else
15567 TRY_LIB="-l$readline_lib -l$termcap_lib"
15569 LIBS="$ORIG_LIBS $TRY_LIB"
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 char readline ();
15581 main ()
15583 return readline ();
15585 return 0;
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"; then :
15589 vl_cv_lib_readline="$TRY_LIB"
15591 rm -f core conftest.err conftest.$ac_objext \
15592 conftest$ac_exeext conftest.$ac_ext
15593 if test -n "$vl_cv_lib_readline"; then
15594 break
15596 done
15597 if test -n "$vl_cv_lib_readline"; then
15598 break
15600 done
15601 if test -z "$vl_cv_lib_readline"; then
15602 vl_cv_lib_readline="no"
15603 LIBS="$ORIG_LIBS"
15604 READLINE_LIBS=""
15605 else
15606 READLINE_LIBS="$vl_cv_lib_readline"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15611 $as_echo "$vl_cv_lib_readline" >&6; }
15613 if test "$vl_cv_lib_readline" != "no"; then
15615 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15617 for ac_header in readline.h readline/readline.h
15618 do :
15619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15621 eval as_val=\$$as_ac_Header
15622 if test "x$as_val" = x""yes; then :
15623 cat >>confdefs.h <<_ACEOF
15624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15629 done
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15632 $as_echo_n "checking whether readline supports history... " >&6; }
15633 if test "${vl_cv_lib_readline_history+set}" = set; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15637 vl_cv_lib_readline_history="no"
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15641 /* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15644 #ifdef __cplusplus
15645 extern "C"
15646 #endif
15647 char add_history ();
15649 main ()
15651 return add_history ();
15653 return 0;
15655 _ACEOF
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 vl_cv_lib_readline_history="yes"
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15664 $as_echo "$vl_cv_lib_readline_history" >&6; }
15665 if test "$vl_cv_lib_readline_history" = "yes"; then
15667 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15669 for ac_header in history.h readline/history.h
15670 do :
15671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15673 eval as_val=\$$as_ac_Header
15674 if test "x$as_val" = x""yes; then :
15675 cat >>confdefs.h <<_ACEOF
15676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15677 _ACEOF
15681 done
15686 LIBS="$ORIG_LIBS"
15690 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15693 # Check whether --enable-ccache was given.
15694 if test "${enable_ccache+set}" = set; then :
15695 enableval=$enable_ccache;
15701 # Check whether --with-ccache-prefix was given.
15702 if test "${with_ccache_prefix+set}" = set; then :
15703 withval=$with_ccache_prefix;
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15708 $as_echo_n "checking whether ccache support should be added... " >&6; }
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15710 $as_echo "${enable_ccache:-no}" >&6; }
15712 if test ${enable_ccache:-no} = yes; then :
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15715 $as_echo_n "checking for ccache presence... " >&6; }
15716 if test -z "$with_ccache_prefix"; then :
15718 ccache_full=`which ccache`
15719 with_ccache_prefix=`dirname ${ccache_full}`
15722 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15724 CC="$with_ccache_prefix/ccache $CC"
15725 CXX="$with_ccache_prefix/ccache $CXX"
15726 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15728 else
15729 enable_ccache=no
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15732 $as_echo "${enable_ccache:-no}" >&6; }
15737 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
15739 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15741 if test x$SYS = xwin32; then :
15742 ac_config_files="$ac_config_files version.rc"
15745 cat >confcache <<\_ACEOF
15746 # This file is a shell script that caches the results of configure
15747 # tests run on this system so they can be shared between configure
15748 # scripts and configure runs, see configure's option --config-cache.
15749 # It is not useful on other systems. If it contains results you don't
15750 # want to keep, you may remove or edit it.
15752 # config.status only pays attention to the cache file if you give it
15753 # the --recheck option to rerun configure.
15755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15757 # following values.
15759 _ACEOF
15761 # The following way of writing the cache mishandles newlines in values,
15762 # but we know of no workaround that is simple, portable, and efficient.
15763 # So, we kill variables containing newlines.
15764 # Ultrix sh set writes to stderr and can't be redirected directly,
15765 # and sets the high bit in the cache file unless we assign to the vars.
15767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15768 eval ac_val=\$$ac_var
15769 case $ac_val in #(
15770 *${as_nl}*)
15771 case $ac_var in #(
15772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15774 esac
15775 case $ac_var in #(
15776 _ | IFS | as_nl) ;; #(
15777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15778 *) { eval $ac_var=; unset $ac_var;} ;;
15779 esac ;;
15780 esac
15781 done
15783 (set) 2>&1 |
15784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15785 *${as_nl}ac_space=\ *)
15786 # `set' does not quote correctly, so add quotes: double-quote
15787 # substitution turns \\\\ into \\, and sed turns \\ into \.
15788 sed -n \
15789 "s/'/'\\\\''/g;
15790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15791 ;; #(
15793 # `set' quotes correctly as required by POSIX, so do not add quotes.
15794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15796 esac |
15797 sort
15799 sed '
15800 /^ac_cv_env_/b end
15801 t clear
15802 :clear
15803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15804 t end
15805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15806 :end' >>confcache
15807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15808 if test -w "$cache_file"; then
15809 test "x$cache_file" != "x/dev/null" &&
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15811 $as_echo "$as_me: updating cache $cache_file" >&6;}
15812 cat confcache >$cache_file
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15818 rm -f confcache
15820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15821 # Let make expand exec_prefix.
15822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15824 DEFS=-DHAVE_CONFIG_H
15826 ac_libobjs=
15827 ac_ltlibobjs=
15828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15829 # 1. Remove the extension, and $U if already installed.
15830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15833 # will be set to the directory where LIBOBJS objects are built.
15834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15836 done
15837 LIBOBJS=$ac_libobjs
15839 LTLIBOBJS=$ac_ltlibobjs
15842 if test -n "$EXEEXT"; then
15843 am__EXEEXT_TRUE=
15844 am__EXEEXT_FALSE='#'
15845 else
15846 am__EXEEXT_TRUE='#'
15847 am__EXEEXT_FALSE=
15850 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15851 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15855 as_fn_error "conditional \"AMDEP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15858 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15859 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15863 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15866 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15867 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15870 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15871 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15875 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15878 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15879 as_fn_error "conditional \"WEB\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15882 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15883 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15886 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15887 as_fn_error "conditional \"CAS\" was never defined.
15888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15890 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15891 as_fn_error "conditional \"WXCAS\" was never defined.
15892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15894 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15895 as_fn_error "conditional \"ED2K\" was never defined.
15896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15898 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15899 as_fn_error "conditional \"ALC\" was never defined.
15900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15903 as_fn_error "conditional \"ALCC\" was never defined.
15904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15906 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15907 as_fn_error "conditional \"XAS\" was never defined.
15908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15910 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15911 as_fn_error "conditional \"FILEVIEW\" was never defined.
15912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15914 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15915 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15918 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15919 as_fn_error "conditional \"NEED_RC\" was never defined.
15920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15922 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15923 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15926 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15927 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15930 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15931 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15934 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15935 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15938 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15939 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15942 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15943 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15946 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15947 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15951 : ${CONFIG_STATUS=./config.status}
15952 ac_write_fail=0
15953 ac_clean_files_save=$ac_clean_files
15954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15956 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15957 as_write_fail=0
15958 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15959 #! $SHELL
15960 # Generated by $as_me.
15961 # Run this file to recreate the current configuration.
15962 # Compiler output produced by configure, useful for debugging
15963 # configure, is in config.log if it exists.
15965 debug=false
15966 ac_cs_recheck=false
15967 ac_cs_silent=false
15969 SHELL=\${CONFIG_SHELL-$SHELL}
15970 export SHELL
15971 _ASEOF
15972 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15973 ## -------------------- ##
15974 ## M4sh Initialization. ##
15975 ## -------------------- ##
15977 # Be more Bourne compatible
15978 DUALCASE=1; export DUALCASE # for MKS sh
15979 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15980 emulate sh
15981 NULLCMD=:
15982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15983 # is contrary to our usage. Disable this feature.
15984 alias -g '${1+"$@"}'='"$@"'
15985 setopt NO_GLOB_SUBST
15986 else
15987 case `(set -o) 2>/dev/null` in #(
15988 *posix*) :
15989 set -o posix ;; #(
15990 *) :
15992 esac
15996 as_nl='
15998 export as_nl
15999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16000 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16003 # Prefer a ksh shell builtin over an external printf program on Solaris,
16004 # but without wasting forks for bash or zsh.
16005 if test -z "$BASH_VERSION$ZSH_VERSION" \
16006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16007 as_echo='print -r --'
16008 as_echo_n='print -rn --'
16009 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16010 as_echo='printf %s\n'
16011 as_echo_n='printf %s'
16012 else
16013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16014 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16015 as_echo_n='/usr/ucb/echo -n'
16016 else
16017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16018 as_echo_n_body='eval
16019 arg=$1;
16020 case $arg in #(
16021 *"$as_nl"*)
16022 expr "X$arg" : "X\\(.*\\)$as_nl";
16023 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16024 esac;
16025 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16027 export as_echo_n_body
16028 as_echo_n='sh -c $as_echo_n_body as_echo'
16030 export as_echo_body
16031 as_echo='sh -c $as_echo_body as_echo'
16034 # The user is always right.
16035 if test "${PATH_SEPARATOR+set}" != set; then
16036 PATH_SEPARATOR=:
16037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16039 PATH_SEPARATOR=';'
16044 # IFS
16045 # We need space, tab and new line, in precisely that order. Quoting is
16046 # there to prevent editors from complaining about space-tab.
16047 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16048 # splitting by setting IFS to empty value.)
16049 IFS=" "" $as_nl"
16051 # Find who we are. Look in the path if we contain no directory separator.
16052 case $0 in #((
16053 *[\\/]* ) as_myself=$0 ;;
16054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16060 done
16061 IFS=$as_save_IFS
16064 esac
16065 # We did not find ourselves, most probably we were run as `sh COMMAND'
16066 # in which case we are not to be found in the path.
16067 if test "x$as_myself" = x; then
16068 as_myself=$0
16070 if test ! -f "$as_myself"; then
16071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16072 exit 1
16075 # Unset variables that we do not need and which cause bugs (e.g. in
16076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16077 # suppresses any "Segmentation fault" message there. '((' could
16078 # trigger a bug in pdksh 5.2.14.
16079 for as_var in BASH_ENV ENV MAIL MAILPATH
16080 do eval test x\${$as_var+set} = xset \
16081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16082 done
16083 PS1='$ '
16084 PS2='> '
16085 PS4='+ '
16087 # NLS nuisances.
16088 LC_ALL=C
16089 export LC_ALL
16090 LANGUAGE=C
16091 export LANGUAGE
16093 # CDPATH.
16094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16097 # as_fn_error ERROR [LINENO LOG_FD]
16098 # ---------------------------------
16099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16101 # script with status $?, using 1 if that was 0.
16102 as_fn_error ()
16104 as_status=$?; test $as_status -eq 0 && as_status=1
16105 if test "$3"; then
16106 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16109 $as_echo "$as_me: error: $1" >&2
16110 as_fn_exit $as_status
16111 } # as_fn_error
16114 # as_fn_set_status STATUS
16115 # -----------------------
16116 # Set $? to STATUS, without forking.
16117 as_fn_set_status ()
16119 return $1
16120 } # as_fn_set_status
16122 # as_fn_exit STATUS
16123 # -----------------
16124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16125 as_fn_exit ()
16127 set +e
16128 as_fn_set_status $1
16129 exit $1
16130 } # as_fn_exit
16132 # as_fn_unset VAR
16133 # ---------------
16134 # Portably unset VAR.
16135 as_fn_unset ()
16137 { eval $1=; unset $1;}
16139 as_unset=as_fn_unset
16140 # as_fn_append VAR VALUE
16141 # ----------------------
16142 # Append the text in VALUE to the end of the definition contained in VAR. Take
16143 # advantage of any shell optimizations that allow amortized linear growth over
16144 # repeated appends, instead of the typical quadratic growth present in naive
16145 # implementations.
16146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16147 eval 'as_fn_append ()
16149 eval $1+=\$2
16151 else
16152 as_fn_append ()
16154 eval $1=\$$1\$2
16156 fi # as_fn_append
16158 # as_fn_arith ARG...
16159 # ------------------
16160 # Perform arithmetic evaluation on the ARGs, and store the result in the
16161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16162 # must be portable across $(()) and expr.
16163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16164 eval 'as_fn_arith ()
16166 as_val=$(( $* ))
16168 else
16169 as_fn_arith ()
16171 as_val=`expr "$@" || test $? -eq 1`
16173 fi # as_fn_arith
16176 if expr a : '\(a\)' >/dev/null 2>&1 &&
16177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16178 as_expr=expr
16179 else
16180 as_expr=false
16183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16184 as_basename=basename
16185 else
16186 as_basename=false
16189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16190 as_dirname=dirname
16191 else
16192 as_dirname=false
16195 as_me=`$as_basename -- "$0" ||
16196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16197 X"$0" : 'X\(//\)$' \| \
16198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16199 $as_echo X/"$0" |
16200 sed '/^.*\/\([^/][^/]*\)\/*$/{
16201 s//\1/
16204 /^X\/\(\/\/\)$/{
16205 s//\1/
16208 /^X\/\(\/\).*/{
16209 s//\1/
16212 s/.*/./; q'`
16214 # Avoid depending upon Character Ranges.
16215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16218 as_cr_digits='0123456789'
16219 as_cr_alnum=$as_cr_Letters$as_cr_digits
16221 ECHO_C= ECHO_N= ECHO_T=
16222 case `echo -n x` in #(((((
16223 -n*)
16224 case `echo 'xy\c'` in
16225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16226 xy) ECHO_C='\c';;
16227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16228 ECHO_T=' ';;
16229 esac;;
16231 ECHO_N='-n';;
16232 esac
16234 rm -f conf$$ conf$$.exe conf$$.file
16235 if test -d conf$$.dir; then
16236 rm -f conf$$.dir/conf$$.file
16237 else
16238 rm -f conf$$.dir
16239 mkdir conf$$.dir 2>/dev/null
16241 if (echo >conf$$.file) 2>/dev/null; then
16242 if ln -s conf$$.file conf$$ 2>/dev/null; then
16243 as_ln_s='ln -s'
16244 # ... but there are two gotchas:
16245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16247 # In both cases, we have to default to `cp -p'.
16248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16249 as_ln_s='cp -p'
16250 elif ln conf$$.file conf$$ 2>/dev/null; then
16251 as_ln_s=ln
16252 else
16253 as_ln_s='cp -p'
16255 else
16256 as_ln_s='cp -p'
16258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16259 rmdir conf$$.dir 2>/dev/null
16262 # as_fn_mkdir_p
16263 # -------------
16264 # Create "$as_dir" as a directory, including parents if necessary.
16265 as_fn_mkdir_p ()
16268 case $as_dir in #(
16269 -*) as_dir=./$as_dir;;
16270 esac
16271 test -d "$as_dir" || eval $as_mkdir_p || {
16272 as_dirs=
16273 while :; do
16274 case $as_dir in #(
16275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16276 *) as_qdir=$as_dir;;
16277 esac
16278 as_dirs="'$as_qdir' $as_dirs"
16279 as_dir=`$as_dirname -- "$as_dir" ||
16280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16281 X"$as_dir" : 'X\(//\)[^/]' \| \
16282 X"$as_dir" : 'X\(//\)$' \| \
16283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16284 $as_echo X"$as_dir" |
16285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16286 s//\1/
16289 /^X\(\/\/\)[^/].*/{
16290 s//\1/
16293 /^X\(\/\/\)$/{
16294 s//\1/
16297 /^X\(\/\).*/{
16298 s//\1/
16301 s/.*/./; q'`
16302 test -d "$as_dir" && break
16303 done
16304 test -z "$as_dirs" || eval "mkdir $as_dirs"
16305 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16308 } # as_fn_mkdir_p
16309 if mkdir -p . 2>/dev/null; then
16310 as_mkdir_p='mkdir -p "$as_dir"'
16311 else
16312 test -d ./-p && rmdir ./-p
16313 as_mkdir_p=false
16316 if test -x / >/dev/null 2>&1; then
16317 as_test_x='test -x'
16318 else
16319 if ls -dL / >/dev/null 2>&1; then
16320 as_ls_L_option=L
16321 else
16322 as_ls_L_option=
16324 as_test_x='
16325 eval sh -c '\''
16326 if test -d "$1"; then
16327 test -d "$1/.";
16328 else
16329 case $1 in #(
16330 -*)set "./$1";;
16331 esac;
16332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16333 ???[sx]*):;;*)false;;esac;fi
16334 '\'' sh
16337 as_executable_p=$as_test_x
16339 # Sed expression to map a string onto a valid CPP name.
16340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16342 # Sed expression to map a string onto a valid variable name.
16343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16346 exec 6>&1
16347 ## ----------------------------------- ##
16348 ## Main body of $CONFIG_STATUS script. ##
16349 ## ----------------------------------- ##
16350 _ASEOF
16351 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354 # Save the log message, to keep $0 and so on meaningful, and to
16355 # report actual input values of CONFIG_FILES etc. instead of their
16356 # values after options handling.
16357 ac_log="
16358 This file was extended by aMule $as_me SVN, which was
16359 generated by GNU Autoconf 2.65. Invocation command line was
16361 CONFIG_FILES = $CONFIG_FILES
16362 CONFIG_HEADERS = $CONFIG_HEADERS
16363 CONFIG_LINKS = $CONFIG_LINKS
16364 CONFIG_COMMANDS = $CONFIG_COMMANDS
16365 $ $0 $@
16367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16370 _ACEOF
16372 case $ac_config_files in *"
16373 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16374 esac
16376 case $ac_config_headers in *"
16377 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16378 esac
16381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382 # Files that config.status was made for.
16383 config_files="$ac_config_files"
16384 config_headers="$ac_config_headers"
16385 config_commands="$ac_config_commands"
16387 _ACEOF
16389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16390 ac_cs_usage="\
16391 \`$as_me' instantiates files and other configuration actions
16392 from templates according to the current configuration. Unless the files
16393 and actions are specified as TAGs, all are instantiated by default.
16395 Usage: $0 [OPTION]... [TAG]...
16397 -h, --help print this help, then exit
16398 -V, --version print version number and configuration settings, then exit
16399 --config print configuration, then exit
16400 -q, --quiet, --silent
16401 do not print progress messages
16402 -d, --debug don't remove temporary files
16403 --recheck update $as_me by reconfiguring in the same conditions
16404 --file=FILE[:TEMPLATE]
16405 instantiate the configuration file FILE
16406 --header=FILE[:TEMPLATE]
16407 instantiate the configuration header FILE
16409 Configuration files:
16410 $config_files
16412 Configuration headers:
16413 $config_headers
16415 Configuration commands:
16416 $config_commands
16418 Report bugs to <admin@amule.org>."
16420 _ACEOF
16421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16423 ac_cs_version="\\
16424 aMule config.status SVN
16425 configured by $0, generated by GNU Autoconf 2.65,
16426 with options \\"\$ac_cs_config\\"
16428 Copyright (C) 2009 Free Software Foundation, Inc.
16429 This config.status script is free software; the Free Software Foundation
16430 gives unlimited permission to copy, distribute and modify it."
16432 ac_pwd='$ac_pwd'
16433 srcdir='$srcdir'
16434 INSTALL='$INSTALL'
16435 MKDIR_P='$MKDIR_P'
16436 AWK='$AWK'
16437 test -n "\$AWK" || AWK=awk
16438 _ACEOF
16440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16441 # The default lists apply if the user does not specify any file.
16442 ac_need_defaults=:
16443 while test $# != 0
16445 case $1 in
16446 --*=*)
16447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16448 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16449 ac_shift=:
16452 ac_option=$1
16453 ac_optarg=$2
16454 ac_shift=shift
16456 esac
16458 case $ac_option in
16459 # Handling of the options.
16460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16461 ac_cs_recheck=: ;;
16462 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16463 $as_echo "$ac_cs_version"; exit ;;
16464 --config | --confi | --conf | --con | --co | --c )
16465 $as_echo "$ac_cs_config"; exit ;;
16466 --debug | --debu | --deb | --de | --d | -d )
16467 debug=: ;;
16468 --file | --fil | --fi | --f )
16469 $ac_shift
16470 case $ac_optarg in
16471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16472 esac
16473 as_fn_append CONFIG_FILES " '$ac_optarg'"
16474 ac_need_defaults=false;;
16475 --header | --heade | --head | --hea )
16476 $ac_shift
16477 case $ac_optarg in
16478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16479 esac
16480 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16481 ac_need_defaults=false;;
16482 --he | --h)
16483 # Conflict between --help and --header
16484 as_fn_error "ambiguous option: \`$1'
16485 Try \`$0 --help' for more information.";;
16486 --help | --hel | -h )
16487 $as_echo "$ac_cs_usage"; exit ;;
16488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16490 ac_cs_silent=: ;;
16492 # This is an error.
16493 -*) as_fn_error "unrecognized option: \`$1'
16494 Try \`$0 --help' for more information." ;;
16496 *) as_fn_append ac_config_targets " $1"
16497 ac_need_defaults=false ;;
16499 esac
16500 shift
16501 done
16503 ac_configure_extra_args=
16505 if $ac_cs_silent; then
16506 exec 6>/dev/null
16507 ac_configure_extra_args="$ac_configure_extra_args --silent"
16510 _ACEOF
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 if \$ac_cs_recheck; then
16513 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16514 shift
16515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16516 CONFIG_SHELL='$SHELL'
16517 export CONFIG_SHELL
16518 exec "\$@"
16521 _ACEOF
16522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16523 exec 5>>config.log
16525 echo
16526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16527 ## Running $as_me. ##
16528 _ASBOX
16529 $as_echo "$ac_log"
16530 } >&5
16532 _ACEOF
16533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16535 # INIT-COMMANDS
16537 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16538 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16539 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16540 # from automake.
16541 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16542 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16543 LINGUAS="${LINGUAS-%UNSET%}"
16545 denoiserlevel=$with_denoise_level
16547 _ACEOF
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16551 # Handling of arguments.
16552 for ac_config_target in $ac_config_targets
16554 case $ac_config_target in
16555 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16556 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16557 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16558 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16560 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16561 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16562 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16563 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16564 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16565 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16566 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16567 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16568 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16569 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16570 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16571 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16572 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16573 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16574 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16575 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16576 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16577 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16578 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16579 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16580 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16581 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16582 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16583 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16584 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16585 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16586 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16587 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16588 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16589 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16590 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16591 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16592 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16593 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16595 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16596 esac
16597 done
16600 # If the user did not use the arguments to specify the items to instantiate,
16601 # then the envvar interface is used. Set only those that are not.
16602 # We use the long form for the default assignment because of an extremely
16603 # bizarre bug on SunOS 4.1.3.
16604 if $ac_need_defaults; then
16605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16610 # Have a temporary directory for convenience. Make it in the build tree
16611 # simply because there is no reason against having it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Hook for its removal unless debugging.
16614 # Note that there is a small window in which the directory will not be cleaned:
16615 # after its creation but before its name has been assigned to `$tmp'.
16616 $debug ||
16618 tmp=
16619 trap 'exit_status=$?
16620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16622 trap 'as_fn_exit 1' 1 2 13 15
16624 # Create a (secure) tmp directory for tmp files.
16627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16628 test -n "$tmp" && test -d "$tmp"
16629 } ||
16631 tmp=./conf$$-$RANDOM
16632 (umask 077 && mkdir "$tmp")
16633 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16635 # Set up the scripts for CONFIG_FILES section.
16636 # No need to generate them if there are no CONFIG_FILES.
16637 # This happens for instance with `./config.status config.h'.
16638 if test -n "$CONFIG_FILES"; then
16641 ac_cr=`echo X | tr X '\015'`
16642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16643 # But we know of no other shell where ac_cr would be empty at this
16644 # point, so we can use a bashism as a fallback.
16645 if test "x$ac_cr" = x; then
16646 eval ac_cr=\$\'\\r\'
16648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16650 ac_cs_awk_cr='\r'
16651 else
16652 ac_cs_awk_cr=$ac_cr
16655 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16656 _ACEOF
16660 echo "cat >conf$$subs.awk <<_ACEOF" &&
16661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16662 echo "_ACEOF"
16663 } >conf$$subs.sh ||
16664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16666 ac_delim='%!_!# '
16667 for ac_last_try in false false false false false :; do
16668 . ./conf$$subs.sh ||
16669 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16672 if test $ac_delim_n = $ac_delim_num; then
16673 break
16674 elif $ac_last_try; then
16675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16676 else
16677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16679 done
16680 rm -f conf$$subs.sh
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16684 _ACEOF
16685 sed -n '
16687 s/^/S["/; s/!.*/"]=/
16690 s/^[^!]*!//
16691 :repl
16692 t repl
16693 s/'"$ac_delim"'$//
16694 t delim
16697 s/\(.\{148\}\)..*/\1/
16698 t more1
16699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16702 b repl
16703 :more1
16704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16707 s/.\{148\}//
16708 t nl
16709 :delim
16711 s/\(.\{148\}\)..*/\1/
16712 t more2
16713 s/["\\]/\\&/g; s/^/"/; s/$/"/
16716 :more2
16717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16720 s/.\{148\}//
16721 t delim
16722 ' <conf$$subs.awk | sed '
16723 /^[^""]/{
16725 s/\n//
16727 ' >>$CONFIG_STATUS || ac_write_fail=1
16728 rm -f conf$$subs.awk
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 _ACAWK
16731 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16732 for (key in S) S_is_set[key] = 1
16733 FS = "\a"
16737 line = $ 0
16738 nfields = split(line, field, "@")
16739 substed = 0
16740 len = length(field[1])
16741 for (i = 2; i < nfields; i++) {
16742 key = field[i]
16743 keylen = length(key)
16744 if (S_is_set[key]) {
16745 value = S[key]
16746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16747 len += length(value) + length(field[++i])
16748 substed = 1
16749 } else
16750 len += 1 + keylen
16753 print line
16756 _ACAWK
16757 _ACEOF
16758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16761 else
16763 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16764 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16765 _ACEOF
16767 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16768 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16769 # trailing colons and then remove the whole line if VPATH becomes empty
16770 # (actually we leave an empty line to preserve line numbers).
16771 if test "x$srcdir" = x.; then
16772 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16773 s/:*\$(srcdir):*/:/
16774 s/:*\${srcdir}:*/:/
16775 s/:*@srcdir@:*/:/
16776 s/^\([^=]*=[ ]*\):*/\1/
16777 s/:*$//
16778 s/^[^=]*=[ ]*$//
16782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 fi # test -n "$CONFIG_FILES"
16785 # Set up the scripts for CONFIG_HEADERS section.
16786 # No need to generate them if there are no CONFIG_HEADERS.
16787 # This happens for instance with `./config.status Makefile'.
16788 if test -n "$CONFIG_HEADERS"; then
16789 cat >"$tmp/defines.awk" <<\_ACAWK ||
16790 BEGIN {
16791 _ACEOF
16793 # Transform confdefs.h into an awk script `defines.awk', embedded as
16794 # here-document in config.status, that substitutes the proper values into
16795 # config.h.in to produce config.h.
16797 # Create a delimiter string that does not exist in confdefs.h, to ease
16798 # handling of long lines.
16799 ac_delim='%!_!# '
16800 for ac_last_try in false false :; do
16801 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16802 if test -z "$ac_t"; then
16803 break
16804 elif $ac_last_try; then
16805 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16806 else
16807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16809 done
16811 # For the awk script, D is an array of macro values keyed by name,
16812 # likewise P contains macro parameters if any. Preserve backslash
16813 # newline sequences.
16815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16816 sed -n '
16817 s/.\{148\}/&'"$ac_delim"'/g
16818 t rset
16819 :rset
16820 s/^[ ]*#[ ]*define[ ][ ]*/ /
16821 t def
16823 :def
16824 s/\\$//
16825 t bsnl
16826 s/["\\]/\\&/g
16827 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16828 D["\1"]=" \3"/p
16829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16831 :bsnl
16832 s/["\\]/\\&/g
16833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16834 D["\1"]=" \3\\\\\\n"\\/p
16835 t cont
16836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16837 t cont
16839 :cont
16841 s/.\{148\}/&'"$ac_delim"'/g
16842 t clear
16843 :clear
16844 s/\\$//
16845 t bsnlc
16846 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16848 :bsnlc
16849 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16850 b cont
16851 ' <confdefs.h | sed '
16852 s/'"$ac_delim"'/"\\\
16853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856 for (key in D) D_is_set[key] = 1
16857 FS = "\a"
16859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16860 line = \$ 0
16861 split(line, arg, " ")
16862 if (arg[1] == "#") {
16863 defundef = arg[2]
16864 mac1 = arg[3]
16865 } else {
16866 defundef = substr(arg[1], 2)
16867 mac1 = arg[2]
16869 split(mac1, mac2, "(") #)
16870 macro = mac2[1]
16871 prefix = substr(line, 1, index(line, defundef) - 1)
16872 if (D_is_set[macro]) {
16873 # Preserve the white space surrounding the "#".
16874 print prefix "define", macro P[macro] D[macro]
16875 next
16876 } else {
16877 # Replace #undef with comments. This is necessary, for example,
16878 # in the case of _POSIX_SOURCE, which is predefined and required
16879 # on some systems where configure will not decide to define it.
16880 if (defundef == "undef") {
16881 print "/*", prefix defundef, macro, "*/"
16882 next
16886 { print }
16887 _ACAWK
16888 _ACEOF
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16891 fi # test -n "$CONFIG_HEADERS"
16894 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16895 shift
16896 for ac_tag
16898 case $ac_tag in
16899 :[FHLC]) ac_mode=$ac_tag; continue;;
16900 esac
16901 case $ac_mode$ac_tag in
16902 :[FHL]*:*);;
16903 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16904 :[FH]-) ac_tag=-:-;;
16905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16906 esac
16907 ac_save_IFS=$IFS
16908 IFS=:
16909 set x $ac_tag
16910 IFS=$ac_save_IFS
16911 shift
16912 ac_file=$1
16913 shift
16915 case $ac_mode in
16916 :L) ac_source=$1;;
16917 :[FH])
16918 ac_file_inputs=
16919 for ac_f
16921 case $ac_f in
16922 -) ac_f="$tmp/stdin";;
16923 *) # Look for the file first in the build tree, then in the source tree
16924 # (if the path is not absolute). The absolute path cannot be DOS-style,
16925 # because $ac_f cannot contain `:'.
16926 test -f "$ac_f" ||
16927 case $ac_f in
16928 [\\/$]*) false;;
16929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16930 esac ||
16931 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16932 esac
16933 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16934 as_fn_append ac_file_inputs " '$ac_f'"
16935 done
16937 # Let's still pretend it is `configure' which instantiates (i.e., don't
16938 # use $as_me), people would be surprised to read:
16939 # /* config.h. Generated by config.status. */
16940 configure_input='Generated from '`
16941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16942 `' by configure.'
16943 if test x"$ac_file" != x-; then
16944 configure_input="$ac_file. $configure_input"
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16946 $as_echo "$as_me: creating $ac_file" >&6;}
16948 # Neutralize special characters interpreted by sed in replacement strings.
16949 case $configure_input in #(
16950 *\&* | *\|* | *\\* )
16951 ac_sed_conf_input=`$as_echo "$configure_input" |
16952 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16953 *) ac_sed_conf_input=$configure_input;;
16954 esac
16956 case $ac_tag in
16957 *:-:* | *:-) cat >"$tmp/stdin" \
16958 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16959 esac
16961 esac
16963 ac_dir=`$as_dirname -- "$ac_file" ||
16964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$ac_file" : 'X\(//\)[^/]' \| \
16966 X"$ac_file" : 'X\(//\)$' \| \
16967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$ac_file" |
16969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16970 s//\1/
16973 /^X\(\/\/\)[^/].*/{
16974 s//\1/
16977 /^X\(\/\/\)$/{
16978 s//\1/
16981 /^X\(\/\).*/{
16982 s//\1/
16985 s/.*/./; q'`
16986 as_dir="$ac_dir"; as_fn_mkdir_p
16987 ac_builddir=.
16989 case "$ac_dir" in
16990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16993 # A ".." for each directory in $ac_dir_suffix.
16994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16995 case $ac_top_builddir_sub in
16996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16998 esac ;;
16999 esac
17000 ac_abs_top_builddir=$ac_pwd
17001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17002 # for backward compatibility:
17003 ac_top_builddir=$ac_top_build_prefix
17005 case $srcdir in
17006 .) # We are building in place.
17007 ac_srcdir=.
17008 ac_top_srcdir=$ac_top_builddir_sub
17009 ac_abs_top_srcdir=$ac_pwd ;;
17010 [\\/]* | ?:[\\/]* ) # Absolute name.
17011 ac_srcdir=$srcdir$ac_dir_suffix;
17012 ac_top_srcdir=$srcdir
17013 ac_abs_top_srcdir=$srcdir ;;
17014 *) # Relative name.
17015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17016 ac_top_srcdir=$ac_top_build_prefix$srcdir
17017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17018 esac
17019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17022 case $ac_mode in
17025 # CONFIG_FILE
17028 case $INSTALL in
17029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17031 esac
17032 ac_MKDIR_P=$MKDIR_P
17033 case $MKDIR_P in
17034 [\\/$]* | ?:[\\/]* ) ;;
17035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17036 esac
17037 _ACEOF
17039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17040 # If the template does not know about datarootdir, expand it.
17041 # FIXME: This hack should be removed a few years after 2.60.
17042 ac_datarootdir_hack=; ac_datarootdir_seen=
17043 ac_sed_dataroot='
17044 /datarootdir/ {
17048 /@datadir@/p
17049 /@docdir@/p
17050 /@infodir@/p
17051 /@localedir@/p
17052 /@mandir@/p'
17053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17054 *datarootdir*) ac_datarootdir_seen=yes;;
17055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17057 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17058 _ACEOF
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060 ac_datarootdir_hack='
17061 s&@datadir@&$datadir&g
17062 s&@docdir@&$docdir&g
17063 s&@infodir@&$infodir&g
17064 s&@localedir@&$localedir&g
17065 s&@mandir@&$mandir&g
17066 s&\\\${datarootdir}&$datarootdir&g' ;;
17067 esac
17068 _ACEOF
17070 # Neutralize VPATH when `$srcdir' = `.'.
17071 # Shell code in configure.ac might set extrasub.
17072 # FIXME: do we really want to maintain this feature?
17073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074 ac_sed_extra="$ac_vpsub
17075 $extrasub
17076 _ACEOF
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17080 s|@configure_input@|$ac_sed_conf_input|;t t
17081 s&@top_builddir@&$ac_top_builddir_sub&;t t
17082 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17083 s&@srcdir@&$ac_srcdir&;t t
17084 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17085 s&@top_srcdir@&$ac_top_srcdir&;t t
17086 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17087 s&@builddir@&$ac_builddir&;t t
17088 s&@abs_builddir@&$ac_abs_builddir&;t t
17089 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17090 s&@INSTALL@&$ac_INSTALL&;t t
17091 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17092 $ac_datarootdir_hack
17094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17095 || as_fn_error "could not create $ac_file" "$LINENO" 5
17097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17101 which seems to be undefined. Please make sure it is defined." >&5
17102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17103 which seems to be undefined. Please make sure it is defined." >&2;}
17105 rm -f "$tmp/stdin"
17106 case $ac_file in
17107 -) cat "$tmp/out" && rm -f "$tmp/out";;
17108 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17109 esac \
17110 || as_fn_error "could not create $ac_file" "$LINENO" 5
17114 # CONFIG_HEADER
17116 if test x"$ac_file" != x-; then
17118 $as_echo "/* $configure_input */" \
17119 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17120 } >"$tmp/config.h" \
17121 || as_fn_error "could not create $ac_file" "$LINENO" 5
17122 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17124 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17125 else
17126 rm -f "$ac_file"
17127 mv "$tmp/config.h" "$ac_file" \
17128 || as_fn_error "could not create $ac_file" "$LINENO" 5
17130 else
17131 $as_echo "/* $configure_input */" \
17132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17133 || as_fn_error "could not create -" "$LINENO" 5
17135 # Compute "$ac_file"'s index in $config_headers.
17136 _am_arg="$ac_file"
17137 _am_stamp_count=1
17138 for _am_header in $config_headers :; do
17139 case $_am_header in
17140 $_am_arg | $_am_arg:* )
17141 break ;;
17143 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17144 esac
17145 done
17146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17148 X"$_am_arg" : 'X\(//\)[^/]' \| \
17149 X"$_am_arg" : 'X\(//\)$' \| \
17150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17151 $as_echo X"$_am_arg" |
17152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17153 s//\1/
17156 /^X\(\/\/\)[^/].*/{
17157 s//\1/
17160 /^X\(\/\/\)$/{
17161 s//\1/
17164 /^X\(\/\).*/{
17165 s//\1/
17168 s/.*/./; q'`/stamp-h$_am_stamp_count
17171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17172 $as_echo "$as_me: executing $ac_file commands" >&6;}
17174 esac
17177 case $ac_file$ac_mode in
17178 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17179 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17180 # are listed without --file. Let's play safe and only enable the eval
17181 # if we detect the quoting.
17182 case $CONFIG_FILES in
17183 *\'*) eval set x "$CONFIG_FILES" ;;
17184 *) set x $CONFIG_FILES ;;
17185 esac
17186 shift
17187 for mf
17189 # Strip MF so we end up with the name of the file.
17190 mf=`echo "$mf" | sed -e 's/:.*$//'`
17191 # Check whether this is an Automake generated Makefile or not.
17192 # We used to match only the files named `Makefile.in', but
17193 # some people rename them; so instead we look at the file content.
17194 # Grep'ing the first line is not enough: some people post-process
17195 # each Makefile.in and add a new line on top of each file to say so.
17196 # Grep'ing the whole file is not good either: AIX grep has a line
17197 # limit of 2048, but all sed's we know have understand at least 4000.
17198 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17199 dirpart=`$as_dirname -- "$mf" ||
17200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17201 X"$mf" : 'X\(//\)[^/]' \| \
17202 X"$mf" : 'X\(//\)$' \| \
17203 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17204 $as_echo X"$mf" |
17205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17206 s//\1/
17209 /^X\(\/\/\)[^/].*/{
17210 s//\1/
17213 /^X\(\/\/\)$/{
17214 s//\1/
17217 /^X\(\/\).*/{
17218 s//\1/
17221 s/.*/./; q'`
17222 else
17223 continue
17225 # Extract the definition of DEPDIR, am__include, and am__quote
17226 # from the Makefile without running `make'.
17227 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17228 test -z "$DEPDIR" && continue
17229 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17230 test -z "am__include" && continue
17231 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17232 # When using ansi2knr, U may be empty or an underscore; expand it
17233 U=`sed -n 's/^U = //p' < "$mf"`
17234 # Find all dependency output files, they are included files with
17235 # $(DEPDIR) in their names. We invoke sed twice because it is the
17236 # simplest approach to changing $(DEPDIR) to its actual value in the
17237 # expansion.
17238 for file in `sed -n "
17239 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17241 # Make sure the directory exists.
17242 test -f "$dirpart/$file" && continue
17243 fdir=`$as_dirname -- "$file" ||
17244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X"$file" : 'X\(//\)[^/]' \| \
17246 X"$file" : 'X\(//\)$' \| \
17247 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17248 $as_echo X"$file" |
17249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17250 s//\1/
17253 /^X\(\/\/\)[^/].*/{
17254 s//\1/
17257 /^X\(\/\/\)$/{
17258 s//\1/
17261 /^X\(\/\).*/{
17262 s//\1/
17265 s/.*/./; q'`
17266 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17267 # echo "creating $dirpart/$file"
17268 echo '# dummy' > "$dirpart/$file"
17269 done
17270 done
17273 "default-1":C)
17274 for ac_file in $CONFIG_FILES; do
17275 # Support "outfile[:infile[:infile...]]"
17276 case "$ac_file" in
17277 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17278 esac
17279 # PO directories have a Makefile.in generated from Makefile.in.in.
17280 case "$ac_file" in */Makefile.in)
17281 # Adjust a relative srcdir.
17282 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17283 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17284 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17285 # In autoconf-2.13 it is called $ac_given_srcdir.
17286 # In autoconf-2.50 it is called $srcdir.
17287 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17288 case "$ac_given_srcdir" in
17289 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17290 /*) top_srcdir="$ac_given_srcdir" ;;
17291 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17292 esac
17293 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17294 rm -f "$ac_dir/POTFILES"
17295 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17296 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17297 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17298 # on $ac_dir but don't depend on user-specified configuration
17299 # parameters.
17300 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17301 # The LINGUAS file contains the set of available languages.
17302 if test -n "$ALL_LINGUAS"; then
17303 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17305 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17306 # Hide the ALL_LINGUAS assigment from automake.
17307 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17309 case "$ac_given_srcdir" in
17310 .) srcdirpre= ;;
17311 *) srcdirpre='$(srcdir)/' ;;
17312 esac
17313 POFILES=
17314 GMOFILES=
17315 UPDATEPOFILES=
17316 DUMMYPOFILES=
17317 for lang in $ALL_LINGUAS; do
17318 POFILES="$POFILES $srcdirpre$lang.po"
17319 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17320 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17321 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17322 done
17323 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17324 # environment variable.
17325 INST_LINGUAS=
17326 if test -n "$ALL_LINGUAS"; then
17327 for presentlang in $ALL_LINGUAS; do
17328 useit=no
17329 if test "%UNSET%" != "$LINGUAS"; then
17330 desiredlanguages="$LINGUAS"
17331 else
17332 desiredlanguages="$ALL_LINGUAS"
17334 for desiredlang in $desiredlanguages; do
17335 # Use the presentlang catalog if desiredlang is
17336 # a. equal to presentlang, or
17337 # b. a variant of presentlang (because in this case,
17338 # presentlang can be used as a fallback for messages
17339 # which are not translated in the desiredlang catalog).
17340 case "$desiredlang" in
17341 "$presentlang"*) useit=yes;;
17342 esac
17343 done
17344 if test $useit = yes; then
17345 INST_LINGUAS="$INST_LINGUAS $presentlang"
17347 done
17349 CATALOGS=
17350 if test -n "$INST_LINGUAS"; then
17351 for lang in $INST_LINGUAS; do
17352 CATALOGS="$CATALOGS $lang.gmo"
17353 done
17355 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17356 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"
17357 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17358 if test -f "$f"; then
17359 case "$f" in
17360 *.orig | *.bak | *~) ;;
17361 *) cat "$f" >> "$ac_dir/Makefile" ;;
17362 esac
17364 done
17367 esac
17368 done ;;
17369 "denoiser":C) if test $denoiserlevel -gt 0; then
17370 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17371 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" \
17372 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17373 for i in `find . -name 'Makefile' -print`; do
17374 if test -n "`head -n 1 $i | grep '^#'`"; then
17375 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17377 done
17378 fi ;;
17380 esac
17381 done # for ac_tag
17384 as_fn_exit 0
17385 _ACEOF
17386 ac_clean_files=$ac_clean_files_save
17388 test $ac_write_fail = 0 ||
17389 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17392 # configure is writing to config.log, and then calls config.status.
17393 # config.status does its own redirection, appending to config.log.
17394 # Unfortunately, on DOS this fails, as config.log is still kept open
17395 # by configure, so config.status won't be able to write to it; its
17396 # output is simply discarded. So we exec the FD to /dev/null,
17397 # effectively closing config.log, so it can be properly (re)opened and
17398 # appended to by config.status. When coming back to configure, we
17399 # need to make the FD available again.
17400 if test "$no_create" != yes; then
17401 ac_cs_success=:
17402 ac_config_status_args=
17403 test "$silent" = yes &&
17404 ac_config_status_args="$ac_config_status_args --quiet"
17405 exec 5>/dev/null
17406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17407 exec 5>>config.log
17408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17409 # would make configure fail if this is the last instruction.
17410 $ac_cs_success || as_fn_exit $?
17412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17414 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17418 if test -n "$svndate"; then :
17419 SVN_REVISION=" ($svndate)"
17420 else
17421 SVN_REVISION=
17424 echo
17425 echo
17426 echo " Configure script has finished system check."
17427 echo
17428 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17429 echo
17430 echo " aMule enabled options:"
17431 echo
17432 echo " **** aMule Core ****"
17433 echo " Prefix where aMule should be installed? ${prefix:-none}"
17434 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17435 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17436 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17437 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17438 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17439 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17440 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17441 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17442 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17443 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17445 echo
17446 echo " **** aMule TextClient ****"
17447 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17448 echo
17449 echo " **** aMule WebServer ****"
17450 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17451 echo
17452 echo " **** aMule ED2K Links Handler ****"
17453 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17454 echo
17455 echo " **** aMuleLinkCreator ****"
17456 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17457 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17458 echo
17459 echo " **** aMule Statistics ****"
17460 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17461 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17462 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17463 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17465 echo
17466 echo " **** General Libraries and Tools ****"
17467 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17468 echo " Libraries aMule will use to build:"
17469 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 :
17471 wxinfo="$WX_PORT"
17472 if test $WX_DEBUG -eq 1; then :
17473 wxinfo="$wxinfo,debug"
17475 if test $WX_SHARED -eq 1; then :
17476 wxinfo="$wxinfo,shared"
17477 else
17478 wxinfo="$wxinfo,static"
17480 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17483 if test ${with_boost:-no} != no; then :
17484 if test ${with_boost:-no} = disabled; then
17485 echo " boost Not detected"
17486 elif test ${boost_cv_inc_path:-yes} != yes; then
17487 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
17488 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
17493 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17494 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17496 if test ${enable_upnp:-yes} = yes; then :
17498 if test -n "$with_libupnp_prefix"; then :
17499 libupnp_place=" (in $with_libupnp_prefix)"
17501 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17504 if test ${enable_nls:-yes} = yes; then
17505 if test x$USE_NLS = xno; then :
17506 libintl_found="Not detected"
17507 else
17508 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17509 libintl_found="included"
17510 else
17511 libintl_found="system"
17514 echo " libintl $libintl_found"
17516 if test ${enable_geoip:-no} = yes; then :
17517 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17518 geoip_style=system
17519 else
17520 geoip_style=user
17522 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17523 echo " libGeoIP ${geoip_style}"
17526 if test ${enable_webserver:-no} = yes; then :
17527 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17529 if test ${enable_cas:-no} = yes; then :
17530 echo " libgd ${GDLIB_VERSION:-Not detected}"
17532 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 :
17533 echo " zlib ${ZLIB_VERSION:-Not detected}"
17535 if test ${enable_plasmamule:-no} = yes; then :
17536 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17537 echo " qt-core-libs ${QT_CORE_LIBS}"
17538 echo " qt-gui-libs ${QT_GUI_LIBS}"
17539 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17540 echo " kde-headers ${KDE_HEADER_DIR}"
17541 echo " kde-services-path ${KDE_SERVICE_PATH}"
17542 echo " kde-module-path ${KDE_MODULE_PATH}"
17543 echo " kde-icon-path ${KDE_ICON_PATH}"
17544 echo " kde-mime-path ${KDE_MIME_PATH}"
17545 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17548 if test ${_mule_has_warnings:-no} = yes; then
17549 echo ""
17550 echo ""
17551 echo " *** Warnings during configuration ***"
17553 if test ${_mule_warning_0:-no} = yes; then
17554 cat <<_MULEEOT
17556 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17557 Please check that gdlib-config is in your default path, check out
17558 LD_LIBRARY_PATH or equivalent variable.
17559 Or this might also be that your gdlib-config has other name.
17560 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17561 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17562 If you use compiled packages check if you have devel pack installed.
17563 To download the latest version check http://www.boutell.com/gd for sources.
17564 _MULEEOT
17566 if test ${_mule_warning_1:-no} = yes; then
17567 cat <<_MULEEOT
17569 * libpng >= 1.2.0 not found.
17570 amuleweb will be compiled but file download progress bar images will NOT be
17571 generated.
17572 _MULEEOT
17574 if test ${_mule_warning_2:-no} = yes; then
17575 cat <<_MULEEOT
17577 * File::Copy perl module is required by the mldonkey_importer script.
17578 If you want to use this script please install File::Copy from CPAN.
17579 _MULEEOT
17581 if test ${_mule_warning_3:-no} = yes; then
17582 cat <<_MULEEOT
17584 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17585 _MULEEOT
17587 if test ${_mule_warning_4:-no} = yes; then
17588 cat <<_MULEEOT
17590 * GeoIP support has been disabled because the GeoIP libraries were not found
17591 _MULEEOT
17593 if test ${_mule_warning_5:-no} = yes; then
17594 cat <<_MULEEOT
17596 * GeoIP support has been disabled because the GeoIP header files were not
17597 found
17598 _MULEEOT
17600 if test ${_mule_warning_6:-no} = yes; then
17601 cat <<_MULEEOT
17603 * UPnP code has been disabled because ${libupnp_error}.
17604 _MULEEOT
17606 if test ${_mule_warning_7:-no} = yes; then
17607 cat <<_MULEEOT
17609 * Cross-compilation detected, so exception handling cannot be tested.
17610 Note that broken exception handling in your compiler may lead to unexpected
17611 crashes.
17612 _MULEEOT
17614 if test ${_mule_warning_8:-no} = yes; then
17615 cat <<_MULEEOT
17617 * Boost support has been disabled because Boost.System not found
17618 _MULEEOT
17620 if test ${_mule_warning_9:-no} = yes; then
17621 cat <<_MULEEOT
17623 * Boost support has been disabled because Boost.Asio not found
17624 _MULEEOT
17626 if test ${_mule_warning_10:-no} = yes; then
17627 cat <<_MULEEOT
17629 * Boost support has been disabled because Boost.Asio not found
17630 _MULEEOT
17632 if test ${_mule_warning_11:-no} = yes; then
17633 cat <<_MULEEOT
17635 * Boost support has been disabled because of insufficient Boost version.
17636 _MULEEOT
17638 if test ${_mule_warning_12:-no} = yes; then
17639 cat <<_MULEEOT
17641 * configure cannot check whether malloc() and realloc() are GNU libc
17642 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17643 configure with the --without-gnu-malloc switch.
17644 _MULEEOT
17646 if test ${_mule_warning_13:-no} = yes; then
17647 cat <<_MULEEOT
17649 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17650 support.
17651 _MULEEOT
17653 if test ${_mule_warning_14:-no} = yes; then
17654 cat <<_MULEEOT
17656 * bfd.h not found or unusable, please install binutils development package if
17657 you are a developer or want to help testing aMule
17658 _MULEEOT