EC packet logging functions moved to the right place
[amule.git] / configure
blobfd92f2680ed03cdb6408488acbd7db5773e7dd21
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 GENERATE_FLEX_HEADER_FALSE
638 GENERATE_FLEX_HEADER_TRUE
639 COMPILE_NLS_FALSE
640 COMPILE_NLS_TRUE
641 NEED_CORESERVICES_FALSE
642 NEED_CORESERVICES_TRUE
643 NEED_RC_FALSE
644 NEED_RC_TRUE
645 SYS_WIN32_FALSE
646 SYS_WIN32_TRUE
647 SVNDATE
648 READLINE_LIBS
649 DEBUGFLAG
650 KDE_MIME_PATH
651 KDE_ICON_PATH
652 KDE_MODULE_PATH
653 KDE_SERVICE_PATH
654 KDE_APPLNK_PATH
655 KDE_HEADER_DIR
656 KDE4_CONFIG
657 QT_GUI_LIBS
658 QT_GUI_CXXFLAGS
659 QT_CORE_LIBS
660 QT_CORE_CXXFLAGS
661 QT_DBUS_LDFLAGS
662 QT_MOC
663 BFD_LIBS
664 BFD_CPPFLAGS
665 INCINTL
666 MONOLITHIC_MANPAGES
667 ALCC_MANPAGES
668 ALC_MANPAGES
669 ED2K_MANPAGES
670 WXCAS_MANPAGES
671 CAS_MANPAGES
672 AMULE_GUI_MANPAGES
673 WEBSERVER_MANPAGES
674 AMULECMD_MANPAGES
675 AMULE_DAEMON_MANPAGES
676 POSUB
677 LTLIBINTL
678 LIBINTL
679 INTLLIBS
680 INTL_LIBTOOL_SUFFIX_PREFIX
681 GENCAT
682 INSTOBJEXT
683 DATADIRNAME
684 INTLOBJS
685 CATOBJEXT
686 USE_INCLUDED_LIBINTL
687 BUILD_INCLUDED_LIBINTL
688 USE_NLS
689 INTLBISON
690 LTLIBICONV
691 LIBICONV
692 GLIBC21
693 MSGMERGE
694 XGETTEXT
695 GMSGFMT
696 MSGFMT
697 MKINSTALLDIRS
698 POW_LIB
699 LIBOBJS
700 ALLOCA
701 BOOST_SYSTEM_LIBS
702 BOOST_LDPATH
703 BOOST_SYSTEM_LDPATH
704 BOOST_SYSTEM_LDFLAGS
705 BOOST_CPPFLAGS
706 DISTCHECK_CONFIGURE_FLAGS
707 BOOST_ROOT
708 CRYPTOPP_LIBS
709 CRYPTOPP_LDFLAGS
710 CRYPTOPP_CPPFLAGS
711 LIBUPNP_LIBS
712 LIBUPNP_LDFLAGS
713 LIBUPNP_CFLAGS
714 LIBUPNP_CPPFLAGS
715 RCFLAGS
717 WXBASE_CPPFLAGS
718 WXBASE_LIBS
719 WX_PORT
720 WX_SHARED
721 WX_DEBUG
722 WX_UNICODE
723 WX_VERSION_MICRO
724 WX_VERSION_MINOR
725 WX_VERSION_MAJOR
726 WX_RESCOMP
727 WX_VERSION
728 WX_LIBS_STATIC
729 WX_LIBS
730 WX_CXXFLAGS_ONLY
731 WX_CFLAGS_ONLY
732 WX_CXXFLAGS
733 WX_CFLAGS
734 WX_CPPFLAGS
735 WX_CONFIG_PATH
736 AMULEWEB_DEFS
737 LIBPNG_LIBS
738 LIBPNG_LDFLAGS
739 LIBPNG_CFLAGS
740 LIBPNG_CONFIG_PATH
741 ZLIB_LIBS
742 ZLIB_LDFLAGS
743 ZLIB_CPPFLAGS
744 CAS_DEFS
745 GDLIB_LIBS
746 GDLIB_LDFLAGS
747 GDLIB_CFLAGS
748 GDLIB_CONFIG_PATH
749 PKG_CONFIG
750 FILEVIEW_FALSE
751 FILEVIEW_TRUE
752 XAS_FALSE
753 XAS_TRUE
754 ALCC_FALSE
755 ALCC_TRUE
756 ALC_FALSE
757 ALC_TRUE
758 ED2K_FALSE
759 ED2K_TRUE
760 WXCAS_FALSE
761 WXCAS_TRUE
762 CAS_FALSE
763 CAS_TRUE
764 AMULE_GUI_FALSE
765 AMULE_GUI_TRUE
766 WEB_FALSE
767 WEB_TRUE
768 COMPILE_CMD_FALSE
769 COMPILE_CMD_TRUE
770 AMULE_DAEMON_FALSE
771 AMULE_DAEMON_TRUE
772 MONOLITHIC_FALSE
773 MONOLITHIC_TRUE
776 YFLAGS
777 YACC
779 RANLIB
780 LEXLIB
781 LEX_OUTPUT_ROOT
783 EGREP
784 GREP
785 BUILD_LDFLAGS
786 BUILD_CFLAGS
787 BUILD_CPPFLAGS
788 BUILD_EXEEXT
789 ac_ct_BUILD_CC
790 BUILD_CC
792 am__fastdepCC_FALSE
793 am__fastdepCC_TRUE
794 CCDEPMODE
795 ac_ct_CC
796 CFLAGS
798 CXXCPP
799 am__fastdepCXX_FALSE
800 am__fastdepCXX_TRUE
801 CXXDEPMODE
802 am__nodep
803 AMDEPBACKSLASH
804 AMDEP_FALSE
805 AMDEP_TRUE
806 am__quote
807 am__include
808 DEPDIR
809 OBJEXT
810 EXEEXT
811 ac_ct_CXX
812 CPPFLAGS
813 LDFLAGS
814 CXXFLAGS
816 MULERCFLAGS
817 MULELDFLAGS
818 MULECXXFLAGS
819 MULECFLAGS
820 MULECPPFLAGS
821 RESOLV_LIB
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 MAINT
831 MAINTAINER_MODE_FALSE
832 MAINTAINER_MODE_TRUE
833 AM_BACKSLASH
834 AM_DEFAULT_VERBOSITY
835 AM_DEFAULT_V
836 AM_V
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
843 mkdir_p
844 MKDIR_P
845 INSTALL_STRIP_PROGRAM
846 STRIP
847 install_sh
848 MAKEINFO
849 AUTOHEADER
850 AUTOMAKE
851 AUTOCONF
852 ACLOCAL
853 VERSION
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 target_alias
861 host_alias
862 build_alias
863 LIBS
864 ECHO_T
865 ECHO_N
866 ECHO_C
867 DEFS
868 mandir
869 localedir
870 libdir
871 psdir
872 pdfdir
873 dvidir
874 htmldir
875 infodir
876 docdir
877 oldincludedir
878 includedir
879 runstatedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL
899 GEOIP_LIBS
900 GEOIP_LDFLAGS
901 GEOIP_CPPFLAGS'
902 ac_subst_files=''
903 ac_user_opts='
904 enable_option_checking
905 enable_silent_rules
906 enable_maintainer_mode
907 enable_dependency_tracking
908 enable_monolithic
909 enable_amule_daemon
910 enable_amulecmd
911 enable_webserver
912 enable_amule_gui
913 enable_cas
914 enable_wxcas
915 enable_ed2k
916 enable_alc
917 enable_alcc
918 enable_xas
919 enable_fileview
920 enable_plasmamule
921 enable_static
922 with_kde4_config
923 enable_kde_in_home
924 with_moc
925 with_gnu_malloc
926 with_gdlib_prefix
927 with_gdlib_config
928 with_zlib
929 with_libpng_prefix
930 with_libpng_config
931 enable_geoip
932 with_geoip_headers
933 with_geoip_lib
934 with_geoip_static
935 with_wxdir
936 with_wx_config
937 with_wx_prefix
938 with_wx_exec_prefix
939 with_toolkit
940 with_wxshared
941 with_wxdebug
942 with_wxversion
943 enable_upnp
944 with_libupnp_prefix
945 with_crypto_prefix
946 enable_debug
947 enable_profile
948 enable_optimize
949 with_boost
950 enable_static_boost
951 enable_mmap
952 with_language
953 with_gnu_ld
954 enable_rpath
955 with_libiconv_prefix
956 enable_nls
957 with_included_gettext
958 with_libintl_prefix
959 with_denoise_level
960 enable_ccache
961 with_ccache_prefix
963 ac_precious_vars='build_alias
964 host_alias
965 target_alias
967 CXXFLAGS
968 LDFLAGS
969 LIBS
970 CPPFLAGS
972 CXXCPP
974 CFLAGS
976 YACC
977 YFLAGS
978 PKG_CONFIG
980 RCFLAGS
981 BOOST_ROOT'
984 # Initialize some variables set by options.
985 ac_init_help=
986 ac_init_version=false
987 ac_unrecognized_opts=
988 ac_unrecognized_sep=
989 # The variables have the same names as the options, with
990 # dashes changed to underlines.
991 cache_file=/dev/null
992 exec_prefix=NONE
993 no_create=
994 no_recursion=
995 prefix=NONE
996 program_prefix=NONE
997 program_suffix=NONE
998 program_transform_name=s,x,x,
999 silent=
1000 site=
1001 srcdir=
1002 verbose=
1003 x_includes=NONE
1004 x_libraries=NONE
1006 # Installation directory options.
1007 # These are left unexpanded so users can "make install exec_prefix=/foo"
1008 # and all the variables that are supposed to be based on exec_prefix
1009 # by default will actually change.
1010 # Use braces instead of parens because sh, perl, etc. also accept them.
1011 # (The list follows the same order as the GNU Coding Standards.)
1012 bindir='${exec_prefix}/bin'
1013 sbindir='${exec_prefix}/sbin'
1014 libexecdir='${exec_prefix}/libexec'
1015 datarootdir='${prefix}/share'
1016 datadir='${datarootdir}'
1017 sysconfdir='${prefix}/etc'
1018 sharedstatedir='${prefix}/com'
1019 localstatedir='${prefix}/var'
1020 runstatedir='${localstatedir}/run'
1021 includedir='${prefix}/include'
1022 oldincludedir='/usr/include'
1023 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024 infodir='${datarootdir}/info'
1025 htmldir='${docdir}'
1026 dvidir='${docdir}'
1027 pdfdir='${docdir}'
1028 psdir='${docdir}'
1029 libdir='${exec_prefix}/lib'
1030 localedir='${datarootdir}/locale'
1031 mandir='${datarootdir}/man'
1033 ac_prev=
1034 ac_dashdash=
1035 for ac_option
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\$ac_option
1040 ac_prev=
1041 continue
1044 case $ac_option in
1045 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 *=) ac_optarg= ;;
1047 *) ac_optarg=yes ;;
1048 esac
1050 # Accept the important Cygnus configure options, so we can diagnose typos.
1052 case $ac_dashdash$ac_option in
1054 ac_dashdash=yes ;;
1056 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057 ac_prev=bindir ;;
1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059 bindir=$ac_optarg ;;
1061 -build | --build | --buil | --bui | --bu)
1062 ac_prev=build_alias ;;
1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064 build_alias=$ac_optarg ;;
1066 -cache-file | --cache-file | --cache-fil | --cache-fi \
1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068 ac_prev=cache_file ;;
1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071 cache_file=$ac_optarg ;;
1073 --config-cache | -C)
1074 cache_file=config.cache ;;
1076 -datadir | --datadir | --datadi | --datad)
1077 ac_prev=datadir ;;
1078 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079 datadir=$ac_optarg ;;
1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082 | --dataroo | --dataro | --datar)
1083 ac_prev=datarootdir ;;
1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086 datarootdir=$ac_optarg ;;
1088 -disable-* | --disable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=no ;;
1104 -docdir | --docdir | --docdi | --doc | --do)
1105 ac_prev=docdir ;;
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110 ac_prev=dvidir ;;
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1114 -enable-* | --enable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=\$ac_optarg ;;
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1273 -runstatedir | --runstatedir | --runstatedi | --runstated \
1274 | --runstate | --runstat | --runsta | --runst | --runs \
1275 | --run | --ru | --r)
1276 ac_prev=runstatedir ;;
1277 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1278 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1279 | --run=* | --ru=* | --r=*)
1280 runstatedir=$ac_optarg ;;
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1377 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1381 *=*)
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387 esac
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1399 esac
1400 done
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1409 no) ;;
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412 esac
1415 # Check all directory arguments for consistency.
1416 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir runstatedir
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1423 case $ac_val in
1424 */ )
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1427 esac
1428 # Be sure to have absolute directory names.
1429 case $ac_val in
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 esac
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 done
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455 test "$silent" = yes && exec 6>/dev/null
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $? "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $? "pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1484 /^X\(\/\/\)$/{
1485 s//\1/
1488 /^X\(\/\).*/{
1489 s//\1/
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1497 else
1498 ac_srcdir_defaulted=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 \`configure' configures aMule SVN to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1586 _ACEOF
1588 cat <<\_ACEOF
1590 Program names:
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1595 System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 _ACEOF
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of aMule SVN:";;
1604 esac
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-silent-rules less verbose build output (undo: "make V=1")
1612 --disable-silent-rules verbose build output (undo: "make V=0")
1613 --enable-maintainer-mode
1614 enable make rules and dependencies not useful (and
1615 sometimes confusing) to the casual installer
1616 --enable-dependency-tracking
1617 do not reject slow dependency extractors
1618 --disable-dependency-tracking
1619 speeds up one-time build
1620 --disable-monolithic disable building of the monolithic aMule app
1621 --enable-amule-daemon compile aMule daemon version
1622 --enable-amulecmd compile aMule command line client
1623 --enable-webserver compile aMule WebServer
1624 --enable-amule-gui compile aMule remote GUI
1625 --enable-cas compile C aMule Statistics
1626 --enable-wxcas compile aMule GUI Statistics
1627 --disable-ed2k don't compile aMule ed2k links handler
1628 --enable-alc compile aMuleLinkCreator GUI version
1629 --enable-alcc compile aMuleLinkCreator for console
1630 --enable-xas install xas XChat2 plugin
1631 --enable-fileview compile aMule file viewer for console
1632 --enable-plasmamule compile aMule plasma applet and engine
1633 --enable-static produce a statically linked executable
1634 --enable-kde-in-home install KDE related stuff in your home dir
1635 --enable-geoip compile with GeoIP IP2Country library
1636 --disable-upnp do not compile UPnP code
1637 --disable-debug disable additional debugging output
1638 --enable-profile enable code profiling
1639 --enable-optimize enable code optimization
1640 --enable-static-boost Prefer the static boost libraries over the shared
1641 ones [no]
1642 --enable-mmap enable using mapped memory if supported
1643 --disable-rpath do not hardcode runtime library paths
1644 --disable-nls do not use Native Language Support
1645 --enable-ccache enable ccache support for fast recompilation
1647 Optional Packages:
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-kde4-config=PATH kde4-config script to use
1651 --with-moc=PATH Search in PATH for Qt's meta object compiler
1652 --without-gnu-malloc Don't assume that we use GNU libc compatible
1653 malloc/realloc when cross-compiling
1654 --with-gdlib-prefix=PREFIX
1655 prefix where gdlib is installed (optional)
1656 --with-gdlib-config=CONFIG
1657 gdlib-config script to use (optional)
1658 --with-zlib=PREFIX use zlib in PREFIX
1659 --with-libpng-prefix=PREFIX
1660 prefix where libpng is installed (optional)
1661 --with-libpng-config=CONFIG
1662 libpng-config script to use (optional)
1663 --with-geoip-headers=DIR
1664 GeoIP include files location
1665 --with-geoip-lib=DIR GeoIP library location
1666 --with-geoip-static Explicitly link GeoIP statically (default=no)
1667 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1668 --with-wx-config=CONFIG wx-config script to use (optional)
1669 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1670 --with-wx-exec-prefix=PREFIX
1671 Exec prefix where wxWidgets is installed (optional)
1672 --with-toolkit Build against a specific wxWidgets toolkit (default
1673 is auto)
1674 --with-wxshared Force building against a shared build of wxWidgets,
1675 even if --disable-shared is given (default is auto)
1676 --with-wxdebug Force building against a debug build of wxWidgets,
1677 even if --disable-debug is given (default is auto)
1678 --with-wxversion Build against a specific version of wxWidgets
1679 (default is auto)
1681 --with-libupnp-prefix=PREFIX
1682 UPnP library location
1683 --with-crypto-prefix=PREFIX
1684 prefix where crypto++ is installed
1685 --with-boost[=DIR] use Boost.Asio for networking
1686 --with-language=<langs> Specify a comma-separated list of languages you want
1687 to have installed. See po/LINGUAS for available
1688 languages
1689 --with-gnu-ld assume the C compiler uses GNU ld default=no
1690 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1691 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1692 --with-included-gettext use the GNU gettext library included here
1693 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1694 --without-libintl-prefix don't search for libintl in includedir and libdir
1695 --with-denoise-level=<level>
1696 Specifies denoising level (0-4):
1697 0 - Do nothing
1698 4 - Suppress all normal output
1699 (for more information see
1700 src/utils/scripts/denoiser.rules)
1702 --with-ccache-prefix=PREFIX
1703 prefix where ccache is installed
1705 Some influential environment variables:
1706 CXX C++ compiler command
1707 CXXFLAGS C++ compiler flags
1708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1709 nonstandard directory <lib dir>
1710 LIBS libraries to pass to the linker, e.g. -l<library>
1711 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1712 you have headers in a nonstandard directory <include dir>
1713 CXXCPP C++ preprocessor
1714 CC C compiler command
1715 CFLAGS C compiler flags
1716 CPP C preprocessor
1717 YACC The `Yet Another Compiler Compiler' implementation to use.
1718 Defaults to the first program found out of: `bison -y', `byacc',
1719 `yacc'.
1720 YFLAGS The list of arguments that will be passed by default to $YACC.
1721 This script will default YFLAGS to the empty string to avoid a
1722 default value of `-d' given by some make applications.
1723 PKG_CONFIG path to pkg-config utility
1724 RC Resource Compiler
1725 RCFLAGS Resource Compiler Flags
1726 BOOST_ROOT Location of Boost installation
1728 Use these variables to override the choices made by `configure' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1731 Report bugs to <admin@amule.org>.
1732 _ACEOF
1733 ac_status=$?
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 continue
1742 ac_builddir=.
1744 case "$ac_dir" in
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 esac ;;
1754 esac
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1760 case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1769 *) # Relative name.
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773 esac
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1784 else
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 fi || ac_status=$?
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1788 done
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1793 cat <<\_ACEOF
1794 aMule configure SVN
1795 generated by GNU Autoconf 2.69
1797 Copyright (C) 2012 Free Software Foundation, Inc.
1798 This configure script is free software; the Free Software Foundation
1799 gives unlimited permission to copy, distribute and modify it.
1800 _ACEOF
1801 exit
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_cxx_try_cpp LINENO
1847 # ------------------------
1848 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_cpp ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_cpp conftest.$ac_ext"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } > conftest.i && {
1868 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1876 ac_retval=1
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_cxx_try_cpp
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_compile
1921 # ac_fn_c_try_cpp LINENO
1922 # ----------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_cpp ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } > conftest.i && {
1943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_cpp
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_header_mongrel ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if eval \${$3+:} false; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 else
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_header_compiler=yes
2032 else
2033 ac_header_compiler=no
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_cpp "$LINENO"; then :
2047 ac_header_preproc=yes
2048 else
2049 ac_header_preproc=no
2051 rm -f conftest.err conftest.i conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057 yes:no: )
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 no:yes:* )
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ( $as_echo "## ------------------------------ ##
2075 ## Report this to admin@amule.org ##
2076 ## ------------------------------ ##"
2077 ) | sed "s/^/$as_me: WARNING: /" >&2
2079 esac
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084 else
2085 eval "$3=\$ac_header_compiler"
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_header_mongrel
2095 # ac_fn_c_try_run LINENO
2096 # ----------------------
2097 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2098 # that executables *can* be run.
2099 ac_fn_c_try_run ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if { { ac_try="$ac_link"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_link") 2>&5
2110 ac_status=$?
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2113 { { case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_try") 2>&5
2120 ac_status=$?
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; }; }; then :
2123 ac_retval=0
2124 else
2125 $as_echo "$as_me: program exited with status $ac_status" >&5
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2129 ac_retval=$ac_status
2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2135 } # ac_fn_c_try_run
2137 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2138 # -------------------------------------------------------
2139 # Tests whether HEADER exists and can be compiled using the include files in
2140 # INCLUDES, setting the cache variable VAR accordingly.
2141 ac_fn_c_check_header_compile ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2152 #include <$2>
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 eval "$3=yes"
2156 else
2157 eval "$3=no"
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_header_compile
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 eval "$3=no"
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2185 main ()
2187 if (sizeof ($2))
2188 return 0;
2190 return 0;
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2198 main ()
2200 if (sizeof (($2)))
2201 return 0;
2203 return 0;
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2208 else
2209 eval "$3=yes"
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_type
2222 # ac_fn_cxx_try_link LINENO
2223 # -------------------------
2224 # Try to link conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_cxx_try_link ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 rm -f conftest.$ac_objext conftest$ac_exeext
2229 if { { ac_try="$ac_link"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_link") 2>conftest.err
2237 ac_status=$?
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_cxx_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest$ac_exeext && {
2248 test "$cross_compiling" = yes ||
2249 test -x conftest$ac_exeext
2250 }; then :
2251 ac_retval=0
2252 else
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 ac_retval=1
2258 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2259 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2260 # interfere with the next link command; also delete a directory that is
2261 # left behind by Apple's compiler. We do this before executing the actions.
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_cxx_try_link
2268 # ac_fn_cxx_try_run LINENO
2269 # ------------------------
2270 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271 # that executables *can* be run.
2272 ac_fn_cxx_try_run ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { { ac_try="$ac_link"
2276 case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2286 { { case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then :
2296 ac_retval=0
2297 else
2298 $as_echo "$as_me: program exited with status $ac_status" >&5
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 ac_retval=$ac_status
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_cxx_try_run
2310 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2311 # ---------------------------------------------------------
2312 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2313 # the include files in INCLUDES and setting the cache variable VAR
2314 # accordingly.
2315 ac_fn_cxx_check_header_mongrel ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if eval \${$3+:} false; then :
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if eval \${$3+:} false; then :
2322 $as_echo_n "(cached) " >&6
2324 eval ac_res=\$$3
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 else
2328 # Is the header compilable?
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2330 $as_echo_n "checking $2 usability... " >&6; }
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2334 #include <$2>
2335 _ACEOF
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337 ac_header_compiler=yes
2338 else
2339 ac_header_compiler=no
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2343 $as_echo "$ac_header_compiler" >&6; }
2345 # Is the header present?
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2347 $as_echo_n "checking $2 presence... " >&6; }
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2350 #include <$2>
2351 _ACEOF
2352 if ac_fn_cxx_try_cpp "$LINENO"; then :
2353 ac_header_preproc=yes
2354 else
2355 ac_header_preproc=no
2357 rm -f conftest.err conftest.i conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2359 $as_echo "$ac_header_preproc" >&6; }
2361 # So? What about this header?
2362 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2363 yes:no: )
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2365 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2367 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2369 no:yes:* )
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2371 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2373 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2375 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2377 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2379 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2380 ( $as_echo "## ------------------------------ ##
2381 ## Report this to admin@amule.org ##
2382 ## ------------------------------ ##"
2383 ) | sed "s/^/$as_me: WARNING: /" >&2
2385 esac
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 eval "$3=\$ac_header_compiler"
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 } # ac_fn_cxx_check_header_mongrel
2401 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2402 # ---------------------------------------------
2403 # Tests whether TYPE exists after having included INCLUDES, setting cache
2404 # variable VAR accordingly.
2405 ac_fn_cxx_check_type ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 eval "$3=no"
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2418 main ()
2420 if (sizeof ($2))
2421 return 0;
2423 return 0;
2425 _ACEOF
2426 if ac_fn_cxx_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 main ()
2433 if (sizeof (($2)))
2434 return 0;
2436 return 0;
2438 _ACEOF
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2441 else
2442 eval "$3=yes"
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 eval ac_res=\$$3
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453 } # ac_fn_cxx_check_type
2455 # ac_fn_cxx_check_func LINENO FUNC VAR
2456 # ------------------------------------
2457 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2458 ac_fn_cxx_check_func ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if eval \${$3+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2470 #define $2 innocuous_$2
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $2 (); below.
2474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 <limits.h> exists even on freestanding compilers. */
2477 #ifdef __STDC__
2478 # include <limits.h>
2479 #else
2480 # include <assert.h>
2481 #endif
2483 #undef $2
2485 /* Override any GCC internal prototype to avoid an error.
2486 Use char because int might match the return type of a GCC
2487 builtin and then its argument prototype would still apply. */
2488 #ifdef __cplusplus
2489 extern "C"
2490 #endif
2491 char $2 ();
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined __stub_$2 || defined __stub___$2
2496 choke me
2497 #endif
2500 main ()
2502 return $2 ();
2504 return 0;
2506 _ACEOF
2507 if ac_fn_cxx_try_link "$LINENO"; then :
2508 eval "$3=yes"
2509 else
2510 eval "$3=no"
2512 rm -f core conftest.err conftest.$ac_objext \
2513 conftest$ac_exeext conftest.$ac_ext
2515 eval ac_res=\$$3
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_cxx_check_func
2522 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2523 # ---------------------------------------------------------
2524 # Tests whether HEADER exists and can be compiled using the include files in
2525 # INCLUDES, setting the cache variable VAR accordingly.
2526 ac_fn_cxx_check_header_compile ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2537 #include <$2>
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540 eval "$3=yes"
2541 else
2542 eval "$3=no"
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 eval ac_res=\$$3
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 } # ac_fn_cxx_check_header_compile
2553 # ac_fn_c_check_func LINENO FUNC VAR
2554 # ----------------------------------
2555 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2556 ac_fn_c_check_func ()
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval \${$3+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2568 #define $2 innocuous_$2
2570 /* System header to define __stub macros and hopefully few prototypes,
2571 which can conflict with char $2 (); below.
2572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2573 <limits.h> exists even on freestanding compilers. */
2575 #ifdef __STDC__
2576 # include <limits.h>
2577 #else
2578 # include <assert.h>
2579 #endif
2581 #undef $2
2583 /* Override any GCC internal prototype to avoid an error.
2584 Use char because int might match the return type of a GCC
2585 builtin and then its argument prototype would still apply. */
2586 #ifdef __cplusplus
2587 extern "C"
2588 #endif
2589 char $2 ();
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined __stub_$2 || defined __stub___$2
2594 choke me
2595 #endif
2598 main ()
2600 return $2 ();
2602 return 0;
2604 _ACEOF
2605 if ac_fn_c_try_link "$LINENO"; then :
2606 eval "$3=yes"
2607 else
2608 eval "$3=no"
2610 rm -f core conftest.err conftest.$ac_objext \
2611 conftest$ac_exeext conftest.$ac_ext
2613 eval ac_res=\$$3
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 } # ac_fn_c_check_func
2620 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2621 # ---------------------------------------------
2622 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2623 # accordingly.
2624 ac_fn_c_check_decl ()
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 as_decl_name=`echo $2|sed 's/ *(.*//'`
2628 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2630 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2638 main ()
2640 #ifndef $as_decl_name
2641 #ifdef __cplusplus
2642 (void) $as_decl_use;
2643 #else
2644 (void) $as_decl_name;
2645 #endif
2646 #endif
2649 return 0;
2651 _ACEOF
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 eval "$3=yes"
2654 else
2655 eval "$3=no"
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664 } # ac_fn_c_check_decl
2665 cat >config.log <<_ACEOF
2666 This file contains any messages produced by compilers while
2667 running configure, to aid debugging if configure makes a mistake.
2669 It was created by aMule $as_me SVN, which was
2670 generated by GNU Autoconf 2.69. Invocation command line was
2672 $ $0 $@
2674 _ACEOF
2675 exec 5>>config.log
2677 cat <<_ASUNAME
2678 ## --------- ##
2679 ## Platform. ##
2680 ## --------- ##
2682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2699 _ASUNAME
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 $as_echo "PATH: $as_dir"
2707 done
2708 IFS=$as_save_IFS
2710 } >&5
2712 cat >&5 <<_ACEOF
2715 ## ----------- ##
2716 ## Core tests. ##
2717 ## ----------- ##
2719 _ACEOF
2722 # Keep a trace of the command line.
2723 # Strip out --no-create and --no-recursion so they do not pile up.
2724 # Strip out --silent because we don't want to record it for future runs.
2725 # Also quote any args containing shell meta-characters.
2726 # Make two passes to allow for proper duplicate-argument suppression.
2727 ac_configure_args=
2728 ac_configure_args0=
2729 ac_configure_args1=
2730 ac_must_keep_next=false
2731 for ac_pass in 1 2
2733 for ac_arg
2735 case $ac_arg in
2736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2738 | -silent | --silent | --silen | --sile | --sil)
2739 continue ;;
2740 *\'*)
2741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2742 esac
2743 case $ac_pass in
2744 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2746 as_fn_append ac_configure_args1 " '$ac_arg'"
2747 if test $ac_must_keep_next = true; then
2748 ac_must_keep_next=false # Got value, back to normal.
2749 else
2750 case $ac_arg in
2751 *=* | --config-cache | -C | -disable-* | --disable-* \
2752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2754 | -with-* | --with-* | -without-* | --without-* | --x)
2755 case "$ac_configure_args0 " in
2756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2757 esac
2759 -* ) ac_must_keep_next=true ;;
2760 esac
2762 as_fn_append ac_configure_args " '$ac_arg'"
2764 esac
2765 done
2766 done
2767 { ac_configure_args0=; unset ac_configure_args0;}
2768 { ac_configure_args1=; unset ac_configure_args1;}
2770 # When interrupted or exit'd, cleanup temporary files, and complete
2771 # config.log. We remove comments because anyway the quotes in there
2772 # would cause problems or look ugly.
2773 # WARNING: Use '\'' to represent an apostrophe within the trap.
2774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2775 trap 'exit_status=$?
2776 # Save into config.log some information that might help in debugging.
2778 echo
2780 $as_echo "## ---------------- ##
2781 ## Cache variables. ##
2782 ## ---------------- ##"
2783 echo
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2787 eval ac_val=\$$ac_var
2788 case $ac_val in #(
2789 *${as_nl}*)
2790 case $ac_var in #(
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 esac
2794 case $ac_var in #(
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2798 esac ;;
2799 esac
2800 done
2801 (set) 2>&1 |
2802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2804 sed -n \
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 ;; #(
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 esac |
2812 sort
2814 echo
2816 $as_echo "## ----------------- ##
2817 ## Output variables. ##
2818 ## ----------------- ##"
2819 echo
2820 for ac_var in $ac_subst_vars
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
2830 if test -n "$ac_subst_files"; then
2831 $as_echo "## ------------------- ##
2832 ## File substitutions. ##
2833 ## ------------------- ##"
2834 echo
2835 for ac_var in $ac_subst_files
2837 eval ac_val=\$$ac_var
2838 case $ac_val in
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 esac
2841 $as_echo "$ac_var='\''$ac_val'\''"
2842 done | sort
2843 echo
2846 if test -s confdefs.h; then
2847 $as_echo "## ----------- ##
2848 ## confdefs.h. ##
2849 ## ----------- ##"
2850 echo
2851 cat confdefs.h
2852 echo
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2857 } >&5
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 exit $exit_status
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 done
2865 ac_signal=0
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2870 $as_echo "/* confdefs.h */" > confdefs.h
2872 # Predefined preprocessor variables.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 _ACEOF
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 _ACEOF
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 _ACEOF
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 _ACEOF
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 _ACEOF
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2896 _ACEOF
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2901 ac_site_file1=NONE
2902 ac_site_file2=NONE
2903 if test -n "$CONFIG_SITE"; then
2904 # We do not want a PATH search for config.site.
2905 case $CONFIG_SITE in #((
2906 -*) ac_site_file1=./$CONFIG_SITE;;
2907 */*) ac_site_file1=$CONFIG_SITE;;
2908 *) ac_site_file1=./$CONFIG_SITE;;
2909 esac
2910 elif test "x$prefix" != xNONE; then
2911 ac_site_file1=$prefix/share/config.site
2912 ac_site_file2=$prefix/etc/config.site
2913 else
2914 ac_site_file1=$ac_default_prefix/share/config.site
2915 ac_site_file2=$ac_default_prefix/etc/config.site
2917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2919 test "x$ac_site_file" = xNONE && continue
2920 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2923 sed 's/^/| /' "$ac_site_file" >&5
2924 . "$ac_site_file" \
2925 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 as_fn_error $? "failed to load site script $ac_site_file
2928 See \`config.log' for more details" "$LINENO" 5; }
2930 done
2932 if test -r "$cache_file"; then
2933 # Some versions of bash will fail to source /dev/null (special files
2934 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2935 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2937 $as_echo "$as_me: loading cache $cache_file" >&6;}
2938 case $cache_file in
2939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2940 *) . "./$cache_file";;
2941 esac
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2945 $as_echo "$as_me: creating cache $cache_file" >&6;}
2946 >$cache_file
2949 as_fn_append ac_header_list " stdlib.h"
2950 as_fn_append ac_header_list " unistd.h"
2951 as_fn_append ac_header_list " sys/param.h"
2952 # Check that the precious variables saved in the cache have kept the same
2953 # value.
2954 ac_cache_corrupted=false
2955 for ac_var in $ac_precious_vars; do
2956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2957 eval ac_new_set=\$ac_env_${ac_var}_set
2958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2959 eval ac_new_val=\$ac_env_${ac_var}_value
2960 case $ac_old_set,$ac_new_set in
2961 set,)
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2963 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2964 ac_cache_corrupted=: ;;
2965 ,set)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2967 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2968 ac_cache_corrupted=: ;;
2969 ,);;
2971 if test "x$ac_old_val" != "x$ac_new_val"; then
2972 # differences in whitespace do not lead to failure.
2973 ac_old_val_w=`echo x $ac_old_val`
2974 ac_new_val_w=`echo x $ac_new_val`
2975 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2977 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2978 ac_cache_corrupted=:
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2981 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2982 eval $ac_var=\$ac_old_val
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2985 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2987 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2988 fi;;
2989 esac
2990 # Pass precious variables to config.status.
2991 if test "$ac_new_set" = set; then
2992 case $ac_new_val in
2993 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2994 *) ac_arg=$ac_var=$ac_new_val ;;
2995 esac
2996 case " $ac_configure_args " in
2997 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2998 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2999 esac
3001 done
3002 if $ac_cache_corrupted; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3006 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3007 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3009 ## -------------------- ##
3010 ## Main body of script. ##
3011 ## -------------------- ##
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 am__api_version='1.15'
3022 ac_aux_dir=
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024 if test -f "$ac_dir/install-sh"; then
3025 ac_aux_dir=$ac_dir
3026 ac_install_sh="$ac_aux_dir/install-sh -c"
3027 break
3028 elif test -f "$ac_dir/install.sh"; then
3029 ac_aux_dir=$ac_dir
3030 ac_install_sh="$ac_aux_dir/install.sh -c"
3031 break
3032 elif test -f "$ac_dir/shtool"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/shtool install -c"
3035 break
3037 done
3038 if test -z "$ac_aux_dir"; then
3039 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3042 # These three variables are undocumented and unsupported,
3043 # and are intended to be withdrawn in a future Autoconf release.
3044 # They can cause serious problems if a builder's source tree is in a directory
3045 # whose full name contains unusual characters.
3046 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3047 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3048 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3051 # Find a good install program. We prefer a C program (faster),
3052 # so one script is as good as another. But avoid the broken or
3053 # incompatible versions:
3054 # SysV /etc/install, /usr/sbin/install
3055 # SunOS /usr/etc/install
3056 # IRIX /sbin/install
3057 # AIX /bin/install
3058 # AmigaOS /C/install, which installs bootblocks on floppy discs
3059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3062 # OS/2's system install, which has a completely different semantic
3063 # ./install, which can be erroneously created by make from ./install.sh.
3064 # Reject install programs that cannot install multiple files.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3066 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3067 if test -z "$INSTALL"; then
3068 if ${ac_cv_path_install+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 # Account for people who put trailing slashes in PATH elements.
3077 case $as_dir/ in #((
3078 ./ | .// | /[cC]/* | \
3079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3081 /usr/ucb/* ) ;;
3083 # OSF1 and SCO ODT 3.0 have their own names for install.
3084 # Don't use installbsd from OSF since it installs stuff as root
3085 # by default.
3086 for ac_prog in ginstall scoinst install; do
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3089 if test $ac_prog = install &&
3090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3091 # AIX install. It has an incompatible calling convention.
3093 elif test $ac_prog = install &&
3094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # program-specific install script used by HP pwplus--don't use.
3097 else
3098 rm -rf conftest.one conftest.two conftest.dir
3099 echo one > conftest.one
3100 echo two > conftest.two
3101 mkdir conftest.dir
3102 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3103 test -s conftest.one && test -s conftest.two &&
3104 test -s conftest.dir/conftest.one &&
3105 test -s conftest.dir/conftest.two
3106 then
3107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3108 break 3
3112 done
3113 done
3115 esac
3117 done
3118 IFS=$as_save_IFS
3120 rm -rf conftest.one conftest.two conftest.dir
3123 if test "${ac_cv_path_install+set}" = set; then
3124 INSTALL=$ac_cv_path_install
3125 else
3126 # As a last resort, use the slow shell script. Don't cache a
3127 # value for INSTALL within a source directory, because that will
3128 # break other packages using the cache if that directory is
3129 # removed, or if the value is a relative name.
3130 INSTALL=$ac_install_sh
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3134 $as_echo "$INSTALL" >&6; }
3136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137 # It thinks the first close brace ends the variable substitution.
3138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3145 $as_echo_n "checking whether build environment is sane... " >&6; }
3146 # Reject unsafe characters in $srcdir or the absolute working directory
3147 # name. Accept space and tab only in the latter.
3148 am_lf='
3150 case `pwd` in
3151 *[\\\"\#\$\&\'\`$am_lf]*)
3152 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3153 esac
3154 case $srcdir in
3155 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3156 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3157 esac
3159 # Do 'set' in a subshell so we don't clobber the current shell's
3160 # arguments. Must try -L first in case configure is actually a
3161 # symlink; some systems play weird games with the mod time of symlinks
3162 # (eg FreeBSD returns the mod time of the symlink's containing
3163 # directory).
3164 if (
3165 am_has_slept=no
3166 for am_try in 1 2; do
3167 echo "timestamp, slept: $am_has_slept" > conftest.file
3168 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3169 if test "$*" = "X"; then
3170 # -L didn't work.
3171 set X `ls -t "$srcdir/configure" conftest.file`
3173 if test "$*" != "X $srcdir/configure conftest.file" \
3174 && test "$*" != "X conftest.file $srcdir/configure"; then
3176 # If neither matched, then we have a broken ls. This can happen
3177 # if, for instance, CONFIG_SHELL is bash and it inherits a
3178 # broken ls alias from the environment. This has actually
3179 # happened. Such a system could not be considered "sane".
3180 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3181 alias in your environment" "$LINENO" 5
3183 if test "$2" = conftest.file || test $am_try -eq 2; then
3184 break
3186 # Just in case.
3187 sleep 1
3188 am_has_slept=yes
3189 done
3190 test "$2" = conftest.file
3192 then
3193 # Ok.
3195 else
3196 as_fn_error $? "newly created file is older than distributed files!
3197 Check your system clock" "$LINENO" 5
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 # If we didn't sleep, we still need to ensure time stamps of config.status and
3202 # generated files are strictly newer.
3203 am_sleep_pid=
3204 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3205 ( sleep 1 ) &
3206 am_sleep_pid=$!
3209 rm -f conftest.file
3211 test "$program_prefix" != NONE &&
3212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3213 # Use a double $ so make ignores it.
3214 test "$program_suffix" != NONE &&
3215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3216 # Double any \ or $.
3217 # By default was `s,x,x', remove it if useless.
3218 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3219 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Expand $ac_aux_dir to an absolute path.
3222 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3224 if test x"${MISSING+set}" != xset; then
3225 case $am_aux_dir in
3226 *\ * | *\ *)
3227 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3229 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3230 esac
3232 # Use eval to expand $SHELL
3233 if eval "$MISSING --is-lightweight"; then
3234 am_missing_run="$MISSING "
3235 else
3236 am_missing_run=
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3238 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3241 if test x"${install_sh+set}" != xset; then
3242 case $am_aux_dir in
3243 *\ * | *\ *)
3244 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3246 install_sh="\${SHELL} $am_aux_dir/install-sh"
3247 esac
3250 # Installed binaries are usually stripped using 'strip' when the user
3251 # run "make install-strip". However 'strip' might not be the right
3252 # tool to use in cross-compilation environments, therefore Automake
3253 # will honor the 'STRIP' environment variable to overrule this program.
3254 if test "$cross_compiling" != no; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}strip; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_STRIP+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$STRIP"; then
3264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3279 IFS=$as_save_IFS
3283 STRIP=$ac_cv_prog_STRIP
3284 if test -n "$STRIP"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3286 $as_echo "$STRIP" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3294 if test -z "$ac_cv_prog_STRIP"; then
3295 ac_ct_STRIP=$STRIP
3296 # Extract the first word of "strip", so it can be a program name with args.
3297 set dummy strip; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$ac_ct_STRIP"; then
3304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_STRIP="strip"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3324 if test -n "$ac_ct_STRIP"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3326 $as_echo "$ac_ct_STRIP" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3332 if test "x$ac_ct_STRIP" = x; then
3333 STRIP=":"
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 STRIP=$ac_ct_STRIP
3343 else
3344 STRIP="$ac_cv_prog_STRIP"
3348 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3351 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3352 if test -z "$MKDIR_P"; then
3353 if ${ac_cv_path_mkdir+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_prog in mkdir gmkdir; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3364 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3365 'mkdir (GNU coreutils) '* | \
3366 'mkdir (coreutils) '* | \
3367 'mkdir (fileutils) '4.1*)
3368 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3369 break 3;;
3370 esac
3371 done
3372 done
3373 done
3374 IFS=$as_save_IFS
3378 test -d ./--version && rmdir ./--version
3379 if test "${ac_cv_path_mkdir+set}" = set; then
3380 MKDIR_P="$ac_cv_path_mkdir -p"
3381 else
3382 # As a last resort, use the slow shell script. Don't cache a
3383 # value for MKDIR_P within a source directory, because that will
3384 # break other packages using the cache if that directory is
3385 # removed, or if the value is a relative name.
3386 MKDIR_P="$ac_install_sh -d"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3390 $as_echo "$MKDIR_P" >&6; }
3392 for ac_prog in gawk mawk nawk awk
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_AWK+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$AWK"; then
3402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_AWK="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3417 IFS=$as_save_IFS
3421 AWK=$ac_cv_prog_AWK
3422 if test -n "$AWK"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3424 $as_echo "$AWK" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$AWK" && break
3432 done
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3436 set x ${MAKE-make}
3437 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3438 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 cat >conftest.make <<\_ACEOF
3442 SHELL = /bin/sh
3443 all:
3444 @echo '@@@%%%=$(MAKE)=@@@%%%'
3445 _ACEOF
3446 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3448 *@@@%%%=?*=@@@%%%*)
3449 eval ac_cv_prog_make_${ac_make}_set=yes;;
3451 eval ac_cv_prog_make_${ac_make}_set=no;;
3452 esac
3453 rm -f conftest.make
3455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457 $as_echo "yes" >&6; }
3458 SET_MAKE=
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 SET_MAKE="MAKE=${MAKE-make}"
3465 rm -rf .tst 2>/dev/null
3466 mkdir .tst 2>/dev/null
3467 if test -d .tst; then
3468 am__leading_dot=.
3469 else
3470 am__leading_dot=_
3472 rmdir .tst 2>/dev/null
3474 # Check whether --enable-silent-rules was given.
3475 if test "${enable_silent_rules+set}" = set; then :
3476 enableval=$enable_silent_rules;
3479 case $enable_silent_rules in # (((
3480 yes) AM_DEFAULT_VERBOSITY=0;;
3481 no) AM_DEFAULT_VERBOSITY=1;;
3482 *) AM_DEFAULT_VERBOSITY=1;;
3483 esac
3484 am_make=${MAKE-make}
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3486 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3487 if ${am_cv_make_support_nested_variables+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if $as_echo 'TRUE=$(BAR$(V))
3491 BAR0=false
3492 BAR1=true
3494 am__doit:
3495 @$(TRUE)
3496 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3497 am_cv_make_support_nested_variables=yes
3498 else
3499 am_cv_make_support_nested_variables=no
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3503 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3504 if test $am_cv_make_support_nested_variables = yes; then
3505 AM_V='$(V)'
3506 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3507 else
3508 AM_V=$AM_DEFAULT_VERBOSITY
3509 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3511 AM_BACKSLASH='\'
3513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3515 # is not polluted with repeated "-I."
3516 am__isrc=' -I$(srcdir)'
3517 # test to see if srcdir already configured
3518 if test -f $srcdir/config.status; then
3519 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3523 # test whether we have cygpath
3524 if test -z "$CYGPATH_W"; then
3525 if (cygpath --version) >/dev/null 2>/dev/null; then
3526 CYGPATH_W='cygpath -w'
3527 else
3528 CYGPATH_W=echo
3533 # Define the identity of the package.
3534 PACKAGE='amule'
3535 VERSION='SVN'
3538 cat >>confdefs.h <<_ACEOF
3539 #define PACKAGE "$PACKAGE"
3540 _ACEOF
3543 cat >>confdefs.h <<_ACEOF
3544 #define VERSION "$VERSION"
3545 _ACEOF
3547 # Some tools Automake needs.
3549 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3552 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3555 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3558 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3561 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3563 # For better backward compatibility. To be removed once Automake 1.9.x
3564 # dies out for good. For more background, see:
3565 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3566 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3567 mkdir_p='$(MKDIR_P)'
3569 # We need awk for the "check" target (and possibly the TAP driver). The
3570 # system "awk" is bad on some platforms.
3571 # Always define AMTAR for backward compatibility. Yes, it's still used
3572 # in the wild :-( We should find a proper way to deprecate it ...
3573 AMTAR='$${TAR-tar}'
3576 # We'll loop over all known methods to create a tar archive until one works.
3577 _am_tools='gnutar pax cpio none'
3579 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3586 # POSIX will say in a future version that running "rm -f" with no argument
3587 # is OK; and we want to be able to make that assumption in our Makefile
3588 # recipes. So use an aggressive probe to check that the usage we want is
3589 # actually supported "in the wild" to an acceptable degree.
3590 # See automake bug#10828.
3591 # To make any issue more visible, cause the running configure to be aborted
3592 # by default if the 'rm' program in use doesn't match our expectations; the
3593 # user can still override this though.
3594 if rm -f && rm -fr && rm -rf; then : OK; else
3595 cat >&2 <<'END'
3596 Oops!
3598 Your 'rm' program seems unable to run without file operands specified
3599 on the command line, even when the '-f' option is present. This is contrary
3600 to the behaviour of most rm programs out there, and not conforming with
3601 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3603 Please tell bug-automake@gnu.org about your system, including the value
3604 of your $PATH and any error possibly output before this message. This
3605 can help us improve future automake versions.
3608 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3609 echo 'Configuration will proceed anyway, since you have set the' >&2
3610 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3611 echo >&2
3612 else
3613 cat >&2 <<'END'
3614 Aborting the configuration process, to ensure you take notice of the issue.
3616 You can download and install GNU coreutils to get an 'rm' implementation
3617 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3619 If you want to complete the configuration process using your problematic
3620 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3621 to "yes", and re-run configure.
3624 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3628 # Check whether --enable-silent-rules was given.
3629 if test "${enable_silent_rules+set}" = set; then :
3630 enableval=$enable_silent_rules;
3633 case $enable_silent_rules in # (((
3634 yes) AM_DEFAULT_VERBOSITY=0;;
3635 no) AM_DEFAULT_VERBOSITY=1;;
3636 *) AM_DEFAULT_VERBOSITY=1;;
3637 esac
3638 am_make=${MAKE-make}
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3640 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3641 if ${am_cv_make_support_nested_variables+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if $as_echo 'TRUE=$(BAR$(V))
3645 BAR0=false
3646 BAR1=true
3648 am__doit:
3649 @$(TRUE)
3650 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3651 am_cv_make_support_nested_variables=yes
3652 else
3653 am_cv_make_support_nested_variables=no
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3657 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3658 if test $am_cv_make_support_nested_variables = yes; then
3659 AM_V='$(V)'
3660 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3661 else
3662 AM_V=$AM_DEFAULT_VERBOSITY
3663 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3665 AM_BACKSLASH='\'
3671 ac_config_headers="$ac_config_headers config.h"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3676 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3677 # Check whether --enable-maintainer-mode was given.
3678 if test "${enable_maintainer_mode+set}" = set; then :
3679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3680 else
3681 USE_MAINTAINER_MODE=no
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3685 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3686 if test $USE_MAINTAINER_MODE = yes; then
3687 MAINTAINER_MODE_TRUE=
3688 MAINTAINER_MODE_FALSE='#'
3689 else
3690 MAINTAINER_MODE_TRUE='#'
3691 MAINTAINER_MODE_FALSE=
3694 MAINT=$MAINTAINER_MODE_TRUE
3698 # Make sure we can run config.sub.
3699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3700 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3703 $as_echo_n "checking build system type... " >&6; }
3704 if ${ac_cv_build+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_build_alias=$build_alias
3708 test "x$ac_build_alias" = x &&
3709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3710 test "x$ac_build_alias" = x &&
3711 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3717 $as_echo "$ac_cv_build" >&6; }
3718 case $ac_cv_build in
3719 *-*-*) ;;
3720 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3721 esac
3722 build=$ac_cv_build
3723 ac_save_IFS=$IFS; IFS='-'
3724 set x $ac_cv_build
3725 shift
3726 build_cpu=$1
3727 build_vendor=$2
3728 shift; shift
3729 # Remember, the first character of IFS is used to create $*,
3730 # except with old shells:
3731 build_os=$*
3732 IFS=$ac_save_IFS
3733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3737 $as_echo_n "checking host system type... " >&6; }
3738 if ${ac_cv_host+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test "x$host_alias" = x; then
3742 ac_cv_host=$ac_cv_build
3743 else
3744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3750 $as_echo "$ac_cv_host" >&6; }
3751 case $ac_cv_host in
3752 *-*-*) ;;
3753 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3754 esac
3755 host=$ac_cv_host
3756 ac_save_IFS=$IFS; IFS='-'
3757 set x $ac_cv_host
3758 shift
3759 host_cpu=$1
3760 host_vendor=$2
3761 shift; shift
3762 # Remember, the first character of IFS is used to create $*,
3763 # except with old shells:
3764 host_os=$*
3765 IFS=$ac_save_IFS
3766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770 case "${host_os}" in
3771 darwin*)
3772 SYS=darwin
3773 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3774 MULELDFLAGS="-bind_at_load"
3775 touch src/Scanner.cpp
3777 openbsd*)
3778 SYS=openbsd
3779 LIBS="$LIBS -L/usr/local/lib"
3780 MULECPPFLAGS="-D__OPENBSD__"
3782 *cygwin* | *mingw32*)
3783 SYS=win32
3784 MULECPPFLAGS="-DNOMINMAX"
3786 solaris*)
3787 SYS=solaris
3788 RESOLV_LIB="-lresolv -lnsl"
3789 LIBS="$LIBS -lrt"
3791 *netbsd*)
3792 SYS=netbsd
3793 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3794 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3795 # Still, we prepend them, instead of adding, so the user may override them.
3796 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3797 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3799 *irix*)
3800 SYS=irix
3801 MULECPPFLAGS="-D__IRIX__"
3804 SYS=unknown
3806 esac
3808 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3809 if test ${SYS:-unknown} != win32; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3812 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3813 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3815 MULELDFLAGS="$MULELDFLAGS -pthread"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 $as_echo "yes" >&6; }
3819 else
3821 MULELDFLAGS="$MULELDFLAGS -lpthread"
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3831 mule_backup_CFLAGS="$CFLAGS"
3832 mule_backup_CXXFLAGS="$CXXFLAGS"
3833 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3834 ac_ext=cpp
3835 ac_cpp='$CXXCPP $CPPFLAGS'
3836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3839 if test -z "$CXX"; then
3840 if test -n "$CCC"; then
3841 CXX=$CCC
3842 else
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_CXX+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 if test -n "$CXX"; then
3854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3869 IFS=$as_save_IFS
3873 CXX=$ac_cv_prog_CXX
3874 if test -n "$CXX"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3876 $as_echo "$CXX" >&6; }
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3883 test -n "$CXX" && break
3884 done
3886 if test -z "$CXX"; then
3887 ac_ct_CXX=$CXX
3888 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -n "$ac_ct_CXX"; then
3898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_ac_ct_CXX="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3911 done
3912 done
3913 IFS=$as_save_IFS
3917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3918 if test -n "$ac_ct_CXX"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3920 $as_echo "$ac_ct_CXX" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$ac_ct_CXX" && break
3928 done
3930 if test "x$ac_ct_CXX" = x; then
3931 CXX="g++"
3932 else
3933 case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939 CXX=$ac_ct_CXX
3945 # Provide some information about the compiler.
3946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3947 set X $ac_compile
3948 ac_compiler=$2
3949 for ac_option in --version -v -V -qversion; do
3950 { { ac_try="$ac_compiler $ac_option >&5"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3958 ac_status=$?
3959 if test -s conftest.err; then
3960 sed '10a\
3961 ... rest of stderr output deleted ...
3962 10q' conftest.err >conftest.er1
3963 cat conftest.er1 >&5
3965 rm -f conftest.er1 conftest.err
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }
3968 done
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 main ()
3978 return 0;
3980 _ACEOF
3981 ac_clean_files_save=$ac_clean_files
3982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3983 # Try to create an executable without -o first, disregard a.out.
3984 # It will help us diagnose broken compilers, and finding out an intuition
3985 # of exeext.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3987 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3988 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3990 # The possible output files:
3991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3993 ac_rmfiles=
3994 for ac_file in $ac_files
3996 case $ac_file in
3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3999 esac
4000 done
4001 rm -f $ac_rmfiles
4003 if { { ac_try="$ac_link_default"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_link_default") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4017 # so that the user can short-circuit this test for compilers unknown to
4018 # Autoconf.
4019 for ac_file in $ac_files ''
4021 test -f "$ac_file" || continue
4022 case $ac_file in
4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4025 [ab].out )
4026 # We found the default executable, but exeext='' is most
4027 # certainly right.
4028 break;;
4029 *.* )
4030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4031 then :; else
4032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4034 # We set ac_cv_exeext here because the later test for it is not
4035 # safe: cross compilers may not add the suffix if given an `-o'
4036 # argument, so we may need to know it at that point already.
4037 # Even if this section looks crufty: it has the advantage of
4038 # actually working.
4039 break;;
4041 break;;
4042 esac
4043 done
4044 test "$ac_cv_exeext" = no && ac_cv_exeext=
4046 else
4047 ac_file=''
4049 if test -z "$ac_file"; then :
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 $as_echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error 77 "C++ compiler cannot create executables
4058 See \`config.log' for more details" "$LINENO" 5; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061 $as_echo "yes" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4064 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4066 $as_echo "$ac_file" >&6; }
4067 ac_exeext=$ac_cv_exeext
4069 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4070 ac_clean_files=$ac_clean_files_save
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4072 $as_echo_n "checking for suffix of executables... " >&6; }
4073 if { { ac_try="$ac_link"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_link") 2>&5
4081 ac_status=$?
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4085 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4086 # work properly (i.e., refer to `conftest.exe'), while it won't with
4087 # `rm'.
4088 for ac_file in conftest.exe conftest conftest.*; do
4089 test -f "$ac_file" || continue
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4093 break;;
4094 * ) break;;
4095 esac
4096 done
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4101 See \`config.log' for more details" "$LINENO" 5; }
4103 rm -f conftest conftest$ac_cv_exeext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4105 $as_echo "$ac_cv_exeext" >&6; }
4107 rm -f conftest.$ac_ext
4108 EXEEXT=$ac_cv_exeext
4109 ac_exeext=$EXEEXT
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <stdio.h>
4114 main ()
4116 FILE *f = fopen ("conftest.out", "w");
4117 return ferror (f) || fclose (f) != 0;
4120 return 0;
4122 _ACEOF
4123 ac_clean_files="$ac_clean_files conftest.out"
4124 # Check that the compiler produces executables we can run. If not, either
4125 # the compiler is broken, or we cross compile.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4127 $as_echo_n "checking whether we are cross compiling... " >&6; }
4128 if test "$cross_compiling" != yes; then
4129 { { ac_try="$ac_link"
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_link") 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }
4140 if { ac_try='./conftest$ac_cv_exeext'
4141 { { case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; }; then
4151 cross_compiling=no
4152 else
4153 if test "$cross_compiling" = maybe; then
4154 cross_compiling=yes
4155 else
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "cannot run C++ compiled programs.
4159 If you meant to cross compile, use \`--host'.
4160 See \`config.log' for more details" "$LINENO" 5; }
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4165 $as_echo "$cross_compiling" >&6; }
4167 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4168 ac_clean_files=$ac_clean_files_save
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4170 $as_echo_n "checking for suffix of object files... " >&6; }
4171 if ${ac_cv_objext+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 rm -f conftest.o conftest.obj
4186 if { { ac_try="$ac_compile"
4187 case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4192 $as_echo "$ac_try_echo"; } >&5
4193 (eval "$ac_compile") 2>&5
4194 ac_status=$?
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }; then :
4197 for ac_file in conftest.o conftest.obj conftest.*; do
4198 test -f "$ac_file" || continue;
4199 case $ac_file in
4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4202 break;;
4203 esac
4204 done
4205 else
4206 $as_echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error $? "cannot compute suffix of object files: cannot compile
4212 See \`config.log' for more details" "$LINENO" 5; }
4214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4217 $as_echo "$ac_cv_objext" >&6; }
4218 OBJEXT=$ac_cv_objext
4219 ac_objext=$OBJEXT
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4221 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4222 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4229 main ()
4231 #ifndef __GNUC__
4232 choke me
4233 #endif
4236 return 0;
4238 _ACEOF
4239 if ac_fn_cxx_try_compile "$LINENO"; then :
4240 ac_compiler_gnu=yes
4241 else
4242 ac_compiler_gnu=no
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4250 if test $ac_compiler_gnu = yes; then
4251 GXX=yes
4252 else
4253 GXX=
4255 ac_test_CXXFLAGS=${CXXFLAGS+set}
4256 ac_save_CXXFLAGS=$CXXFLAGS
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4258 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4259 if ${ac_cv_prog_cxx_g+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4263 ac_cxx_werror_flag=yes
4264 ac_cv_prog_cxx_g=no
4265 CXXFLAGS="-g"
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4270 main ()
4274 return 0;
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 ac_cv_prog_cxx_g=yes
4279 else
4280 CXXFLAGS=""
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4285 main ()
4289 return 0;
4291 _ACEOF
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 else
4295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 CXXFLAGS="-g"
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4301 main ()
4305 return 0;
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309 ac_cv_prog_cxx_g=yes
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4319 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4320 if test "$ac_test_CXXFLAGS" = set; then
4321 CXXFLAGS=$ac_save_CXXFLAGS
4322 elif test $ac_cv_prog_cxx_g = yes; then
4323 if test "$GXX" = yes; then
4324 CXXFLAGS="-g -O2"
4325 else
4326 CXXFLAGS="-g"
4328 else
4329 if test "$GXX" = yes; then
4330 CXXFLAGS="-O2"
4331 else
4332 CXXFLAGS=
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 DEPDIR="${am__leading_dot}deps"
4342 ac_config_commands="$ac_config_commands depfiles"
4345 am_make=${MAKE-make}
4346 cat > confinc << 'END'
4347 am__doit:
4348 @echo this is the am__doit target
4349 .PHONY: am__doit
4351 # If we don't find an include directive, just comment out the code.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4353 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4354 am__include="#"
4355 am__quote=
4356 _am_result=none
4357 # First try GNU make style include.
4358 echo "include confinc" > confmf
4359 # Ignore all kinds of additional output from 'make'.
4360 case `$am_make -s -f confmf 2> /dev/null` in #(
4361 *the\ am__doit\ target*)
4362 am__include=include
4363 am__quote=
4364 _am_result=GNU
4366 esac
4367 # Now try BSD make style include.
4368 if test "$am__include" = "#"; then
4369 echo '.include "confinc"' > confmf
4370 case `$am_make -s -f confmf 2> /dev/null` in #(
4371 *the\ am__doit\ target*)
4372 am__include=.include
4373 am__quote="\""
4374 _am_result=BSD
4376 esac
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4381 $as_echo "$_am_result" >&6; }
4382 rm -f confinc confmf
4384 # Check whether --enable-dependency-tracking was given.
4385 if test "${enable_dependency_tracking+set}" = set; then :
4386 enableval=$enable_dependency_tracking;
4389 if test "x$enable_dependency_tracking" != xno; then
4390 am_depcomp="$ac_aux_dir/depcomp"
4391 AMDEPBACKSLASH='\'
4392 am__nodep='_no'
4394 if test "x$enable_dependency_tracking" != xno; then
4395 AMDEP_TRUE=
4396 AMDEP_FALSE='#'
4397 else
4398 AMDEP_TRUE='#'
4399 AMDEP_FALSE=
4404 depcc="$CXX" am_compiler_list=
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
4408 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412 # We make a subdir and do the tests there. Otherwise we can end up
4413 # making bogus files that we don't know about and never remove. For
4414 # instance it was reported that on HP-UX the gcc test will end up
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
4416 # in D".
4417 rm -rf conftest.dir
4418 mkdir conftest.dir
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
4420 # using a relative directory.
4421 cp "$am_depcomp" conftest.dir
4422 cd conftest.dir
4423 # We will build objects and dependencies in a subdirectory because
4424 # it helps to detect inapplicable dependency modes. For instance
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
4426 # side effect of compilation, but ICC will put the dependencies in
4427 # the current directory while Tru64 will put them in the object
4428 # directory.
4429 mkdir sub
4431 am_cv_CXX_dependencies_compiler_type=none
4432 if test "$am_compiler_list" = ""; then
4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4435 am__universal=false
4436 case " $depcc " in #(
4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4438 esac
4440 for depmode in $am_compiler_list; do
4441 # Setup a source with many dependencies, because some compilers
4442 # like to wrap large dependency lists on column 80 (with \), and
4443 # we should not choose a depcomp mode which is confused by this.
4445 # We need to recreate these files for each test, as the compiler may
4446 # overwrite some of them when testing with obscure command lines.
4447 # This happens at least with the AIX C compiler.
4448 : > sub/conftest.c
4449 for i in 1 2 3 4 5 6; do
4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4452 # Solaris 10 /bin/sh.
4453 echo '/* dummy */' > sub/conftst$i.h
4454 done
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4458 # mode. It turns out that the SunPro C++ compiler does not properly
4459 # handle '-M -o', and we need to detect this. Also, some Intel
4460 # versions had trouble with output in subdirs.
4461 am__obj=sub/conftest.${OBJEXT-o}
4462 am__minus_obj="-o $am__obj"
4463 case $depmode in
4464 gcc)
4465 # This depmode causes a compiler race in universal mode.
4466 test "$am__universal" = false || continue
4468 nosideeffect)
4469 # After this tag, mechanisms are not by side-effect, so they'll
4470 # only be used when explicitly requested.
4471 if test "x$enable_dependency_tracking" = xyes; then
4472 continue
4473 else
4474 break
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4478 # This compiler won't grok '-c -o', but also, the minuso test has
4479 # not run yet. These depmodes are late enough in the game, and
4480 # so weak that their functioning should not be impacted.
4481 am__obj=conftest.${OBJEXT-o}
4482 am__minus_obj=
4484 none) break ;;
4485 esac
4486 if depmode=$depmode \
4487 source=sub/conftest.c object=$am__obj \
4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4490 >/dev/null 2>conftest.err &&
4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4495 # icc doesn't choke on unknown options, it will just issue warnings
4496 # or remarks (even with -Werror). So we grep stderr for any message
4497 # that says an option was ignored or not supported.
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
4499 # icc: Command line warning: ignoring option '-M'; no argument required
4500 # The diagnosis changed in icc 8.0:
4501 # icc: Command line remark: option '-MP' not supported
4502 if (grep 'ignoring option' conftest.err ||
4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4504 am_cv_CXX_dependencies_compiler_type=$depmode
4505 break
4508 done
4510 cd ..
4511 rm -rf conftest.dir
4512 else
4513 am_cv_CXX_dependencies_compiler_type=none
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4518 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4522 test "x$enable_dependency_tracking" != xno \
4523 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4524 am__fastdepCXX_TRUE=
4525 am__fastdepCXX_FALSE='#'
4526 else
4527 am__fastdepCXX_TRUE='#'
4528 am__fastdepCXX_FALSE=
4532 ac_ext=cpp
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4538 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4539 if test -z "$CXXCPP"; then
4540 if ${ac_cv_prog_CXXCPP+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 # Double quotes because CXXCPP needs to be expanded
4544 for CXXCPP in "$CXX -E" "/lib/cpp"
4546 ac_preproc_ok=false
4547 for ac_cxx_preproc_warn_flag in '' yes
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #ifdef __STDC__
4558 # include <limits.h>
4559 #else
4560 # include <assert.h>
4561 #endif
4562 Syntax error
4563 _ACEOF
4564 if ac_fn_cxx_try_cpp "$LINENO"; then :
4566 else
4567 # Broken: fails on valid input.
4568 continue
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4577 _ACEOF
4578 if ac_fn_cxx_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4580 continue
4581 else
4582 # Passes both tests.
4583 ac_preproc_ok=:
4584 break
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4588 done
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.i conftest.err conftest.$ac_ext
4591 if $ac_preproc_ok; then :
4592 break
4595 done
4596 ac_cv_prog_CXXCPP=$CXXCPP
4599 CXXCPP=$ac_cv_prog_CXXCPP
4600 else
4601 ac_cv_prog_CXXCPP=$CXXCPP
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4604 $as_echo "$CXXCPP" >&6; }
4605 ac_preproc_ok=false
4606 for ac_cxx_preproc_warn_flag in '' yes
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621 Syntax error
4622 _ACEOF
4623 if ac_fn_cxx_try_cpp "$LINENO"; then :
4625 else
4626 # Broken: fails on valid input.
4627 continue
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4636 _ACEOF
4637 if ac_fn_cxx_try_cpp "$LINENO"; then :
4638 # Broken: success on invalid input.
4639 continue
4640 else
4641 # Passes both tests.
4642 ac_preproc_ok=:
4643 break
4645 rm -f conftest.err conftest.i conftest.$ac_ext
4647 done
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.i conftest.err conftest.$ac_ext
4650 if $ac_preproc_ok; then :
4652 else
4653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4656 See \`config.log' for more details" "$LINENO" 5; }
4659 ac_ext=c
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 CC=$ac_cv_prog_CC
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_CC"; then
4710 ac_ct_CC=$CC
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_CC" = x; then
4748 CC=""
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 CC=$ac_ct_CC
4758 else
4759 CC="$ac_cv_prog_CC"
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}cc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC="$CC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4791 CC=$ac_cv_prog_CC
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 ac_prog_rejected=no
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected=yes
4824 continue
4826 ac_cv_prog_CC="cc"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy $ac_cv_prog_CC
4837 shift
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4842 shift
4843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog in cl.exe
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC="$CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 CC=$ac_cv_prog_CC
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$CC" && break
4901 done
4903 if test -z "$CC"; then
4904 ac_ct_CC=$CC
4905 for ac_prog in cl.exe
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$ac_ct_CC" && break
4945 done
4947 if test "x$ac_ct_CC" = x; then
4948 CC=""
4949 else
4950 case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956 CC=$ac_ct_CC
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $? "no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4970 set X $ac_compile
4971 ac_compiler=$2
4972 for ac_option in --version -v -V -qversion; do
4973 { { ac_try="$ac_compiler $ac_option >&5"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4981 ac_status=$?
4982 if test -s conftest.err; then
4983 sed '10a\
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4991 done
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5004 #ifndef __GNUC__
5005 choke me
5006 #endif
5009 return 0;
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_compiler_gnu=yes
5014 else
5015 ac_compiler_gnu=no
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5024 GCC=yes
5025 else
5026 GCC=
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5037 ac_cv_prog_cc_g=no
5038 CFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_g=yes
5052 else
5053 CFLAGS=""
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5058 main ()
5062 return 0;
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5067 else
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5069 CFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5074 main ()
5078 return 0;
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_prog_cc_g=yes
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5097 CFLAGS="-g -O2"
5098 else
5099 CFLAGS="-g"
5101 else
5102 if test "$GCC" = yes; then
5103 CFLAGS="-O2"
5104 else
5105 CFLAGS=
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 ac_cv_prog_cc_c89=no
5114 ac_save_CC=$CC
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #include <stdarg.h>
5118 #include <stdio.h>
5119 struct stat;
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5124 char **p;
5125 int i;
5127 return p[i];
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5131 char *s;
5132 va_list v;
5133 va_start (v,p);
5134 s = g (p, va_arg (v,int));
5135 va_end (v);
5136 return s;
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5150 #define FOO(x) 'x'
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5157 int argc;
5158 char **argv;
5160 main ()
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5164 return 0;
5166 _ACEOF
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5176 done
5177 rm -f conftest.$ac_ext
5178 CC=$ac_save_CC
5181 # AC_CACHE_VAL
5182 case "x$ac_cv_prog_cc_c89" in
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5186 xno)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5193 esac
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5218 main ()
5222 return 0;
5224 _ACEOF
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5230 for am_i in 1 2; do
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5237 : OK
5238 else
5239 am_cv_prog_cc_c_o=no
5240 break
5242 done
5243 rm -f core conftest*
5244 unset am_i
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 depcc="$CC" am_compiler_list=
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5275 # in D".
5276 rm -rf conftest.dir
5277 mkdir conftest.dir
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5281 cd conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5287 # directory.
5288 mkdir sub
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5294 am__universal=false
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5297 esac
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5307 : > sub/conftest.c
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5313 done
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5322 case $depmode in
5323 gcc)
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5327 nosideeffect)
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5331 continue
5332 else
5333 break
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5341 am__minus_obj=
5343 none) break ;;
5344 esac
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5364 break
5367 done
5369 cd ..
5370 rm -rf conftest.dir
5371 else
5372 am_cv_CC_dependencies_compiler_type=none
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5383 am__fastdepCC_TRUE=
5384 am__fastdepCC_FALSE='#'
5385 else
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5397 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5398 # On Suns, sometimes $CPP names a directory.
5399 if test -n "$CPP" && test -d "$CPP"; then
5400 CPP=
5402 if test -z "$CPP"; then
5403 if ${ac_cv_prog_CPP+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 # Double quotes because CPP needs to be expanded
5407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5409 ac_preproc_ok=false
5410 for ac_c_preproc_warn_flag in '' yes
5412 # Use a header file that comes with gcc, so configuring glibc
5413 # with a fresh cross-compiler works.
5414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5415 # <limits.h> exists even on freestanding compilers.
5416 # On the NeXT, cc -E runs the code through the compiler's parser,
5417 # not just through cpp. "Syntax error" is here to catch this case.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #ifdef __STDC__
5421 # include <limits.h>
5422 #else
5423 # include <assert.h>
5424 #endif
5425 Syntax error
5426 _ACEOF
5427 if ac_fn_c_try_cpp "$LINENO"; then :
5429 else
5430 # Broken: fails on valid input.
5431 continue
5433 rm -f conftest.err conftest.i conftest.$ac_ext
5435 # OK, works on sane cases. Now check whether nonexistent headers
5436 # can be detected and how.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <ac_nonexistent.h>
5440 _ACEOF
5441 if ac_fn_c_try_cpp "$LINENO"; then :
5442 # Broken: success on invalid input.
5443 continue
5444 else
5445 # Passes both tests.
5446 ac_preproc_ok=:
5447 break
5449 rm -f conftest.err conftest.i conftest.$ac_ext
5451 done
5452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5453 rm -f conftest.i conftest.err conftest.$ac_ext
5454 if $ac_preproc_ok; then :
5455 break
5458 done
5459 ac_cv_prog_CPP=$CPP
5462 CPP=$ac_cv_prog_CPP
5463 else
5464 ac_cv_prog_CPP=$CPP
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5467 $as_echo "$CPP" >&6; }
5468 ac_preproc_ok=false
5469 for ac_c_preproc_warn_flag in '' yes
5471 # Use a header file that comes with gcc, so configuring glibc
5472 # with a fresh cross-compiler works.
5473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5474 # <limits.h> exists even on freestanding compilers.
5475 # On the NeXT, cc -E runs the code through the compiler's parser,
5476 # not just through cpp. "Syntax error" is here to catch this case.
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #ifdef __STDC__
5480 # include <limits.h>
5481 #else
5482 # include <assert.h>
5483 #endif
5484 Syntax error
5485 _ACEOF
5486 if ac_fn_c_try_cpp "$LINENO"; then :
5488 else
5489 # Broken: fails on valid input.
5490 continue
5492 rm -f conftest.err conftest.i conftest.$ac_ext
5494 # OK, works on sane cases. Now check whether nonexistent headers
5495 # can be detected and how.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <ac_nonexistent.h>
5499 _ACEOF
5500 if ac_fn_c_try_cpp "$LINENO"; then :
5501 # Broken: success on invalid input.
5502 continue
5503 else
5504 # Passes both tests.
5505 ac_preproc_ok=:
5506 break
5508 rm -f conftest.err conftest.i conftest.$ac_ext
5510 done
5511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5512 rm -f conftest.i conftest.err conftest.$ac_ext
5513 if $ac_preproc_ok; then :
5515 else
5516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5518 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5519 See \`config.log' for more details" "$LINENO" 5; }
5522 ac_ext=c
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 ac_build_prefix=
5529 test -n "$build_alias" && ac_build_prefix=$build_alias-
5531 if test "$cross_compiling" = yes; then :
5533 # Even if we're cross-compiling, we want a compiler here
5534 # that is not a cross-compiler.
5535 saved_cross=$cross_compiling
5536 cross_compiling=no
5538 ac_ext=c
5539 ac_cpp='$CPP $BUILD_CPPFLAGS'
5540 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 if test -n "$ac_build_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5545 set dummy ${ac_build_prefix}gcc; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_BUILD_CC+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$BUILD_CC"; then
5552 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 BUILD_CC=$ac_cv_prog_BUILD_CC
5572 if test -n "$BUILD_CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5574 $as_echo "$BUILD_CC" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$ac_cv_prog_BUILD_CC"; then
5583 ac_ct_BUILD_CC=$BUILD_CC
5584 # Extract the first word of "gcc", so it can be a program name with args.
5585 set dummy gcc; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$ac_ct_BUILD_CC"; then
5592 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5605 done
5606 done
5607 IFS=$as_save_IFS
5611 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5612 if test -n "$ac_ct_BUILD_CC"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5614 $as_echo "$ac_ct_BUILD_CC" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_BUILD_CC" = x; then
5621 BUILD_CC=""
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629 BUILD_CC=$ac_ct_BUILD_CC
5631 else
5632 BUILD_CC="$ac_cv_prog_BUILD_CC"
5635 if test -z "$BUILD_CC"; then
5636 if test -n "$ac_build_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5638 set dummy ${ac_build_prefix}cc; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_BUILD_CC+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$BUILD_CC"; then
5645 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5660 IFS=$as_save_IFS
5664 BUILD_CC=$ac_cv_prog_BUILD_CC
5665 if test -n "$BUILD_CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5667 $as_echo "$BUILD_CC" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$ac_cv_prog_BUILD_CC"; then
5676 ac_ct_BUILD_CC=$BUILD_CC
5677 # Extract the first word of "cc", so it can be a program name with args.
5678 set dummy cc; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_BUILD_CC"; then
5685 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_BUILD_CC="cc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5700 IFS=$as_save_IFS
5704 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5705 if test -n "$ac_ct_BUILD_CC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5707 $as_echo "$ac_ct_BUILD_CC" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5713 if test "x$ac_ct_BUILD_CC" = x; then
5714 BUILD_CC=""
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722 BUILD_CC=$ac_ct_BUILD_CC
5724 else
5725 BUILD_CC="$ac_cv_prog_BUILD_CC"
5729 if test -z "$BUILD_CC"; then
5730 # Extract the first word of "cc", so it can be a program name with args.
5731 set dummy cc; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_BUILD_CC+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$BUILD_CC"; then
5738 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5739 else
5740 ac_prog_rejected=no
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5749 ac_prog_rejected=yes
5750 continue
5752 ac_cv_prog_BUILD_CC="cc"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5756 done
5757 done
5758 IFS=$as_save_IFS
5760 if test $ac_prog_rejected = yes; then
5761 # We found a bogon in the path, so make sure we never use it.
5762 set dummy $ac_cv_prog_BUILD_CC
5763 shift
5764 if test $# != 0; then
5765 # We chose a different compiler from the bogus one.
5766 # However, it has the same basename, so the bogon will be chosen
5767 # first if we set BUILD_CC to just the basename; use the full file name.
5768 shift
5769 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5774 BUILD_CC=$ac_cv_prog_BUILD_CC
5775 if test -n "$BUILD_CC"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5777 $as_echo "$BUILD_CC" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5785 if test -z "$BUILD_CC"; then
5786 if test -n "$ac_build_prefix"; then
5787 for ac_prog in cl
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_BUILD_CC+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if test -n "$BUILD_CC"; then
5797 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5816 BUILD_CC=$ac_cv_prog_BUILD_CC
5817 if test -n "$BUILD_CC"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5819 $as_echo "$BUILD_CC" >&6; }
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5826 test -n "$BUILD_CC" && break
5827 done
5829 if test -z "$BUILD_CC"; then
5830 ac_ct_BUILD_CC=$BUILD_CC
5831 for ac_prog in cl
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy $ac_prog; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_BUILD_CC"; then
5841 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5861 if test -n "$ac_ct_BUILD_CC"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5863 $as_echo "$ac_ct_BUILD_CC" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5870 test -n "$ac_ct_BUILD_CC" && break
5871 done
5873 if test "x$ac_ct_BUILD_CC" = x; then
5874 BUILD_CC=""
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5881 esac
5882 BUILD_CC=$ac_ct_BUILD_CC
5889 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5891 as_fn_error $? "no acceptable C compiler found in \$PATH
5892 See \`config.log' for more details" "$LINENO" 5; }
5894 # Provide some information about the compiler.
5895 echo "$as_me:$LINENO:" \
5896 "checking for C compiler version" >&5
5897 ac_compiler=`set X $ac_compile; echo $2`
5898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5899 (eval $ac_compiler --version </dev/null >&5) 2>&5
5900 ac_status=$?
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5904 (eval $ac_compiler -v </dev/null >&5) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5909 (eval $ac_compiler -V </dev/null >&5) 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5918 main ()
5922 return 0;
5924 _ACEOF
5925 ac_clean_files_save=$ac_clean_files
5926 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5927 # Try to create an executable without -o first, disregard a.out.
5928 # It will help us diagnose broken compilers, and finding out an intuition
5929 # of exeext.
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5931 $as_echo_n "checking whether the C compiler works... " >&6; }
5932 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5934 # The possible output files:
5935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5937 ac_rmfiles=
5938 for ac_file in $ac_files
5940 case $ac_file in
5941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5943 esac
5944 done
5945 rm -f $ac_rmfiles
5947 if { { ac_try="$ac_link_default"
5948 case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5953 $as_echo "$ac_try_echo"; } >&5
5954 (eval "$ac_link_default") 2>&5
5955 ac_status=$?
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }; then :
5958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5961 # so that the user can short-circuit this test for compilers unknown to
5962 # Autoconf.
5963 for ac_file in $ac_files ''
5965 test -f "$ac_file" || continue
5966 case $ac_file in
5967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5969 [ab].out )
5970 # We found the default executable, but exeext='' is most
5971 # certainly right.
5972 break;;
5973 *.* )
5974 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5975 then :; else
5976 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5978 # We set ac_cv_exeext here because the later test for it is not
5979 # safe: cross compilers may not add the suffix if given an `-o'
5980 # argument, so we may need to know it at that point already.
5981 # Even if this section looks crufty: it has the advantage of
5982 # actually working.
5983 break;;
5985 break;;
5986 esac
5987 done
5988 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5990 else
5991 ac_file=''
5993 if test -z "$ac_file"; then :
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 as_fn_error 77 "C compiler cannot create executables
6002 See \`config.log' for more details" "$LINENO" 5; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6008 $as_echo_n "checking for C compiler default output file name... " >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6010 $as_echo "$ac_file" >&6; }
6011 ac_build_exeext=$ac_cv_build_exeext
6013 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6014 ac_clean_files=$ac_clean_files_save
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6016 $as_echo_n "checking for suffix of executables... " >&6; }
6017 if { { ac_try="$ac_link"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6023 $as_echo "$ac_try_echo"; } >&5
6024 (eval "$ac_link") 2>&5
6025 ac_status=$?
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; then :
6028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6029 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6030 # work properly (i.e., refer to `conftest.exe'), while it won't with
6031 # `rm'.
6032 for ac_file in conftest.exe conftest conftest.*; do
6033 test -f "$ac_file" || continue
6034 case $ac_file in
6035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6036 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6037 break;;
6038 * ) break;;
6039 esac
6040 done
6041 else
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6045 See \`config.log' for more details" "$LINENO" 5; }
6047 rm -f conftest conftest$ac_cv_build_exeext
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6049 $as_echo "$ac_cv_build_exeext" >&6; }
6051 rm -f conftest.$ac_ext
6052 BUILD_EXEEXT=$ac_cv_build_exeext
6053 ac_build_exeext=$BUILD_EXEEXT
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <stdio.h>
6058 main ()
6060 FILE *f = fopen ("conftest.out", "w");
6061 return ferror (f) || fclose (f) != 0;
6064 return 0;
6066 _ACEOF
6067 ac_clean_files="$ac_clean_files conftest.out"
6068 # Check that the compiler produces executables we can run. If not, either
6069 # the compiler is broken, or we cross compile.
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6071 $as_echo_n "checking whether we are cross compiling... " >&6; }
6072 if test "$cross_compiling" != yes; then
6073 { { ac_try="$ac_link"
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_link") 2>&5
6081 ac_status=$?
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }
6084 if { ac_try='./conftest$ac_cv_build_exeext'
6085 { { case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6090 $as_echo "$ac_try_echo"; } >&5
6091 (eval "$ac_try") 2>&5
6092 ac_status=$?
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; }; then
6095 cross_compiling=no
6096 else
6097 if test "$cross_compiling" = maybe; then
6098 cross_compiling=yes
6099 else
6100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6102 as_fn_error $? "cannot run C compiled programs.
6103 If you meant to cross compile, use \`--host'.
6104 See \`config.log' for more details" "$LINENO" 5; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6109 $as_echo "$cross_compiling" >&6; }
6111 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6112 ac_clean_files=$ac_clean_files_save
6115 # Restore configuration environment
6116 cross_compiling=$saved_cross
6118 ac_ext=c
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6124 else
6125 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
6127 CFLAGS="$mule_backup_CFLAGS"
6128 CXXFLAGS="$mule_backup_CXXFLAGS"
6129 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
6130 for ac_prog in gawk mawk nawk awk
6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_prog_AWK+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$AWK"; then
6140 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_AWK="$ac_prog"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 AWK=$ac_cv_prog_AWK
6160 if test -n "$AWK"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6162 $as_echo "$AWK" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6169 test -n "$AWK" && break
6170 done
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6174 if ${ac_cv_path_GREP+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if test -z "$GREP"; then
6178 ac_path_GREP_found=false
6179 # Loop through the user's path and test for each of PROGNAME-LIST
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_prog in grep ggrep; do
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p "$ac_path_GREP" || continue
6189 # Check for GNU ac_path_GREP and select it if it is found.
6190 # Check for GNU $ac_path_GREP
6191 case `"$ac_path_GREP" --version 2>&1` in
6192 *GNU*)
6193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6195 ac_count=0
6196 $as_echo_n 0123456789 >"conftest.in"
6197 while :
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo 'GREP' >> "conftest.nl"
6203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6205 as_fn_arith $ac_count + 1 && ac_count=$as_val
6206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_GREP="$ac_path_GREP"
6209 ac_path_GREP_max=$ac_count
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6213 done
6214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6215 esac
6217 $ac_path_GREP_found && break 3
6218 done
6219 done
6220 done
6221 IFS=$as_save_IFS
6222 if test -z "$ac_cv_path_GREP"; then
6223 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6225 else
6226 ac_cv_path_GREP=$GREP
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6231 $as_echo "$ac_cv_path_GREP" >&6; }
6232 GREP="$ac_cv_path_GREP"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6236 $as_echo_n "checking for egrep... " >&6; }
6237 if ${ac_cv_path_EGREP+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6241 then ac_cv_path_EGREP="$GREP -E"
6242 else
6243 if test -z "$EGREP"; then
6244 ac_path_EGREP_found=false
6245 # Loop through the user's path and test for each of PROGNAME-LIST
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_prog in egrep; do
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6254 as_fn_executable_p "$ac_path_EGREP" || continue
6255 # Check for GNU ac_path_EGREP and select it if it is found.
6256 # Check for GNU $ac_path_EGREP
6257 case `"$ac_path_EGREP" --version 2>&1` in
6258 *GNU*)
6259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6261 ac_count=0
6262 $as_echo_n 0123456789 >"conftest.in"
6263 while :
6265 cat "conftest.in" "conftest.in" >"conftest.tmp"
6266 mv "conftest.tmp" "conftest.in"
6267 cp "conftest.in" "conftest.nl"
6268 $as_echo 'EGREP' >> "conftest.nl"
6269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6271 as_fn_arith $ac_count + 1 && ac_count=$as_val
6272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6273 # Best one so far, save it but keep looking for a better one
6274 ac_cv_path_EGREP="$ac_path_EGREP"
6275 ac_path_EGREP_max=$ac_count
6277 # 10*(2^10) chars as input seems more than enough
6278 test $ac_count -gt 10 && break
6279 done
6280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6281 esac
6283 $ac_path_EGREP_found && break 3
6284 done
6285 done
6286 done
6287 IFS=$as_save_IFS
6288 if test -z "$ac_cv_path_EGREP"; then
6289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6291 else
6292 ac_cv_path_EGREP=$EGREP
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6298 $as_echo "$ac_cv_path_EGREP" >&6; }
6299 EGREP="$ac_cv_path_EGREP"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6304 set x ${MAKE-make}
6305 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6306 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 cat >conftest.make <<\_ACEOF
6310 SHELL = /bin/sh
6311 all:
6312 @echo '@@@%%%=$(MAKE)=@@@%%%'
6313 _ACEOF
6314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6316 *@@@%%%=?*=@@@%%%*)
6317 eval ac_cv_prog_make_${ac_make}_set=yes;;
6319 eval ac_cv_prog_make_${ac_make}_set=no;;
6320 esac
6321 rm -f conftest.make
6323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6325 $as_echo "yes" >&6; }
6326 SET_MAKE=
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 SET_MAKE="MAKE=${MAKE-make}"
6334 for ac_prog in flex lex
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_LEX+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$LEX"; then
6344 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_LEX="$ac_prog"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 LEX=$ac_cv_prog_LEX
6364 if test -n "$LEX"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6366 $as_echo "$LEX" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 test -n "$LEX" && break
6374 done
6375 test -n "$LEX" || LEX=":"
6377 if test "x$LEX" != "x:"; then
6378 cat >conftest.l <<_ACEOF
6380 a { ECHO; }
6381 b { REJECT; }
6382 c { yymore (); }
6383 d { yyless (1); }
6384 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6385 yyless ((input () != 0)); }
6386 f { unput (yytext[0]); }
6387 . { BEGIN INITIAL; }
6389 #ifdef YYTEXT_POINTER
6390 extern char *yytext;
6391 #endif
6393 main (void)
6395 return ! yylex () + ! yywrap ();
6397 _ACEOF
6398 { { ac_try="$LEX conftest.l"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6404 $as_echo "$ac_try_echo"; } >&5
6405 (eval "$LEX conftest.l") 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6410 $as_echo_n "checking lex output file root... " >&6; }
6411 if ${ac_cv_prog_lex_root+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6415 if test -f lex.yy.c; then
6416 ac_cv_prog_lex_root=lex.yy
6417 elif test -f lexyy.c; then
6418 ac_cv_prog_lex_root=lexyy
6419 else
6420 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6424 $as_echo "$ac_cv_prog_lex_root" >&6; }
6425 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6427 if test -z "${LEXLIB+set}"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6429 $as_echo_n "checking lex library... " >&6; }
6430 if ${ac_cv_lib_lex+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6434 ac_save_LIBS=$LIBS
6435 ac_cv_lib_lex='none needed'
6436 for ac_lib in '' -lfl -ll; do
6437 LIBS="$ac_lib $ac_save_LIBS"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 `cat $LEX_OUTPUT_ROOT.c`
6441 _ACEOF
6442 if ac_fn_c_try_link "$LINENO"; then :
6443 ac_cv_lib_lex=$ac_lib
6445 rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 test "$ac_cv_lib_lex" != 'none needed' && break
6448 done
6449 LIBS=$ac_save_LIBS
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6453 $as_echo "$ac_cv_lib_lex" >&6; }
6454 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6459 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6460 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 # POSIX says lex can declare yytext either as a pointer or an array; the
6464 # default is implementation-dependent. Figure out which it is, since
6465 # not all implementations provide the %pointer and %array declarations.
6466 ac_cv_prog_lex_yytext_pointer=no
6467 ac_save_LIBS=$LIBS
6468 LIBS="$LEXLIB $ac_save_LIBS"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6472 #define YYTEXT_POINTER 1
6473 `cat $LEX_OUTPUT_ROOT.c`
6474 _ACEOF
6475 if ac_fn_c_try_link "$LINENO"; then :
6476 ac_cv_prog_lex_yytext_pointer=yes
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 LIBS=$ac_save_LIBS
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6484 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6485 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6487 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6490 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_RANLIB+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$RANLIB"; then
6503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6516 done
6517 done
6518 IFS=$as_save_IFS
6522 RANLIB=$ac_cv_prog_RANLIB
6523 if test -n "$RANLIB"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6525 $as_echo "$RANLIB" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6533 if test -z "$ac_cv_prog_RANLIB"; then
6534 ac_ct_RANLIB=$RANLIB
6535 # Extract the first word of "ranlib", so it can be a program name with args.
6536 set dummy ranlib; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$ac_ct_RANLIB"; then
6543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_ac_ct_RANLIB="ranlib"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6556 done
6557 done
6558 IFS=$as_save_IFS
6562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6563 if test -n "$ac_ct_RANLIB"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6565 $as_echo "$ac_ct_RANLIB" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6571 if test "x$ac_ct_RANLIB" = x; then
6572 RANLIB=":"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580 RANLIB=$ac_ct_RANLIB
6582 else
6583 RANLIB="$ac_cv_prog_RANLIB"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6587 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6588 if ${ac_cv_path_SED+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6592 for ac_i in 1 2 3 4 5 6 7; do
6593 ac_script="$ac_script$as_nl$ac_script"
6594 done
6595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6596 { ac_script=; unset ac_script;}
6597 if test -z "$SED"; then
6598 ac_path_SED_found=false
6599 # Loop through the user's path and test for each of PROGNAME-LIST
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_prog in sed gsed; do
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6608 as_fn_executable_p "$ac_path_SED" || continue
6609 # Check for GNU ac_path_SED and select it if it is found.
6610 # Check for GNU $ac_path_SED
6611 case `"$ac_path_SED" --version 2>&1` in
6612 *GNU*)
6613 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6615 ac_count=0
6616 $as_echo_n 0123456789 >"conftest.in"
6617 while :
6619 cat "conftest.in" "conftest.in" >"conftest.tmp"
6620 mv "conftest.tmp" "conftest.in"
6621 cp "conftest.in" "conftest.nl"
6622 $as_echo '' >> "conftest.nl"
6623 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6625 as_fn_arith $ac_count + 1 && ac_count=$as_val
6626 if test $ac_count -gt ${ac_path_SED_max-0}; then
6627 # Best one so far, save it but keep looking for a better one
6628 ac_cv_path_SED="$ac_path_SED"
6629 ac_path_SED_max=$ac_count
6631 # 10*(2^10) chars as input seems more than enough
6632 test $ac_count -gt 10 && break
6633 done
6634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6635 esac
6637 $ac_path_SED_found && break 3
6638 done
6639 done
6640 done
6641 IFS=$as_save_IFS
6642 if test -z "$ac_cv_path_SED"; then
6643 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6645 else
6646 ac_cv_path_SED=$SED
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6651 $as_echo "$ac_cv_path_SED" >&6; }
6652 SED="$ac_cv_path_SED"
6653 rm -f conftest.sed
6655 for ac_prog in 'bison -y' byacc
6657 # Extract the first word of "$ac_prog", so it can be a program name with args.
6658 set dummy $ac_prog; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_YACC+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 if test -n "$YACC"; then
6665 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_YACC="$ac_prog"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6678 done
6679 done
6680 IFS=$as_save_IFS
6684 YACC=$ac_cv_prog_YACC
6685 if test -n "$YACC"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6687 $as_echo "$YACC" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6694 test -n "$YACC" && break
6695 done
6696 test -n "$YACC" || YACC="yacc"
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_RANLIB+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6730 $as_echo "$RANLIB" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6770 $as_echo "$ac_ct_RANLIB" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_RANLIB" = x; then
6777 RANLIB=""
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 RANLIB=$ac_ct_RANLIB
6787 else
6788 RANLIB="$ac_cv_prog_RANLIB"
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}strip; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_STRIP+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$STRIP"; then
6800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6819 STRIP=$ac_cv_prog_STRIP
6820 if test -n "$STRIP"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6822 $as_echo "$STRIP" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6830 if test -z "$ac_cv_prog_STRIP"; then
6831 ac_ct_STRIP=$STRIP
6832 # Extract the first word of "strip", so it can be a program name with args.
6833 set dummy strip; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$ac_ct_STRIP"; then
6840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_STRIP="strip"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6860 if test -n "$ac_ct_STRIP"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6862 $as_echo "$ac_ct_STRIP" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$ac_ct_STRIP" = x; then
6869 STRIP=""
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 STRIP=$ac_ct_STRIP
6879 else
6880 STRIP="$ac_cv_prog_STRIP"
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}ar; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_AR+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$AR"; then
6892 ac_cv_prog_AR="$AR" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_AR="${ac_tool_prefix}ar"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 AR=$ac_cv_prog_AR
6912 if test -n "$AR"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6914 $as_echo "$AR" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_AR"; then
6923 ac_ct_AR=$AR
6924 # Extract the first word of "ar", so it can be a program name with args.
6925 set dummy ar; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_AR"; then
6932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_AR="ar"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6952 if test -n "$ac_ct_AR"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6954 $as_echo "$ac_ct_AR" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_AR" = x; then
6961 AR=""
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 AR=$ac_ct_AR
6971 else
6972 AR="$ac_cv_prog_AR"
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}ld; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_LD+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$LD"; then
6984 ac_cv_prog_LD="$LD" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_LD="${ac_tool_prefix}ld"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 LD=$ac_cv_prog_LD
7004 if test -n "$LD"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7006 $as_echo "$LD" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7014 if test -z "$ac_cv_prog_LD"; then
7015 ac_ct_LD=$LD
7016 # Extract the first word of "ld", so it can be a program name with args.
7017 set dummy ld; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_LD+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_LD"; then
7024 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_LD="ld"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 ac_ct_LD=$ac_cv_prog_ac_ct_LD
7044 if test -n "$ac_ct_LD"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
7046 $as_echo "$ac_ct_LD" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7052 if test "x$ac_ct_LD" = x; then
7053 LD=""
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 LD=$ac_ct_LD
7063 else
7064 LD="$ac_cv_prog_LD"
7068 # Check whether --enable-monolithic was given.
7069 if test "${enable_monolithic+set}" = set; then :
7070 enableval=$enable_monolithic;
7073 if test ${enable_monolithic:-yes} = yes; then
7074 MONOLITHIC_TRUE=
7075 MONOLITHIC_FALSE='#'
7076 else
7077 MONOLITHIC_TRUE='#'
7078 MONOLITHIC_FALSE=
7082 # Check whether --enable-amule-daemon was given.
7083 if test "${enable_amule_daemon+set}" = set; then :
7084 enableval=$enable_amule_daemon;
7087 if test ${enable_amule_daemon:-no} = yes; then
7088 AMULE_DAEMON_TRUE=
7089 AMULE_DAEMON_FALSE='#'
7090 else
7091 AMULE_DAEMON_TRUE='#'
7092 AMULE_DAEMON_FALSE=
7096 # Check whether --enable-amulecmd was given.
7097 if test "${enable_amulecmd+set}" = set; then :
7098 enableval=$enable_amulecmd;
7101 if test ${enable_amulecmd:-no} = yes; then
7102 COMPILE_CMD_TRUE=
7103 COMPILE_CMD_FALSE='#'
7104 else
7105 COMPILE_CMD_TRUE='#'
7106 COMPILE_CMD_FALSE=
7110 # Check whether --enable-webserver was given.
7111 if test "${enable_webserver+set}" = set; then :
7112 enableval=$enable_webserver;
7115 if test ${enable_webserver:-no} = yes; then
7116 WEB_TRUE=
7117 WEB_FALSE='#'
7118 else
7119 WEB_TRUE='#'
7120 WEB_FALSE=
7124 # Check whether --enable-amule-gui was given.
7125 if test "${enable_amule_gui+set}" = set; then :
7126 enableval=$enable_amule_gui;
7129 if test ${enable_amule_gui:-no} = yes; then
7130 AMULE_GUI_TRUE=
7131 AMULE_GUI_FALSE='#'
7132 else
7133 AMULE_GUI_TRUE='#'
7134 AMULE_GUI_FALSE=
7138 # Check whether --enable-cas was given.
7139 if test "${enable_cas+set}" = set; then :
7140 enableval=$enable_cas;
7143 if test ${enable_cas:-no} = yes; then
7144 CAS_TRUE=
7145 CAS_FALSE='#'
7146 else
7147 CAS_TRUE='#'
7148 CAS_FALSE=
7152 # Check whether --enable-wxcas was given.
7153 if test "${enable_wxcas+set}" = set; then :
7154 enableval=$enable_wxcas;
7157 if test ${enable_wxcas:-no} = yes; then
7158 WXCAS_TRUE=
7159 WXCAS_FALSE='#'
7160 else
7161 WXCAS_TRUE='#'
7162 WXCAS_FALSE=
7166 # Check whether --enable-ed2k was given.
7167 if test "${enable_ed2k+set}" = set; then :
7168 enableval=$enable_ed2k;
7171 if test ${enable_ed2k:-yes} = yes; then
7172 ED2K_TRUE=
7173 ED2K_FALSE='#'
7174 else
7175 ED2K_TRUE='#'
7176 ED2K_FALSE=
7180 # Check whether --enable-alc was given.
7181 if test "${enable_alc+set}" = set; then :
7182 enableval=$enable_alc;
7185 if test ${enable_alc:-no} = yes; then
7186 ALC_TRUE=
7187 ALC_FALSE='#'
7188 else
7189 ALC_TRUE='#'
7190 ALC_FALSE=
7194 # Check whether --enable-alcc was given.
7195 if test "${enable_alcc+set}" = set; then :
7196 enableval=$enable_alcc;
7199 if test ${enable_alcc:-no} = yes; then
7200 ALCC_TRUE=
7201 ALCC_FALSE='#'
7202 else
7203 ALCC_TRUE='#'
7204 ALCC_FALSE=
7208 # Check whether --enable-xas was given.
7209 if test "${enable_xas+set}" = set; then :
7210 enableval=$enable_xas;
7213 if test ${enable_xas:-no} = yes; then
7214 XAS_TRUE=
7215 XAS_FALSE='#'
7216 else
7217 XAS_TRUE='#'
7218 XAS_FALSE=
7222 # Check whether --enable-fileview was given.
7223 if test "${enable_fileview+set}" = set; then :
7224 enableval=$enable_fileview;
7227 if test ${enable_fileview:-no} = yes; then
7228 FILEVIEW_TRUE=
7229 FILEVIEW_FALSE='#'
7230 else
7231 FILEVIEW_TRUE='#'
7232 FILEVIEW_FALSE=
7236 # Check whether --enable-plasmamule was given.
7237 if test "${enable_plasmamule+set}" = set; then :
7238 enableval=$enable_plasmamule;
7243 # Run all the tests with static linkage if we want a statically linked binary
7244 # Check whether --enable-static was given.
7245 if test "${enable_static+set}" = set; then :
7246 enableval=$enable_static;
7250 if test ${enable_static:-no} = yes; then :
7251 LDFLAGS="$LDFLAGS -static"
7256 # Check whether --with-kde4-config was given.
7257 if test "${with_kde4_config+set}" = set; then :
7258 withval=$with_kde4_config; KDE4_CONFIG=$withval
7259 else
7260 KDE4_CONFIG=""
7263 # Check whether --enable-kde-in-home was given.
7264 if test "${enable_kde_in_home+set}" = set; then :
7265 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7266 else
7267 KDE_IN_HOME=no
7273 # Check whether --with-moc was given.
7274 if test "${with_moc+set}" = set; then :
7275 withval=$with_moc; QT_MOC=$withval
7276 else
7277 QT_MOC=""
7282 # Default is yes, because they're most likely compatible.
7283 # However, this is only used when cross-compiling.
7285 # Check whether --with-gnu-malloc was given.
7286 if test "${with_gnu_malloc+set}" = set; then :
7287 withval=$with_gnu_malloc; gnumalloc=$withval
7288 else
7289 gnumalloc=yes
7294 # Checking for libs before all other stuff to break
7295 # configure as soon as possible in case of a missing one
7296 # to avoid losing too much time
7298 # Check for gd
7301 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 case $PKG_CONFIG in
7311 [\\/]* | ?:[\\/]*)
7312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7331 esac
7333 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7334 if test -n "$PKG_CONFIG"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7336 $as_echo "$PKG_CONFIG" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7344 if test -z "$ac_cv_path_PKG_CONFIG"; then
7345 ac_pt_PKG_CONFIG=$PKG_CONFIG
7346 # Extract the first word of "pkg-config", so it can be a program name with args.
7347 set dummy pkg-config; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 case $ac_pt_PKG_CONFIG in
7354 [\\/]* | ?:[\\/]*)
7355 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7369 done
7370 done
7371 IFS=$as_save_IFS
7374 esac
7376 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7377 if test -n "$ac_pt_PKG_CONFIG"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7379 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7385 if test "x$ac_pt_PKG_CONFIG" = x; then
7386 PKG_CONFIG=""
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394 PKG_CONFIG=$ac_pt_PKG_CONFIG
7396 else
7397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7401 if test -n "$PKG_CONFIG"; then
7402 _pkg_min_version=0.9.0
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7404 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 PKG_CONFIG=""
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7417 $as_echo_n "checking for ANSI C header files... " >&6; }
7418 if ${ac_cv_header_stdc+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <stdlib.h>
7424 #include <stdarg.h>
7425 #include <string.h>
7426 #include <float.h>
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 ac_cv_header_stdc=yes
7438 else
7439 ac_cv_header_stdc=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 if test $ac_cv_header_stdc = yes; then
7444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 #include <string.h>
7449 _ACEOF
7450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451 $EGREP "memchr" >/dev/null 2>&1; then :
7453 else
7454 ac_cv_header_stdc=no
7456 rm -f conftest*
7460 if test $ac_cv_header_stdc = yes; then
7461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <stdlib.h>
7466 _ACEOF
7467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468 $EGREP "free" >/dev/null 2>&1; then :
7470 else
7471 ac_cv_header_stdc=no
7473 rm -f conftest*
7477 if test $ac_cv_header_stdc = yes; then
7478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7479 if test "$cross_compiling" = yes; then :
7481 else
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <ctype.h>
7485 #include <stdlib.h>
7486 #if ((' ' & 0x0FF) == 0x020)
7487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7489 #else
7490 # define ISLOWER(c) \
7491 (('a' <= (c) && (c) <= 'i') \
7492 || ('j' <= (c) && (c) <= 'r') \
7493 || ('s' <= (c) && (c) <= 'z'))
7494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7495 #endif
7497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7499 main ()
7501 int i;
7502 for (i = 0; i < 256; i++)
7503 if (XOR (islower (i), ISLOWER (i))
7504 || toupper (i) != TOUPPER (i))
7505 return 2;
7506 return 0;
7508 _ACEOF
7509 if ac_fn_c_try_run "$LINENO"; then :
7511 else
7512 ac_cv_header_stdc=no
7514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7515 conftest.$ac_objext conftest.beam conftest.$ac_ext
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7521 $as_echo "$ac_cv_header_stdc" >&6; }
7522 if test $ac_cv_header_stdc = yes; then
7524 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7530 inttypes.h stdint.h unistd.h
7531 do :
7532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7536 cat >>confdefs.h <<_ACEOF
7537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 _ACEOF
7542 done
7545 if test ${enable_cas:-no} = yes; then :
7550 # Check whether --with-gdlib-prefix was given.
7551 if test "${with_gdlib_prefix+set}" = set; then :
7552 withval=$with_gdlib_prefix;
7556 # Check whether --with-gdlib-config was given.
7557 if test "${with_gdlib_config+set}" = set; then :
7558 withval=$with_gdlib_config;
7562 GDLIB_VERSION=
7564 # Check gdlib in pkg-config first to avoid deprecation warnings
7565 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7566 # skip the pkg-config check, the user probably wants to use
7567 # another gdlib instance.
7568 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7570 if test -n "$PKG_CONFIG"; then :
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7573 $as_echo_n "checking for gdlib... " >&6; }
7575 if $PKG_CONFIG gdlib --exists; then :
7577 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7579 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7582 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7583 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7584 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7585 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7586 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7588 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7591 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7592 GDLIB_VERSION=
7596 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7607 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7608 if test -z "$GDLIB_VERSION"; then :
7610 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7611 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7612 GDLIB_CONFIG_NAME=gdlib-config
7614 if test -n "$with_gdlib_config"; then :
7615 GDLIB_CONFIG_NAME="$with_gdlib_config"
7618 # deal with optional prefix
7619 if test -n "$with_gdlib_prefix"; then :
7620 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7623 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7624 if test -x "$GDLIB_CONFIG_NAME"; then :
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7627 $as_echo_n "checking for gdlib-config... " >&6; }
7628 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7630 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7632 else
7633 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7634 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 case $GDLIB_CONFIG_PATH in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7647 for as_dir in $as_dummy
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7661 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7663 esac
7665 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7666 if test -n "$GDLIB_CONFIG_PATH"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7668 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7677 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7680 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7681 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7683 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7684 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7685 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7686 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7688 if test $gdlib_config_major_version -gt 2; then
7689 gdlib_ver_ok=yes
7690 elif test $gdlib_config_major_version -eq 2; then
7692 if test $gdlib_config_minor_version -gt 0; then
7693 gdlib_ver_ok=yes
7694 elif test $gdlib_config_minor_version -eq 0; then
7695 if test $gdlib_config_micro_version -ge 0; then
7696 gdlib_ver_ok=yes
7707 if test -z "${gdlib_ver_ok:-}"; then :
7709 if test -z "$GDLIB_VERSION"; then :
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 else
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7715 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7716 GDLIB_VERSION=
7720 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7723 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7724 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7725 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7726 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7732 if test -n "$GDLIB_VERSION"; then :
7734 mule_backup_CFLAGS="$CFLAGS"
7735 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7737 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7738 if test "x$ac_cv_header_gd_h" = xyes; then :
7740 else
7742 GDLIB_CFLAGS=
7743 GDLIB_LDFLAGS=
7744 GDLIB_LIBS=
7745 GDLIB_VERSION=
7751 CFLAGS="$mule_backup_CFLAGS"
7755 if test -n "$GDLIB_VERSION"; then :
7757 CAS_DEFS="-D__GD__"
7758 GDLIB_LIBS="-lgd"
7760 else
7761 CAS_DEFS=
7766 if test -z "$CAS_DEFS"; then :
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7768 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7769 Please check that gdlib-config is in your default path, check out
7770 LD_LIBRARY_PATH or equivalent variable.
7771 Or this might also be that your gdlib-config has other name.
7772 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7773 (replace /usr/bin/gdlib-config with a valid path to your
7774 gdlib-config).
7775 If you use compiled packages check if you have devel pack installed.
7776 To download the latest version check http://www.boutell.com/gd for
7777 sources." >&5
7778 $as_echo "$as_me: WARNING:
7779 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7780 Please check that gdlib-config is in your default path, check out
7781 LD_LIBRARY_PATH or equivalent variable.
7782 Or this might also be that your gdlib-config has other name.
7783 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7784 (replace /usr/bin/gdlib-config with a valid path to your
7785 gdlib-config).
7786 If you use compiled packages check if you have devel pack installed.
7787 To download the latest version check http://www.boutell.com/gd for
7788 sources." >&2;}
7789 _mule_warning_0=yes
7790 _mule_has_warnings=yes
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7797 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7798 if ${ac_cv_header_stdbool_h+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 #include <stdbool.h>
7805 #ifndef bool
7806 "error: bool is not defined"
7807 #endif
7808 #ifndef false
7809 "error: false is not defined"
7810 #endif
7811 #if false
7812 "error: false is not 0"
7813 #endif
7814 #ifndef true
7815 "error: true is not defined"
7816 #endif
7817 #if true != 1
7818 "error: true is not 1"
7819 #endif
7820 #ifndef __bool_true_false_are_defined
7821 "error: __bool_true_false_are_defined is not defined"
7822 #endif
7824 struct s { _Bool s: 1; _Bool t; } s;
7826 char a[true == 1 ? 1 : -1];
7827 char b[false == 0 ? 1 : -1];
7828 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7829 char d[(bool) 0.5 == true ? 1 : -1];
7830 /* See body of main program for 'e'. */
7831 char f[(_Bool) 0.0 == false ? 1 : -1];
7832 char g[true];
7833 char h[sizeof (_Bool)];
7834 char i[sizeof s.t];
7835 enum { j = false, k = true, l = false * true, m = true * 256 };
7836 /* The following fails for
7837 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7838 _Bool n[m];
7839 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7840 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7841 /* Catch a bug in an HP-UX C compiler. See
7842 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7843 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7845 _Bool q = true;
7846 _Bool *pq = &q;
7849 main ()
7852 bool e = &s;
7853 *pq |= q;
7854 *pq |= ! q;
7855 /* Refer to every declared value, to avoid compiler optimizations. */
7856 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7857 + !m + !n + !o + !p + !q + !pq);
7860 return 0;
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_cv_header_stdbool_h=yes
7865 else
7866 ac_cv_header_stdbool_h=no
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7871 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7872 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7873 if test "x$ac_cv_type__Bool" = xyes; then :
7875 cat >>confdefs.h <<_ACEOF
7876 #define HAVE__BOOL 1
7877 _ACEOF
7883 if test $ac_cv_header_stdbool_h = yes; then
7885 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7890 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7891 if ${ac_cv_c_const+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7898 main ()
7901 #ifndef __cplusplus
7902 /* Ultrix mips cc rejects this sort of thing. */
7903 typedef int charset[2];
7904 const charset cs = { 0, 0 };
7905 /* SunOS 4.1.1 cc rejects this. */
7906 char const *const *pcpcc;
7907 char **ppc;
7908 /* NEC SVR4.0.2 mips cc rejects this. */
7909 struct point {int x, y;};
7910 static struct point const zero = {0,0};
7911 /* AIX XL C 1.02.0.0 rejects this.
7912 It does not let you subtract one const X* pointer from another in
7913 an arm of an if-expression whose if-part is not a constant
7914 expression */
7915 const char *g = "string";
7916 pcpcc = &g + (g ? g-g : 0);
7917 /* HPUX 7.0 cc rejects these. */
7918 ++pcpcc;
7919 ppc = (char**) pcpcc;
7920 pcpcc = (char const *const *) ppc;
7921 { /* SCO 3.2v4 cc rejects this sort of thing. */
7922 char tx;
7923 char *t = &tx;
7924 char const *s = 0 ? (char *) 0 : (char const *) 0;
7926 *t++ = 0;
7927 if (s) return 0;
7929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7930 int x[] = {25, 17};
7931 const int *foo = &x[0];
7932 ++foo;
7934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7935 typedef const int *iptr;
7936 iptr p = 0;
7937 ++p;
7939 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7941 struct s { int j; const int *ap[3]; } bx;
7942 struct s *b = &bx; b->j = 5;
7944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7945 const int foo = 10;
7946 if (!foo) return 0;
7948 return !cs[0] && !zero.x;
7949 #endif
7952 return 0;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 ac_cv_c_const=yes
7957 else
7958 ac_cv_c_const=no
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7963 $as_echo "$ac_cv_c_const" >&6; }
7964 if test $ac_cv_c_const = no; then
7966 $as_echo "#define const /**/" >>confdefs.h
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7971 $as_echo_n "checking for inline... " >&6; }
7972 if ${ac_cv_c_inline+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 ac_cv_c_inline=no
7976 for ac_kw in inline __inline__ __inline; do
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 #ifndef __cplusplus
7980 typedef int foo_t;
7981 static $ac_kw foo_t static_foo () {return 0; }
7982 $ac_kw foo_t foo () {return 0; }
7983 #endif
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 ac_cv_c_inline=$ac_kw
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 test "$ac_cv_c_inline" != no && break
7991 done
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7995 $as_echo "$ac_cv_c_inline" >&6; }
7997 case $ac_cv_c_inline in
7998 inline | yes) ;;
8000 case $ac_cv_c_inline in
8001 no) ac_val=;;
8002 *) ac_val=$ac_cv_c_inline;;
8003 esac
8004 cat >>confdefs.h <<_ACEOF
8005 #ifndef __cplusplus
8006 #define inline $ac_val
8007 #endif
8008 _ACEOF
8010 esac
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8013 $as_echo_n "checking for working volatile... " >&6; }
8014 if ${ac_cv_c_volatile+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8021 main ()
8024 volatile int x;
8025 int * volatile y = (int *) 0;
8026 return !x && !y;
8028 return 0;
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 ac_cv_c_volatile=yes
8033 else
8034 ac_cv_c_volatile=no
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8039 $as_echo "$ac_cv_c_volatile" >&6; }
8040 if test $ac_cv_c_volatile = no; then
8042 $as_echo "#define volatile /**/" >>confdefs.h
8047 ac_ext=cpp
8048 ac_cpp='$CXXCPP $CPPFLAGS'
8049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8055 # Check for zlib
8057 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 :
8060 # Check whether --with-zlib was given.
8061 if test "${with_zlib+set}" = set; then :
8062 withval=$with_zlib;
8066 case "${with_zlib:-yes}" in
8068 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8070 yes | sys)
8073 zlib_prefix="$with_zlib"
8074 esac
8076 mule_backup_CPPFLAGS="$CPPFLAGS"
8077 mule_backup_LDFLAGS="$LDFLAGS"
8078 mule_backup_LIBS="$LIBS"
8079 if test -n "$zlib_prefix"; then :
8081 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
8082 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
8083 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
8084 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
8086 else
8088 ZLIB_CPPFLAGS=
8089 ZLIB_LDFLAGS=
8092 ZLIB_LIBS="-lz"
8093 LIBS="$ZLIB_LIBS $LIBS"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
8096 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
8097 if test "$cross_compiling" = yes; then :
8099 result=no
8100 z_version=
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8105 #include <zlib.h>
8106 #include <stdio.h>
8109 main ()
8112 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
8113 zlibVersion();
8116 return 0;
8119 _ACEOF
8120 if ac_fn_cxx_try_link "$LINENO"; then :
8122 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
8123 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
8124 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
8125 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
8126 if test "$cross_zver_max" -gt "1"; then
8127 result=yes
8128 elif test "$cross_zver_max" -eq "1"; then
8130 if test "$cross_zver_mid" -gt "1"; then
8131 result=yes
8132 elif test "$cross_zver_mid" -eq "1"; then
8133 if test "$cross_zver_min" -ge "4"; then
8134 result=yes
8142 if test ${result:-no} = yes; then :
8143 z_version=" (version $ZLIB_VERSION)"
8147 rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8150 $as_echo "$result$z_version" >&6; }
8152 else
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8157 #include <zlib.h>
8158 #include <stdio.h>
8161 main ()
8163 const char *zver = zlibVersion();
8164 FILE *f=fopen("conftestval", "w");
8165 if (!f) return 1;
8166 fprintf(f, "%s",
8167 zver[0] > '1' ||
8168 (zver[0] == '1' &&
8169 (zver[2] > '1' ||
8170 (zver[2] == '1' &&
8171 zver[4] >= '4'))) ? "yes" : "no");
8172 fclose(f);
8173 f=fopen("conftestver", "w");
8174 if (f) {
8175 fprintf(f, "%s", ZLIB_VERSION);
8176 fclose(f);
8180 return 0;
8183 _ACEOF
8184 if ac_fn_cxx_try_run "$LINENO"; then :
8186 if test -f conftestval; then :
8187 result=`cat conftestval`
8188 else
8189 result=no
8191 if test ${result:-no} = yes; then :
8193 if test -f conftestver; then :
8195 ZLIB_VERSION=`cat conftestver`
8196 z_version=" (version $ZLIB_VERSION)"
8198 else
8199 z_version=
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8204 $as_echo "$result$z_version" >&6; }
8206 else
8208 result=no
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
8210 $as_echo "$result" >&6; }
8213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8214 conftest.$ac_objext conftest.beam conftest.$ac_ext
8218 CPPFLAGS="$mule_backup_CPPFLAGS"
8219 LDFLAGS="$mule_backup_LDFLAGS"
8220 LIBS="$mule_backup_LIBS"
8222 if test ${result:-no} = no; then :
8224 ZLIB_CPPFLAGS=
8225 ZLIB_LDFLAGS=
8226 ZLIB_LIBS=
8227 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8235 # Check for libpng
8236 if test ${enable_webserver:-no} = yes; then :
8239 # Check whether --with-libpng-prefix was given.
8240 if test "${with_libpng_prefix+set}" = set; then :
8241 withval=$with_libpng_prefix;
8245 # Check whether --with-libpng-config was given.
8246 if test "${with_libpng_config+set}" = set; then :
8247 withval=$with_libpng_config;
8251 LIBPNG_VERSION=
8253 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8254 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8255 LIBPNG_CONFIG_NAME=libpng-config
8257 if test -n "$with_libpng_config"; then :
8258 LIBPNG_CONFIG_NAME="$with_libpng_config"
8261 # deal with optional prefix
8262 if test -n "$with_libpng_prefix"; then :
8263 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8266 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8267 if test -x "$LIBPNG_CONFIG_NAME"; then :
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8270 $as_echo_n "checking for libpng-config... " >&6; }
8271 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8273 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8275 else
8276 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8277 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 case $LIBPNG_CONFIG_PATH in
8284 [\\/]* | ?:[\\/]*)
8285 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8290 for as_dir in $as_dummy
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8300 done
8301 done
8302 IFS=$as_save_IFS
8304 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8306 esac
8308 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8309 if test -n "$LIBPNG_CONFIG_PATH"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8311 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8320 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8323 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8325 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8327 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8328 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8329 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8330 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8332 libpng_ver_ok=
8333 if test $libpng_config_major_version -gt 1; then
8334 libpng_ver_ok=yes
8335 elif test $libpng_config_major_version -eq 1; then
8337 if test $libpng_config_minor_version -gt 2; then
8338 libpng_ver_ok=yes
8339 elif test $libpng_config_minor_version -eq 2; then
8340 if test $libpng_config_micro_version -ge 0; then
8341 libpng_ver_ok=yes
8350 if test -z "$libpng_ver_ok"; then :
8352 if test -z "$LIBPNG_VERSION"; then :
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8358 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8359 LIBPNG_VERSION=
8363 else
8365 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8366 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8367 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8369 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8372 $as_echo_n "checking if libpng is usable... " >&6; }
8374 SAVED_CFLAGS=$CFLAGS
8375 SAVED_LDFLAGS=$LDFLAGS
8376 SAVED_LIBS=$LIBS
8378 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8379 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8380 LIBS="$LIBS $LIBPNG_LIBS"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8386 #include <png.h>
8387 #include <stdio.h>
8390 main ()
8393 png_uint_32 libpng_vn = png_access_version_number();
8394 printf("\nlibpng version %i\n\n", libpng_vn);
8397 return 0;
8400 _ACEOF
8401 if ac_fn_cxx_try_link "$LINENO"; then :
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404 $as_echo "yes" >&6; }
8406 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8409 $as_echo "no (failed to compile and link test program)" >&6; }
8410 LIBPNG_LIBS=
8411 LIBPNG_LDFLAGS=
8412 LIBPNG_CFLAGS=
8413 LIBPNG_VERSION=
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8419 CFLAGS="$SAVED_CFLAGS"
8420 LDFLAGS="$SAVED_LDFLAGS"
8421 LIBS="$SAVED_LIBS"
8427 if test -n "$LIBPNG_VERSION"; then :
8428 AMULEWEB_DEFS="-DWITH_LIBPNG"
8429 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8432 libpng >= 1.2.0 not found.
8433 amuleweb will be compiled but file download progress bar images will
8434 NOT be generated." >&5
8435 $as_echo "$as_me: WARNING:
8436 libpng >= 1.2.0 not found.
8437 amuleweb will be compiled but file download progress bar images will
8438 NOT be generated." >&2;}
8439 _mule_warning_1=yes
8440 _mule_has_warnings=yes
8451 # Check for perl File::Copy
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8453 $as_echo_n "checking for File::Copy... " >&6; }
8454 if perl -e "require File::Copy" 2>/dev/null; then :
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8456 $as_echo "ok" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8459 File::Copy perl module is required by the mldonkey_importer script.
8460 If you want to use this script please install File::Copy from CPAN." >&5
8461 $as_echo "$as_me: WARNING:
8462 File::Copy perl module is required by the mldonkey_importer script.
8463 If you want to use this script please install File::Copy from CPAN." >&2;}
8464 _mule_warning_2=yes
8465 _mule_has_warnings=yes
8470 # Check for GeoIP (required for IP2Country capability)
8472 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8474 # Check whether --enable-geoip was given.
8475 if test "${enable_geoip+set}" = set; then :
8476 enableval=$enable_geoip;
8481 if test ${enable_geoip:-no} = yes; then :
8484 # Check whether --with-geoip-headers was given.
8485 if test "${with_geoip_headers+set}" = set; then :
8486 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8490 # Check whether --with-geoip-lib was given.
8491 if test "${with_geoip_lib+set}" = set; then :
8492 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8496 mule_backup_CPPFLAGS="$CPPFLAGS"
8497 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8498 mule_backup_LDFLAGS="$LDFLAGS"
8499 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8501 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8502 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8504 if test x$SYS = xwin32; then :
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8507 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8508 # Actually, we might not need any if GeoIP is linked as a .dll
8509 # - but that's even harder to check for
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8514 #include <GeoIP.h>
8515 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8516 I do know it's not the best approach, but at least works with MinGW stock headers.
8517 (tested with w32api-3.12)
8518 #endif
8521 main ()
8525 return 0;
8528 _ACEOF
8529 if ac_fn_cxx_try_compile "$LINENO"; then :
8531 GEOIP_WINSOCK_LIB="-lwsock32"
8533 else
8535 GEOIP_WINSOCK_LIB="-lws2_32"
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8540 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8544 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8545 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8553 /* Override any GCC internal prototype to avoid an error.
8554 Use char because int might match the return type of a GCC
8555 builtin and then its argument prototype would still apply. */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 char GeoIP_open ();
8561 main ()
8563 return GeoIP_open ();
8565 return 0;
8567 _ACEOF
8568 if ac_fn_cxx_try_link "$LINENO"; then :
8569 ac_cv_lib_GeoIP_GeoIP_open=yes
8570 else
8571 ac_cv_lib_GeoIP_GeoIP_open=no
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8578 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8579 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8582 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8584 GEOIP_LIBS="-lGeoIP"
8585 if test x$SYS = xwin32; then :
8586 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8588 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8590 # Check whether --with-geoip-static was given.
8591 if test "${with_geoip_static+set}" = set; then :
8592 withval=$with_geoip_static;
8593 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8595 mule_backup_LIBS="$LIBS"
8596 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8601 #include <GeoIP.h>
8604 main ()
8607 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8610 return 0;
8613 _ACEOF
8614 if ac_fn_cxx_try_link "$LINENO"; then :
8616 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8618 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8621 Cannot link GeoIP statically, because your linker ($LD) does not
8622 support it." >&5
8623 $as_echo "$as_me: WARNING:
8624 Cannot link GeoIP statically, because your linker ($LD) does not
8625 support it." >&2;}
8626 _mule_warning_3=yes
8627 _mule_has_warnings=yes
8631 rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 LIBS="$mule_backup_LIBS"
8640 else
8642 enable_geoip=disabled
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8644 GeoIP support has been disabled because the GeoIP libraries were not
8645 found" >&5
8646 $as_echo "$as_me: WARNING:
8647 GeoIP support has been disabled because the GeoIP libraries were not
8648 found" >&2;}
8649 _mule_warning_4=yes
8650 _mule_has_warnings=yes
8656 else
8658 enable_geoip=disabled
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8660 GeoIP support has been disabled because the GeoIP header files were
8661 not found" >&5
8662 $as_echo "$as_me: WARNING:
8663 GeoIP support has been disabled because the GeoIP header files were
8664 not found" >&2;}
8665 _mule_warning_5=yes
8666 _mule_has_warnings=yes
8673 CPPFLAGS="$mule_backup_CPPFLAGS"
8674 LDFLAGS="$mule_backup_LDFLAGS"
8681 # Check for wx
8682 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 :
8685 # Check whether --with-wxdir was given.
8686 if test "${with_wxdir+set}" = set; then :
8687 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8688 wx_config_args="--inplace"
8692 # Check whether --with-wx-config was given.
8693 if test "${with_wx_config+set}" = set; then :
8694 withval=$with_wx_config; wx_config_name="$withval"
8698 # Check whether --with-wx-prefix was given.
8699 if test "${with_wx_prefix+set}" = set; then :
8700 withval=$with_wx_prefix; wx_config_prefix="$withval"
8701 else
8702 wx_config_prefix=""
8706 # Check whether --with-wx-exec-prefix was given.
8707 if test "${with_wx_exec_prefix+set}" = set; then :
8708 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8709 else
8710 wx_config_exec_prefix=""
8725 # Check whether --with-toolkit was given.
8726 if test "${with_toolkit+set}" = set; then :
8727 withval=$with_toolkit;
8728 else
8729 withval="auto"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8734 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8735 if test "$withval" = "auto" ; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8737 $as_echo "will be automatically detected" >&6; }
8738 TOOLKIT=""
8739 else
8740 TOOLKIT="$withval"
8742 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8743 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8744 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8745 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8746 as_fn_error $? "
8747 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8748 " "$LINENO" 5
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8752 $as_echo "$TOOLKIT" >&6; }
8759 # Check whether --with-wxshared was given.
8760 if test "${with_wxshared+set}" = set; then :
8761 withval=$with_wxshared;
8762 else
8763 withval="auto"
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8768 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8769 if test "$withval" = "yes" ; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8771 $as_echo "yes" >&6; }
8772 WX_SHARED=1
8774 elif test "1" = "1" -a "$withval" = "no" ; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 WX_SHARED=0
8778 elif test "$withval" = "auto" ; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8780 $as_echo "will be automatically detected" >&6; }
8781 WX_SHARED=""
8782 else
8783 as_fn_error $? "
8784 Unrecognized option value (allowed values: yes, auto)
8785 " "$LINENO" 5
8792 # Check whether --with-wxdebug was given.
8793 if test "${with_wxdebug+set}" = set; then :
8794 withval=$with_wxdebug;
8795 else
8796 withval="auto"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8801 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8802 if test "$withval" = "yes" ; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8805 WX_DEBUG=1
8807 elif test "1" = "1" -a "$withval" = "no" ; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 WX_DEBUG=0
8811 elif test "$withval" = "auto" ; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8813 $as_echo "will be automatically detected" >&6; }
8814 WX_DEBUG=""
8815 else
8816 as_fn_error $? "
8817 Unrecognized option value (allowed values: yes, auto)
8818 " "$LINENO" 5
8825 # Check whether --with-wxversion was given.
8826 if test "${with_wxversion+set}" = set; then :
8827 withval=$with_wxversion;
8828 else
8829 withval="auto"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8834 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8835 if test "$withval" = "auto" ; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8837 $as_echo "will be automatically detected" >&6; }
8838 WX_RELEASE=""
8839 else
8841 wx_requested_major_version=`echo $withval | \
8842 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8843 wx_requested_minor_version=`echo $withval | \
8844 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8846 if test "${#wx_requested_major_version}" != "1" -o \
8847 "${#wx_requested_minor_version}" != "1" ; then
8848 as_fn_error $? "
8849 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8850 " "$LINENO" 5
8853 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8855 $as_echo "$WX_RELEASE" >&6; }
8859 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8860 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8861 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8862 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8863 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8864 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8867 # Force using a static wxWidgets library if the executable is to be linked statically.
8868 if test ${enable_static:-no} = yes; then :
8869 WX_SHARED=0
8871 # Force using a unicode build of the library
8872 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 :
8873 WX_UNICODE=1
8875 DEBUG=$WX_DEBUG
8877 if test "$WX_SHARED" = "1" ; then
8878 WXCONFIG_FLAGS="--static=no "
8879 elif test "$WX_SHARED" = "0" ; then
8880 WXCONFIG_FLAGS="--static=yes "
8883 if test "$WX_DEBUG" = "1" ; then
8884 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8885 elif test "$WX_DEBUG" = "0" ; then
8886 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8889 if test "$WX_UNICODE" = "1" ; then
8890 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8891 elif test "$WX_UNICODE" = "0" ; then
8892 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8895 if test -n "$TOOLKIT" ; then
8896 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8899 if test -n "$WX_RELEASE" ; then
8900 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8903 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8905 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8906 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8910 if test x${WX_CONFIG_NAME+set} != xset ; then
8911 WX_CONFIG_NAME=wx-config
8914 if test "x$wx_config_name" != x ; then
8915 WX_CONFIG_NAME="$wx_config_name"
8918 if test x$wx_config_exec_prefix != x ; then
8919 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8920 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8922 if test x$wx_config_prefix != x ; then
8923 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8924 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8926 if test "$cross_compiling" = "yes"; then
8927 wx_config_args="$wx_config_args --host=$host_alias"
8930 if test -x "$WX_CONFIG_NAME" ; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8932 $as_echo_n "checking for wx-config... " >&6; }
8933 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8935 $as_echo "$WX_CONFIG_PATH" >&6; }
8936 else
8937 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8938 set dummy $WX_CONFIG_NAME; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 case $WX_CONFIG_PATH in
8945 [\\/]* | ?:[\\/]*)
8946 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8951 for as_dir in $as_dummy
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8965 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8967 esac
8969 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8970 if test -n "$WX_CONFIG_PATH"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8972 $as_echo "$WX_CONFIG_PATH" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8981 if test "$WX_CONFIG_PATH" != "no" ; then
8982 WX_VERSION=""
8984 min_wx_version=2.8.12
8985 if test -z "$WXCONFIG_FLAGS" ; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8987 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8990 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8993 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8995 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8996 wx_config_major_version=`echo $WX_VERSION | \
8997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8998 wx_config_minor_version=`echo $WX_VERSION | \
8999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9000 wx_config_micro_version=`echo $WX_VERSION | \
9001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9003 wx_requested_major_version=`echo $min_wx_version | \
9004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9005 wx_requested_minor_version=`echo $min_wx_version | \
9006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9007 wx_requested_micro_version=`echo $min_wx_version | \
9008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9011 wx_ver_ok=""
9012 if test "x$WX_VERSION" != x ; then
9013 if test $wx_config_major_version -gt $wx_requested_major_version; then
9014 wx_ver_ok=yes
9015 else
9016 if test $wx_config_major_version -eq $wx_requested_major_version; then
9017 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
9018 wx_ver_ok=yes
9019 else
9020 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
9021 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
9022 wx_ver_ok=yes
9031 if test -n "$wx_ver_ok"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
9033 $as_echo "yes (version $WX_VERSION)" >&6; }
9034 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
9037 $as_echo_n "checking for wxWidgets static library... " >&6; }
9038 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
9039 if test "x$WX_LIBS_STATIC" = "x"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9044 $as_echo "yes" >&6; }
9047 wx_has_cppflags=""
9048 if test $wx_config_major_version -gt 2; then
9049 wx_has_cppflags=yes
9050 else
9051 if test $wx_config_major_version -eq 2; then
9052 if test $wx_config_minor_version -gt 2; then
9053 wx_has_cppflags=yes
9054 else
9055 if test $wx_config_minor_version -eq 2; then
9056 if test $wx_config_micro_version -ge 6; then
9057 wx_has_cppflags=yes
9064 wx_has_rescomp=""
9065 if test $wx_config_major_version -gt 2; then
9066 wx_has_rescomp=yes
9067 else
9068 if test $wx_config_major_version -eq 2; then
9069 if test $wx_config_minor_version -ge 7; then
9070 wx_has_rescomp=yes
9074 if test "x$wx_has_rescomp" = x ; then
9075 WX_RESCOMP=
9076 else
9077 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
9080 if test "x$wx_has_cppflags" = x ; then
9081 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9082 WX_CPPFLAGS=$WX_CFLAGS
9083 WX_CXXFLAGS=$WX_CFLAGS
9085 WX_CFLAGS_ONLY=$WX_CFLAGS
9086 WX_CXXFLAGS_ONLY=$WX_CFLAGS
9087 else
9088 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
9089 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
9090 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9092 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
9093 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
9096 wxWin=1
9098 else
9100 if test "x$WX_VERSION" = x; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
9105 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
9108 WX_CFLAGS=""
9109 WX_CPPFLAGS=""
9110 WX_CXXFLAGS=""
9111 WX_LIBS=""
9112 WX_LIBS_STATIC=""
9113 WX_RESCOMP=""
9115 if test ! -z "$WXCONFIG_FLAGS"; then
9117 wx_error_message="
9118 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
9119 build with the following settings:
9120 $WXCONFIG_FLAGS
9121 but such build is not available.
9123 To see the wxWidgets builds available on this system, please use
9124 'wx-config --list' command. To use the default build, returned by
9125 'wx-config --selected-config', use the options with their 'auto'
9126 default values."
9130 wx_error_message="
9131 The requested wxWidgets build couldn't be found.
9132 $wx_error_message
9134 If you still get this error, then check that 'wx-config' is
9135 in path, the directory where wxWidgets libraries are installed
9136 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
9137 or equivalent variable and wxWidgets version is 2.8.12 or above."
9139 as_fn_error $? "$wx_error_message" "$LINENO" 5
9142 else
9144 WX_CFLAGS=""
9145 WX_CPPFLAGS=""
9146 WX_CXXFLAGS=""
9147 WX_LIBS=""
9148 WX_LIBS_STATIC=""
9149 WX_RESCOMP=""
9165 WX_VERSION_MAJOR="$wx_config_major_version"
9166 WX_VERSION_MINOR="$wx_config_minor_version"
9167 WX_VERSION_MICRO="$wx_config_micro_version"
9172 if test "$wxWin" != 1; then :
9173 as_fn_error $? "
9174 wxWidgets must be installed on your system but wx-config
9175 script couldn't be found. Please check that wx-config is
9176 in path or specified by --with-wx-config=path flag, the
9177 directory where wxWidgets libraries are installed (returned
9178 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
9179 equivalent variable and wxWidgets version is 2.8.12 or above.
9180 " "$LINENO" 5
9183 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
9184 as_fn_error $? "
9185 This version of wxWidgets is known to not work with aMule.
9186 Please upgrade to a newer version.
9187 " "$LINENO" 5
9191 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
9192 if test $WX_RELEASE -lt 26 ; then
9194 as_fn_error $? "
9195 Cannot detect the wxWidgets configuration for the selected wxWidgets build
9196 since its version is $WX_VERSION < 2.6.0; please install a newer
9197 version of wxWidgets.
9198 " "$LINENO" 5
9201 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
9203 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9204 echo "[dbg] Using wx-config --selected-config"
9205 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
9208 if test "$WX_SHARED" = "1"; then
9209 STATIC=0
9210 elif test "$WX_SHARED" = "0"; then
9211 STATIC=1
9215 if test -z "$UNICODE" ; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
9218 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
9220 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
9222 if test "$WX_UNICODE" != "0"; then
9223 WX_UNICODE=1
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9225 $as_echo "yes" >&6; }
9226 else
9227 WX_UNICODE=0
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9231 else
9233 WX_UNICODE=$UNICODE
9237 if test -z "$DEBUG" ; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9240 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9242 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9244 if test "$WX_DEBUG" != "0"; then
9245 WX_DEBUG=1
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9247 $as_echo "yes" >&6; }
9248 else
9249 WX_DEBUG=0
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9253 else
9255 WX_DEBUG=$DEBUG
9259 if test -z "$STATIC" ; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9262 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9264 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9266 if test "$WX_STATIC" != "0"; then
9267 WX_STATIC=1
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9269 $as_echo "yes" >&6; }
9270 else
9271 WX_STATIC=0
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9275 else
9277 WX_STATIC=$STATIC
9281 if test "$WX_STATIC" != "0"; then
9282 WX_SHARED=0
9283 else
9284 WX_SHARED=1
9291 if test -z "$TOOLKIT" ; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9294 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9296 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9297 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9298 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9299 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9300 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9301 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9302 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9303 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9304 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9305 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9307 WX_PORT="unknown"
9308 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9309 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9310 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9311 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9312 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9313 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9314 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9315 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9316 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9317 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9319 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9320 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9323 if test "$WX_PORT" = "unknown" ; then
9324 as_fn_error $? "
9325 Cannot detect the currently installed wxWidgets port !
9326 Please check your 'wx-config --cxxflags'...
9327 " "$LINENO" 5
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9331 $as_echo "$WX_PORT" >&6; }
9332 else
9333 WX_PORT=$TOOLKIT
9338 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9339 echo "[dbg] Values of all WX_* options after final detection:"
9340 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9341 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9342 echo "[dbg] WX_SHARED: $WX_SHARED"
9343 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9344 echo "[dbg] WX_PORT: $WX_PORT"
9347 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9348 as_fn_error $? "
9349 Cannot build shared library against a static build of wxWidgets !
9350 This error happens because the wxWidgets build which was selected
9351 has been detected as static while you asked to build $PACKAGE_NAME
9352 as shared library and this is not possible.
9353 Use the '--disable-shared' option to build $PACKAGE_NAME
9354 as static library or '--with-wxshared' to use wxWidgets as shared library.
9355 " "$LINENO" 5
9358 if test -z "$UNICODE" ; then
9359 UNICODE=$WX_UNICODE
9361 if test -z "$SHARED" ; then
9362 SHARED=$WX_SHARED
9364 if test -z "$TOOLKIT" ; then
9365 TOOLKIT=$WX_PORT
9368 if test "$DEBUG" = "1"; then
9369 BUILD="debug"
9370 CXXFLAGS="$CXXFLAGS -g -O0"
9371 CFLAGS="$CFLAGS -g -O0"
9372 elif test "$DEBUG" = "0"; then
9373 BUILD="release"
9374 CXXFLAGS="$CXXFLAGS -O2"
9375 CFLAGS="$CFLAGS -O2"
9379 # We also need wxBase
9380 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9381 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9382 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9384 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9388 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9389 if test "${WX_PORT}" = base; then :
9390 as_fn_error $? "
9391 The selected components need a wxWidgets library with GUI,
9392 but your installation is base-only. Please install a GUI
9393 enabled version of wxWidgets and then retry.
9394 " "$LINENO" 5
9400 if test ${SYS:-unknown} = win32; then :
9401 if test -n "$ac_tool_prefix"; then
9402 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9403 set dummy ${ac_tool_prefix}windres; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_RC+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 if test -n "$RC"; then
9410 ac_cv_prog_RC="$RC" # Let the user override the test.
9411 else
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_prog_RC="${ac_tool_prefix}windres"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9423 done
9424 done
9425 IFS=$as_save_IFS
9429 RC=$ac_cv_prog_RC
9430 if test -n "$RC"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9432 $as_echo "$RC" >&6; }
9433 else
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9440 if test -z "$ac_cv_prog_RC"; then
9441 ac_ct_RC=$RC
9442 # Extract the first word of "windres", so it can be a program name with args.
9443 set dummy windres; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 if test -n "$ac_ct_RC"; then
9450 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9451 else
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_ac_ct_RC="windres"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9465 IFS=$as_save_IFS
9469 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9470 if test -n "$ac_ct_RC"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9472 $as_echo "$ac_ct_RC" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9478 if test "x$ac_ct_RC" = x; then
9479 RC=":"
9480 else
9481 case $cross_compiling:$ac_tool_warned in
9482 yes:)
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9485 ac_tool_warned=yes ;;
9486 esac
9487 RC=$ac_ct_RC
9489 else
9490 RC="$ac_cv_prog_RC"
9496 # Check for libupnp
9497 # Check whether --enable-upnp was given.
9498 if test "${enable_upnp+set}" = set; then :
9499 enableval=$enable_upnp;
9503 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9505 else
9506 enable_upnp=no
9508 if test ${enable_upnp:-yes} = yes; then :
9512 # Check whether --with-libupnp-prefix was given.
9513 if test "${with_libupnp_prefix+set}" = set; then :
9514 withval=$with_libupnp_prefix;
9515 if test -d "$withval/lib64/pkgconfig"; then :
9517 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig
9519 else
9521 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9528 if test $cross_compiling = no; then :
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9531 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9532 if test -n "$PKG_CONFIG"; then :
9534 if $PKG_CONFIG libupnp --exists; then :
9536 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9537 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9539 result=yes
9540 resultstr=" (version $LIBUPNP_VERSION)"
9541 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9542 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9543 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9544 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9545 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9547 else
9549 result=no
9550 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9554 else
9556 result=no
9557 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9561 else
9563 result=no
9564 resultstr=" (pkg-config not found)"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9568 $as_echo "$result$resultstr" >&6; }
9569 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9571 else
9573 result=no
9574 libupnp_error="cross compiling"
9578 if test ${result:-no} = yes; then :
9579 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9580 else
9581 enable_upnp=disabled
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9583 UPnP code has been disabled because ${libupnp_error}." >&5
9584 $as_echo "$as_me: WARNING:
9585 UPnP code has been disabled because ${libupnp_error}." >&2;}
9586 _mule_warning_6=yes
9587 _mule_has_warnings=yes
9596 # Check for Crypto++ (requires C++)
9597 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9600 # Check whether --with-crypto-prefix was given.
9601 if test "${with_crypto_prefix+set}" = set; then :
9602 withval=$with_crypto_prefix;
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9607 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9609 cryptopp_found=false
9611 if test -n "$with_crypto_prefix"; then :
9613 CRYPTOPP_PREFIX="$with_crypto_prefix"
9614 # Find the Cryptopp header in the user-provided location
9615 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9617 cryptopp_found=true
9618 CRYPTOPP_LIB_NAME="cryptopp"
9619 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9620 CRYPTOPP_CPPFLAGS=
9621 CRYPTOPP_LDFLAGS=
9622 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9624 else
9626 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9627 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9629 cryptopp_found=true
9630 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9631 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9632 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9633 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9634 break
9637 done
9642 else
9644 # Check whether the compiler can find it
9645 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9649 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9652 main ()
9656 return 0;
9659 _ACEOF
9660 if ac_fn_cxx_try_compile "$LINENO"; then :
9662 cryptopp_found=true
9663 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9664 CRYPTOPP_CPPFLAGS=
9665 CRYPTOPP_LDFLAGS=
9666 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9667 break
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 done
9675 if $cryptopp_found; then :
9677 # Find out the crypto++ version and check against the minimum required
9678 # Ask the compiler where are the crypto++ files
9679 mule_backup_CPPFLAGS="$CPPFLAGS"
9680 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9686 _ACEOF
9687 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9688 rm -f conftest*
9689 CPPFLAGS="$mule_backup_CPPFLAGS"
9690 # Set a prefix suitable for --with-crypto-prefix
9691 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9692 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9693 # Now check the version
9694 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9695 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9696 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9698 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9700 result=yes
9701 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9703 cat >>confdefs.h <<_ACEOF
9704 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9705 _ACEOF
9708 else
9710 result=no
9711 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9712 CRYPTOPP_CPPFLAGS=
9713 CRYPTOPP_LDFLAGS=
9714 CRYPTOPP_LIBS=
9718 else
9719 result="no"; resultstr=
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9723 $as_echo "$result$resultstr" >&6; }
9725 if test ${result:-no} = yes; then :
9727 # Check for CryptoPP >= 5.5
9728 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9729 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9732 else
9734 as_fn_error $? "
9735 Could not find crypto++ installation or sources.
9736 Please try again with --with-crypto-prefix=/my_crypto_prefix
9737 (replace /my_crypto_prefix with a valid path to your crypto++
9738 installation or source directory)." "$LINENO" 5
9747 # Check whether --enable-debug was given.
9748 if test "${enable_debug+set}" = set; then :
9749 enableval=$enable_debug;
9753 # Check whether --enable-profile was given.
9754 if test "${enable_profile+set}" = set; then :
9755 enableval=$enable_profile;
9759 # Check whether --enable-optimize was given.
9760 if test "${enable_optimize+set}" = set; then :
9761 enableval=$enable_optimize;
9766 if test ${enable_debug:-yes} = yes; then :
9768 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9770 MULECFLAGS="$MULECFLAGS -g"
9771 MULECXXFLAGS="$MULECXXFLAGS -g"
9773 if test ${GCC:-no} = yes; then :
9775 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9776 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9779 if test ${SYS:-unknown} = win32; then :
9780 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9783 else
9785 if test ${GCC:-no} = yes; then :
9787 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9788 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9794 if test ${enable_profile:-no} = yes; then :
9797 MULECFLAGS="$MULECFLAGS -pg"
9798 MULECXXFLAGS="$MULECXXFLAGS -pg"
9800 MULELDFLAGS="$MULELDFLAGS -pg"
9804 if test ${enable_optimize:-no} = yes; then :
9806 MULECFLAGS="$MULECFLAGS -O2"
9807 MULECXXFLAGS="$MULECXXFLAGS -O2"
9811 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9815 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 :
9820 if test ${GCC:-no} = yes; then :
9822 mule_backup_CXXFLAGS="$CXXFLAGS"
9823 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9826 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9832 main ()
9835 int a;
9836 short *b = (short*)&a;
9837 short c = *b;
9839 return c;
9842 return 0;
9845 _ACEOF
9846 if ac_fn_cxx_try_compile "$LINENO"; then :
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9851 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9854 $as_echo "yes" >&6; }
9855 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 CXXFLAGS="$mule_backup_CXXFLAGS"
9865 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9867 mule_backup_CPPFLAGS="$CPPFLAGS"
9868 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9871 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9876 #include <wx/wx.h>
9877 #include <wx/filefn.h>
9878 #ifndef wxHAS_LARGE_FILES
9879 #error No LargeFile support!
9880 #endif
9883 _ACEOF
9884 if ac_fn_cxx_try_cpp "$LINENO"; then :
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9887 $as_echo "yes" >&6; }
9889 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 as_fn_error $? "
9894 Support for large files in wxWidgets is required by aMule.
9895 To continue you must recompile wxWidgets with support for
9896 large files enabled." "$LINENO" 5
9899 rm -f conftest.err conftest.i conftest.$ac_ext
9901 CPPFLAGS="$mule_backup_CPPFLAGS"
9905 # Check if the compiler is broken, wrt. exceptions.
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9908 $as_echo_n "checking for exception-handling... " >&6; }
9909 if test "$cross_compiling" = yes; then :
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9912 $as_echo "undeterminable" >&6; }
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9914 Cross-compilation detected, so exception handling cannot be tested.
9915 Note that broken exception handling in your compiler may lead to
9916 unexpected crashes." >&5
9917 $as_echo "$as_me: WARNING:
9918 Cross-compilation detected, so exception handling cannot be tested.
9919 Note that broken exception handling in your compiler may lead to
9920 unexpected crashes." >&2;}
9921 _mule_warning_7=yes
9922 _mule_has_warnings=yes
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9931 main ()
9934 try {
9935 throw 1;
9936 } catch (int) {
9937 return 0;
9939 return 1;
9942 return 0;
9945 _ACEOF
9946 if ac_fn_cxx_try_run "$LINENO"; then :
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9949 $as_echo "yes" >&6; }
9951 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9959 conftest.$ac_objext conftest.beam conftest.$ac_ext
9965 for ac_header in typeinfo
9966 do :
9967 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9968 if test "x$ac_cv_header_typeinfo" = xyes; then :
9969 cat >>confdefs.h <<_ACEOF
9970 #define HAVE_TYPEINFO 1
9971 _ACEOF
9975 done
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9978 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9983 #ifdef HAVE_TYPEINFO
9984 # include <typeinfo>
9985 #endif
9986 #include <cxxabi.h>
9989 main ()
9992 int status;
9993 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9994 std::type_info *ti = abi::__cxa_current_exception_type();
9997 return 0;
10000 _ACEOF
10001 if ac_fn_cxx_try_link "$LINENO"; then :
10004 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10007 $as_echo "yes" >&6; }
10009 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10019 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 :
10022 # Check whether --with-boost was given.
10023 if test "${with_boost+set}" = set; then :
10024 withval=$with_boost;
10025 else
10026 with_boost=no
10030 if test ${with_boost:-no} != no; then :
10032 echo "$as_me: this is boost.m4 serial 25" >&5
10033 boost_save_IFS=$IFS
10034 boost_version_req=1.47
10035 IFS=.
10036 set x $boost_version_req 0 0 0
10037 IFS=$boost_save_IFS
10038 shift
10039 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
10040 boost_version_req_string=$1.$2.$3
10041 # If BOOST_ROOT is set and the user has not provided a value to
10042 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
10043 if test x"$BOOST_ROOT" != x; then
10044 if test x"$with_boost" = x; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
10046 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
10047 with_boost=$BOOST_ROOT
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
10050 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
10053 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
10054 boost_save_CPPFLAGS=$CPPFLAGS
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
10056 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
10057 if ${boost_cv_inc_path+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 boost_cv_inc_path=no
10061 ac_ext=cpp
10062 ac_cpp='$CXXCPP $CPPFLAGS'
10063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <boost/version.hpp>
10069 #if !defined BOOST_VERSION
10070 # error BOOST_VERSION is not defined
10071 #elif BOOST_VERSION < $boost_version_req
10072 # error Boost headers version < $boost_version_req
10073 #endif
10076 main ()
10080 return 0;
10082 _ACEOF
10083 # If the user provided a value to --with-boost, use it and only it.
10084 case $with_boost in #(
10085 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
10086 /usr/include C:/Boost/include;; #(
10087 *) set x "$with_boost/include" "$with_boost";;
10088 esac
10089 shift
10090 for boost_dir
10092 # Without --layout=system, Boost (or at least some versions) installs
10093 # itself in <prefix>/include/boost-<version>. This inner loop helps to
10094 # find headers in such directories.
10096 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
10097 # order followed by ${boost_dir}. The final '.' is a sentinel for
10098 # searching $boost_dir" itself. Entries are whitespace separated.
10100 # I didn't indent this loop on purpose (to avoid over-indented code)
10101 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
10102 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
10103 && echo .`
10104 for boost_inc in $boost_layout_system_search_list
10106 if test x"$boost_inc" != x.; then
10107 boost_inc="$boost_dir/$boost_inc"
10108 else
10109 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
10111 if test x"$boost_inc" != x; then
10112 # We are going to check whether the version of Boost installed
10113 # in $boost_inc is usable by running a compilation that
10114 # #includes it. But if we pass a -I/some/path in which Boost
10115 # is not installed, the compiler will just skip this -I and
10116 # use other locations (either from CPPFLAGS, or from its list
10117 # of system include directories). As a result we would use
10118 # header installed on the machine instead of the /some/path
10119 # specified by the user. So in that precise case (trying
10120 # $boost_inc), make sure the version.hpp exists.
10122 # Use test -e as there can be symlinks.
10123 test -e "$boost_inc/boost/version.hpp" || continue
10124 CPPFLAGS="$CPPFLAGS -I$boost_inc"
10126 if ac_fn_cxx_try_compile "$LINENO"; then :
10127 boost_cv_inc_path=yes
10128 else
10129 boost_cv_version=no
10131 rm -f core conftest.err conftest.$ac_objext
10132 if test x"$boost_cv_inc_path" = xyes; then
10133 if test x"$boost_inc" != x; then
10134 boost_cv_inc_path=$boost_inc
10136 break 2
10138 done
10139 done
10140 ac_ext=cpp
10141 ac_cpp='$CXXCPP $CPPFLAGS'
10142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
10148 $as_echo "$boost_cv_inc_path" >&6; }
10149 case $boost_cv_inc_path in #(
10151 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
10153 $as_echo "$as_me: $boost_errmsg" >&6;}
10154 with_boost=disabled
10155 ;;#(
10156 yes)
10157 BOOST_CPPFLAGS=
10158 ;;#(
10160 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
10162 esac
10163 if test x"$boost_cv_inc_path" != xno; then
10165 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
10168 $as_echo_n "checking for Boost's header version... " >&6; }
10169 if ${boost_cv_lib_version+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 ac_ext=cpp
10173 ac_cpp='$CXXCPP $CPPFLAGS'
10174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 #include <boost/version.hpp>
10180 boost-lib-version = BOOST_LIB_VERSION
10181 _ACEOF
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10183 grep -v '#' |
10184 tr -d '\r' |
10185 tr -s '\n' ' ' |
10186 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
10187 boost_cv_lib_version=`cat conftest.i`
10189 rm -rf conftest*
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
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
10198 $as_echo "$boost_cv_lib_version" >&6; }
10199 # e.g. "134" for 1_34_1 or "135" for 1_35
10200 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
10201 case $boost_major_version in #(
10202 '' | *[!0-9]*)
10203 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
10205 esac
10207 CPPFLAGS=$boost_save_CPPFLAGS
10209 if test ${with_boost:-no} != disabled; then :
10211 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10212 for cc_temp in $compiler""; do
10213 case $cc_temp in
10214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10216 \-*) ;;
10217 *) break;;
10218 esac
10219 done
10220 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10221 # All known linkers require a `.a' archive for static linking (except MSVC,
10222 # which needs '.lib').
10223 libext=a
10224 case $cc_basename in
10225 cl*) libext=lib ;;
10226 esac
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
10229 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
10230 if ${boost_cv_lib_tag+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 boost_cv_lib_tag=unknown
10234 if test x$boost_cv_inc_path != xno; then
10235 ac_ext=cpp
10236 ac_cpp='$CXXCPP $CPPFLAGS'
10237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240 # The following tests are mostly inspired by boost/config/auto_link.hpp
10241 # The list is sorted to most recent/common to oldest compiler (in order
10242 # to increase the likelihood of finding the right compiler with the
10243 # least number of compilation attempt).
10244 # Beware that some tests are sensible to the order (for instance, we must
10245 # look for MinGW before looking for GCC3).
10246 # I used one compilation test per compiler with a #error to recognize
10247 # each compiler so that it works even when cross-compiling (let me know
10248 # if you know a better approach).
10249 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10250 # como, edg, kcc, bck, mp, sw, tru, xlc
10251 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10252 # the same defines as GCC's).
10253 for i in \
10254 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10255 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10256 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10257 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10258 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10259 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10260 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10261 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10262 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10263 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10264 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10265 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10266 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10267 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10268 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10269 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10270 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10271 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10272 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10273 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10274 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10275 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10276 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10277 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10278 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10279 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10280 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10281 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10282 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10283 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10284 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10285 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10286 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10287 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10288 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10289 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10290 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10291 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10292 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10293 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10294 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10295 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10296 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10297 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10298 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10299 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10300 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10301 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10302 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10303 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10304 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10305 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10306 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10307 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10308 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10309 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10310 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10311 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10312 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10313 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10314 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10315 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10316 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10317 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10318 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10319 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10320 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10321 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10322 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10323 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10324 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10325 "defined __BORLANDC__ @ bcb" \
10326 "defined __ICC && (defined __unix || defined ) @ il" \
10327 "defined __ICL @ iw" \
10328 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10329 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10330 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10331 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10332 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10333 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10335 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10336 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 #if $boost_tag_test
10341 /* OK */
10342 #else
10343 # error $boost_tag_test
10344 #endif
10347 main ()
10351 return 0;
10353 _ACEOF
10354 if ac_fn_cxx_try_compile "$LINENO"; then :
10355 boost_cv_lib_tag=$boost_tag; break
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 done
10359 ac_ext=cpp
10360 ac_cpp='$CXXCPP $CPPFLAGS'
10361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10364 case $boost_cv_lib_tag in #(
10365 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10366 # to "gcc41" for instance.
10367 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10368 gcc*)
10369 boost_tag_x=
10370 case $host_os in #(
10371 darwin*)
10372 if test $boost_major_version -ge 136; then
10373 # The `x' added in r46793 of Boost.
10374 boost_tag_x=x
10375 fi;;
10376 esac
10377 # We can specify multiple tags in this variable because it's used by
10378 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10379 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10380 ;; #(
10381 unknown)
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10383 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10384 boost_cv_lib_tag=
10386 esac
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10390 $as_echo "$boost_cv_lib_tag" >&6; }
10391 # Check whether --enable-static-boost was given.
10392 if test "${enable_static_boost+set}" = set; then :
10393 enableval=$enable_static_boost; enable_static_boost=yes
10394 else
10395 enable_static_boost=no
10398 # Check whether we do better use `mt' even though we weren't ask to.
10399 ac_ext=cpp
10400 ac_cpp='$CXXCPP $CPPFLAGS'
10401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 #if defined _REENTRANT || defined _MT || defined __MT__
10408 /* use -mt */
10409 #else
10410 # error MT not needed
10411 #endif
10414 main ()
10418 return 0;
10420 _ACEOF
10421 if ac_fn_cxx_try_compile "$LINENO"; then :
10422 boost_guess_use_mt=:
10423 else
10424 boost_guess_use_mt=false
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 ac_ext=cpp
10428 ac_cpp='$CXXCPP $CPPFLAGS'
10429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10434 $as_echo_n "checking for Boost sources... " >&6; }
10435 mule_backup_CPPFLAGS="$CPPFLAGS"
10436 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10440 #include <boost/../libs/system/src/error_code.cpp>
10442 main ()
10446 return 0;
10449 _ACEOF
10450 if ac_fn_cxx_try_compile "$LINENO"; then :
10453 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10456 $as_echo "yes" >&6; }
10458 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10462 if test x"$boost_cv_inc_path" = xno; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10464 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10465 else
10466 ac_ext=cpp
10467 ac_cpp='$CXXCPP $CPPFLAGS'
10468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10471 if test x"$boost_cv_inc_path" = xno; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10473 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10474 else
10475 ac_ext=cpp
10476 ac_cpp='$CXXCPP $CPPFLAGS'
10477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10480 boost_save_CPPFLAGS=$CPPFLAGS
10481 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10482 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10483 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
10485 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10487 else
10488 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
10492 CPPFLAGS=$boost_save_CPPFLAGS
10493 ac_ext=cpp
10494 ac_cpp='$CXXCPP $CPPFLAGS'
10495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10500 boost_save_CPPFLAGS=$CPPFLAGS
10501 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10503 $as_echo_n "checking for the Boost system library... " >&6; }
10504 if ${boost_cv_lib_system+:} false; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 boost_cv_lib_system=no
10508 case "mt" in #(
10509 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10510 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10511 (*) boost_mt=; boost_rtopt=mt;;
10512 esac
10513 if test $enable_static_boost = yes; then
10514 boost_rtopt="s$boost_rtopt"
10516 # Find the proper debug variant depending on what we've been asked to find.
10517 case $boost_rtopt in #(
10518 (*d*) boost_rt_d=$boost_rtopt;; #(
10519 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10520 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10521 (*) boost_rt_d='-d';;
10522 esac
10523 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10524 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10525 $boost_guess_use_mt && boost_mt=-mt
10526 # Look for the abs path the static archive.
10527 # $libext is computed by Libtool but let's make sure it's non empty.
10528 test -z "$libext" &&
10529 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10530 boost_save_ac_objext=$ac_objext
10531 # Generate the test file.
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #include <boost/system/error_code.hpp>
10537 main ()
10539 boost::system::error_code e; e.clear();
10541 return 0;
10543 _ACEOF
10544 if ac_fn_cxx_try_compile "$LINENO"; then :
10545 ac_objext=do_not_rm_me_plz
10546 else
10547 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
10549 rm -f core conftest.err conftest.$ac_objext
10550 ac_objext=$boost_save_ac_objext
10551 boost_failed_libs=
10552 # Don't bother to ident the following nested for loops, only the 2
10553 # innermost ones matter.
10554 for boost_lib_ in system; do
10555 for boost_tag_ in -$boost_cv_lib_tag ''; do
10556 for boost_ver_ in -$boost_cv_lib_version ''; do
10557 for boost_mt_ in $boost_mt -mt ''; do
10558 for boost_rtopt_ in $boost_rtopt '' -d; do
10559 for boost_lib in \
10560 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10561 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10562 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10563 boost_$boost_lib_$boost_tag_$boost_ver_
10565 # Avoid testing twice the same lib
10566 case $boost_failed_libs in #(
10567 (*@$boost_lib@*) continue;;
10568 esac
10569 # If with_boost is empty, we'll search in /lib first, which is not quite
10570 # right so instead we'll try to a location based on where the headers are.
10571 boost_tmp_lib=$with_boost
10572 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10573 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10574 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10575 "$with_boost" C:/Boost/lib /lib*
10577 # Don't waste time with directories that don't exist.
10578 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10579 continue
10581 boost_save_LDFLAGS=$LDFLAGS
10582 # Are we looking for a static library?
10583 case $boost_ldpath:$boost_rtopt_ in #(
10584 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10585 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10586 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10587 (*) # No: use -lboost_foo to find the shared library.
10588 boost_cv_lib_system_LIBS="-l$boost_lib";;
10589 esac
10590 boost_save_LIBS=$LIBS
10591 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10592 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10593 rm -f conftest$ac_exeext
10594 boost_save_ac_ext=$ac_ext
10595 boost_use_source=:
10596 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10597 # tries to link the existing object file instead of compiling from source.
10598 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10599 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10600 if { { ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10606 $as_echo "$ac_try_echo"; } >&5
10607 (eval "$ac_link") 2>conftest.err
10608 ac_status=$?
10609 if test -s conftest.err; then
10610 grep -v '^ *+' conftest.err >conftest.er1
10611 cat conftest.er1 >&5
10612 mv -f conftest.er1 conftest.err
10614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10615 test $ac_status = 0; } && {
10616 test -z "$ac_cxx_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext && {
10619 test "$cross_compiling" = yes ||
10620 $as_executable_p conftest$ac_exeext
10621 }; then :
10622 boost_cv_lib_system=yes
10623 else
10624 if $boost_use_source; then
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10629 boost_cv_lib_system=no
10631 ac_objext=$boost_save_ac_objext
10632 ac_ext=$boost_save_ac_ext
10633 rm -f core conftest.err conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext
10635 ac_objext=$boost_save_ac_objext
10636 LDFLAGS=$boost_save_LDFLAGS
10637 LIBS=$boost_save_LIBS
10638 if test x"$boost_cv_lib_system" = xyes; then
10639 # Check or used cached result of whether or not using -R or
10640 # -rpath makes sense. Some implementations of ld, such as for
10641 # Mac OSX, require -rpath but -R is the flag known to work on
10642 # other systems. https://github.com/tsuna/boost.m4/issues/19
10643 if ${boost_cv_rpath_link_ldflag+:} false; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 case $boost_ldpath in
10647 '') # Nothing to do.
10648 boost_cv_rpath_link_ldflag=
10649 boost_rpath_link_ldflag_found=yes;;
10651 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10652 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10653 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10654 rm -f conftest$ac_exeext
10655 boost_save_ac_ext=$ac_ext
10656 boost_use_source=:
10657 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10658 # tries to link the existing object file instead of compiling from source.
10659 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10660 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10661 if { { ac_try="$ac_link"
10662 case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665 esac
10666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10667 $as_echo "$ac_try_echo"; } >&5
10668 (eval "$ac_link") 2>conftest.err
10669 ac_status=$?
10670 if test -s conftest.err; then
10671 grep -v '^ *+' conftest.err >conftest.er1
10672 cat conftest.er1 >&5
10673 mv -f conftest.er1 conftest.err
10675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10676 test $ac_status = 0; } && {
10677 test -z "$ac_cxx_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest$ac_exeext && {
10680 test "$cross_compiling" = yes ||
10681 $as_executable_p conftest$ac_exeext
10682 }; then :
10683 boost_rpath_link_ldflag_found=yes
10684 break
10685 else
10686 if $boost_use_source; then
10687 $as_echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10691 boost_rpath_link_ldflag_found=no
10693 ac_objext=$boost_save_ac_objext
10694 ac_ext=$boost_save_ac_ext
10695 rm -f core conftest.err conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext
10697 done
10699 esac
10700 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10701 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10703 LDFLAGS=$boost_save_LDFLAGS
10704 LIBS=$boost_save_LIBS
10708 test x"$boost_ldpath" != x &&
10709 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10710 boost_cv_lib_system_LDPATH="$boost_ldpath"
10711 break 7
10712 else
10713 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10715 done
10716 done
10717 done
10718 done
10719 done
10720 done
10721 done # boost_lib_
10722 rm -f conftest.$ac_objext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10726 $as_echo "$boost_cv_lib_system" >&6; }
10727 case $boost_cv_lib_system in #(
10728 (no) $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
10733 esac
10734 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10735 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10736 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10737 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10738 CPPFLAGS=$boost_save_CPPFLAGS
10739 ac_ext=cpp
10740 ac_cpp='$CXXCPP $CPPFLAGS'
10741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10748 if test ${boost_cv_lib_system:-no} != yes; then :
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10751 Boost support has been disabled because Boost.System not found" >&5
10752 $as_echo "$as_me: WARNING:
10753 Boost support has been disabled because Boost.System not found" >&2;}
10754 _mule_warning_8=yes
10755 _mule_has_warnings=yes
10757 with_boost=disabled
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 CPPFLAGS="$mule_backup_CPPFLAGS"
10764 if test x"$boost_cv_inc_path" = xno; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10767 Boost support has been disabled because Boost.Asio not found" >&5
10768 $as_echo "$as_me: WARNING:
10769 Boost support has been disabled because Boost.Asio not found" >&2;}
10770 _mule_warning_9=yes
10771 _mule_has_warnings=yes
10773 with_boost=disabled
10775 else
10776 ac_ext=cpp
10777 ac_cpp='$CXXCPP $CPPFLAGS'
10778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10781 boost_save_CPPFLAGS=$CPPFLAGS
10782 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10783 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10784 if test "x$ac_cv_header_boost_asio_hpp" = xyes; then :
10786 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10788 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10791 Boost support has been disabled because Boost.Asio not found" >&5
10792 $as_echo "$as_me: WARNING:
10793 Boost support has been disabled because Boost.Asio not found" >&2;}
10794 _mule_warning_10=yes
10795 _mule_has_warnings=yes
10797 with_boost=disabled
10802 CPPFLAGS=$boost_save_CPPFLAGS
10803 ac_ext=cpp
10804 ac_cpp='$CXXCPP $CPPFLAGS'
10805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10813 Boost support has been disabled because of insufficient Boost version." >&5
10814 $as_echo "$as_me: WARNING:
10815 Boost support has been disabled because of insufficient Boost version." >&2;}
10816 _mule_warning_11=yes
10817 _mule_has_warnings=yes
10827 # Ok, we have all needed libs, now checking for other stuff
10828 if test "$LEX" = "flex"; then :
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10831 $as_echo_n "checking for extended flex capabilities... " >&6; }
10833 extended_flex=`flex --help | grep header-file`
10834 if test -n "$extended_flex"; then :
10835 HAVE_FLEX_EXTENDED=yes
10836 else
10837 HAVE_FLEX_EXTENDED=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10840 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10842 if test $HAVE_FLEX_EXTENDED = no; then :
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
10844 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10847 else
10848 HAVE_FLEX_EXTENDED=no
10852 # Checks for header files.
10853 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10854 if test "x$ac_cv_type_size_t" = xyes; then :
10856 else
10858 cat >>confdefs.h <<_ACEOF
10859 #define size_t unsigned int
10860 _ACEOF
10864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10865 # for constant arguments. Useless!
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10867 $as_echo_n "checking for working alloca.h... " >&6; }
10868 if ${ac_cv_working_alloca_h+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 #include <alloca.h>
10875 main ()
10877 char *p = (char *) alloca (2 * sizeof (int));
10878 if (p) return 0;
10880 return 0;
10882 _ACEOF
10883 if ac_fn_cxx_try_link "$LINENO"; then :
10884 ac_cv_working_alloca_h=yes
10885 else
10886 ac_cv_working_alloca_h=no
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10892 $as_echo "$ac_cv_working_alloca_h" >&6; }
10893 if test $ac_cv_working_alloca_h = yes; then
10895 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10900 $as_echo_n "checking for alloca... " >&6; }
10901 if ${ac_cv_func_alloca_works+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #ifdef __GNUC__
10907 # define alloca __builtin_alloca
10908 #else
10909 # ifdef _MSC_VER
10910 # include <malloc.h>
10911 # define alloca _alloca
10912 # else
10913 # ifdef HAVE_ALLOCA_H
10914 # include <alloca.h>
10915 # else
10916 # ifdef _AIX
10917 #pragma alloca
10918 # else
10919 # ifndef alloca /* predefined by HP cc +Olibcalls */
10920 void *alloca (size_t);
10921 # endif
10922 # endif
10923 # endif
10924 # endif
10925 #endif
10928 main ()
10930 char *p = (char *) alloca (1);
10931 if (p) return 0;
10933 return 0;
10935 _ACEOF
10936 if ac_fn_cxx_try_link "$LINENO"; then :
10937 ac_cv_func_alloca_works=yes
10938 else
10939 ac_cv_func_alloca_works=no
10941 rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10945 $as_echo "$ac_cv_func_alloca_works" >&6; }
10947 if test $ac_cv_func_alloca_works = yes; then
10949 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10951 else
10952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10953 # that cause trouble. Some versions do not even contain alloca or
10954 # contain a buggy version. If you still want to use their alloca,
10955 # use ar to extract alloca.o from them instead of compiling alloca.c.
10957 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10959 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10963 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10964 if ${ac_cv_os_cray+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 #if defined CRAY && ! defined CRAY2
10970 webecray
10971 #else
10972 wenotbecray
10973 #endif
10975 _ACEOF
10976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10977 $EGREP "webecray" >/dev/null 2>&1; then :
10978 ac_cv_os_cray=yes
10979 else
10980 ac_cv_os_cray=no
10982 rm -f conftest*
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10986 $as_echo "$ac_cv_os_cray" >&6; }
10987 if test $ac_cv_os_cray = yes; then
10988 for ac_func in _getb67 GETB67 getb67; do
10989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10990 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10993 cat >>confdefs.h <<_ACEOF
10994 #define CRAY_STACKSEG_END $ac_func
10995 _ACEOF
10997 break
11000 done
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11004 $as_echo_n "checking stack direction for C alloca... " >&6; }
11005 if ${ac_cv_c_stack_direction+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 if test "$cross_compiling" = yes; then :
11009 ac_cv_c_stack_direction=0
11010 else
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013 $ac_includes_default
11015 find_stack_direction (int *addr, int depth)
11017 int dir, dummy = 0;
11018 if (! addr)
11019 addr = &dummy;
11020 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11021 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11022 return dir + dummy;
11026 main (int argc, char **argv)
11028 return find_stack_direction (0, argc + !argv + 20) < 0;
11030 _ACEOF
11031 if ac_fn_cxx_try_run "$LINENO"; then :
11032 ac_cv_c_stack_direction=1
11033 else
11034 ac_cv_c_stack_direction=-1
11036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11037 conftest.$ac_objext conftest.beam conftest.$ac_ext
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11042 $as_echo "$ac_cv_c_stack_direction" >&6; }
11043 cat >>confdefs.h <<_ACEOF
11044 #define STACK_DIRECTION $ac_cv_c_stack_direction
11045 _ACEOF
11050 ac_header_dirent=no
11051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11052 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11054 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11055 if eval \${$as_ac_Header+:} false; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #include <sys/types.h>
11061 #include <$ac_hdr>
11064 main ()
11066 if ((DIR *) 0)
11067 return 0;
11069 return 0;
11071 _ACEOF
11072 if ac_fn_cxx_try_compile "$LINENO"; then :
11073 eval "$as_ac_Header=yes"
11074 else
11075 eval "$as_ac_Header=no"
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 eval ac_res=\$$as_ac_Header
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11083 cat >>confdefs.h <<_ACEOF
11084 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11085 _ACEOF
11087 ac_header_dirent=$ac_hdr; break
11090 done
11091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11092 if test $ac_header_dirent = dirent.h; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11094 $as_echo_n "checking for library containing opendir... " >&6; }
11095 if ${ac_cv_search_opendir+:} false; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 ac_func_search_save_LIBS=$LIBS
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char opendir ();
11110 main ()
11112 return opendir ();
11114 return 0;
11116 _ACEOF
11117 for ac_lib in '' dir; do
11118 if test -z "$ac_lib"; then
11119 ac_res="none required"
11120 else
11121 ac_res=-l$ac_lib
11122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11124 if ac_fn_cxx_try_link "$LINENO"; then :
11125 ac_cv_search_opendir=$ac_res
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext
11129 if ${ac_cv_search_opendir+:} false; then :
11130 break
11132 done
11133 if ${ac_cv_search_opendir+:} false; then :
11135 else
11136 ac_cv_search_opendir=no
11138 rm conftest.$ac_ext
11139 LIBS=$ac_func_search_save_LIBS
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11142 $as_echo "$ac_cv_search_opendir" >&6; }
11143 ac_res=$ac_cv_search_opendir
11144 if test "$ac_res" != no; then :
11145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11149 else
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11151 $as_echo_n "checking for library containing opendir... " >&6; }
11152 if ${ac_cv_search_opendir+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 ac_func_search_save_LIBS=$LIBS
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char opendir ();
11167 main ()
11169 return opendir ();
11171 return 0;
11173 _ACEOF
11174 for ac_lib in '' x; do
11175 if test -z "$ac_lib"; then
11176 ac_res="none required"
11177 else
11178 ac_res=-l$ac_lib
11179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11181 if ac_fn_cxx_try_link "$LINENO"; then :
11182 ac_cv_search_opendir=$ac_res
11184 rm -f core conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext
11186 if ${ac_cv_search_opendir+:} false; then :
11187 break
11189 done
11190 if ${ac_cv_search_opendir+:} false; then :
11192 else
11193 ac_cv_search_opendir=no
11195 rm conftest.$ac_ext
11196 LIBS=$ac_func_search_save_LIBS
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11199 $as_echo "$ac_cv_search_opendir" >&6; }
11200 ac_res=$ac_cv_search_opendir
11201 if test "$ac_res" != no; then :
11202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11209 $as_echo_n "checking for ANSI C header files... " >&6; }
11210 if ${ac_cv_header_stdc+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 #include <stdlib.h>
11216 #include <stdarg.h>
11217 #include <string.h>
11218 #include <float.h>
11221 main ()
11225 return 0;
11227 _ACEOF
11228 if ac_fn_cxx_try_compile "$LINENO"; then :
11229 ac_cv_header_stdc=yes
11230 else
11231 ac_cv_header_stdc=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 if test $ac_cv_header_stdc = yes; then
11236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #include <string.h>
11241 _ACEOF
11242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11243 $EGREP "memchr" >/dev/null 2>&1; then :
11245 else
11246 ac_cv_header_stdc=no
11248 rm -f conftest*
11252 if test $ac_cv_header_stdc = yes; then
11253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 #include <stdlib.h>
11258 _ACEOF
11259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11260 $EGREP "free" >/dev/null 2>&1; then :
11262 else
11263 ac_cv_header_stdc=no
11265 rm -f conftest*
11269 if test $ac_cv_header_stdc = yes; then
11270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11271 if test "$cross_compiling" = yes; then :
11273 else
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276 #include <ctype.h>
11277 #include <stdlib.h>
11278 #if ((' ' & 0x0FF) == 0x020)
11279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11281 #else
11282 # define ISLOWER(c) \
11283 (('a' <= (c) && (c) <= 'i') \
11284 || ('j' <= (c) && (c) <= 'r') \
11285 || ('s' <= (c) && (c) <= 'z'))
11286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11287 #endif
11289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11291 main ()
11293 int i;
11294 for (i = 0; i < 256; i++)
11295 if (XOR (islower (i), ISLOWER (i))
11296 || toupper (i) != TOUPPER (i))
11297 return 2;
11298 return 0;
11300 _ACEOF
11301 if ac_fn_cxx_try_run "$LINENO"; then :
11303 else
11304 ac_cv_header_stdc=no
11306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11307 conftest.$ac_objext conftest.beam conftest.$ac_ext
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11313 $as_echo "$ac_cv_header_stdc" >&6; }
11314 if test $ac_cv_header_stdc = yes; then
11316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11320 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
11321 do :
11322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11325 cat >>confdefs.h <<_ACEOF
11326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 _ACEOF
11331 done
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11334 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11335 if ${ac_cv_header_sys_wait_h+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 #include <sys/types.h>
11341 #include <sys/wait.h>
11342 #ifndef WEXITSTATUS
11343 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11344 #endif
11345 #ifndef WIFEXITED
11346 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11347 #endif
11350 main ()
11352 int s;
11353 wait (&s);
11354 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11356 return 0;
11358 _ACEOF
11359 if ac_fn_cxx_try_compile "$LINENO"; then :
11360 ac_cv_header_sys_wait_h=yes
11361 else
11362 ac_cv_header_sys_wait_h=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11367 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11368 if test $ac_cv_header_sys_wait_h = yes; then
11370 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11376 # Checks for typedefs, structures, and compiler characteristics.
11377 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11378 if test "x$ac_cv_type_mode_t" = xyes; then :
11380 else
11382 cat >>confdefs.h <<_ACEOF
11383 #define mode_t int
11384 _ACEOF
11388 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11389 if test "x$ac_cv_type_off_t" = xyes; then :
11391 else
11393 cat >>confdefs.h <<_ACEOF
11394 #define off_t long int
11395 _ACEOF
11399 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11400 if test "x$ac_cv_type_size_t" = xyes; then :
11402 else
11404 cat >>confdefs.h <<_ACEOF
11405 #define size_t unsigned int
11406 _ACEOF
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11411 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11412 if ${ac_cv_header_time+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #include <sys/types.h>
11418 #include <sys/time.h>
11419 #include <time.h>
11422 main ()
11424 if ((struct tm *) 0)
11425 return 0;
11427 return 0;
11429 _ACEOF
11430 if ac_fn_cxx_try_compile "$LINENO"; then :
11431 ac_cv_header_time=yes
11432 else
11433 ac_cv_header_time=no
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11438 $as_echo "$ac_cv_header_time" >&6; }
11439 if test $ac_cv_header_time = yes; then
11441 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11446 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11447 if ${ac_cv_struct_tm+:} false; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452 #include <sys/types.h>
11453 #include <time.h>
11456 main ()
11458 struct tm tm;
11459 int *p = &tm.tm_sec;
11460 return !p;
11462 return 0;
11464 _ACEOF
11465 if ac_fn_cxx_try_compile "$LINENO"; then :
11466 ac_cv_struct_tm=time.h
11467 else
11468 ac_cv_struct_tm=sys/time.h
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11473 $as_echo "$ac_cv_struct_tm" >&6; }
11474 if test $ac_cv_struct_tm = sys/time.h; then
11476 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11481 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11482 if ${ac_cv_type_uid_t+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487 #include <sys/types.h>
11489 _ACEOF
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "uid_t" >/dev/null 2>&1; then :
11492 ac_cv_type_uid_t=yes
11493 else
11494 ac_cv_type_uid_t=no
11496 rm -f conftest*
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11500 $as_echo "$ac_cv_type_uid_t" >&6; }
11501 if test $ac_cv_type_uid_t = no; then
11503 $as_echo "#define uid_t int" >>confdefs.h
11506 $as_echo "#define gid_t int" >>confdefs.h
11510 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11511 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11513 cat >>confdefs.h <<_ACEOF
11514 #define HAVE_PTRDIFF_T 1
11515 _ACEOF
11522 # Checks for library functions.
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11524 $as_echo_n "checking whether closedir returns void... " >&6; }
11525 if ${ac_cv_func_closedir_void+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test "$cross_compiling" = yes; then :
11529 ac_cv_func_closedir_void=yes
11530 else
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header_dirent>
11535 #ifndef __cplusplus
11536 int closedir ();
11537 #endif
11540 main ()
11542 return closedir (opendir (".")) != 0;
11544 return 0;
11546 _ACEOF
11547 if ac_fn_cxx_try_run "$LINENO"; then :
11548 ac_cv_func_closedir_void=no
11549 else
11550 ac_cv_func_closedir_void=yes
11552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11553 conftest.$ac_objext conftest.beam conftest.$ac_ext
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11558 $as_echo "$ac_cv_func_closedir_void" >&6; }
11559 if test $ac_cv_func_closedir_void = yes; then
11561 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11565 if test $ac_cv_c_compiler_gnu = yes; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11567 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11568 if ${ac_cv_prog_gcc_traditional+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_pattern="Autoconf.*'x'"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #include <sgtty.h>
11575 Autoconf TIOCGETP
11576 _ACEOF
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11579 ac_cv_prog_gcc_traditional=yes
11580 else
11581 ac_cv_prog_gcc_traditional=no
11583 rm -f conftest*
11586 if test $ac_cv_prog_gcc_traditional = no; then
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <termio.h>
11590 Autoconf TCGETA
11591 _ACEOF
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11593 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11594 ac_cv_prog_gcc_traditional=yes
11596 rm -f conftest*
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11601 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11602 if test $ac_cv_prog_gcc_traditional = yes; then
11603 CC="$CC -traditional"
11607 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11608 if test "x$ac_cv_type_pid_t" = xyes; then :
11610 else
11612 cat >>confdefs.h <<_ACEOF
11613 #define pid_t int
11614 _ACEOF
11618 for ac_header in vfork.h
11619 do :
11620 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11621 if test "x$ac_cv_header_vfork_h" = xyes; then :
11622 cat >>confdefs.h <<_ACEOF
11623 #define HAVE_VFORK_H 1
11624 _ACEOF
11628 done
11630 for ac_func in fork vfork
11631 do :
11632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11635 cat >>confdefs.h <<_ACEOF
11636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11637 _ACEOF
11640 done
11642 if test "x$ac_cv_func_fork" = xyes; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11644 $as_echo_n "checking for working fork... " >&6; }
11645 if ${ac_cv_func_fork_works+:} false; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 if test "$cross_compiling" = yes; then :
11649 ac_cv_func_fork_works=cross
11650 else
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653 $ac_includes_default
11655 main ()
11658 /* By Ruediger Kuhlmann. */
11659 return fork () < 0;
11662 return 0;
11664 _ACEOF
11665 if ac_fn_cxx_try_run "$LINENO"; then :
11666 ac_cv_func_fork_works=yes
11667 else
11668 ac_cv_func_fork_works=no
11670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11671 conftest.$ac_objext conftest.beam conftest.$ac_ext
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11676 $as_echo "$ac_cv_func_fork_works" >&6; }
11678 else
11679 ac_cv_func_fork_works=$ac_cv_func_fork
11681 if test "x$ac_cv_func_fork_works" = xcross; then
11682 case $host in
11683 *-*-amigaos* | *-*-msdosdjgpp*)
11684 # Override, as these systems have only a dummy fork() stub
11685 ac_cv_func_fork_works=no
11688 ac_cv_func_fork_works=yes
11690 esac
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11692 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11694 ac_cv_func_vfork_works=$ac_cv_func_vfork
11695 if test "x$ac_cv_func_vfork" = xyes; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11697 $as_echo_n "checking for working vfork... " >&6; }
11698 if ${ac_cv_func_vfork_works+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test "$cross_compiling" = yes; then :
11702 ac_cv_func_vfork_works=cross
11703 else
11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11706 /* Thanks to Paul Eggert for this test. */
11707 $ac_includes_default
11708 #include <sys/wait.h>
11709 #ifdef HAVE_VFORK_H
11710 # include <vfork.h>
11711 #endif
11712 /* On some sparc systems, changes by the child to local and incoming
11713 argument registers are propagated back to the parent. The compiler
11714 is told about this with #include <vfork.h>, but some compilers
11715 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11716 static variable whose address is put into a register that is
11717 clobbered by the vfork. */
11718 static void
11719 #ifdef __cplusplus
11720 sparc_address_test (int arg)
11721 # else
11722 sparc_address_test (arg) int arg;
11723 #endif
11725 static pid_t child;
11726 if (!child) {
11727 child = vfork ();
11728 if (child < 0) {
11729 perror ("vfork");
11730 _exit(2);
11732 if (!child) {
11733 arg = getpid();
11734 write(-1, "", 0);
11735 _exit (arg);
11741 main ()
11743 pid_t parent = getpid ();
11744 pid_t child;
11746 sparc_address_test (0);
11748 child = vfork ();
11750 if (child == 0) {
11751 /* Here is another test for sparc vfork register problems. This
11752 test uses lots of local variables, at least as many local
11753 variables as main has allocated so far including compiler
11754 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11755 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11756 reuse the register of parent for one of the local variables,
11757 since it will think that parent can't possibly be used any more
11758 in this routine. Assigning to the local variable will thus
11759 munge parent in the parent process. */
11760 pid_t
11761 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11762 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11763 /* Convince the compiler that p..p7 are live; otherwise, it might
11764 use the same hardware register for all 8 local variables. */
11765 if (p != p1 || p != p2 || p != p3 || p != p4
11766 || p != p5 || p != p6 || p != p7)
11767 _exit(1);
11769 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11770 from child file descriptors. If the child closes a descriptor
11771 before it execs or exits, this munges the parent's descriptor
11772 as well. Test for this by closing stdout in the child. */
11773 _exit(close(fileno(stdout)) != 0);
11774 } else {
11775 int status;
11776 struct stat st;
11778 while (wait(&status) != child)
11780 return (
11781 /* Was there some problem with vforking? */
11782 child < 0
11784 /* Did the child fail? (This shouldn't happen.) */
11785 || status
11787 /* Did the vfork/compiler bug occur? */
11788 || parent != getpid()
11790 /* Did the file descriptor bug occur? */
11791 || fstat(fileno(stdout), &st) != 0
11795 _ACEOF
11796 if ac_fn_cxx_try_run "$LINENO"; then :
11797 ac_cv_func_vfork_works=yes
11798 else
11799 ac_cv_func_vfork_works=no
11801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11802 conftest.$ac_objext conftest.beam conftest.$ac_ext
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11807 $as_echo "$ac_cv_func_vfork_works" >&6; }
11810 if test "x$ac_cv_func_fork_works" = xcross; then
11811 ac_cv_func_vfork_works=$ac_cv_func_vfork
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11813 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11816 if test "x$ac_cv_func_vfork_works" = xyes; then
11818 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11820 else
11822 $as_echo "#define vfork fork" >>confdefs.h
11825 if test "x$ac_cv_func_fork_works" = xyes; then
11827 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11832 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11833 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 rm -f conftest.sym conftest.file
11837 echo >conftest.file
11838 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11839 if test "$cross_compiling" = yes; then :
11840 ac_cv_func_lstat_dereferences_slashed_symlink=no
11841 else
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 $ac_includes_default
11846 main ()
11848 struct stat sbuf;
11849 /* Linux will dereference the symlink and fail, as required by POSIX.
11850 That is better in the sense that it means we will not
11851 have to compile and use the lstat wrapper. */
11852 return lstat ("conftest.sym/", &sbuf) == 0;
11854 return 0;
11856 _ACEOF
11857 if ac_fn_cxx_try_run "$LINENO"; then :
11858 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11859 else
11860 ac_cv_func_lstat_dereferences_slashed_symlink=no
11862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11863 conftest.$ac_objext conftest.beam conftest.$ac_ext
11866 else
11867 # If the `ln -s' command failed, then we probably don't even
11868 # have an lstat function.
11869 ac_cv_func_lstat_dereferences_slashed_symlink=no
11871 rm -f conftest.sym conftest.file
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11875 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11877 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11879 cat >>confdefs.h <<_ACEOF
11880 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11881 _ACEOF
11884 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11885 case " $LIBOBJS " in
11886 *" lstat.$ac_objext "* ) ;;
11887 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11889 esac
11893 if test x$SYS != xwin32; then :
11895 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11896 # -lseq on Dynix/PTX, -lgen on Unixware.
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11898 $as_echo_n "checking for library containing getmntent... " >&6; }
11899 if ${ac_cv_search_getmntent+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 ac_func_search_save_LIBS=$LIBS
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply. */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 char getmntent ();
11914 main ()
11916 return getmntent ();
11918 return 0;
11920 _ACEOF
11921 for ac_lib in '' sun seq gen; do
11922 if test -z "$ac_lib"; then
11923 ac_res="none required"
11924 else
11925 ac_res=-l$ac_lib
11926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11928 if ac_fn_cxx_try_link "$LINENO"; then :
11929 ac_cv_search_getmntent=$ac_res
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext
11933 if ${ac_cv_search_getmntent+:} false; then :
11934 break
11936 done
11937 if ${ac_cv_search_getmntent+:} false; then :
11939 else
11940 ac_cv_search_getmntent=no
11942 rm conftest.$ac_ext
11943 LIBS=$ac_func_search_save_LIBS
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11946 $as_echo "$ac_cv_search_getmntent" >&6; }
11947 ac_res=$ac_cv_search_getmntent
11948 if test "$ac_res" != no; then :
11949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11950 ac_cv_func_getmntent=yes
11952 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11954 else
11955 ac_cv_func_getmntent=no
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11960 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11961 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 if test "$cross_compiling" = yes; then :
11965 ac_cv_func_lstat_empty_string_bug=yes
11966 else
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 $ac_includes_default
11971 main ()
11973 struct stat sbuf;
11974 return lstat ("", &sbuf) == 0;
11976 return 0;
11978 _ACEOF
11979 if ac_fn_cxx_try_run "$LINENO"; then :
11980 ac_cv_func_lstat_empty_string_bug=no
11981 else
11982 ac_cv_func_lstat_empty_string_bug=yes
11984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11985 conftest.$ac_objext conftest.beam conftest.$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11990 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11991 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11992 case " $LIBOBJS " in
11993 *" lstat.$ac_objext "* ) ;;
11994 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11996 esac
11999 cat >>confdefs.h <<_ACEOF
12000 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12001 _ACEOF
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12006 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12007 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 rm -f conftest.sym conftest.file
12011 echo >conftest.file
12012 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12013 if test "$cross_compiling" = yes; then :
12014 ac_cv_func_lstat_dereferences_slashed_symlink=no
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 $ac_includes_default
12020 main ()
12022 struct stat sbuf;
12023 /* Linux will dereference the symlink and fail, as required by POSIX.
12024 That is better in the sense that it means we will not
12025 have to compile and use the lstat wrapper. */
12026 return lstat ("conftest.sym/", &sbuf) == 0;
12028 return 0;
12030 _ACEOF
12031 if ac_fn_cxx_try_run "$LINENO"; then :
12032 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12033 else
12034 ac_cv_func_lstat_dereferences_slashed_symlink=no
12036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037 conftest.$ac_objext conftest.beam conftest.$ac_ext
12040 else
12041 # If the `ln -s' command failed, then we probably don't even
12042 # have an lstat function.
12043 ac_cv_func_lstat_dereferences_slashed_symlink=no
12045 rm -f conftest.sym conftest.file
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12049 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12051 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12053 cat >>confdefs.h <<_ACEOF
12054 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12055 _ACEOF
12058 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
12059 case " $LIBOBJS " in
12060 *" lstat.$ac_objext "* ) ;;
12061 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12063 esac
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12070 $as_echo_n "checking for working memcmp... " >&6; }
12071 if ${ac_cv_func_memcmp_working+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test "$cross_compiling" = yes; then :
12075 ac_cv_func_memcmp_working=no
12076 else
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 $ac_includes_default
12081 main ()
12084 /* Some versions of memcmp are not 8-bit clean. */
12085 char c0 = '\100', c1 = '\200', c2 = '\201';
12086 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12087 return 1;
12089 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12090 or more and with at least one buffer not starting on a 4-byte boundary.
12091 William Lewis provided this test program. */
12093 char foo[21];
12094 char bar[21];
12095 int i;
12096 for (i = 0; i < 4; i++)
12098 char *a = foo + i;
12099 char *b = bar + i;
12100 strcpy (a, "--------01111111");
12101 strcpy (b, "--------10000000");
12102 if (memcmp (a, b, 16) >= 0)
12103 return 1;
12105 return 0;
12109 return 0;
12111 _ACEOF
12112 if ac_fn_cxx_try_run "$LINENO"; then :
12113 ac_cv_func_memcmp_working=yes
12114 else
12115 ac_cv_func_memcmp_working=no
12117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12118 conftest.$ac_objext conftest.beam conftest.$ac_ext
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12123 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12124 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12125 *" memcmp.$ac_objext "* ) ;;
12126 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12128 esac
12131 for ac_header in sys/select.h sys/socket.h
12132 do :
12133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12134 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12136 cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12138 _ACEOF
12142 done
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12145 $as_echo_n "checking types of arguments for select... " >&6; }
12146 if ${ac_cv_func_select_args+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12150 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12151 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154 $ac_includes_default
12155 #ifdef HAVE_SYS_SELECT_H
12156 # include <sys/select.h>
12157 #endif
12158 #ifdef HAVE_SYS_SOCKET_H
12159 # include <sys/socket.h>
12160 #endif
12163 main ()
12165 extern int select ($ac_arg1,
12166 $ac_arg234, $ac_arg234, $ac_arg234,
12167 $ac_arg5);
12169 return 0;
12171 _ACEOF
12172 if ac_fn_cxx_try_compile "$LINENO"; then :
12173 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 done
12177 done
12178 done
12179 # Provide a safe default value.
12180 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12184 $as_echo "$ac_cv_func_select_args" >&6; }
12185 ac_save_IFS=$IFS; IFS=','
12186 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12187 IFS=$ac_save_IFS
12188 shift
12190 cat >>confdefs.h <<_ACEOF
12191 #define SELECT_TYPE_ARG1 $1
12192 _ACEOF
12195 cat >>confdefs.h <<_ACEOF
12196 #define SELECT_TYPE_ARG234 ($2)
12197 _ACEOF
12200 cat >>confdefs.h <<_ACEOF
12201 #define SELECT_TYPE_ARG5 ($3)
12202 _ACEOF
12204 rm -f conftest*
12206 if ${ac_cv_func_setvbuf_reversed+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_cv_func_setvbuf_reversed=no
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12214 $as_echo_n "checking return type of signal handlers... " >&6; }
12215 if ${ac_cv_type_signal+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220 #include <sys/types.h>
12221 #include <signal.h>
12224 main ()
12226 return *(signal (0, 0)) (0) == 1;
12228 return 0;
12230 _ACEOF
12231 if ac_fn_cxx_try_compile "$LINENO"; then :
12232 ac_cv_type_signal=int
12233 else
12234 ac_cv_type_signal=void
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12239 $as_echo "$ac_cv_type_signal" >&6; }
12241 cat >>confdefs.h <<_ACEOF
12242 #define RETSIGTYPE $ac_cv_type_signal
12243 _ACEOF
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12247 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12248 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 if test "$cross_compiling" = yes; then :
12252 ac_cv_func_stat_empty_string_bug=yes
12253 else
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 $ac_includes_default
12258 main ()
12260 struct stat sbuf;
12261 return stat ("", &sbuf) == 0;
12263 return 0;
12265 _ACEOF
12266 if ac_fn_cxx_try_run "$LINENO"; then :
12267 ac_cv_func_stat_empty_string_bug=no
12268 else
12269 ac_cv_func_stat_empty_string_bug=yes
12271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12272 conftest.$ac_objext conftest.beam conftest.$ac_ext
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12277 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12278 if test $ac_cv_func_stat_empty_string_bug = yes; then
12279 case " $LIBOBJS " in
12280 *" stat.$ac_objext "* ) ;;
12281 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12283 esac
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_STAT_EMPTY_STRING_BUG 1
12288 _ACEOF
12292 for ac_func in strftime
12293 do :
12294 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12295 if test "x$ac_cv_func_strftime" = xyes; then :
12296 cat >>confdefs.h <<_ACEOF
12297 #define HAVE_STRFTIME 1
12298 _ACEOF
12300 else
12301 # strftime is in -lintl on SCO UNIX.
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12303 $as_echo_n "checking for strftime in -lintl... " >&6; }
12304 if ${ac_cv_lib_intl_strftime+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lintl $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 char strftime ();
12320 main ()
12322 return strftime ();
12324 return 0;
12326 _ACEOF
12327 if ac_fn_cxx_try_link "$LINENO"; then :
12328 ac_cv_lib_intl_strftime=yes
12329 else
12330 ac_cv_lib_intl_strftime=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12337 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12338 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12339 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12341 LIBS="-lintl $LIBS"
12345 done
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12348 $as_echo_n "checking for working strtod... " >&6; }
12349 if ${ac_cv_func_strtod+:} false; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test "$cross_compiling" = yes; then :
12353 ac_cv_func_strtod=no
12354 else
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 $ac_includes_default
12359 #ifndef strtod
12360 double strtod ();
12361 #endif
12363 main()
12366 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12367 char *string = " +69";
12368 char *term;
12369 double value;
12370 value = strtod (string, &term);
12371 if (value != 69 || term != (string + 4))
12372 return 1;
12376 /* Under Solaris 2.4, strtod returns the wrong value for the
12377 terminating character under some conditions. */
12378 char *string = "NaN";
12379 char *term;
12380 strtod (string, &term);
12381 if (term != string && *(term - 1) == 0)
12382 return 1;
12384 return 0;
12387 _ACEOF
12388 if ac_fn_cxx_try_run "$LINENO"; then :
12389 ac_cv_func_strtod=yes
12390 else
12391 ac_cv_func_strtod=no
12393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12394 conftest.$ac_objext conftest.beam conftest.$ac_ext
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12399 $as_echo "$ac_cv_func_strtod" >&6; }
12400 if test $ac_cv_func_strtod = no; then
12401 case " $LIBOBJS " in
12402 *" strtod.$ac_objext "* ) ;;
12403 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12405 esac
12407 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12408 if test "x$ac_cv_func_pow" = xyes; then :
12412 if test $ac_cv_func_pow = no; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12414 $as_echo_n "checking for pow in -lm... " >&6; }
12415 if ${ac_cv_lib_m_pow+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lm $LIBS"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char pow ();
12431 main ()
12433 return pow ();
12435 return 0;
12437 _ACEOF
12438 if ac_fn_cxx_try_link "$LINENO"; then :
12439 ac_cv_lib_m_pow=yes
12440 else
12441 ac_cv_lib_m_pow=no
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12448 $as_echo "$ac_cv_lib_m_pow" >&6; }
12449 if test "x$ac_cv_lib_m_pow" = xyes; then :
12450 POW_LIB=-lm
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12453 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12460 for ac_func in vprintf
12461 do :
12462 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12463 if test "x$ac_cv_func_vprintf" = xyes; then :
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_VPRINTF 1
12466 _ACEOF
12468 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12469 if test "x$ac_cv_func__doprnt" = xyes; then :
12471 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12476 done
12479 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12482 configure cannot check whether malloc() and realloc() are GNU libc
12483 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12484 run configure with the --without-gnu-malloc switch." >&5
12485 $as_echo "$as_me: WARNING:
12486 configure cannot check whether malloc() and realloc() are GNU libc
12487 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12488 run configure with the --without-gnu-malloc switch." >&2;}
12489 _mule_warning_12=yes
12490 _mule_has_warnings=yes
12492 ac_cv_func_malloc_0_nonnull=yes
12493 ac_cv_func_realloc_0_nonnull=yes
12496 for ac_header in stdlib.h
12497 do :
12498 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12499 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12500 cat >>confdefs.h <<_ACEOF
12501 #define HAVE_STDLIB_H 1
12502 _ACEOF
12506 done
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12509 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12510 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test "$cross_compiling" = yes; then :
12514 ac_cv_func_malloc_0_nonnull=no
12515 else
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12519 # include <stdlib.h>
12520 #else
12521 char *malloc ();
12522 #endif
12525 main ()
12527 return ! malloc (0);
12529 return 0;
12531 _ACEOF
12532 if ac_fn_cxx_try_run "$LINENO"; then :
12533 ac_cv_func_malloc_0_nonnull=yes
12534 else
12535 ac_cv_func_malloc_0_nonnull=no
12537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12538 conftest.$ac_objext conftest.beam conftest.$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12543 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12544 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12546 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12548 else
12549 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12551 case " $LIBOBJS " in
12552 *" malloc.$ac_objext "* ) ;;
12553 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12555 esac
12558 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12563 for ac_header in stdlib.h
12564 do :
12565 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12566 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define HAVE_STDLIB_H 1
12569 _ACEOF
12573 done
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12576 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12577 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test "$cross_compiling" = yes; then :
12581 ac_cv_func_realloc_0_nonnull=no
12582 else
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12586 # include <stdlib.h>
12587 #else
12588 char *realloc ();
12589 #endif
12592 main ()
12594 return ! realloc (0, 0);
12596 return 0;
12598 _ACEOF
12599 if ac_fn_cxx_try_run "$LINENO"; then :
12600 ac_cv_func_realloc_0_nonnull=yes
12601 else
12602 ac_cv_func_realloc_0_nonnull=no
12604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12605 conftest.$ac_objext conftest.beam conftest.$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12610 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12611 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12613 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12615 else
12616 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12618 case " $LIBOBJS " in
12619 *" realloc.$ac_objext "* ) ;;
12620 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12622 esac
12625 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12630 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
12631 do :
12632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12633 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12635 cat >>confdefs.h <<_ACEOF
12636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12637 _ACEOF
12640 done
12647 for ac_header in $ac_header_list
12648 do :
12649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12650 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12652 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12653 cat >>confdefs.h <<_ACEOF
12654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12655 _ACEOF
12659 done
12667 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12669 # Check whether --enable-mmap was given.
12670 if test "${enable_mmap+set}" = set; then :
12671 enableval=$enable_mmap;
12678 if test ${enable_mmap:-no} = yes; then :
12680 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12683 for ac_func in getpagesize
12684 do :
12685 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12686 if test "x$ac_cv_func_getpagesize" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_GETPAGESIZE 1
12689 _ACEOF
12692 done
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12695 $as_echo_n "checking for working mmap... " >&6; }
12696 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test "$cross_compiling" = yes; then :
12700 ac_cv_func_mmap_fixed_mapped=no
12701 else
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 /* malloc might have been renamed as rpl_malloc. */
12706 #undef malloc
12708 /* Thanks to Mike Haertel and Jim Avera for this test.
12709 Here is a matrix of mmap possibilities:
12710 mmap private not fixed
12711 mmap private fixed at somewhere currently unmapped
12712 mmap private fixed at somewhere already mapped
12713 mmap shared not fixed
12714 mmap shared fixed at somewhere currently unmapped
12715 mmap shared fixed at somewhere already mapped
12716 For private mappings, we should verify that changes cannot be read()
12717 back from the file, nor mmap's back from the file at a different
12718 address. (There have been systems where private was not correctly
12719 implemented like the infamous i386 svr4.0, and systems where the
12720 VM page cache was not coherent with the file system buffer cache
12721 like early versions of FreeBSD and possibly contemporary NetBSD.)
12722 For shared mappings, we should conversely verify that changes get
12723 propagated back to all the places they're supposed to be.
12725 Grep wants private fixed already mapped.
12726 The main things grep needs to know about mmap are:
12727 * does it exist and is it safe to write into the mmap'd area
12728 * how to use it (BSD variants) */
12730 #include <fcntl.h>
12731 #include <sys/mman.h>
12733 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12734 char *malloc ();
12735 #endif
12737 /* This mess was copied from the GNU getpagesize.h. */
12738 #ifndef HAVE_GETPAGESIZE
12739 # ifdef _SC_PAGESIZE
12740 # define getpagesize() sysconf(_SC_PAGESIZE)
12741 # else /* no _SC_PAGESIZE */
12742 # ifdef HAVE_SYS_PARAM_H
12743 # include <sys/param.h>
12744 # ifdef EXEC_PAGESIZE
12745 # define getpagesize() EXEC_PAGESIZE
12746 # else /* no EXEC_PAGESIZE */
12747 # ifdef NBPG
12748 # define getpagesize() NBPG * CLSIZE
12749 # ifndef CLSIZE
12750 # define CLSIZE 1
12751 # endif /* no CLSIZE */
12752 # else /* no NBPG */
12753 # ifdef NBPC
12754 # define getpagesize() NBPC
12755 # else /* no NBPC */
12756 # ifdef PAGESIZE
12757 # define getpagesize() PAGESIZE
12758 # endif /* PAGESIZE */
12759 # endif /* no NBPC */
12760 # endif /* no NBPG */
12761 # endif /* no EXEC_PAGESIZE */
12762 # else /* no HAVE_SYS_PARAM_H */
12763 # define getpagesize() 8192 /* punt totally */
12764 # endif /* no HAVE_SYS_PARAM_H */
12765 # endif /* no _SC_PAGESIZE */
12767 #endif /* no HAVE_GETPAGESIZE */
12770 main ()
12772 char *data, *data2, *data3;
12773 int i, pagesize;
12774 int fd, fd2;
12776 pagesize = getpagesize ();
12778 /* First, make a file with some known garbage in it. */
12779 data = (char *) malloc (pagesize);
12780 if (!data)
12781 return 1;
12782 for (i = 0; i < pagesize; ++i)
12783 *(data + i) = rand ();
12784 umask (0);
12785 fd = creat ("conftest.mmap", 0600);
12786 if (fd < 0)
12787 return 2;
12788 if (write (fd, data, pagesize) != pagesize)
12789 return 3;
12790 close (fd);
12792 /* Next, check that the tail of a page is zero-filled. File must have
12793 non-zero length, otherwise we risk SIGBUS for entire page. */
12794 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12795 if (fd2 < 0)
12796 return 4;
12797 data2 = (char *) "";
12798 if (write (fd2, data2, 1) != 1)
12799 return 5;
12800 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12801 if (data2 == MAP_FAILED)
12802 return 6;
12803 for (i = 0; i < pagesize; ++i)
12804 if (*(data2 + i))
12805 return 7;
12806 close (fd2);
12807 if (munmap (data2, pagesize))
12808 return 8;
12810 /* Next, try to mmap the file at a fixed address which already has
12811 something else allocated at it. If we can, also make sure that
12812 we see the same garbage. */
12813 fd = open ("conftest.mmap", O_RDWR);
12814 if (fd < 0)
12815 return 9;
12816 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12817 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12818 return 10;
12819 for (i = 0; i < pagesize; ++i)
12820 if (*(data + i) != *(data2 + i))
12821 return 11;
12823 /* Finally, make sure that changes to the mapped area do not
12824 percolate back to the file as seen by read(). (This is a bug on
12825 some variants of i386 svr4.0.) */
12826 for (i = 0; i < pagesize; ++i)
12827 *(data2 + i) = *(data2 + i) + 1;
12828 data3 = (char *) malloc (pagesize);
12829 if (!data3)
12830 return 12;
12831 if (read (fd, data3, pagesize) != pagesize)
12832 return 13;
12833 for (i = 0; i < pagesize; ++i)
12834 if (*(data + i) != *(data3 + i))
12835 return 14;
12836 close (fd);
12837 return 0;
12839 _ACEOF
12840 if ac_fn_cxx_try_run "$LINENO"; then :
12841 ac_cv_func_mmap_fixed_mapped=yes
12842 else
12843 ac_cv_func_mmap_fixed_mapped=no
12845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12846 conftest.$ac_objext conftest.beam conftest.$ac_ext
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12851 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12852 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12854 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12857 rm -f conftest.mmap conftest.txt
12859 for ac_func in munmap sysconf
12860 do :
12861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12866 _ACEOF
12869 done
12871 if test $ac_cv_func_sysconf = yes; then :
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12874 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12879 #include <unistd.h>
12882 main ()
12885 return sysconf(_SC_PAGESIZE);
12888 return 0;
12891 _ACEOF
12892 if ac_fn_cxx_try_link "$LINENO"; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12895 $as_echo "_SC_PAGESIZE" >&6; }
12897 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12900 else
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12906 #include <unistd.h>
12909 main ()
12912 return sysconf(_SC_PAGE_SIZE);
12915 return 0;
12918 _ACEOF
12919 if ac_fn_cxx_try_link "$LINENO"; then :
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12922 $as_echo "_SC_PAGE_SIZE" >&6; }
12924 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12927 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12930 $as_echo "none" >&6; }
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12937 rm -f core conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12947 # Look for a way to preallocate disk space for files.
12948 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12951 $as_echo_n "checking for fallocate... " >&6; }
12952 mule_backup_CPPFLAGS="$CPPFLAGS"
12953 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12958 #ifndef _GNU_SOURCE
12959 # define _GNU_SOURCE
12960 #endif
12961 #ifdef HAVE_FCNTL_H
12962 # include <fcntl.h>
12963 #endif
12964 #include <linux/falloc.h>
12967 main ()
12970 fallocate(0, 0, 0, 0);
12973 return 0;
12976 _ACEOF
12977 if ac_fn_cxx_try_link "$LINENO"; then :
12980 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12985 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993 CPPFLAGS="$mule_backup_CPPFLAGS"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12997 $as_echo_n "checking for SYS_fallocate... " >&6; }
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13002 #include <sys/syscall.h>
13003 #include <sys/types.h>
13004 #include <unistd.h>
13007 main ()
13010 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
13013 return 0;
13016 _ACEOF
13017 if ac_fn_cxx_try_link "$LINENO"; then :
13020 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023 $as_echo "yes" >&6; }
13025 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
13035 $as_echo_n "checking for posix_fallocate... " >&6; }
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13040 #define _XOPEN_SOURCE 600
13041 #include <stdlib.h>
13042 #ifdef HAVE_FCNTL_H
13043 # include <fcntl.h>
13044 #endif
13047 main ()
13050 posix_fallocate(0, 0, 0);
13053 return 0;
13056 _ACEOF
13057 if ac_fn_cxx_try_link "$LINENO"; then :
13060 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13063 $as_echo "yes" >&6; }
13065 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13071 rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13077 ac_ext=c
13078 ac_cpp='$CPP $CPPFLAGS'
13079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083 # Checking Native Language Support
13086 MKINSTALLDIRS=
13087 if test -n "$ac_aux_dir"; then
13088 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13090 if test -z "$MKINSTALLDIRS"; then
13091 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13098 # Extract the first word of "msgfmt", so it can be a program name with args.
13099 set dummy msgfmt; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_path_MSGFMT+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 case "$MSGFMT" in
13107 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13111 for ac_dir in $PATH; do
13112 test -z "$ac_dir" && ac_dir=.
13113 if test -f $ac_dir/$ac_word; then
13114 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13115 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13116 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13117 break
13120 done
13121 IFS="$ac_save_ifs"
13122 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13124 esac
13126 MSGFMT="$ac_cv_path_MSGFMT"
13127 if test "$MSGFMT" != ":"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13129 $as_echo "$MSGFMT" >&6; }
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13135 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13136 set dummy gmsgfmt; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_GMSGFMT+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 case $GMSGFMT in
13143 [\\/]* | ?:[\\/]*)
13144 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13158 done
13159 done
13160 IFS=$as_save_IFS
13162 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13164 esac
13166 GMSGFMT=$ac_cv_path_GMSGFMT
13167 if test -n "$GMSGFMT"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13169 $as_echo "$GMSGFMT" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 # Extract the first word of "xgettext", so it can be a program name with args.
13178 set dummy xgettext; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_path_XGETTEXT+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 case "$XGETTEXT" in
13186 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13190 for ac_dir in $PATH; do
13191 test -z "$ac_dir" && ac_dir=.
13192 if test -f $ac_dir/$ac_word; then
13193 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13194 (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
13195 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13196 break
13199 done
13200 IFS="$ac_save_ifs"
13201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13203 esac
13205 XGETTEXT="$ac_cv_path_XGETTEXT"
13206 if test "$XGETTEXT" != ":"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13208 $as_echo "$XGETTEXT" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13214 rm -f messages.po
13216 # Extract the first word of "msgmerge", so it can be a program name with args.
13217 set dummy msgmerge; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_path_MSGMERGE+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 case "$MSGMERGE" in
13225 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13229 for ac_dir in $PATH; do
13230 test -z "$ac_dir" && ac_dir=.
13231 if test -f $ac_dir/$ac_word; then
13232 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13233 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
13234 break
13237 done
13238 IFS="$ac_save_ifs"
13239 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13241 esac
13243 MSGMERGE="$ac_cv_path_MSGMERGE"
13244 if test "$MSGMERGE" != ":"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13246 $as_echo "$MSGMERGE" >&6; }
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13253 if test "$GMSGFMT" != ":"; then
13254 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13255 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13257 else
13258 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13260 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13261 GMSGFMT=":"
13265 if test "$XGETTEXT" != ":"; then
13266 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13267 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13271 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13272 XGETTEXT=":"
13274 rm -f messages.po
13277 ac_config_commands="$ac_config_commands default-1"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13282 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13283 if ${ac_cv_lib_cposix_strerror+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lcposix $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char strerror ();
13299 main ()
13301 return strerror ();
13303 return 0;
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 ac_cv_lib_cposix_strerror=yes
13308 else
13309 ac_cv_lib_cposix_strerror=no
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13316 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13317 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
13318 LIBS="$LIBS -lcposix"
13324 for ac_func in getpagesize
13325 do :
13326 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13327 if test "x$ac_cv_func_getpagesize" = xyes; then :
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_GETPAGESIZE 1
13330 _ACEOF
13333 done
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13336 $as_echo_n "checking for working mmap... " >&6; }
13337 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test "$cross_compiling" = yes; then :
13341 ac_cv_func_mmap_fixed_mapped=no
13342 else
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 /* malloc might have been renamed as rpl_malloc. */
13347 #undef malloc
13349 /* Thanks to Mike Haertel and Jim Avera for this test.
13350 Here is a matrix of mmap possibilities:
13351 mmap private not fixed
13352 mmap private fixed at somewhere currently unmapped
13353 mmap private fixed at somewhere already mapped
13354 mmap shared not fixed
13355 mmap shared fixed at somewhere currently unmapped
13356 mmap shared fixed at somewhere already mapped
13357 For private mappings, we should verify that changes cannot be read()
13358 back from the file, nor mmap's back from the file at a different
13359 address. (There have been systems where private was not correctly
13360 implemented like the infamous i386 svr4.0, and systems where the
13361 VM page cache was not coherent with the file system buffer cache
13362 like early versions of FreeBSD and possibly contemporary NetBSD.)
13363 For shared mappings, we should conversely verify that changes get
13364 propagated back to all the places they're supposed to be.
13366 Grep wants private fixed already mapped.
13367 The main things grep needs to know about mmap are:
13368 * does it exist and is it safe to write into the mmap'd area
13369 * how to use it (BSD variants) */
13371 #include <fcntl.h>
13372 #include <sys/mman.h>
13374 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13375 char *malloc ();
13376 #endif
13378 /* This mess was copied from the GNU getpagesize.h. */
13379 #ifndef HAVE_GETPAGESIZE
13380 # ifdef _SC_PAGESIZE
13381 # define getpagesize() sysconf(_SC_PAGESIZE)
13382 # else /* no _SC_PAGESIZE */
13383 # ifdef HAVE_SYS_PARAM_H
13384 # include <sys/param.h>
13385 # ifdef EXEC_PAGESIZE
13386 # define getpagesize() EXEC_PAGESIZE
13387 # else /* no EXEC_PAGESIZE */
13388 # ifdef NBPG
13389 # define getpagesize() NBPG * CLSIZE
13390 # ifndef CLSIZE
13391 # define CLSIZE 1
13392 # endif /* no CLSIZE */
13393 # else /* no NBPG */
13394 # ifdef NBPC
13395 # define getpagesize() NBPC
13396 # else /* no NBPC */
13397 # ifdef PAGESIZE
13398 # define getpagesize() PAGESIZE
13399 # endif /* PAGESIZE */
13400 # endif /* no NBPC */
13401 # endif /* no NBPG */
13402 # endif /* no EXEC_PAGESIZE */
13403 # else /* no HAVE_SYS_PARAM_H */
13404 # define getpagesize() 8192 /* punt totally */
13405 # endif /* no HAVE_SYS_PARAM_H */
13406 # endif /* no _SC_PAGESIZE */
13408 #endif /* no HAVE_GETPAGESIZE */
13411 main ()
13413 char *data, *data2, *data3;
13414 const char *cdata2;
13415 int i, pagesize;
13416 int fd, fd2;
13418 pagesize = getpagesize ();
13420 /* First, make a file with some known garbage in it. */
13421 data = (char *) malloc (pagesize);
13422 if (!data)
13423 return 1;
13424 for (i = 0; i < pagesize; ++i)
13425 *(data + i) = rand ();
13426 umask (0);
13427 fd = creat ("conftest.mmap", 0600);
13428 if (fd < 0)
13429 return 2;
13430 if (write (fd, data, pagesize) != pagesize)
13431 return 3;
13432 close (fd);
13434 /* Next, check that the tail of a page is zero-filled. File must have
13435 non-zero length, otherwise we risk SIGBUS for entire page. */
13436 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13437 if (fd2 < 0)
13438 return 4;
13439 cdata2 = "";
13440 if (write (fd2, cdata2, 1) != 1)
13441 return 5;
13442 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13443 if (data2 == MAP_FAILED)
13444 return 6;
13445 for (i = 0; i < pagesize; ++i)
13446 if (*(data2 + i))
13447 return 7;
13448 close (fd2);
13449 if (munmap (data2, pagesize))
13450 return 8;
13452 /* Next, try to mmap the file at a fixed address which already has
13453 something else allocated at it. If we can, also make sure that
13454 we see the same garbage. */
13455 fd = open ("conftest.mmap", O_RDWR);
13456 if (fd < 0)
13457 return 9;
13458 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13459 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13460 return 10;
13461 for (i = 0; i < pagesize; ++i)
13462 if (*(data + i) != *(data2 + i))
13463 return 11;
13465 /* Finally, make sure that changes to the mapped area do not
13466 percolate back to the file as seen by read(). (This is a bug on
13467 some variants of i386 svr4.0.) */
13468 for (i = 0; i < pagesize; ++i)
13469 *(data2 + i) = *(data2 + i) + 1;
13470 data3 = (char *) malloc (pagesize);
13471 if (!data3)
13472 return 12;
13473 if (read (fd, data3, pagesize) != pagesize)
13474 return 13;
13475 for (i = 0; i < pagesize; ++i)
13476 if (*(data + i) != *(data3 + i))
13477 return 14;
13478 close (fd);
13479 free (data);
13480 free (data3);
13481 return 0;
13483 _ACEOF
13484 if ac_fn_c_try_run "$LINENO"; then :
13485 ac_cv_func_mmap_fixed_mapped=yes
13486 else
13487 ac_cv_func_mmap_fixed_mapped=no
13489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13490 conftest.$ac_objext conftest.beam conftest.$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13495 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13496 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13498 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13501 rm -f conftest.mmap conftest.txt
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13505 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13506 if ${ac_cv_gnu_library_2_1+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13512 #include <features.h>
13513 #ifdef __GNU_LIBRARY__
13514 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13515 Lucky GNU user
13516 #endif
13517 #endif
13519 _ACEOF
13520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13521 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13522 ac_cv_gnu_library_2_1=yes
13523 else
13524 ac_cv_gnu_library_2_1=no
13526 rm -f conftest*
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13532 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13534 GLIBC21="$ac_cv_gnu_library_2_1"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13540 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13541 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13545 if test "$cross_compiling" = yes; then :
13547 # Guess based on the CPU.
13548 case "$host_cpu" in
13549 alpha* | i3456786 | m68k | s390*)
13550 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13552 gt_cv_int_divbyzero_sigfpe="guessing no";;
13553 esac
13555 else
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13559 #include <stdlib.h>
13560 #include <signal.h>
13562 static void
13563 #ifdef __cplusplus
13564 sigfpe_handler (int sig)
13565 #else
13566 sigfpe_handler (sig) int sig;
13567 #endif
13569 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13570 exit (sig != SIGFPE);
13573 int x = 1;
13574 int y = 0;
13575 int z;
13576 int nan;
13578 int main ()
13580 signal (SIGFPE, sigfpe_handler);
13581 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13582 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13583 signal (SIGTRAP, sigfpe_handler);
13584 #endif
13585 /* Linux/SPARC yields signal SIGILL. */
13586 #if defined (__sparc__) && defined (__linux__)
13587 signal (SIGILL, sigfpe_handler);
13588 #endif
13590 z = x / y;
13591 nan = y / y;
13592 exit (1);
13595 _ACEOF
13596 if ac_fn_c_try_run "$LINENO"; then :
13597 gt_cv_int_divbyzero_sigfpe=yes
13598 else
13599 gt_cv_int_divbyzero_sigfpe=no
13601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602 conftest.$ac_objext conftest.beam conftest.$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13608 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13609 case "$gt_cv_int_divbyzero_sigfpe" in
13610 *yes) value=1;;
13611 *) value=0;;
13612 esac
13614 cat >>confdefs.h <<_ACEOF
13615 #define INTDIV0_RAISES_SIGFPE $value
13616 _ACEOF
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13621 $as_echo_n "checking for inttypes.h... " >&6; }
13622 if ${jm_ac_cv_header_inttypes_h+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 #include <sys/types.h>
13628 #include <inttypes.h>
13630 main ()
13632 uintmax_t i = (uintmax_t) -1;
13634 return 0;
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 jm_ac_cv_header_inttypes_h=yes
13639 else
13640 jm_ac_cv_header_inttypes_h=no
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13645 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13646 if test $jm_ac_cv_header_inttypes_h = yes; then
13648 cat >>confdefs.h <<_ACEOF
13649 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13650 _ACEOF
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13656 $as_echo_n "checking for stdint.h... " >&6; }
13657 if ${jm_ac_cv_header_stdint_h+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <sys/types.h>
13663 #include <stdint.h>
13665 main ()
13667 uintmax_t i = (uintmax_t) -1;
13669 return 0;
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 jm_ac_cv_header_stdint_h=yes
13674 else
13675 jm_ac_cv_header_stdint_h=no
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13680 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13681 if test $jm_ac_cv_header_stdint_h = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684 #define HAVE_STDINT_H_WITH_UINTMAX 1
13685 _ACEOF
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13691 $as_echo_n "checking for unsigned long long... " >&6; }
13692 if ${ac_cv_type_unsigned_long_long+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 unsigned long long ull = 1; int i = 63;
13699 main ()
13701 unsigned long long ullmax = (unsigned long long) -1;
13702 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13704 return 0;
13706 _ACEOF
13707 if ac_fn_c_try_link "$LINENO"; then :
13708 ac_cv_type_unsigned_long_long=yes
13709 else
13710 ac_cv_type_unsigned_long_long=no
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13716 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13717 if test $ac_cv_type_unsigned_long_long = yes; then
13719 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13726 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13728 test $ac_cv_type_unsigned_long_long = yes \
13729 && ac_type='unsigned long long' \
13730 || ac_type='unsigned long'
13732 cat >>confdefs.h <<_ACEOF
13733 #define uintmax_t $ac_type
13734 _ACEOF
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13740 $as_echo_n "checking for inttypes.h... " >&6; }
13741 if ${gt_cv_header_inttypes_h+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <sys/types.h>
13748 #include <inttypes.h>
13750 main ()
13754 return 0;
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 gt_cv_header_inttypes_h=yes
13759 else
13760 gt_cv_header_inttypes_h=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13766 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13767 if test $gt_cv_header_inttypes_h = yes; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_INTTYPES_H 1
13771 _ACEOF
13777 if test $gt_cv_header_inttypes_h = yes; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13779 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13780 if ${gt_cv_inttypes_pri_broken+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <inttypes.h>
13787 #ifdef PRId32
13788 char *p = PRId32;
13789 #endif
13792 main ()
13796 return 0;
13798 _ACEOF
13799 if ac_fn_c_try_compile "$LINENO"; then :
13800 gt_cv_inttypes_pri_broken=no
13801 else
13802 gt_cv_inttypes_pri_broken=yes
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13808 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13810 if test "$gt_cv_inttypes_pri_broken" = yes; then
13812 cat >>confdefs.h <<_ACEOF
13813 #define PRI_MACROS_BROKEN 1
13814 _ACEOF
13819 if test "X$prefix" = "XNONE"; then
13820 acl_final_prefix="$ac_default_prefix"
13821 else
13822 acl_final_prefix="$prefix"
13824 if test "X$exec_prefix" = "XNONE"; then
13825 acl_final_exec_prefix='${prefix}'
13826 else
13827 acl_final_exec_prefix="$exec_prefix"
13829 acl_save_prefix="$prefix"
13830 prefix="$acl_final_prefix"
13831 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13832 prefix="$acl_save_prefix"
13835 # Check whether --with-gnu-ld was given.
13836 if test "${with_gnu_ld+set}" = set; then :
13837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13838 else
13839 with_gnu_ld=no
13842 ac_prog=ld
13843 if test "$GCC" = yes; then
13844 # Check if gcc -print-prog-name=ld gives a path.
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13846 $as_echo_n "checking for ld used by GCC... " >&6; }
13847 case $host in
13848 *-*-mingw*)
13849 # gcc leaves a trailing carriage return which upsets mingw
13850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13853 esac
13854 case $ac_prog in
13855 # Accept absolute paths.
13856 [\\/]* | [A-Za-z]:[\\/]*)
13857 re_direlt='/[^/][^/]*/\.\./'
13858 # Canonicalize the path of ld
13859 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13860 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13861 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13862 done
13863 test -z "$LD" && LD="$ac_prog"
13866 # If it fails, then pretend we aren't using GCC.
13867 ac_prog=ld
13870 # If it is relative, then search for the first ld in PATH.
13871 with_gnu_ld=unknown
13873 esac
13874 elif test "$with_gnu_ld" = yes; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13876 $as_echo_n "checking for GNU ld... " >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13879 $as_echo_n "checking for non-GNU ld... " >&6; }
13881 if ${acl_cv_path_LD+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if test -z "$LD"; then
13885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13886 for ac_dir in $PATH; do
13887 test -z "$ac_dir" && ac_dir=.
13888 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13889 acl_cv_path_LD="$ac_dir/$ac_prog"
13890 # Check to see if the program is GNU ld. I'd rather use --version,
13891 # but apparently some GNU ld's only accept -v.
13892 # Break only if it was the GNU/non-GNU ld that we prefer.
13893 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13894 test "$with_gnu_ld" != no && break
13895 else
13896 test "$with_gnu_ld" != yes && break
13899 done
13900 IFS="$ac_save_ifs"
13901 else
13902 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13906 LD="$acl_cv_path_LD"
13907 if test -n "$LD"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13909 $as_echo "$LD" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13914 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13917 if ${acl_cv_prog_gnu_ld+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13921 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13922 acl_cv_prog_gnu_ld=yes
13923 else
13924 acl_cv_prog_gnu_ld=no
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13928 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13929 with_gnu_ld=$acl_cv_prog_gnu_ld
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13934 $as_echo_n "checking for shared library run path origin... " >&6; }
13935 if ${acl_cv_rpath+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13939 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13940 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13941 . ./conftest.sh
13942 rm -f ./conftest.sh
13943 acl_cv_rpath=done
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13947 $as_echo "$acl_cv_rpath" >&6; }
13948 wl="$acl_cv_wl"
13949 libext="$acl_cv_libext"
13950 shlibext="$acl_cv_shlibext"
13951 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13952 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13953 hardcode_direct="$acl_cv_hardcode_direct"
13954 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13955 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13956 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13957 # Check whether --enable-rpath was given.
13958 if test "${enable_rpath+set}" = set; then :
13959 enableval=$enable_rpath; :
13960 else
13961 enable_rpath=yes
13971 use_additional=yes
13973 acl_save_prefix="$prefix"
13974 prefix="$acl_final_prefix"
13975 acl_save_exec_prefix="$exec_prefix"
13976 exec_prefix="$acl_final_exec_prefix"
13978 eval additional_includedir=\"$includedir\"
13979 eval additional_libdir=\"$libdir\"
13981 exec_prefix="$acl_save_exec_prefix"
13982 prefix="$acl_save_prefix"
13985 # Check whether --with-libiconv-prefix was given.
13986 if test "${with_libiconv_prefix+set}" = set; then :
13987 withval=$with_libiconv_prefix;
13988 if test "X$withval" = "Xno"; then
13989 use_additional=no
13990 else
13991 if test "X$withval" = "X"; then
13993 acl_save_prefix="$prefix"
13994 prefix="$acl_final_prefix"
13995 acl_save_exec_prefix="$exec_prefix"
13996 exec_prefix="$acl_final_exec_prefix"
13998 eval additional_includedir=\"$includedir\"
13999 eval additional_libdir=\"$libdir\"
14001 exec_prefix="$acl_save_exec_prefix"
14002 prefix="$acl_save_prefix"
14004 else
14005 additional_includedir="$withval/include"
14006 additional_libdir="$withval/lib"
14012 LIBICONV=
14013 LTLIBICONV=
14014 INCICONV=
14015 rpathdirs=
14016 ltrpathdirs=
14017 names_already_handled=
14018 names_next_round='iconv '
14019 while test -n "$names_next_round"; do
14020 names_this_round="$names_next_round"
14021 names_next_round=
14022 for name in $names_this_round; do
14023 already_handled=
14024 for n in $names_already_handled; do
14025 if test "$n" = "$name"; then
14026 already_handled=yes
14027 break
14029 done
14030 if test -z "$already_handled"; then
14031 names_already_handled="$names_already_handled $name"
14032 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14033 eval value=\"\$HAVE_LIB$uppername\"
14034 if test -n "$value"; then
14035 if test "$value" = yes; then
14036 eval value=\"\$LIB$uppername\"
14037 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14038 eval value=\"\$LTLIB$uppername\"
14039 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14040 else
14043 else
14044 found_dir=
14045 found_la=
14046 found_so=
14047 found_a=
14048 if test $use_additional = yes; then
14049 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14050 found_dir="$additional_libdir"
14051 found_so="$additional_libdir/lib$name.$shlibext"
14052 if test -f "$additional_libdir/lib$name.la"; then
14053 found_la="$additional_libdir/lib$name.la"
14055 else
14056 if test -f "$additional_libdir/lib$name.$libext"; then
14057 found_dir="$additional_libdir"
14058 found_a="$additional_libdir/lib$name.$libext"
14059 if test -f "$additional_libdir/lib$name.la"; then
14060 found_la="$additional_libdir/lib$name.la"
14065 if test "X$found_dir" = "X"; then
14066 for x in $LDFLAGS $LTLIBICONV; do
14068 acl_save_prefix="$prefix"
14069 prefix="$acl_final_prefix"
14070 acl_save_exec_prefix="$exec_prefix"
14071 exec_prefix="$acl_final_exec_prefix"
14072 eval x=\"$x\"
14073 exec_prefix="$acl_save_exec_prefix"
14074 prefix="$acl_save_prefix"
14076 case "$x" in
14077 -L*)
14078 dir=`echo "X$x" | sed -e 's/^X-L//'`
14079 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14080 found_dir="$dir"
14081 found_so="$dir/lib$name.$shlibext"
14082 if test -f "$dir/lib$name.la"; then
14083 found_la="$dir/lib$name.la"
14085 else
14086 if test -f "$dir/lib$name.$libext"; then
14087 found_dir="$dir"
14088 found_a="$dir/lib$name.$libext"
14089 if test -f "$dir/lib$name.la"; then
14090 found_la="$dir/lib$name.la"
14095 esac
14096 if test "X$found_dir" != "X"; then
14097 break
14099 done
14101 if test "X$found_dir" != "X"; then
14102 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14103 if test "X$found_so" != "X"; then
14104 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14105 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14106 else
14107 haveit=
14108 for x in $ltrpathdirs; do
14109 if test "X$x" = "X$found_dir"; then
14110 haveit=yes
14111 break
14113 done
14114 if test -z "$haveit"; then
14115 ltrpathdirs="$ltrpathdirs $found_dir"
14117 if test "$hardcode_direct" = yes; then
14118 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14119 else
14120 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14122 haveit=
14123 for x in $rpathdirs; do
14124 if test "X$x" = "X$found_dir"; then
14125 haveit=yes
14126 break
14128 done
14129 if test -z "$haveit"; then
14130 rpathdirs="$rpathdirs $found_dir"
14132 else
14133 haveit=
14134 for x in $LDFLAGS $LIBICONV; do
14136 acl_save_prefix="$prefix"
14137 prefix="$acl_final_prefix"
14138 acl_save_exec_prefix="$exec_prefix"
14139 exec_prefix="$acl_final_exec_prefix"
14140 eval x=\"$x\"
14141 exec_prefix="$acl_save_exec_prefix"
14142 prefix="$acl_save_prefix"
14144 if test "X$x" = "X-L$found_dir"; then
14145 haveit=yes
14146 break
14148 done
14149 if test -z "$haveit"; then
14150 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14152 if test "$hardcode_minus_L" != no; then
14153 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14154 else
14155 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14160 else
14161 if test "X$found_a" != "X"; then
14162 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14163 else
14164 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14167 additional_includedir=
14168 case "$found_dir" in
14169 */lib | */lib/)
14170 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14171 additional_includedir="$basedir/include"
14173 esac
14174 if test "X$additional_includedir" != "X"; then
14175 if test "X$additional_includedir" != "X/usr/include"; then
14176 haveit=
14177 if test "X$additional_includedir" = "X/usr/local/include"; then
14178 if test -n "$GCC"; then
14179 case $host_os in
14180 linux*) haveit=yes;;
14181 esac
14184 if test -z "$haveit"; then
14185 for x in $CPPFLAGS $INCICONV; do
14187 acl_save_prefix="$prefix"
14188 prefix="$acl_final_prefix"
14189 acl_save_exec_prefix="$exec_prefix"
14190 exec_prefix="$acl_final_exec_prefix"
14191 eval x=\"$x\"
14192 exec_prefix="$acl_save_exec_prefix"
14193 prefix="$acl_save_prefix"
14195 if test "X$x" = "X-I$additional_includedir"; then
14196 haveit=yes
14197 break
14199 done
14200 if test -z "$haveit"; then
14201 if test -d "$additional_includedir"; then
14202 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14208 if test -n "$found_la"; then
14209 save_libdir="$libdir"
14210 case "$found_la" in
14211 */* | *\\*) . "$found_la" ;;
14212 *) . "./$found_la" ;;
14213 esac
14214 libdir="$save_libdir"
14215 for dep in $dependency_libs; do
14216 case "$dep" in
14217 -L*)
14218 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14219 if test "X$additional_libdir" != "X/usr/lib"; then
14220 haveit=
14221 if test "X$additional_libdir" = "X/usr/local/lib"; then
14222 if test -n "$GCC"; then
14223 case $host_os in
14224 linux*) haveit=yes;;
14225 esac
14228 if test -z "$haveit"; then
14229 haveit=
14230 for x in $LDFLAGS $LIBICONV; do
14232 acl_save_prefix="$prefix"
14233 prefix="$acl_final_prefix"
14234 acl_save_exec_prefix="$exec_prefix"
14235 exec_prefix="$acl_final_exec_prefix"
14236 eval x=\"$x\"
14237 exec_prefix="$acl_save_exec_prefix"
14238 prefix="$acl_save_prefix"
14240 if test "X$x" = "X-L$additional_libdir"; then
14241 haveit=yes
14242 break
14244 done
14245 if test -z "$haveit"; then
14246 if test -d "$additional_libdir"; then
14247 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14250 haveit=
14251 for x in $LDFLAGS $LTLIBICONV; do
14253 acl_save_prefix="$prefix"
14254 prefix="$acl_final_prefix"
14255 acl_save_exec_prefix="$exec_prefix"
14256 exec_prefix="$acl_final_exec_prefix"
14257 eval x=\"$x\"
14258 exec_prefix="$acl_save_exec_prefix"
14259 prefix="$acl_save_prefix"
14261 if test "X$x" = "X-L$additional_libdir"; then
14262 haveit=yes
14263 break
14265 done
14266 if test -z "$haveit"; then
14267 if test -d "$additional_libdir"; then
14268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14274 -R*)
14275 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14276 if test "$enable_rpath" != no; then
14277 haveit=
14278 for x in $rpathdirs; do
14279 if test "X$x" = "X$dir"; then
14280 haveit=yes
14281 break
14283 done
14284 if test -z "$haveit"; then
14285 rpathdirs="$rpathdirs $dir"
14287 haveit=
14288 for x in $ltrpathdirs; do
14289 if test "X$x" = "X$dir"; then
14290 haveit=yes
14291 break
14293 done
14294 if test -z "$haveit"; then
14295 ltrpathdirs="$ltrpathdirs $dir"
14299 -l*)
14300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14302 *.la)
14303 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14306 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14309 esac
14310 done
14312 else
14313 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14318 done
14319 done
14320 if test "X$rpathdirs" != "X"; then
14321 if test -n "$hardcode_libdir_separator"; then
14322 alldirs=
14323 for found_dir in $rpathdirs; do
14324 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14325 done
14326 acl_save_libdir="$libdir"
14327 libdir="$alldirs"
14328 eval flag=\"$hardcode_libdir_flag_spec\"
14329 libdir="$acl_save_libdir"
14330 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14331 else
14332 for found_dir in $rpathdirs; do
14333 acl_save_libdir="$libdir"
14334 libdir="$found_dir"
14335 eval flag=\"$hardcode_libdir_flag_spec\"
14336 libdir="$acl_save_libdir"
14337 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14338 done
14341 if test "X$ltrpathdirs" != "X"; then
14342 for found_dir in $ltrpathdirs; do
14343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14344 done
14350 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14351 stdlib.h string.h unistd.h sys/param.h
14352 do :
14353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14354 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14356 cat >>confdefs.h <<_ACEOF
14357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 _ACEOF
14362 done
14364 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14365 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14366 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14367 do :
14368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14371 cat >>confdefs.h <<_ACEOF
14372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14373 _ACEOF
14376 done
14384 am_save_CPPFLAGS="$CPPFLAGS"
14386 for element in $INCICONV; do
14387 haveit=
14388 for x in $CPPFLAGS; do
14390 acl_save_prefix="$prefix"
14391 prefix="$acl_final_prefix"
14392 acl_save_exec_prefix="$exec_prefix"
14393 exec_prefix="$acl_final_exec_prefix"
14394 eval x=\"$x\"
14395 exec_prefix="$acl_save_exec_prefix"
14396 prefix="$acl_save_prefix"
14398 if test "X$x" = "X$element"; then
14399 haveit=yes
14400 break
14402 done
14403 if test -z "$haveit"; then
14404 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14406 done
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14410 $as_echo_n "checking for iconv... " >&6; }
14411 if ${am_cv_func_iconv+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14415 am_cv_func_iconv="no, consider installing GNU libiconv"
14416 am_cv_lib_iconv=no
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <stdlib.h>
14420 #include <iconv.h>
14422 main ()
14424 iconv_t cd = iconv_open("","");
14425 iconv(cd,NULL,NULL,NULL,NULL);
14426 iconv_close(cd);
14428 return 0;
14430 _ACEOF
14431 if ac_fn_c_try_link "$LINENO"; then :
14432 am_cv_func_iconv=yes
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436 if test "$am_cv_func_iconv" != yes; then
14437 am_save_LIBS="$LIBS"
14438 LIBS="$LIBS $LIBICONV"
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441 #include <stdlib.h>
14442 #include <iconv.h>
14444 main ()
14446 iconv_t cd = iconv_open("","");
14447 iconv(cd,NULL,NULL,NULL,NULL);
14448 iconv_close(cd);
14450 return 0;
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"; then :
14454 am_cv_lib_iconv=yes
14455 am_cv_func_iconv=yes
14457 rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14459 LIBS="$am_save_LIBS"
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14464 $as_echo "$am_cv_func_iconv" >&6; }
14465 if test "$am_cv_func_iconv" = yes; then
14467 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14470 if test "$am_cv_lib_iconv" = yes; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14472 $as_echo_n "checking how to link with libiconv... " >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14474 $as_echo "$LIBICONV" >&6; }
14475 else
14476 CPPFLAGS="$am_save_CPPFLAGS"
14477 LIBICONV=
14478 LTLIBICONV=
14483 if test "$am_cv_func_iconv" = yes; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14485 $as_echo_n "checking for iconv declaration... " >&6; }
14486 if ${am_cv_proto_iconv+:} false; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14493 #include <stdlib.h>
14494 #include <iconv.h>
14495 extern
14496 #ifdef __cplusplus
14498 #endif
14499 #if defined(__STDC__) || defined(__cplusplus)
14500 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14501 #else
14502 size_t iconv();
14503 #endif
14506 main ()
14510 return 0;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514 am_cv_proto_iconv_arg1=""
14515 else
14516 am_cv_proto_iconv_arg1="const"
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 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);"
14522 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14524 }$am_cv_proto_iconv" >&5
14525 $as_echo "${ac_t:-
14526 }$am_cv_proto_iconv" >&6; }
14528 cat >>confdefs.h <<_ACEOF
14529 #define ICONV_CONST $am_cv_proto_iconv_arg1
14530 _ACEOF
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14536 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14537 if ${am_cv_langinfo_codeset+:} false; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <langinfo.h>
14544 main ()
14546 char* cs = nl_langinfo(CODESET);
14548 return 0;
14550 _ACEOF
14551 if ac_fn_c_try_link "$LINENO"; then :
14552 am_cv_langinfo_codeset=yes
14553 else
14554 am_cv_langinfo_codeset=no
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14561 $as_echo "$am_cv_langinfo_codeset" >&6; }
14562 if test $am_cv_langinfo_codeset = yes; then
14564 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14568 if test $ac_cv_header_locale_h = yes; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14571 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14572 if ${am_cv_val_LC_MESSAGES+:} false; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #include <locale.h>
14579 main ()
14581 return LC_MESSAGES
14583 return 0;
14585 _ACEOF
14586 if ac_fn_c_try_link "$LINENO"; then :
14587 am_cv_val_LC_MESSAGES=yes
14588 else
14589 am_cv_val_LC_MESSAGES=no
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14595 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14596 if test $am_cv_val_LC_MESSAGES = yes; then
14598 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14604 for ac_prog in bison
14606 # Extract the first word of "$ac_prog", so it can be a program name with args.
14607 set dummy $ac_prog; ac_word=$2
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if ${ac_cv_prog_INTLBISON+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 if test -n "$INTLBISON"; then
14614 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14615 else
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_INTLBISON="$ac_prog"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14627 done
14628 done
14629 IFS=$as_save_IFS
14633 INTLBISON=$ac_cv_prog_INTLBISON
14634 if test -n "$INTLBISON"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14636 $as_echo "$INTLBISON" >&6; }
14637 else
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14643 test -n "$INTLBISON" && break
14644 done
14646 if test -z "$INTLBISON"; then
14647 ac_verc_fail=yes
14648 else
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14650 $as_echo_n "checking version of bison... " >&6; }
14651 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14652 case $ac_prog_version in
14653 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14654 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14655 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14656 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14657 esac
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14659 $as_echo "$ac_prog_version" >&6; }
14661 if test $ac_verc_fail = yes; then
14662 INTLBISON=:
14667 # Check whether --with-language was given.
14668 if test "${with_language+set}" = set; then :
14669 withval=$with_language; if test "$withval" != "all"; then :
14670 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14690 $as_echo_n "checking whether NLS is requested... " >&6; }
14691 # Check whether --enable-nls was given.
14692 if test "${enable_nls+set}" = set; then :
14693 enableval=$enable_nls; USE_NLS=$enableval
14694 else
14695 USE_NLS=yes
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14699 $as_echo "$USE_NLS" >&6; }
14703 BUILD_INCLUDED_LIBINTL=no
14704 USE_INCLUDED_LIBINTL=no
14706 LIBINTL=
14707 LTLIBINTL=
14708 POSUB=
14710 if test "$USE_NLS" = "yes"; then
14711 gt_use_preinstalled_gnugettext=no
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14714 $as_echo_n "checking whether included gettext is requested... " >&6; }
14716 # Check whether --with-included-gettext was given.
14717 if test "${with_included_gettext+set}" = set; then :
14718 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14719 else
14720 nls_cv_force_use_gnu_gettext=no
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14724 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14726 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14727 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14735 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14736 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 #include <libintl.h>
14742 extern int _nl_msg_cat_cntr;
14743 extern int *_nl_domain_bindings;
14745 main ()
14747 bindtextdomain ("", "");
14748 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14750 return 0;
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 gt_cv_func_gnugettext2_libc=yes
14755 else
14756 gt_cv_func_gnugettext2_libc=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14762 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14764 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14768 use_additional=yes
14770 acl_save_prefix="$prefix"
14771 prefix="$acl_final_prefix"
14772 acl_save_exec_prefix="$exec_prefix"
14773 exec_prefix="$acl_final_exec_prefix"
14775 eval additional_includedir=\"$includedir\"
14776 eval additional_libdir=\"$libdir\"
14778 exec_prefix="$acl_save_exec_prefix"
14779 prefix="$acl_save_prefix"
14782 # Check whether --with-libintl-prefix was given.
14783 if test "${with_libintl_prefix+set}" = set; then :
14784 withval=$with_libintl_prefix;
14785 if test "X$withval" = "Xno"; then
14786 use_additional=no
14787 else
14788 if test "X$withval" = "X"; then
14790 acl_save_prefix="$prefix"
14791 prefix="$acl_final_prefix"
14792 acl_save_exec_prefix="$exec_prefix"
14793 exec_prefix="$acl_final_exec_prefix"
14795 eval additional_includedir=\"$includedir\"
14796 eval additional_libdir=\"$libdir\"
14798 exec_prefix="$acl_save_exec_prefix"
14799 prefix="$acl_save_prefix"
14801 else
14802 additional_includedir="$withval/include"
14803 additional_libdir="$withval/lib"
14809 LIBINTL=
14810 LTLIBINTL=
14811 INCINTL=
14812 rpathdirs=
14813 ltrpathdirs=
14814 names_already_handled=
14815 names_next_round='intl '
14816 while test -n "$names_next_round"; do
14817 names_this_round="$names_next_round"
14818 names_next_round=
14819 for name in $names_this_round; do
14820 already_handled=
14821 for n in $names_already_handled; do
14822 if test "$n" = "$name"; then
14823 already_handled=yes
14824 break
14826 done
14827 if test -z "$already_handled"; then
14828 names_already_handled="$names_already_handled $name"
14829 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14830 eval value=\"\$HAVE_LIB$uppername\"
14831 if test -n "$value"; then
14832 if test "$value" = yes; then
14833 eval value=\"\$LIB$uppername\"
14834 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14835 eval value=\"\$LTLIB$uppername\"
14836 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14837 else
14840 else
14841 found_dir=
14842 found_la=
14843 found_so=
14844 found_a=
14845 if test $use_additional = yes; then
14846 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14847 found_dir="$additional_libdir"
14848 found_so="$additional_libdir/lib$name.$shlibext"
14849 if test -f "$additional_libdir/lib$name.la"; then
14850 found_la="$additional_libdir/lib$name.la"
14852 else
14853 if test -f "$additional_libdir/lib$name.$libext"; then
14854 found_dir="$additional_libdir"
14855 found_a="$additional_libdir/lib$name.$libext"
14856 if test -f "$additional_libdir/lib$name.la"; then
14857 found_la="$additional_libdir/lib$name.la"
14862 if test "X$found_dir" = "X"; then
14863 for x in $LDFLAGS $LTLIBINTL; do
14865 acl_save_prefix="$prefix"
14866 prefix="$acl_final_prefix"
14867 acl_save_exec_prefix="$exec_prefix"
14868 exec_prefix="$acl_final_exec_prefix"
14869 eval x=\"$x\"
14870 exec_prefix="$acl_save_exec_prefix"
14871 prefix="$acl_save_prefix"
14873 case "$x" in
14874 -L*)
14875 dir=`echo "X$x" | sed -e 's/^X-L//'`
14876 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14877 found_dir="$dir"
14878 found_so="$dir/lib$name.$shlibext"
14879 if test -f "$dir/lib$name.la"; then
14880 found_la="$dir/lib$name.la"
14882 else
14883 if test -f "$dir/lib$name.$libext"; then
14884 found_dir="$dir"
14885 found_a="$dir/lib$name.$libext"
14886 if test -f "$dir/lib$name.la"; then
14887 found_la="$dir/lib$name.la"
14892 esac
14893 if test "X$found_dir" != "X"; then
14894 break
14896 done
14898 if test "X$found_dir" != "X"; then
14899 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14900 if test "X$found_so" != "X"; then
14901 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14902 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14903 else
14904 haveit=
14905 for x in $ltrpathdirs; do
14906 if test "X$x" = "X$found_dir"; then
14907 haveit=yes
14908 break
14910 done
14911 if test -z "$haveit"; then
14912 ltrpathdirs="$ltrpathdirs $found_dir"
14914 if test "$hardcode_direct" = yes; then
14915 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14916 else
14917 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14918 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14919 haveit=
14920 for x in $rpathdirs; do
14921 if test "X$x" = "X$found_dir"; then
14922 haveit=yes
14923 break
14925 done
14926 if test -z "$haveit"; then
14927 rpathdirs="$rpathdirs $found_dir"
14929 else
14930 haveit=
14931 for x in $LDFLAGS $LIBINTL; do
14933 acl_save_prefix="$prefix"
14934 prefix="$acl_final_prefix"
14935 acl_save_exec_prefix="$exec_prefix"
14936 exec_prefix="$acl_final_exec_prefix"
14937 eval x=\"$x\"
14938 exec_prefix="$acl_save_exec_prefix"
14939 prefix="$acl_save_prefix"
14941 if test "X$x" = "X-L$found_dir"; then
14942 haveit=yes
14943 break
14945 done
14946 if test -z "$haveit"; then
14947 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14949 if test "$hardcode_minus_L" != no; then
14950 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14951 else
14952 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14957 else
14958 if test "X$found_a" != "X"; then
14959 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14960 else
14961 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14964 additional_includedir=
14965 case "$found_dir" in
14966 */lib | */lib/)
14967 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14968 additional_includedir="$basedir/include"
14970 esac
14971 if test "X$additional_includedir" != "X"; then
14972 if test "X$additional_includedir" != "X/usr/include"; then
14973 haveit=
14974 if test "X$additional_includedir" = "X/usr/local/include"; then
14975 if test -n "$GCC"; then
14976 case $host_os in
14977 linux*) haveit=yes;;
14978 esac
14981 if test -z "$haveit"; then
14982 for x in $CPPFLAGS $INCINTL; do
14984 acl_save_prefix="$prefix"
14985 prefix="$acl_final_prefix"
14986 acl_save_exec_prefix="$exec_prefix"
14987 exec_prefix="$acl_final_exec_prefix"
14988 eval x=\"$x\"
14989 exec_prefix="$acl_save_exec_prefix"
14990 prefix="$acl_save_prefix"
14992 if test "X$x" = "X-I$additional_includedir"; then
14993 haveit=yes
14994 break
14996 done
14997 if test -z "$haveit"; then
14998 if test -d "$additional_includedir"; then
14999 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15005 if test -n "$found_la"; then
15006 save_libdir="$libdir"
15007 case "$found_la" in
15008 */* | *\\*) . "$found_la" ;;
15009 *) . "./$found_la" ;;
15010 esac
15011 libdir="$save_libdir"
15012 for dep in $dependency_libs; do
15013 case "$dep" in
15014 -L*)
15015 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15016 if test "X$additional_libdir" != "X/usr/lib"; then
15017 haveit=
15018 if test "X$additional_libdir" = "X/usr/local/lib"; then
15019 if test -n "$GCC"; then
15020 case $host_os in
15021 linux*) haveit=yes;;
15022 esac
15025 if test -z "$haveit"; then
15026 haveit=
15027 for x in $LDFLAGS $LIBINTL; do
15029 acl_save_prefix="$prefix"
15030 prefix="$acl_final_prefix"
15031 acl_save_exec_prefix="$exec_prefix"
15032 exec_prefix="$acl_final_exec_prefix"
15033 eval x=\"$x\"
15034 exec_prefix="$acl_save_exec_prefix"
15035 prefix="$acl_save_prefix"
15037 if test "X$x" = "X-L$additional_libdir"; then
15038 haveit=yes
15039 break
15041 done
15042 if test -z "$haveit"; then
15043 if test -d "$additional_libdir"; then
15044 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15047 haveit=
15048 for x in $LDFLAGS $LTLIBINTL; do
15050 acl_save_prefix="$prefix"
15051 prefix="$acl_final_prefix"
15052 acl_save_exec_prefix="$exec_prefix"
15053 exec_prefix="$acl_final_exec_prefix"
15054 eval x=\"$x\"
15055 exec_prefix="$acl_save_exec_prefix"
15056 prefix="$acl_save_prefix"
15058 if test "X$x" = "X-L$additional_libdir"; then
15059 haveit=yes
15060 break
15062 done
15063 if test -z "$haveit"; then
15064 if test -d "$additional_libdir"; then
15065 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15071 -R*)
15072 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15073 if test "$enable_rpath" != no; then
15074 haveit=
15075 for x in $rpathdirs; do
15076 if test "X$x" = "X$dir"; then
15077 haveit=yes
15078 break
15080 done
15081 if test -z "$haveit"; then
15082 rpathdirs="$rpathdirs $dir"
15084 haveit=
15085 for x in $ltrpathdirs; do
15086 if test "X$x" = "X$dir"; then
15087 haveit=yes
15088 break
15090 done
15091 if test -z "$haveit"; then
15092 ltrpathdirs="$ltrpathdirs $dir"
15096 -l*)
15097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15099 *.la)
15100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15103 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15104 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15106 esac
15107 done
15109 else
15110 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15111 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15115 done
15116 done
15117 if test "X$rpathdirs" != "X"; then
15118 if test -n "$hardcode_libdir_separator"; then
15119 alldirs=
15120 for found_dir in $rpathdirs; do
15121 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15122 done
15123 acl_save_libdir="$libdir"
15124 libdir="$alldirs"
15125 eval flag=\"$hardcode_libdir_flag_spec\"
15126 libdir="$acl_save_libdir"
15127 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15128 else
15129 for found_dir in $rpathdirs; do
15130 acl_save_libdir="$libdir"
15131 libdir="$found_dir"
15132 eval flag=\"$hardcode_libdir_flag_spec\"
15133 libdir="$acl_save_libdir"
15134 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15135 done
15138 if test "X$ltrpathdirs" != "X"; then
15139 for found_dir in $ltrpathdirs; do
15140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15141 done
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15145 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15146 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 gt_save_CPPFLAGS="$CPPFLAGS"
15150 CPPFLAGS="$CPPFLAGS $INCINTL"
15151 gt_save_LIBS="$LIBS"
15152 LIBS="$LIBS $LIBINTL"
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15155 #include <libintl.h>
15156 extern int _nl_msg_cat_cntr;
15157 extern
15158 #ifdef __cplusplus
15160 #endif
15161 const char *_nl_expand_alias ();
15163 main ()
15165 bindtextdomain ("", "");
15166 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15168 return 0;
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 gt_cv_func_gnugettext2_libintl=yes
15173 else
15174 gt_cv_func_gnugettext2_libintl=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
15179 LIBS="$LIBS $LIBICONV"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 #include <libintl.h>
15183 extern int _nl_msg_cat_cntr;
15184 extern
15185 #ifdef __cplusplus
15187 #endif
15188 const char *_nl_expand_alias ();
15190 main ()
15192 bindtextdomain ("", "");
15193 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15195 return 0;
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199 LIBINTL="$LIBINTL $LIBICONV"
15200 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15201 gt_cv_func_gnugettext2_libintl=yes
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15207 CPPFLAGS="$gt_save_CPPFLAGS"
15208 LIBS="$gt_save_LIBS"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
15211 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
15214 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
15215 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
15216 && test "$PACKAGE" != gettext; }; then
15217 gt_use_preinstalled_gnugettext=yes
15218 else
15219 LIBINTL=
15220 LTLIBINTL=
15221 INCINTL=
15225 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15226 nls_cv_use_gnu_gettext=yes
15230 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15231 INTLOBJS="\$(GETTOBJS)"
15232 BUILD_INCLUDED_LIBINTL=yes
15233 USE_INCLUDED_LIBINTL=yes
15234 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
15235 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
15236 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15239 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15240 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15241 CATOBJEXT=.gmo
15245 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15246 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15248 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15250 else
15251 USE_NLS=no
15255 if test "$USE_NLS" = "yes"; then
15257 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15258 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15260 $as_echo_n "checking how to link with libintl... " >&6; }
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15262 $as_echo "$LIBINTL" >&6; }
15264 for element in $INCINTL; do
15265 haveit=
15266 for x in $CPPFLAGS; do
15268 acl_save_prefix="$prefix"
15269 prefix="$acl_final_prefix"
15270 acl_save_exec_prefix="$exec_prefix"
15271 exec_prefix="$acl_final_exec_prefix"
15272 eval x=\"$x\"
15273 exec_prefix="$acl_save_exec_prefix"
15274 prefix="$acl_save_prefix"
15276 if test "X$x" = "X$element"; then
15277 haveit=yes
15278 break
15280 done
15281 if test -z "$haveit"; then
15282 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15284 done
15289 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15292 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15296 POSUB=po
15300 if test "$PACKAGE" = gettext; then
15301 BUILD_INCLUDED_LIBINTL=yes
15309 nls_cv_header_intl=
15310 nls_cv_header_libgt=
15312 DATADIRNAME=share
15315 INSTOBJEXT=.mo
15318 GENCAT=gencat
15321 INTL_LIBTOOL_SUFFIX_PREFIX=
15325 INTLLIBS="$LIBINTL"
15332 if test $USE_INCLUDED_LIBINTL = yes; then :
15333 INCINTL=-I\${top_builddir}/intl
15336 if test x$USE_NLS = xyes; then :
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15339 $as_echo_n "checking for autopoint... " >&6; }
15340 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15341 if test -n "$autopoint_version"; then :
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15344 $as_echo "yes ($autopoint_version)" >&6; }
15347 else
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351 USE_NLS=no
15356 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15358 You need to install GNU gettext/gettext-tools to compile aMule with
15359 i18n support." >&5
15360 $as_echo "$as_me: WARNING:
15361 You need to install GNU gettext/gettext-tools to compile aMule with
15362 i18n support." >&2;}
15363 _mule_warning_13=yes
15364 _mule_has_warnings=yes
15368 if test ${USE_NLS:-no} = yes; then :
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15371 $as_echo_n "checking for requested languages... " >&6; }
15372 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15374 if test ${enable_amule_daemon:-no} = yes; then :
15376 if test -z "$LINGUAS"; then :
15377 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15378 else
15380 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15381 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15384 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15386 else
15387 AMULE_DAEMON_MANPAGES=
15392 if test ${enable_amulecmd:-no} = yes; then :
15394 if test -z "$LINGUAS"; then :
15395 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15396 else
15398 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15399 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15402 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15404 else
15405 AMULECMD_MANPAGES=
15410 if test ${enable_webserver:-no} = yes; then :
15412 if test -z "$LINGUAS"; then :
15413 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15414 else
15416 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15417 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15420 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15422 else
15423 WEBSERVER_MANPAGES=
15428 if test ${enable_amule_gui:-no} = yes; then :
15430 if test -z "$LINGUAS"; then :
15431 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15432 else
15434 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15435 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15438 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15440 else
15441 AMULE_GUI_MANPAGES=
15446 if test ${enable_cas:-no} = yes; then :
15448 if test -z "$LINGUAS"; then :
15449 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15450 else
15452 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15453 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15456 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15458 else
15459 CAS_MANPAGES=
15464 if test ${enable_wxcas:-no} = yes; then :
15466 if test -z "$LINGUAS"; then :
15467 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15468 else
15470 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15471 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15474 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15476 else
15477 WXCAS_MANPAGES=
15482 if test ${enable_ed2k:-yes} = yes; then :
15484 if test -z "$LINGUAS"; then :
15485 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15486 else
15488 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15489 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15492 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15494 else
15495 ED2K_MANPAGES=
15500 if test ${enable_alc:-no} = yes; then :
15502 if test -z "$LINGUAS"; then :
15503 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15504 else
15506 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15507 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15510 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15512 else
15513 ALC_MANPAGES=
15518 if test ${enable_alcc:-no} = yes; then :
15520 if test -z "$LINGUAS"; then :
15521 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15522 else
15524 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15525 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15528 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15530 else
15531 ALCC_MANPAGES=
15536 if test ${enable_monolithic:-yes} = yes; then :
15538 if test -z "$LINGUAS"; then :
15539 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15540 else
15542 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15543 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15546 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15548 else
15549 MONOLITHIC_MANPAGES=
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15554 $as_echo "${LINGUAS:-all}" >&6; }
15559 ac_ext=cpp
15560 ac_cpp='$CXXCPP $CPPFLAGS'
15561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15567 # Check for bfd.h (to have proper backtraces without using wxExecute)
15569 for ac_header in ansidecl.h bfd.h
15570 do :
15571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15572 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15574 cat >>confdefs.h <<_ACEOF
15575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 _ACEOF
15580 done
15582 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15585 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15586 if ${mule_cv_lib_bfd+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15590 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
15591 # Doing some black magic to prevent multiple tests for the same set of
15592 # libraries when any of the shell variables above expand to nothing.
15593 echo $bfd_ldadd
15594 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15595 while read bfd_ldadd; do
15596 mule_backup_LIBS="$LIBS"
15597 mule_backup_LDFLAGS="$LDFLAGS"
15598 LIBS="${bfd_ldadd} $LIBS"
15599 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15604 #include <ansidecl.h>
15605 #include <bfd.h>
15608 main ()
15610 const char *dummy = bfd_errmsg(bfd_get_error());
15612 return 0;
15615 _ACEOF
15616 if ac_fn_cxx_try_link "$LINENO"; then :
15618 LIBS="$mule_backup_LIBS"
15619 LDFLAGS="$mule_backup_LDFLAGS"
15620 mule_cv_lib_bfd="${bfd_ldadd}"
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 LIBS="$mule_backup_LIBS"
15626 LDFLAGS="$mule_backup_LDFLAGS"
15627 if ${mule_cv_lib_bfd+:} false; then :
15628 break
15630 done <conftest.bfd_ldadd
15631 rm -f conftest.bfd_ldadd
15636 if ${mule_cv_lib_bfd+:} false; then :
15638 BFD_CPPFLAGS="-DHAVE_BFD"
15639 BFD_LIBS="${mule_cv_lib_bfd}"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15641 $as_echo "${BFD_LIBS:-none required}" >&6; }
15643 else
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15646 $as_echo "not found" >&6; }
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15648 Cannot link to the library containing the bfd functions." >&5
15649 $as_echo "$as_me: WARNING:
15650 Cannot link to the library containing the bfd functions." >&2;}
15651 _mule_warning_14=yes
15652 _mule_has_warnings=yes
15657 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15660 bfd.h not found or unusable, please install binutils development
15661 package if you are a developer or want to help testing aMule" >&5
15662 $as_echo "$as_me: WARNING:
15663 bfd.h not found or unusable, please install binutils development
15664 package if you are a developer or want to help testing aMule" >&2;}
15665 _mule_warning_15=yes
15666 _mule_has_warnings=yes
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15674 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15679 #include <execinfo.h>
15682 main ()
15685 void *bt[1];
15686 int n = backtrace((void **)&bt, 1);
15687 char **bt_syms = backtrace_symbols(bt, n);
15690 return 0;
15693 _ACEOF
15694 if ac_fn_cxx_try_link "$LINENO"; then :
15697 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15700 $as_echo "yes" >&6; }
15702 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705 $as_echo "no" >&6; }
15708 rm -f core conftest.err conftest.$ac_objext \
15709 conftest$ac_exeext conftest.$ac_ext
15713 # aMule plasma widget
15714 if test ${enable_plasmamule:-no} = yes; then :
15717 if test -z ${QT_MOC}; then :
15719 for ac_prog in moc-qt4 moc
15721 # Extract the first word of "$ac_prog", so it can be a program name with args.
15722 set dummy $ac_prog; ac_word=$2
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724 $as_echo_n "checking for $ac_word... " >&6; }
15725 if ${ac_cv_path_QT_MOC+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 case $QT_MOC in
15729 [\\/]* | ?:[\\/]*)
15730 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15734 for as_dir in $PATH
15736 IFS=$as_save_IFS
15737 test -z "$as_dir" && as_dir=.
15738 for ac_exec_ext in '' $ac_executable_extensions; do
15739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15740 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15742 break 2
15744 done
15745 done
15746 IFS=$as_save_IFS
15749 esac
15751 QT_MOC=$ac_cv_path_QT_MOC
15752 if test -n "$QT_MOC"; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15754 $as_echo "$QT_MOC" >&6; }
15755 else
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15757 $as_echo "no" >&6; }
15761 test -n "$QT_MOC" && break
15762 done
15764 if test -z ${QT_MOC}; then :
15766 echo moc not found
15767 exit 1
15771 else
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15774 $as_echo_n "checking for moc... " >&6; }
15775 if test -x ${QT_MOC}; then :
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15778 $as_echo "${QT_MOC}" >&6; }
15781 else
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15784 $as_echo "\"not found\"" >&6; }
15785 QT_MOC="not found"
15786 exit 1
15793 if test "${QT_MOC}" != "not found"; then :
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15796 $as_echo_n "checking for moc version >= 4... " >&6; }
15797 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15798 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15801 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15803 else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15806 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15807 QT_MOC="not found"
15808 exit 1
15814 if test "${QT_MOC}" = "not found"; then :
15815 enable_plasmamule=disabled
15818 if test ${enable_plasmamule:-no} = yes; then :
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15823 $as_echo_n "checking for qt... " >&6; }
15824 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15827 $as_echo "found" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15829 $as_echo_n "checking for qt core cflags... " >&6; }
15830 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15832 $as_echo "$QT_CORE_CFLAGS" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15834 $as_echo_n "checking for qt core libs... " >&6; }
15835 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15837 $as_echo "$QT_CORE_LIBS" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15839 $as_echo_n "checking for qt gui cflags... " >&6; }
15840 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15842 $as_echo "$QT_GUI_CFLAGS" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15844 $as_echo_n "checking for qt gui libs... " >&6; }
15845 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15847 $as_echo "$QT_GUI_LIBS" >&6; }
15849 else
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15851 $as_echo "not found" >&6; }
15852 exit 1
15856 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15858 QT_DBUS_LDFLAGS="-lQtDBus"
15868 if test -z "${QT_CORE_CXXFLAGS}"; then :
15869 enable_plasmamule=disabled
15874 if test ${enable_plasmamule:-no} = yes; then :
15877 if test -z ${KDE4_CONFIG}; then :
15879 # Extract the first word of "kde4-config", so it can be a program name with args.
15880 set dummy kde4-config; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 case $KDE4_CONFIG in
15887 [\\/]* | ?:[\\/]*)
15888 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15892 for as_dir in $PATH
15894 IFS=$as_save_IFS
15895 test -z "$as_dir" && as_dir=.
15896 for ac_exec_ext in '' $ac_executable_extensions; do
15897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15898 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15900 break 2
15902 done
15903 done
15904 IFS=$as_save_IFS
15907 esac
15909 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15910 if test -n "$KDE4_CONFIG"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15912 $as_echo "$KDE4_CONFIG" >&6; }
15913 else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15920 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15923 $as_echo_n "checking for kde4-config... " >&6; }
15924 if test ! -x KDE4_CONFIG; then :
15926 KDE4_CONFIG="not found"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15928 $as_echo "not found" >&6; }
15929 exit 1
15935 if test "${KDE4_CONFIG}" != "not found"; then :
15937 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15938 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15941 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15943 else
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15946 $as_echo "at least version 4 required" >&6; }
15947 exit 1
15951 else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15954 $as_echo "not found" >&6; }
15955 exit 1
15960 if test "${KDE4_CONFIG}" = "not found"; then :
15961 enable_plasmamule=disabled
15966 if test ${enable_plasmamule:-no} = yes; then :
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15970 $as_echo_n "checking for kde4 headers... " >&6; }
15971 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15973 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15975 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15978 $as_echo "${KDE_HEADER_DIR}" >&6; }
15980 else
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15983 $as_echo "dataengine.h not found" >&6; }
15984 exit 1
15988 else
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15991 $as_echo "kdirwatch.h not found" >&6; }
15992 exit 1
15997 if test -z ${KDE_HEADER_DIR}; then :
15998 enable_plasmamule=disabled
16003 if test ${enable_plasmamule:-no} = yes; then :
16005 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
16006 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
16011 $as_echo_n "checking for kde4 applinks Path... " >&6; }
16012 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16014 KDE_IN_HOME="yes"
16017 if test ${KDE_IN_HOME} = "yes"; then :
16019 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16021 else
16023 if test -n ${prefix}; then :
16025 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
16026 if test -n ${KDE_APPLNK_PATH}; then :
16028 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16032 else
16034 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
16040 $as_echo "${KDE_APPLNK_PATH}" >&6; }
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
16046 $as_echo_n "checking for kde4 services Path... " >&6; }
16047 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16049 KDE_IN_HOME="yes"
16052 if test ${KDE_IN_HOME} = "yes"; then :
16054 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16056 else
16058 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
16062 $as_echo "${KDE_SERVICE_PATH}" >&6; }
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
16068 $as_echo_n "checking for kde4 plugins Path... " >&6; }
16069 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16071 KDE_IN_HOME="yes"
16074 if test ${KDE_IN_HOME} = "yes"; then :
16076 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16078 else
16080 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
16084 $as_echo "${KDE_MODULE_PATH}" >&6; }
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
16090 $as_echo_n "checking for kde4 icons Path... " >&6; }
16091 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16093 KDE_IN_HOME="yes"
16096 if test ${KDE_IN_HOME} = "yes"; then :
16098 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16100 else
16102 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
16105 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
16107 $as_echo "${KDE_ICON_PATH}" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
16113 $as_echo_n "checking for location for mime-type installation... " >&6; }
16114 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16116 KDE_IN_HOME="yes"
16119 if test ${KDE_IN_HOME} = "yes"; then :
16121 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16123 else
16125 if test -n ${prefix}; then :
16127 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
16128 if test -n ${KDE_MIME_PATH}; then :
16130 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16134 else
16136 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
16142 $as_echo "${KDE_MIME_PATH}" >&6; }
16146 else
16147 enable_plasmamule=disabled
16152 if test ${enable_debug:-yes} = yes; then :
16154 DEBUGFLAG="-D__DEBUG__"
16162 # Check for readline library
16163 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16166 $as_echo_n "checking for a readline compatible library... " >&6; }
16167 if ${vl_cv_lib_readline+:} false; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16171 ORIG_LIBS="$LIBS"
16172 for readline_lib in readline edit editline; do
16173 for termcap_lib in "" termcap curses ncurses; do
16174 if test -z "$termcap_lib"; then
16175 TRY_LIB="-l$readline_lib"
16176 else
16177 TRY_LIB="-l$readline_lib -l$termcap_lib"
16179 LIBS="$ORIG_LIBS $TRY_LIB"
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16183 /* Override any GCC internal prototype to avoid an error.
16184 Use char because int might match the return type of a GCC
16185 builtin and then its argument prototype would still apply. */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 char readline ();
16191 main ()
16193 return readline ();
16195 return 0;
16197 _ACEOF
16198 if ac_fn_cxx_try_link "$LINENO"; then :
16199 vl_cv_lib_readline="$TRY_LIB"
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 if test -n "$vl_cv_lib_readline"; then
16204 break
16206 done
16207 if test -n "$vl_cv_lib_readline"; then
16208 break
16210 done
16211 if test -z "$vl_cv_lib_readline"; then
16212 vl_cv_lib_readline="no"
16213 LIBS="$ORIG_LIBS"
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16218 $as_echo "$vl_cv_lib_readline" >&6; }
16220 if test "$vl_cv_lib_readline" != "no"; then
16221 have_readline_headers=no
16222 for ac_header in readline/readline.h readline.h
16223 do :
16224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16225 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16227 cat >>confdefs.h <<_ACEOF
16228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16229 _ACEOF
16230 have_readline_headers=yes ; break
16233 done
16235 if test "$have_readline_headers" = "yes"; then
16236 READLINE_LIBS="$vl_cv_lib_readline"
16238 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16240 else
16241 READLINE_LIBS=
16242 vl_cv_lib_readline=no
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16245 $as_echo_n "checking whether readline supports history... " >&6; }
16246 if ${vl_cv_lib_readline_history+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16250 vl_cv_lib_readline_history="no"
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 /* Override any GCC internal prototype to avoid an error.
16255 Use char because int might match the return type of a GCC
16256 builtin and then its argument prototype would still apply. */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 char add_history ();
16262 main ()
16264 return add_history ();
16266 return 0;
16268 _ACEOF
16269 if ac_fn_cxx_try_link "$LINENO"; then :
16270 vl_cv_lib_readline_history="yes"
16272 rm -f core conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16277 $as_echo "$vl_cv_lib_readline_history" >&6; }
16278 if test "$vl_cv_lib_readline_history" = "yes"; then
16279 have_readline_history_headers=no
16280 for ac_header in readline/history.h history.h
16281 do :
16282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16283 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16285 cat >>confdefs.h <<_ACEOF
16286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16287 _ACEOF
16288 have_readline_history_headers=yes ; break
16291 done
16293 if test "$have_readline_history_headers" = "yes"; then
16295 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16297 else
16298 vl_cv_lib_readline_history=no
16301 else
16302 READLINE_LIBS=""
16309 ac_ext=c
16310 ac_cpp='$CPP $CPPFLAGS'
16311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16316 # Check for strerror_r
16317 mule_backup_CPPFLAGS="$CPPFLAGS"
16318 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16319 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16320 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16321 ac_have_decl=1
16322 else
16323 ac_have_decl=0
16326 cat >>confdefs.h <<_ACEOF
16327 #define HAVE_DECL_STRERROR_R $ac_have_decl
16328 _ACEOF
16330 for ac_func in strerror_r
16331 do :
16332 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16333 if test "x$ac_cv_func_strerror_r" = xyes; then :
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_STRERROR_R 1
16336 _ACEOF
16339 done
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16342 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16343 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16347 ac_cv_func_strerror_r_char_p=no
16348 if test $ac_cv_have_decl_strerror_r = yes; then
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 $ac_includes_default
16353 main ()
16356 char buf[100];
16357 char x = *strerror_r (0, buf, sizeof buf);
16358 char *p = strerror_r (0, buf, sizeof buf);
16359 return !p || x;
16362 return 0;
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366 ac_cv_func_strerror_r_char_p=yes
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 else
16370 # strerror_r is not declared. Choose between
16371 # systems that have relatively inaccessible declarations for the
16372 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16373 # former has a strerror_r that returns char*, while the latter
16374 # has a strerror_r that returns `int'.
16375 # This test should segfault on the DEC system.
16376 if test "$cross_compiling" = yes; then :
16378 else
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 $ac_includes_default
16382 extern char *strerror_r ();
16384 main ()
16386 char buf[100];
16387 char x = *strerror_r (0, buf, sizeof buf);
16388 return ! isalpha (x);
16390 return 0;
16392 _ACEOF
16393 if ac_fn_c_try_run "$LINENO"; then :
16394 ac_cv_func_strerror_r_char_p=yes
16396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16397 conftest.$ac_objext conftest.beam conftest.$ac_ext
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16404 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16405 if test $ac_cv_func_strerror_r_char_p = yes; then
16407 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16411 CPPFLAGS="$mule_backup_CPPFLAGS"
16414 # Other tests
16416 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16418 $as_echo_n "checking for docdir... " >&6; }
16419 if test -z "$docdir"; then :
16420 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16423 $as_echo "$docdir" >&6; }
16426 # Try to set the SVN checkout-date
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16428 $as_echo_n "checking for SVNDATE... " >&6; }
16429 modified=
16430 if test -f "$srcdir/.svn-revision"; then
16431 svndate="rev. `cat $srcdir/.svn-revision`"
16432 elif test -d "$srcdir"/.svn; then
16433 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'`"
16434 elif test -d "$srcdir"/.git; then
16436 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16437 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16438 modified="+"
16440 if test -f $srcdir/.git/svn/.metadata ; then
16441 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16442 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16443 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16444 if test -n "\${svn_revision}" ; then
16445 if test \${sha} = ${git_sha} ; then
16446 echo "rev. \${svn_revision}${modified}"
16447 else
16448 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16450 break
16452 done`
16453 else
16454 svndate="rev. g${git_revision}${modified}"
16457 elif test -d "$srcdir"/.hg; then
16459 hg_revision=`hg --cwd "$srcdir" identify --id`
16460 hg_revid=${hg_revision%+}
16461 if test ${hg_revision} != ${hg_revid} ; then
16462 modified="+"
16464 if test -f "$srcdir"/.hg/svn/uuid ; then
16465 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16466 if test \${svn_revision} != r ; then
16467 if test \${hg_sha} = ${hg_revid} ; then
16468 echo "rev. \${svn_revision#r}${modified}"
16469 else
16470 echo "rev. \${svn_revision#r}+h${hg_revision}"
16472 break
16474 done`
16475 else
16476 svndate="rev. h${hg_revision}"
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16483 $as_echo "${svndate:-None required}" >&6; }
16484 if test -n "$svndate"; then :
16487 cat >>confdefs.h <<_ACEOF
16488 #define SVNDATE "$svndate"
16489 _ACEOF
16491 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16494 SVNDATE=$svndate
16499 # Check whether --with-denoise-level was given.
16500 if test "${with_denoise_level+set}" = set; then :
16501 withval=$with_denoise_level;
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16506 $as_echo_n "checking denoising level... " >&6; }
16507 if test ${with_denoise_level:-5} = yes; then :
16508 with_denoise_level=5
16510 if test ${with_denoise_level:-5} = no; then :
16511 with_denoise_level=0
16513 if test ${with_denoise_level:-5} -gt 4; then :
16514 if test "${svndate:+set}" = "set"; then :
16515 with_denoise_level=0
16516 else
16517 with_denoise_level=4
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16521 $as_echo "$with_denoise_level" >&6; }
16523 ac_config_commands="$ac_config_commands denoiser"
16528 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16530 # Check whether --enable-ccache was given.
16531 if test "${enable_ccache+set}" = set; then :
16532 enableval=$enable_ccache;
16538 # Check whether --with-ccache-prefix was given.
16539 if test "${with_ccache_prefix+set}" = set; then :
16540 withval=$with_ccache_prefix;
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16545 $as_echo_n "checking whether ccache support should be added... " >&6; }
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16547 $as_echo "${enable_ccache:-no}" >&6; }
16549 if test ${enable_ccache:-no} = yes; then :
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16552 $as_echo_n "checking for ccache presence... " >&6; }
16553 if test -z "$with_ccache_prefix"; then :
16555 ccache_full=`which ccache`
16556 with_ccache_prefix=`dirname ${ccache_full}`
16559 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16561 CC="$with_ccache_prefix/ccache $CC"
16562 CXX="$with_ccache_prefix/ccache $CXX"
16563 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16565 else
16566 enable_ccache=no
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16569 $as_echo "${enable_ccache:-no}" >&6; }
16576 if test x$SYS = xwin32; then
16577 SYS_WIN32_TRUE=
16578 SYS_WIN32_FALSE='#'
16579 else
16580 SYS_WIN32_TRUE='#'
16581 SYS_WIN32_FALSE=
16584 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16585 NEED_RC_TRUE=
16586 NEED_RC_FALSE='#'
16587 else
16588 NEED_RC_TRUE='#'
16589 NEED_RC_FALSE=
16592 if test x$SYS = xdarwin; then
16593 NEED_CORESERVICES_TRUE=
16594 NEED_CORESERVICES_FALSE='#'
16595 else
16596 NEED_CORESERVICES_TRUE='#'
16597 NEED_CORESERVICES_FALSE=
16600 if test x$USE_NLS = xyes; then
16601 COMPILE_NLS_TRUE=
16602 COMPILE_NLS_FALSE='#'
16603 else
16604 COMPILE_NLS_TRUE='#'
16605 COMPILE_NLS_FALSE=
16608 if test x$HAVE_FLEX_EXTENDED = xyes; then
16609 GENERATE_FLEX_HEADER_TRUE=
16610 GENERATE_FLEX_HEADER_FALSE='#'
16611 else
16612 GENERATE_FLEX_HEADER_TRUE='#'
16613 GENERATE_FLEX_HEADER_FALSE=
16616 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16617 INSTALL_SKINS_TRUE=
16618 INSTALL_SKINS_FALSE='#'
16619 else
16620 INSTALL_SKINS_TRUE='#'
16621 INSTALL_SKINS_FALSE=
16624 if test ${enable_plasmamule:-no} = yes; then
16625 PLASMAMULE_TRUE=
16626 PLASMAMULE_FALSE='#'
16627 else
16628 PLASMAMULE_TRUE='#'
16629 PLASMAMULE_FALSE=
16633 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
16634 COMPILE_LIB_COMMON_TRUE=
16635 COMPILE_LIB_COMMON_FALSE='#'
16636 else
16637 COMPILE_LIB_COMMON_TRUE='#'
16638 COMPILE_LIB_COMMON_FALSE=
16641 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
16642 COMPILE_LIB_EC_TRUE=
16643 COMPILE_LIB_EC_FALSE='#'
16644 else
16645 COMPILE_LIB_EC_TRUE='#'
16646 COMPILE_LIB_EC_FALSE=
16650 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"
16653 if test x$SYS = xwin32; then :
16654 ac_config_files="$ac_config_files version.rc"
16657 cat >confcache <<\_ACEOF
16658 # This file is a shell script that caches the results of configure
16659 # tests run on this system so they can be shared between configure
16660 # scripts and configure runs, see configure's option --config-cache.
16661 # It is not useful on other systems. If it contains results you don't
16662 # want to keep, you may remove or edit it.
16664 # config.status only pays attention to the cache file if you give it
16665 # the --recheck option to rerun configure.
16667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16669 # following values.
16671 _ACEOF
16673 # The following way of writing the cache mishandles newlines in values,
16674 # but we know of no workaround that is simple, portable, and efficient.
16675 # So, we kill variables containing newlines.
16676 # Ultrix sh set writes to stderr and can't be redirected directly,
16677 # and sets the high bit in the cache file unless we assign to the vars.
16679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16680 eval ac_val=\$$ac_var
16681 case $ac_val in #(
16682 *${as_nl}*)
16683 case $ac_var in #(
16684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16686 esac
16687 case $ac_var in #(
16688 _ | IFS | as_nl) ;; #(
16689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16690 *) { eval $ac_var=; unset $ac_var;} ;;
16691 esac ;;
16692 esac
16693 done
16695 (set) 2>&1 |
16696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16697 *${as_nl}ac_space=\ *)
16698 # `set' does not quote correctly, so add quotes: double-quote
16699 # substitution turns \\\\ into \\, and sed turns \\ into \.
16700 sed -n \
16701 "s/'/'\\\\''/g;
16702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16703 ;; #(
16705 # `set' quotes correctly as required by POSIX, so do not add quotes.
16706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16708 esac |
16709 sort
16711 sed '
16712 /^ac_cv_env_/b end
16713 t clear
16714 :clear
16715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16716 t end
16717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16718 :end' >>confcache
16719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16720 if test -w "$cache_file"; then
16721 if test "x$cache_file" != "x/dev/null"; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16723 $as_echo "$as_me: updating cache $cache_file" >&6;}
16724 if test ! -f "$cache_file" || test -h "$cache_file"; then
16725 cat confcache >"$cache_file"
16726 else
16727 case $cache_file in #(
16728 */* | ?:*)
16729 mv -f confcache "$cache_file"$$ &&
16730 mv -f "$cache_file"$$ "$cache_file" ;; #(
16732 mv -f confcache "$cache_file" ;;
16733 esac
16736 else
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16741 rm -f confcache
16743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16744 # Let make expand exec_prefix.
16745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16747 DEFS=-DHAVE_CONFIG_H
16749 ac_libobjs=
16750 ac_ltlibobjs=
16752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16753 # 1. Remove the extension, and $U if already installed.
16754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16757 # will be set to the directory where LIBOBJS objects are built.
16758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16760 done
16761 LIBOBJS=$ac_libobjs
16763 LTLIBOBJS=$ac_ltlibobjs
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16767 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16768 if test -n "$am_sleep_pid"; then
16769 # Hide warnings about reused PIDs.
16770 wait $am_sleep_pid 2>/dev/null
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16773 $as_echo "done" >&6; }
16774 if test -n "$EXEEXT"; then
16775 am__EXEEXT_TRUE=
16776 am__EXEEXT_FALSE='#'
16777 else
16778 am__EXEEXT_TRUE='#'
16779 am__EXEEXT_FALSE=
16782 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16783 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16787 as_fn_error $? "conditional \"AMDEP\" was never defined.
16788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16791 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16799 as_fn_error $? "conditional \"MONOLITHIC\" was never defined.
16800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16803 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16807 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16811 as_fn_error $? "conditional \"WEB\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16815 as_fn_error $? "conditional \"AMULE_GUI\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16818 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16819 as_fn_error $? "conditional \"CAS\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16822 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16823 as_fn_error $? "conditional \"WXCAS\" was never defined.
16824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16826 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16827 as_fn_error $? "conditional \"ED2K\" was never defined.
16828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16830 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16831 as_fn_error $? "conditional \"ALC\" was never defined.
16832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16834 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16835 as_fn_error $? "conditional \"ALCC\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16838 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16839 as_fn_error $? "conditional \"XAS\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16842 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16843 as_fn_error $? "conditional \"FILEVIEW\" was never defined.
16844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16846 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16847 as_fn_error $? "conditional \"SYS_WIN32\" was never defined.
16848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16850 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16851 as_fn_error $? "conditional \"NEED_RC\" was never defined.
16852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16854 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16855 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined.
16856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16859 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined.
16860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16862 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16863 as_fn_error $? "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16866 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16867 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16870 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16871 as_fn_error $? "conditional \"PLASMAMULE\" was never defined.
16872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16875 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined.
16876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16879 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined.
16880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16883 : "${CONFIG_STATUS=./config.status}"
16884 ac_write_fail=0
16885 ac_clean_files_save=$ac_clean_files
16886 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16888 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16889 as_write_fail=0
16890 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16891 #! $SHELL
16892 # Generated by $as_me.
16893 # Run this file to recreate the current configuration.
16894 # Compiler output produced by configure, useful for debugging
16895 # configure, is in config.log if it exists.
16897 debug=false
16898 ac_cs_recheck=false
16899 ac_cs_silent=false
16901 SHELL=\${CONFIG_SHELL-$SHELL}
16902 export SHELL
16903 _ASEOF
16904 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16905 ## -------------------- ##
16906 ## M4sh Initialization. ##
16907 ## -------------------- ##
16909 # Be more Bourne compatible
16910 DUALCASE=1; export DUALCASE # for MKS sh
16911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16912 emulate sh
16913 NULLCMD=:
16914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16915 # is contrary to our usage. Disable this feature.
16916 alias -g '${1+"$@"}'='"$@"'
16917 setopt NO_GLOB_SUBST
16918 else
16919 case `(set -o) 2>/dev/null` in #(
16920 *posix*) :
16921 set -o posix ;; #(
16922 *) :
16924 esac
16928 as_nl='
16930 export as_nl
16931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16932 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16935 # Prefer a ksh shell builtin over an external printf program on Solaris,
16936 # but without wasting forks for bash or zsh.
16937 if test -z "$BASH_VERSION$ZSH_VERSION" \
16938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16939 as_echo='print -r --'
16940 as_echo_n='print -rn --'
16941 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16942 as_echo='printf %s\n'
16943 as_echo_n='printf %s'
16944 else
16945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16947 as_echo_n='/usr/ucb/echo -n'
16948 else
16949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16950 as_echo_n_body='eval
16951 arg=$1;
16952 case $arg in #(
16953 *"$as_nl"*)
16954 expr "X$arg" : "X\\(.*\\)$as_nl";
16955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16956 esac;
16957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16959 export as_echo_n_body
16960 as_echo_n='sh -c $as_echo_n_body as_echo'
16962 export as_echo_body
16963 as_echo='sh -c $as_echo_body as_echo'
16966 # The user is always right.
16967 if test "${PATH_SEPARATOR+set}" != set; then
16968 PATH_SEPARATOR=:
16969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16971 PATH_SEPARATOR=';'
16976 # IFS
16977 # We need space, tab and new line, in precisely that order. Quoting is
16978 # there to prevent editors from complaining about space-tab.
16979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16980 # splitting by setting IFS to empty value.)
16981 IFS=" "" $as_nl"
16983 # Find who we are. Look in the path if we contain no directory separator.
16984 as_myself=
16985 case $0 in #((
16986 *[\\/]* ) as_myself=$0 ;;
16987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16988 for as_dir in $PATH
16990 IFS=$as_save_IFS
16991 test -z "$as_dir" && as_dir=.
16992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16993 done
16994 IFS=$as_save_IFS
16997 esac
16998 # We did not find ourselves, most probably we were run as `sh COMMAND'
16999 # in which case we are not to be found in the path.
17000 if test "x$as_myself" = x; then
17001 as_myself=$0
17003 if test ! -f "$as_myself"; then
17004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17005 exit 1
17008 # Unset variables that we do not need and which cause bugs (e.g. in
17009 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17010 # suppresses any "Segmentation fault" message there. '((' could
17011 # trigger a bug in pdksh 5.2.14.
17012 for as_var in BASH_ENV ENV MAIL MAILPATH
17013 do eval test x\${$as_var+set} = xset \
17014 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17015 done
17016 PS1='$ '
17017 PS2='> '
17018 PS4='+ '
17020 # NLS nuisances.
17021 LC_ALL=C
17022 export LC_ALL
17023 LANGUAGE=C
17024 export LANGUAGE
17026 # CDPATH.
17027 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17030 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17031 # ----------------------------------------
17032 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17033 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17034 # script with STATUS, using 1 if that was 0.
17035 as_fn_error ()
17037 as_status=$1; test $as_status -eq 0 && as_status=1
17038 if test "$4"; then
17039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17040 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17042 $as_echo "$as_me: error: $2" >&2
17043 as_fn_exit $as_status
17044 } # as_fn_error
17047 # as_fn_set_status STATUS
17048 # -----------------------
17049 # Set $? to STATUS, without forking.
17050 as_fn_set_status ()
17052 return $1
17053 } # as_fn_set_status
17055 # as_fn_exit STATUS
17056 # -----------------
17057 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17058 as_fn_exit ()
17060 set +e
17061 as_fn_set_status $1
17062 exit $1
17063 } # as_fn_exit
17065 # as_fn_unset VAR
17066 # ---------------
17067 # Portably unset VAR.
17068 as_fn_unset ()
17070 { eval $1=; unset $1;}
17072 as_unset=as_fn_unset
17073 # as_fn_append VAR VALUE
17074 # ----------------------
17075 # Append the text in VALUE to the end of the definition contained in VAR. Take
17076 # advantage of any shell optimizations that allow amortized linear growth over
17077 # repeated appends, instead of the typical quadratic growth present in naive
17078 # implementations.
17079 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17080 eval 'as_fn_append ()
17082 eval $1+=\$2
17084 else
17085 as_fn_append ()
17087 eval $1=\$$1\$2
17089 fi # as_fn_append
17091 # as_fn_arith ARG...
17092 # ------------------
17093 # Perform arithmetic evaluation on the ARGs, and store the result in the
17094 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17095 # must be portable across $(()) and expr.
17096 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17097 eval 'as_fn_arith ()
17099 as_val=$(( $* ))
17101 else
17102 as_fn_arith ()
17104 as_val=`expr "$@" || test $? -eq 1`
17106 fi # as_fn_arith
17109 if expr a : '\(a\)' >/dev/null 2>&1 &&
17110 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17111 as_expr=expr
17112 else
17113 as_expr=false
17116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17117 as_basename=basename
17118 else
17119 as_basename=false
17122 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17123 as_dirname=dirname
17124 else
17125 as_dirname=false
17128 as_me=`$as_basename -- "$0" ||
17129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17130 X"$0" : 'X\(//\)$' \| \
17131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17132 $as_echo X/"$0" |
17133 sed '/^.*\/\([^/][^/]*\)\/*$/{
17134 s//\1/
17137 /^X\/\(\/\/\)$/{
17138 s//\1/
17141 /^X\/\(\/\).*/{
17142 s//\1/
17145 s/.*/./; q'`
17147 # Avoid depending upon Character Ranges.
17148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17151 as_cr_digits='0123456789'
17152 as_cr_alnum=$as_cr_Letters$as_cr_digits
17154 ECHO_C= ECHO_N= ECHO_T=
17155 case `echo -n x` in #(((((
17156 -n*)
17157 case `echo 'xy\c'` in
17158 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17159 xy) ECHO_C='\c';;
17160 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17161 ECHO_T=' ';;
17162 esac;;
17164 ECHO_N='-n';;
17165 esac
17167 rm -f conf$$ conf$$.exe conf$$.file
17168 if test -d conf$$.dir; then
17169 rm -f conf$$.dir/conf$$.file
17170 else
17171 rm -f conf$$.dir
17172 mkdir conf$$.dir 2>/dev/null
17174 if (echo >conf$$.file) 2>/dev/null; then
17175 if ln -s conf$$.file conf$$ 2>/dev/null; then
17176 as_ln_s='ln -s'
17177 # ... but there are two gotchas:
17178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17180 # In both cases, we have to default to `cp -pR'.
17181 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17182 as_ln_s='cp -pR'
17183 elif ln conf$$.file conf$$ 2>/dev/null; then
17184 as_ln_s=ln
17185 else
17186 as_ln_s='cp -pR'
17188 else
17189 as_ln_s='cp -pR'
17191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17192 rmdir conf$$.dir 2>/dev/null
17195 # as_fn_mkdir_p
17196 # -------------
17197 # Create "$as_dir" as a directory, including parents if necessary.
17198 as_fn_mkdir_p ()
17201 case $as_dir in #(
17202 -*) as_dir=./$as_dir;;
17203 esac
17204 test -d "$as_dir" || eval $as_mkdir_p || {
17205 as_dirs=
17206 while :; do
17207 case $as_dir in #(
17208 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17209 *) as_qdir=$as_dir;;
17210 esac
17211 as_dirs="'$as_qdir' $as_dirs"
17212 as_dir=`$as_dirname -- "$as_dir" ||
17213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17214 X"$as_dir" : 'X\(//\)[^/]' \| \
17215 X"$as_dir" : 'X\(//\)$' \| \
17216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17217 $as_echo X"$as_dir" |
17218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17219 s//\1/
17222 /^X\(\/\/\)[^/].*/{
17223 s//\1/
17226 /^X\(\/\/\)$/{
17227 s//\1/
17230 /^X\(\/\).*/{
17231 s//\1/
17234 s/.*/./; q'`
17235 test -d "$as_dir" && break
17236 done
17237 test -z "$as_dirs" || eval "mkdir $as_dirs"
17238 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17241 } # as_fn_mkdir_p
17242 if mkdir -p . 2>/dev/null; then
17243 as_mkdir_p='mkdir -p "$as_dir"'
17244 else
17245 test -d ./-p && rmdir ./-p
17246 as_mkdir_p=false
17250 # as_fn_executable_p FILE
17251 # -----------------------
17252 # Test if FILE is an executable regular file.
17253 as_fn_executable_p ()
17255 test -f "$1" && test -x "$1"
17256 } # as_fn_executable_p
17257 as_test_x='test -x'
17258 as_executable_p=as_fn_executable_p
17260 # Sed expression to map a string onto a valid CPP name.
17261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17263 # Sed expression to map a string onto a valid variable name.
17264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17267 exec 6>&1
17268 ## ----------------------------------- ##
17269 ## Main body of $CONFIG_STATUS script. ##
17270 ## ----------------------------------- ##
17271 _ASEOF
17272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17275 # Save the log message, to keep $0 and so on meaningful, and to
17276 # report actual input values of CONFIG_FILES etc. instead of their
17277 # values after options handling.
17278 ac_log="
17279 This file was extended by aMule $as_me SVN, which was
17280 generated by GNU Autoconf 2.69. Invocation command line was
17282 CONFIG_FILES = $CONFIG_FILES
17283 CONFIG_HEADERS = $CONFIG_HEADERS
17284 CONFIG_LINKS = $CONFIG_LINKS
17285 CONFIG_COMMANDS = $CONFIG_COMMANDS
17286 $ $0 $@
17288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17291 _ACEOF
17293 case $ac_config_files in *"
17294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17295 esac
17297 case $ac_config_headers in *"
17298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17299 esac
17302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17303 # Files that config.status was made for.
17304 config_files="$ac_config_files"
17305 config_headers="$ac_config_headers"
17306 config_commands="$ac_config_commands"
17308 _ACEOF
17310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17311 ac_cs_usage="\
17312 \`$as_me' instantiates files and other configuration actions
17313 from templates according to the current configuration. Unless the files
17314 and actions are specified as TAGs, all are instantiated by default.
17316 Usage: $0 [OPTION]... [TAG]...
17318 -h, --help print this help, then exit
17319 -V, --version print version number and configuration settings, then exit
17320 --config print configuration, then exit
17321 -q, --quiet, --silent
17322 do not print progress messages
17323 -d, --debug don't remove temporary files
17324 --recheck update $as_me by reconfiguring in the same conditions
17325 --file=FILE[:TEMPLATE]
17326 instantiate the configuration file FILE
17327 --header=FILE[:TEMPLATE]
17328 instantiate the configuration header FILE
17330 Configuration files:
17331 $config_files
17333 Configuration headers:
17334 $config_headers
17336 Configuration commands:
17337 $config_commands
17339 Report bugs to <admin@amule.org>."
17341 _ACEOF
17342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17343 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17344 ac_cs_version="\\
17345 aMule config.status SVN
17346 configured by $0, generated by GNU Autoconf 2.69,
17347 with options \\"\$ac_cs_config\\"
17349 Copyright (C) 2012 Free Software Foundation, Inc.
17350 This config.status script is free software; the Free Software Foundation
17351 gives unlimited permission to copy, distribute and modify it."
17353 ac_pwd='$ac_pwd'
17354 srcdir='$srcdir'
17355 INSTALL='$INSTALL'
17356 MKDIR_P='$MKDIR_P'
17357 AWK='$AWK'
17358 test -n "\$AWK" || AWK=awk
17359 _ACEOF
17361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17362 # The default lists apply if the user does not specify any file.
17363 ac_need_defaults=:
17364 while test $# != 0
17366 case $1 in
17367 --*=?*)
17368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17370 ac_shift=:
17372 --*=)
17373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17374 ac_optarg=
17375 ac_shift=:
17378 ac_option=$1
17379 ac_optarg=$2
17380 ac_shift=shift
17382 esac
17384 case $ac_option in
17385 # Handling of the options.
17386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17387 ac_cs_recheck=: ;;
17388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17389 $as_echo "$ac_cs_version"; exit ;;
17390 --config | --confi | --conf | --con | --co | --c )
17391 $as_echo "$ac_cs_config"; exit ;;
17392 --debug | --debu | --deb | --de | --d | -d )
17393 debug=: ;;
17394 --file | --fil | --fi | --f )
17395 $ac_shift
17396 case $ac_optarg in
17397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17398 '') as_fn_error $? "missing file argument" ;;
17399 esac
17400 as_fn_append CONFIG_FILES " '$ac_optarg'"
17401 ac_need_defaults=false;;
17402 --header | --heade | --head | --hea )
17403 $ac_shift
17404 case $ac_optarg in
17405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17406 esac
17407 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17408 ac_need_defaults=false;;
17409 --he | --h)
17410 # Conflict between --help and --header
17411 as_fn_error $? "ambiguous option: \`$1'
17412 Try \`$0 --help' for more information.";;
17413 --help | --hel | -h )
17414 $as_echo "$ac_cs_usage"; exit ;;
17415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17417 ac_cs_silent=: ;;
17419 # This is an error.
17420 -*) as_fn_error $? "unrecognized option: \`$1'
17421 Try \`$0 --help' for more information." ;;
17423 *) as_fn_append ac_config_targets " $1"
17424 ac_need_defaults=false ;;
17426 esac
17427 shift
17428 done
17430 ac_configure_extra_args=
17432 if $ac_cs_silent; then
17433 exec 6>/dev/null
17434 ac_configure_extra_args="$ac_configure_extra_args --silent"
17437 _ACEOF
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 if \$ac_cs_recheck; then
17440 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17441 shift
17442 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17443 CONFIG_SHELL='$SHELL'
17444 export CONFIG_SHELL
17445 exec "\$@"
17448 _ACEOF
17449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17450 exec 5>>config.log
17452 echo
17453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17454 ## Running $as_me. ##
17455 _ASBOX
17456 $as_echo "$ac_log"
17457 } >&5
17459 _ACEOF
17460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17462 # INIT-COMMANDS
17464 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17465 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17466 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17467 # from automake.
17468 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17469 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17470 LINGUAS="${LINGUAS-%UNSET%}"
17472 denoiserlevel=$with_denoise_level
17474 _ACEOF
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478 # Handling of arguments.
17479 for ac_config_target in $ac_config_targets
17481 case $ac_config_target in
17482 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17483 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17484 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17485 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17486 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17487 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17488 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17489 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17490 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17491 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17492 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17493 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17494 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17495 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17496 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17497 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17498 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17499 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17500 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17501 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17502 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17503 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17504 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17505 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17506 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17507 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17508 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17509 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17510 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17511 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17512 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17513 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17514 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17515 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17516 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17517 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17518 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17519 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17522 esac
17523 done
17526 # If the user did not use the arguments to specify the items to instantiate,
17527 # then the envvar interface is used. Set only those that are not.
17528 # We use the long form for the default assignment because of an extremely
17529 # bizarre bug on SunOS 4.1.3.
17530 if $ac_need_defaults; then
17531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17536 # Have a temporary directory for convenience. Make it in the build tree
17537 # simply because there is no reason against having it here, and in addition,
17538 # creating and moving files from /tmp can sometimes cause problems.
17539 # Hook for its removal unless debugging.
17540 # Note that there is a small window in which the directory will not be cleaned:
17541 # after its creation but before its name has been assigned to `$tmp'.
17542 $debug ||
17544 tmp= ac_tmp=
17545 trap 'exit_status=$?
17546 : "${ac_tmp:=$tmp}"
17547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17549 trap 'as_fn_exit 1' 1 2 13 15
17551 # Create a (secure) tmp directory for tmp files.
17554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17555 test -d "$tmp"
17556 } ||
17558 tmp=./conf$$-$RANDOM
17559 (umask 077 && mkdir "$tmp")
17560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17561 ac_tmp=$tmp
17563 # Set up the scripts for CONFIG_FILES section.
17564 # No need to generate them if there are no CONFIG_FILES.
17565 # This happens for instance with `./config.status config.h'.
17566 if test -n "$CONFIG_FILES"; then
17569 ac_cr=`echo X | tr X '\015'`
17570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17571 # But we know of no other shell where ac_cr would be empty at this
17572 # point, so we can use a bashism as a fallback.
17573 if test "x$ac_cr" = x; then
17574 eval ac_cr=\$\'\\r\'
17576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17578 ac_cs_awk_cr='\\r'
17579 else
17580 ac_cs_awk_cr=$ac_cr
17583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17584 _ACEOF
17588 echo "cat >conf$$subs.awk <<_ACEOF" &&
17589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17590 echo "_ACEOF"
17591 } >conf$$subs.sh ||
17592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17594 ac_delim='%!_!# '
17595 for ac_last_try in false false false false false :; do
17596 . ./conf$$subs.sh ||
17597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17600 if test $ac_delim_n = $ac_delim_num; then
17601 break
17602 elif $ac_last_try; then
17603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17604 else
17605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17607 done
17608 rm -f conf$$subs.sh
17610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17612 _ACEOF
17613 sed -n '
17615 s/^/S["/; s/!.*/"]=/
17618 s/^[^!]*!//
17619 :repl
17620 t repl
17621 s/'"$ac_delim"'$//
17622 t delim
17625 s/\(.\{148\}\)..*/\1/
17626 t more1
17627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17630 b repl
17631 :more1
17632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17635 s/.\{148\}//
17636 t nl
17637 :delim
17639 s/\(.\{148\}\)..*/\1/
17640 t more2
17641 s/["\\]/\\&/g; s/^/"/; s/$/"/
17644 :more2
17645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17648 s/.\{148\}//
17649 t delim
17650 ' <conf$$subs.awk | sed '
17651 /^[^""]/{
17653 s/\n//
17655 ' >>$CONFIG_STATUS || ac_write_fail=1
17656 rm -f conf$$subs.awk
17657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17658 _ACAWK
17659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17660 for (key in S) S_is_set[key] = 1
17661 FS = "\a"
17665 line = $ 0
17666 nfields = split(line, field, "@")
17667 substed = 0
17668 len = length(field[1])
17669 for (i = 2; i < nfields; i++) {
17670 key = field[i]
17671 keylen = length(key)
17672 if (S_is_set[key]) {
17673 value = S[key]
17674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17675 len += length(value) + length(field[++i])
17676 substed = 1
17677 } else
17678 len += 1 + keylen
17681 print line
17684 _ACAWK
17685 _ACEOF
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17689 else
17691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17693 _ACEOF
17695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17697 # trailing colons and then remove the whole line if VPATH becomes empty
17698 # (actually we leave an empty line to preserve line numbers).
17699 if test "x$srcdir" = x.; then
17700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17702 s///
17703 s/^/:/
17704 s/[ ]*$/:/
17705 s/:\$(srcdir):/:/g
17706 s/:\${srcdir}:/:/g
17707 s/:@srcdir@:/:/g
17708 s/^:*//
17709 s/:*$//
17711 s/\(=[ ]*\).*/\1/
17713 s/\n//
17714 s/^[^=]*=[ ]*$//
17718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17719 fi # test -n "$CONFIG_FILES"
17721 # Set up the scripts for CONFIG_HEADERS section.
17722 # No need to generate them if there are no CONFIG_HEADERS.
17723 # This happens for instance with `./config.status Makefile'.
17724 if test -n "$CONFIG_HEADERS"; then
17725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17726 BEGIN {
17727 _ACEOF
17729 # Transform confdefs.h into an awk script `defines.awk', embedded as
17730 # here-document in config.status, that substitutes the proper values into
17731 # config.h.in to produce config.h.
17733 # Create a delimiter string that does not exist in confdefs.h, to ease
17734 # handling of long lines.
17735 ac_delim='%!_!# '
17736 for ac_last_try in false false :; do
17737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17738 if test -z "$ac_tt"; then
17739 break
17740 elif $ac_last_try; then
17741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17742 else
17743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17745 done
17747 # For the awk script, D is an array of macro values keyed by name,
17748 # likewise P contains macro parameters if any. Preserve backslash
17749 # newline sequences.
17751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17752 sed -n '
17753 s/.\{148\}/&'"$ac_delim"'/g
17754 t rset
17755 :rset
17756 s/^[ ]*#[ ]*define[ ][ ]*/ /
17757 t def
17759 :def
17760 s/\\$//
17761 t bsnl
17762 s/["\\]/\\&/g
17763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17764 D["\1"]=" \3"/p
17765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17767 :bsnl
17768 s/["\\]/\\&/g
17769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17770 D["\1"]=" \3\\\\\\n"\\/p
17771 t cont
17772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17773 t cont
17775 :cont
17777 s/.\{148\}/&'"$ac_delim"'/g
17778 t clear
17779 :clear
17780 s/\\$//
17781 t bsnlc
17782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17784 :bsnlc
17785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17786 b cont
17787 ' <confdefs.h | sed '
17788 s/'"$ac_delim"'/"\\\
17789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17792 for (key in D) D_is_set[key] = 1
17793 FS = "\a"
17795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17796 line = \$ 0
17797 split(line, arg, " ")
17798 if (arg[1] == "#") {
17799 defundef = arg[2]
17800 mac1 = arg[3]
17801 } else {
17802 defundef = substr(arg[1], 2)
17803 mac1 = arg[2]
17805 split(mac1, mac2, "(") #)
17806 macro = mac2[1]
17807 prefix = substr(line, 1, index(line, defundef) - 1)
17808 if (D_is_set[macro]) {
17809 # Preserve the white space surrounding the "#".
17810 print prefix "define", macro P[macro] D[macro]
17811 next
17812 } else {
17813 # Replace #undef with comments. This is necessary, for example,
17814 # in the case of _POSIX_SOURCE, which is predefined and required
17815 # on some systems where configure will not decide to define it.
17816 if (defundef == "undef") {
17817 print "/*", prefix defundef, macro, "*/"
17818 next
17822 { print }
17823 _ACAWK
17824 _ACEOF
17825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17827 fi # test -n "$CONFIG_HEADERS"
17830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17831 shift
17832 for ac_tag
17834 case $ac_tag in
17835 :[FHLC]) ac_mode=$ac_tag; continue;;
17836 esac
17837 case $ac_mode$ac_tag in
17838 :[FHL]*:*);;
17839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17840 :[FH]-) ac_tag=-:-;;
17841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17842 esac
17843 ac_save_IFS=$IFS
17844 IFS=:
17845 set x $ac_tag
17846 IFS=$ac_save_IFS
17847 shift
17848 ac_file=$1
17849 shift
17851 case $ac_mode in
17852 :L) ac_source=$1;;
17853 :[FH])
17854 ac_file_inputs=
17855 for ac_f
17857 case $ac_f in
17858 -) ac_f="$ac_tmp/stdin";;
17859 *) # Look for the file first in the build tree, then in the source tree
17860 # (if the path is not absolute). The absolute path cannot be DOS-style,
17861 # because $ac_f cannot contain `:'.
17862 test -f "$ac_f" ||
17863 case $ac_f in
17864 [\\/$]*) false;;
17865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17866 esac ||
17867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17868 esac
17869 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17870 as_fn_append ac_file_inputs " '$ac_f'"
17871 done
17873 # Let's still pretend it is `configure' which instantiates (i.e., don't
17874 # use $as_me), people would be surprised to read:
17875 # /* config.h. Generated by config.status. */
17876 configure_input='Generated from '`
17877 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17878 `' by configure.'
17879 if test x"$ac_file" != x-; then
17880 configure_input="$ac_file. $configure_input"
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17882 $as_echo "$as_me: creating $ac_file" >&6;}
17884 # Neutralize special characters interpreted by sed in replacement strings.
17885 case $configure_input in #(
17886 *\&* | *\|* | *\\* )
17887 ac_sed_conf_input=`$as_echo "$configure_input" |
17888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17889 *) ac_sed_conf_input=$configure_input;;
17890 esac
17892 case $ac_tag in
17893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17895 esac
17897 esac
17899 ac_dir=`$as_dirname -- "$ac_file" ||
17900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17901 X"$ac_file" : 'X\(//\)[^/]' \| \
17902 X"$ac_file" : 'X\(//\)$' \| \
17903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17904 $as_echo X"$ac_file" |
17905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17906 s//\1/
17909 /^X\(\/\/\)[^/].*/{
17910 s//\1/
17913 /^X\(\/\/\)$/{
17914 s//\1/
17917 /^X\(\/\).*/{
17918 s//\1/
17921 s/.*/./; q'`
17922 as_dir="$ac_dir"; as_fn_mkdir_p
17923 ac_builddir=.
17925 case "$ac_dir" in
17926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17929 # A ".." for each directory in $ac_dir_suffix.
17930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17931 case $ac_top_builddir_sub in
17932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17934 esac ;;
17935 esac
17936 ac_abs_top_builddir=$ac_pwd
17937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17938 # for backward compatibility:
17939 ac_top_builddir=$ac_top_build_prefix
17941 case $srcdir in
17942 .) # We are building in place.
17943 ac_srcdir=.
17944 ac_top_srcdir=$ac_top_builddir_sub
17945 ac_abs_top_srcdir=$ac_pwd ;;
17946 [\\/]* | ?:[\\/]* ) # Absolute name.
17947 ac_srcdir=$srcdir$ac_dir_suffix;
17948 ac_top_srcdir=$srcdir
17949 ac_abs_top_srcdir=$srcdir ;;
17950 *) # Relative name.
17951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17952 ac_top_srcdir=$ac_top_build_prefix$srcdir
17953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17954 esac
17955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17958 case $ac_mode in
17961 # CONFIG_FILE
17964 case $INSTALL in
17965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17967 esac
17968 ac_MKDIR_P=$MKDIR_P
17969 case $MKDIR_P in
17970 [\\/$]* | ?:[\\/]* ) ;;
17971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17972 esac
17973 _ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 # If the template does not know about datarootdir, expand it.
17977 # FIXME: This hack should be removed a few years after 2.60.
17978 ac_datarootdir_hack=; ac_datarootdir_seen=
17979 ac_sed_dataroot='
17980 /datarootdir/ {
17984 /@datadir@/p
17985 /@docdir@/p
17986 /@infodir@/p
17987 /@localedir@/p
17988 /@mandir@/p'
17989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17990 *datarootdir*) ac_datarootdir_seen=yes;;
17991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17993 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17994 _ACEOF
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 ac_datarootdir_hack='
17997 s&@datadir@&$datadir&g
17998 s&@docdir@&$docdir&g
17999 s&@infodir@&$infodir&g
18000 s&@localedir@&$localedir&g
18001 s&@mandir@&$mandir&g
18002 s&\\\${datarootdir}&$datarootdir&g' ;;
18003 esac
18004 _ACEOF
18006 # Neutralize VPATH when `$srcdir' = `.'.
18007 # Shell code in configure.ac might set extrasub.
18008 # FIXME: do we really want to maintain this feature?
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010 ac_sed_extra="$ac_vpsub
18011 $extrasub
18012 _ACEOF
18013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18016 s|@configure_input@|$ac_sed_conf_input|;t t
18017 s&@top_builddir@&$ac_top_builddir_sub&;t t
18018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18019 s&@srcdir@&$ac_srcdir&;t t
18020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18021 s&@top_srcdir@&$ac_top_srcdir&;t t
18022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18023 s&@builddir@&$ac_builddir&;t t
18024 s&@abs_builddir@&$ac_abs_builddir&;t t
18025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18026 s&@INSTALL@&$ac_INSTALL&;t t
18027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18028 $ac_datarootdir_hack
18030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18038 which seems to be undefined. Please make sure it is defined" >&5
18039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18040 which seems to be undefined. Please make sure it is defined" >&2;}
18042 rm -f "$ac_tmp/stdin"
18043 case $ac_file in
18044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18046 esac \
18047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18051 # CONFIG_HEADER
18053 if test x"$ac_file" != x-; then
18055 $as_echo "/* $configure_input */" \
18056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18057 } >"$ac_tmp/config.h" \
18058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18062 else
18063 rm -f "$ac_file"
18064 mv "$ac_tmp/config.h" "$ac_file" \
18065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18067 else
18068 $as_echo "/* $configure_input */" \
18069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18070 || as_fn_error $? "could not create -" "$LINENO" 5
18072 # Compute "$ac_file"'s index in $config_headers.
18073 _am_arg="$ac_file"
18074 _am_stamp_count=1
18075 for _am_header in $config_headers :; do
18076 case $_am_header in
18077 $_am_arg | $_am_arg:* )
18078 break ;;
18080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18081 esac
18082 done
18083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18085 X"$_am_arg" : 'X\(//\)[^/]' \| \
18086 X"$_am_arg" : 'X\(//\)$' \| \
18087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18088 $as_echo X"$_am_arg" |
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18090 s//\1/
18093 /^X\(\/\/\)[^/].*/{
18094 s//\1/
18097 /^X\(\/\/\)$/{
18098 s//\1/
18101 /^X\(\/\).*/{
18102 s//\1/
18105 s/.*/./; q'`/stamp-h$_am_stamp_count
18108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18109 $as_echo "$as_me: executing $ac_file commands" >&6;}
18111 esac
18114 case $ac_file$ac_mode in
18115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18116 # Older Autoconf quotes --file arguments for eval, but not when files
18117 # are listed without --file. Let's play safe and only enable the eval
18118 # if we detect the quoting.
18119 case $CONFIG_FILES in
18120 *\'*) eval set x "$CONFIG_FILES" ;;
18121 *) set x $CONFIG_FILES ;;
18122 esac
18123 shift
18124 for mf
18126 # Strip MF so we end up with the name of the file.
18127 mf=`echo "$mf" | sed -e 's/:.*$//'`
18128 # Check whether this is an Automake generated Makefile or not.
18129 # We used to match only the files named 'Makefile.in', but
18130 # some people rename them; so instead we look at the file content.
18131 # Grep'ing the first line is not enough: some people post-process
18132 # each Makefile.in and add a new line on top of each file to say so.
18133 # Grep'ing the whole file is not good either: AIX grep has a line
18134 # limit of 2048, but all sed's we know have understand at least 4000.
18135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18136 dirpart=`$as_dirname -- "$mf" ||
18137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18138 X"$mf" : 'X\(//\)[^/]' \| \
18139 X"$mf" : 'X\(//\)$' \| \
18140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18141 $as_echo X"$mf" |
18142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18143 s//\1/
18146 /^X\(\/\/\)[^/].*/{
18147 s//\1/
18150 /^X\(\/\/\)$/{
18151 s//\1/
18154 /^X\(\/\).*/{
18155 s//\1/
18158 s/.*/./; q'`
18159 else
18160 continue
18162 # Extract the definition of DEPDIR, am__include, and am__quote
18163 # from the Makefile without running 'make'.
18164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18165 test -z "$DEPDIR" && continue
18166 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18167 test -z "$am__include" && continue
18168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18169 # Find all dependency output files, they are included files with
18170 # $(DEPDIR) in their names. We invoke sed twice because it is the
18171 # simplest approach to changing $(DEPDIR) to its actual value in the
18172 # expansion.
18173 for file in `sed -n "
18174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18176 # Make sure the directory exists.
18177 test -f "$dirpart/$file" && continue
18178 fdir=`$as_dirname -- "$file" ||
18179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18180 X"$file" : 'X\(//\)[^/]' \| \
18181 X"$file" : 'X\(//\)$' \| \
18182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18183 $as_echo X"$file" |
18184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18185 s//\1/
18188 /^X\(\/\/\)[^/].*/{
18189 s//\1/
18192 /^X\(\/\/\)$/{
18193 s//\1/
18196 /^X\(\/\).*/{
18197 s//\1/
18200 s/.*/./; q'`
18201 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18202 # echo "creating $dirpart/$file"
18203 echo '# dummy' > "$dirpart/$file"
18204 done
18205 done
18208 "default-1":C)
18209 for ac_file in $CONFIG_FILES; do
18210 # Support "outfile[:infile[:infile...]]"
18211 case "$ac_file" in
18212 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18213 esac
18214 # PO directories have a Makefile.in generated from Makefile.in.in.
18215 case "$ac_file" in */Makefile.in)
18216 # Adjust a relative srcdir.
18217 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18218 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18219 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18220 # In autoconf-2.13 it is called $ac_given_srcdir.
18221 # In autoconf-2.50 it is called $srcdir.
18222 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18223 case "$ac_given_srcdir" in
18224 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18225 /*) top_srcdir="$ac_given_srcdir" ;;
18226 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18227 esac
18228 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18229 rm -f "$ac_dir/POTFILES"
18230 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18231 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18232 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18233 # on $ac_dir but don't depend on user-specified configuration
18234 # parameters.
18235 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18236 # The LINGUAS file contains the set of available languages.
18237 if test -n "$ALL_LINGUAS"; then
18238 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18240 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18241 # Hide the ALL_LINGUAS assigment from automake.
18242 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18244 case "$ac_given_srcdir" in
18245 .) srcdirpre= ;;
18246 *) srcdirpre='$(srcdir)/' ;;
18247 esac
18248 POFILES=
18249 GMOFILES=
18250 UPDATEPOFILES=
18251 DUMMYPOFILES=
18252 for lang in $ALL_LINGUAS; do
18253 POFILES="$POFILES $srcdirpre$lang.po"
18254 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18255 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18256 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18257 done
18258 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18259 # environment variable.
18260 INST_LINGUAS=
18261 if test -n "$ALL_LINGUAS"; then
18262 for presentlang in $ALL_LINGUAS; do
18263 useit=no
18264 if test "%UNSET%" != "$LINGUAS"; then
18265 desiredlanguages="$LINGUAS"
18266 else
18267 desiredlanguages="$ALL_LINGUAS"
18269 for desiredlang in $desiredlanguages; do
18270 # Use the presentlang catalog if desiredlang is
18271 # a. equal to presentlang, or
18272 # b. a variant of presentlang (because in this case,
18273 # presentlang can be used as a fallback for messages
18274 # which are not translated in the desiredlang catalog).
18275 case "$desiredlang" in
18276 "$presentlang"*) useit=yes;;
18277 esac
18278 done
18279 if test $useit = yes; then
18280 INST_LINGUAS="$INST_LINGUAS $presentlang"
18282 done
18284 CATALOGS=
18285 if test -n "$INST_LINGUAS"; then
18286 for lang in $INST_LINGUAS; do
18287 CATALOGS="$CATALOGS $lang.gmo"
18288 done
18290 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18291 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"
18292 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18293 if test -f "$f"; then
18294 case "$f" in
18295 *.orig | *.bak | *~) ;;
18296 *) cat "$f" >> "$ac_dir/Makefile" ;;
18297 esac
18299 done
18302 esac
18303 done ;;
18304 "denoiser":C) if test $denoiserlevel -gt 0; then
18305 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18306 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" \
18307 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18308 for i in `find . -name 'Makefile' -print`; do
18309 if test -n "`head -n 1 $i | grep '^#'`"; then
18310 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18312 done
18313 fi ;;
18315 esac
18316 done # for ac_tag
18319 as_fn_exit 0
18320 _ACEOF
18321 ac_clean_files=$ac_clean_files_save
18323 test $ac_write_fail = 0 ||
18324 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18327 # configure is writing to config.log, and then calls config.status.
18328 # config.status does its own redirection, appending to config.log.
18329 # Unfortunately, on DOS this fails, as config.log is still kept open
18330 # by configure, so config.status won't be able to write to it; its
18331 # output is simply discarded. So we exec the FD to /dev/null,
18332 # effectively closing config.log, so it can be properly (re)opened and
18333 # appended to by config.status. When coming back to configure, we
18334 # need to make the FD available again.
18335 if test "$no_create" != yes; then
18336 ac_cs_success=:
18337 ac_config_status_args=
18338 test "$silent" = yes &&
18339 ac_config_status_args="$ac_config_status_args --quiet"
18340 exec 5>/dev/null
18341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18342 exec 5>>config.log
18343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18344 # would make configure fail if this is the last instruction.
18345 $ac_cs_success || as_fn_exit 1
18347 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18349 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18353 if test -n "$svndate"; then :
18354 SVN_REVISION=" ($svndate)"
18355 else
18356 SVN_REVISION=
18359 echo
18360 echo
18361 echo " Configure script has finished system check."
18362 echo
18363 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18364 echo
18365 echo " aMule enabled options:"
18366 echo
18367 echo " **** aMule Core ****"
18368 echo " Prefix where aMule should be installed? ${prefix:-none}"
18369 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18370 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18371 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18372 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18373 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18374 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18375 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18376 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18377 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18379 echo
18380 echo " **** aMule TextClient ****"
18381 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18382 echo
18383 echo " **** aMule WebServer ****"
18384 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18385 echo
18386 echo " **** aMule ED2K Links Handler ****"
18387 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18388 echo
18389 echo " **** aMuleLinkCreator ****"
18390 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18391 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18392 echo
18393 echo " **** aMule Statistics ****"
18394 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18395 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18396 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18397 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18399 echo
18400 echo " **** General Libraries and Tools ****"
18401 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18402 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18403 echo " Libraries aMule will use to build:"
18404 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 :
18406 wxinfo="$WX_PORT"
18407 if test $WX_DEBUG -eq 1; then :
18408 wxinfo="$wxinfo,debug"
18410 if test $WX_SHARED -eq 1; then :
18411 wxinfo="$wxinfo,shared"
18412 else
18413 wxinfo="$wxinfo,static"
18415 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18418 if test ${with_boost:-no} != no; then :
18419 if test ${with_boost:-no} = disabled; then
18420 echo " boost Not detected"
18421 elif test ${boost_cv_inc_path:-yes} != yes; then
18422 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18423 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18428 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18429 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18431 if test ${enable_upnp:-yes} = yes; then :
18433 if test -n "$with_libupnp_prefix"; then :
18434 libupnp_place=" (in $with_libupnp_prefix)"
18436 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18439 if test ${enable_nls:-yes} = yes; then
18440 if test x$USE_NLS = xno; then :
18441 libintl_found="Not detected"
18442 else
18443 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18444 libintl_found="included"
18445 else
18446 libintl_found="system"
18449 echo " libintl $libintl_found"
18451 if test ${enable_geoip:-no} = yes; then :
18452 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18453 geoip_style=system
18454 else
18455 geoip_style=user
18457 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18458 echo " libGeoIP ${geoip_style}"
18461 if test ${enable_webserver:-no} = yes; then :
18462 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18464 if test ${enable_cas:-no} = yes; then :
18465 echo " libgd ${GDLIB_VERSION:-Not detected}"
18467 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 :
18468 echo " zlib ${ZLIB_VERSION:-Not detected}"
18470 if test ${enable_plasmamule:-no} = yes; then :
18471 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18472 echo " qt-core-libs ${QT_CORE_LIBS}"
18473 echo " qt-gui-libs ${QT_GUI_LIBS}"
18474 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18475 echo " kde-headers ${KDE_HEADER_DIR}"
18476 echo " kde-services-path ${KDE_SERVICE_PATH}"
18477 echo " kde-module-path ${KDE_MODULE_PATH}"
18478 echo " kde-icon-path ${KDE_ICON_PATH}"
18479 echo " kde-mime-path ${KDE_MIME_PATH}"
18480 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18483 if test ${_mule_has_warnings:-no} = yes; then
18484 echo ""
18485 echo ""
18486 echo " *** Warnings during configuration ***"
18488 if test ${_mule_warning_0:-no} = yes; then
18489 cat <<_MULEEOT
18491 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18492 Please check that gdlib-config is in your default path, check out
18493 LD_LIBRARY_PATH or equivalent variable.
18494 Or this might also be that your gdlib-config has other name.
18495 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18496 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18497 If you use compiled packages check if you have devel pack installed.
18498 To download the latest version check http://www.boutell.com/gd for sources.
18499 _MULEEOT
18501 if test ${_mule_warning_1:-no} = yes; then
18502 cat <<_MULEEOT
18504 * libpng >= 1.2.0 not found.
18505 amuleweb will be compiled but file download progress bar images will NOT be
18506 generated.
18507 _MULEEOT
18509 if test ${_mule_warning_2:-no} = yes; then
18510 cat <<_MULEEOT
18512 * File::Copy perl module is required by the mldonkey_importer script.
18513 If you want to use this script please install File::Copy from CPAN.
18514 _MULEEOT
18516 if test ${_mule_warning_3:-no} = yes; then
18517 cat <<_MULEEOT
18519 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18520 _MULEEOT
18522 if test ${_mule_warning_4:-no} = yes; then
18523 cat <<_MULEEOT
18525 * GeoIP support has been disabled because the GeoIP libraries were not found
18526 _MULEEOT
18528 if test ${_mule_warning_5:-no} = yes; then
18529 cat <<_MULEEOT
18531 * GeoIP support has been disabled because the GeoIP header files were not
18532 found
18533 _MULEEOT
18535 if test ${_mule_warning_6:-no} = yes; then
18536 cat <<_MULEEOT
18538 * UPnP code has been disabled because ${libupnp_error}.
18539 _MULEEOT
18541 if test ${_mule_warning_7:-no} = yes; then
18542 cat <<_MULEEOT
18544 * Cross-compilation detected, so exception handling cannot be tested.
18545 Note that broken exception handling in your compiler may lead to unexpected
18546 crashes.
18547 _MULEEOT
18549 if test ${_mule_warning_8:-no} = yes; then
18550 cat <<_MULEEOT
18552 * Boost support has been disabled because Boost.System not found
18553 _MULEEOT
18555 if test ${_mule_warning_9:-no} = yes; then
18556 cat <<_MULEEOT
18558 * Boost support has been disabled because Boost.Asio not found
18559 _MULEEOT
18561 if test ${_mule_warning_10:-no} = yes; then
18562 cat <<_MULEEOT
18564 * Boost support has been disabled because Boost.Asio not found
18565 _MULEEOT
18567 if test ${_mule_warning_11:-no} = yes; then
18568 cat <<_MULEEOT
18570 * Boost support has been disabled because of insufficient Boost version.
18571 _MULEEOT
18573 if test ${_mule_warning_12:-no} = yes; then
18574 cat <<_MULEEOT
18576 * configure cannot check whether malloc() and realloc() are GNU libc
18577 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18578 configure with the --without-gnu-malloc switch.
18579 _MULEEOT
18581 if test ${_mule_warning_13:-no} = yes; then
18582 cat <<_MULEEOT
18584 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18585 support.
18586 _MULEEOT
18588 if test ${_mule_warning_14:-no} = yes; then
18589 cat <<_MULEEOT
18591 * Cannot link to the library containing the bfd functions.
18592 _MULEEOT
18594 if test ${_mule_warning_15:-no} = yes; then
18595 cat <<_MULEEOT
18597 * bfd.h not found or unusable, please install binutils development package if
18598 you are a developer or want to help testing aMule
18599 _MULEEOT