debian: fix build-deps for focal
[amule.git] / configure
blob2fd63491f7b8f2e139d98ed9b2aa724acc6a9eee
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='aMule'
582 PACKAGE_TARNAME='amule'
583 PACKAGE_VERSION='SVN'
584 PACKAGE_STRING='aMule SVN'
585 PACKAGE_BUGREPORT='admin@amule.org'
586 PACKAGE_URL=''
588 ac_unique_file="src/amule.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_header_list=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 COMPILE_LIB_EC_FALSE
630 COMPILE_LIB_EC_TRUE
631 COMPILE_LIB_COMMON_FALSE
632 COMPILE_LIB_COMMON_TRUE
633 PLASMAMULE_FALSE
634 PLASMAMULE_TRUE
635 INSTALL_SKINS_FALSE
636 INSTALL_SKINS_TRUE
637 COMPILE_NLS_FALSE
638 COMPILE_NLS_TRUE
639 NEED_CORESERVICES_FALSE
640 NEED_CORESERVICES_TRUE
641 NEED_RC_FALSE
642 NEED_RC_TRUE
643 SYS_WIN32_FALSE
644 SYS_WIN32_TRUE
645 SVNDATE
646 READLINE_LIBS
647 DEBUGFLAG
648 KDE_MIME_PATH
649 KDE_ICON_PATH
650 KDE_MODULE_PATH
651 KDE_SERVICE_PATH
652 KDE_APPLNK_PATH
653 KDE_HEADER_DIR
654 KDE4_CONFIG
655 QT_GUI_LIBS
656 QT_GUI_CXXFLAGS
657 QT_CORE_LIBS
658 QT_CORE_CXXFLAGS
659 QT_DBUS_LDFLAGS
660 QT_MOC
661 BFD_LIBS
662 BFD_CPPFLAGS
663 INCINTL
664 MONOLITHIC_MANPAGES
665 ALCC_MANPAGES
666 ALC_MANPAGES
667 ED2K_MANPAGES
668 WXCAS_MANPAGES
669 CAS_MANPAGES
670 AMULE_GUI_MANPAGES
671 WEBSERVER_MANPAGES
672 AMULECMD_MANPAGES
673 AMULE_DAEMON_MANPAGES
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 INTL_LIBTOOL_SUFFIX_PREFIX
679 GENCAT
680 INSTOBJEXT
681 DATADIRNAME
682 INTLOBJS
683 CATOBJEXT
684 USE_INCLUDED_LIBINTL
685 BUILD_INCLUDED_LIBINTL
686 USE_NLS
687 INTLBISON
688 LTLIBICONV
689 LIBICONV
690 GLIBC21
691 MSGMERGE
692 XGETTEXT
693 GMSGFMT
694 MSGFMT
695 MKINSTALLDIRS
696 POW_LIB
697 LIBOBJS
698 ALLOCA
699 BOOST_SYSTEM_LIBS
700 BOOST_LDPATH
701 BOOST_SYSTEM_LDPATH
702 BOOST_SYSTEM_LDFLAGS
703 BOOST_CPPFLAGS
704 DISTCHECK_CONFIGURE_FLAGS
705 BOOST_ROOT
706 CRYPTOPP_LIBS
707 CRYPTOPP_LDFLAGS
708 CRYPTOPP_CPPFLAGS
709 LIBUPNP_LIBS
710 LIBUPNP_LDFLAGS
711 LIBUPNP_CFLAGS
712 LIBUPNP_CPPFLAGS
713 RCFLAGS
715 WXBASE_CPPFLAGS
716 WXBASE_LIBS
717 WX_PORT
718 WX_SHARED
719 WX_DEBUG
720 WX_UNICODE
721 WX_VERSION_MICRO
722 WX_VERSION_MINOR
723 WX_VERSION_MAJOR
724 WX_RESCOMP
725 WX_VERSION
726 WX_LIBS_STATIC
727 WX_LIBS
728 WX_CXXFLAGS_ONLY
729 WX_CFLAGS_ONLY
730 WX_CXXFLAGS
731 WX_CFLAGS
732 WX_CPPFLAGS
733 WX_CONFIG_PATH
734 AMULEWEB_DEFS
735 LIBPNG_LIBS
736 LIBPNG_LDFLAGS
737 LIBPNG_CFLAGS
738 LIBPNG_CONFIG_PATH
739 ZLIB_LIBS
740 ZLIB_LDFLAGS
741 ZLIB_CPPFLAGS
742 CAS_DEFS
743 GDLIB_LIBS
744 GDLIB_LDFLAGS
745 GDLIB_CFLAGS
746 GDLIB_CONFIG_PATH
747 PKG_CONFIG
748 FILEVIEW_FALSE
749 FILEVIEW_TRUE
750 XAS_FALSE
751 XAS_TRUE
752 ALCC_FALSE
753 ALCC_TRUE
754 ALC_FALSE
755 ALC_TRUE
756 ED2K_FALSE
757 ED2K_TRUE
758 WXCAS_FALSE
759 WXCAS_TRUE
760 CAS_FALSE
761 CAS_TRUE
762 AMULE_GUI_FALSE
763 AMULE_GUI_TRUE
764 WEB_FALSE
765 WEB_TRUE
766 COMPILE_CMD_FALSE
767 COMPILE_CMD_TRUE
768 AMULE_DAEMON_FALSE
769 AMULE_DAEMON_TRUE
770 MONOLITHIC_FALSE
771 MONOLITHIC_TRUE
775 RANLIB
776 EGREP
777 GREP
778 BUILD_LDFLAGS
779 BUILD_CFLAGS
780 BUILD_CPPFLAGS
781 BUILD_EXEEXT
782 ac_ct_BUILD_CC
783 BUILD_CC
785 am__fastdepCC_FALSE
786 am__fastdepCC_TRUE
787 CCDEPMODE
788 ac_ct_CC
789 CFLAGS
791 CXXCPP
792 am__fastdepCXX_FALSE
793 am__fastdepCXX_TRUE
794 CXXDEPMODE
795 am__nodep
796 AMDEPBACKSLASH
797 AMDEP_FALSE
798 AMDEP_TRUE
799 am__quote
800 am__include
801 DEPDIR
802 OBJEXT
803 EXEEXT
804 ac_ct_CXX
805 CPPFLAGS
806 LDFLAGS
807 CXXFLAGS
809 MULERCFLAGS
810 MULELDFLAGS
811 MULECXXFLAGS
812 MULECFLAGS
813 MULECPPFLAGS
814 RESOLV_LIB
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 MAINT
824 MAINTAINER_MODE_FALSE
825 MAINTAINER_MODE_TRUE
826 AM_BACKSLASH
827 AM_DEFAULT_VERBOSITY
828 AM_DEFAULT_V
829 AM_V
830 am__untar
831 am__tar
832 AMTAR
833 am__leading_dot
834 SET_MAKE
836 mkdir_p
837 MKDIR_P
838 INSTALL_STRIP_PROGRAM
839 STRIP
840 install_sh
841 MAKEINFO
842 AUTOHEADER
843 AUTOMAKE
844 AUTOCONF
845 ACLOCAL
846 VERSION
847 PACKAGE
848 CYGPATH_W
849 am__isrc
850 INSTALL_DATA
851 INSTALL_SCRIPT
852 INSTALL_PROGRAM
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 runstatedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL
892 GEOIP_LIBS
893 GEOIP_LDFLAGS
894 GEOIP_CPPFLAGS'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_silent_rules
899 enable_maintainer_mode
900 enable_dependency_tracking
901 enable_monolithic
902 enable_amule_daemon
903 enable_amulecmd
904 enable_webserver
905 enable_amule_gui
906 enable_cas
907 enable_wxcas
908 enable_ed2k
909 enable_alc
910 enable_alcc
911 enable_xas
912 enable_fileview
913 enable_plasmamule
914 enable_static
915 with_kde4_config
916 enable_kde_in_home
917 with_moc
918 with_gnu_malloc
919 with_gdlib_prefix
920 with_gdlib_config
921 with_zlib
922 with_libpng_prefix
923 with_libpng_config
924 enable_geoip
925 with_geoip_headers
926 with_geoip_lib
927 with_geoip_static
928 with_wxdir
929 with_wx_config
930 with_wx_prefix
931 with_wx_exec_prefix
932 with_toolkit
933 with_wxshared
934 with_wxdebug
935 with_wxversion
936 enable_upnp
937 with_libupnp_prefix
938 with_crypto_prefix
939 enable_debug
940 enable_profile
941 enable_optimize
942 with_boost
943 enable_static_boost
944 enable_mmap
945 with_language
946 with_gnu_ld
947 enable_rpath
948 with_libiconv_prefix
949 enable_nls
950 with_included_gettext
951 with_libintl_prefix
952 with_denoise_level
953 enable_ccache
954 with_ccache_prefix
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
960 CXXFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
965 CXXCPP
967 CFLAGS
969 PKG_CONFIG
971 RCFLAGS
972 BOOST_ROOT'
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 ac_unrecognized_opts=
979 ac_unrecognized_sep=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 runstatedir='${localstatedir}/run'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1035 case $ac_option in
1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *=) ac_optarg= ;;
1038 *) ac_optarg=yes ;;
1039 esac
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1045 ac_dashdash=yes ;;
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1096 ac_prev=docdir ;;
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 ac_prev=dvidir ;;
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1264 -runstatedir | --runstatedir | --runstatedi | --runstated \
1265 | --runstate | --runstat | --runsta | --runst | --runs \
1266 | --run | --ru | --r)
1267 ac_prev=runstatedir ;;
1268 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1269 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1270 | --run=* | --ru=* | --r=*)
1271 runstatedir=$ac_optarg ;;
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 ac_prev=sbindir ;;
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 | --sbi=* | --sb=*)
1277 sbindir=$ac_optarg ;;
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1282 | --sha | --sh)
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 | --sha=* | --sh=*)
1288 sharedstatedir=$ac_optarg ;;
1290 -site | --site | --sit)
1291 ac_prev=site ;;
1292 -site=* | --site=* | --sit=*)
1293 site=$ac_optarg ;;
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 ac_prev=srcdir ;;
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 verbose=yes ;;
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1318 -with-* | --with-*)
1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error $? "invalid package name: $ac_useropt"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1327 "with_$ac_useropt"
1328 "*) ;;
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1331 esac
1332 eval with_$ac_useropt=\$ac_optarg ;;
1334 -without-* | --without-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error $? "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=no ;;
1350 --x)
1351 # Obsolete; use --with-x.
1352 with_x=yes ;;
1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355 | --x-incl | --x-inc | --x-in | --x-i)
1356 ac_prev=x_includes ;;
1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359 x_includes=$ac_optarg ;;
1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363 ac_prev=x_libraries ;;
1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366 x_libraries=$ac_optarg ;;
1368 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information"
1372 *=*)
1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374 # Reject names that are not valid shell variable names.
1375 case $ac_envvar in #(
1376 '' | [0-9]* | *[!_$as_cr_alnum]* )
1377 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1378 esac
1379 eval $ac_envvar=\$ac_optarg
1380 export $ac_envvar ;;
1383 # FIXME: should be removed in autoconf 3.0.
1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1390 esac
1391 done
1393 if test -n "$ac_prev"; then
1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 as_fn_error $? "missing argument to $ac_option"
1398 if test -n "$ac_unrecognized_opts"; then
1399 case $enable_option_checking in
1400 no) ;;
1401 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403 esac
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir runstatedir
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1414 case $ac_val in
1415 */ )
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1418 esac
1419 # Be sure to have absolute directory names.
1420 case $ac_val in
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 esac
1424 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1425 done
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 elif test "x$build_alias" != "x$host_alias"; then
1439 cross_compiling=yes
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446 test "$silent" = yes && exec 6>/dev/null
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452 as_fn_error $? "working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454 as_fn_error $? "pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 s//\1/
1471 /^X\(\/\/\)[^/].*/{
1472 s//\1/
1475 /^X\(\/\/\)$/{
1476 s//\1/
1479 /^X\(\/\).*/{
1480 s//\1/
1483 s/.*/./; q'`
1484 srcdir=$ac_confdir
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 srcdir=..
1488 else
1489 ac_srcdir_defaulted=no
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1495 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 ac_abs_confdir=`(
1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1517 # Report the --help message.
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures aMule SVN to adapt to many kinds of systems.
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1530 Defaults for the options are specified in brackets.
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking ...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1554 For better control, use the options below.
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1577 _ACEOF
1579 cat <<\_ACEOF
1581 Program names:
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1586 System types:
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1589 _ACEOF
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of aMule SVN:";;
1595 esac
1596 cat <<\_ACEOF
1598 Optional Features:
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-silent-rules less verbose build output (undo: "make V=1")
1603 --disable-silent-rules verbose build output (undo: "make V=0")
1604 --enable-maintainer-mode
1605 enable make rules and dependencies not useful (and
1606 sometimes confusing) to the casual installer
1607 --enable-dependency-tracking
1608 do not reject slow dependency extractors
1609 --disable-dependency-tracking
1610 speeds up one-time build
1611 --disable-monolithic disable building of the monolithic aMule app
1612 --enable-amule-daemon compile aMule daemon version
1613 --enable-amulecmd compile aMule command line client
1614 --enable-webserver compile aMule WebServer
1615 --enable-amule-gui compile aMule remote GUI
1616 --enable-cas compile C aMule Statistics
1617 --enable-wxcas compile aMule GUI Statistics
1618 --disable-ed2k don't compile aMule ed2k links handler
1619 --enable-alc compile aMuleLinkCreator GUI version
1620 --enable-alcc compile aMuleLinkCreator for console
1621 --enable-xas install xas XChat2 plugin
1622 --enable-fileview compile aMule file viewer for console
1623 --enable-plasmamule compile aMule plasma applet and engine
1624 --enable-static produce a statically linked executable
1625 --enable-kde-in-home install KDE related stuff in your home dir
1626 --enable-geoip compile with GeoIP IP2Country library
1627 --disable-upnp do not compile UPnP code
1628 --disable-debug disable additional debugging output
1629 --enable-profile enable code profiling
1630 --enable-optimize enable code optimization
1631 --enable-static-boost Prefer the static boost libraries over the shared
1632 ones [no]
1633 --enable-mmap enable using mapped memory if supported
1634 --disable-rpath do not hardcode runtime library paths
1635 --disable-nls do not use Native Language Support
1636 --enable-ccache enable ccache support for fast recompilation
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-kde4-config=PATH kde4-config script to use
1642 --with-moc=PATH Search in PATH for Qt's meta object compiler
1643 --without-gnu-malloc Don't assume that we use GNU libc compatible
1644 malloc/realloc when cross-compiling
1645 --with-gdlib-prefix=PREFIX
1646 prefix where gdlib is installed (optional)
1647 --with-gdlib-config=CONFIG
1648 gdlib-config script to use (optional)
1649 --with-zlib=PREFIX use zlib in PREFIX
1650 --with-libpng-prefix=PREFIX
1651 prefix where libpng is installed (optional)
1652 --with-libpng-config=CONFIG
1653 libpng-config script to use (optional)
1654 --with-geoip-headers=DIR
1655 GeoIP include files location
1656 --with-geoip-lib=DIR GeoIP library location
1657 --with-geoip-static Explicitly link GeoIP statically (default=no)
1658 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1659 --with-wx-config=CONFIG wx-config script to use (optional)
1660 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1661 --with-wx-exec-prefix=PREFIX
1662 Exec prefix where wxWidgets is installed (optional)
1663 --with-toolkit Build against a specific wxWidgets toolkit (default
1664 is auto)
1665 --with-wxshared Force building against a shared build of wxWidgets,
1666 even if --disable-shared is given (default is auto)
1667 --with-wxdebug Force building against a debug build of wxWidgets,
1668 even if --disable-debug is given (default is auto)
1669 --with-wxversion Build against a specific version of wxWidgets
1670 (default is auto)
1672 --with-libupnp-prefix=PREFIX
1673 UPnP library location
1674 --with-crypto-prefix=PREFIX
1675 prefix where crypto++ is installed
1676 --with-boost[=DIR] use Boost.Asio for networking
1677 --with-language=<langs> Specify a comma-separated list of languages you want
1678 to have installed. See po/LINGUAS for available
1679 languages
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-included-gettext use the GNU gettext library included here
1684 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-denoise-level=<level>
1687 Specifies denoising level (0-4):
1688 0 - Do nothing
1689 4 - Suppress all normal output
1690 (for more information see
1691 src/utils/scripts/denoiser.rules)
1693 --with-ccache-prefix=PREFIX
1694 prefix where ccache is installed
1696 Some influential environment variables:
1697 CXX C++ compiler command
1698 CXXFLAGS C++ compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXXCPP C++ preprocessor
1705 CC C compiler command
1706 CFLAGS C compiler flags
1707 CPP C preprocessor
1708 PKG_CONFIG path to pkg-config utility
1709 RC Resource Compiler
1710 RCFLAGS Resource Compiler Flags
1711 BOOST_ROOT Location of Boost installation
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to <admin@amule.org>.
1717 _ACEOF
1718 ac_status=$?
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 aMule configure SVN
1780 generated by GNU Autoconf 2.69
1782 Copyright (C) 2012 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_cxx_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_cxx_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; 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; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_cxx_try_compile
1831 # ac_fn_cxx_try_cpp LINENO
1832 # ------------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_cpp ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_cxx_try_cpp
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext
1875 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; 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; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_cpp ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1913 case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i && {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 }; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=1
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_cpp
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 else
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1971 else
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1987 else
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 yes:no: )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 no:yes:* )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------ ##
2014 ## Report this to admin@amule.org ##
2015 ## ------------------------------ ##"
2016 ) | sed "s/^/$as_me: WARNING: /" >&2
2018 esac
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=\$ac_header_compiler"
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_run
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2108 # -------------------------------------------
2109 # Tests whether TYPE exists after having included INCLUDES, setting cache
2110 # variable VAR accordingly.
2111 ac_fn_c_check_type ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 eval "$3=no"
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 if (sizeof ($2))
2127 return 0;
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 if (sizeof (($2)))
2140 return 0;
2142 return 0;
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2147 else
2148 eval "$3=yes"
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_c_check_type
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { { ac_try="$ac_link"
2169 case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest$ac_exeext && {
2187 test "$cross_compiling" = yes ||
2188 test -x conftest$ac_exeext
2189 }; then :
2190 ac_retval=0
2191 else
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 ac_retval=1
2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199 # interfere with the next link command; also delete a directory that is
2200 # left behind by Apple's compiler. We do this before executing the actions.
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_cxx_try_link
2207 # ac_fn_cxx_try_run LINENO
2208 # ------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2210 # that executables *can* be run.
2211 ac_fn_cxx_try_run ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 if { { ac_try="$ac_link"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_link") 2>&5
2222 ac_status=$?
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2225 { { case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228 esac
2229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230 $as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_try") 2>&5
2232 ac_status=$?
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; }; }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: program exited with status $ac_status" >&5
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 ac_retval=$ac_status
2243 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 as_fn_set_status $ac_retval
2247 } # ac_fn_cxx_try_run
2249 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2250 # ---------------------------------------------------------
2251 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2252 # the include files in INCLUDES and setting the cache variable VAR
2253 # accordingly.
2254 ac_fn_cxx_check_header_mongrel ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if eval \${$3+:} false; then :
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 else
2267 # Is the header compilable?
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2269 $as_echo_n "checking $2 usability... " >&6; }
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2273 #include <$2>
2274 _ACEOF
2275 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 ac_header_compiler=yes
2277 else
2278 ac_header_compiler=no
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2282 $as_echo "$ac_header_compiler" >&6; }
2284 # Is the header present?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2286 $as_echo_n "checking $2 presence... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_cxx_try_cpp "$LINENO"; then :
2292 ac_header_preproc=yes
2293 else
2294 ac_header_preproc=no
2296 rm -f conftest.err conftest.i conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2298 $as_echo "$ac_header_preproc" >&6; }
2300 # So? What about this header?
2301 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2302 yes:no: )
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2304 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 no:yes:* )
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2310 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2312 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2314 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2316 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 ( $as_echo "## ------------------------------ ##
2320 ## Report this to admin@amule.org ##
2321 ## ------------------------------ ##"
2322 ) | sed "s/^/$as_me: WARNING: /" >&2
2324 esac
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 eval "$3=\$ac_header_compiler"
2332 eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_cxx_check_header_mongrel
2340 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2341 # ---------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_cxx_check_type ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \${$3+:} false; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 eval "$3=no"
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 if (sizeof ($2))
2360 return 0;
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2370 main ()
2372 if (sizeof (($2)))
2373 return 0;
2375 return 0;
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2380 else
2381 eval "$3=yes"
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 eval ac_res=\$$3
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_cxx_check_type
2394 # ac_fn_cxx_check_func LINENO FUNC VAR
2395 # ------------------------------------
2396 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2397 ac_fn_cxx_check_func ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2409 #define $2 innocuous_$2
2411 /* System header to define __stub macros and hopefully few prototypes,
2412 which can conflict with char $2 (); below.
2413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2414 <limits.h> exists even on freestanding compilers. */
2416 #ifdef __STDC__
2417 # include <limits.h>
2418 #else
2419 # include <assert.h>
2420 #endif
2422 #undef $2
2424 /* Override any GCC internal prototype to avoid an error.
2425 Use char because int might match the return type of a GCC
2426 builtin and then its argument prototype would still apply. */
2427 #ifdef __cplusplus
2428 extern "C"
2429 #endif
2430 char $2 ();
2431 /* The GNU C library defines this for functions which it implements
2432 to always fail with ENOSYS. Some functions are actually named
2433 something starting with __ and the normal name is an alias. */
2434 #if defined __stub_$2 || defined __stub___$2
2435 choke me
2436 #endif
2439 main ()
2441 return $2 ();
2443 return 0;
2445 _ACEOF
2446 if ac_fn_cxx_try_link "$LINENO"; then :
2447 eval "$3=yes"
2448 else
2449 eval "$3=no"
2451 rm -f core conftest.err conftest.$ac_objext \
2452 conftest$ac_exeext conftest.$ac_ext
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_cxx_check_func
2461 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2462 # ---------------------------------------------------------
2463 # Tests whether HEADER exists and can be compiled using the include files in
2464 # INCLUDES, setting the cache variable VAR accordingly.
2465 ac_fn_cxx_check_header_compile ()
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2476 #include <$2>
2477 _ACEOF
2478 if ac_fn_cxx_try_compile "$LINENO"; then :
2479 eval "$3=yes"
2480 else
2481 eval "$3=no"
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 } # ac_fn_cxx_check_header_compile
2492 # ac_fn_c_try_link LINENO
2493 # -----------------------
2494 # Try to link conftest.$ac_ext, and return whether this succeeded.
2495 ac_fn_c_try_link ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 rm -f conftest.$ac_objext conftest$ac_exeext
2499 if { { ac_try="$ac_link"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } && {
2515 test -z "$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 } && test -s conftest$ac_exeext && {
2518 test "$cross_compiling" = yes ||
2519 test -x conftest$ac_exeext
2520 }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_retval=1
2528 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2529 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2530 # interfere with the next link command; also delete a directory that is
2531 # left behind by Apple's compiler. We do this before executing the actions.
2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 as_fn_set_status $ac_retval
2536 } # ac_fn_c_try_link
2538 # ac_fn_c_check_func LINENO FUNC VAR
2539 # ----------------------------------
2540 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2541 ac_fn_c_check_func ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2553 #define $2 innocuous_$2
2555 /* System header to define __stub macros and hopefully few prototypes,
2556 which can conflict with char $2 (); below.
2557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2558 <limits.h> exists even on freestanding compilers. */
2560 #ifdef __STDC__
2561 # include <limits.h>
2562 #else
2563 # include <assert.h>
2564 #endif
2566 #undef $2
2568 /* Override any GCC internal prototype to avoid an error.
2569 Use char because int might match the return type of a GCC
2570 builtin and then its argument prototype would still apply. */
2571 #ifdef __cplusplus
2572 extern "C"
2573 #endif
2574 char $2 ();
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined __stub_$2 || defined __stub___$2
2579 choke me
2580 #endif
2583 main ()
2585 return $2 ();
2587 return 0;
2589 _ACEOF
2590 if ac_fn_c_try_link "$LINENO"; then :
2591 eval "$3=yes"
2592 else
2593 eval "$3=no"
2595 rm -f core conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2598 eval ac_res=\$$3
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603 } # ac_fn_c_check_func
2605 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2606 # ---------------------------------------------
2607 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2608 # accordingly.
2609 ac_fn_c_check_decl ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 as_decl_name=`echo $2|sed 's/ *(.*//'`
2613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2615 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2616 if eval \${$3+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2623 main ()
2625 #ifndef $as_decl_name
2626 #ifdef __cplusplus
2627 (void) $as_decl_use;
2628 #else
2629 (void) $as_decl_name;
2630 #endif
2631 #endif
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649 } # ac_fn_c_check_decl
2650 cat >config.log <<_ACEOF
2651 This file contains any messages produced by compilers while
2652 running configure, to aid debugging if configure makes a mistake.
2654 It was created by aMule $as_me SVN, which was
2655 generated by GNU Autoconf 2.69. Invocation command line was
2657 $ $0 $@
2659 _ACEOF
2660 exec 5>>config.log
2662 cat <<_ASUNAME
2663 ## --------- ##
2664 ## Platform. ##
2665 ## --------- ##
2667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2684 _ASUNAME
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 $as_echo "PATH: $as_dir"
2692 done
2693 IFS=$as_save_IFS
2695 } >&5
2697 cat >&5 <<_ACEOF
2700 ## ----------- ##
2701 ## Core tests. ##
2702 ## ----------- ##
2704 _ACEOF
2707 # Keep a trace of the command line.
2708 # Strip out --no-create and --no-recursion so they do not pile up.
2709 # Strip out --silent because we don't want to record it for future runs.
2710 # Also quote any args containing shell meta-characters.
2711 # Make two passes to allow for proper duplicate-argument suppression.
2712 ac_configure_args=
2713 ac_configure_args0=
2714 ac_configure_args1=
2715 ac_must_keep_next=false
2716 for ac_pass in 1 2
2718 for ac_arg
2720 case $ac_arg in
2721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2723 | -silent | --silent | --silen | --sile | --sil)
2724 continue ;;
2725 *\'*)
2726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2727 esac
2728 case $ac_pass in
2729 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2731 as_fn_append ac_configure_args1 " '$ac_arg'"
2732 if test $ac_must_keep_next = true; then
2733 ac_must_keep_next=false # Got value, back to normal.
2734 else
2735 case $ac_arg in
2736 *=* | --config-cache | -C | -disable-* | --disable-* \
2737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2739 | -with-* | --with-* | -without-* | --without-* | --x)
2740 case "$ac_configure_args0 " in
2741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2742 esac
2744 -* ) ac_must_keep_next=true ;;
2745 esac
2747 as_fn_append ac_configure_args " '$ac_arg'"
2749 esac
2750 done
2751 done
2752 { ac_configure_args0=; unset ac_configure_args0;}
2753 { ac_configure_args1=; unset ac_configure_args1;}
2755 # When interrupted or exit'd, cleanup temporary files, and complete
2756 # config.log. We remove comments because anyway the quotes in there
2757 # would cause problems or look ugly.
2758 # WARNING: Use '\'' to represent an apostrophe within the trap.
2759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2760 trap 'exit_status=$?
2761 # Save into config.log some information that might help in debugging.
2763 echo
2765 $as_echo "## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##"
2768 echo
2769 # The following way of writing the cache mishandles newlines in values,
2771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2772 eval ac_val=\$$ac_var
2773 case $ac_val in #(
2774 *${as_nl}*)
2775 case $ac_var in #(
2776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2778 esac
2779 case $ac_var in #(
2780 _ | IFS | as_nl) ;; #(
2781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2782 *) { eval $ac_var=; unset $ac_var;} ;;
2783 esac ;;
2784 esac
2785 done
2786 (set) 2>&1 |
2787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2788 *${as_nl}ac_space=\ *)
2789 sed -n \
2790 "s/'\''/'\''\\\\'\'''\''/g;
2791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2792 ;; #(
2794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2796 esac |
2797 sort
2799 echo
2801 $as_echo "## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##"
2804 echo
2805 for ac_var in $ac_subst_vars
2807 eval ac_val=\$$ac_var
2808 case $ac_val in
2809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2810 esac
2811 $as_echo "$ac_var='\''$ac_val'\''"
2812 done | sort
2813 echo
2815 if test -n "$ac_subst_files"; then
2816 $as_echo "## ------------------- ##
2817 ## File substitutions. ##
2818 ## ------------------- ##"
2819 echo
2820 for ac_var in $ac_subst_files
2822 eval ac_val=\$$ac_var
2823 case $ac_val in
2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825 esac
2826 $as_echo "$ac_var='\''$ac_val'\''"
2827 done | sort
2828 echo
2831 if test -s confdefs.h; then
2832 $as_echo "## ----------- ##
2833 ## confdefs.h. ##
2834 ## ----------- ##"
2835 echo
2836 cat confdefs.h
2837 echo
2839 test "$ac_signal" != 0 &&
2840 $as_echo "$as_me: caught signal $ac_signal"
2841 $as_echo "$as_me: exit $exit_status"
2842 } >&5
2843 rm -f core *.core core.conftest.* &&
2844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2845 exit $exit_status
2847 for ac_signal in 1 2 13 15; do
2848 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2849 done
2850 ac_signal=0
2852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2853 rm -f -r conftest* confdefs.h
2855 $as_echo "/* confdefs.h */" > confdefs.h
2857 # Predefined preprocessor variables.
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_NAME "$PACKAGE_NAME"
2861 _ACEOF
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2865 _ACEOF
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2869 _ACEOF
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_STRING "$PACKAGE_STRING"
2873 _ACEOF
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2877 _ACEOF
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_URL "$PACKAGE_URL"
2881 _ACEOF
2884 # Let the site file select an alternate cache file if it wants to.
2885 # Prefer an explicitly selected file to automatically selected ones.
2886 ac_site_file1=NONE
2887 ac_site_file2=NONE
2888 if test -n "$CONFIG_SITE"; then
2889 # We do not want a PATH search for config.site.
2890 case $CONFIG_SITE in #((
2891 -*) ac_site_file1=./$CONFIG_SITE;;
2892 */*) ac_site_file1=$CONFIG_SITE;;
2893 *) ac_site_file1=./$CONFIG_SITE;;
2894 esac
2895 elif test "x$prefix" != xNONE; then
2896 ac_site_file1=$prefix/share/config.site
2897 ac_site_file2=$prefix/etc/config.site
2898 else
2899 ac_site_file1=$ac_default_prefix/share/config.site
2900 ac_site_file2=$ac_default_prefix/etc/config.site
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2904 test "x$ac_site_file" = xNONE && continue
2905 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908 sed 's/^/| /' "$ac_site_file" >&5
2909 . "$ac_site_file" \
2910 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error $? "failed to load site script $ac_site_file
2913 See \`config.log' for more details" "$LINENO" 5; }
2915 done
2917 if test -r "$cache_file"; then
2918 # Some versions of bash will fail to source /dev/null (special files
2919 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2920 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2922 $as_echo "$as_me: loading cache $cache_file" >&6;}
2923 case $cache_file in
2924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2925 *) . "./$cache_file";;
2926 esac
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2930 $as_echo "$as_me: creating cache $cache_file" >&6;}
2931 >$cache_file
2934 as_fn_append ac_header_list " stdlib.h"
2935 as_fn_append ac_header_list " unistd.h"
2936 as_fn_append ac_header_list " sys/param.h"
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005 am__api_version='1.15'
3007 ac_aux_dir=
3008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3009 if test -f "$ac_dir/install-sh"; then
3010 ac_aux_dir=$ac_dir
3011 ac_install_sh="$ac_aux_dir/install-sh -c"
3012 break
3013 elif test -f "$ac_dir/install.sh"; then
3014 ac_aux_dir=$ac_dir
3015 ac_install_sh="$ac_aux_dir/install.sh -c"
3016 break
3017 elif test -f "$ac_dir/shtool"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/shtool install -c"
3020 break
3022 done
3023 if test -z "$ac_aux_dir"; then
3024 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 # These three variables are undocumented and unsupported,
3028 # and are intended to be withdrawn in a future Autoconf release.
3029 # They can cause serious problems if a builder's source tree is in a directory
3030 # whose full name contains unusual characters.
3031 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3032 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036 # Find a good install program. We prefer a C program (faster),
3037 # so one script is as good as another. But avoid the broken or
3038 # incompatible versions:
3039 # SysV /etc/install, /usr/sbin/install
3040 # SunOS /usr/etc/install
3041 # IRIX /sbin/install
3042 # AIX /bin/install
3043 # AmigaOS /C/install, which installs bootblocks on floppy discs
3044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3047 # OS/2's system install, which has a completely different semantic
3048 # ./install, which can be erroneously created by make from ./install.sh.
3049 # Reject install programs that cannot install multiple files.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3051 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3052 if test -z "$INSTALL"; then
3053 if ${ac_cv_path_install+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 # Account for people who put trailing slashes in PATH elements.
3062 case $as_dir/ in #((
3063 ./ | .// | /[cC]/* | \
3064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3065 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3066 /usr/ucb/* ) ;;
3068 # OSF1 and SCO ODT 3.0 have their own names for install.
3069 # Don't use installbsd from OSF since it installs stuff as root
3070 # by default.
3071 for ac_prog in ginstall scoinst install; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3074 if test $ac_prog = install &&
3075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3076 # AIX install. It has an incompatible calling convention.
3078 elif test $ac_prog = install &&
3079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3080 # program-specific install script used by HP pwplus--don't use.
3082 else
3083 rm -rf conftest.one conftest.two conftest.dir
3084 echo one > conftest.one
3085 echo two > conftest.two
3086 mkdir conftest.dir
3087 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3088 test -s conftest.one && test -s conftest.two &&
3089 test -s conftest.dir/conftest.one &&
3090 test -s conftest.dir/conftest.two
3091 then
3092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3093 break 3
3097 done
3098 done
3100 esac
3102 done
3103 IFS=$as_save_IFS
3105 rm -rf conftest.one conftest.two conftest.dir
3108 if test "${ac_cv_path_install+set}" = set; then
3109 INSTALL=$ac_cv_path_install
3110 else
3111 # As a last resort, use the slow shell script. Don't cache a
3112 # value for INSTALL within a source directory, because that will
3113 # break other packages using the cache if that directory is
3114 # removed, or if the value is a relative name.
3115 INSTALL=$ac_install_sh
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3119 $as_echo "$INSTALL" >&6; }
3121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122 # It thinks the first close brace ends the variable substitution.
3123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3130 $as_echo_n "checking whether build environment is sane... " >&6; }
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3133 am_lf='
3135 case `pwd` in
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3138 esac
3139 case $srcdir in
3140 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3142 esac
3144 # Do 'set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3148 # directory).
3149 if (
3150 am_has_slept=no
3151 for am_try in 1 2; do
3152 echo "timestamp, slept: $am_has_slept" > conftest.file
3153 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154 if test "$*" = "X"; then
3155 # -L didn't work.
3156 set X `ls -t "$srcdir/configure" conftest.file`
3158 if test "$*" != "X $srcdir/configure conftest.file" \
3159 && test "$*" != "X conftest.file $srcdir/configure"; then
3161 # If neither matched, then we have a broken ls. This can happen
3162 # if, for instance, CONFIG_SHELL is bash and it inherits a
3163 # broken ls alias from the environment. This has actually
3164 # happened. Such a system could not be considered "sane".
3165 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3166 alias in your environment" "$LINENO" 5
3168 if test "$2" = conftest.file || test $am_try -eq 2; then
3169 break
3171 # Just in case.
3172 sleep 1
3173 am_has_slept=yes
3174 done
3175 test "$2" = conftest.file
3177 then
3178 # Ok.
3180 else
3181 as_fn_error $? "newly created file is older than distributed files!
3182 Check your system clock" "$LINENO" 5
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 # If we didn't sleep, we still need to ensure time stamps of config.status and
3187 # generated files are strictly newer.
3188 am_sleep_pid=
3189 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3190 ( sleep 1 ) &
3191 am_sleep_pid=$!
3194 rm -f conftest.file
3196 test "$program_prefix" != NONE &&
3197 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3198 # Use a double $ so make ignores it.
3199 test "$program_suffix" != NONE &&
3200 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3201 # Double any \ or $.
3202 # By default was `s,x,x', remove it if useless.
3203 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3204 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3206 # Expand $ac_aux_dir to an absolute path.
3207 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3209 if test x"${MISSING+set}" != xset; then
3210 case $am_aux_dir in
3211 *\ * | *\ *)
3212 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3214 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3215 esac
3217 # Use eval to expand $SHELL
3218 if eval "$MISSING --is-lightweight"; then
3219 am_missing_run="$MISSING "
3220 else
3221 am_missing_run=
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3223 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3226 if test x"${install_sh+set}" != xset; then
3227 case $am_aux_dir in
3228 *\ * | *\ *)
3229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3231 install_sh="\${SHELL} $am_aux_dir/install-sh"
3232 esac
3235 # Installed binaries are usually stripped using 'strip' when the user
3236 # run "make install-strip". However 'strip' might not be the right
3237 # tool to use in cross-compilation environments, therefore Automake
3238 # will honor the 'STRIP' environment variable to overrule this program.
3239 if test "$cross_compiling" != no; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}strip; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_STRIP+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$STRIP"; then
3249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 STRIP=$ac_cv_prog_STRIP
3269 if test -n "$STRIP"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3271 $as_echo "$STRIP" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_STRIP"; then
3280 ac_ct_STRIP=$STRIP
3281 # Extract the first word of "strip", so it can be a program name with args.
3282 set dummy strip; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_STRIP"; then
3289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_STRIP="strip"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3309 if test -n "$ac_ct_STRIP"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3311 $as_echo "$ac_ct_STRIP" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_STRIP" = x; then
3318 STRIP=":"
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 STRIP=$ac_ct_STRIP
3328 else
3329 STRIP="$ac_cv_prog_STRIP"
3333 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3337 if test -z "$MKDIR_P"; then
3338 if ${ac_cv_path_mkdir+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_prog in mkdir gmkdir; do
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3350 'mkdir (GNU coreutils) '* | \
3351 'mkdir (coreutils) '* | \
3352 'mkdir (fileutils) '4.1*)
3353 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3354 break 3;;
3355 esac
3356 done
3357 done
3358 done
3359 IFS=$as_save_IFS
3363 test -d ./--version && rmdir ./--version
3364 if test "${ac_cv_path_mkdir+set}" = set; then
3365 MKDIR_P="$ac_cv_path_mkdir -p"
3366 else
3367 # As a last resort, use the slow shell script. Don't cache a
3368 # value for MKDIR_P within a source directory, because that will
3369 # break other packages using the cache if that directory is
3370 # removed, or if the value is a relative name.
3371 MKDIR_P="$ac_install_sh -d"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3375 $as_echo "$MKDIR_P" >&6; }
3377 for ac_prog in gawk mawk nawk awk
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_AWK+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$AWK"; then
3387 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_AWK="$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3406 AWK=$ac_cv_prog_AWK
3407 if test -n "$AWK"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3409 $as_echo "$AWK" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$AWK" && break
3417 done
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3420 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3421 set x ${MAKE-make}
3422 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3423 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat >conftest.make <<\_ACEOF
3427 SHELL = /bin/sh
3428 all:
3429 @echo '@@@%%%=$(MAKE)=@@@%%%'
3430 _ACEOF
3431 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3432 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3433 *@@@%%%=?*=@@@%%%*)
3434 eval ac_cv_prog_make_${ac_make}_set=yes;;
3436 eval ac_cv_prog_make_${ac_make}_set=no;;
3437 esac
3438 rm -f conftest.make
3440 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 $as_echo "yes" >&6; }
3443 SET_MAKE=
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 SET_MAKE="MAKE=${MAKE-make}"
3450 rm -rf .tst 2>/dev/null
3451 mkdir .tst 2>/dev/null
3452 if test -d .tst; then
3453 am__leading_dot=.
3454 else
3455 am__leading_dot=_
3457 rmdir .tst 2>/dev/null
3459 # Check whether --enable-silent-rules was given.
3460 if test "${enable_silent_rules+set}" = set; then :
3461 enableval=$enable_silent_rules;
3464 case $enable_silent_rules in # (((
3465 yes) AM_DEFAULT_VERBOSITY=0;;
3466 no) AM_DEFAULT_VERBOSITY=1;;
3467 *) AM_DEFAULT_VERBOSITY=1;;
3468 esac
3469 am_make=${MAKE-make}
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3471 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3472 if ${am_cv_make_support_nested_variables+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if $as_echo 'TRUE=$(BAR$(V))
3476 BAR0=false
3477 BAR1=true
3479 am__doit:
3480 @$(TRUE)
3481 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3482 am_cv_make_support_nested_variables=yes
3483 else
3484 am_cv_make_support_nested_variables=no
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3489 if test $am_cv_make_support_nested_variables = yes; then
3490 AM_V='$(V)'
3491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3492 else
3493 AM_V=$AM_DEFAULT_VERBOSITY
3494 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3496 AM_BACKSLASH='\'
3498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500 # is not polluted with repeated "-I."
3501 am__isrc=' -I$(srcdir)'
3502 # test to see if srcdir already configured
3503 if test -f $srcdir/config.status; then
3504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3508 # test whether we have cygpath
3509 if test -z "$CYGPATH_W"; then
3510 if (cygpath --version) >/dev/null 2>/dev/null; then
3511 CYGPATH_W='cygpath -w'
3512 else
3513 CYGPATH_W=echo
3518 # Define the identity of the package.
3519 PACKAGE='amule'
3520 VERSION='SVN'
3523 cat >>confdefs.h <<_ACEOF
3524 #define PACKAGE "$PACKAGE"
3525 _ACEOF
3528 cat >>confdefs.h <<_ACEOF
3529 #define VERSION "$VERSION"
3530 _ACEOF
3532 # Some tools Automake needs.
3534 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3537 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3540 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3543 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3546 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3548 # For better backward compatibility. To be removed once Automake 1.9.x
3549 # dies out for good. For more background, see:
3550 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3551 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3552 mkdir_p='$(MKDIR_P)'
3554 # We need awk for the "check" target (and possibly the TAP driver). The
3555 # system "awk" is bad on some platforms.
3556 # Always define AMTAR for backward compatibility. Yes, it's still used
3557 # in the wild :-( We should find a proper way to deprecate it ...
3558 AMTAR='$${TAR-tar}'
3561 # We'll loop over all known methods to create a tar archive until one works.
3562 _am_tools='gnutar pax cpio none'
3564 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3571 # POSIX will say in a future version that running "rm -f" with no argument
3572 # is OK; and we want to be able to make that assumption in our Makefile
3573 # recipes. So use an aggressive probe to check that the usage we want is
3574 # actually supported "in the wild" to an acceptable degree.
3575 # See automake bug#10828.
3576 # To make any issue more visible, cause the running configure to be aborted
3577 # by default if the 'rm' program in use doesn't match our expectations; the
3578 # user can still override this though.
3579 if rm -f && rm -fr && rm -rf; then : OK; else
3580 cat >&2 <<'END'
3581 Oops!
3583 Your 'rm' program seems unable to run without file operands specified
3584 on the command line, even when the '-f' option is present. This is contrary
3585 to the behaviour of most rm programs out there, and not conforming with
3586 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3588 Please tell bug-automake@gnu.org about your system, including the value
3589 of your $PATH and any error possibly output before this message. This
3590 can help us improve future automake versions.
3593 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3594 echo 'Configuration will proceed anyway, since you have set the' >&2
3595 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3596 echo >&2
3597 else
3598 cat >&2 <<'END'
3599 Aborting the configuration process, to ensure you take notice of the issue.
3601 You can download and install GNU coreutils to get an 'rm' implementation
3602 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3604 If you want to complete the configuration process using your problematic
3605 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3606 to "yes", and re-run configure.
3609 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3613 # Check whether --enable-silent-rules was given.
3614 if test "${enable_silent_rules+set}" = set; then :
3615 enableval=$enable_silent_rules;
3618 case $enable_silent_rules in # (((
3619 yes) AM_DEFAULT_VERBOSITY=0;;
3620 no) AM_DEFAULT_VERBOSITY=1;;
3621 *) AM_DEFAULT_VERBOSITY=1;;
3622 esac
3623 am_make=${MAKE-make}
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3625 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3626 if ${am_cv_make_support_nested_variables+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if $as_echo 'TRUE=$(BAR$(V))
3630 BAR0=false
3631 BAR1=true
3633 am__doit:
3634 @$(TRUE)
3635 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3636 am_cv_make_support_nested_variables=yes
3637 else
3638 am_cv_make_support_nested_variables=no
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3642 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3643 if test $am_cv_make_support_nested_variables = yes; then
3644 AM_V='$(V)'
3645 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3646 else
3647 AM_V=$AM_DEFAULT_VERBOSITY
3648 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3650 AM_BACKSLASH='\'
3655 # autoconf 2.70 introduced some incompatibilities that will make the build fail
3656 # As a "workaround" reject 2.70 and above for now.
3660 ac_config_headers="$ac_config_headers config.h"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3665 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3666 # Check whether --enable-maintainer-mode was given.
3667 if test "${enable_maintainer_mode+set}" = set; then :
3668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3669 else
3670 USE_MAINTAINER_MODE=no
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3674 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3675 if test $USE_MAINTAINER_MODE = yes; then
3676 MAINTAINER_MODE_TRUE=
3677 MAINTAINER_MODE_FALSE='#'
3678 else
3679 MAINTAINER_MODE_TRUE='#'
3680 MAINTAINER_MODE_FALSE=
3683 MAINT=$MAINTAINER_MODE_TRUE
3687 # Make sure we can run config.sub.
3688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3692 $as_echo_n "checking build system type... " >&6; }
3693 if ${ac_cv_build+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 ac_build_alias=$build_alias
3697 test "x$ac_build_alias" = x &&
3698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3699 test "x$ac_build_alias" = x &&
3700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3706 $as_echo "$ac_cv_build" >&6; }
3707 case $ac_cv_build in
3708 *-*-*) ;;
3709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3710 esac
3711 build=$ac_cv_build
3712 ac_save_IFS=$IFS; IFS='-'
3713 set x $ac_cv_build
3714 shift
3715 build_cpu=$1
3716 build_vendor=$2
3717 shift; shift
3718 # Remember, the first character of IFS is used to create $*,
3719 # except with old shells:
3720 build_os=$*
3721 IFS=$ac_save_IFS
3722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3726 $as_echo_n "checking host system type... " >&6; }
3727 if ${ac_cv_host+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test "x$host_alias" = x; then
3731 ac_cv_host=$ac_cv_build
3732 else
3733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3739 $as_echo "$ac_cv_host" >&6; }
3740 case $ac_cv_host in
3741 *-*-*) ;;
3742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3743 esac
3744 host=$ac_cv_host
3745 ac_save_IFS=$IFS; IFS='-'
3746 set x $ac_cv_host
3747 shift
3748 host_cpu=$1
3749 host_vendor=$2
3750 shift; shift
3751 # Remember, the first character of IFS is used to create $*,
3752 # except with old shells:
3753 host_os=$*
3754 IFS=$ac_save_IFS
3755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3759 case "${host_os}" in
3760 darwin*)
3761 SYS=darwin
3762 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3763 MULELDFLAGS="-bind_at_load"
3764 touch src/Scanner.cpp
3766 openbsd*)
3767 SYS=openbsd
3768 LIBS="$LIBS -L/usr/local/lib"
3769 MULECPPFLAGS="-D__OPENBSD__"
3771 *cygwin* | *mingw32*)
3772 SYS=win32
3773 MULECPPFLAGS="-DNOMINMAX"
3775 solaris*)
3776 SYS=solaris
3777 RESOLV_LIB="-lresolv -lnsl"
3778 LIBS="$LIBS -lrt"
3780 *netbsd*)
3781 SYS=netbsd
3782 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3783 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3784 # Still, we prepend them, instead of adding, so the user may override them.
3785 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3786 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3788 *irix*)
3789 SYS=irix
3790 MULECPPFLAGS="-D__IRIX__"
3793 SYS=unknown
3795 esac
3797 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3798 if test ${SYS:-unknown} != win32; then :
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3801 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3802 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3804 MULELDFLAGS="$MULELDFLAGS -pthread"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 else
3810 MULELDFLAGS="$MULELDFLAGS -lpthread"
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3820 mule_backup_CFLAGS="$CFLAGS"
3821 mule_backup_CXXFLAGS="$CXXFLAGS"
3822 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3823 ac_ext=cpp
3824 ac_cpp='$CXXCPP $CPPFLAGS'
3825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3828 if test -z "$CXX"; then
3829 if test -n "$CCC"; then
3830 CXX=$CCC
3831 else
3832 if test -n "$ac_tool_prefix"; then
3833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_CXX+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$CXX"; then
3843 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3856 done
3857 done
3858 IFS=$as_save_IFS
3862 CXX=$ac_cv_prog_CXX
3863 if test -n "$CXX"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3865 $as_echo "$CXX" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 test -n "$CXX" && break
3873 done
3875 if test -z "$CXX"; then
3876 ac_ct_CXX=$CXX
3877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$ac_ct_CXX"; then
3887 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_CXX="$ac_prog"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3902 IFS=$as_save_IFS
3906 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3907 if test -n "$ac_ct_CXX"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3909 $as_echo "$ac_ct_CXX" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3916 test -n "$ac_ct_CXX" && break
3917 done
3919 if test "x$ac_ct_CXX" = x; then
3920 CXX="g++"
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 CXX=$ac_ct_CXX
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3936 set X $ac_compile
3937 ac_compiler=$2
3938 for ac_option in --version -v -V -qversion; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3947 ac_status=$?
3948 if test -s conftest.err; then
3949 sed '10a\
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err >conftest.er1
3952 cat conftest.er1 >&5
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 done
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 main ()
3967 return 0;
3969 _ACEOF
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3974 # of exeext.
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3976 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3977 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3982 ac_rmfiles=
3983 for ac_file in $ac_files
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3988 esac
3989 done
3990 rm -f $ac_rmfiles
3992 if { { ac_try="$ac_link_default"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4007 # Autoconf.
4008 for ac_file in $ac_files ''
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4014 [ab].out )
4015 # We found the default executable, but exeext='' is most
4016 # certainly right.
4017 break;;
4018 *.* )
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4020 then :; else
4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4027 # actually working.
4028 break;;
4030 break;;
4031 esac
4032 done
4033 test "$ac_cv_exeext" = no && ac_cv_exeext=
4035 else
4036 ac_file=''
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error 77 "C++ compiler cannot create executables
4047 See \`config.log' for more details" "$LINENO" 5; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4053 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try="$ac_link"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe'), while it won't with
4076 # `rm'.
4077 for ac_file in conftest.exe conftest conftest.*; do
4078 test -f "$ac_file" || continue
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082 break;;
4083 * ) break;;
4084 esac
4085 done
4086 else
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest conftest$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.$ac_ext
4097 EXEEXT=$ac_cv_exeext
4098 ac_exeext=$EXEEXT
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdio.h>
4103 main ()
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4109 return 0;
4111 _ACEOF
4112 ac_clean_files="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try="$ac_link"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4126 ac_status=$?
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 cross_compiling=no
4141 else
4142 if test "$cross_compiling" = maybe; then
4143 cross_compiling=yes
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "cannot run C++ compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4157 ac_clean_files=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 main ()
4171 return 0;
4173 _ACEOF
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try="$ac_compile"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4188 case $ac_file in
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4191 break;;
4192 esac
4193 done
4194 else
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files: cannot compile
4201 See \`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4208 ac_objext=$OBJEXT
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4211 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4218 main ()
4220 #ifndef __GNUC__
4221 choke me
4222 #endif
4225 return 0;
4227 _ACEOF
4228 if ac_fn_cxx_try_compile "$LINENO"; then :
4229 ac_compiler_gnu=yes
4230 else
4231 ac_compiler_gnu=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4238 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4240 GXX=yes
4241 else
4242 GXX=
4244 ac_test_CXXFLAGS=${CXXFLAGS+set}
4245 ac_save_CXXFLAGS=$CXXFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4247 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4248 if ${ac_cv_prog_cxx_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4252 ac_cxx_werror_flag=yes
4253 ac_cv_prog_cxx_g=no
4254 CXXFLAGS="-g"
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 if ac_fn_cxx_try_compile "$LINENO"; then :
4267 ac_cv_prog_cxx_g=yes
4268 else
4269 CXXFLAGS=""
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4274 main ()
4278 return 0;
4280 _ACEOF
4281 if ac_fn_cxx_try_compile "$LINENO"; then :
4283 else
4284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4285 CXXFLAGS="-g"
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4290 main ()
4294 return 0;
4296 _ACEOF
4297 if ac_fn_cxx_try_compile "$LINENO"; then :
4298 ac_cv_prog_cxx_g=yes
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4308 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4309 if test "$ac_test_CXXFLAGS" = set; then
4310 CXXFLAGS=$ac_save_CXXFLAGS
4311 elif test $ac_cv_prog_cxx_g = yes; then
4312 if test "$GXX" = yes; then
4313 CXXFLAGS="-g -O2"
4314 else
4315 CXXFLAGS="-g"
4317 else
4318 if test "$GXX" = yes; then
4319 CXXFLAGS="-O2"
4320 else
4321 CXXFLAGS=
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 DEPDIR="${am__leading_dot}deps"
4331 ac_config_commands="$ac_config_commands depfiles"
4334 am_make=${MAKE-make}
4335 cat > confinc << 'END'
4336 am__doit:
4337 @echo this is the am__doit target
4338 .PHONY: am__doit
4340 # If we don't find an include directive, just comment out the code.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4343 am__include="#"
4344 am__quote=
4345 _am_result=none
4346 # First try GNU make style include.
4347 echo "include confinc" > confmf
4348 # Ignore all kinds of additional output from 'make'.
4349 case `$am_make -s -f confmf 2> /dev/null` in #(
4350 *the\ am__doit\ target*)
4351 am__include=include
4352 am__quote=
4353 _am_result=GNU
4355 esac
4356 # Now try BSD make style include.
4357 if test "$am__include" = "#"; then
4358 echo '.include "confinc"' > confmf
4359 case `$am_make -s -f confmf 2> /dev/null` in #(
4360 *the\ am__doit\ target*)
4361 am__include=.include
4362 am__quote="\""
4363 _am_result=BSD
4365 esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4370 $as_echo "$_am_result" >&6; }
4371 rm -f confinc confmf
4373 # Check whether --enable-dependency-tracking was given.
4374 if test "${enable_dependency_tracking+set}" = set; then :
4375 enableval=$enable_dependency_tracking;
4378 if test "x$enable_dependency_tracking" != xno; then
4379 am_depcomp="$ac_aux_dir/depcomp"
4380 AMDEPBACKSLASH='\'
4381 am__nodep='_no'
4383 if test "x$enable_dependency_tracking" != xno; then
4384 AMDEP_TRUE=
4385 AMDEP_FALSE='#'
4386 else
4387 AMDEP_TRUE='#'
4388 AMDEP_FALSE=
4393 depcc="$CXX" am_compiler_list=
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 $as_echo_n "checking dependency style of $depcc... " >&6; }
4397 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401 # We make a subdir and do the tests there. Otherwise we can end up
4402 # making bogus files that we don't know about and never remove. For
4403 # instance it was reported that on HP-UX the gcc test will end up
4404 # making a dummy file named 'D' -- because '-MD' means "put the output
4405 # in D".
4406 rm -rf conftest.dir
4407 mkdir conftest.dir
4408 # Copy depcomp to subdir because otherwise we won't find it if we're
4409 # using a relative directory.
4410 cp "$am_depcomp" conftest.dir
4411 cd conftest.dir
4412 # We will build objects and dependencies in a subdirectory because
4413 # it helps to detect inapplicable dependency modes. For instance
4414 # both Tru64's cc and ICC support -MD to output dependencies as a
4415 # side effect of compilation, but ICC will put the dependencies in
4416 # the current directory while Tru64 will put them in the object
4417 # directory.
4418 mkdir sub
4420 am_cv_CXX_dependencies_compiler_type=none
4421 if test "$am_compiler_list" = ""; then
4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4424 am__universal=false
4425 case " $depcc " in #(
4426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427 esac
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4437 : > sub/conftest.c
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441 # Solaris 10 /bin/sh.
4442 echo '/* dummy */' > sub/conftst$i.h
4443 done
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447 # mode. It turns out that the SunPro C++ compiler does not properly
4448 # handle '-M -o', and we need to detect this. Also, some Intel
4449 # versions had trouble with output in subdirs.
4450 am__obj=sub/conftest.${OBJEXT-o}
4451 am__minus_obj="-o $am__obj"
4452 case $depmode in
4453 gcc)
4454 # This depmode causes a compiler race in universal mode.
4455 test "$am__universal" = false || continue
4457 nosideeffect)
4458 # After this tag, mechanisms are not by side-effect, so they'll
4459 # only be used when explicitly requested.
4460 if test "x$enable_dependency_tracking" = xyes; then
4461 continue
4462 else
4463 break
4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467 # This compiler won't grok '-c -o', but also, the minuso test has
4468 # not run yet. These depmodes are late enough in the game, and
4469 # so weak that their functioning should not be impacted.
4470 am__obj=conftest.${OBJEXT-o}
4471 am__minus_obj=
4473 none) break ;;
4474 esac
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=$am__obj \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CXX_dependencies_compiler_type=$depmode
4494 break
4497 done
4499 cd ..
4500 rm -rf conftest.dir
4501 else
4502 am_cv_CXX_dependencies_compiler_type=none
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4507 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4508 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4511 test "x$enable_dependency_tracking" != xno \
4512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4513 am__fastdepCXX_TRUE=
4514 am__fastdepCXX_FALSE='#'
4515 else
4516 am__fastdepCXX_TRUE='#'
4517 am__fastdepCXX_FALSE=
4521 ac_ext=cpp
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4527 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4528 if test -z "$CXXCPP"; then
4529 if ${ac_cv_prog_CXXCPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 # Double quotes because CXXCPP needs to be expanded
4533 for CXXCPP in "$CXX -E" "/lib/cpp"
4535 ac_preproc_ok=false
4536 for ac_cxx_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #ifdef __STDC__
4547 # include <limits.h>
4548 #else
4549 # include <assert.h>
4550 #endif
4551 Syntax error
4552 _ACEOF
4553 if ac_fn_cxx_try_cpp "$LINENO"; then :
4555 else
4556 # Broken: fails on valid input.
4557 continue
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4566 _ACEOF
4567 if ac_fn_cxx_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4569 continue
4570 else
4571 # Passes both tests.
4572 ac_preproc_ok=:
4573 break
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4577 done
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.$ac_ext
4580 if $ac_preproc_ok; then :
4581 break
4584 done
4585 ac_cv_prog_CXXCPP=$CXXCPP
4588 CXXCPP=$ac_cv_prog_CXXCPP
4589 else
4590 ac_cv_prog_CXXCPP=$CXXCPP
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4593 $as_echo "$CXXCPP" >&6; }
4594 ac_preproc_ok=false
4595 for ac_cxx_preproc_warn_flag in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #ifdef __STDC__
4606 # include <limits.h>
4607 #else
4608 # include <assert.h>
4609 #endif
4610 Syntax error
4611 _ACEOF
4612 if ac_fn_cxx_try_cpp "$LINENO"; then :
4614 else
4615 # Broken: fails on valid input.
4616 continue
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if ac_fn_cxx_try_cpp "$LINENO"; then :
4627 # Broken: success on invalid input.
4628 continue
4629 else
4630 # Passes both tests.
4631 ac_preproc_ok=:
4632 break
4634 rm -f conftest.err conftest.i conftest.$ac_ext
4636 done
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then :
4641 else
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_CC+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CC"; then
4699 ac_ct_CC=$CC
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701 set dummy gcc; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_CC="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CC" = x; then
4737 CC=""
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 CC=$ac_ct_CC
4747 else
4748 CC="$ac_cv_prog_CC"
4751 if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_CC+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_CC="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4792 if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794 set dummy cc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_prog_CC+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 ac_prog_rejected=no
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4815 ac_cv_prog_CC="cc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in cl.exe
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_CC+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 CC=$ac_cv_prog_CC
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$CC" && break
4890 done
4892 if test -z "$CC"; then
4893 ac_ct_CC=$CC
4894 for ac_prog in cl.exe
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_CC="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4924 if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926 $as_echo "$ac_ct_CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$ac_ct_CC" && break
4934 done
4936 if test "x$ac_ct_CC" = x; then
4937 CC=""
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 CC=$ac_ct_CC
4952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $? "no acceptable C compiler found in \$PATH
4955 See \`config.log' for more details" "$LINENO" 5; }
4957 # Provide some information about the compiler.
4958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4959 set X $ac_compile
4960 ac_compiler=$2
4961 for ac_option in --version -v -V -qversion; do
4962 { { ac_try="$ac_compiler $ac_option >&5"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 ac_status=$?
4971 if test -s conftest.err; then
4972 sed '10a\
4973 ... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4977 rm -f conftest.er1 conftest.err
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980 done
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984 if ${ac_cv_c_compiler_gnu+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4993 #ifndef __GNUC__
4994 choke me
4995 #endif
4998 return 0;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_compiler_gnu=yes
5003 else
5004 ac_compiler_gnu=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012 if test $ac_compiler_gnu = yes; then
5013 GCC=yes
5014 else
5015 GCC=
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5021 if ${ac_cv_prog_cc_g+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5032 main ()
5036 return 0;
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5041 else
5042 CFLAGS=""
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5047 main ()
5051 return 0;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5056 else
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_g=yes
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081 $as_echo "$ac_cv_prog_cc_g" >&6; }
5082 if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084 elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5086 CFLAGS="-g -O2"
5087 else
5088 CFLAGS="-g"
5090 else
5091 if test "$GCC" = yes; then
5092 CFLAGS="-O2"
5093 else
5094 CFLAGS=
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099 if ${ac_cv_prog_cc_c89+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_cv_prog_cc_c89=no
5103 ac_save_CC=$CC
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <stdarg.h>
5107 #include <stdio.h>
5108 struct stat;
5109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5110 struct buf { int x; };
5111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5112 static char *e (p, i)
5113 char **p;
5114 int i;
5116 return p[i];
5118 static char *f (char * (*g) (char **, int), char **p, ...)
5120 char *s;
5121 va_list v;
5122 va_start (v,p);
5123 s = g (p, va_arg (v,int));
5124 va_end (v);
5125 return s;
5128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5129 function prototypes and stuff, but not '\xHH' hex character constants.
5130 These don't provoke an error unfortunately, instead are silently treated
5131 as 'x'. The following induces an error, until -std is added to get
5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5133 array size at least. It's necessary to write '\x00'==0 to get something
5134 that's true only with -std. */
5135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5138 inside strings and character constants. */
5139 #define FOO(x) 'x'
5140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5142 int test (int i, double x);
5143 struct s1 {int (*f) (int a);};
5144 struct s2 {int (*f) (double a);};
5145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5146 int argc;
5147 char **argv;
5149 main ()
5151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5153 return 0;
5155 _ACEOF
5156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5159 CC="$ac_save_CC $ac_arg"
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 ac_cv_prog_cc_c89=$ac_arg
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 done
5166 rm -f conftest.$ac_ext
5167 CC=$ac_save_CC
5170 # AC_CACHE_VAL
5171 case "x$ac_cv_prog_cc_c89" in
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5174 $as_echo "none needed" >&6; } ;;
5175 xno)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5177 $as_echo "unsupported" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5182 esac
5183 if test "x$ac_cv_prog_cc_c89" != xno; then :
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5200 if ${am_cv_prog_cc_c_o+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5207 main ()
5211 return 0;
5213 _ACEOF
5214 # Make sure it works both with $CC and with simple cc.
5215 # Following AC_PROG_CC_C_O, we do the test twice because some
5216 # compilers refuse to overwrite an existing .o file with -o,
5217 # though they will create one.
5218 am_cv_prog_cc_c_o=yes
5219 for am_i in 1 2; do
5220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } \
5225 && test -f conftest2.$ac_objext; then
5226 : OK
5227 else
5228 am_cv_prog_cc_c_o=no
5229 break
5231 done
5232 rm -f core conftest*
5233 unset am_i
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5237 if test "$am_cv_prog_cc_c_o" != yes; then
5238 # Losing compiler, so override with the script.
5239 # FIXME: It is wrong to rewrite CC.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__CC in this case,
5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5243 CC="$am_aux_dir/compile $CC"
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 depcc="$CC" am_compiler_list=
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5255 $as_echo_n "checking dependency style of $depcc... " >&6; }
5256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5260 # We make a subdir and do the tests there. Otherwise we can end up
5261 # making bogus files that we don't know about and never remove. For
5262 # instance it was reported that on HP-UX the gcc test will end up
5263 # making a dummy file named 'D' -- because '-MD' means "put the output
5264 # in D".
5265 rm -rf conftest.dir
5266 mkdir conftest.dir
5267 # Copy depcomp to subdir because otherwise we won't find it if we're
5268 # using a relative directory.
5269 cp "$am_depcomp" conftest.dir
5270 cd conftest.dir
5271 # We will build objects and dependencies in a subdirectory because
5272 # it helps to detect inapplicable dependency modes. For instance
5273 # both Tru64's cc and ICC support -MD to output dependencies as a
5274 # side effect of compilation, but ICC will put the dependencies in
5275 # the current directory while Tru64 will put them in the object
5276 # directory.
5277 mkdir sub
5279 am_cv_CC_dependencies_compiler_type=none
5280 if test "$am_compiler_list" = ""; then
5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5283 am__universal=false
5284 case " $depcc " in #(
5285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5286 esac
5288 for depmode in $am_compiler_list; do
5289 # Setup a source with many dependencies, because some compilers
5290 # like to wrap large dependency lists on column 80 (with \), and
5291 # we should not choose a depcomp mode which is confused by this.
5293 # We need to recreate these files for each test, as the compiler may
5294 # overwrite some of them when testing with obscure command lines.
5295 # This happens at least with the AIX C compiler.
5296 : > sub/conftest.c
5297 for i in 1 2 3 4 5 6; do
5298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5300 # Solaris 10 /bin/sh.
5301 echo '/* dummy */' > sub/conftst$i.h
5302 done
5303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5305 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5306 # mode. It turns out that the SunPro C++ compiler does not properly
5307 # handle '-M -o', and we need to detect this. Also, some Intel
5308 # versions had trouble with output in subdirs.
5309 am__obj=sub/conftest.${OBJEXT-o}
5310 am__minus_obj="-o $am__obj"
5311 case $depmode in
5312 gcc)
5313 # This depmode causes a compiler race in universal mode.
5314 test "$am__universal" = false || continue
5316 nosideeffect)
5317 # After this tag, mechanisms are not by side-effect, so they'll
5318 # only be used when explicitly requested.
5319 if test "x$enable_dependency_tracking" = xyes; then
5320 continue
5321 else
5322 break
5325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5326 # This compiler won't grok '-c -o', but also, the minuso test has
5327 # not run yet. These depmodes are late enough in the game, and
5328 # so weak that their functioning should not be impacted.
5329 am__obj=conftest.${OBJEXT-o}
5330 am__minus_obj=
5332 none) break ;;
5333 esac
5334 if depmode=$depmode \
5335 source=sub/conftest.c object=$am__obj \
5336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5338 >/dev/null 2>conftest.err &&
5339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5343 # icc doesn't choke on unknown options, it will just issue warnings
5344 # or remarks (even with -Werror). So we grep stderr for any message
5345 # that says an option was ignored or not supported.
5346 # When given -MP, icc 7.0 and 7.1 complain thusly:
5347 # icc: Command line warning: ignoring option '-M'; no argument required
5348 # The diagnosis changed in icc 8.0:
5349 # icc: Command line remark: option '-MP' not supported
5350 if (grep 'ignoring option' conftest.err ||
5351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5352 am_cv_CC_dependencies_compiler_type=$depmode
5353 break
5356 done
5358 cd ..
5359 rm -rf conftest.dir
5360 else
5361 am_cv_CC_dependencies_compiler_type=none
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5370 test "x$enable_dependency_tracking" != xno \
5371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5372 am__fastdepCC_TRUE=
5373 am__fastdepCC_FALSE='#'
5374 else
5375 am__fastdepCC_TRUE='#'
5376 am__fastdepCC_FALSE=
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5387 # On Suns, sometimes $CPP names a directory.
5388 if test -n "$CPP" && test -d "$CPP"; then
5389 CPP=
5391 if test -z "$CPP"; then
5392 if ${ac_cv_prog_CPP+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 # Double quotes because CPP needs to be expanded
5396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5398 ac_preproc_ok=false
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5418 else
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.i conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.i conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.i conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then :
5444 break
5447 done
5448 ac_cv_prog_CPP=$CPP
5451 CPP=$ac_cv_prog_CPP
5452 else
5453 ac_cv_prog_CPP=$CPP
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5456 $as_echo "$CPP" >&6; }
5457 ac_preproc_ok=false
5458 for ac_c_preproc_warn_flag in '' yes
5460 # Use a header file that comes with gcc, so configuring glibc
5461 # with a fresh cross-compiler works.
5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 # <limits.h> exists even on freestanding compilers.
5464 # On the NeXT, cc -E runs the code through the compiler's parser,
5465 # not just through cpp. "Syntax error" is here to catch this case.
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #ifdef __STDC__
5469 # include <limits.h>
5470 #else
5471 # include <assert.h>
5472 #endif
5473 Syntax error
5474 _ACEOF
5475 if ac_fn_c_try_cpp "$LINENO"; then :
5477 else
5478 # Broken: fails on valid input.
5479 continue
5481 rm -f conftest.err conftest.i conftest.$ac_ext
5483 # OK, works on sane cases. Now check whether nonexistent headers
5484 # can be detected and how.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <ac_nonexistent.h>
5488 _ACEOF
5489 if ac_fn_c_try_cpp "$LINENO"; then :
5490 # Broken: success on invalid input.
5491 continue
5492 else
5493 # Passes both tests.
5494 ac_preproc_ok=:
5495 break
5497 rm -f conftest.err conftest.i conftest.$ac_ext
5499 done
5500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5501 rm -f conftest.i conftest.err conftest.$ac_ext
5502 if $ac_preproc_ok; then :
5504 else
5505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5507 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5508 See \`config.log' for more details" "$LINENO" 5; }
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 ac_build_prefix=
5518 test -n "$build_alias" && ac_build_prefix=$build_alias-
5520 if test "$cross_compiling" = yes; then :
5522 # Even if we're cross-compiling, we want a compiler here
5523 # that is not a cross-compiler.
5524 saved_cross=$cross_compiling
5525 cross_compiling=no
5527 ac_ext=c
5528 ac_cpp='$CPP $BUILD_CPPFLAGS'
5529 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5530 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5532 if test -n "$ac_build_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5534 set dummy ${ac_build_prefix}gcc; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_BUILD_CC+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$BUILD_CC"; then
5541 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5554 done
5555 done
5556 IFS=$as_save_IFS
5560 BUILD_CC=$ac_cv_prog_BUILD_CC
5561 if test -n "$BUILD_CC"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5563 $as_echo "$BUILD_CC" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5571 if test -z "$ac_cv_prog_BUILD_CC"; then
5572 ac_ct_BUILD_CC=$BUILD_CC
5573 # Extract the first word of "gcc", so it can be a program name with args.
5574 set dummy gcc; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$ac_ct_BUILD_CC"; then
5581 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5596 IFS=$as_save_IFS
5600 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5601 if test -n "$ac_ct_BUILD_CC"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5603 $as_echo "$ac_ct_BUILD_CC" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5609 if test "x$ac_ct_BUILD_CC" = x; then
5610 BUILD_CC=""
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 BUILD_CC=$ac_ct_BUILD_CC
5620 else
5621 BUILD_CC="$ac_cv_prog_BUILD_CC"
5624 if test -z "$BUILD_CC"; then
5625 if test -n "$ac_build_prefix"; then
5626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5627 set dummy ${ac_build_prefix}cc; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_BUILD_CC+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$BUILD_CC"; then
5634 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5647 done
5648 done
5649 IFS=$as_save_IFS
5653 BUILD_CC=$ac_cv_prog_BUILD_CC
5654 if test -n "$BUILD_CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5656 $as_echo "$BUILD_CC" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5664 if test -z "$ac_cv_prog_BUILD_CC"; then
5665 ac_ct_BUILD_CC=$BUILD_CC
5666 # Extract the first word of "cc", so it can be a program name with args.
5667 set dummy cc; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$ac_ct_BUILD_CC"; then
5674 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_BUILD_CC="cc"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5694 if test -n "$ac_ct_BUILD_CC"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5696 $as_echo "$ac_ct_BUILD_CC" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5702 if test "x$ac_ct_BUILD_CC" = x; then
5703 BUILD_CC=""
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 BUILD_CC=$ac_ct_BUILD_CC
5713 else
5714 BUILD_CC="$ac_cv_prog_BUILD_CC"
5718 if test -z "$BUILD_CC"; then
5719 # Extract the first word of "cc", so it can be a program name with args.
5720 set dummy cc; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_BUILD_CC+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$BUILD_CC"; then
5727 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5728 else
5729 ac_prog_rejected=no
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5738 ac_prog_rejected=yes
5739 continue
5741 ac_cv_prog_BUILD_CC="cc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5749 if test $ac_prog_rejected = yes; then
5750 # We found a bogon in the path, so make sure we never use it.
5751 set dummy $ac_cv_prog_BUILD_CC
5752 shift
5753 if test $# != 0; then
5754 # We chose a different compiler from the bogus one.
5755 # However, it has the same basename, so the bogon will be chosen
5756 # first if we set BUILD_CC to just the basename; use the full file name.
5757 shift
5758 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5763 BUILD_CC=$ac_cv_prog_BUILD_CC
5764 if test -n "$BUILD_CC"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5766 $as_echo "$BUILD_CC" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5774 if test -z "$BUILD_CC"; then
5775 if test -n "$ac_build_prefix"; then
5776 for ac_prog in cl
5778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_BUILD_CC+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$BUILD_CC"; then
5786 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5801 IFS=$as_save_IFS
5805 BUILD_CC=$ac_cv_prog_BUILD_CC
5806 if test -n "$BUILD_CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5808 $as_echo "$BUILD_CC" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5815 test -n "$BUILD_CC" && break
5816 done
5818 if test -z "$BUILD_CC"; then
5819 ac_ct_BUILD_CC=$BUILD_CC
5820 for ac_prog in cl
5822 # Extract the first word of "$ac_prog", so it can be a program name with args.
5823 set dummy $ac_prog; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$ac_ct_BUILD_CC"; then
5830 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5845 IFS=$as_save_IFS
5849 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5850 if test -n "$ac_ct_BUILD_CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5852 $as_echo "$ac_ct_BUILD_CC" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5859 test -n "$ac_ct_BUILD_CC" && break
5860 done
5862 if test "x$ac_ct_BUILD_CC" = x; then
5863 BUILD_CC=""
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 BUILD_CC=$ac_ct_BUILD_CC
5878 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5880 as_fn_error $? "no acceptable C compiler found in \$PATH
5881 See \`config.log' for more details" "$LINENO" 5; }
5883 # Provide some information about the compiler.
5884 echo "$as_me:$LINENO:" \
5885 "checking for C compiler version" >&5
5886 ac_compiler=`set X $ac_compile; echo $2`
5887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5888 (eval $ac_compiler --version </dev/null >&5) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }
5892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5893 (eval $ac_compiler -v </dev/null >&5) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }
5897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5898 (eval $ac_compiler -V </dev/null >&5) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5907 main ()
5911 return 0;
5913 _ACEOF
5914 ac_clean_files_save=$ac_clean_files
5915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5916 # Try to create an executable without -o first, disregard a.out.
5917 # It will help us diagnose broken compilers, and finding out an intuition
5918 # of exeext.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5920 $as_echo_n "checking whether the C compiler works... " >&6; }
5921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5923 # The possible output files:
5924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5926 ac_rmfiles=
5927 for ac_file in $ac_files
5929 case $ac_file in
5930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5932 esac
5933 done
5934 rm -f $ac_rmfiles
5936 if { { ac_try="$ac_link_default"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5942 $as_echo "$ac_try_echo"; } >&5
5943 (eval "$ac_link_default") 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then :
5947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5950 # so that the user can short-circuit this test for compilers unknown to
5951 # Autoconf.
5952 for ac_file in $ac_files ''
5954 test -f "$ac_file" || continue
5955 case $ac_file in
5956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5958 [ab].out )
5959 # We found the default executable, but exeext='' is most
5960 # certainly right.
5961 break;;
5962 *.* )
5963 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5964 then :; else
5965 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5967 # We set ac_cv_exeext here because the later test for it is not
5968 # safe: cross compilers may not add the suffix if given an `-o'
5969 # argument, so we may need to know it at that point already.
5970 # Even if this section looks crufty: it has the advantage of
5971 # actually working.
5972 break;;
5974 break;;
5975 esac
5976 done
5977 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5979 else
5980 ac_file=''
5982 if test -z "$ac_file"; then :
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5990 as_fn_error 77 "C compiler cannot create executables
5991 See \`config.log' for more details" "$LINENO" 5; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5994 $as_echo "yes" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5997 $as_echo_n "checking for C compiler default output file name... " >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5999 $as_echo "$ac_file" >&6; }
6000 ac_build_exeext=$ac_cv_build_exeext
6002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6003 ac_clean_files=$ac_clean_files_save
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6005 $as_echo_n "checking for suffix of executables... " >&6; }
6006 if { { ac_try="$ac_link"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6012 $as_echo "$ac_try_echo"; } >&5
6013 (eval "$ac_link") 2>&5
6014 ac_status=$?
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; }; then :
6017 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6018 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6019 # work properly (i.e., refer to `conftest.exe'), while it won't with
6020 # `rm'.
6021 for ac_file in conftest.exe conftest conftest.*; do
6022 test -f "$ac_file" || continue
6023 case $ac_file in
6024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6025 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6026 break;;
6027 * ) break;;
6028 esac
6029 done
6030 else
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6034 See \`config.log' for more details" "$LINENO" 5; }
6036 rm -f conftest conftest$ac_cv_build_exeext
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6038 $as_echo "$ac_cv_build_exeext" >&6; }
6040 rm -f conftest.$ac_ext
6041 BUILD_EXEEXT=$ac_cv_build_exeext
6042 ac_build_exeext=$BUILD_EXEEXT
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 #include <stdio.h>
6047 main ()
6049 FILE *f = fopen ("conftest.out", "w");
6050 return ferror (f) || fclose (f) != 0;
6053 return 0;
6055 _ACEOF
6056 ac_clean_files="$ac_clean_files conftest.out"
6057 # Check that the compiler produces executables we can run. If not, either
6058 # the compiler is broken, or we cross compile.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6060 $as_echo_n "checking whether we are cross compiling... " >&6; }
6061 if test "$cross_compiling" != yes; then
6062 { { ac_try="$ac_link"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6068 $as_echo "$ac_try_echo"; } >&5
6069 (eval "$ac_link") 2>&5
6070 ac_status=$?
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }
6073 if { ac_try='./conftest$ac_cv_build_exeext'
6074 { { case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6079 $as_echo "$ac_try_echo"; } >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }; }; then
6084 cross_compiling=no
6085 else
6086 if test "$cross_compiling" = maybe; then
6087 cross_compiling=yes
6088 else
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $? "cannot run C compiled programs.
6092 If you meant to cross compile, use \`--host'.
6093 See \`config.log' for more details" "$LINENO" 5; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6098 $as_echo "$cross_compiling" >&6; }
6100 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6101 ac_clean_files=$ac_clean_files_save
6104 # Restore configuration environment
6105 cross_compiling=$saved_cross
6107 ac_ext=c
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113 else
6114 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
6116 CFLAGS="$mule_backup_CFLAGS"
6117 CXXFLAGS="$mule_backup_CXXFLAGS"
6118 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
6119 for ac_prog in gawk mawk nawk awk
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_AWK+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$AWK"; then
6129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_AWK="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6142 done
6143 done
6144 IFS=$as_save_IFS
6148 AWK=$ac_cv_prog_AWK
6149 if test -n "$AWK"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6151 $as_echo "$AWK" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$AWK" && break
6159 done
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6163 if ${ac_cv_path_GREP+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 if test -z "$GREP"; then
6167 ac_path_GREP_found=false
6168 # Loop through the user's path and test for each of PROGNAME-LIST
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_prog in grep ggrep; do
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6177 as_fn_executable_p "$ac_path_GREP" || continue
6178 # Check for GNU ac_path_GREP and select it if it is found.
6179 # Check for GNU $ac_path_GREP
6180 case `"$ac_path_GREP" --version 2>&1` in
6181 *GNU*)
6182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6184 ac_count=0
6185 $as_echo_n 0123456789 >"conftest.in"
6186 while :
6188 cat "conftest.in" "conftest.in" >"conftest.tmp"
6189 mv "conftest.tmp" "conftest.in"
6190 cp "conftest.in" "conftest.nl"
6191 $as_echo 'GREP' >> "conftest.nl"
6192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6194 as_fn_arith $ac_count + 1 && ac_count=$as_val
6195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6196 # Best one so far, save it but keep looking for a better one
6197 ac_cv_path_GREP="$ac_path_GREP"
6198 ac_path_GREP_max=$ac_count
6200 # 10*(2^10) chars as input seems more than enough
6201 test $ac_count -gt 10 && break
6202 done
6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6204 esac
6206 $ac_path_GREP_found && break 3
6207 done
6208 done
6209 done
6210 IFS=$as_save_IFS
6211 if test -z "$ac_cv_path_GREP"; then
6212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6214 else
6215 ac_cv_path_GREP=$GREP
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6220 $as_echo "$ac_cv_path_GREP" >&6; }
6221 GREP="$ac_cv_path_GREP"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6225 $as_echo_n "checking for egrep... " >&6; }
6226 if ${ac_cv_path_EGREP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6230 then ac_cv_path_EGREP="$GREP -E"
6231 else
6232 if test -z "$EGREP"; then
6233 ac_path_EGREP_found=false
6234 # Loop through the user's path and test for each of PROGNAME-LIST
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_prog in egrep; do
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6243 as_fn_executable_p "$ac_path_EGREP" || continue
6244 # Check for GNU ac_path_EGREP and select it if it is found.
6245 # Check for GNU $ac_path_EGREP
6246 case `"$ac_path_EGREP" --version 2>&1` in
6247 *GNU*)
6248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6250 ac_count=0
6251 $as_echo_n 0123456789 >"conftest.in"
6252 while :
6254 cat "conftest.in" "conftest.in" >"conftest.tmp"
6255 mv "conftest.tmp" "conftest.in"
6256 cp "conftest.in" "conftest.nl"
6257 $as_echo 'EGREP' >> "conftest.nl"
6258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6260 as_fn_arith $ac_count + 1 && ac_count=$as_val
6261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6262 # Best one so far, save it but keep looking for a better one
6263 ac_cv_path_EGREP="$ac_path_EGREP"
6264 ac_path_EGREP_max=$ac_count
6266 # 10*(2^10) chars as input seems more than enough
6267 test $ac_count -gt 10 && break
6268 done
6269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6270 esac
6272 $ac_path_EGREP_found && break 3
6273 done
6274 done
6275 done
6276 IFS=$as_save_IFS
6277 if test -z "$ac_cv_path_EGREP"; then
6278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6280 else
6281 ac_cv_path_EGREP=$EGREP
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6287 $as_echo "$ac_cv_path_EGREP" >&6; }
6288 EGREP="$ac_cv_path_EGREP"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6292 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6293 set x ${MAKE-make}
6294 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6295 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat >conftest.make <<\_ACEOF
6299 SHELL = /bin/sh
6300 all:
6301 @echo '@@@%%%=$(MAKE)=@@@%%%'
6302 _ACEOF
6303 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6304 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6305 *@@@%%%=?*=@@@%%%*)
6306 eval ac_cv_prog_make_${ac_make}_set=yes;;
6308 eval ac_cv_prog_make_${ac_make}_set=no;;
6309 esac
6310 rm -f conftest.make
6312 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6315 SET_MAKE=
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 SET_MAKE="MAKE=${MAKE-make}"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_RANLIB+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$RANLIB"; then
6332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6351 RANLIB=$ac_cv_prog_RANLIB
6352 if test -n "$RANLIB"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6354 $as_echo "$RANLIB" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6362 if test -z "$ac_cv_prog_RANLIB"; then
6363 ac_ct_RANLIB=$RANLIB
6364 # Extract the first word of "ranlib", so it can be a program name with args.
6365 set dummy ranlib; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$ac_ct_RANLIB"; then
6372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_ac_ct_RANLIB="ranlib"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6392 if test -n "$ac_ct_RANLIB"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6394 $as_echo "$ac_ct_RANLIB" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6400 if test "x$ac_ct_RANLIB" = x; then
6401 RANLIB=":"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 RANLIB=$ac_ct_RANLIB
6411 else
6412 RANLIB="$ac_cv_prog_RANLIB"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6417 if ${ac_cv_path_SED+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6421 for ac_i in 1 2 3 4 5 6 7; do
6422 ac_script="$ac_script$as_nl$ac_script"
6423 done
6424 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6425 { ac_script=; unset ac_script;}
6426 if test -z "$SED"; then
6427 ac_path_SED_found=false
6428 # Loop through the user's path and test for each of PROGNAME-LIST
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_prog in sed gsed; do
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6437 as_fn_executable_p "$ac_path_SED" || continue
6438 # Check for GNU ac_path_SED and select it if it is found.
6439 # Check for GNU $ac_path_SED
6440 case `"$ac_path_SED" --version 2>&1` in
6441 *GNU*)
6442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6444 ac_count=0
6445 $as_echo_n 0123456789 >"conftest.in"
6446 while :
6448 cat "conftest.in" "conftest.in" >"conftest.tmp"
6449 mv "conftest.tmp" "conftest.in"
6450 cp "conftest.in" "conftest.nl"
6451 $as_echo '' >> "conftest.nl"
6452 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6454 as_fn_arith $ac_count + 1 && ac_count=$as_val
6455 if test $ac_count -gt ${ac_path_SED_max-0}; then
6456 # Best one so far, save it but keep looking for a better one
6457 ac_cv_path_SED="$ac_path_SED"
6458 ac_path_SED_max=$ac_count
6460 # 10*(2^10) chars as input seems more than enough
6461 test $ac_count -gt 10 && break
6462 done
6463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6464 esac
6466 $ac_path_SED_found && break 3
6467 done
6468 done
6469 done
6470 IFS=$as_save_IFS
6471 if test -z "$ac_cv_path_SED"; then
6472 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6474 else
6475 ac_cv_path_SED=$SED
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6480 $as_echo "$ac_cv_path_SED" >&6; }
6481 SED="$ac_cv_path_SED"
6482 rm -f conftest.sed
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_RANLIB+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$RANLIB"; then
6494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6507 done
6508 done
6509 IFS=$as_save_IFS
6513 RANLIB=$ac_cv_prog_RANLIB
6514 if test -n "$RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6516 $as_echo "$RANLIB" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_RANLIB"; then
6525 ac_ct_RANLIB=$RANLIB
6526 # Extract the first word of "ranlib", so it can be a program name with args.
6527 set dummy ranlib; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$ac_ct_RANLIB"; then
6534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_RANLIB="ranlib"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6547 done
6548 done
6549 IFS=$as_save_IFS
6553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6554 if test -n "$ac_ct_RANLIB"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6556 $as_echo "$ac_ct_RANLIB" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_RANLIB" = x; then
6563 RANLIB=""
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571 RANLIB=$ac_ct_RANLIB
6573 else
6574 RANLIB="$ac_cv_prog_RANLIB"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}strip; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_STRIP+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$STRIP"; then
6586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 STRIP=$ac_cv_prog_STRIP
6606 if test -n "$STRIP"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6608 $as_echo "$STRIP" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_STRIP"; then
6617 ac_ct_STRIP=$STRIP
6618 # Extract the first word of "strip", so it can be a program name with args.
6619 set dummy strip; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if test -n "$ac_ct_STRIP"; then
6626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_STRIP="strip"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6639 done
6640 done
6641 IFS=$as_save_IFS
6645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6646 if test -n "$ac_ct_STRIP"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6648 $as_echo "$ac_ct_STRIP" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_STRIP" = x; then
6655 STRIP=""
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663 STRIP=$ac_ct_STRIP
6665 else
6666 STRIP="$ac_cv_prog_STRIP"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}ar; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_AR+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$AR"; then
6678 ac_cv_prog_AR="$AR" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_AR="${ac_tool_prefix}ar"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 AR=$ac_cv_prog_AR
6698 if test -n "$AR"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6700 $as_echo "$AR" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_AR"; then
6709 ac_ct_AR=$AR
6710 # Extract the first word of "ar", so it can be a program name with args.
6711 set dummy ar; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$ac_ct_AR"; then
6718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_AR="ar"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6738 if test -n "$ac_ct_AR"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6740 $as_echo "$ac_ct_AR" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_AR" = x; then
6747 AR=""
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755 AR=$ac_ct_AR
6757 else
6758 AR="$ac_cv_prog_AR"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}ld; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_LD+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD="$LD" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_LD="${ac_tool_prefix}ld"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 LD=$ac_cv_prog_LD
6790 if test -n "$LD"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6792 $as_echo "$LD" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_LD"; then
6801 ac_ct_LD=$LD
6802 # Extract the first word of "ld", so it can be a program name with args.
6803 set dummy ld; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_LD+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$ac_ct_LD"; then
6810 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_LD="ld"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6823 done
6824 done
6825 IFS=$as_save_IFS
6829 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6830 if test -n "$ac_ct_LD"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6832 $as_echo "$ac_ct_LD" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_LD" = x; then
6839 LD=""
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 LD=$ac_ct_LD
6849 else
6850 LD="$ac_cv_prog_LD"
6854 # Check whether --enable-monolithic was given.
6855 if test "${enable_monolithic+set}" = set; then :
6856 enableval=$enable_monolithic;
6859 if test ${enable_monolithic:-yes} = yes; then
6860 MONOLITHIC_TRUE=
6861 MONOLITHIC_FALSE='#'
6862 else
6863 MONOLITHIC_TRUE='#'
6864 MONOLITHIC_FALSE=
6868 # Check whether --enable-amule-daemon was given.
6869 if test "${enable_amule_daemon+set}" = set; then :
6870 enableval=$enable_amule_daemon;
6873 if test ${enable_amule_daemon:-no} = yes; then
6874 AMULE_DAEMON_TRUE=
6875 AMULE_DAEMON_FALSE='#'
6876 else
6877 AMULE_DAEMON_TRUE='#'
6878 AMULE_DAEMON_FALSE=
6882 # Check whether --enable-amulecmd was given.
6883 if test "${enable_amulecmd+set}" = set; then :
6884 enableval=$enable_amulecmd;
6887 if test ${enable_amulecmd:-no} = yes; then
6888 COMPILE_CMD_TRUE=
6889 COMPILE_CMD_FALSE='#'
6890 else
6891 COMPILE_CMD_TRUE='#'
6892 COMPILE_CMD_FALSE=
6896 # Check whether --enable-webserver was given.
6897 if test "${enable_webserver+set}" = set; then :
6898 enableval=$enable_webserver;
6901 if test ${enable_webserver:-no} = yes; then
6902 WEB_TRUE=
6903 WEB_FALSE='#'
6904 else
6905 WEB_TRUE='#'
6906 WEB_FALSE=
6910 # Check whether --enable-amule-gui was given.
6911 if test "${enable_amule_gui+set}" = set; then :
6912 enableval=$enable_amule_gui;
6915 if test ${enable_amule_gui:-no} = yes; then
6916 AMULE_GUI_TRUE=
6917 AMULE_GUI_FALSE='#'
6918 else
6919 AMULE_GUI_TRUE='#'
6920 AMULE_GUI_FALSE=
6924 # Check whether --enable-cas was given.
6925 if test "${enable_cas+set}" = set; then :
6926 enableval=$enable_cas;
6929 if test ${enable_cas:-no} = yes; then
6930 CAS_TRUE=
6931 CAS_FALSE='#'
6932 else
6933 CAS_TRUE='#'
6934 CAS_FALSE=
6938 # Check whether --enable-wxcas was given.
6939 if test "${enable_wxcas+set}" = set; then :
6940 enableval=$enable_wxcas;
6943 if test ${enable_wxcas:-no} = yes; then
6944 WXCAS_TRUE=
6945 WXCAS_FALSE='#'
6946 else
6947 WXCAS_TRUE='#'
6948 WXCAS_FALSE=
6952 # Check whether --enable-ed2k was given.
6953 if test "${enable_ed2k+set}" = set; then :
6954 enableval=$enable_ed2k;
6957 if test ${enable_ed2k:-yes} = yes; then
6958 ED2K_TRUE=
6959 ED2K_FALSE='#'
6960 else
6961 ED2K_TRUE='#'
6962 ED2K_FALSE=
6966 # Check whether --enable-alc was given.
6967 if test "${enable_alc+set}" = set; then :
6968 enableval=$enable_alc;
6971 if test ${enable_alc:-no} = yes; then
6972 ALC_TRUE=
6973 ALC_FALSE='#'
6974 else
6975 ALC_TRUE='#'
6976 ALC_FALSE=
6980 # Check whether --enable-alcc was given.
6981 if test "${enable_alcc+set}" = set; then :
6982 enableval=$enable_alcc;
6985 if test ${enable_alcc:-no} = yes; then
6986 ALCC_TRUE=
6987 ALCC_FALSE='#'
6988 else
6989 ALCC_TRUE='#'
6990 ALCC_FALSE=
6994 # Check whether --enable-xas was given.
6995 if test "${enable_xas+set}" = set; then :
6996 enableval=$enable_xas;
6999 if test ${enable_xas:-no} = yes; then
7000 XAS_TRUE=
7001 XAS_FALSE='#'
7002 else
7003 XAS_TRUE='#'
7004 XAS_FALSE=
7008 # Check whether --enable-fileview was given.
7009 if test "${enable_fileview+set}" = set; then :
7010 enableval=$enable_fileview;
7013 if test ${enable_fileview:-no} = yes; then
7014 FILEVIEW_TRUE=
7015 FILEVIEW_FALSE='#'
7016 else
7017 FILEVIEW_TRUE='#'
7018 FILEVIEW_FALSE=
7022 # Check whether --enable-plasmamule was given.
7023 if test "${enable_plasmamule+set}" = set; then :
7024 enableval=$enable_plasmamule;
7029 # Run all the tests with static linkage if we want a statically linked binary
7030 # Check whether --enable-static was given.
7031 if test "${enable_static+set}" = set; then :
7032 enableval=$enable_static;
7036 if test ${enable_static:-no} = yes; then :
7037 LDFLAGS="$LDFLAGS -static"
7042 # Check whether --with-kde4-config was given.
7043 if test "${with_kde4_config+set}" = set; then :
7044 withval=$with_kde4_config; KDE4_CONFIG=$withval
7045 else
7046 KDE4_CONFIG=""
7049 # Check whether --enable-kde-in-home was given.
7050 if test "${enable_kde_in_home+set}" = set; then :
7051 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7052 else
7053 KDE_IN_HOME=no
7059 # Check whether --with-moc was given.
7060 if test "${with_moc+set}" = set; then :
7061 withval=$with_moc; QT_MOC=$withval
7062 else
7063 QT_MOC=""
7068 # Default is yes, because they're most likely compatible.
7069 # However, this is only used when cross-compiling.
7071 # Check whether --with-gnu-malloc was given.
7072 if test "${with_gnu_malloc+set}" = set; then :
7073 withval=$with_gnu_malloc; gnumalloc=$withval
7074 else
7075 gnumalloc=yes
7080 # Checking for libs before all other stuff to break
7081 # configure as soon as possible in case of a missing one
7082 # to avoid losing too much time
7084 # Check for gd
7087 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 case $PKG_CONFIG in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7117 esac
7119 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7120 if test -n "$PKG_CONFIG"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7122 $as_echo "$PKG_CONFIG" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7130 if test -z "$ac_cv_path_PKG_CONFIG"; then
7131 ac_pt_PKG_CONFIG=$PKG_CONFIG
7132 # Extract the first word of "pkg-config", so it can be a program name with args.
7133 set dummy pkg-config; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 case $ac_pt_PKG_CONFIG in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7160 esac
7162 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7163 if test -n "$ac_pt_PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7165 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_pt_PKG_CONFIG" = x; then
7172 PKG_CONFIG=""
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 PKG_CONFIG=$ac_pt_PKG_CONFIG
7182 else
7183 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7187 if test -n "$PKG_CONFIG"; then
7188 _pkg_min_version=0.9.0
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7190 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 PKG_CONFIG=""
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if ${ac_cv_header_stdc+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <stdlib.h>
7211 #include <stdarg.h>
7212 #include <string.h>
7213 #include <float.h>
7216 main ()
7220 return 0;
7222 _ACEOF
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224 ac_cv_header_stdc=yes
7225 else
7226 ac_cv_header_stdc=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 #include <string.h>
7236 _ACEOF
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "memchr" >/dev/null 2>&1; then :
7240 else
7241 ac_cv_header_stdc=no
7243 rm -f conftest*
7247 if test $ac_cv_header_stdc = yes; then
7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <stdlib.h>
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev/null 2>&1; then :
7257 else
7258 ac_cv_header_stdc=no
7260 rm -f conftest*
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then :
7268 else
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <ctype.h>
7272 #include <stdlib.h>
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7276 #else
7277 # define ISLOWER(c) \
7278 (('a' <= (c) && (c) <= 'i') \
7279 || ('j' <= (c) && (c) <= 'r') \
7280 || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #endif
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7286 main ()
7288 int i;
7289 for (i = 0; i < 256; i++)
7290 if (XOR (islower (i), ISLOWER (i))
7291 || toupper (i) != TOUPPER (i))
7292 return 2;
7293 return 0;
7295 _ACEOF
7296 if ac_fn_c_try_run "$LINENO"; then :
7298 else
7299 ac_cv_header_stdc=no
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302 conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7317 inttypes.h stdint.h unistd.h
7318 do :
7319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7325 _ACEOF
7329 done
7332 if test ${enable_cas:-no} = yes; then :
7337 # Check whether --with-gdlib-prefix was given.
7338 if test "${with_gdlib_prefix+set}" = set; then :
7339 withval=$with_gdlib_prefix;
7343 # Check whether --with-gdlib-config was given.
7344 if test "${with_gdlib_config+set}" = set; then :
7345 withval=$with_gdlib_config;
7349 GDLIB_VERSION=
7351 # Check gdlib in pkg-config first to avoid deprecation warnings
7352 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7353 # skip the pkg-config check, the user probably wants to use
7354 # another gdlib instance.
7355 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7357 if test -n "$PKG_CONFIG"; then :
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7360 $as_echo_n "checking for gdlib... " >&6; }
7362 if $PKG_CONFIG gdlib --exists; then :
7364 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7366 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7369 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7370 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7371 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7372 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7373 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7375 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7378 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7379 GDLIB_VERSION=
7383 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7394 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7395 if test -z "$GDLIB_VERSION"; then :
7397 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7398 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7399 GDLIB_CONFIG_NAME=gdlib-config
7401 if test -n "$with_gdlib_config"; then :
7402 GDLIB_CONFIG_NAME="$with_gdlib_config"
7405 # deal with optional prefix
7406 if test -n "$with_gdlib_prefix"; then :
7407 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7410 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7411 if test -x "$GDLIB_CONFIG_NAME"; then :
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7414 $as_echo_n "checking for gdlib-config... " >&6; }
7415 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7417 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7419 else
7420 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7421 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 case $GDLIB_CONFIG_PATH in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7434 for as_dir in $as_dummy
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7448 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7450 esac
7452 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7453 if test -n "$GDLIB_CONFIG_PATH"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7455 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7464 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7467 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7468 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7470 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7471 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7472 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7473 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7475 if test $gdlib_config_major_version -gt 2; then
7476 gdlib_ver_ok=yes
7477 elif test $gdlib_config_major_version -eq 2; then
7479 if test $gdlib_config_minor_version -gt 0; then
7480 gdlib_ver_ok=yes
7481 elif test $gdlib_config_minor_version -eq 0; then
7482 if test $gdlib_config_micro_version -ge 0; then
7483 gdlib_ver_ok=yes
7494 if test -z "${gdlib_ver_ok:-}"; then :
7496 if test -z "$GDLIB_VERSION"; then :
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7502 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7503 GDLIB_VERSION=
7507 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7510 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7511 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7512 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7513 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7519 if test -n "$GDLIB_VERSION"; then :
7521 mule_backup_CFLAGS="$CFLAGS"
7522 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7524 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7525 if test "x$ac_cv_header_gd_h" = xyes; then :
7527 else
7529 GDLIB_CFLAGS=
7530 GDLIB_LDFLAGS=
7531 GDLIB_LIBS=
7532 GDLIB_VERSION=
7538 CFLAGS="$mule_backup_CFLAGS"
7542 if test -n "$GDLIB_VERSION"; then :
7544 CAS_DEFS="-D__GD__"
7545 GDLIB_LIBS="-lgd"
7547 else
7548 CAS_DEFS=
7553 if test -z "$CAS_DEFS"; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7555 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7556 Please check that gdlib-config is in your default path, check out
7557 LD_LIBRARY_PATH or equivalent variable.
7558 Or this might also be that your gdlib-config has other name.
7559 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7560 (replace /usr/bin/gdlib-config with a valid path to your
7561 gdlib-config).
7562 If you use compiled packages check if you have devel pack installed.
7563 To download the latest version check http://www.boutell.com/gd for
7564 sources." >&5
7565 $as_echo "$as_me: WARNING:
7566 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7567 Please check that gdlib-config is in your default path, check out
7568 LD_LIBRARY_PATH or equivalent variable.
7569 Or this might also be that your gdlib-config has other name.
7570 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7571 (replace /usr/bin/gdlib-config with a valid path to your
7572 gdlib-config).
7573 If you use compiled packages check if you have devel pack installed.
7574 To download the latest version check http://www.boutell.com/gd for
7575 sources." >&2;}
7576 _mule_warning_0=yes
7577 _mule_has_warnings=yes
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7584 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7585 if ${ac_cv_header_stdbool_h+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 #include <stdbool.h>
7592 #ifndef bool
7593 "error: bool is not defined"
7594 #endif
7595 #ifndef false
7596 "error: false is not defined"
7597 #endif
7598 #if false
7599 "error: false is not 0"
7600 #endif
7601 #ifndef true
7602 "error: true is not defined"
7603 #endif
7604 #if true != 1
7605 "error: true is not 1"
7606 #endif
7607 #ifndef __bool_true_false_are_defined
7608 "error: __bool_true_false_are_defined is not defined"
7609 #endif
7611 struct s { _Bool s: 1; _Bool t; } s;
7613 char a[true == 1 ? 1 : -1];
7614 char b[false == 0 ? 1 : -1];
7615 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7616 char d[(bool) 0.5 == true ? 1 : -1];
7617 /* See body of main program for 'e'. */
7618 char f[(_Bool) 0.0 == false ? 1 : -1];
7619 char g[true];
7620 char h[sizeof (_Bool)];
7621 char i[sizeof s.t];
7622 enum { j = false, k = true, l = false * true, m = true * 256 };
7623 /* The following fails for
7624 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7625 _Bool n[m];
7626 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7627 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7628 /* Catch a bug in an HP-UX C compiler. See
7629 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7630 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7632 _Bool q = true;
7633 _Bool *pq = &q;
7636 main ()
7639 bool e = &s;
7640 *pq |= q;
7641 *pq |= ! q;
7642 /* Refer to every declared value, to avoid compiler optimizations. */
7643 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7644 + !m + !n + !o + !p + !q + !pq);
7647 return 0;
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651 ac_cv_header_stdbool_h=yes
7652 else
7653 ac_cv_header_stdbool_h=no
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7658 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7659 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7660 if test "x$ac_cv_type__Bool" = xyes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE__BOOL 1
7664 _ACEOF
7670 if test $ac_cv_header_stdbool_h = yes; then
7672 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7677 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7678 if ${ac_cv_c_const+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7685 main ()
7688 #ifndef __cplusplus
7689 /* Ultrix mips cc rejects this sort of thing. */
7690 typedef int charset[2];
7691 const charset cs = { 0, 0 };
7692 /* SunOS 4.1.1 cc rejects this. */
7693 char const *const *pcpcc;
7694 char **ppc;
7695 /* NEC SVR4.0.2 mips cc rejects this. */
7696 struct point {int x, y;};
7697 static struct point const zero = {0,0};
7698 /* AIX XL C 1.02.0.0 rejects this.
7699 It does not let you subtract one const X* pointer from another in
7700 an arm of an if-expression whose if-part is not a constant
7701 expression */
7702 const char *g = "string";
7703 pcpcc = &g + (g ? g-g : 0);
7704 /* HPUX 7.0 cc rejects these. */
7705 ++pcpcc;
7706 ppc = (char**) pcpcc;
7707 pcpcc = (char const *const *) ppc;
7708 { /* SCO 3.2v4 cc rejects this sort of thing. */
7709 char tx;
7710 char *t = &tx;
7711 char const *s = 0 ? (char *) 0 : (char const *) 0;
7713 *t++ = 0;
7714 if (s) return 0;
7716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7717 int x[] = {25, 17};
7718 const int *foo = &x[0];
7719 ++foo;
7721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7722 typedef const int *iptr;
7723 iptr p = 0;
7724 ++p;
7726 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7728 struct s { int j; const int *ap[3]; } bx;
7729 struct s *b = &bx; b->j = 5;
7731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7732 const int foo = 10;
7733 if (!foo) return 0;
7735 return !cs[0] && !zero.x;
7736 #endif
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 ac_cv_c_const=yes
7744 else
7745 ac_cv_c_const=no
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7750 $as_echo "$ac_cv_c_const" >&6; }
7751 if test $ac_cv_c_const = no; then
7753 $as_echo "#define const /**/" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7758 $as_echo_n "checking for inline... " >&6; }
7759 if ${ac_cv_c_inline+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 ac_cv_c_inline=no
7763 for ac_kw in inline __inline__ __inline; do
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #ifndef __cplusplus
7767 typedef int foo_t;
7768 static $ac_kw foo_t static_foo () {return 0; }
7769 $ac_kw foo_t foo () {return 0; }
7770 #endif
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 ac_cv_c_inline=$ac_kw
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 test "$ac_cv_c_inline" != no && break
7778 done
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7782 $as_echo "$ac_cv_c_inline" >&6; }
7784 case $ac_cv_c_inline in
7785 inline | yes) ;;
7787 case $ac_cv_c_inline in
7788 no) ac_val=;;
7789 *) ac_val=$ac_cv_c_inline;;
7790 esac
7791 cat >>confdefs.h <<_ACEOF
7792 #ifndef __cplusplus
7793 #define inline $ac_val
7794 #endif
7795 _ACEOF
7797 esac
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7800 $as_echo_n "checking for working volatile... " >&6; }
7801 if ${ac_cv_c_volatile+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7808 main ()
7811 volatile int x;
7812 int * volatile y = (int *) 0;
7813 return !x && !y;
7815 return 0;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 ac_cv_c_volatile=yes
7820 else
7821 ac_cv_c_volatile=no
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7826 $as_echo "$ac_cv_c_volatile" >&6; }
7827 if test $ac_cv_c_volatile = no; then
7829 $as_echo "#define volatile /**/" >>confdefs.h
7834 ac_ext=cpp
7835 ac_cpp='$CXXCPP $CPPFLAGS'
7836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7842 # Check for zlib
7844 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 :
7847 # Check whether --with-zlib was given.
7848 if test "${with_zlib+set}" = set; then :
7849 withval=$with_zlib;
7853 case "${with_zlib:-yes}" in
7855 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7857 yes | sys)
7860 zlib_prefix="$with_zlib"
7861 esac
7863 mule_backup_CPPFLAGS="$CPPFLAGS"
7864 mule_backup_LDFLAGS="$LDFLAGS"
7865 mule_backup_LIBS="$LIBS"
7866 if test -n "$zlib_prefix"; then :
7868 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7869 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7870 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7871 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7873 else
7875 ZLIB_CPPFLAGS=
7876 ZLIB_LDFLAGS=
7879 ZLIB_LIBS="-lz"
7880 LIBS="$ZLIB_LIBS $LIBS"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7883 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7884 if test "$cross_compiling" = yes; then :
7886 result=no
7887 z_version=
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7892 #include <zlib.h>
7893 #include <stdio.h>
7896 main ()
7899 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7900 zlibVersion();
7903 return 0;
7906 _ACEOF
7907 if ac_fn_cxx_try_link "$LINENO"; then :
7909 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7910 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7911 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7912 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7913 if test "$cross_zver_max" -gt "1"; then
7914 result=yes
7915 elif test "$cross_zver_max" -eq "1"; then
7917 if test "$cross_zver_mid" -gt "1"; then
7918 result=yes
7919 elif test "$cross_zver_mid" -eq "1"; then
7920 if test "$cross_zver_min" -ge "4"; then
7921 result=yes
7929 if test ${result:-no} = yes; then :
7930 z_version=" (version $ZLIB_VERSION)"
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7937 $as_echo "$result$z_version" >&6; }
7939 else
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7944 #include <zlib.h>
7945 #include <stdio.h>
7948 main ()
7950 const char *zver = zlibVersion();
7951 FILE *f=fopen("conftestval", "w");
7952 if (!f) return 1;
7953 fprintf(f, "%s",
7954 zver[0] > '1' ||
7955 (zver[0] == '1' &&
7956 (zver[2] > '1' ||
7957 (zver[2] == '1' &&
7958 zver[4] >= '4'))) ? "yes" : "no");
7959 fclose(f);
7960 f=fopen("conftestver", "w");
7961 if (f) {
7962 fprintf(f, "%s", ZLIB_VERSION);
7963 fclose(f);
7967 return 0;
7970 _ACEOF
7971 if ac_fn_cxx_try_run "$LINENO"; then :
7973 if test -f conftestval; then :
7974 result=`cat conftestval`
7975 else
7976 result=no
7978 if test ${result:-no} = yes; then :
7980 if test -f conftestver; then :
7982 ZLIB_VERSION=`cat conftestver`
7983 z_version=" (version $ZLIB_VERSION)"
7985 else
7986 z_version=
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7991 $as_echo "$result$z_version" >&6; }
7993 else
7995 result=no
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7997 $as_echo "$result" >&6; }
8000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8001 conftest.$ac_objext conftest.beam conftest.$ac_ext
8005 CPPFLAGS="$mule_backup_CPPFLAGS"
8006 LDFLAGS="$mule_backup_LDFLAGS"
8007 LIBS="$mule_backup_LIBS"
8009 if test ${result:-no} = no; then :
8011 ZLIB_CPPFLAGS=
8012 ZLIB_LDFLAGS=
8013 ZLIB_LIBS=
8014 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8022 # Check for libpng
8023 if test ${enable_webserver:-no} = yes; then :
8026 # Check whether --with-libpng-prefix was given.
8027 if test "${with_libpng_prefix+set}" = set; then :
8028 withval=$with_libpng_prefix;
8032 # Check whether --with-libpng-config was given.
8033 if test "${with_libpng_config+set}" = set; then :
8034 withval=$with_libpng_config;
8038 LIBPNG_VERSION=
8040 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8041 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8042 LIBPNG_CONFIG_NAME=libpng-config
8044 if test -n "$with_libpng_config"; then :
8045 LIBPNG_CONFIG_NAME="$with_libpng_config"
8048 # deal with optional prefix
8049 if test -n "$with_libpng_prefix"; then :
8050 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8053 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8054 if test -x "$LIBPNG_CONFIG_NAME"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8057 $as_echo_n "checking for libpng-config... " >&6; }
8058 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8060 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8062 else
8063 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8064 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 case $LIBPNG_CONFIG_PATH in
8071 [\\/]* | ?:[\\/]*)
8072 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8077 for as_dir in $as_dummy
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8091 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8093 esac
8095 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8096 if test -n "$LIBPNG_CONFIG_PATH"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8098 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8107 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8110 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8112 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8114 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8115 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8116 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8117 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8119 libpng_ver_ok=
8120 if test $libpng_config_major_version -gt 1; then
8121 libpng_ver_ok=yes
8122 elif test $libpng_config_major_version -eq 1; then
8124 if test $libpng_config_minor_version -gt 2; then
8125 libpng_ver_ok=yes
8126 elif test $libpng_config_minor_version -eq 2; then
8127 if test $libpng_config_micro_version -ge 0; then
8128 libpng_ver_ok=yes
8137 if test -z "$libpng_ver_ok"; then :
8139 if test -z "$LIBPNG_VERSION"; then :
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8145 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8146 LIBPNG_VERSION=
8150 else
8152 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8153 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8154 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8156 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8159 $as_echo_n "checking if libpng is usable... " >&6; }
8161 SAVED_CFLAGS=$CFLAGS
8162 SAVED_LDFLAGS=$LDFLAGS
8163 SAVED_LIBS=$LIBS
8165 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8166 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8167 LIBS="$LIBS $LIBPNG_LIBS"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8173 #include <png.h>
8174 #include <stdio.h>
8177 main ()
8180 png_uint_32 libpng_vn = png_access_version_number();
8181 printf("\nlibpng version %i\n\n", libpng_vn);
8184 return 0;
8187 _ACEOF
8188 if ac_fn_cxx_try_link "$LINENO"; then :
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8193 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8196 $as_echo "no (failed to compile and link test program)" >&6; }
8197 LIBPNG_LIBS=
8198 LIBPNG_LDFLAGS=
8199 LIBPNG_CFLAGS=
8200 LIBPNG_VERSION=
8203 rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8206 CFLAGS="$SAVED_CFLAGS"
8207 LDFLAGS="$SAVED_LDFLAGS"
8208 LIBS="$SAVED_LIBS"
8214 if test -n "$LIBPNG_VERSION"; then :
8215 AMULEWEB_DEFS="-DWITH_LIBPNG"
8216 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8219 libpng >= 1.2.0 not found.
8220 amuleweb will be compiled but file download progress bar images will
8221 NOT be generated." >&5
8222 $as_echo "$as_me: WARNING:
8223 libpng >= 1.2.0 not found.
8224 amuleweb will be compiled but file download progress bar images will
8225 NOT be generated." >&2;}
8226 _mule_warning_1=yes
8227 _mule_has_warnings=yes
8238 # Check for GeoIP (required for IP2Country capability)
8240 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8242 # Check whether --enable-geoip was given.
8243 if test "${enable_geoip+set}" = set; then :
8244 enableval=$enable_geoip;
8249 if test ${enable_geoip:-no} = yes; then :
8252 # Check whether --with-geoip-headers was given.
8253 if test "${with_geoip_headers+set}" = set; then :
8254 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8258 # Check whether --with-geoip-lib was given.
8259 if test "${with_geoip_lib+set}" = set; then :
8260 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8264 mule_backup_CPPFLAGS="$CPPFLAGS"
8265 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8266 mule_backup_LDFLAGS="$LDFLAGS"
8267 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8269 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8270 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8272 if test x$SYS = xwin32; then :
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8275 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8276 # Actually, we might not need any if GeoIP is linked as a .dll
8277 # - but that's even harder to check for
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8282 #include <GeoIP.h>
8283 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8284 I do know it's not the best approach, but at least works with MinGW stock headers.
8285 (tested with w32api-3.12)
8286 #endif
8289 main ()
8293 return 0;
8296 _ACEOF
8297 if ac_fn_cxx_try_compile "$LINENO"; then :
8299 GEOIP_WINSOCK_LIB="-lwsock32"
8301 else
8303 GEOIP_WINSOCK_LIB="-lws2_32"
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8308 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8312 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8313 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char GeoIP_open ();
8329 main ()
8331 return GeoIP_open ();
8333 return 0;
8335 _ACEOF
8336 if ac_fn_cxx_try_link "$LINENO"; then :
8337 ac_cv_lib_GeoIP_GeoIP_open=yes
8338 else
8339 ac_cv_lib_GeoIP_GeoIP_open=no
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8346 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8347 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8350 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8352 GEOIP_LIBS="-lGeoIP"
8353 if test x$SYS = xwin32; then :
8354 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8356 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8358 # Check whether --with-geoip-static was given.
8359 if test "${with_geoip_static+set}" = set; then :
8360 withval=$with_geoip_static;
8361 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8363 mule_backup_LIBS="$LIBS"
8364 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8369 #include <GeoIP.h>
8372 main ()
8375 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8378 return 0;
8381 _ACEOF
8382 if ac_fn_cxx_try_link "$LINENO"; then :
8384 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8386 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8389 Cannot link GeoIP statically, because your linker ($LD) does not
8390 support it." >&5
8391 $as_echo "$as_me: WARNING:
8392 Cannot link GeoIP statically, because your linker ($LD) does not
8393 support it." >&2;}
8394 _mule_warning_2=yes
8395 _mule_has_warnings=yes
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 LIBS="$mule_backup_LIBS"
8408 else
8410 enable_geoip=disabled
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8412 GeoIP support has been disabled because the GeoIP libraries were not
8413 found" >&5
8414 $as_echo "$as_me: WARNING:
8415 GeoIP support has been disabled because the GeoIP libraries were not
8416 found" >&2;}
8417 _mule_warning_3=yes
8418 _mule_has_warnings=yes
8424 else
8426 enable_geoip=disabled
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8428 GeoIP support has been disabled because the GeoIP header files were
8429 not found" >&5
8430 $as_echo "$as_me: WARNING:
8431 GeoIP support has been disabled because the GeoIP header files were
8432 not found" >&2;}
8433 _mule_warning_4=yes
8434 _mule_has_warnings=yes
8441 CPPFLAGS="$mule_backup_CPPFLAGS"
8442 LDFLAGS="$mule_backup_LDFLAGS"
8449 # Check for wx
8450 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 :
8453 # Check whether --with-wxdir was given.
8454 if test "${with_wxdir+set}" = set; then :
8455 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8456 wx_config_args="--inplace"
8460 # Check whether --with-wx-config was given.
8461 if test "${with_wx_config+set}" = set; then :
8462 withval=$with_wx_config; wx_config_name="$withval"
8466 # Check whether --with-wx-prefix was given.
8467 if test "${with_wx_prefix+set}" = set; then :
8468 withval=$with_wx_prefix; wx_config_prefix="$withval"
8469 else
8470 wx_config_prefix=""
8474 # Check whether --with-wx-exec-prefix was given.
8475 if test "${with_wx_exec_prefix+set}" = set; then :
8476 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8477 else
8478 wx_config_exec_prefix=""
8493 # Check whether --with-toolkit was given.
8494 if test "${with_toolkit+set}" = set; then :
8495 withval=$with_toolkit;
8496 else
8497 withval="auto"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8502 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8503 if test "$withval" = "auto" ; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8505 $as_echo "will be automatically detected" >&6; }
8506 TOOLKIT=""
8507 else
8508 TOOLKIT="$withval"
8510 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8511 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8512 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8513 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8514 as_fn_error $? "
8515 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8516 " "$LINENO" 5
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8520 $as_echo "$TOOLKIT" >&6; }
8527 # Check whether --with-wxshared was given.
8528 if test "${with_wxshared+set}" = set; then :
8529 withval=$with_wxshared;
8530 else
8531 withval="auto"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8536 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8537 if test "$withval" = "yes" ; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8539 $as_echo "yes" >&6; }
8540 WX_SHARED=1
8542 elif test "1" = "1" -a "$withval" = "no" ; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 WX_SHARED=0
8546 elif test "$withval" = "auto" ; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8548 $as_echo "will be automatically detected" >&6; }
8549 WX_SHARED=""
8550 else
8551 as_fn_error $? "
8552 Unrecognized option value (allowed values: yes, auto)
8553 " "$LINENO" 5
8560 # Check whether --with-wxdebug was given.
8561 if test "${with_wxdebug+set}" = set; then :
8562 withval=$with_wxdebug;
8563 else
8564 withval="auto"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8569 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8570 if test "$withval" = "yes" ; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572 $as_echo "yes" >&6; }
8573 WX_DEBUG=1
8575 elif test "1" = "1" -a "$withval" = "no" ; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 WX_DEBUG=0
8579 elif test "$withval" = "auto" ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8581 $as_echo "will be automatically detected" >&6; }
8582 WX_DEBUG=""
8583 else
8584 as_fn_error $? "
8585 Unrecognized option value (allowed values: yes, auto)
8586 " "$LINENO" 5
8593 # Check whether --with-wxversion was given.
8594 if test "${with_wxversion+set}" = set; then :
8595 withval=$with_wxversion;
8596 else
8597 withval="auto"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8602 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8603 if test "$withval" = "auto" ; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8605 $as_echo "will be automatically detected" >&6; }
8606 WX_RELEASE=""
8607 else
8609 wx_requested_major_version=`echo $withval | \
8610 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8611 wx_requested_minor_version=`echo $withval | \
8612 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8614 if test "${#wx_requested_major_version}" != "1" -o \
8615 "${#wx_requested_minor_version}" != "1" ; then
8616 as_fn_error $? "
8617 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8618 " "$LINENO" 5
8621 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8623 $as_echo "$WX_RELEASE" >&6; }
8627 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8628 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8629 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8630 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8631 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8632 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8635 # Force using a static wxWidgets library if the executable is to be linked statically.
8636 if test ${enable_static:-no} = yes; then :
8637 WX_SHARED=0
8639 # Force using a unicode build of the library
8640 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 :
8641 WX_UNICODE=1
8643 DEBUG=$WX_DEBUG
8645 if test "$WX_SHARED" = "1" ; then
8646 WXCONFIG_FLAGS="--static=no "
8647 elif test "$WX_SHARED" = "0" ; then
8648 WXCONFIG_FLAGS="--static=yes "
8651 if test "$WX_DEBUG" = "1" ; then
8652 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8653 elif test "$WX_DEBUG" = "0" ; then
8654 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8657 if test "$WX_UNICODE" = "1" ; then
8658 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8659 elif test "$WX_UNICODE" = "0" ; then
8660 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8663 if test -n "$TOOLKIT" ; then
8664 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8667 if test -n "$WX_RELEASE" ; then
8668 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8671 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8673 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8674 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8678 if test x${WX_CONFIG_NAME+set} != xset ; then
8679 WX_CONFIG_NAME=wx-config
8682 if test "x$wx_config_name" != x ; then
8683 WX_CONFIG_NAME="$wx_config_name"
8686 if test x$wx_config_exec_prefix != x ; then
8687 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8688 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8690 if test x$wx_config_prefix != x ; then
8691 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8692 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8694 if test "$cross_compiling" = "yes"; then
8695 wx_config_args="$wx_config_args --host=$host_alias"
8698 if test -x "$WX_CONFIG_NAME" ; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8700 $as_echo_n "checking for wx-config... " >&6; }
8701 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8703 $as_echo "$WX_CONFIG_PATH" >&6; }
8704 else
8705 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8706 set dummy $WX_CONFIG_NAME; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 case $WX_CONFIG_PATH in
8713 [\\/]* | ?:[\\/]*)
8714 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8719 for as_dir in $as_dummy
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8729 done
8730 done
8731 IFS=$as_save_IFS
8733 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8735 esac
8737 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8738 if test -n "$WX_CONFIG_PATH"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8740 $as_echo "$WX_CONFIG_PATH" >&6; }
8741 else
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8749 if test "$WX_CONFIG_PATH" != "no" ; then
8750 WX_VERSION=""
8752 min_wx_version=2.8.12
8753 if test -z "$WXCONFIG_FLAGS" ; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8755 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8758 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8761 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8763 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8764 wx_config_major_version=`echo $WX_VERSION | \
8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8766 wx_config_minor_version=`echo $WX_VERSION | \
8767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8768 wx_config_micro_version=`echo $WX_VERSION | \
8769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8771 wx_requested_major_version=`echo $min_wx_version | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8773 wx_requested_minor_version=`echo $min_wx_version | \
8774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8775 wx_requested_micro_version=`echo $min_wx_version | \
8776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8779 wx_ver_ok=""
8780 if test "x$WX_VERSION" != x ; then
8781 if test $wx_config_major_version -gt $wx_requested_major_version; then
8782 wx_ver_ok=yes
8783 else
8784 if test $wx_config_major_version -eq $wx_requested_major_version; then
8785 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8786 wx_ver_ok=yes
8787 else
8788 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8789 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8790 wx_ver_ok=yes
8799 if test -n "$wx_ver_ok"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8801 $as_echo "yes (version $WX_VERSION)" >&6; }
8802 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8805 $as_echo_n "checking for wxWidgets static library... " >&6; }
8806 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
8807 if test "x$WX_LIBS_STATIC" = "x"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812 $as_echo "yes" >&6; }
8815 wx_has_cppflags=""
8816 if test $wx_config_major_version -gt 2; then
8817 wx_has_cppflags=yes
8818 else
8819 if test $wx_config_major_version -eq 2; then
8820 if test $wx_config_minor_version -gt 2; then
8821 wx_has_cppflags=yes
8822 else
8823 if test $wx_config_minor_version -eq 2; then
8824 if test $wx_config_micro_version -ge 6; then
8825 wx_has_cppflags=yes
8832 wx_has_rescomp=""
8833 if test $wx_config_major_version -gt 2; then
8834 wx_has_rescomp=yes
8835 else
8836 if test $wx_config_major_version -eq 2; then
8837 if test $wx_config_minor_version -ge 7; then
8838 wx_has_rescomp=yes
8842 if test "x$wx_has_rescomp" = x ; then
8843 WX_RESCOMP=
8844 else
8845 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8848 if test "x$wx_has_cppflags" = x ; then
8849 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8850 WX_CPPFLAGS=$WX_CFLAGS
8851 WX_CXXFLAGS=$WX_CFLAGS
8853 WX_CFLAGS_ONLY=$WX_CFLAGS
8854 WX_CXXFLAGS_ONLY=$WX_CFLAGS
8855 else
8856 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
8857 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
8858 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8860 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8861 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8864 wxWin=1
8866 else
8868 if test "x$WX_VERSION" = x; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8873 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8876 WX_CFLAGS=""
8877 WX_CPPFLAGS=""
8878 WX_CXXFLAGS=""
8879 WX_LIBS=""
8880 WX_LIBS_STATIC=""
8881 WX_RESCOMP=""
8883 if test ! -z "$WXCONFIG_FLAGS"; then
8885 wx_error_message="
8886 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8887 build with the following settings:
8888 $WXCONFIG_FLAGS
8889 but such build is not available.
8891 To see the wxWidgets builds available on this system, please use
8892 'wx-config --list' command. To use the default build, returned by
8893 'wx-config --selected-config', use the options with their 'auto'
8894 default values."
8898 wx_error_message="
8899 The requested wxWidgets build couldn't be found.
8900 $wx_error_message
8902 If you still get this error, then check that 'wx-config' is
8903 in path, the directory where wxWidgets libraries are installed
8904 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8905 or equivalent variable and wxWidgets version is 2.8.12 or above."
8907 as_fn_error $? "$wx_error_message" "$LINENO" 5
8910 else
8912 WX_CFLAGS=""
8913 WX_CPPFLAGS=""
8914 WX_CXXFLAGS=""
8915 WX_LIBS=""
8916 WX_LIBS_STATIC=""
8917 WX_RESCOMP=""
8933 WX_VERSION_MAJOR="$wx_config_major_version"
8934 WX_VERSION_MINOR="$wx_config_minor_version"
8935 WX_VERSION_MICRO="$wx_config_micro_version"
8940 if test "$wxWin" != 1; then :
8941 as_fn_error $? "
8942 wxWidgets must be installed on your system but wx-config
8943 script couldn't be found. Please check that wx-config is
8944 in path or specified by --with-wx-config=path flag, the
8945 directory where wxWidgets libraries are installed (returned
8946 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8947 equivalent variable and wxWidgets version is 2.8.12 or above.
8948 " "$LINENO" 5
8951 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8952 as_fn_error $? "
8953 This version of wxWidgets is known to not work with aMule.
8954 Please upgrade to a newer version.
8955 " "$LINENO" 5
8959 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8960 if test $WX_RELEASE -lt 26 ; then
8962 as_fn_error $? "
8963 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8964 since its version is $WX_VERSION < 2.6.0; please install a newer
8965 version of wxWidgets.
8966 " "$LINENO" 5
8969 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8971 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8972 echo "[dbg] Using wx-config --selected-config"
8973 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8976 if test "$WX_SHARED" = "1"; then
8977 STATIC=0
8978 elif test "$WX_SHARED" = "0"; then
8979 STATIC=1
8983 if test -z "$UNICODE" ; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8986 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8988 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8990 if test "$WX_UNICODE" != "0"; then
8991 WX_UNICODE=1
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8993 $as_echo "yes" >&6; }
8994 else
8995 WX_UNICODE=0
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8999 else
9001 WX_UNICODE=$UNICODE
9005 if test -z "$DEBUG" ; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9008 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9010 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9012 if test "$WX_DEBUG" != "0"; then
9013 WX_DEBUG=1
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9015 $as_echo "yes" >&6; }
9016 else
9017 WX_DEBUG=0
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9021 else
9023 WX_DEBUG=$DEBUG
9027 if test -z "$STATIC" ; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9030 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9032 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9034 if test "$WX_STATIC" != "0"; then
9035 WX_STATIC=1
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037 $as_echo "yes" >&6; }
9038 else
9039 WX_STATIC=0
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9043 else
9045 WX_STATIC=$STATIC
9049 if test "$WX_STATIC" != "0"; then
9050 WX_SHARED=0
9051 else
9052 WX_SHARED=1
9059 if test -z "$TOOLKIT" ; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9062 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9064 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9065 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9066 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9067 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9068 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9069 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9070 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9071 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9072 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9073 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9075 WX_PORT="unknown"
9076 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9077 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9078 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9079 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9080 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9081 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9082 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9083 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9084 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9085 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9087 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9088 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9091 if test "$WX_PORT" = "unknown" ; then
9092 as_fn_error $? "
9093 Cannot detect the currently installed wxWidgets port !
9094 Please check your 'wx-config --cxxflags'...
9095 " "$LINENO" 5
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9099 $as_echo "$WX_PORT" >&6; }
9100 else
9101 WX_PORT=$TOOLKIT
9106 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9107 echo "[dbg] Values of all WX_* options after final detection:"
9108 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9109 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9110 echo "[dbg] WX_SHARED: $WX_SHARED"
9111 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9112 echo "[dbg] WX_PORT: $WX_PORT"
9115 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9116 as_fn_error $? "
9117 Cannot build shared library against a static build of wxWidgets !
9118 This error happens because the wxWidgets build which was selected
9119 has been detected as static while you asked to build $PACKAGE_NAME
9120 as shared library and this is not possible.
9121 Use the '--disable-shared' option to build $PACKAGE_NAME
9122 as static library or '--with-wxshared' to use wxWidgets as shared library.
9123 " "$LINENO" 5
9126 if test -z "$UNICODE" ; then
9127 UNICODE=$WX_UNICODE
9129 if test -z "$SHARED" ; then
9130 SHARED=$WX_SHARED
9132 if test -z "$TOOLKIT" ; then
9133 TOOLKIT=$WX_PORT
9136 if test "$DEBUG" = "1"; then
9137 BUILD="debug"
9138 CXXFLAGS="$CXXFLAGS -g -O0"
9139 CFLAGS="$CFLAGS -g -O0"
9140 elif test "$DEBUG" = "0"; then
9141 BUILD="release"
9142 CXXFLAGS="$CXXFLAGS -O2"
9143 CFLAGS="$CFLAGS -O2"
9147 # We also need wxBase
9148 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9149 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9150 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9152 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9156 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9157 if test "${WX_PORT}" = base; then :
9158 as_fn_error $? "
9159 The selected components need a wxWidgets library with GUI,
9160 but your installation is base-only. Please install a GUI
9161 enabled version of wxWidgets and then retry.
9162 " "$LINENO" 5
9168 if test ${SYS:-unknown} = win32; then :
9169 if test -n "$ac_tool_prefix"; then
9170 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9171 set dummy ${ac_tool_prefix}windres; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_prog_RC+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 if test -n "$RC"; then
9178 ac_cv_prog_RC="$RC" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_RC="${ac_tool_prefix}windres"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9191 done
9192 done
9193 IFS=$as_save_IFS
9197 RC=$ac_cv_prog_RC
9198 if test -n "$RC"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9200 $as_echo "$RC" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9208 if test -z "$ac_cv_prog_RC"; then
9209 ac_ct_RC=$RC
9210 # Extract the first word of "windres", so it can be a program name with args.
9211 set dummy windres; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$ac_ct_RC"; then
9218 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_ac_ct_RC="windres"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9237 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9238 if test -n "$ac_ct_RC"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9240 $as_echo "$ac_ct_RC" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9246 if test "x$ac_ct_RC" = x; then
9247 RC=":"
9248 else
9249 case $cross_compiling:$ac_tool_warned in
9250 yes:)
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253 ac_tool_warned=yes ;;
9254 esac
9255 RC=$ac_ct_RC
9257 else
9258 RC="$ac_cv_prog_RC"
9264 # Check for libupnp
9265 # Check whether --enable-upnp was given.
9266 if test "${enable_upnp+set}" = set; then :
9267 enableval=$enable_upnp;
9271 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9273 else
9274 enable_upnp=no
9276 if test ${enable_upnp:-yes} = yes; then :
9280 # Check whether --with-libupnp-prefix was given.
9281 if test "${with_libupnp_prefix+set}" = set; then :
9282 withval=$with_libupnp_prefix;
9283 if test -d "$withval/lib64/pkgconfig"; then :
9285 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig
9287 else
9289 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9296 if test $cross_compiling = no; then :
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.7" >&5
9299 $as_echo_n "checking for libupnp version >= 1.6.7... " >&6; }
9300 if test -n "$PKG_CONFIG"; then :
9302 if $PKG_CONFIG libupnp --exists; then :
9304 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9305 if $PKG_CONFIG libupnp --atleast-version=1.6.7; then :
9307 result=yes
9308 resultstr=" (version $LIBUPNP_VERSION)"
9309 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9310 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9311 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9312 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9313 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9315 else
9317 result=no
9318 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9322 else
9324 result=no
9325 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9329 else
9331 result=no
9332 resultstr=" (pkg-config not found)"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9336 $as_echo "$result$resultstr" >&6; }
9337 libupnp_error="libupnp >= 1.6.7 not found$resultstr"
9339 else
9341 result=no
9342 libupnp_error="cross compiling"
9346 if test ${result:-no} = yes; then :
9347 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9348 else
9349 enable_upnp=disabled
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9351 UPnP code has been disabled because ${libupnp_error}." >&5
9352 $as_echo "$as_me: WARNING:
9353 UPnP code has been disabled because ${libupnp_error}." >&2;}
9354 _mule_warning_5=yes
9355 _mule_has_warnings=yes
9364 # Check for Crypto++ (requires C++) >= 5.5
9365 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9368 # Check whether --with-crypto-prefix was given.
9369 if test "${with_crypto_prefix+set}" = set; then :
9370 withval=$with_crypto_prefix;
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.5" >&5
9375 $as_echo_n "checking for crypto++ version >= 5.5... " >&6; }
9377 cryptopp_found=false
9379 if test -n "$with_crypto_prefix"; then :
9381 CRYPTOPP_PREFIX="$with_crypto_prefix"
9382 # Find the Cryptopp header in the user-provided location
9383 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9385 cryptopp_found=true
9386 CRYPTOPP_LIB_NAME="cryptopp"
9387 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9388 CRYPTOPP_CPPFLAGS=
9389 CRYPTOPP_LDFLAGS=
9390 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9392 else
9394 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9395 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9397 cryptopp_found=true
9398 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9399 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9400 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9401 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9402 break
9405 done
9410 else
9412 # Check whether the compiler can find it
9413 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9417 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9420 main ()
9424 return 0;
9427 _ACEOF
9428 if ac_fn_cxx_try_compile "$LINENO"; then :
9430 cryptopp_found=true
9431 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9432 CRYPTOPP_CPPFLAGS=
9433 CRYPTOPP_LDFLAGS=
9434 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9435 break
9438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9439 done
9443 if $cryptopp_found; then :
9445 # Find out the crypto++ version and check against the minimum required
9446 # Ask the compiler where are the crypto++ files
9447 mule_backup_CPPFLAGS="$CPPFLAGS"
9448 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9452 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9454 _ACEOF
9455 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9456 rm -f conftest*
9457 CPPFLAGS="$mule_backup_CPPFLAGS"
9458 # Set a prefix suitable for --with-crypto-prefix
9459 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9460 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9461 # Now check the version
9462 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9463 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9464 minvers=`echo 5.5 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9466 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9468 result=yes
9469 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9471 cat >>confdefs.h <<_ACEOF
9472 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9473 _ACEOF
9476 else
9478 result=no
9479 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9480 CRYPTOPP_CPPFLAGS=
9481 CRYPTOPP_LDFLAGS=
9482 CRYPTOPP_LIBS=
9486 else
9487 result="no"; resultstr=
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9491 $as_echo "$result$resultstr" >&6; }
9493 if test ${result:-no} = yes; then :
9495 else
9497 as_fn_error $? "
9498 Could not find crypto++ installation or sources.
9499 Please try again with --with-crypto-prefix=/my_crypto_prefix
9500 (replace /my_crypto_prefix with a valid path to your crypto++
9501 installation or source directory)." "$LINENO" 5
9510 # Check whether --enable-debug was given.
9511 if test "${enable_debug+set}" = set; then :
9512 enableval=$enable_debug;
9516 # Check whether --enable-profile was given.
9517 if test "${enable_profile+set}" = set; then :
9518 enableval=$enable_profile;
9522 # Check whether --enable-optimize was given.
9523 if test "${enable_optimize+set}" = set; then :
9524 enableval=$enable_optimize;
9529 if test ${enable_debug:-yes} = yes; then :
9531 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9533 MULECFLAGS="$MULECFLAGS -g"
9534 MULECXXFLAGS="$MULECXXFLAGS -g"
9536 if test ${GCC:-no} = yes; then :
9538 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9539 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9542 if test ${SYS:-unknown} = win32; then :
9543 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9546 else
9548 if test ${GCC:-no} = yes; then :
9550 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9551 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9557 if test ${enable_profile:-no} = yes; then :
9560 MULECFLAGS="$MULECFLAGS -pg"
9561 MULECXXFLAGS="$MULECXXFLAGS -pg"
9563 MULELDFLAGS="$MULELDFLAGS -pg"
9567 if test ${enable_optimize:-no} = yes; then :
9569 MULECFLAGS="$MULECFLAGS -O2"
9570 MULECXXFLAGS="$MULECXXFLAGS -O2"
9574 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9578 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 :
9583 if test ${GCC:-no} = yes; then :
9585 mule_backup_CXXFLAGS="$CXXFLAGS"
9586 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9589 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9595 main ()
9598 int a;
9599 short *b = (short*)&a;
9600 short c = *b;
9602 return c;
9605 return 0;
9608 _ACEOF
9609 if ac_fn_cxx_try_compile "$LINENO"; then :
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9614 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9617 $as_echo "yes" >&6; }
9618 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 CXXFLAGS="$mule_backup_CXXFLAGS"
9628 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9630 mule_backup_CPPFLAGS="$CPPFLAGS"
9631 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9634 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9639 #include <wx/wx.h>
9640 #include <wx/filefn.h>
9641 #ifndef wxHAS_LARGE_FILES
9642 #error No LargeFile support!
9643 #endif
9646 _ACEOF
9647 if ac_fn_cxx_try_cpp "$LINENO"; then :
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9650 $as_echo "yes" >&6; }
9652 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9656 as_fn_error $? "
9657 Support for large files in wxWidgets is required by aMule.
9658 To continue you must recompile wxWidgets with support for
9659 large files enabled." "$LINENO" 5
9662 rm -f conftest.err conftest.i conftest.$ac_ext
9664 CPPFLAGS="$mule_backup_CPPFLAGS"
9668 # Check if the compiler is broken, wrt. exceptions.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9671 $as_echo_n "checking for exception-handling... " >&6; }
9672 if test "$cross_compiling" = yes; then :
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9675 $as_echo "undeterminable" >&6; }
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9677 Cross-compilation detected, so exception handling cannot be tested.
9678 Note that broken exception handling in your compiler may lead to
9679 unexpected crashes." >&5
9680 $as_echo "$as_me: WARNING:
9681 Cross-compilation detected, so exception handling cannot be tested.
9682 Note that broken exception handling in your compiler may lead to
9683 unexpected crashes." >&2;}
9684 _mule_warning_6=yes
9685 _mule_has_warnings=yes
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9694 main ()
9697 try {
9698 throw 1;
9699 } catch (int) {
9700 return 0;
9702 return 1;
9705 return 0;
9708 _ACEOF
9709 if ac_fn_cxx_try_run "$LINENO"; then :
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9712 $as_echo "yes" >&6; }
9714 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9718 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9722 conftest.$ac_objext conftest.beam conftest.$ac_ext
9728 for ac_header in typeinfo
9729 do :
9730 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9731 if test "x$ac_cv_header_typeinfo" = xyes; then :
9732 cat >>confdefs.h <<_ACEOF
9733 #define HAVE_TYPEINFO 1
9734 _ACEOF
9738 done
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9741 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9746 #ifdef HAVE_TYPEINFO
9747 # include <typeinfo>
9748 #endif
9749 #include <cxxabi.h>
9752 main ()
9755 int status;
9756 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9757 std::type_info *ti = abi::__cxa_current_exception_type();
9760 return 0;
9763 _ACEOF
9764 if ac_fn_cxx_try_link "$LINENO"; then :
9767 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9770 $as_echo "yes" >&6; }
9772 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9778 rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9782 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 :
9785 # Check whether --with-boost was given.
9786 if test "${with_boost+set}" = set; then :
9787 withval=$with_boost;
9788 else
9789 with_boost=no
9793 if test ${with_boost:-no} != no; then :
9795 echo "$as_me: this is boost.m4 serial 25" >&5
9796 boost_save_IFS=$IFS
9797 boost_version_req=1.47
9798 IFS=.
9799 set x $boost_version_req 0 0 0
9800 IFS=$boost_save_IFS
9801 shift
9802 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9803 boost_version_req_string=$1.$2.$3
9804 # If BOOST_ROOT is set and the user has not provided a value to
9805 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9806 if test x"$BOOST_ROOT" != x; then
9807 if test x"$with_boost" = x; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9809 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9810 with_boost=$BOOST_ROOT
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9813 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9816 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9817 boost_save_CPPFLAGS=$CPPFLAGS
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9819 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9820 if ${boost_cv_inc_path+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 boost_cv_inc_path=no
9824 ac_ext=cpp
9825 ac_cpp='$CXXCPP $CPPFLAGS'
9826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 #include <boost/version.hpp>
9832 #if !defined BOOST_VERSION
9833 # error BOOST_VERSION is not defined
9834 #elif BOOST_VERSION < $boost_version_req
9835 # error Boost headers version < $boost_version_req
9836 #endif
9839 main ()
9843 return 0;
9845 _ACEOF
9846 # If the user provided a value to --with-boost, use it and only it.
9847 case $with_boost in #(
9848 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9849 /usr/include C:/Boost/include;; #(
9850 *) set x "$with_boost/include" "$with_boost";;
9851 esac
9852 shift
9853 for boost_dir
9855 # Without --layout=system, Boost (or at least some versions) installs
9856 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9857 # find headers in such directories.
9859 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9860 # order followed by ${boost_dir}. The final '.' is a sentinel for
9861 # searching $boost_dir" itself. Entries are whitespace separated.
9863 # I didn't indent this loop on purpose (to avoid over-indented code)
9864 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9865 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9866 && echo .`
9867 for boost_inc in $boost_layout_system_search_list
9869 if test x"$boost_inc" != x.; then
9870 boost_inc="$boost_dir/$boost_inc"
9871 else
9872 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9874 if test x"$boost_inc" != x; then
9875 # We are going to check whether the version of Boost installed
9876 # in $boost_inc is usable by running a compilation that
9877 # #includes it. But if we pass a -I/some/path in which Boost
9878 # is not installed, the compiler will just skip this -I and
9879 # use other locations (either from CPPFLAGS, or from its list
9880 # of system include directories). As a result we would use
9881 # header installed on the machine instead of the /some/path
9882 # specified by the user. So in that precise case (trying
9883 # $boost_inc), make sure the version.hpp exists.
9885 # Use test -e as there can be symlinks.
9886 test -e "$boost_inc/boost/version.hpp" || continue
9887 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9889 if ac_fn_cxx_try_compile "$LINENO"; then :
9890 boost_cv_inc_path=yes
9891 else
9892 boost_cv_version=no
9894 rm -f core conftest.err conftest.$ac_objext
9895 if test x"$boost_cv_inc_path" = xyes; then
9896 if test x"$boost_inc" != x; then
9897 boost_cv_inc_path=$boost_inc
9899 break 2
9901 done
9902 done
9903 ac_ext=cpp
9904 ac_cpp='$CXXCPP $CPPFLAGS'
9905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9911 $as_echo "$boost_cv_inc_path" >&6; }
9912 case $boost_cv_inc_path in #(
9914 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9916 $as_echo "$as_me: $boost_errmsg" >&6;}
9917 with_boost=disabled
9918 ;;#(
9919 yes)
9920 BOOST_CPPFLAGS=
9921 ;;#(
9923 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9925 esac
9926 if test x"$boost_cv_inc_path" != xno; then
9928 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9931 $as_echo_n "checking for Boost's header version... " >&6; }
9932 if ${boost_cv_lib_version+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 ac_ext=cpp
9936 ac_cpp='$CXXCPP $CPPFLAGS'
9937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #include <boost/version.hpp>
9943 boost-lib-version = BOOST_LIB_VERSION
9944 _ACEOF
9945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9946 grep -v '#' |
9947 tr -d '\r' |
9948 tr -s '\n' ' ' |
9949 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9950 boost_cv_lib_version=`cat conftest.i`
9952 rm -rf conftest*
9953 ac_ext=cpp
9954 ac_cpp='$CXXCPP $CPPFLAGS'
9955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9961 $as_echo "$boost_cv_lib_version" >&6; }
9962 # e.g. "134" for 1_34_1 or "135" for 1_35
9963 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9964 case $boost_major_version in #(
9965 '' | *[!0-9]*)
9966 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9968 esac
9970 CPPFLAGS=$boost_save_CPPFLAGS
9972 if test ${with_boost:-no} != disabled; then :
9974 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9975 for cc_temp in $compiler""; do
9976 case $cc_temp in
9977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9979 \-*) ;;
9980 *) break;;
9981 esac
9982 done
9983 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9984 # All known linkers require a `.a' archive for static linking (except MSVC,
9985 # which needs '.lib').
9986 libext=a
9987 case $cc_basename in
9988 cl*) libext=lib ;;
9989 esac
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9992 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9993 if ${boost_cv_lib_tag+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 boost_cv_lib_tag=unknown
9997 if test x$boost_cv_inc_path != xno; then
9998 ac_ext=cpp
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003 # The following tests are mostly inspired by boost/config/auto_link.hpp
10004 # The list is sorted to most recent/common to oldest compiler (in order
10005 # to increase the likelihood of finding the right compiler with the
10006 # least number of compilation attempt).
10007 # Beware that some tests are sensible to the order (for instance, we must
10008 # look for MinGW before looking for GCC3).
10009 # I used one compilation test per compiler with a #error to recognize
10010 # each compiler so that it works even when cross-compiling (let me know
10011 # if you know a better approach).
10012 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10013 # como, edg, kcc, bck, mp, sw, tru, xlc
10014 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10015 # the same defines as GCC's).
10016 for i in \
10017 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10018 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10019 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10020 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10021 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10022 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10023 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10024 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10025 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10026 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10027 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10028 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10029 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10030 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10031 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10032 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10033 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10034 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10035 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10036 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10037 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10038 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10039 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10040 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10041 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10042 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10043 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10044 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10045 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10046 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10047 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10048 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10049 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10050 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10051 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10052 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10053 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10054 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10055 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10056 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10058 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10059 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10060 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10062 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10063 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10064 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10066 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10067 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10068 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10070 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10071 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10072 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10074 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10075 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10076 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10077 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10078 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10079 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10080 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10081 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10082 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10083 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10084 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10085 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10086 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10088 "defined __BORLANDC__ @ bcb" \
10089 "defined __ICC && (defined __unix || defined ) @ il" \
10090 "defined __ICL @ iw" \
10091 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10092 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10093 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10094 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10095 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10096 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10098 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10099 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 #if $boost_tag_test
10104 /* OK */
10105 #else
10106 # error $boost_tag_test
10107 #endif
10110 main ()
10114 return 0;
10116 _ACEOF
10117 if ac_fn_cxx_try_compile "$LINENO"; then :
10118 boost_cv_lib_tag=$boost_tag; break
10120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 done
10122 ac_ext=cpp
10123 ac_cpp='$CXXCPP $CPPFLAGS'
10124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10127 case $boost_cv_lib_tag in #(
10128 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10129 # to "gcc41" for instance.
10130 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10131 gcc*)
10132 boost_tag_x=
10133 case $host_os in #(
10134 darwin*)
10135 if test $boost_major_version -ge 136; then
10136 # The `x' added in r46793 of Boost.
10137 boost_tag_x=x
10138 fi;;
10139 esac
10140 # We can specify multiple tags in this variable because it's used by
10141 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10142 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10143 ;; #(
10144 unknown)
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10146 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10147 boost_cv_lib_tag=
10149 esac
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10153 $as_echo "$boost_cv_lib_tag" >&6; }
10154 # Check whether --enable-static-boost was given.
10155 if test "${enable_static_boost+set}" = set; then :
10156 enableval=$enable_static_boost; enable_static_boost=yes
10157 else
10158 enable_static_boost=no
10161 # Check whether we do better use `mt' even though we weren't ask to.
10162 ac_ext=cpp
10163 ac_cpp='$CXXCPP $CPPFLAGS'
10164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10170 #if defined _REENTRANT || defined _MT || defined __MT__
10171 /* use -mt */
10172 #else
10173 # error MT not needed
10174 #endif
10177 main ()
10181 return 0;
10183 _ACEOF
10184 if ac_fn_cxx_try_compile "$LINENO"; then :
10185 boost_guess_use_mt=:
10186 else
10187 boost_guess_use_mt=false
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 ac_ext=cpp
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10197 $as_echo_n "checking for Boost sources... " >&6; }
10198 mule_backup_CPPFLAGS="$CPPFLAGS"
10199 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10203 #include <boost/../libs/system/src/error_code.cpp>
10205 main ()
10209 return 0;
10212 _ACEOF
10213 if ac_fn_cxx_try_compile "$LINENO"; then :
10216 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10219 $as_echo "yes" >&6; }
10221 else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10225 if test x"$boost_cv_inc_path" = xno; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10227 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10228 else
10229 ac_ext=cpp
10230 ac_cpp='$CXXCPP $CPPFLAGS'
10231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10234 if test x"$boost_cv_inc_path" = xno; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10236 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10237 else
10238 ac_ext=cpp
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10243 boost_save_CPPFLAGS=$CPPFLAGS
10244 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10245 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10246 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
10248 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10250 else
10251 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
10255 CPPFLAGS=$boost_save_CPPFLAGS
10256 ac_ext=cpp
10257 ac_cpp='$CXXCPP $CPPFLAGS'
10258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10263 boost_save_CPPFLAGS=$CPPFLAGS
10264 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10266 $as_echo_n "checking for the Boost system library... " >&6; }
10267 if ${boost_cv_lib_system+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 boost_cv_lib_system=no
10271 case "mt" in #(
10272 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10273 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10274 (*) boost_mt=; boost_rtopt=mt;;
10275 esac
10276 if test $enable_static_boost = yes; then
10277 boost_rtopt="s$boost_rtopt"
10279 # Find the proper debug variant depending on what we've been asked to find.
10280 case $boost_rtopt in #(
10281 (*d*) boost_rt_d=$boost_rtopt;; #(
10282 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10283 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10284 (*) boost_rt_d='-d';;
10285 esac
10286 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10287 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10288 $boost_guess_use_mt && boost_mt=-mt
10289 # Look for the abs path the static archive.
10290 # $libext is computed by Libtool but let's make sure it's non empty.
10291 test -z "$libext" &&
10292 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10293 boost_save_ac_objext=$ac_objext
10294 # Generate the test file.
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 #include <boost/system/error_code.hpp>
10300 main ()
10302 boost::system::error_code e; e.clear();
10304 return 0;
10306 _ACEOF
10307 if ac_fn_cxx_try_compile "$LINENO"; then :
10308 ac_objext=do_not_rm_me_plz
10309 else
10310 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
10312 rm -f core conftest.err conftest.$ac_objext
10313 ac_objext=$boost_save_ac_objext
10314 boost_failed_libs=
10315 # Don't bother to ident the following nested for loops, only the 2
10316 # innermost ones matter.
10317 for boost_lib_ in system; do
10318 for boost_tag_ in -$boost_cv_lib_tag ''; do
10319 for boost_ver_ in -$boost_cv_lib_version ''; do
10320 for boost_mt_ in $boost_mt -mt ''; do
10321 for boost_rtopt_ in $boost_rtopt '' -d; do
10322 for boost_lib in \
10323 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10324 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10325 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10326 boost_$boost_lib_$boost_tag_$boost_ver_
10328 # Avoid testing twice the same lib
10329 case $boost_failed_libs in #(
10330 (*@$boost_lib@*) continue;;
10331 esac
10332 # If with_boost is empty, we'll search in /lib first, which is not quite
10333 # right so instead we'll try to a location based on where the headers are.
10334 boost_tmp_lib=$with_boost
10335 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10336 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10337 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10338 "$with_boost" C:/Boost/lib /lib*
10340 # Don't waste time with directories that don't exist.
10341 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10342 continue
10344 boost_save_LDFLAGS=$LDFLAGS
10345 # Are we looking for a static library?
10346 case $boost_ldpath:$boost_rtopt_ in #(
10347 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10348 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10349 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10350 (*) # No: use -lboost_foo to find the shared library.
10351 boost_cv_lib_system_LIBS="-l$boost_lib";;
10352 esac
10353 boost_save_LIBS=$LIBS
10354 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10355 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10356 rm -f conftest$ac_exeext
10357 boost_save_ac_ext=$ac_ext
10358 boost_use_source=:
10359 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10360 # tries to link the existing object file instead of compiling from source.
10361 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10362 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10363 if { { ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367 esac
10368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10369 $as_echo "$ac_try_echo"; } >&5
10370 (eval "$ac_link") 2>conftest.err
10371 ac_status=$?
10372 if test -s conftest.err; then
10373 grep -v '^ *+' conftest.err >conftest.er1
10374 cat conftest.er1 >&5
10375 mv -f conftest.er1 conftest.err
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; } && {
10379 test -z "$ac_cxx_werror_flag" ||
10380 test ! -s conftest.err
10381 } && test -s conftest$ac_exeext && {
10382 test "$cross_compiling" = yes ||
10383 $as_executable_p conftest$ac_exeext
10384 }; then :
10385 boost_cv_lib_system=yes
10386 else
10387 if $boost_use_source; then
10388 $as_echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10392 boost_cv_lib_system=no
10394 ac_objext=$boost_save_ac_objext
10395 ac_ext=$boost_save_ac_ext
10396 rm -f core conftest.err conftest_ipa8_conftest.oo \
10397 conftest$ac_exeext
10398 ac_objext=$boost_save_ac_objext
10399 LDFLAGS=$boost_save_LDFLAGS
10400 LIBS=$boost_save_LIBS
10401 if test x"$boost_cv_lib_system" = xyes; then
10402 # Check or used cached result of whether or not using -R or
10403 # -rpath makes sense. Some implementations of ld, such as for
10404 # Mac OSX, require -rpath but -R is the flag known to work on
10405 # other systems. https://github.com/tsuna/boost.m4/issues/19
10406 if ${boost_cv_rpath_link_ldflag+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 case $boost_ldpath in
10410 '') # Nothing to do.
10411 boost_cv_rpath_link_ldflag=
10412 boost_rpath_link_ldflag_found=yes;;
10414 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10415 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10416 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10417 rm -f conftest$ac_exeext
10418 boost_save_ac_ext=$ac_ext
10419 boost_use_source=:
10420 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10421 # tries to link the existing object file instead of compiling from source.
10422 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10423 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10424 if { { ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10430 $as_echo "$ac_try_echo"; } >&5
10431 (eval "$ac_link") 2>conftest.err
10432 ac_status=$?
10433 if test -s conftest.err; then
10434 grep -v '^ *+' conftest.err >conftest.er1
10435 cat conftest.er1 >&5
10436 mv -f conftest.er1 conftest.err
10438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10439 test $ac_status = 0; } && {
10440 test -z "$ac_cxx_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest$ac_exeext && {
10443 test "$cross_compiling" = yes ||
10444 $as_executable_p conftest$ac_exeext
10445 }; then :
10446 boost_rpath_link_ldflag_found=yes
10447 break
10448 else
10449 if $boost_use_source; then
10450 $as_echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10454 boost_rpath_link_ldflag_found=no
10456 ac_objext=$boost_save_ac_objext
10457 ac_ext=$boost_save_ac_ext
10458 rm -f core conftest.err conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext
10460 done
10462 esac
10463 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10464 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10466 LDFLAGS=$boost_save_LDFLAGS
10467 LIBS=$boost_save_LIBS
10471 test x"$boost_ldpath" != x &&
10472 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10473 boost_cv_lib_system_LDPATH="$boost_ldpath"
10474 break 7
10475 else
10476 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10478 done
10479 done
10480 done
10481 done
10482 done
10483 done
10484 done # boost_lib_
10485 rm -f conftest.$ac_objext
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10489 $as_echo "$boost_cv_lib_system" >&6; }
10490 case $boost_cv_lib_system in #(
10491 (no) $as_echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
10496 esac
10497 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10498 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10499 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10500 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10501 CPPFLAGS=$boost_save_CPPFLAGS
10502 ac_ext=cpp
10503 ac_cpp='$CXXCPP $CPPFLAGS'
10504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10511 if test ${boost_cv_lib_system:-no} != yes; then :
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10514 Boost support has been disabled because Boost.System not found" >&5
10515 $as_echo "$as_me: WARNING:
10516 Boost support has been disabled because Boost.System not found" >&2;}
10517 _mule_warning_7=yes
10518 _mule_has_warnings=yes
10520 with_boost=disabled
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 CPPFLAGS="$mule_backup_CPPFLAGS"
10527 if test x"$boost_cv_inc_path" = xno; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10530 Boost support has been disabled because Boost.Asio not found" >&5
10531 $as_echo "$as_me: WARNING:
10532 Boost support has been disabled because Boost.Asio not found" >&2;}
10533 _mule_warning_8=yes
10534 _mule_has_warnings=yes
10536 with_boost=disabled
10538 else
10539 ac_ext=cpp
10540 ac_cpp='$CXXCPP $CPPFLAGS'
10541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10544 boost_save_CPPFLAGS=$CPPFLAGS
10545 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10546 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10547 if test "x$ac_cv_header_boost_asio_hpp" = xyes; then :
10549 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10551 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10554 Boost support has been disabled because Boost.Asio not found" >&5
10555 $as_echo "$as_me: WARNING:
10556 Boost support has been disabled because Boost.Asio not found" >&2;}
10557 _mule_warning_9=yes
10558 _mule_has_warnings=yes
10560 with_boost=disabled
10565 CPPFLAGS=$boost_save_CPPFLAGS
10566 ac_ext=cpp
10567 ac_cpp='$CXXCPP $CPPFLAGS'
10568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10576 Boost support has been disabled because of insufficient Boost version." >&5
10577 $as_echo "$as_me: WARNING:
10578 Boost support has been disabled because of insufficient Boost version." >&2;}
10579 _mule_warning_10=yes
10580 _mule_has_warnings=yes
10590 # Ok, we have all needed libs, now checking for other stuff
10593 # Checks for header files.
10594 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10595 if test "x$ac_cv_type_size_t" = xyes; then :
10597 else
10599 cat >>confdefs.h <<_ACEOF
10600 #define size_t unsigned int
10601 _ACEOF
10605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10606 # for constant arguments. Useless!
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10608 $as_echo_n "checking for working alloca.h... " >&6; }
10609 if ${ac_cv_working_alloca_h+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 #include <alloca.h>
10616 main ()
10618 char *p = (char *) alloca (2 * sizeof (int));
10619 if (p) return 0;
10621 return 0;
10623 _ACEOF
10624 if ac_fn_cxx_try_link "$LINENO"; then :
10625 ac_cv_working_alloca_h=yes
10626 else
10627 ac_cv_working_alloca_h=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10633 $as_echo "$ac_cv_working_alloca_h" >&6; }
10634 if test $ac_cv_working_alloca_h = yes; then
10636 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10641 $as_echo_n "checking for alloca... " >&6; }
10642 if ${ac_cv_func_alloca_works+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 #ifdef __GNUC__
10648 # define alloca __builtin_alloca
10649 #else
10650 # ifdef _MSC_VER
10651 # include <malloc.h>
10652 # define alloca _alloca
10653 # else
10654 # ifdef HAVE_ALLOCA_H
10655 # include <alloca.h>
10656 # else
10657 # ifdef _AIX
10658 #pragma alloca
10659 # else
10660 # ifndef alloca /* predefined by HP cc +Olibcalls */
10661 void *alloca (size_t);
10662 # endif
10663 # endif
10664 # endif
10665 # endif
10666 #endif
10669 main ()
10671 char *p = (char *) alloca (1);
10672 if (p) return 0;
10674 return 0;
10676 _ACEOF
10677 if ac_fn_cxx_try_link "$LINENO"; then :
10678 ac_cv_func_alloca_works=yes
10679 else
10680 ac_cv_func_alloca_works=no
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10686 $as_echo "$ac_cv_func_alloca_works" >&6; }
10688 if test $ac_cv_func_alloca_works = yes; then
10690 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10692 else
10693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10694 # that cause trouble. Some versions do not even contain alloca or
10695 # contain a buggy version. If you still want to use their alloca,
10696 # use ar to extract alloca.o from them instead of compiling alloca.c.
10698 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10700 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10705 if ${ac_cv_os_cray+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #if defined CRAY && ! defined CRAY2
10711 webecray
10712 #else
10713 wenotbecray
10714 #endif
10716 _ACEOF
10717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10718 $EGREP "webecray" >/dev/null 2>&1; then :
10719 ac_cv_os_cray=yes
10720 else
10721 ac_cv_os_cray=no
10723 rm -f conftest*
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10727 $as_echo "$ac_cv_os_cray" >&6; }
10728 if test $ac_cv_os_cray = yes; then
10729 for ac_func in _getb67 GETB67 getb67; do
10730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10731 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10732 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10734 cat >>confdefs.h <<_ACEOF
10735 #define CRAY_STACKSEG_END $ac_func
10736 _ACEOF
10738 break
10741 done
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10745 $as_echo_n "checking stack direction for C alloca... " >&6; }
10746 if ${ac_cv_c_stack_direction+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 if test "$cross_compiling" = yes; then :
10750 ac_cv_c_stack_direction=0
10751 else
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754 $ac_includes_default
10756 find_stack_direction (int *addr, int depth)
10758 int dir, dummy = 0;
10759 if (! addr)
10760 addr = &dummy;
10761 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10762 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10763 return dir + dummy;
10767 main (int argc, char **argv)
10769 return find_stack_direction (0, argc + !argv + 20) < 0;
10771 _ACEOF
10772 if ac_fn_cxx_try_run "$LINENO"; then :
10773 ac_cv_c_stack_direction=1
10774 else
10775 ac_cv_c_stack_direction=-1
10777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10778 conftest.$ac_objext conftest.beam conftest.$ac_ext
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10783 $as_echo "$ac_cv_c_stack_direction" >&6; }
10784 cat >>confdefs.h <<_ACEOF
10785 #define STACK_DIRECTION $ac_cv_c_stack_direction
10786 _ACEOF
10791 ac_header_dirent=no
10792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10793 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10795 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10796 if eval \${$as_ac_Header+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #include <sys/types.h>
10802 #include <$ac_hdr>
10805 main ()
10807 if ((DIR *) 0)
10808 return 0;
10810 return 0;
10812 _ACEOF
10813 if ac_fn_cxx_try_compile "$LINENO"; then :
10814 eval "$as_ac_Header=yes"
10815 else
10816 eval "$as_ac_Header=no"
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 eval ac_res=\$$as_ac_Header
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10822 $as_echo "$ac_res" >&6; }
10823 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10824 cat >>confdefs.h <<_ACEOF
10825 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10826 _ACEOF
10828 ac_header_dirent=$ac_hdr; break
10831 done
10832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10833 if test $ac_header_dirent = dirent.h; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10835 $as_echo_n "checking for library containing opendir... " >&6; }
10836 if ${ac_cv_search_opendir+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 ac_func_search_save_LIBS=$LIBS
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char opendir ();
10851 main ()
10853 return opendir ();
10855 return 0;
10857 _ACEOF
10858 for ac_lib in '' dir; do
10859 if test -z "$ac_lib"; then
10860 ac_res="none required"
10861 else
10862 ac_res=-l$ac_lib
10863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10865 if ac_fn_cxx_try_link "$LINENO"; then :
10866 ac_cv_search_opendir=$ac_res
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext
10870 if ${ac_cv_search_opendir+:} false; then :
10871 break
10873 done
10874 if ${ac_cv_search_opendir+:} false; then :
10876 else
10877 ac_cv_search_opendir=no
10879 rm conftest.$ac_ext
10880 LIBS=$ac_func_search_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10883 $as_echo "$ac_cv_search_opendir" >&6; }
10884 ac_res=$ac_cv_search_opendir
10885 if test "$ac_res" != no; then :
10886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10892 $as_echo_n "checking for library containing opendir... " >&6; }
10893 if ${ac_cv_search_opendir+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 ac_func_search_save_LIBS=$LIBS
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char opendir ();
10908 main ()
10910 return opendir ();
10912 return 0;
10914 _ACEOF
10915 for ac_lib in '' x; do
10916 if test -z "$ac_lib"; then
10917 ac_res="none required"
10918 else
10919 ac_res=-l$ac_lib
10920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10922 if ac_fn_cxx_try_link "$LINENO"; then :
10923 ac_cv_search_opendir=$ac_res
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext
10927 if ${ac_cv_search_opendir+:} false; then :
10928 break
10930 done
10931 if ${ac_cv_search_opendir+:} false; then :
10933 else
10934 ac_cv_search_opendir=no
10936 rm conftest.$ac_ext
10937 LIBS=$ac_func_search_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10940 $as_echo "$ac_cv_search_opendir" >&6; }
10941 ac_res=$ac_cv_search_opendir
10942 if test "$ac_res" != no; then :
10943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10950 $as_echo_n "checking for ANSI C header files... " >&6; }
10951 if ${ac_cv_header_stdc+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include <stdlib.h>
10957 #include <stdarg.h>
10958 #include <string.h>
10959 #include <float.h>
10962 main ()
10966 return 0;
10968 _ACEOF
10969 if ac_fn_cxx_try_compile "$LINENO"; then :
10970 ac_cv_header_stdc=yes
10971 else
10972 ac_cv_header_stdc=no
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 if test $ac_cv_header_stdc = yes; then
10977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980 #include <string.h>
10982 _ACEOF
10983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10984 $EGREP "memchr" >/dev/null 2>&1; then :
10986 else
10987 ac_cv_header_stdc=no
10989 rm -f conftest*
10993 if test $ac_cv_header_stdc = yes; then
10994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997 #include <stdlib.h>
10999 _ACEOF
11000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11001 $EGREP "free" >/dev/null 2>&1; then :
11003 else
11004 ac_cv_header_stdc=no
11006 rm -f conftest*
11010 if test $ac_cv_header_stdc = yes; then
11011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11012 if test "$cross_compiling" = yes; then :
11014 else
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 #include <ctype.h>
11018 #include <stdlib.h>
11019 #if ((' ' & 0x0FF) == 0x020)
11020 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11021 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11022 #else
11023 # define ISLOWER(c) \
11024 (('a' <= (c) && (c) <= 'i') \
11025 || ('j' <= (c) && (c) <= 'r') \
11026 || ('s' <= (c) && (c) <= 'z'))
11027 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11028 #endif
11030 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11032 main ()
11034 int i;
11035 for (i = 0; i < 256; i++)
11036 if (XOR (islower (i), ISLOWER (i))
11037 || toupper (i) != TOUPPER (i))
11038 return 2;
11039 return 0;
11041 _ACEOF
11042 if ac_fn_cxx_try_run "$LINENO"; then :
11044 else
11045 ac_cv_header_stdc=no
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11054 $as_echo "$ac_cv_header_stdc" >&6; }
11055 if test $ac_cv_header_stdc = yes; then
11057 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11061 for ac_header in argz.h arpa/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
11062 do :
11063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11066 cat >>confdefs.h <<_ACEOF
11067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11068 _ACEOF
11072 done
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11075 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11076 if ${ac_cv_header_sys_wait_h+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #include <sys/wait.h>
11083 #ifndef WEXITSTATUS
11084 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11085 #endif
11086 #ifndef WIFEXITED
11087 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11088 #endif
11091 main ()
11093 int s;
11094 wait (&s);
11095 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11097 return 0;
11099 _ACEOF
11100 if ac_fn_cxx_try_compile "$LINENO"; then :
11101 ac_cv_header_sys_wait_h=yes
11102 else
11103 ac_cv_header_sys_wait_h=no
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11108 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11109 if test $ac_cv_header_sys_wait_h = yes; then
11111 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11117 # Checks for typedefs, structures, and compiler characteristics.
11118 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11119 if test "x$ac_cv_type_mode_t" = xyes; then :
11121 else
11123 cat >>confdefs.h <<_ACEOF
11124 #define mode_t int
11125 _ACEOF
11129 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11130 if test "x$ac_cv_type_off_t" = xyes; then :
11132 else
11134 cat >>confdefs.h <<_ACEOF
11135 #define off_t long int
11136 _ACEOF
11140 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11141 if test "x$ac_cv_type_size_t" = xyes; then :
11143 else
11145 cat >>confdefs.h <<_ACEOF
11146 #define size_t unsigned int
11147 _ACEOF
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11152 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11153 if ${ac_cv_header_time+:} false; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 #include <sys/types.h>
11159 #include <sys/time.h>
11160 #include <time.h>
11163 main ()
11165 if ((struct tm *) 0)
11166 return 0;
11168 return 0;
11170 _ACEOF
11171 if ac_fn_cxx_try_compile "$LINENO"; then :
11172 ac_cv_header_time=yes
11173 else
11174 ac_cv_header_time=no
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11179 $as_echo "$ac_cv_header_time" >&6; }
11180 if test $ac_cv_header_time = yes; then
11182 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11187 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11188 if ${ac_cv_struct_tm+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include <sys/types.h>
11194 #include <time.h>
11197 main ()
11199 struct tm tm;
11200 int *p = &tm.tm_sec;
11201 return !p;
11203 return 0;
11205 _ACEOF
11206 if ac_fn_cxx_try_compile "$LINENO"; then :
11207 ac_cv_struct_tm=time.h
11208 else
11209 ac_cv_struct_tm=sys/time.h
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11214 $as_echo "$ac_cv_struct_tm" >&6; }
11215 if test $ac_cv_struct_tm = sys/time.h; then
11217 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11222 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11223 if ${ac_cv_type_uid_t+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <sys/types.h>
11230 _ACEOF
11231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11232 $EGREP "uid_t" >/dev/null 2>&1; then :
11233 ac_cv_type_uid_t=yes
11234 else
11235 ac_cv_type_uid_t=no
11237 rm -f conftest*
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11241 $as_echo "$ac_cv_type_uid_t" >&6; }
11242 if test $ac_cv_type_uid_t = no; then
11244 $as_echo "#define uid_t int" >>confdefs.h
11247 $as_echo "#define gid_t int" >>confdefs.h
11251 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11252 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11254 cat >>confdefs.h <<_ACEOF
11255 #define HAVE_PTRDIFF_T 1
11256 _ACEOF
11263 # Checks for library functions.
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11265 $as_echo_n "checking whether closedir returns void... " >&6; }
11266 if ${ac_cv_func_closedir_void+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_func_closedir_void=yes
11271 else
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header_dirent>
11276 #ifndef __cplusplus
11277 int closedir ();
11278 #endif
11281 main ()
11283 return closedir (opendir (".")) != 0;
11285 return 0;
11287 _ACEOF
11288 if ac_fn_cxx_try_run "$LINENO"; then :
11289 ac_cv_func_closedir_void=no
11290 else
11291 ac_cv_func_closedir_void=yes
11293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11294 conftest.$ac_objext conftest.beam conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11299 $as_echo "$ac_cv_func_closedir_void" >&6; }
11300 if test $ac_cv_func_closedir_void = yes; then
11302 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11306 if test $ac_cv_c_compiler_gnu = yes; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11308 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11309 if ${ac_cv_prog_gcc_traditional+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_pattern="Autoconf.*'x'"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <sgtty.h>
11316 Autoconf TIOCGETP
11317 _ACEOF
11318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11319 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11320 ac_cv_prog_gcc_traditional=yes
11321 else
11322 ac_cv_prog_gcc_traditional=no
11324 rm -f conftest*
11327 if test $ac_cv_prog_gcc_traditional = no; then
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #include <termio.h>
11331 Autoconf TCGETA
11332 _ACEOF
11333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11334 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11335 ac_cv_prog_gcc_traditional=yes
11337 rm -f conftest*
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11342 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11343 if test $ac_cv_prog_gcc_traditional = yes; then
11344 CC="$CC -traditional"
11348 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11349 if test "x$ac_cv_type_pid_t" = xyes; then :
11351 else
11353 cat >>confdefs.h <<_ACEOF
11354 #define pid_t int
11355 _ACEOF
11359 for ac_header in vfork.h
11360 do :
11361 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11362 if test "x$ac_cv_header_vfork_h" = xyes; then :
11363 cat >>confdefs.h <<_ACEOF
11364 #define HAVE_VFORK_H 1
11365 _ACEOF
11369 done
11371 for ac_func in fork vfork
11372 do :
11373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11376 cat >>confdefs.h <<_ACEOF
11377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 _ACEOF
11381 done
11383 if test "x$ac_cv_func_fork" = xyes; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11385 $as_echo_n "checking for working fork... " >&6; }
11386 if ${ac_cv_func_fork_works+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test "$cross_compiling" = yes; then :
11390 ac_cv_func_fork_works=cross
11391 else
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 $ac_includes_default
11396 main ()
11399 /* By Ruediger Kuhlmann. */
11400 return fork () < 0;
11403 return 0;
11405 _ACEOF
11406 if ac_fn_cxx_try_run "$LINENO"; then :
11407 ac_cv_func_fork_works=yes
11408 else
11409 ac_cv_func_fork_works=no
11411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11412 conftest.$ac_objext conftest.beam conftest.$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11417 $as_echo "$ac_cv_func_fork_works" >&6; }
11419 else
11420 ac_cv_func_fork_works=$ac_cv_func_fork
11422 if test "x$ac_cv_func_fork_works" = xcross; then
11423 case $host in
11424 *-*-amigaos* | *-*-msdosdjgpp*)
11425 # Override, as these systems have only a dummy fork() stub
11426 ac_cv_func_fork_works=no
11429 ac_cv_func_fork_works=yes
11431 esac
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11433 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11435 ac_cv_func_vfork_works=$ac_cv_func_vfork
11436 if test "x$ac_cv_func_vfork" = xyes; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11438 $as_echo_n "checking for working vfork... " >&6; }
11439 if ${ac_cv_func_vfork_works+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 if test "$cross_compiling" = yes; then :
11443 ac_cv_func_vfork_works=cross
11444 else
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 /* Thanks to Paul Eggert for this test. */
11448 $ac_includes_default
11449 #include <sys/wait.h>
11450 #ifdef HAVE_VFORK_H
11451 # include <vfork.h>
11452 #endif
11453 /* On some sparc systems, changes by the child to local and incoming
11454 argument registers are propagated back to the parent. The compiler
11455 is told about this with #include <vfork.h>, but some compilers
11456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11457 static variable whose address is put into a register that is
11458 clobbered by the vfork. */
11459 static void
11460 #ifdef __cplusplus
11461 sparc_address_test (int arg)
11462 # else
11463 sparc_address_test (arg) int arg;
11464 #endif
11466 static pid_t child;
11467 if (!child) {
11468 child = vfork ();
11469 if (child < 0) {
11470 perror ("vfork");
11471 _exit(2);
11473 if (!child) {
11474 arg = getpid();
11475 write(-1, "", 0);
11476 _exit (arg);
11482 main ()
11484 pid_t parent = getpid ();
11485 pid_t child;
11487 sparc_address_test (0);
11489 child = vfork ();
11491 if (child == 0) {
11492 /* Here is another test for sparc vfork register problems. This
11493 test uses lots of local variables, at least as many local
11494 variables as main has allocated so far including compiler
11495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11497 reuse the register of parent for one of the local variables,
11498 since it will think that parent can't possibly be used any more
11499 in this routine. Assigning to the local variable will thus
11500 munge parent in the parent process. */
11501 pid_t
11502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11504 /* Convince the compiler that p..p7 are live; otherwise, it might
11505 use the same hardware register for all 8 local variables. */
11506 if (p != p1 || p != p2 || p != p3 || p != p4
11507 || p != p5 || p != p6 || p != p7)
11508 _exit(1);
11510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11511 from child file descriptors. If the child closes a descriptor
11512 before it execs or exits, this munges the parent's descriptor
11513 as well. Test for this by closing stdout in the child. */
11514 _exit(close(fileno(stdout)) != 0);
11515 } else {
11516 int status;
11517 struct stat st;
11519 while (wait(&status) != child)
11521 return (
11522 /* Was there some problem with vforking? */
11523 child < 0
11525 /* Did the child fail? (This shouldn't happen.) */
11526 || status
11528 /* Did the vfork/compiler bug occur? */
11529 || parent != getpid()
11531 /* Did the file descriptor bug occur? */
11532 || fstat(fileno(stdout), &st) != 0
11536 _ACEOF
11537 if ac_fn_cxx_try_run "$LINENO"; then :
11538 ac_cv_func_vfork_works=yes
11539 else
11540 ac_cv_func_vfork_works=no
11542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11543 conftest.$ac_objext conftest.beam conftest.$ac_ext
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11548 $as_echo "$ac_cv_func_vfork_works" >&6; }
11551 if test "x$ac_cv_func_fork_works" = xcross; then
11552 ac_cv_func_vfork_works=$ac_cv_func_vfork
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11554 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11557 if test "x$ac_cv_func_vfork_works" = xyes; then
11559 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11561 else
11563 $as_echo "#define vfork fork" >>confdefs.h
11566 if test "x$ac_cv_func_fork_works" = xyes; then
11568 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11573 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11574 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 rm -f conftest.sym conftest.file
11578 echo >conftest.file
11579 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11580 if test "$cross_compiling" = yes; then :
11581 ac_cv_func_lstat_dereferences_slashed_symlink=no
11582 else
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 $ac_includes_default
11587 main ()
11589 struct stat sbuf;
11590 /* Linux will dereference the symlink and fail, as required by POSIX.
11591 That is better in the sense that it means we will not
11592 have to compile and use the lstat wrapper. */
11593 return lstat ("conftest.sym/", &sbuf) == 0;
11595 return 0;
11597 _ACEOF
11598 if ac_fn_cxx_try_run "$LINENO"; then :
11599 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11600 else
11601 ac_cv_func_lstat_dereferences_slashed_symlink=no
11603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11604 conftest.$ac_objext conftest.beam conftest.$ac_ext
11607 else
11608 # If the `ln -s' command failed, then we probably don't even
11609 # have an lstat function.
11610 ac_cv_func_lstat_dereferences_slashed_symlink=no
11612 rm -f conftest.sym conftest.file
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11616 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11618 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11620 cat >>confdefs.h <<_ACEOF
11621 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11622 _ACEOF
11625 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11626 case " $LIBOBJS " in
11627 *" lstat.$ac_objext "* ) ;;
11628 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11630 esac
11634 if test x$SYS != xwin32; then :
11636 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11637 # -lseq on Dynix/PTX, -lgen on Unixware.
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11639 $as_echo_n "checking for library containing getmntent... " >&6; }
11640 if ${ac_cv_search_getmntent+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 ac_func_search_save_LIBS=$LIBS
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char getmntent ();
11655 main ()
11657 return getmntent ();
11659 return 0;
11661 _ACEOF
11662 for ac_lib in '' sun seq gen; do
11663 if test -z "$ac_lib"; then
11664 ac_res="none required"
11665 else
11666 ac_res=-l$ac_lib
11667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11669 if ac_fn_cxx_try_link "$LINENO"; then :
11670 ac_cv_search_getmntent=$ac_res
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext
11674 if ${ac_cv_search_getmntent+:} false; then :
11675 break
11677 done
11678 if ${ac_cv_search_getmntent+:} false; then :
11680 else
11681 ac_cv_search_getmntent=no
11683 rm conftest.$ac_ext
11684 LIBS=$ac_func_search_save_LIBS
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11687 $as_echo "$ac_cv_search_getmntent" >&6; }
11688 ac_res=$ac_cv_search_getmntent
11689 if test "$ac_res" != no; then :
11690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11691 ac_cv_func_getmntent=yes
11693 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11695 else
11696 ac_cv_func_getmntent=no
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11701 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11702 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test "$cross_compiling" = yes; then :
11706 ac_cv_func_lstat_empty_string_bug=yes
11707 else
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 $ac_includes_default
11712 main ()
11714 struct stat sbuf;
11715 return lstat ("", &sbuf) == 0;
11717 return 0;
11719 _ACEOF
11720 if ac_fn_cxx_try_run "$LINENO"; then :
11721 ac_cv_func_lstat_empty_string_bug=no
11722 else
11723 ac_cv_func_lstat_empty_string_bug=yes
11725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11726 conftest.$ac_objext conftest.beam conftest.$ac_ext
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11731 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11732 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11733 case " $LIBOBJS " in
11734 *" lstat.$ac_objext "* ) ;;
11735 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11737 esac
11740 cat >>confdefs.h <<_ACEOF
11741 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11742 _ACEOF
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11747 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11748 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 rm -f conftest.sym conftest.file
11752 echo >conftest.file
11753 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11754 if test "$cross_compiling" = yes; then :
11755 ac_cv_func_lstat_dereferences_slashed_symlink=no
11756 else
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 $ac_includes_default
11761 main ()
11763 struct stat sbuf;
11764 /* Linux will dereference the symlink and fail, as required by POSIX.
11765 That is better in the sense that it means we will not
11766 have to compile and use the lstat wrapper. */
11767 return lstat ("conftest.sym/", &sbuf) == 0;
11769 return 0;
11771 _ACEOF
11772 if ac_fn_cxx_try_run "$LINENO"; then :
11773 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11774 else
11775 ac_cv_func_lstat_dereferences_slashed_symlink=no
11777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11778 conftest.$ac_objext conftest.beam conftest.$ac_ext
11781 else
11782 # If the `ln -s' command failed, then we probably don't even
11783 # have an lstat function.
11784 ac_cv_func_lstat_dereferences_slashed_symlink=no
11786 rm -f conftest.sym conftest.file
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11790 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11792 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11794 cat >>confdefs.h <<_ACEOF
11795 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11796 _ACEOF
11799 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11800 case " $LIBOBJS " in
11801 *" lstat.$ac_objext "* ) ;;
11802 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11804 esac
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11811 $as_echo_n "checking for working memcmp... " >&6; }
11812 if ${ac_cv_func_memcmp_working+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test "$cross_compiling" = yes; then :
11816 ac_cv_func_memcmp_working=no
11817 else
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820 $ac_includes_default
11822 main ()
11825 /* Some versions of memcmp are not 8-bit clean. */
11826 char c0 = '\100', c1 = '\200', c2 = '\201';
11827 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11828 return 1;
11830 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11831 or more and with at least one buffer not starting on a 4-byte boundary.
11832 William Lewis provided this test program. */
11834 char foo[21];
11835 char bar[21];
11836 int i;
11837 for (i = 0; i < 4; i++)
11839 char *a = foo + i;
11840 char *b = bar + i;
11841 strcpy (a, "--------01111111");
11842 strcpy (b, "--------10000000");
11843 if (memcmp (a, b, 16) >= 0)
11844 return 1;
11846 return 0;
11850 return 0;
11852 _ACEOF
11853 if ac_fn_cxx_try_run "$LINENO"; then :
11854 ac_cv_func_memcmp_working=yes
11855 else
11856 ac_cv_func_memcmp_working=no
11858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11859 conftest.$ac_objext conftest.beam conftest.$ac_ext
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11864 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11865 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11866 *" memcmp.$ac_objext "* ) ;;
11867 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11869 esac
11872 for ac_header in sys/select.h sys/socket.h
11873 do :
11874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11875 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11877 cat >>confdefs.h <<_ACEOF
11878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11879 _ACEOF
11883 done
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11886 $as_echo_n "checking types of arguments for select... " >&6; }
11887 if ${ac_cv_func_select_args+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11891 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11892 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895 $ac_includes_default
11896 #ifdef HAVE_SYS_SELECT_H
11897 # include <sys/select.h>
11898 #endif
11899 #ifdef HAVE_SYS_SOCKET_H
11900 # include <sys/socket.h>
11901 #endif
11904 main ()
11906 extern int select ($ac_arg1,
11907 $ac_arg234, $ac_arg234, $ac_arg234,
11908 $ac_arg5);
11910 return 0;
11912 _ACEOF
11913 if ac_fn_cxx_try_compile "$LINENO"; then :
11914 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 done
11918 done
11919 done
11920 # Provide a safe default value.
11921 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11925 $as_echo "$ac_cv_func_select_args" >&6; }
11926 ac_save_IFS=$IFS; IFS=','
11927 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11928 IFS=$ac_save_IFS
11929 shift
11931 cat >>confdefs.h <<_ACEOF
11932 #define SELECT_TYPE_ARG1 $1
11933 _ACEOF
11936 cat >>confdefs.h <<_ACEOF
11937 #define SELECT_TYPE_ARG234 ($2)
11938 _ACEOF
11941 cat >>confdefs.h <<_ACEOF
11942 #define SELECT_TYPE_ARG5 ($3)
11943 _ACEOF
11945 rm -f conftest*
11947 if ${ac_cv_func_setvbuf_reversed+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_cv_func_setvbuf_reversed=no
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11955 $as_echo_n "checking return type of signal handlers... " >&6; }
11956 if ${ac_cv_type_signal+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #include <sys/types.h>
11962 #include <signal.h>
11965 main ()
11967 return *(signal (0, 0)) (0) == 1;
11969 return 0;
11971 _ACEOF
11972 if ac_fn_cxx_try_compile "$LINENO"; then :
11973 ac_cv_type_signal=int
11974 else
11975 ac_cv_type_signal=void
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11980 $as_echo "$ac_cv_type_signal" >&6; }
11982 cat >>confdefs.h <<_ACEOF
11983 #define RETSIGTYPE $ac_cv_type_signal
11984 _ACEOF
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11988 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11989 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test "$cross_compiling" = yes; then :
11993 ac_cv_func_stat_empty_string_bug=yes
11994 else
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 $ac_includes_default
11999 main ()
12001 struct stat sbuf;
12002 return stat ("", &sbuf) == 0;
12004 return 0;
12006 _ACEOF
12007 if ac_fn_cxx_try_run "$LINENO"; then :
12008 ac_cv_func_stat_empty_string_bug=no
12009 else
12010 ac_cv_func_stat_empty_string_bug=yes
12012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12013 conftest.$ac_objext conftest.beam conftest.$ac_ext
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12018 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12019 if test $ac_cv_func_stat_empty_string_bug = yes; then
12020 case " $LIBOBJS " in
12021 *" stat.$ac_objext "* ) ;;
12022 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12024 esac
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_STAT_EMPTY_STRING_BUG 1
12029 _ACEOF
12033 for ac_func in strftime
12034 do :
12035 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12036 if test "x$ac_cv_func_strftime" = xyes; then :
12037 cat >>confdefs.h <<_ACEOF
12038 #define HAVE_STRFTIME 1
12039 _ACEOF
12041 else
12042 # strftime is in -lintl on SCO UNIX.
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12044 $as_echo_n "checking for strftime in -lintl... " >&6; }
12045 if ${ac_cv_lib_intl_strftime+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 ac_check_lib_save_LIBS=$LIBS
12049 LIBS="-lintl $LIBS"
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 char strftime ();
12061 main ()
12063 return strftime ();
12065 return 0;
12067 _ACEOF
12068 if ac_fn_cxx_try_link "$LINENO"; then :
12069 ac_cv_lib_intl_strftime=yes
12070 else
12071 ac_cv_lib_intl_strftime=no
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext conftest.$ac_ext
12075 LIBS=$ac_check_lib_save_LIBS
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12078 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12079 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12080 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12082 LIBS="-lintl $LIBS"
12086 done
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12089 $as_echo_n "checking for working strtod... " >&6; }
12090 if ${ac_cv_func_strtod+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 if test "$cross_compiling" = yes; then :
12094 ac_cv_func_strtod=no
12095 else
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 $ac_includes_default
12100 #ifndef strtod
12101 double strtod ();
12102 #endif
12104 main()
12107 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12108 char *string = " +69";
12109 char *term;
12110 double value;
12111 value = strtod (string, &term);
12112 if (value != 69 || term != (string + 4))
12113 return 1;
12117 /* Under Solaris 2.4, strtod returns the wrong value for the
12118 terminating character under some conditions. */
12119 char *string = "NaN";
12120 char *term;
12121 strtod (string, &term);
12122 if (term != string && *(term - 1) == 0)
12123 return 1;
12125 return 0;
12128 _ACEOF
12129 if ac_fn_cxx_try_run "$LINENO"; then :
12130 ac_cv_func_strtod=yes
12131 else
12132 ac_cv_func_strtod=no
12134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12135 conftest.$ac_objext conftest.beam conftest.$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12140 $as_echo "$ac_cv_func_strtod" >&6; }
12141 if test $ac_cv_func_strtod = no; then
12142 case " $LIBOBJS " in
12143 *" strtod.$ac_objext "* ) ;;
12144 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12146 esac
12148 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12149 if test "x$ac_cv_func_pow" = xyes; then :
12153 if test $ac_cv_func_pow = no; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12155 $as_echo_n "checking for pow in -lm... " >&6; }
12156 if ${ac_cv_lib_m_pow+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lm $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char pow ();
12172 main ()
12174 return pow ();
12176 return 0;
12178 _ACEOF
12179 if ac_fn_cxx_try_link "$LINENO"; then :
12180 ac_cv_lib_m_pow=yes
12181 else
12182 ac_cv_lib_m_pow=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12189 $as_echo "$ac_cv_lib_m_pow" >&6; }
12190 if test "x$ac_cv_lib_m_pow" = xyes; then :
12191 POW_LIB=-lm
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12194 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12201 for ac_func in vprintf
12202 do :
12203 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12204 if test "x$ac_cv_func_vprintf" = xyes; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_VPRINTF 1
12207 _ACEOF
12209 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12210 if test "x$ac_cv_func__doprnt" = xyes; then :
12212 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12217 done
12220 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12223 configure cannot check whether malloc() and realloc() are GNU libc
12224 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12225 run configure with the --without-gnu-malloc switch." >&5
12226 $as_echo "$as_me: WARNING:
12227 configure cannot check whether malloc() and realloc() are GNU libc
12228 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12229 run configure with the --without-gnu-malloc switch." >&2;}
12230 _mule_warning_11=yes
12231 _mule_has_warnings=yes
12233 ac_cv_func_malloc_0_nonnull=yes
12234 ac_cv_func_realloc_0_nonnull=yes
12237 for ac_header in stdlib.h
12238 do :
12239 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12240 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_STDLIB_H 1
12243 _ACEOF
12247 done
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12250 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12251 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 if test "$cross_compiling" = yes; then :
12255 ac_cv_func_malloc_0_nonnull=no
12256 else
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12260 # include <stdlib.h>
12261 #else
12262 char *malloc ();
12263 #endif
12266 main ()
12268 return ! malloc (0);
12270 return 0;
12272 _ACEOF
12273 if ac_fn_cxx_try_run "$LINENO"; then :
12274 ac_cv_func_malloc_0_nonnull=yes
12275 else
12276 ac_cv_func_malloc_0_nonnull=no
12278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12279 conftest.$ac_objext conftest.beam conftest.$ac_ext
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12284 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12285 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12287 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12289 else
12290 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12292 case " $LIBOBJS " in
12293 *" malloc.$ac_objext "* ) ;;
12294 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12296 esac
12299 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12304 for ac_header in stdlib.h
12305 do :
12306 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12307 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12308 cat >>confdefs.h <<_ACEOF
12309 #define HAVE_STDLIB_H 1
12310 _ACEOF
12314 done
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12317 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12318 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test "$cross_compiling" = yes; then :
12322 ac_cv_func_realloc_0_nonnull=no
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12327 # include <stdlib.h>
12328 #else
12329 char *realloc ();
12330 #endif
12333 main ()
12335 return ! realloc (0, 0);
12337 return 0;
12339 _ACEOF
12340 if ac_fn_cxx_try_run "$LINENO"; then :
12341 ac_cv_func_realloc_0_nonnull=yes
12342 else
12343 ac_cv_func_realloc_0_nonnull=no
12345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12346 conftest.$ac_objext conftest.beam conftest.$ac_ext
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12351 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12352 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12354 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12356 else
12357 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12359 case " $LIBOBJS " in
12360 *" realloc.$ac_objext "* ) ;;
12361 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12363 esac
12366 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12371 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12372 do :
12373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12374 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12376 cat >>confdefs.h <<_ACEOF
12377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12378 _ACEOF
12381 done
12388 for ac_header in $ac_header_list
12389 do :
12390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12391 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12393 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12394 cat >>confdefs.h <<_ACEOF
12395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12396 _ACEOF
12400 done
12408 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12410 # Check whether --enable-mmap was given.
12411 if test "${enable_mmap+set}" = set; then :
12412 enableval=$enable_mmap;
12419 if test ${enable_mmap:-no} = yes; then :
12421 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12424 for ac_func in getpagesize
12425 do :
12426 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12427 if test "x$ac_cv_func_getpagesize" = xyes; then :
12428 cat >>confdefs.h <<_ACEOF
12429 #define HAVE_GETPAGESIZE 1
12430 _ACEOF
12433 done
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12436 $as_echo_n "checking for working mmap... " >&6; }
12437 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 if test "$cross_compiling" = yes; then :
12441 ac_cv_func_mmap_fixed_mapped=no
12442 else
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 /* malloc might have been renamed as rpl_malloc. */
12447 #undef malloc
12449 /* Thanks to Mike Haertel and Jim Avera for this test.
12450 Here is a matrix of mmap possibilities:
12451 mmap private not fixed
12452 mmap private fixed at somewhere currently unmapped
12453 mmap private fixed at somewhere already mapped
12454 mmap shared not fixed
12455 mmap shared fixed at somewhere currently unmapped
12456 mmap shared fixed at somewhere already mapped
12457 For private mappings, we should verify that changes cannot be read()
12458 back from the file, nor mmap's back from the file at a different
12459 address. (There have been systems where private was not correctly
12460 implemented like the infamous i386 svr4.0, and systems where the
12461 VM page cache was not coherent with the file system buffer cache
12462 like early versions of FreeBSD and possibly contemporary NetBSD.)
12463 For shared mappings, we should conversely verify that changes get
12464 propagated back to all the places they're supposed to be.
12466 Grep wants private fixed already mapped.
12467 The main things grep needs to know about mmap are:
12468 * does it exist and is it safe to write into the mmap'd area
12469 * how to use it (BSD variants) */
12471 #include <fcntl.h>
12472 #include <sys/mman.h>
12474 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12475 char *malloc ();
12476 #endif
12478 /* This mess was copied from the GNU getpagesize.h. */
12479 #ifndef HAVE_GETPAGESIZE
12480 # ifdef _SC_PAGESIZE
12481 # define getpagesize() sysconf(_SC_PAGESIZE)
12482 # else /* no _SC_PAGESIZE */
12483 # ifdef HAVE_SYS_PARAM_H
12484 # include <sys/param.h>
12485 # ifdef EXEC_PAGESIZE
12486 # define getpagesize() EXEC_PAGESIZE
12487 # else /* no EXEC_PAGESIZE */
12488 # ifdef NBPG
12489 # define getpagesize() NBPG * CLSIZE
12490 # ifndef CLSIZE
12491 # define CLSIZE 1
12492 # endif /* no CLSIZE */
12493 # else /* no NBPG */
12494 # ifdef NBPC
12495 # define getpagesize() NBPC
12496 # else /* no NBPC */
12497 # ifdef PAGESIZE
12498 # define getpagesize() PAGESIZE
12499 # endif /* PAGESIZE */
12500 # endif /* no NBPC */
12501 # endif /* no NBPG */
12502 # endif /* no EXEC_PAGESIZE */
12503 # else /* no HAVE_SYS_PARAM_H */
12504 # define getpagesize() 8192 /* punt totally */
12505 # endif /* no HAVE_SYS_PARAM_H */
12506 # endif /* no _SC_PAGESIZE */
12508 #endif /* no HAVE_GETPAGESIZE */
12511 main ()
12513 char *data, *data2, *data3;
12514 int i, pagesize;
12515 int fd, fd2;
12517 pagesize = getpagesize ();
12519 /* First, make a file with some known garbage in it. */
12520 data = (char *) malloc (pagesize);
12521 if (!data)
12522 return 1;
12523 for (i = 0; i < pagesize; ++i)
12524 *(data + i) = rand ();
12525 umask (0);
12526 fd = creat ("conftest.mmap", 0600);
12527 if (fd < 0)
12528 return 2;
12529 if (write (fd, data, pagesize) != pagesize)
12530 return 3;
12531 close (fd);
12533 /* Next, check that the tail of a page is zero-filled. File must have
12534 non-zero length, otherwise we risk SIGBUS for entire page. */
12535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12536 if (fd2 < 0)
12537 return 4;
12538 data2 = (char *) "";
12539 if (write (fd2, data2, 1) != 1)
12540 return 5;
12541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12542 if (data2 == MAP_FAILED)
12543 return 6;
12544 for (i = 0; i < pagesize; ++i)
12545 if (*(data2 + i))
12546 return 7;
12547 close (fd2);
12548 if (munmap (data2, pagesize))
12549 return 8;
12551 /* Next, try to mmap the file at a fixed address which already has
12552 something else allocated at it. If we can, also make sure that
12553 we see the same garbage. */
12554 fd = open ("conftest.mmap", O_RDWR);
12555 if (fd < 0)
12556 return 9;
12557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12559 return 10;
12560 for (i = 0; i < pagesize; ++i)
12561 if (*(data + i) != *(data2 + i))
12562 return 11;
12564 /* Finally, make sure that changes to the mapped area do not
12565 percolate back to the file as seen by read(). (This is a bug on
12566 some variants of i386 svr4.0.) */
12567 for (i = 0; i < pagesize; ++i)
12568 *(data2 + i) = *(data2 + i) + 1;
12569 data3 = (char *) malloc (pagesize);
12570 if (!data3)
12571 return 12;
12572 if (read (fd, data3, pagesize) != pagesize)
12573 return 13;
12574 for (i = 0; i < pagesize; ++i)
12575 if (*(data + i) != *(data3 + i))
12576 return 14;
12577 close (fd);
12578 return 0;
12580 _ACEOF
12581 if ac_fn_cxx_try_run "$LINENO"; then :
12582 ac_cv_func_mmap_fixed_mapped=yes
12583 else
12584 ac_cv_func_mmap_fixed_mapped=no
12586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12587 conftest.$ac_objext conftest.beam conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12592 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12595 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12598 rm -f conftest.mmap conftest.txt
12600 for ac_func in munmap sysconf
12601 do :
12602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12603 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12604 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12605 cat >>confdefs.h <<_ACEOF
12606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12607 _ACEOF
12610 done
12612 if test $ac_cv_func_sysconf = yes; then :
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12615 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12620 #include <unistd.h>
12623 main ()
12626 return sysconf(_SC_PAGESIZE);
12629 return 0;
12632 _ACEOF
12633 if ac_fn_cxx_try_link "$LINENO"; then :
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12636 $as_echo "_SC_PAGESIZE" >&6; }
12638 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12641 else
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12647 #include <unistd.h>
12650 main ()
12653 return sysconf(_SC_PAGE_SIZE);
12656 return 0;
12659 _ACEOF
12660 if ac_fn_cxx_try_link "$LINENO"; then :
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12663 $as_echo "_SC_PAGE_SIZE" >&6; }
12665 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12668 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12671 $as_echo "none" >&6; }
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12688 # Look for a way to preallocate disk space for files.
12689 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12692 $as_echo_n "checking for fallocate... " >&6; }
12693 mule_backup_CPPFLAGS="$CPPFLAGS"
12694 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12699 #ifndef _GNU_SOURCE
12700 # define _GNU_SOURCE
12701 #endif
12702 #ifdef HAVE_FCNTL_H
12703 # include <fcntl.h>
12704 #endif
12705 #include <linux/falloc.h>
12708 main ()
12711 fallocate(0, 0, 0, 0);
12714 return 0;
12717 _ACEOF
12718 if ac_fn_cxx_try_link "$LINENO"; then :
12721 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12724 $as_echo "yes" >&6; }
12726 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 CPPFLAGS="$mule_backup_CPPFLAGS"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12738 $as_echo_n "checking for SYS_fallocate... " >&6; }
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12743 #include <sys/syscall.h>
12744 #include <sys/types.h>
12745 #include <unistd.h>
12748 main ()
12751 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12754 return 0;
12757 _ACEOF
12758 if ac_fn_cxx_try_link "$LINENO"; then :
12761 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764 $as_echo "yes" >&6; }
12766 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12776 $as_echo_n "checking for posix_fallocate... " >&6; }
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12781 #define _XOPEN_SOURCE 600
12782 #include <stdlib.h>
12783 #ifdef HAVE_FCNTL_H
12784 # include <fcntl.h>
12785 #endif
12788 main ()
12791 posix_fallocate(0, 0, 0);
12794 return 0;
12797 _ACEOF
12798 if ac_fn_cxx_try_link "$LINENO"; then :
12801 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 $as_echo "yes" >&6; }
12806 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12812 rm -f core conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12818 ac_ext=c
12819 ac_cpp='$CPP $CPPFLAGS'
12820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824 # Checking Native Language Support
12827 MKINSTALLDIRS=
12828 if test -n "$ac_aux_dir"; then
12829 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12831 if test -z "$MKINSTALLDIRS"; then
12832 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12839 # Extract the first word of "msgfmt", so it can be a program name with args.
12840 set dummy msgfmt; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_MSGFMT+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 case "$MSGFMT" in
12848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12852 for ac_dir in $PATH; do
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f $ac_dir/$ac_word; then
12855 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12856 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12857 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12858 break
12861 done
12862 IFS="$ac_save_ifs"
12863 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12865 esac
12867 MSGFMT="$ac_cv_path_MSGFMT"
12868 if test "$MSGFMT" != ":"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12870 $as_echo "$MSGFMT" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12876 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12877 set dummy gmsgfmt; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_path_GMSGFMT+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 case $GMSGFMT in
12884 [\\/]* | ?:[\\/]*)
12885 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12899 done
12900 done
12901 IFS=$as_save_IFS
12903 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12905 esac
12907 GMSGFMT=$ac_cv_path_GMSGFMT
12908 if test -n "$GMSGFMT"; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12910 $as_echo "$GMSGFMT" >&6; }
12911 else
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12918 # Extract the first word of "xgettext", so it can be a program name with args.
12919 set dummy xgettext; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_path_XGETTEXT+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 case "$XGETTEXT" in
12927 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12931 for ac_dir in $PATH; do
12932 test -z "$ac_dir" && ac_dir=.
12933 if test -f $ac_dir/$ac_word; then
12934 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12935 (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
12936 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12937 break
12940 done
12941 IFS="$ac_save_ifs"
12942 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12944 esac
12946 XGETTEXT="$ac_cv_path_XGETTEXT"
12947 if test "$XGETTEXT" != ":"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12949 $as_echo "$XGETTEXT" >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12955 rm -f messages.po
12957 # Extract the first word of "msgmerge", so it can be a program name with args.
12958 set dummy msgmerge; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_path_MSGMERGE+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 case "$MSGMERGE" in
12966 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12970 for ac_dir in $PATH; do
12971 test -z "$ac_dir" && ac_dir=.
12972 if test -f $ac_dir/$ac_word; then
12973 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12974 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12975 break
12978 done
12979 IFS="$ac_save_ifs"
12980 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12982 esac
12984 MSGMERGE="$ac_cv_path_MSGMERGE"
12985 if test "$MSGMERGE" != ":"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12987 $as_echo "$MSGMERGE" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12994 if test "$GMSGFMT" != ":"; then
12995 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12996 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12998 else
12999 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13001 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13002 GMSGFMT=":"
13006 if test "$XGETTEXT" != ":"; then
13007 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13008 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13012 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13013 XGETTEXT=":"
13015 rm -f messages.po
13018 ac_config_commands="$ac_config_commands default-1"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13023 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13024 if ${ac_cv_lib_cposix_strerror+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-lcposix $LIBS"
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char strerror ();
13040 main ()
13042 return strerror ();
13044 return 0;
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 ac_cv_lib_cposix_strerror=yes
13049 else
13050 ac_cv_lib_cposix_strerror=no
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13057 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13058 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
13059 LIBS="$LIBS -lcposix"
13065 for ac_func in getpagesize
13066 do :
13067 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13068 if test "x$ac_cv_func_getpagesize" = xyes; then :
13069 cat >>confdefs.h <<_ACEOF
13070 #define HAVE_GETPAGESIZE 1
13071 _ACEOF
13074 done
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13077 $as_echo_n "checking for working mmap... " >&6; }
13078 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if test "$cross_compiling" = yes; then :
13082 ac_cv_func_mmap_fixed_mapped=no
13083 else
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 $ac_includes_default
13087 /* malloc might have been renamed as rpl_malloc. */
13088 #undef malloc
13090 /* Thanks to Mike Haertel and Jim Avera for this test.
13091 Here is a matrix of mmap possibilities:
13092 mmap private not fixed
13093 mmap private fixed at somewhere currently unmapped
13094 mmap private fixed at somewhere already mapped
13095 mmap shared not fixed
13096 mmap shared fixed at somewhere currently unmapped
13097 mmap shared fixed at somewhere already mapped
13098 For private mappings, we should verify that changes cannot be read()
13099 back from the file, nor mmap's back from the file at a different
13100 address. (There have been systems where private was not correctly
13101 implemented like the infamous i386 svr4.0, and systems where the
13102 VM page cache was not coherent with the file system buffer cache
13103 like early versions of FreeBSD and possibly contemporary NetBSD.)
13104 For shared mappings, we should conversely verify that changes get
13105 propagated back to all the places they're supposed to be.
13107 Grep wants private fixed already mapped.
13108 The main things grep needs to know about mmap are:
13109 * does it exist and is it safe to write into the mmap'd area
13110 * how to use it (BSD variants) */
13112 #include <fcntl.h>
13113 #include <sys/mman.h>
13115 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13116 char *malloc ();
13117 #endif
13119 /* This mess was copied from the GNU getpagesize.h. */
13120 #ifndef HAVE_GETPAGESIZE
13121 # ifdef _SC_PAGESIZE
13122 # define getpagesize() sysconf(_SC_PAGESIZE)
13123 # else /* no _SC_PAGESIZE */
13124 # ifdef HAVE_SYS_PARAM_H
13125 # include <sys/param.h>
13126 # ifdef EXEC_PAGESIZE
13127 # define getpagesize() EXEC_PAGESIZE
13128 # else /* no EXEC_PAGESIZE */
13129 # ifdef NBPG
13130 # define getpagesize() NBPG * CLSIZE
13131 # ifndef CLSIZE
13132 # define CLSIZE 1
13133 # endif /* no CLSIZE */
13134 # else /* no NBPG */
13135 # ifdef NBPC
13136 # define getpagesize() NBPC
13137 # else /* no NBPC */
13138 # ifdef PAGESIZE
13139 # define getpagesize() PAGESIZE
13140 # endif /* PAGESIZE */
13141 # endif /* no NBPC */
13142 # endif /* no NBPG */
13143 # endif /* no EXEC_PAGESIZE */
13144 # else /* no HAVE_SYS_PARAM_H */
13145 # define getpagesize() 8192 /* punt totally */
13146 # endif /* no HAVE_SYS_PARAM_H */
13147 # endif /* no _SC_PAGESIZE */
13149 #endif /* no HAVE_GETPAGESIZE */
13152 main ()
13154 char *data, *data2, *data3;
13155 const char *cdata2;
13156 int i, pagesize;
13157 int fd, fd2;
13159 pagesize = getpagesize ();
13161 /* First, make a file with some known garbage in it. */
13162 data = (char *) malloc (pagesize);
13163 if (!data)
13164 return 1;
13165 for (i = 0; i < pagesize; ++i)
13166 *(data + i) = rand ();
13167 umask (0);
13168 fd = creat ("conftest.mmap", 0600);
13169 if (fd < 0)
13170 return 2;
13171 if (write (fd, data, pagesize) != pagesize)
13172 return 3;
13173 close (fd);
13175 /* Next, check that the tail of a page is zero-filled. File must have
13176 non-zero length, otherwise we risk SIGBUS for entire page. */
13177 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13178 if (fd2 < 0)
13179 return 4;
13180 cdata2 = "";
13181 if (write (fd2, cdata2, 1) != 1)
13182 return 5;
13183 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13184 if (data2 == MAP_FAILED)
13185 return 6;
13186 for (i = 0; i < pagesize; ++i)
13187 if (*(data2 + i))
13188 return 7;
13189 close (fd2);
13190 if (munmap (data2, pagesize))
13191 return 8;
13193 /* Next, try to mmap the file at a fixed address which already has
13194 something else allocated at it. If we can, also make sure that
13195 we see the same garbage. */
13196 fd = open ("conftest.mmap", O_RDWR);
13197 if (fd < 0)
13198 return 9;
13199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13201 return 10;
13202 for (i = 0; i < pagesize; ++i)
13203 if (*(data + i) != *(data2 + i))
13204 return 11;
13206 /* Finally, make sure that changes to the mapped area do not
13207 percolate back to the file as seen by read(). (This is a bug on
13208 some variants of i386 svr4.0.) */
13209 for (i = 0; i < pagesize; ++i)
13210 *(data2 + i) = *(data2 + i) + 1;
13211 data3 = (char *) malloc (pagesize);
13212 if (!data3)
13213 return 12;
13214 if (read (fd, data3, pagesize) != pagesize)
13215 return 13;
13216 for (i = 0; i < pagesize; ++i)
13217 if (*(data + i) != *(data3 + i))
13218 return 14;
13219 close (fd);
13220 free (data);
13221 free (data3);
13222 return 0;
13224 _ACEOF
13225 if ac_fn_c_try_run "$LINENO"; then :
13226 ac_cv_func_mmap_fixed_mapped=yes
13227 else
13228 ac_cv_func_mmap_fixed_mapped=no
13230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13231 conftest.$ac_objext conftest.beam conftest.$ac_ext
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13236 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13239 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13242 rm -f conftest.mmap conftest.txt
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13246 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13247 if ${ac_cv_gnu_library_2_1+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 #include <features.h>
13254 #ifdef __GNU_LIBRARY__
13255 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13256 Lucky GNU user
13257 #endif
13258 #endif
13260 _ACEOF
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13263 ac_cv_gnu_library_2_1=yes
13264 else
13265 ac_cv_gnu_library_2_1=no
13267 rm -f conftest*
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13273 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13275 GLIBC21="$ac_cv_gnu_library_2_1"
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13281 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13282 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13286 if test "$cross_compiling" = yes; then :
13288 # Guess based on the CPU.
13289 case "$host_cpu" in
13290 alpha* | i3456786 | m68k | s390*)
13291 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13293 gt_cv_int_divbyzero_sigfpe="guessing no";;
13294 esac
13296 else
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 #include <stdlib.h>
13301 #include <signal.h>
13303 static void
13304 #ifdef __cplusplus
13305 sigfpe_handler (int sig)
13306 #else
13307 sigfpe_handler (sig) int sig;
13308 #endif
13310 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13311 exit (sig != SIGFPE);
13314 int x = 1;
13315 int y = 0;
13316 int z;
13317 int nan;
13319 int main ()
13321 signal (SIGFPE, sigfpe_handler);
13322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13324 signal (SIGTRAP, sigfpe_handler);
13325 #endif
13326 /* Linux/SPARC yields signal SIGILL. */
13327 #if defined (__sparc__) && defined (__linux__)
13328 signal (SIGILL, sigfpe_handler);
13329 #endif
13331 z = x / y;
13332 nan = y / y;
13333 exit (1);
13336 _ACEOF
13337 if ac_fn_c_try_run "$LINENO"; then :
13338 gt_cv_int_divbyzero_sigfpe=yes
13339 else
13340 gt_cv_int_divbyzero_sigfpe=no
13342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13343 conftest.$ac_objext conftest.beam conftest.$ac_ext
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13349 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13350 case "$gt_cv_int_divbyzero_sigfpe" in
13351 *yes) value=1;;
13352 *) value=0;;
13353 esac
13355 cat >>confdefs.h <<_ACEOF
13356 #define INTDIV0_RAISES_SIGFPE $value
13357 _ACEOF
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13362 $as_echo_n "checking for inttypes.h... " >&6; }
13363 if ${jm_ac_cv_header_inttypes_h+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #include <sys/types.h>
13369 #include <inttypes.h>
13371 main ()
13373 uintmax_t i = (uintmax_t) -1;
13375 return 0;
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 jm_ac_cv_header_inttypes_h=yes
13380 else
13381 jm_ac_cv_header_inttypes_h=no
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13386 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13387 if test $jm_ac_cv_header_inttypes_h = yes; then
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13391 _ACEOF
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13397 $as_echo_n "checking for stdint.h... " >&6; }
13398 if ${jm_ac_cv_header_stdint_h+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #include <sys/types.h>
13404 #include <stdint.h>
13406 main ()
13408 uintmax_t i = (uintmax_t) -1;
13410 return 0;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 jm_ac_cv_header_stdint_h=yes
13415 else
13416 jm_ac_cv_header_stdint_h=no
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13421 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13422 if test $jm_ac_cv_header_stdint_h = yes; then
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_STDINT_H_WITH_UINTMAX 1
13426 _ACEOF
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13432 $as_echo_n "checking for unsigned long long... " >&6; }
13433 if ${ac_cv_type_unsigned_long_long+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 unsigned long long ull = 1; int i = 63;
13440 main ()
13442 unsigned long long ullmax = (unsigned long long) -1;
13443 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13445 return 0;
13447 _ACEOF
13448 if ac_fn_c_try_link "$LINENO"; then :
13449 ac_cv_type_unsigned_long_long=yes
13450 else
13451 ac_cv_type_unsigned_long_long=no
13453 rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13457 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13458 if test $ac_cv_type_unsigned_long_long = yes; then
13460 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13467 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13469 test $ac_cv_type_unsigned_long_long = yes \
13470 && ac_type='unsigned long long' \
13471 || ac_type='unsigned long'
13473 cat >>confdefs.h <<_ACEOF
13474 #define uintmax_t $ac_type
13475 _ACEOF
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13481 $as_echo_n "checking for inttypes.h... " >&6; }
13482 if ${gt_cv_header_inttypes_h+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <sys/types.h>
13489 #include <inttypes.h>
13491 main ()
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_compile "$LINENO"; then :
13499 gt_cv_header_inttypes_h=yes
13500 else
13501 gt_cv_header_inttypes_h=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13507 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13508 if test $gt_cv_header_inttypes_h = yes; then
13510 cat >>confdefs.h <<_ACEOF
13511 #define HAVE_INTTYPES_H 1
13512 _ACEOF
13518 if test $gt_cv_header_inttypes_h = yes; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13520 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13521 if ${gt_cv_inttypes_pri_broken+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 #include <inttypes.h>
13528 #ifdef PRId32
13529 char *p = PRId32;
13530 #endif
13533 main ()
13537 return 0;
13539 _ACEOF
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541 gt_cv_inttypes_pri_broken=no
13542 else
13543 gt_cv_inttypes_pri_broken=yes
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13549 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13551 if test "$gt_cv_inttypes_pri_broken" = yes; then
13553 cat >>confdefs.h <<_ACEOF
13554 #define PRI_MACROS_BROKEN 1
13555 _ACEOF
13560 if test "X$prefix" = "XNONE"; then
13561 acl_final_prefix="$ac_default_prefix"
13562 else
13563 acl_final_prefix="$prefix"
13565 if test "X$exec_prefix" = "XNONE"; then
13566 acl_final_exec_prefix='${prefix}'
13567 else
13568 acl_final_exec_prefix="$exec_prefix"
13570 acl_save_prefix="$prefix"
13571 prefix="$acl_final_prefix"
13572 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13573 prefix="$acl_save_prefix"
13576 # Check whether --with-gnu-ld was given.
13577 if test "${with_gnu_ld+set}" = set; then :
13578 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13579 else
13580 with_gnu_ld=no
13583 ac_prog=ld
13584 if test "$GCC" = yes; then
13585 # Check if gcc -print-prog-name=ld gives a path.
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13587 $as_echo_n "checking for ld used by GCC... " >&6; }
13588 case $host in
13589 *-*-mingw*)
13590 # gcc leaves a trailing carriage return which upsets mingw
13591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13594 esac
13595 case $ac_prog in
13596 # Accept absolute paths.
13597 [\\/]* | [A-Za-z]:[\\/]*)
13598 re_direlt='/[^/][^/]*/\.\./'
13599 # Canonicalize the path of ld
13600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13603 done
13604 test -z "$LD" && LD="$ac_prog"
13607 # If it fails, then pretend we aren't using GCC.
13608 ac_prog=ld
13611 # If it is relative, then search for the first ld in PATH.
13612 with_gnu_ld=unknown
13614 esac
13615 elif test "$with_gnu_ld" = yes; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13617 $as_echo_n "checking for GNU ld... " >&6; }
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13620 $as_echo_n "checking for non-GNU ld... " >&6; }
13622 if ${acl_cv_path_LD+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -z "$LD"; then
13626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13627 for ac_dir in $PATH; do
13628 test -z "$ac_dir" && ac_dir=.
13629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13630 acl_cv_path_LD="$ac_dir/$ac_prog"
13631 # Check to see if the program is GNU ld. I'd rather use --version,
13632 # but apparently some GNU ld's only accept -v.
13633 # Break only if it was the GNU/non-GNU ld that we prefer.
13634 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13635 test "$with_gnu_ld" != no && break
13636 else
13637 test "$with_gnu_ld" != yes && break
13640 done
13641 IFS="$ac_save_ifs"
13642 else
13643 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13647 LD="$acl_cv_path_LD"
13648 if test -n "$LD"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13650 $as_echo "$LD" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13658 if ${acl_cv_prog_gnu_ld+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13662 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13663 acl_cv_prog_gnu_ld=yes
13664 else
13665 acl_cv_prog_gnu_ld=no
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13670 with_gnu_ld=$acl_cv_prog_gnu_ld
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13675 $as_echo_n "checking for shared library run path origin... " >&6; }
13676 if ${acl_cv_rpath+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13680 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13681 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13682 . ./conftest.sh
13683 rm -f ./conftest.sh
13684 acl_cv_rpath=done
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13688 $as_echo "$acl_cv_rpath" >&6; }
13689 wl="$acl_cv_wl"
13690 libext="$acl_cv_libext"
13691 shlibext="$acl_cv_shlibext"
13692 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13693 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13694 hardcode_direct="$acl_cv_hardcode_direct"
13695 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13696 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13697 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13698 # Check whether --enable-rpath was given.
13699 if test "${enable_rpath+set}" = set; then :
13700 enableval=$enable_rpath; :
13701 else
13702 enable_rpath=yes
13712 use_additional=yes
13714 acl_save_prefix="$prefix"
13715 prefix="$acl_final_prefix"
13716 acl_save_exec_prefix="$exec_prefix"
13717 exec_prefix="$acl_final_exec_prefix"
13719 eval additional_includedir=\"$includedir\"
13720 eval additional_libdir=\"$libdir\"
13722 exec_prefix="$acl_save_exec_prefix"
13723 prefix="$acl_save_prefix"
13726 # Check whether --with-libiconv-prefix was given.
13727 if test "${with_libiconv_prefix+set}" = set; then :
13728 withval=$with_libiconv_prefix;
13729 if test "X$withval" = "Xno"; then
13730 use_additional=no
13731 else
13732 if test "X$withval" = "X"; then
13734 acl_save_prefix="$prefix"
13735 prefix="$acl_final_prefix"
13736 acl_save_exec_prefix="$exec_prefix"
13737 exec_prefix="$acl_final_exec_prefix"
13739 eval additional_includedir=\"$includedir\"
13740 eval additional_libdir=\"$libdir\"
13742 exec_prefix="$acl_save_exec_prefix"
13743 prefix="$acl_save_prefix"
13745 else
13746 additional_includedir="$withval/include"
13747 additional_libdir="$withval/lib"
13753 LIBICONV=
13754 LTLIBICONV=
13755 INCICONV=
13756 rpathdirs=
13757 ltrpathdirs=
13758 names_already_handled=
13759 names_next_round='iconv '
13760 while test -n "$names_next_round"; do
13761 names_this_round="$names_next_round"
13762 names_next_round=
13763 for name in $names_this_round; do
13764 already_handled=
13765 for n in $names_already_handled; do
13766 if test "$n" = "$name"; then
13767 already_handled=yes
13768 break
13770 done
13771 if test -z "$already_handled"; then
13772 names_already_handled="$names_already_handled $name"
13773 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13774 eval value=\"\$HAVE_LIB$uppername\"
13775 if test -n "$value"; then
13776 if test "$value" = yes; then
13777 eval value=\"\$LIB$uppername\"
13778 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13779 eval value=\"\$LTLIB$uppername\"
13780 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13781 else
13784 else
13785 found_dir=
13786 found_la=
13787 found_so=
13788 found_a=
13789 if test $use_additional = yes; then
13790 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13791 found_dir="$additional_libdir"
13792 found_so="$additional_libdir/lib$name.$shlibext"
13793 if test -f "$additional_libdir/lib$name.la"; then
13794 found_la="$additional_libdir/lib$name.la"
13796 else
13797 if test -f "$additional_libdir/lib$name.$libext"; then
13798 found_dir="$additional_libdir"
13799 found_a="$additional_libdir/lib$name.$libext"
13800 if test -f "$additional_libdir/lib$name.la"; then
13801 found_la="$additional_libdir/lib$name.la"
13806 if test "X$found_dir" = "X"; then
13807 for x in $LDFLAGS $LTLIBICONV; do
13809 acl_save_prefix="$prefix"
13810 prefix="$acl_final_prefix"
13811 acl_save_exec_prefix="$exec_prefix"
13812 exec_prefix="$acl_final_exec_prefix"
13813 eval x=\"$x\"
13814 exec_prefix="$acl_save_exec_prefix"
13815 prefix="$acl_save_prefix"
13817 case "$x" in
13818 -L*)
13819 dir=`echo "X$x" | sed -e 's/^X-L//'`
13820 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13821 found_dir="$dir"
13822 found_so="$dir/lib$name.$shlibext"
13823 if test -f "$dir/lib$name.la"; then
13824 found_la="$dir/lib$name.la"
13826 else
13827 if test -f "$dir/lib$name.$libext"; then
13828 found_dir="$dir"
13829 found_a="$dir/lib$name.$libext"
13830 if test -f "$dir/lib$name.la"; then
13831 found_la="$dir/lib$name.la"
13836 esac
13837 if test "X$found_dir" != "X"; then
13838 break
13840 done
13842 if test "X$found_dir" != "X"; then
13843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13844 if test "X$found_so" != "X"; then
13845 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13847 else
13848 haveit=
13849 for x in $ltrpathdirs; do
13850 if test "X$x" = "X$found_dir"; then
13851 haveit=yes
13852 break
13854 done
13855 if test -z "$haveit"; then
13856 ltrpathdirs="$ltrpathdirs $found_dir"
13858 if test "$hardcode_direct" = yes; then
13859 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13860 else
13861 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13863 haveit=
13864 for x in $rpathdirs; do
13865 if test "X$x" = "X$found_dir"; then
13866 haveit=yes
13867 break
13869 done
13870 if test -z "$haveit"; then
13871 rpathdirs="$rpathdirs $found_dir"
13873 else
13874 haveit=
13875 for x in $LDFLAGS $LIBICONV; do
13877 acl_save_prefix="$prefix"
13878 prefix="$acl_final_prefix"
13879 acl_save_exec_prefix="$exec_prefix"
13880 exec_prefix="$acl_final_exec_prefix"
13881 eval x=\"$x\"
13882 exec_prefix="$acl_save_exec_prefix"
13883 prefix="$acl_save_prefix"
13885 if test "X$x" = "X-L$found_dir"; then
13886 haveit=yes
13887 break
13889 done
13890 if test -z "$haveit"; then
13891 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13893 if test "$hardcode_minus_L" != no; then
13894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13895 else
13896 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13901 else
13902 if test "X$found_a" != "X"; then
13903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13904 else
13905 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13908 additional_includedir=
13909 case "$found_dir" in
13910 */lib | */lib/)
13911 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13912 additional_includedir="$basedir/include"
13914 esac
13915 if test "X$additional_includedir" != "X"; then
13916 if test "X$additional_includedir" != "X/usr/include"; then
13917 haveit=
13918 if test "X$additional_includedir" = "X/usr/local/include"; then
13919 if test -n "$GCC"; then
13920 case $host_os in
13921 linux*) haveit=yes;;
13922 esac
13925 if test -z "$haveit"; then
13926 for x in $CPPFLAGS $INCICONV; do
13928 acl_save_prefix="$prefix"
13929 prefix="$acl_final_prefix"
13930 acl_save_exec_prefix="$exec_prefix"
13931 exec_prefix="$acl_final_exec_prefix"
13932 eval x=\"$x\"
13933 exec_prefix="$acl_save_exec_prefix"
13934 prefix="$acl_save_prefix"
13936 if test "X$x" = "X-I$additional_includedir"; then
13937 haveit=yes
13938 break
13940 done
13941 if test -z "$haveit"; then
13942 if test -d "$additional_includedir"; then
13943 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13949 if test -n "$found_la"; then
13950 save_libdir="$libdir"
13951 case "$found_la" in
13952 */* | *\\*) . "$found_la" ;;
13953 *) . "./$found_la" ;;
13954 esac
13955 libdir="$save_libdir"
13956 for dep in $dependency_libs; do
13957 case "$dep" in
13958 -L*)
13959 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13960 if test "X$additional_libdir" != "X/usr/lib"; then
13961 haveit=
13962 if test "X$additional_libdir" = "X/usr/local/lib"; then
13963 if test -n "$GCC"; then
13964 case $host_os in
13965 linux*) haveit=yes;;
13966 esac
13969 if test -z "$haveit"; then
13970 haveit=
13971 for x in $LDFLAGS $LIBICONV; do
13973 acl_save_prefix="$prefix"
13974 prefix="$acl_final_prefix"
13975 acl_save_exec_prefix="$exec_prefix"
13976 exec_prefix="$acl_final_exec_prefix"
13977 eval x=\"$x\"
13978 exec_prefix="$acl_save_exec_prefix"
13979 prefix="$acl_save_prefix"
13981 if test "X$x" = "X-L$additional_libdir"; then
13982 haveit=yes
13983 break
13985 done
13986 if test -z "$haveit"; then
13987 if test -d "$additional_libdir"; then
13988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13991 haveit=
13992 for x in $LDFLAGS $LTLIBICONV; do
13994 acl_save_prefix="$prefix"
13995 prefix="$acl_final_prefix"
13996 acl_save_exec_prefix="$exec_prefix"
13997 exec_prefix="$acl_final_exec_prefix"
13998 eval x=\"$x\"
13999 exec_prefix="$acl_save_exec_prefix"
14000 prefix="$acl_save_prefix"
14002 if test "X$x" = "X-L$additional_libdir"; then
14003 haveit=yes
14004 break
14006 done
14007 if test -z "$haveit"; then
14008 if test -d "$additional_libdir"; then
14009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14015 -R*)
14016 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14017 if test "$enable_rpath" != no; then
14018 haveit=
14019 for x in $rpathdirs; do
14020 if test "X$x" = "X$dir"; then
14021 haveit=yes
14022 break
14024 done
14025 if test -z "$haveit"; then
14026 rpathdirs="$rpathdirs $dir"
14028 haveit=
14029 for x in $ltrpathdirs; do
14030 if test "X$x" = "X$dir"; then
14031 haveit=yes
14032 break
14034 done
14035 if test -z "$haveit"; then
14036 ltrpathdirs="$ltrpathdirs $dir"
14040 -l*)
14041 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14043 *.la)
14044 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14047 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14050 esac
14051 done
14053 else
14054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14059 done
14060 done
14061 if test "X$rpathdirs" != "X"; then
14062 if test -n "$hardcode_libdir_separator"; then
14063 alldirs=
14064 for found_dir in $rpathdirs; do
14065 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14066 done
14067 acl_save_libdir="$libdir"
14068 libdir="$alldirs"
14069 eval flag=\"$hardcode_libdir_flag_spec\"
14070 libdir="$acl_save_libdir"
14071 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14072 else
14073 for found_dir in $rpathdirs; do
14074 acl_save_libdir="$libdir"
14075 libdir="$found_dir"
14076 eval flag=\"$hardcode_libdir_flag_spec\"
14077 libdir="$acl_save_libdir"
14078 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14079 done
14082 if test "X$ltrpathdirs" != "X"; then
14083 for found_dir in $ltrpathdirs; do
14084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14085 done
14091 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14092 stdlib.h string.h unistd.h sys/param.h
14093 do :
14094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099 _ACEOF
14103 done
14105 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14106 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14107 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14108 do :
14109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14112 cat >>confdefs.h <<_ACEOF
14113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14114 _ACEOF
14117 done
14125 am_save_CPPFLAGS="$CPPFLAGS"
14127 for element in $INCICONV; do
14128 haveit=
14129 for x in $CPPFLAGS; do
14131 acl_save_prefix="$prefix"
14132 prefix="$acl_final_prefix"
14133 acl_save_exec_prefix="$exec_prefix"
14134 exec_prefix="$acl_final_exec_prefix"
14135 eval x=\"$x\"
14136 exec_prefix="$acl_save_exec_prefix"
14137 prefix="$acl_save_prefix"
14139 if test "X$x" = "X$element"; then
14140 haveit=yes
14141 break
14143 done
14144 if test -z "$haveit"; then
14145 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14147 done
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14151 $as_echo_n "checking for iconv... " >&6; }
14152 if ${am_cv_func_iconv+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14156 am_cv_func_iconv="no, consider installing GNU libiconv"
14157 am_cv_lib_iconv=no
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #include <stdlib.h>
14161 #include <iconv.h>
14163 main ()
14165 iconv_t cd = iconv_open("","");
14166 iconv(cd,NULL,NULL,NULL,NULL);
14167 iconv_close(cd);
14169 return 0;
14171 _ACEOF
14172 if ac_fn_c_try_link "$LINENO"; then :
14173 am_cv_func_iconv=yes
14175 rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177 if test "$am_cv_func_iconv" != yes; then
14178 am_save_LIBS="$LIBS"
14179 LIBS="$LIBS $LIBICONV"
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 #include <stdlib.h>
14183 #include <iconv.h>
14185 main ()
14187 iconv_t cd = iconv_open("","");
14188 iconv(cd,NULL,NULL,NULL,NULL);
14189 iconv_close(cd);
14191 return 0;
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 am_cv_lib_iconv=yes
14196 am_cv_func_iconv=yes
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14200 LIBS="$am_save_LIBS"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14205 $as_echo "$am_cv_func_iconv" >&6; }
14206 if test "$am_cv_func_iconv" = yes; then
14208 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14211 if test "$am_cv_lib_iconv" = yes; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14213 $as_echo_n "checking how to link with libiconv... " >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14215 $as_echo "$LIBICONV" >&6; }
14216 else
14217 CPPFLAGS="$am_save_CPPFLAGS"
14218 LIBICONV=
14219 LTLIBICONV=
14224 if test "$am_cv_func_iconv" = yes; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14226 $as_echo_n "checking for iconv declaration... " >&6; }
14227 if ${am_cv_proto_iconv+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14234 #include <stdlib.h>
14235 #include <iconv.h>
14236 extern
14237 #ifdef __cplusplus
14239 #endif
14240 #if defined(__STDC__) || defined(__cplusplus)
14241 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14242 #else
14243 size_t iconv();
14244 #endif
14247 main ()
14251 return 0;
14253 _ACEOF
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255 am_cv_proto_iconv_arg1=""
14256 else
14257 am_cv_proto_iconv_arg1="const"
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260 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);"
14263 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14265 }$am_cv_proto_iconv" >&5
14266 $as_echo "${ac_t:-
14267 }$am_cv_proto_iconv" >&6; }
14269 cat >>confdefs.h <<_ACEOF
14270 #define ICONV_CONST $am_cv_proto_iconv_arg1
14271 _ACEOF
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14277 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14278 if ${am_cv_langinfo_codeset+:} false; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 #include <langinfo.h>
14285 main ()
14287 char* cs = nl_langinfo(CODESET);
14289 return 0;
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 am_cv_langinfo_codeset=yes
14294 else
14295 am_cv_langinfo_codeset=no
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14302 $as_echo "$am_cv_langinfo_codeset" >&6; }
14303 if test $am_cv_langinfo_codeset = yes; then
14305 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14309 if test $ac_cv_header_locale_h = yes; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14312 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14313 if ${am_cv_val_LC_MESSAGES+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <locale.h>
14320 main ()
14322 return LC_MESSAGES
14324 return 0;
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 am_cv_val_LC_MESSAGES=yes
14329 else
14330 am_cv_val_LC_MESSAGES=no
14332 rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14336 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14337 if test $am_cv_val_LC_MESSAGES = yes; then
14339 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14345 for ac_prog in bison
14347 # Extract the first word of "$ac_prog", so it can be a program name with args.
14348 set dummy $ac_prog; ac_word=$2
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350 $as_echo_n "checking for $ac_word... " >&6; }
14351 if ${ac_cv_prog_INTLBISON+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 if test -n "$INTLBISON"; then
14355 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14356 else
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14360 IFS=$as_save_IFS
14361 test -z "$as_dir" && as_dir=.
14362 for ac_exec_ext in '' $ac_executable_extensions; do
14363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14364 ac_cv_prog_INTLBISON="$ac_prog"
14365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14366 break 2
14368 done
14369 done
14370 IFS=$as_save_IFS
14374 INTLBISON=$ac_cv_prog_INTLBISON
14375 if test -n "$INTLBISON"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14377 $as_echo "$INTLBISON" >&6; }
14378 else
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14380 $as_echo "no" >&6; }
14384 test -n "$INTLBISON" && break
14385 done
14387 if test -z "$INTLBISON"; then
14388 ac_verc_fail=yes
14389 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14391 $as_echo_n "checking version of bison... " >&6; }
14392 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14393 case $ac_prog_version in
14394 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14395 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14396 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14397 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14398 esac
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14400 $as_echo "$ac_prog_version" >&6; }
14402 if test $ac_verc_fail = yes; then
14403 INTLBISON=:
14408 # Check whether --with-language was given.
14409 if test "${with_language+set}" = set; then :
14410 withval=$with_language; if test "$withval" != "all"; then :
14411 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14431 $as_echo_n "checking whether NLS is requested... " >&6; }
14432 # Check whether --enable-nls was given.
14433 if test "${enable_nls+set}" = set; then :
14434 enableval=$enable_nls; USE_NLS=$enableval
14435 else
14436 USE_NLS=yes
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14440 $as_echo "$USE_NLS" >&6; }
14444 BUILD_INCLUDED_LIBINTL=no
14445 USE_INCLUDED_LIBINTL=no
14447 LIBINTL=
14448 LTLIBINTL=
14449 POSUB=
14451 if test "$USE_NLS" = "yes"; then
14452 gt_use_preinstalled_gnugettext=no
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14455 $as_echo_n "checking whether included gettext is requested... " >&6; }
14457 # Check whether --with-included-gettext was given.
14458 if test "${with_included_gettext+set}" = set; then :
14459 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14460 else
14461 nls_cv_force_use_gnu_gettext=no
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14465 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14467 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14468 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14476 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14477 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <libintl.h>
14483 extern int _nl_msg_cat_cntr;
14484 extern int *_nl_domain_bindings;
14486 main ()
14488 bindtextdomain ("", "");
14489 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14491 return 0;
14493 _ACEOF
14494 if ac_fn_c_try_link "$LINENO"; then :
14495 gt_cv_func_gnugettext2_libc=yes
14496 else
14497 gt_cv_func_gnugettext2_libc=no
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14503 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14505 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14509 use_additional=yes
14511 acl_save_prefix="$prefix"
14512 prefix="$acl_final_prefix"
14513 acl_save_exec_prefix="$exec_prefix"
14514 exec_prefix="$acl_final_exec_prefix"
14516 eval additional_includedir=\"$includedir\"
14517 eval additional_libdir=\"$libdir\"
14519 exec_prefix="$acl_save_exec_prefix"
14520 prefix="$acl_save_prefix"
14523 # Check whether --with-libintl-prefix was given.
14524 if test "${with_libintl_prefix+set}" = set; then :
14525 withval=$with_libintl_prefix;
14526 if test "X$withval" = "Xno"; then
14527 use_additional=no
14528 else
14529 if test "X$withval" = "X"; then
14531 acl_save_prefix="$prefix"
14532 prefix="$acl_final_prefix"
14533 acl_save_exec_prefix="$exec_prefix"
14534 exec_prefix="$acl_final_exec_prefix"
14536 eval additional_includedir=\"$includedir\"
14537 eval additional_libdir=\"$libdir\"
14539 exec_prefix="$acl_save_exec_prefix"
14540 prefix="$acl_save_prefix"
14542 else
14543 additional_includedir="$withval/include"
14544 additional_libdir="$withval/lib"
14550 LIBINTL=
14551 LTLIBINTL=
14552 INCINTL=
14553 rpathdirs=
14554 ltrpathdirs=
14555 names_already_handled=
14556 names_next_round='intl '
14557 while test -n "$names_next_round"; do
14558 names_this_round="$names_next_round"
14559 names_next_round=
14560 for name in $names_this_round; do
14561 already_handled=
14562 for n in $names_already_handled; do
14563 if test "$n" = "$name"; then
14564 already_handled=yes
14565 break
14567 done
14568 if test -z "$already_handled"; then
14569 names_already_handled="$names_already_handled $name"
14570 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14571 eval value=\"\$HAVE_LIB$uppername\"
14572 if test -n "$value"; then
14573 if test "$value" = yes; then
14574 eval value=\"\$LIB$uppername\"
14575 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14576 eval value=\"\$LTLIB$uppername\"
14577 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14578 else
14581 else
14582 found_dir=
14583 found_la=
14584 found_so=
14585 found_a=
14586 if test $use_additional = yes; then
14587 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14588 found_dir="$additional_libdir"
14589 found_so="$additional_libdir/lib$name.$shlibext"
14590 if test -f "$additional_libdir/lib$name.la"; then
14591 found_la="$additional_libdir/lib$name.la"
14593 else
14594 if test -f "$additional_libdir/lib$name.$libext"; then
14595 found_dir="$additional_libdir"
14596 found_a="$additional_libdir/lib$name.$libext"
14597 if test -f "$additional_libdir/lib$name.la"; then
14598 found_la="$additional_libdir/lib$name.la"
14603 if test "X$found_dir" = "X"; then
14604 for x in $LDFLAGS $LTLIBINTL; do
14606 acl_save_prefix="$prefix"
14607 prefix="$acl_final_prefix"
14608 acl_save_exec_prefix="$exec_prefix"
14609 exec_prefix="$acl_final_exec_prefix"
14610 eval x=\"$x\"
14611 exec_prefix="$acl_save_exec_prefix"
14612 prefix="$acl_save_prefix"
14614 case "$x" in
14615 -L*)
14616 dir=`echo "X$x" | sed -e 's/^X-L//'`
14617 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14618 found_dir="$dir"
14619 found_so="$dir/lib$name.$shlibext"
14620 if test -f "$dir/lib$name.la"; then
14621 found_la="$dir/lib$name.la"
14623 else
14624 if test -f "$dir/lib$name.$libext"; then
14625 found_dir="$dir"
14626 found_a="$dir/lib$name.$libext"
14627 if test -f "$dir/lib$name.la"; then
14628 found_la="$dir/lib$name.la"
14633 esac
14634 if test "X$found_dir" != "X"; then
14635 break
14637 done
14639 if test "X$found_dir" != "X"; then
14640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14641 if test "X$found_so" != "X"; then
14642 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14643 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14644 else
14645 haveit=
14646 for x in $ltrpathdirs; do
14647 if test "X$x" = "X$found_dir"; then
14648 haveit=yes
14649 break
14651 done
14652 if test -z "$haveit"; then
14653 ltrpathdirs="$ltrpathdirs $found_dir"
14655 if test "$hardcode_direct" = yes; then
14656 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14657 else
14658 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14659 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14660 haveit=
14661 for x in $rpathdirs; do
14662 if test "X$x" = "X$found_dir"; then
14663 haveit=yes
14664 break
14666 done
14667 if test -z "$haveit"; then
14668 rpathdirs="$rpathdirs $found_dir"
14670 else
14671 haveit=
14672 for x in $LDFLAGS $LIBINTL; do
14674 acl_save_prefix="$prefix"
14675 prefix="$acl_final_prefix"
14676 acl_save_exec_prefix="$exec_prefix"
14677 exec_prefix="$acl_final_exec_prefix"
14678 eval x=\"$x\"
14679 exec_prefix="$acl_save_exec_prefix"
14680 prefix="$acl_save_prefix"
14682 if test "X$x" = "X-L$found_dir"; then
14683 haveit=yes
14684 break
14686 done
14687 if test -z "$haveit"; then
14688 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14690 if test "$hardcode_minus_L" != no; then
14691 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14692 else
14693 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14698 else
14699 if test "X$found_a" != "X"; then
14700 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14701 else
14702 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14705 additional_includedir=
14706 case "$found_dir" in
14707 */lib | */lib/)
14708 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14709 additional_includedir="$basedir/include"
14711 esac
14712 if test "X$additional_includedir" != "X"; then
14713 if test "X$additional_includedir" != "X/usr/include"; then
14714 haveit=
14715 if test "X$additional_includedir" = "X/usr/local/include"; then
14716 if test -n "$GCC"; then
14717 case $host_os in
14718 linux*) haveit=yes;;
14719 esac
14722 if test -z "$haveit"; then
14723 for x in $CPPFLAGS $INCINTL; do
14725 acl_save_prefix="$prefix"
14726 prefix="$acl_final_prefix"
14727 acl_save_exec_prefix="$exec_prefix"
14728 exec_prefix="$acl_final_exec_prefix"
14729 eval x=\"$x\"
14730 exec_prefix="$acl_save_exec_prefix"
14731 prefix="$acl_save_prefix"
14733 if test "X$x" = "X-I$additional_includedir"; then
14734 haveit=yes
14735 break
14737 done
14738 if test -z "$haveit"; then
14739 if test -d "$additional_includedir"; then
14740 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14746 if test -n "$found_la"; then
14747 save_libdir="$libdir"
14748 case "$found_la" in
14749 */* | *\\*) . "$found_la" ;;
14750 *) . "./$found_la" ;;
14751 esac
14752 libdir="$save_libdir"
14753 for dep in $dependency_libs; do
14754 case "$dep" in
14755 -L*)
14756 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14757 if test "X$additional_libdir" != "X/usr/lib"; then
14758 haveit=
14759 if test "X$additional_libdir" = "X/usr/local/lib"; then
14760 if test -n "$GCC"; then
14761 case $host_os in
14762 linux*) haveit=yes;;
14763 esac
14766 if test -z "$haveit"; then
14767 haveit=
14768 for x in $LDFLAGS $LIBINTL; do
14770 acl_save_prefix="$prefix"
14771 prefix="$acl_final_prefix"
14772 acl_save_exec_prefix="$exec_prefix"
14773 exec_prefix="$acl_final_exec_prefix"
14774 eval x=\"$x\"
14775 exec_prefix="$acl_save_exec_prefix"
14776 prefix="$acl_save_prefix"
14778 if test "X$x" = "X-L$additional_libdir"; then
14779 haveit=yes
14780 break
14782 done
14783 if test -z "$haveit"; then
14784 if test -d "$additional_libdir"; then
14785 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14788 haveit=
14789 for x in $LDFLAGS $LTLIBINTL; do
14791 acl_save_prefix="$prefix"
14792 prefix="$acl_final_prefix"
14793 acl_save_exec_prefix="$exec_prefix"
14794 exec_prefix="$acl_final_exec_prefix"
14795 eval x=\"$x\"
14796 exec_prefix="$acl_save_exec_prefix"
14797 prefix="$acl_save_prefix"
14799 if test "X$x" = "X-L$additional_libdir"; then
14800 haveit=yes
14801 break
14803 done
14804 if test -z "$haveit"; then
14805 if test -d "$additional_libdir"; then
14806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14812 -R*)
14813 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14814 if test "$enable_rpath" != no; then
14815 haveit=
14816 for x in $rpathdirs; do
14817 if test "X$x" = "X$dir"; then
14818 haveit=yes
14819 break
14821 done
14822 if test -z "$haveit"; then
14823 rpathdirs="$rpathdirs $dir"
14825 haveit=
14826 for x in $ltrpathdirs; do
14827 if test "X$x" = "X$dir"; then
14828 haveit=yes
14829 break
14831 done
14832 if test -z "$haveit"; then
14833 ltrpathdirs="$ltrpathdirs $dir"
14837 -l*)
14838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14840 *.la)
14841 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14844 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14847 esac
14848 done
14850 else
14851 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14852 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14856 done
14857 done
14858 if test "X$rpathdirs" != "X"; then
14859 if test -n "$hardcode_libdir_separator"; then
14860 alldirs=
14861 for found_dir in $rpathdirs; do
14862 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14863 done
14864 acl_save_libdir="$libdir"
14865 libdir="$alldirs"
14866 eval flag=\"$hardcode_libdir_flag_spec\"
14867 libdir="$acl_save_libdir"
14868 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14869 else
14870 for found_dir in $rpathdirs; do
14871 acl_save_libdir="$libdir"
14872 libdir="$found_dir"
14873 eval flag=\"$hardcode_libdir_flag_spec\"
14874 libdir="$acl_save_libdir"
14875 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14876 done
14879 if test "X$ltrpathdirs" != "X"; then
14880 for found_dir in $ltrpathdirs; do
14881 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14882 done
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14886 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14887 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 gt_save_CPPFLAGS="$CPPFLAGS"
14891 CPPFLAGS="$CPPFLAGS $INCINTL"
14892 gt_save_LIBS="$LIBS"
14893 LIBS="$LIBS $LIBINTL"
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896 #include <libintl.h>
14897 extern int _nl_msg_cat_cntr;
14898 extern
14899 #ifdef __cplusplus
14901 #endif
14902 const char *_nl_expand_alias ();
14904 main ()
14906 bindtextdomain ("", "");
14907 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14909 return 0;
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"; then :
14913 gt_cv_func_gnugettext2_libintl=yes
14914 else
14915 gt_cv_func_gnugettext2_libintl=no
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14920 LIBS="$LIBS $LIBICONV"
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923 #include <libintl.h>
14924 extern int _nl_msg_cat_cntr;
14925 extern
14926 #ifdef __cplusplus
14928 #endif
14929 const char *_nl_expand_alias ();
14931 main ()
14933 bindtextdomain ("", "");
14934 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14936 return 0;
14938 _ACEOF
14939 if ac_fn_c_try_link "$LINENO"; then :
14940 LIBINTL="$LIBINTL $LIBICONV"
14941 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14942 gt_cv_func_gnugettext2_libintl=yes
14945 rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14948 CPPFLAGS="$gt_save_CPPFLAGS"
14949 LIBS="$gt_save_LIBS"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14952 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14955 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14956 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14957 && test "$PACKAGE" != gettext; }; then
14958 gt_use_preinstalled_gnugettext=yes
14959 else
14960 LIBINTL=
14961 LTLIBINTL=
14962 INCINTL=
14966 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14967 nls_cv_use_gnu_gettext=yes
14971 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14972 INTLOBJS="\$(GETTOBJS)"
14973 BUILD_INCLUDED_LIBINTL=yes
14974 USE_INCLUDED_LIBINTL=yes
14975 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14976 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14977 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14980 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14981 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14982 CATOBJEXT=.gmo
14986 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14987 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14989 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14991 else
14992 USE_NLS=no
14996 if test "$USE_NLS" = "yes"; then
14998 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14999 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15001 $as_echo_n "checking how to link with libintl... " >&6; }
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15003 $as_echo "$LIBINTL" >&6; }
15005 for element in $INCINTL; do
15006 haveit=
15007 for x in $CPPFLAGS; do
15009 acl_save_prefix="$prefix"
15010 prefix="$acl_final_prefix"
15011 acl_save_exec_prefix="$exec_prefix"
15012 exec_prefix="$acl_final_exec_prefix"
15013 eval x=\"$x\"
15014 exec_prefix="$acl_save_exec_prefix"
15015 prefix="$acl_save_prefix"
15017 if test "X$x" = "X$element"; then
15018 haveit=yes
15019 break
15021 done
15022 if test -z "$haveit"; then
15023 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15025 done
15030 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15033 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15037 POSUB=po
15041 if test "$PACKAGE" = gettext; then
15042 BUILD_INCLUDED_LIBINTL=yes
15050 nls_cv_header_intl=
15051 nls_cv_header_libgt=
15053 DATADIRNAME=share
15056 INSTOBJEXT=.mo
15059 GENCAT=gencat
15062 INTL_LIBTOOL_SUFFIX_PREFIX=
15066 INTLLIBS="$LIBINTL"
15073 if test $USE_INCLUDED_LIBINTL = yes; then :
15074 INCINTL=-I\${top_builddir}/intl
15077 if test x$USE_NLS = xyes; then :
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15080 $as_echo_n "checking for autopoint... " >&6; }
15081 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15082 if test -n "$autopoint_version"; then :
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15085 $as_echo "yes ($autopoint_version)" >&6; }
15088 else
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 $as_echo "no" >&6; }
15092 USE_NLS=no
15097 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15099 You need to install GNU gettext/gettext-tools to compile aMule with
15100 i18n support." >&5
15101 $as_echo "$as_me: WARNING:
15102 You need to install GNU gettext/gettext-tools to compile aMule with
15103 i18n support." >&2;}
15104 _mule_warning_12=yes
15105 _mule_has_warnings=yes
15109 if test ${USE_NLS:-no} = yes; then :
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15112 $as_echo_n "checking for requested languages... " >&6; }
15113 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15115 if test ${enable_amule_daemon:-no} = yes; then :
15117 if test -z "$LINGUAS"; then :
15118 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15119 else
15121 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15122 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15125 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15127 else
15128 AMULE_DAEMON_MANPAGES=
15133 if test ${enable_amulecmd:-no} = yes; then :
15135 if test -z "$LINGUAS"; then :
15136 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15137 else
15139 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15140 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15143 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15145 else
15146 AMULECMD_MANPAGES=
15151 if test ${enable_webserver:-no} = yes; then :
15153 if test -z "$LINGUAS"; then :
15154 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15155 else
15157 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15158 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15161 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15163 else
15164 WEBSERVER_MANPAGES=
15169 if test ${enable_amule_gui:-no} = yes; then :
15171 if test -z "$LINGUAS"; then :
15172 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15173 else
15175 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15176 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15179 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15181 else
15182 AMULE_GUI_MANPAGES=
15187 if test ${enable_cas:-no} = yes; then :
15189 if test -z "$LINGUAS"; then :
15190 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15191 else
15193 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15194 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15197 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15199 else
15200 CAS_MANPAGES=
15205 if test ${enable_wxcas:-no} = yes; then :
15207 if test -z "$LINGUAS"; then :
15208 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15209 else
15211 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15212 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15215 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15217 else
15218 WXCAS_MANPAGES=
15223 if test ${enable_ed2k:-yes} = yes; then :
15225 if test -z "$LINGUAS"; then :
15226 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15227 else
15229 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15230 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15233 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15235 else
15236 ED2K_MANPAGES=
15241 if test ${enable_alc:-no} = yes; then :
15243 if test -z "$LINGUAS"; then :
15244 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15245 else
15247 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15248 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15251 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15253 else
15254 ALC_MANPAGES=
15259 if test ${enable_alcc:-no} = yes; then :
15261 if test -z "$LINGUAS"; then :
15262 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15263 else
15265 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15266 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15269 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15271 else
15272 ALCC_MANPAGES=
15277 if test ${enable_monolithic:-yes} = yes; then :
15279 if test -z "$LINGUAS"; then :
15280 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15281 else
15283 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15284 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15287 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15289 else
15290 MONOLITHIC_MANPAGES=
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15295 $as_echo "${LINGUAS:-all}" >&6; }
15300 if test x$USE_INCLUDED_LIBINTL = xyes; then :
15301 ac_config_commands="$ac_config_commands intl"
15304 ac_ext=cpp
15305 ac_cpp='$CXXCPP $CPPFLAGS'
15306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15312 # Check for bfd.h (to have proper backtraces without using wxExecute)
15314 for ac_header in ansidecl.h bfd.h
15315 do :
15316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15317 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15319 cat >>confdefs.h <<_ACEOF
15320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15321 _ACEOF
15325 done
15327 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15330 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15331 if ${mule_cv_lib_bfd+:} false; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15335 for bfd_ldadd in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15336 # Doing some black magic to prevent multiple tests for the same set of
15337 # libraries when any of the shell variables above expand to nothing.
15338 echo $bfd_ldadd
15339 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15340 while read bfd_ldadd; do
15341 mule_backup_LIBS="$LIBS"
15342 mule_backup_LDFLAGS="$LDFLAGS"
15343 LIBS="${bfd_ldadd} $LIBS"
15344 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15349 #include <ansidecl.h>
15350 #include <bfd.h>
15353 main ()
15355 const char *dummy = bfd_errmsg(bfd_get_error());
15357 return 0;
15360 _ACEOF
15361 if ac_fn_cxx_try_link "$LINENO"; then :
15363 LIBS="$mule_backup_LIBS"
15364 LDFLAGS="$mule_backup_LDFLAGS"
15365 mule_cv_lib_bfd="${bfd_ldadd}"
15368 rm -f core conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS="$mule_backup_LIBS"
15371 LDFLAGS="$mule_backup_LDFLAGS"
15372 if ${mule_cv_lib_bfd+:} false; then :
15373 break
15375 done <conftest.bfd_ldadd
15376 rm -f conftest.bfd_ldadd
15381 if ${mule_cv_lib_bfd+:} false; then :
15383 BFD_CPPFLAGS="-DHAVE_BFD"
15384 BFD_LIBS="${mule_cv_lib_bfd}"
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15386 $as_echo "${BFD_LIBS:-none required}" >&6; }
15388 else
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15391 $as_echo "not found" >&6; }
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15393 Cannot link to the library containing the bfd functions." >&5
15394 $as_echo "$as_me: WARNING:
15395 Cannot link to the library containing the bfd functions." >&2;}
15396 _mule_warning_13=yes
15397 _mule_has_warnings=yes
15402 else
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15405 bfd.h not found or unusable, please install binutils development
15406 package if you are a developer or want to help testing aMule" >&5
15407 $as_echo "$as_me: WARNING:
15408 bfd.h not found or unusable, please install binutils development
15409 package if you are a developer or want to help testing aMule" >&2;}
15410 _mule_warning_14=yes
15411 _mule_has_warnings=yes
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15419 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15424 #include <execinfo.h>
15427 main ()
15430 void *bt[1];
15431 int n = backtrace((void **)&bt, 1);
15432 char **bt_syms = backtrace_symbols(bt, n);
15435 return 0;
15438 _ACEOF
15439 if ac_fn_cxx_try_link "$LINENO"; then :
15442 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15445 $as_echo "yes" >&6; }
15447 else
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15450 $as_echo "no" >&6; }
15453 rm -f core conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15458 # aMule plasma widget
15459 if test ${enable_plasmamule:-no} = yes; then :
15462 if test -z ${QT_MOC}; then :
15464 for ac_prog in moc-qt4 moc
15466 # Extract the first word of "$ac_prog", so it can be a program name with args.
15467 set dummy $ac_prog; ac_word=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469 $as_echo_n "checking for $ac_word... " >&6; }
15470 if ${ac_cv_path_QT_MOC+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 case $QT_MOC in
15474 [\\/]* | ?:[\\/]*)
15475 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15489 done
15490 done
15491 IFS=$as_save_IFS
15494 esac
15496 QT_MOC=$ac_cv_path_QT_MOC
15497 if test -n "$QT_MOC"; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15499 $as_echo "$QT_MOC" >&6; }
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15506 test -n "$QT_MOC" && break
15507 done
15509 if test -z ${QT_MOC}; then :
15511 echo moc not found
15512 exit 1
15516 else
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15519 $as_echo_n "checking for moc... " >&6; }
15520 if test -x ${QT_MOC}; then :
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15523 $as_echo "${QT_MOC}" >&6; }
15526 else
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15529 $as_echo "\"not found\"" >&6; }
15530 QT_MOC="not found"
15531 exit 1
15538 if test "${QT_MOC}" != "not found"; then :
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15541 $as_echo_n "checking for moc version >= 4... " >&6; }
15542 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15543 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15546 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15548 else
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15551 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15552 QT_MOC="not found"
15553 exit 1
15559 if test "${QT_MOC}" = "not found"; then :
15560 enable_plasmamule=disabled
15563 if test ${enable_plasmamule:-no} = yes; then :
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15568 $as_echo_n "checking for qt... " >&6; }
15569 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15572 $as_echo "found" >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15574 $as_echo_n "checking for qt core cflags... " >&6; }
15575 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15577 $as_echo "$QT_CORE_CFLAGS" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15579 $as_echo_n "checking for qt core libs... " >&6; }
15580 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15582 $as_echo "$QT_CORE_LIBS" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15584 $as_echo_n "checking for qt gui cflags... " >&6; }
15585 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15587 $as_echo "$QT_GUI_CFLAGS" >&6; }
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15589 $as_echo_n "checking for qt gui libs... " >&6; }
15590 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15592 $as_echo "$QT_GUI_LIBS" >&6; }
15594 else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15596 $as_echo "not found" >&6; }
15597 exit 1
15601 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15603 QT_DBUS_LDFLAGS="-lQtDBus"
15613 if test -z "${QT_CORE_CXXFLAGS}"; then :
15614 enable_plasmamule=disabled
15619 if test ${enable_plasmamule:-no} = yes; then :
15622 if test -z ${KDE4_CONFIG}; then :
15624 # Extract the first word of "kde4-config", so it can be a program name with args.
15625 set dummy kde4-config; ac_word=$2
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15627 $as_echo_n "checking for $ac_word... " >&6; }
15628 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 case $KDE4_CONFIG in
15632 [\\/]* | ?:[\\/]*)
15633 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH
15639 IFS=$as_save_IFS
15640 test -z "$as_dir" && as_dir=.
15641 for ac_exec_ext in '' $ac_executable_extensions; do
15642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15643 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15645 break 2
15647 done
15648 done
15649 IFS=$as_save_IFS
15652 esac
15654 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15655 if test -n "$KDE4_CONFIG"; then
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15657 $as_echo "$KDE4_CONFIG" >&6; }
15658 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 $as_echo "no" >&6; }
15665 else
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15668 $as_echo_n "checking for kde4-config... " >&6; }
15669 if test ! -x KDE4_CONFIG; then :
15671 KDE4_CONFIG="not found"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15673 $as_echo "not found" >&6; }
15674 exit 1
15680 if test "${KDE4_CONFIG}" != "not found"; then :
15682 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15683 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15686 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15688 else
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15691 $as_echo "at least version 4 required" >&6; }
15692 exit 1
15696 else
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15699 $as_echo "not found" >&6; }
15700 exit 1
15705 if test "${KDE4_CONFIG}" = "not found"; then :
15706 enable_plasmamule=disabled
15711 if test ${enable_plasmamule:-no} = yes; then :
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15715 $as_echo_n "checking for kde4 headers... " >&6; }
15716 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15718 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15720 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15723 $as_echo "${KDE_HEADER_DIR}" >&6; }
15725 else
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15728 $as_echo "dataengine.h not found" >&6; }
15729 exit 1
15733 else
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15736 $as_echo "kdirwatch.h not found" >&6; }
15737 exit 1
15742 if test -z ${KDE_HEADER_DIR}; then :
15743 enable_plasmamule=disabled
15748 if test ${enable_plasmamule:-no} = yes; then :
15750 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15751 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15756 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15757 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15759 KDE_IN_HOME="yes"
15762 if test ${KDE_IN_HOME} = "yes"; then :
15764 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15766 else
15768 if test -n ${prefix}; then :
15770 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15771 if test -n ${KDE_APPLNK_PATH}; then :
15773 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15777 else
15779 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15785 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15791 $as_echo_n "checking for kde4 services Path... " >&6; }
15792 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15794 KDE_IN_HOME="yes"
15797 if test ${KDE_IN_HOME} = "yes"; then :
15799 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15801 else
15803 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15807 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15813 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15814 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15816 KDE_IN_HOME="yes"
15819 if test ${KDE_IN_HOME} = "yes"; then :
15821 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15823 else
15825 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15829 $as_echo "${KDE_MODULE_PATH}" >&6; }
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15835 $as_echo_n "checking for kde4 icons Path... " >&6; }
15836 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15838 KDE_IN_HOME="yes"
15841 if test ${KDE_IN_HOME} = "yes"; then :
15843 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15845 else
15847 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15850 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15852 $as_echo "${KDE_ICON_PATH}" >&6; }
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15858 $as_echo_n "checking for location for mime-type installation... " >&6; }
15859 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15861 KDE_IN_HOME="yes"
15864 if test ${KDE_IN_HOME} = "yes"; then :
15866 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15868 else
15870 if test -n ${prefix}; then :
15872 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15873 if test -n ${KDE_MIME_PATH}; then :
15875 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15879 else
15881 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15887 $as_echo "${KDE_MIME_PATH}" >&6; }
15891 else
15892 enable_plasmamule=disabled
15897 if test ${enable_debug:-yes} = yes; then :
15899 DEBUGFLAG="-D__DEBUG__"
15907 # Check for readline library
15908 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15911 $as_echo_n "checking for a readline compatible library... " >&6; }
15912 if ${vl_cv_lib_readline+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15916 ORIG_LIBS="$LIBS"
15917 for readline_lib in readline edit editline; do
15918 for termcap_lib in "" termcap curses ncurses; do
15919 if test -z "$termcap_lib"; then
15920 TRY_LIB="-l$readline_lib"
15921 else
15922 TRY_LIB="-l$readline_lib -l$termcap_lib"
15924 LIBS="$ORIG_LIBS $TRY_LIB"
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15928 /* Override any GCC internal prototype to avoid an error.
15929 Use char because int might match the return type of a GCC
15930 builtin and then its argument prototype would still apply. */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 char readline ();
15936 main ()
15938 return readline ();
15940 return 0;
15942 _ACEOF
15943 if ac_fn_cxx_try_link "$LINENO"; then :
15944 vl_cv_lib_readline="$TRY_LIB"
15946 rm -f core conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15948 if test -n "$vl_cv_lib_readline"; then
15949 break
15951 done
15952 if test -n "$vl_cv_lib_readline"; then
15953 break
15955 done
15956 if test -z "$vl_cv_lib_readline"; then
15957 vl_cv_lib_readline="no"
15958 LIBS="$ORIG_LIBS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15963 $as_echo "$vl_cv_lib_readline" >&6; }
15965 if test "$vl_cv_lib_readline" != "no"; then
15966 have_readline_headers=no
15967 for ac_header in readline/readline.h readline.h
15968 do :
15969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15970 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15972 cat >>confdefs.h <<_ACEOF
15973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15974 _ACEOF
15975 have_readline_headers=yes ; break
15978 done
15980 if test "$have_readline_headers" = "yes"; then
15981 READLINE_LIBS="$vl_cv_lib_readline"
15983 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15985 else
15986 READLINE_LIBS=
15987 vl_cv_lib_readline=no
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15990 $as_echo_n "checking whether readline supports history... " >&6; }
15991 if ${vl_cv_lib_readline_history+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15995 vl_cv_lib_readline_history="no"
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 /* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16002 #ifdef __cplusplus
16003 extern "C"
16004 #endif
16005 char add_history ();
16007 main ()
16009 return add_history ();
16011 return 0;
16013 _ACEOF
16014 if ac_fn_cxx_try_link "$LINENO"; then :
16015 vl_cv_lib_readline_history="yes"
16017 rm -f core conftest.err conftest.$ac_objext \
16018 conftest$ac_exeext conftest.$ac_ext
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16022 $as_echo "$vl_cv_lib_readline_history" >&6; }
16023 if test "$vl_cv_lib_readline_history" = "yes"; then
16024 have_readline_history_headers=no
16025 for ac_header in readline/history.h history.h
16026 do :
16027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16030 cat >>confdefs.h <<_ACEOF
16031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16032 _ACEOF
16033 have_readline_history_headers=yes ; break
16036 done
16038 if test "$have_readline_history_headers" = "yes"; then
16040 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16042 else
16043 vl_cv_lib_readline_history=no
16046 else
16047 READLINE_LIBS=""
16054 ac_ext=c
16055 ac_cpp='$CPP $CPPFLAGS'
16056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061 # Check for strerror_r
16062 mule_backup_CPPFLAGS="$CPPFLAGS"
16063 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16064 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16065 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16066 ac_have_decl=1
16067 else
16068 ac_have_decl=0
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_DECL_STRERROR_R $ac_have_decl
16073 _ACEOF
16075 for ac_func in strerror_r
16076 do :
16077 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16078 if test "x$ac_cv_func_strerror_r" = xyes; then :
16079 cat >>confdefs.h <<_ACEOF
16080 #define HAVE_STRERROR_R 1
16081 _ACEOF
16084 done
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16087 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16088 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16089 $as_echo_n "(cached) " >&6
16090 else
16092 ac_cv_func_strerror_r_char_p=no
16093 if test $ac_cv_have_decl_strerror_r = yes; then
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 $ac_includes_default
16098 main ()
16101 char buf[100];
16102 char x = *strerror_r (0, buf, sizeof buf);
16103 char *p = strerror_r (0, buf, sizeof buf);
16104 return !p || x;
16107 return 0;
16109 _ACEOF
16110 if ac_fn_c_try_compile "$LINENO"; then :
16111 ac_cv_func_strerror_r_char_p=yes
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 else
16115 # strerror_r is not declared. Choose between
16116 # systems that have relatively inaccessible declarations for the
16117 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16118 # former has a strerror_r that returns char*, while the latter
16119 # has a strerror_r that returns `int'.
16120 # This test should segfault on the DEC system.
16121 if test "$cross_compiling" = yes; then :
16123 else
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 $ac_includes_default
16127 extern char *strerror_r ();
16129 main ()
16131 char buf[100];
16132 char x = *strerror_r (0, buf, sizeof buf);
16133 return ! isalpha (x);
16135 return 0;
16137 _ACEOF
16138 if ac_fn_c_try_run "$LINENO"; then :
16139 ac_cv_func_strerror_r_char_p=yes
16141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16142 conftest.$ac_objext conftest.beam conftest.$ac_ext
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16149 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16150 if test $ac_cv_func_strerror_r_char_p = yes; then
16152 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16156 CPPFLAGS="$mule_backup_CPPFLAGS"
16159 # Other tests
16161 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16163 $as_echo_n "checking for docdir... " >&6; }
16164 if test -z "$docdir"; then :
16165 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16168 $as_echo "$docdir" >&6; }
16171 # Try to set the SVN checkout-date
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16173 $as_echo_n "checking for SVNDATE... " >&6; }
16174 modified=
16175 if test -f "$srcdir/.svn-revision"; then
16176 svndate="rev. `cat $srcdir/.svn-revision`"
16177 elif test -d "$srcdir"/.svn; then
16178 svndate="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16179 elif test -d "$srcdir"/.git; then
16181 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16182 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16183 modified="+"
16185 if test -f $srcdir/.git/svn/.metadata ; then
16186 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16187 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16188 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16189 if test -n "\${svn_revision}" ; then
16190 if test \${sha} = ${git_sha} ; then
16191 echo "rev. \${svn_revision}${modified}"
16192 else
16193 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16195 break
16197 done`
16198 else
16199 svndate="rev. g${git_revision}${modified}"
16202 elif test -d "$srcdir"/.hg; then
16204 hg_revision=`hg --cwd "$srcdir" identify --id`
16205 hg_revid=${hg_revision%+}
16206 if test ${hg_revision} != ${hg_revid} ; then
16207 modified="+"
16209 if test -f "$srcdir"/.hg/svn/uuid ; then
16210 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16211 if test \${svn_revision} != r ; then
16212 if test \${hg_sha} = ${hg_revid} ; then
16213 echo "rev. \${svn_revision#r}${modified}"
16214 else
16215 echo "rev. \${svn_revision#r}+h${hg_revision}"
16217 break
16219 done`
16220 else
16221 svndate="rev. h${hg_revision}"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16228 $as_echo "${svndate:-None required}" >&6; }
16229 if test -n "$svndate"; then :
16232 cat >>confdefs.h <<_ACEOF
16233 #define SVNDATE "$svndate"
16234 _ACEOF
16236 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16239 SVNDATE=$svndate
16244 # Check whether --with-denoise-level was given.
16245 if test "${with_denoise_level+set}" = set; then :
16246 withval=$with_denoise_level;
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16251 $as_echo_n "checking denoising level... " >&6; }
16252 if test ${with_denoise_level:-5} = yes; then :
16253 with_denoise_level=5
16255 if test ${with_denoise_level:-5} = no; then :
16256 with_denoise_level=0
16258 if test ${with_denoise_level:-5} -gt 4; then :
16259 if test "${svndate:+set}" = "set"; then :
16260 with_denoise_level=1
16261 else
16262 with_denoise_level=4
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16266 $as_echo "$with_denoise_level" >&6; }
16268 ac_config_commands="$ac_config_commands denoiser"
16273 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16275 # Check whether --enable-ccache was given.
16276 if test "${enable_ccache+set}" = set; then :
16277 enableval=$enable_ccache;
16283 # Check whether --with-ccache-prefix was given.
16284 if test "${with_ccache_prefix+set}" = set; then :
16285 withval=$with_ccache_prefix;
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16290 $as_echo_n "checking whether ccache support should be added... " >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16292 $as_echo "${enable_ccache:-no}" >&6; }
16294 if test ${enable_ccache:-no} = yes; then :
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16297 $as_echo_n "checking for ccache presence... " >&6; }
16298 if test -z "$with_ccache_prefix"; then :
16300 ccache_full=`which ccache`
16301 with_ccache_prefix=`dirname ${ccache_full}`
16304 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16306 CC="$with_ccache_prefix/ccache $CC"
16307 CXX="$with_ccache_prefix/ccache $CXX"
16308 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16310 else
16311 enable_ccache=no
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16314 $as_echo "${enable_ccache:-no}" >&6; }
16321 if test x$SYS = xwin32; then
16322 SYS_WIN32_TRUE=
16323 SYS_WIN32_FALSE='#'
16324 else
16325 SYS_WIN32_TRUE='#'
16326 SYS_WIN32_FALSE=
16329 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16330 NEED_RC_TRUE=
16331 NEED_RC_FALSE='#'
16332 else
16333 NEED_RC_TRUE='#'
16334 NEED_RC_FALSE=
16337 if test x$SYS = xdarwin; then
16338 NEED_CORESERVICES_TRUE=
16339 NEED_CORESERVICES_FALSE='#'
16340 else
16341 NEED_CORESERVICES_TRUE='#'
16342 NEED_CORESERVICES_FALSE=
16345 if test x$USE_NLS = xyes; then
16346 COMPILE_NLS_TRUE=
16347 COMPILE_NLS_FALSE='#'
16348 else
16349 COMPILE_NLS_TRUE='#'
16350 COMPILE_NLS_FALSE=
16353 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16354 INSTALL_SKINS_TRUE=
16355 INSTALL_SKINS_FALSE='#'
16356 else
16357 INSTALL_SKINS_TRUE='#'
16358 INSTALL_SKINS_FALSE=
16361 if test ${enable_plasmamule:-no} = yes; then
16362 PLASMAMULE_TRUE=
16363 PLASMAMULE_FALSE='#'
16364 else
16365 PLASMAMULE_TRUE='#'
16366 PLASMAMULE_FALSE=
16370 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
16371 COMPILE_LIB_COMMON_TRUE=
16372 COMPILE_LIB_COMMON_FALSE='#'
16373 else
16374 COMPILE_LIB_COMMON_TRUE='#'
16375 COMPILE_LIB_COMMON_FALSE=
16378 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
16379 COMPILE_LIB_EC_TRUE=
16380 COMPILE_LIB_EC_FALSE='#'
16381 else
16382 COMPILE_LIB_EC_TRUE='#'
16383 COMPILE_LIB_EC_FALSE=
16387 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
16390 if test x$SYS = xwin32; then :
16391 ac_config_files="$ac_config_files version.rc"
16394 cat >confcache <<\_ACEOF
16395 # This file is a shell script that caches the results of configure
16396 # tests run on this system so they can be shared between configure
16397 # scripts and configure runs, see configure's option --config-cache.
16398 # It is not useful on other systems. If it contains results you don't
16399 # want to keep, you may remove or edit it.
16401 # config.status only pays attention to the cache file if you give it
16402 # the --recheck option to rerun configure.
16404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16406 # following values.
16408 _ACEOF
16410 # The following way of writing the cache mishandles newlines in values,
16411 # but we know of no workaround that is simple, portable, and efficient.
16412 # So, we kill variables containing newlines.
16413 # Ultrix sh set writes to stderr and can't be redirected directly,
16414 # and sets the high bit in the cache file unless we assign to the vars.
16416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16417 eval ac_val=\$$ac_var
16418 case $ac_val in #(
16419 *${as_nl}*)
16420 case $ac_var in #(
16421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16423 esac
16424 case $ac_var in #(
16425 _ | IFS | as_nl) ;; #(
16426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16427 *) { eval $ac_var=; unset $ac_var;} ;;
16428 esac ;;
16429 esac
16430 done
16432 (set) 2>&1 |
16433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16434 *${as_nl}ac_space=\ *)
16435 # `set' does not quote correctly, so add quotes: double-quote
16436 # substitution turns \\\\ into \\, and sed turns \\ into \.
16437 sed -n \
16438 "s/'/'\\\\''/g;
16439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16440 ;; #(
16442 # `set' quotes correctly as required by POSIX, so do not add quotes.
16443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16445 esac |
16446 sort
16448 sed '
16449 /^ac_cv_env_/b end
16450 t clear
16451 :clear
16452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16453 t end
16454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16455 :end' >>confcache
16456 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16457 if test -w "$cache_file"; then
16458 if test "x$cache_file" != "x/dev/null"; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16460 $as_echo "$as_me: updating cache $cache_file" >&6;}
16461 if test ! -f "$cache_file" || test -h "$cache_file"; then
16462 cat confcache >"$cache_file"
16463 else
16464 case $cache_file in #(
16465 */* | ?:*)
16466 mv -f confcache "$cache_file"$$ &&
16467 mv -f "$cache_file"$$ "$cache_file" ;; #(
16469 mv -f confcache "$cache_file" ;;
16470 esac
16473 else
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16475 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16478 rm -f confcache
16480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16481 # Let make expand exec_prefix.
16482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16484 DEFS=-DHAVE_CONFIG_H
16486 ac_libobjs=
16487 ac_ltlibobjs=
16489 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16490 # 1. Remove the extension, and $U if already installed.
16491 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16492 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16494 # will be set to the directory where LIBOBJS objects are built.
16495 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16496 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16497 done
16498 LIBOBJS=$ac_libobjs
16500 LTLIBOBJS=$ac_ltlibobjs
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16504 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16505 if test -n "$am_sleep_pid"; then
16506 # Hide warnings about reused PIDs.
16507 wait $am_sleep_pid 2>/dev/null
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16510 $as_echo "done" >&6; }
16511 if test -n "$EXEEXT"; then
16512 am__EXEEXT_TRUE=
16513 am__EXEEXT_FALSE='#'
16514 else
16515 am__EXEEXT_TRUE='#'
16516 am__EXEEXT_FALSE=
16519 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16520 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16524 as_fn_error $? "conditional \"AMDEP\" was never defined.
16525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16528 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16536 as_fn_error $? "conditional \"MONOLITHIC\" was never defined.
16537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16540 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined.
16541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16544 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined.
16545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16548 as_fn_error $? "conditional \"WEB\" was never defined.
16549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16552 as_fn_error $? "conditional \"AMULE_GUI\" was never defined.
16553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16556 as_fn_error $? "conditional \"CAS\" was never defined.
16557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16560 as_fn_error $? "conditional \"WXCAS\" was never defined.
16561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16564 as_fn_error $? "conditional \"ED2K\" was never defined.
16565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16568 as_fn_error $? "conditional \"ALC\" was never defined.
16569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16572 as_fn_error $? "conditional \"ALCC\" was never defined.
16573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16576 as_fn_error $? "conditional \"XAS\" was never defined.
16577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16580 as_fn_error $? "conditional \"FILEVIEW\" was never defined.
16581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16584 as_fn_error $? "conditional \"SYS_WIN32\" was never defined.
16585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16588 as_fn_error $? "conditional \"NEED_RC\" was never defined.
16589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16592 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined.
16593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16596 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined.
16597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16600 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined.
16601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16604 as_fn_error $? "conditional \"PLASMAMULE\" was never defined.
16605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16608 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined.
16609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16612 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 : "${CONFIG_STATUS=./config.status}"
16617 ac_write_fail=0
16618 ac_clean_files_save=$ac_clean_files
16619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16622 as_write_fail=0
16623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16624 #! $SHELL
16625 # Generated by $as_me.
16626 # Run this file to recreate the current configuration.
16627 # Compiler output produced by configure, useful for debugging
16628 # configure, is in config.log if it exists.
16630 debug=false
16631 ac_cs_recheck=false
16632 ac_cs_silent=false
16634 SHELL=\${CONFIG_SHELL-$SHELL}
16635 export SHELL
16636 _ASEOF
16637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16638 ## -------------------- ##
16639 ## M4sh Initialization. ##
16640 ## -------------------- ##
16642 # Be more Bourne compatible
16643 DUALCASE=1; export DUALCASE # for MKS sh
16644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16645 emulate sh
16646 NULLCMD=:
16647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16648 # is contrary to our usage. Disable this feature.
16649 alias -g '${1+"$@"}'='"$@"'
16650 setopt NO_GLOB_SUBST
16651 else
16652 case `(set -o) 2>/dev/null` in #(
16653 *posix*) :
16654 set -o posix ;; #(
16655 *) :
16657 esac
16661 as_nl='
16663 export as_nl
16664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16668 # Prefer a ksh shell builtin over an external printf program on Solaris,
16669 # but without wasting forks for bash or zsh.
16670 if test -z "$BASH_VERSION$ZSH_VERSION" \
16671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16672 as_echo='print -r --'
16673 as_echo_n='print -rn --'
16674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16675 as_echo='printf %s\n'
16676 as_echo_n='printf %s'
16677 else
16678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16680 as_echo_n='/usr/ucb/echo -n'
16681 else
16682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16683 as_echo_n_body='eval
16684 arg=$1;
16685 case $arg in #(
16686 *"$as_nl"*)
16687 expr "X$arg" : "X\\(.*\\)$as_nl";
16688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16689 esac;
16690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16692 export as_echo_n_body
16693 as_echo_n='sh -c $as_echo_n_body as_echo'
16695 export as_echo_body
16696 as_echo='sh -c $as_echo_body as_echo'
16699 # The user is always right.
16700 if test "${PATH_SEPARATOR+set}" != set; then
16701 PATH_SEPARATOR=:
16702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16704 PATH_SEPARATOR=';'
16709 # IFS
16710 # We need space, tab and new line, in precisely that order. Quoting is
16711 # there to prevent editors from complaining about space-tab.
16712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16713 # splitting by setting IFS to empty value.)
16714 IFS=" "" $as_nl"
16716 # Find who we are. Look in the path if we contain no directory separator.
16717 as_myself=
16718 case $0 in #((
16719 *[\\/]* ) as_myself=$0 ;;
16720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16723 IFS=$as_save_IFS
16724 test -z "$as_dir" && as_dir=.
16725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16726 done
16727 IFS=$as_save_IFS
16730 esac
16731 # We did not find ourselves, most probably we were run as `sh COMMAND'
16732 # in which case we are not to be found in the path.
16733 if test "x$as_myself" = x; then
16734 as_myself=$0
16736 if test ! -f "$as_myself"; then
16737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16738 exit 1
16741 # Unset variables that we do not need and which cause bugs (e.g. in
16742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16743 # suppresses any "Segmentation fault" message there. '((' could
16744 # trigger a bug in pdksh 5.2.14.
16745 for as_var in BASH_ENV ENV MAIL MAILPATH
16746 do eval test x\${$as_var+set} = xset \
16747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16748 done
16749 PS1='$ '
16750 PS2='> '
16751 PS4='+ '
16753 # NLS nuisances.
16754 LC_ALL=C
16755 export LC_ALL
16756 LANGUAGE=C
16757 export LANGUAGE
16759 # CDPATH.
16760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16764 # ----------------------------------------
16765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16767 # script with STATUS, using 1 if that was 0.
16768 as_fn_error ()
16770 as_status=$1; test $as_status -eq 0 && as_status=1
16771 if test "$4"; then
16772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16775 $as_echo "$as_me: error: $2" >&2
16776 as_fn_exit $as_status
16777 } # as_fn_error
16780 # as_fn_set_status STATUS
16781 # -----------------------
16782 # Set $? to STATUS, without forking.
16783 as_fn_set_status ()
16785 return $1
16786 } # as_fn_set_status
16788 # as_fn_exit STATUS
16789 # -----------------
16790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16791 as_fn_exit ()
16793 set +e
16794 as_fn_set_status $1
16795 exit $1
16796 } # as_fn_exit
16798 # as_fn_unset VAR
16799 # ---------------
16800 # Portably unset VAR.
16801 as_fn_unset ()
16803 { eval $1=; unset $1;}
16805 as_unset=as_fn_unset
16806 # as_fn_append VAR VALUE
16807 # ----------------------
16808 # Append the text in VALUE to the end of the definition contained in VAR. Take
16809 # advantage of any shell optimizations that allow amortized linear growth over
16810 # repeated appends, instead of the typical quadratic growth present in naive
16811 # implementations.
16812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16813 eval 'as_fn_append ()
16815 eval $1+=\$2
16817 else
16818 as_fn_append ()
16820 eval $1=\$$1\$2
16822 fi # as_fn_append
16824 # as_fn_arith ARG...
16825 # ------------------
16826 # Perform arithmetic evaluation on the ARGs, and store the result in the
16827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16828 # must be portable across $(()) and expr.
16829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16830 eval 'as_fn_arith ()
16832 as_val=$(( $* ))
16834 else
16835 as_fn_arith ()
16837 as_val=`expr "$@" || test $? -eq 1`
16839 fi # as_fn_arith
16842 if expr a : '\(a\)' >/dev/null 2>&1 &&
16843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16844 as_expr=expr
16845 else
16846 as_expr=false
16849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16850 as_basename=basename
16851 else
16852 as_basename=false
16855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16856 as_dirname=dirname
16857 else
16858 as_dirname=false
16861 as_me=`$as_basename -- "$0" ||
16862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16863 X"$0" : 'X\(//\)$' \| \
16864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16865 $as_echo X/"$0" |
16866 sed '/^.*\/\([^/][^/]*\)\/*$/{
16867 s//\1/
16870 /^X\/\(\/\/\)$/{
16871 s//\1/
16874 /^X\/\(\/\).*/{
16875 s//\1/
16878 s/.*/./; q'`
16880 # Avoid depending upon Character Ranges.
16881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16884 as_cr_digits='0123456789'
16885 as_cr_alnum=$as_cr_Letters$as_cr_digits
16887 ECHO_C= ECHO_N= ECHO_T=
16888 case `echo -n x` in #(((((
16889 -n*)
16890 case `echo 'xy\c'` in
16891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16892 xy) ECHO_C='\c';;
16893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16894 ECHO_T=' ';;
16895 esac;;
16897 ECHO_N='-n';;
16898 esac
16900 rm -f conf$$ conf$$.exe conf$$.file
16901 if test -d conf$$.dir; then
16902 rm -f conf$$.dir/conf$$.file
16903 else
16904 rm -f conf$$.dir
16905 mkdir conf$$.dir 2>/dev/null
16907 if (echo >conf$$.file) 2>/dev/null; then
16908 if ln -s conf$$.file conf$$ 2>/dev/null; then
16909 as_ln_s='ln -s'
16910 # ... but there are two gotchas:
16911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16913 # In both cases, we have to default to `cp -pR'.
16914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16915 as_ln_s='cp -pR'
16916 elif ln conf$$.file conf$$ 2>/dev/null; then
16917 as_ln_s=ln
16918 else
16919 as_ln_s='cp -pR'
16921 else
16922 as_ln_s='cp -pR'
16924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16925 rmdir conf$$.dir 2>/dev/null
16928 # as_fn_mkdir_p
16929 # -------------
16930 # Create "$as_dir" as a directory, including parents if necessary.
16931 as_fn_mkdir_p ()
16934 case $as_dir in #(
16935 -*) as_dir=./$as_dir;;
16936 esac
16937 test -d "$as_dir" || eval $as_mkdir_p || {
16938 as_dirs=
16939 while :; do
16940 case $as_dir in #(
16941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16942 *) as_qdir=$as_dir;;
16943 esac
16944 as_dirs="'$as_qdir' $as_dirs"
16945 as_dir=`$as_dirname -- "$as_dir" ||
16946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16947 X"$as_dir" : 'X\(//\)[^/]' \| \
16948 X"$as_dir" : 'X\(//\)$' \| \
16949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16950 $as_echo X"$as_dir" |
16951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16952 s//\1/
16955 /^X\(\/\/\)[^/].*/{
16956 s//\1/
16959 /^X\(\/\/\)$/{
16960 s//\1/
16963 /^X\(\/\).*/{
16964 s//\1/
16967 s/.*/./; q'`
16968 test -d "$as_dir" && break
16969 done
16970 test -z "$as_dirs" || eval "mkdir $as_dirs"
16971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16974 } # as_fn_mkdir_p
16975 if mkdir -p . 2>/dev/null; then
16976 as_mkdir_p='mkdir -p "$as_dir"'
16977 else
16978 test -d ./-p && rmdir ./-p
16979 as_mkdir_p=false
16983 # as_fn_executable_p FILE
16984 # -----------------------
16985 # Test if FILE is an executable regular file.
16986 as_fn_executable_p ()
16988 test -f "$1" && test -x "$1"
16989 } # as_fn_executable_p
16990 as_test_x='test -x'
16991 as_executable_p=as_fn_executable_p
16993 # Sed expression to map a string onto a valid CPP name.
16994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16996 # Sed expression to map a string onto a valid variable name.
16997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17000 exec 6>&1
17001 ## ----------------------------------- ##
17002 ## Main body of $CONFIG_STATUS script. ##
17003 ## ----------------------------------- ##
17004 _ASEOF
17005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 # Save the log message, to keep $0 and so on meaningful, and to
17009 # report actual input values of CONFIG_FILES etc. instead of their
17010 # values after options handling.
17011 ac_log="
17012 This file was extended by aMule $as_me SVN, which was
17013 generated by GNU Autoconf 2.69. Invocation command line was
17015 CONFIG_FILES = $CONFIG_FILES
17016 CONFIG_HEADERS = $CONFIG_HEADERS
17017 CONFIG_LINKS = $CONFIG_LINKS
17018 CONFIG_COMMANDS = $CONFIG_COMMANDS
17019 $ $0 $@
17021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17024 _ACEOF
17026 case $ac_config_files in *"
17027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17028 esac
17030 case $ac_config_headers in *"
17031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17032 esac
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 # Files that config.status was made for.
17037 config_files="$ac_config_files"
17038 config_headers="$ac_config_headers"
17039 config_commands="$ac_config_commands"
17041 _ACEOF
17043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17044 ac_cs_usage="\
17045 \`$as_me' instantiates files and other configuration actions
17046 from templates according to the current configuration. Unless the files
17047 and actions are specified as TAGs, all are instantiated by default.
17049 Usage: $0 [OPTION]... [TAG]...
17051 -h, --help print this help, then exit
17052 -V, --version print version number and configuration settings, then exit
17053 --config print configuration, then exit
17054 -q, --quiet, --silent
17055 do not print progress messages
17056 -d, --debug don't remove temporary files
17057 --recheck update $as_me by reconfiguring in the same conditions
17058 --file=FILE[:TEMPLATE]
17059 instantiate the configuration file FILE
17060 --header=FILE[:TEMPLATE]
17061 instantiate the configuration header FILE
17063 Configuration files:
17064 $config_files
17066 Configuration headers:
17067 $config_headers
17069 Configuration commands:
17070 $config_commands
17072 Report bugs to <admin@amule.org>."
17074 _ACEOF
17075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17077 ac_cs_version="\\
17078 aMule config.status SVN
17079 configured by $0, generated by GNU Autoconf 2.69,
17080 with options \\"\$ac_cs_config\\"
17082 Copyright (C) 2012 Free Software Foundation, Inc.
17083 This config.status script is free software; the Free Software Foundation
17084 gives unlimited permission to copy, distribute and modify it."
17086 ac_pwd='$ac_pwd'
17087 srcdir='$srcdir'
17088 INSTALL='$INSTALL'
17089 MKDIR_P='$MKDIR_P'
17090 AWK='$AWK'
17091 test -n "\$AWK" || AWK=awk
17092 _ACEOF
17094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17095 # The default lists apply if the user does not specify any file.
17096 ac_need_defaults=:
17097 while test $# != 0
17099 case $1 in
17100 --*=?*)
17101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17103 ac_shift=:
17105 --*=)
17106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17107 ac_optarg=
17108 ac_shift=:
17111 ac_option=$1
17112 ac_optarg=$2
17113 ac_shift=shift
17115 esac
17117 case $ac_option in
17118 # Handling of the options.
17119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17120 ac_cs_recheck=: ;;
17121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17122 $as_echo "$ac_cs_version"; exit ;;
17123 --config | --confi | --conf | --con | --co | --c )
17124 $as_echo "$ac_cs_config"; exit ;;
17125 --debug | --debu | --deb | --de | --d | -d )
17126 debug=: ;;
17127 --file | --fil | --fi | --f )
17128 $ac_shift
17129 case $ac_optarg in
17130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17131 '') as_fn_error $? "missing file argument" ;;
17132 esac
17133 as_fn_append CONFIG_FILES " '$ac_optarg'"
17134 ac_need_defaults=false;;
17135 --header | --heade | --head | --hea )
17136 $ac_shift
17137 case $ac_optarg in
17138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17139 esac
17140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17141 ac_need_defaults=false;;
17142 --he | --h)
17143 # Conflict between --help and --header
17144 as_fn_error $? "ambiguous option: \`$1'
17145 Try \`$0 --help' for more information.";;
17146 --help | --hel | -h )
17147 $as_echo "$ac_cs_usage"; exit ;;
17148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17150 ac_cs_silent=: ;;
17152 # This is an error.
17153 -*) as_fn_error $? "unrecognized option: \`$1'
17154 Try \`$0 --help' for more information." ;;
17156 *) as_fn_append ac_config_targets " $1"
17157 ac_need_defaults=false ;;
17159 esac
17160 shift
17161 done
17163 ac_configure_extra_args=
17165 if $ac_cs_silent; then
17166 exec 6>/dev/null
17167 ac_configure_extra_args="$ac_configure_extra_args --silent"
17170 _ACEOF
17171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172 if \$ac_cs_recheck; then
17173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17174 shift
17175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17176 CONFIG_SHELL='$SHELL'
17177 export CONFIG_SHELL
17178 exec "\$@"
17181 _ACEOF
17182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17183 exec 5>>config.log
17185 echo
17186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17187 ## Running $as_me. ##
17188 _ASBOX
17189 $as_echo "$ac_log"
17190 } >&5
17192 _ACEOF
17193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17195 # INIT-COMMANDS
17197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17198 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17199 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17200 # from automake.
17201 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17202 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17203 LINGUAS="${LINGUAS-%UNSET%}"
17205 denoiserlevel=$with_denoise_level
17207 _ACEOF
17209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17211 # Handling of arguments.
17212 for ac_config_target in $ac_config_targets
17214 case $ac_config_target in
17215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17218 "intl") CONFIG_COMMANDS="$CONFIG_COMMANDS intl" ;;
17219 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17220 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17221 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17222 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17223 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17224 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17225 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17226 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17227 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17228 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17229 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17230 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17231 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17232 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17233 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17234 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17235 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17236 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17237 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17238 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17239 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17240 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17241 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17242 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17243 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17244 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17245 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17246 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17247 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17248 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17249 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17250 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17251 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17252 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17253 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17256 esac
17257 done
17260 # If the user did not use the arguments to specify the items to instantiate,
17261 # then the envvar interface is used. Set only those that are not.
17262 # We use the long form for the default assignment because of an extremely
17263 # bizarre bug on SunOS 4.1.3.
17264 if $ac_need_defaults; then
17265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17270 # Have a temporary directory for convenience. Make it in the build tree
17271 # simply because there is no reason against having it here, and in addition,
17272 # creating and moving files from /tmp can sometimes cause problems.
17273 # Hook for its removal unless debugging.
17274 # Note that there is a small window in which the directory will not be cleaned:
17275 # after its creation but before its name has been assigned to `$tmp'.
17276 $debug ||
17278 tmp= ac_tmp=
17279 trap 'exit_status=$?
17280 : "${ac_tmp:=$tmp}"
17281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17283 trap 'as_fn_exit 1' 1 2 13 15
17285 # Create a (secure) tmp directory for tmp files.
17288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17289 test -d "$tmp"
17290 } ||
17292 tmp=./conf$$-$RANDOM
17293 (umask 077 && mkdir "$tmp")
17294 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17295 ac_tmp=$tmp
17297 # Set up the scripts for CONFIG_FILES section.
17298 # No need to generate them if there are no CONFIG_FILES.
17299 # This happens for instance with `./config.status config.h'.
17300 if test -n "$CONFIG_FILES"; then
17303 ac_cr=`echo X | tr X '\015'`
17304 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17305 # But we know of no other shell where ac_cr would be empty at this
17306 # point, so we can use a bashism as a fallback.
17307 if test "x$ac_cr" = x; then
17308 eval ac_cr=\$\'\\r\'
17310 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17311 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17312 ac_cs_awk_cr='\\r'
17313 else
17314 ac_cs_awk_cr=$ac_cr
17317 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17318 _ACEOF
17322 echo "cat >conf$$subs.awk <<_ACEOF" &&
17323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17324 echo "_ACEOF"
17325 } >conf$$subs.sh ||
17326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17328 ac_delim='%!_!# '
17329 for ac_last_try in false false false false false :; do
17330 . ./conf$$subs.sh ||
17331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17334 if test $ac_delim_n = $ac_delim_num; then
17335 break
17336 elif $ac_last_try; then
17337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17338 else
17339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17341 done
17342 rm -f conf$$subs.sh
17344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17345 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17346 _ACEOF
17347 sed -n '
17349 s/^/S["/; s/!.*/"]=/
17352 s/^[^!]*!//
17353 :repl
17354 t repl
17355 s/'"$ac_delim"'$//
17356 t delim
17359 s/\(.\{148\}\)..*/\1/
17360 t more1
17361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17364 b repl
17365 :more1
17366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17369 s/.\{148\}//
17370 t nl
17371 :delim
17373 s/\(.\{148\}\)..*/\1/
17374 t more2
17375 s/["\\]/\\&/g; s/^/"/; s/$/"/
17378 :more2
17379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17382 s/.\{148\}//
17383 t delim
17384 ' <conf$$subs.awk | sed '
17385 /^[^""]/{
17387 s/\n//
17389 ' >>$CONFIG_STATUS || ac_write_fail=1
17390 rm -f conf$$subs.awk
17391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17392 _ACAWK
17393 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17394 for (key in S) S_is_set[key] = 1
17395 FS = "\a"
17399 line = $ 0
17400 nfields = split(line, field, "@")
17401 substed = 0
17402 len = length(field[1])
17403 for (i = 2; i < nfields; i++) {
17404 key = field[i]
17405 keylen = length(key)
17406 if (S_is_set[key]) {
17407 value = S[key]
17408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17409 len += length(value) + length(field[++i])
17410 substed = 1
17411 } else
17412 len += 1 + keylen
17415 print line
17418 _ACAWK
17419 _ACEOF
17420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17421 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17423 else
17425 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17427 _ACEOF
17429 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17430 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17431 # trailing colons and then remove the whole line if VPATH becomes empty
17432 # (actually we leave an empty line to preserve line numbers).
17433 if test "x$srcdir" = x.; then
17434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17436 s///
17437 s/^/:/
17438 s/[ ]*$/:/
17439 s/:\$(srcdir):/:/g
17440 s/:\${srcdir}:/:/g
17441 s/:@srcdir@:/:/g
17442 s/^:*//
17443 s/:*$//
17445 s/\(=[ ]*\).*/\1/
17447 s/\n//
17448 s/^[^=]*=[ ]*$//
17452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17453 fi # test -n "$CONFIG_FILES"
17455 # Set up the scripts for CONFIG_HEADERS section.
17456 # No need to generate them if there are no CONFIG_HEADERS.
17457 # This happens for instance with `./config.status Makefile'.
17458 if test -n "$CONFIG_HEADERS"; then
17459 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17460 BEGIN {
17461 _ACEOF
17463 # Transform confdefs.h into an awk script `defines.awk', embedded as
17464 # here-document in config.status, that substitutes the proper values into
17465 # config.h.in to produce config.h.
17467 # Create a delimiter string that does not exist in confdefs.h, to ease
17468 # handling of long lines.
17469 ac_delim='%!_!# '
17470 for ac_last_try in false false :; do
17471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17472 if test -z "$ac_tt"; then
17473 break
17474 elif $ac_last_try; then
17475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17476 else
17477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17479 done
17481 # For the awk script, D is an array of macro values keyed by name,
17482 # likewise P contains macro parameters if any. Preserve backslash
17483 # newline sequences.
17485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17486 sed -n '
17487 s/.\{148\}/&'"$ac_delim"'/g
17488 t rset
17489 :rset
17490 s/^[ ]*#[ ]*define[ ][ ]*/ /
17491 t def
17493 :def
17494 s/\\$//
17495 t bsnl
17496 s/["\\]/\\&/g
17497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17498 D["\1"]=" \3"/p
17499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17501 :bsnl
17502 s/["\\]/\\&/g
17503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17504 D["\1"]=" \3\\\\\\n"\\/p
17505 t cont
17506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17507 t cont
17509 :cont
17511 s/.\{148\}/&'"$ac_delim"'/g
17512 t clear
17513 :clear
17514 s/\\$//
17515 t bsnlc
17516 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17518 :bsnlc
17519 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17520 b cont
17521 ' <confdefs.h | sed '
17522 s/'"$ac_delim"'/"\\\
17523 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17526 for (key in D) D_is_set[key] = 1
17527 FS = "\a"
17529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17530 line = \$ 0
17531 split(line, arg, " ")
17532 if (arg[1] == "#") {
17533 defundef = arg[2]
17534 mac1 = arg[3]
17535 } else {
17536 defundef = substr(arg[1], 2)
17537 mac1 = arg[2]
17539 split(mac1, mac2, "(") #)
17540 macro = mac2[1]
17541 prefix = substr(line, 1, index(line, defundef) - 1)
17542 if (D_is_set[macro]) {
17543 # Preserve the white space surrounding the "#".
17544 print prefix "define", macro P[macro] D[macro]
17545 next
17546 } else {
17547 # Replace #undef with comments. This is necessary, for example,
17548 # in the case of _POSIX_SOURCE, which is predefined and required
17549 # on some systems where configure will not decide to define it.
17550 if (defundef == "undef") {
17551 print "/*", prefix defundef, macro, "*/"
17552 next
17556 { print }
17557 _ACAWK
17558 _ACEOF
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17561 fi # test -n "$CONFIG_HEADERS"
17564 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17565 shift
17566 for ac_tag
17568 case $ac_tag in
17569 :[FHLC]) ac_mode=$ac_tag; continue;;
17570 esac
17571 case $ac_mode$ac_tag in
17572 :[FHL]*:*);;
17573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17574 :[FH]-) ac_tag=-:-;;
17575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17576 esac
17577 ac_save_IFS=$IFS
17578 IFS=:
17579 set x $ac_tag
17580 IFS=$ac_save_IFS
17581 shift
17582 ac_file=$1
17583 shift
17585 case $ac_mode in
17586 :L) ac_source=$1;;
17587 :[FH])
17588 ac_file_inputs=
17589 for ac_f
17591 case $ac_f in
17592 -) ac_f="$ac_tmp/stdin";;
17593 *) # Look for the file first in the build tree, then in the source tree
17594 # (if the path is not absolute). The absolute path cannot be DOS-style,
17595 # because $ac_f cannot contain `:'.
17596 test -f "$ac_f" ||
17597 case $ac_f in
17598 [\\/$]*) false;;
17599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17600 esac ||
17601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17602 esac
17603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17604 as_fn_append ac_file_inputs " '$ac_f'"
17605 done
17607 # Let's still pretend it is `configure' which instantiates (i.e., don't
17608 # use $as_me), people would be surprised to read:
17609 # /* config.h. Generated by config.status. */
17610 configure_input='Generated from '`
17611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17612 `' by configure.'
17613 if test x"$ac_file" != x-; then
17614 configure_input="$ac_file. $configure_input"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17616 $as_echo "$as_me: creating $ac_file" >&6;}
17618 # Neutralize special characters interpreted by sed in replacement strings.
17619 case $configure_input in #(
17620 *\&* | *\|* | *\\* )
17621 ac_sed_conf_input=`$as_echo "$configure_input" |
17622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17623 *) ac_sed_conf_input=$configure_input;;
17624 esac
17626 case $ac_tag in
17627 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17629 esac
17631 esac
17633 ac_dir=`$as_dirname -- "$ac_file" ||
17634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$ac_file" : 'X\(//\)[^/]' \| \
17636 X"$ac_file" : 'X\(//\)$' \| \
17637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17638 $as_echo X"$ac_file" |
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17640 s//\1/
17643 /^X\(\/\/\)[^/].*/{
17644 s//\1/
17647 /^X\(\/\/\)$/{
17648 s//\1/
17651 /^X\(\/\).*/{
17652 s//\1/
17655 s/.*/./; q'`
17656 as_dir="$ac_dir"; as_fn_mkdir_p
17657 ac_builddir=.
17659 case "$ac_dir" in
17660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17663 # A ".." for each directory in $ac_dir_suffix.
17664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17665 case $ac_top_builddir_sub in
17666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17668 esac ;;
17669 esac
17670 ac_abs_top_builddir=$ac_pwd
17671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17672 # for backward compatibility:
17673 ac_top_builddir=$ac_top_build_prefix
17675 case $srcdir in
17676 .) # We are building in place.
17677 ac_srcdir=.
17678 ac_top_srcdir=$ac_top_builddir_sub
17679 ac_abs_top_srcdir=$ac_pwd ;;
17680 [\\/]* | ?:[\\/]* ) # Absolute name.
17681 ac_srcdir=$srcdir$ac_dir_suffix;
17682 ac_top_srcdir=$srcdir
17683 ac_abs_top_srcdir=$srcdir ;;
17684 *) # Relative name.
17685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17686 ac_top_srcdir=$ac_top_build_prefix$srcdir
17687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17688 esac
17689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17692 case $ac_mode in
17695 # CONFIG_FILE
17698 case $INSTALL in
17699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17701 esac
17702 ac_MKDIR_P=$MKDIR_P
17703 case $MKDIR_P in
17704 [\\/$]* | ?:[\\/]* ) ;;
17705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17706 esac
17707 _ACEOF
17709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17710 # If the template does not know about datarootdir, expand it.
17711 # FIXME: This hack should be removed a few years after 2.60.
17712 ac_datarootdir_hack=; ac_datarootdir_seen=
17713 ac_sed_dataroot='
17714 /datarootdir/ {
17718 /@datadir@/p
17719 /@docdir@/p
17720 /@infodir@/p
17721 /@localedir@/p
17722 /@mandir@/p'
17723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17724 *datarootdir*) ac_datarootdir_seen=yes;;
17725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17728 _ACEOF
17729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730 ac_datarootdir_hack='
17731 s&@datadir@&$datadir&g
17732 s&@docdir@&$docdir&g
17733 s&@infodir@&$infodir&g
17734 s&@localedir@&$localedir&g
17735 s&@mandir@&$mandir&g
17736 s&\\\${datarootdir}&$datarootdir&g' ;;
17737 esac
17738 _ACEOF
17740 # Neutralize VPATH when `$srcdir' = `.'.
17741 # Shell code in configure.ac might set extrasub.
17742 # FIXME: do we really want to maintain this feature?
17743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17744 ac_sed_extra="$ac_vpsub
17745 $extrasub
17746 _ACEOF
17747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17750 s|@configure_input@|$ac_sed_conf_input|;t t
17751 s&@top_builddir@&$ac_top_builddir_sub&;t t
17752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17753 s&@srcdir@&$ac_srcdir&;t t
17754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17755 s&@top_srcdir@&$ac_top_srcdir&;t t
17756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17757 s&@builddir@&$ac_builddir&;t t
17758 s&@abs_builddir@&$ac_abs_builddir&;t t
17759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17760 s&@INSTALL@&$ac_INSTALL&;t t
17761 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17762 $ac_datarootdir_hack
17764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17770 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17772 which seems to be undefined. Please make sure it is defined" >&5
17773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17774 which seems to be undefined. Please make sure it is defined" >&2;}
17776 rm -f "$ac_tmp/stdin"
17777 case $ac_file in
17778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17780 esac \
17781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17785 # CONFIG_HEADER
17787 if test x"$ac_file" != x-; then
17789 $as_echo "/* $configure_input */" \
17790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17791 } >"$ac_tmp/config.h" \
17792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17795 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17796 else
17797 rm -f "$ac_file"
17798 mv "$ac_tmp/config.h" "$ac_file" \
17799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17801 else
17802 $as_echo "/* $configure_input */" \
17803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17804 || as_fn_error $? "could not create -" "$LINENO" 5
17806 # Compute "$ac_file"'s index in $config_headers.
17807 _am_arg="$ac_file"
17808 _am_stamp_count=1
17809 for _am_header in $config_headers :; do
17810 case $_am_header in
17811 $_am_arg | $_am_arg:* )
17812 break ;;
17814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17815 esac
17816 done
17817 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17818 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819 X"$_am_arg" : 'X\(//\)[^/]' \| \
17820 X"$_am_arg" : 'X\(//\)$' \| \
17821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17822 $as_echo X"$_am_arg" |
17823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17824 s//\1/
17827 /^X\(\/\/\)[^/].*/{
17828 s//\1/
17831 /^X\(\/\/\)$/{
17832 s//\1/
17835 /^X\(\/\).*/{
17836 s//\1/
17839 s/.*/./; q'`/stamp-h$_am_stamp_count
17842 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17843 $as_echo "$as_me: executing $ac_file commands" >&6;}
17845 esac
17848 case $ac_file$ac_mode in
17849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17850 # Older Autoconf quotes --file arguments for eval, but not when files
17851 # are listed without --file. Let's play safe and only enable the eval
17852 # if we detect the quoting.
17853 case $CONFIG_FILES in
17854 *\'*) eval set x "$CONFIG_FILES" ;;
17855 *) set x $CONFIG_FILES ;;
17856 esac
17857 shift
17858 for mf
17860 # Strip MF so we end up with the name of the file.
17861 mf=`echo "$mf" | sed -e 's/:.*$//'`
17862 # Check whether this is an Automake generated Makefile or not.
17863 # We used to match only the files named 'Makefile.in', but
17864 # some people rename them; so instead we look at the file content.
17865 # Grep'ing the first line is not enough: some people post-process
17866 # each Makefile.in and add a new line on top of each file to say so.
17867 # Grep'ing the whole file is not good either: AIX grep has a line
17868 # limit of 2048, but all sed's we know have understand at least 4000.
17869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17870 dirpart=`$as_dirname -- "$mf" ||
17871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17872 X"$mf" : 'X\(//\)[^/]' \| \
17873 X"$mf" : 'X\(//\)$' \| \
17874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17875 $as_echo X"$mf" |
17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17877 s//\1/
17880 /^X\(\/\/\)[^/].*/{
17881 s//\1/
17884 /^X\(\/\/\)$/{
17885 s//\1/
17888 /^X\(\/\).*/{
17889 s//\1/
17892 s/.*/./; q'`
17893 else
17894 continue
17896 # Extract the definition of DEPDIR, am__include, and am__quote
17897 # from the Makefile without running 'make'.
17898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17899 test -z "$DEPDIR" && continue
17900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17901 test -z "$am__include" && continue
17902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17903 # Find all dependency output files, they are included files with
17904 # $(DEPDIR) in their names. We invoke sed twice because it is the
17905 # simplest approach to changing $(DEPDIR) to its actual value in the
17906 # expansion.
17907 for file in `sed -n "
17908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17910 # Make sure the directory exists.
17911 test -f "$dirpart/$file" && continue
17912 fdir=`$as_dirname -- "$file" ||
17913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17914 X"$file" : 'X\(//\)[^/]' \| \
17915 X"$file" : 'X\(//\)$' \| \
17916 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17917 $as_echo X"$file" |
17918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17919 s//\1/
17922 /^X\(\/\/\)[^/].*/{
17923 s//\1/
17926 /^X\(\/\/\)$/{
17927 s//\1/
17930 /^X\(\/\).*/{
17931 s//\1/
17934 s/.*/./; q'`
17935 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17936 # echo "creating $dirpart/$file"
17937 echo '# dummy' > "$dirpart/$file"
17938 done
17939 done
17942 "default-1":C)
17943 for ac_file in $CONFIG_FILES; do
17944 # Support "outfile[:infile[:infile...]]"
17945 case "$ac_file" in
17946 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17947 esac
17948 # PO directories have a Makefile.in generated from Makefile.in.in.
17949 case "$ac_file" in */Makefile.in)
17950 # Adjust a relative srcdir.
17951 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17952 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17953 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17954 # In autoconf-2.13 it is called $ac_given_srcdir.
17955 # In autoconf-2.50 it is called $srcdir.
17956 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17957 case "$ac_given_srcdir" in
17958 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17959 /*) top_srcdir="$ac_given_srcdir" ;;
17960 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17961 esac
17962 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17963 rm -f "$ac_dir/POTFILES"
17964 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17965 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17966 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17967 # on $ac_dir but don't depend on user-specified configuration
17968 # parameters.
17969 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17970 # The LINGUAS file contains the set of available languages.
17971 if test -n "$ALL_LINGUAS"; then
17972 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17974 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17975 # Hide the ALL_LINGUAS assigment from automake.
17976 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17978 case "$ac_given_srcdir" in
17979 .) srcdirpre= ;;
17980 *) srcdirpre='$(srcdir)/' ;;
17981 esac
17982 POFILES=
17983 GMOFILES=
17984 UPDATEPOFILES=
17985 DUMMYPOFILES=
17986 for lang in $ALL_LINGUAS; do
17987 POFILES="$POFILES $srcdirpre$lang.po"
17988 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17989 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17990 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17991 done
17992 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17993 # environment variable.
17994 INST_LINGUAS=
17995 if test -n "$ALL_LINGUAS"; then
17996 for presentlang in $ALL_LINGUAS; do
17997 useit=no
17998 if test "%UNSET%" != "$LINGUAS"; then
17999 desiredlanguages="$LINGUAS"
18000 else
18001 desiredlanguages="$ALL_LINGUAS"
18003 for desiredlang in $desiredlanguages; do
18004 # Use the presentlang catalog if desiredlang is
18005 # a. equal to presentlang, or
18006 # b. a variant of presentlang (because in this case,
18007 # presentlang can be used as a fallback for messages
18008 # which are not translated in the desiredlang catalog).
18009 case "$desiredlang" in
18010 "$presentlang"*) useit=yes;;
18011 esac
18012 done
18013 if test $useit = yes; then
18014 INST_LINGUAS="$INST_LINGUAS $presentlang"
18016 done
18018 CATALOGS=
18019 if test -n "$INST_LINGUAS"; then
18020 for lang in $INST_LINGUAS; do
18021 CATALOGS="$CATALOGS $lang.gmo"
18022 done
18024 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18025 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"
18026 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18027 if test -f "$f"; then
18028 case "$f" in
18029 *.orig | *.bak | *~) ;;
18030 *) cat "$f" >> "$ac_dir/Makefile" ;;
18031 esac
18033 done
18036 esac
18037 done ;;
18038 "intl":C)
18039 test -d intl || mkdir intl
18040 test -f intl/plural.c || cp "$srcdir"/intl/plural.c intl/
18041 touch intl/plural.c
18043 "denoiser":C) if test $denoiserlevel -gt 0; then
18044 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18045 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" \
18046 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18047 for i in `find . -name 'Makefile' -print`; do
18048 if test -n "`head -n 1 $i | grep '^#'`"; then
18049 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18051 done
18052 fi ;;
18054 esac
18055 done # for ac_tag
18058 as_fn_exit 0
18059 _ACEOF
18060 ac_clean_files=$ac_clean_files_save
18062 test $ac_write_fail = 0 ||
18063 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18066 # configure is writing to config.log, and then calls config.status.
18067 # config.status does its own redirection, appending to config.log.
18068 # Unfortunately, on DOS this fails, as config.log is still kept open
18069 # by configure, so config.status won't be able to write to it; its
18070 # output is simply discarded. So we exec the FD to /dev/null,
18071 # effectively closing config.log, so it can be properly (re)opened and
18072 # appended to by config.status. When coming back to configure, we
18073 # need to make the FD available again.
18074 if test "$no_create" != yes; then
18075 ac_cs_success=:
18076 ac_config_status_args=
18077 test "$silent" = yes &&
18078 ac_config_status_args="$ac_config_status_args --quiet"
18079 exec 5>/dev/null
18080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18081 exec 5>>config.log
18082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18083 # would make configure fail if this is the last instruction.
18084 $ac_cs_success || as_fn_exit 1
18086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18092 if test -n "$svndate"; then :
18093 SVN_REVISION=" ($svndate)"
18094 else
18095 SVN_REVISION=
18098 echo
18099 echo
18100 echo " Configure script has finished system check."
18101 echo
18102 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18103 echo
18104 echo " aMule enabled options:"
18105 echo
18106 echo " **** aMule Core ****"
18107 echo " Prefix where aMule should be installed? ${prefix:-none}"
18108 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18109 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18110 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18111 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18112 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18113 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18114 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18115 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18116 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18118 echo
18119 echo " **** aMule TextClient ****"
18120 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18121 echo
18122 echo " **** aMule WebServer ****"
18123 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18124 echo
18125 echo " **** aMule ED2K Links Handler ****"
18126 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18127 echo
18128 echo " **** aMuleLinkCreator ****"
18129 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18130 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18131 echo
18132 echo " **** aMule Statistics ****"
18133 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18134 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18135 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18136 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18138 echo
18139 echo " **** General Libraries and Tools ****"
18140 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18141 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18142 echo " Libraries aMule will use to build:"
18143 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 :
18145 wxinfo="$WX_PORT"
18146 if test $WX_DEBUG -eq 1; then :
18147 wxinfo="$wxinfo,debug"
18149 if test $WX_SHARED -eq 1; then :
18150 wxinfo="$wxinfo,shared"
18151 else
18152 wxinfo="$wxinfo,static"
18154 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18157 if test ${with_boost:-no} != no; then :
18158 if test ${with_boost:-no} = disabled; then
18159 echo " boost Not detected"
18160 elif test ${boost_cv_inc_path:-yes} != yes; then
18161 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18162 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18167 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18168 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18170 if test ${enable_upnp:-yes} = yes; then :
18172 if test -n "$with_libupnp_prefix"; then :
18173 libupnp_place=" (in $with_libupnp_prefix)"
18175 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18178 if test ${enable_nls:-yes} = yes; then
18179 if test x$USE_NLS = xno; then :
18180 libintl_found="Not detected"
18181 else
18182 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18183 libintl_found="included"
18184 else
18185 libintl_found="system"
18188 echo " libintl $libintl_found"
18190 if test ${enable_geoip:-no} = yes; then :
18191 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18192 geoip_style=system
18193 else
18194 geoip_style=user
18196 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18197 echo " libGeoIP ${geoip_style}"
18200 if test ${enable_webserver:-no} = yes; then :
18201 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18203 if test ${enable_cas:-no} = yes; then :
18204 echo " libgd ${GDLIB_VERSION:-Not detected}"
18206 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 :
18207 echo " zlib ${ZLIB_VERSION:-Not detected}"
18209 if test ${enable_plasmamule:-no} = yes; then :
18210 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18211 echo " qt-core-libs ${QT_CORE_LIBS}"
18212 echo " qt-gui-libs ${QT_GUI_LIBS}"
18213 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18214 echo " kde-headers ${KDE_HEADER_DIR}"
18215 echo " kde-services-path ${KDE_SERVICE_PATH}"
18216 echo " kde-module-path ${KDE_MODULE_PATH}"
18217 echo " kde-icon-path ${KDE_ICON_PATH}"
18218 echo " kde-mime-path ${KDE_MIME_PATH}"
18219 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18222 if test ${_mule_has_warnings:-no} = yes; then
18223 echo ""
18224 echo ""
18225 echo " *** Warnings during configuration ***"
18227 if test ${_mule_warning_0:-no} = yes; then
18228 cat <<_MULEEOT
18230 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18231 Please check that gdlib-config is in your default path, check out
18232 LD_LIBRARY_PATH or equivalent variable.
18233 Or this might also be that your gdlib-config has other name.
18234 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18235 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18236 If you use compiled packages check if you have devel pack installed.
18237 To download the latest version check http://www.boutell.com/gd for sources.
18238 _MULEEOT
18240 if test ${_mule_warning_1:-no} = yes; then
18241 cat <<_MULEEOT
18243 * libpng >= 1.2.0 not found.
18244 amuleweb will be compiled but file download progress bar images will NOT be
18245 generated.
18246 _MULEEOT
18248 if test ${_mule_warning_2:-no} = yes; then
18249 cat <<_MULEEOT
18251 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18252 _MULEEOT
18254 if test ${_mule_warning_3:-no} = yes; then
18255 cat <<_MULEEOT
18257 * GeoIP support has been disabled because the GeoIP libraries were not found
18258 _MULEEOT
18260 if test ${_mule_warning_4:-no} = yes; then
18261 cat <<_MULEEOT
18263 * GeoIP support has been disabled because the GeoIP header files were not
18264 found
18265 _MULEEOT
18267 if test ${_mule_warning_5:-no} = yes; then
18268 cat <<_MULEEOT
18270 * UPnP code has been disabled because ${libupnp_error}.
18271 _MULEEOT
18273 if test ${_mule_warning_6:-no} = yes; then
18274 cat <<_MULEEOT
18276 * Cross-compilation detected, so exception handling cannot be tested.
18277 Note that broken exception handling in your compiler may lead to unexpected
18278 crashes.
18279 _MULEEOT
18281 if test ${_mule_warning_7:-no} = yes; then
18282 cat <<_MULEEOT
18284 * Boost support has been disabled because Boost.System not found
18285 _MULEEOT
18287 if test ${_mule_warning_8:-no} = yes; then
18288 cat <<_MULEEOT
18290 * Boost support has been disabled because Boost.Asio not found
18291 _MULEEOT
18293 if test ${_mule_warning_9:-no} = yes; then
18294 cat <<_MULEEOT
18296 * Boost support has been disabled because Boost.Asio not found
18297 _MULEEOT
18299 if test ${_mule_warning_10:-no} = yes; then
18300 cat <<_MULEEOT
18302 * Boost support has been disabled because of insufficient Boost version.
18303 _MULEEOT
18305 if test ${_mule_warning_11:-no} = yes; then
18306 cat <<_MULEEOT
18308 * configure cannot check whether malloc() and realloc() are GNU libc
18309 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18310 configure with the --without-gnu-malloc switch.
18311 _MULEEOT
18313 if test ${_mule_warning_12:-no} = yes; then
18314 cat <<_MULEEOT
18316 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18317 support.
18318 _MULEEOT
18320 if test ${_mule_warning_13:-no} = yes; then
18321 cat <<_MULEEOT
18323 * Cannot link to the library containing the bfd functions.
18324 _MULEEOT
18326 if test ${_mule_warning_14:-no} = yes; then
18327 cat <<_MULEEOT
18329 * bfd.h not found or unusable, please install binutils development package if
18330 you are a developer or want to help testing aMule
18331 _MULEEOT