Updated autotools
[amule.git] / configure
blobf60db24a42f9b52d0fdda8552c887787801643f9
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 (EXPERIMENTAL)
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)
1680 --with-libupnp-prefix=PREFIX
1681 UPnP library location
1682 --with-crypto-prefix=PREFIX
1683 prefix where crypto++ is installed
1684 --with-boost[=DIR] use Boost.Asio for networking
1685 --with-language=<langs> Specify a comma-separated list of languages you want
1686 to have installed. See po/LINGUAS for available
1687 languages
1688 --with-gnu-ld assume the C compiler uses GNU ld default=no
1689 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1690 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1691 --with-included-gettext use the GNU gettext library included here
1692 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1693 --without-libintl-prefix don't search for libintl in includedir and libdir
1694 --with-denoise-level=<level>
1695 Specifies denoising level (0-4):
1696 0 - Do nothing
1697 4 - Suppress all normal output
1698 (for more information see
1699 src/utils/scripts/denoiser.rules)
1701 --with-ccache-prefix=PREFIX
1702 prefix where ccache is installed
1704 Some influential environment variables:
1705 CXX C++ compiler command
1706 CXXFLAGS C++ compiler flags
1707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1708 nonstandard directory <lib dir>
1709 LIBS libraries to pass to the linker, e.g. -l<library>
1710 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1711 you have headers in a nonstandard directory <include dir>
1712 CXXCPP C++ preprocessor
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 CPP C preprocessor
1716 YACC The `Yet Another Compiler Compiler' implementation to use.
1717 Defaults to the first program found out of: `bison -y', `byacc',
1718 `yacc'.
1719 YFLAGS The list of arguments that will be passed by default to $YACC.
1720 This script will default YFLAGS to the empty string to avoid a
1721 default value of `-d' given by some make applications.
1722 PKG_CONFIG path to pkg-config utility
1723 RC Resource Compiler
1724 RCFLAGS Resource Compiler Flags
1725 BOOST_ROOT Location of Boost installation
1727 Use these variables to override the choices made by `configure' or to help
1728 it to find libraries and programs with nonstandard names/locations.
1730 Report bugs to <admin@amule.org>.
1731 _ACEOF
1732 ac_status=$?
1735 if test "$ac_init_help" = "recursive"; then
1736 # If there are subdirs, report their specific --help.
1737 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1738 test -d "$ac_dir" ||
1739 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1740 continue
1741 ac_builddir=.
1743 case "$ac_dir" in
1744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1747 # A ".." for each directory in $ac_dir_suffix.
1748 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1749 case $ac_top_builddir_sub in
1750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1752 esac ;;
1753 esac
1754 ac_abs_top_builddir=$ac_pwd
1755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1756 # for backward compatibility:
1757 ac_top_builddir=$ac_top_build_prefix
1759 case $srcdir in
1760 .) # We are building in place.
1761 ac_srcdir=.
1762 ac_top_srcdir=$ac_top_builddir_sub
1763 ac_abs_top_srcdir=$ac_pwd ;;
1764 [\\/]* | ?:[\\/]* ) # Absolute name.
1765 ac_srcdir=$srcdir$ac_dir_suffix;
1766 ac_top_srcdir=$srcdir
1767 ac_abs_top_srcdir=$srcdir ;;
1768 *) # Relative name.
1769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1770 ac_top_srcdir=$ac_top_build_prefix$srcdir
1771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1772 esac
1773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775 cd "$ac_dir" || { ac_status=$?; continue; }
1776 # Check for guested configure.
1777 if test -f "$ac_srcdir/configure.gnu"; then
1778 echo &&
1779 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1780 elif test -f "$ac_srcdir/configure"; then
1781 echo &&
1782 $SHELL "$ac_srcdir/configure" --help=recursive
1783 else
1784 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1785 fi || ac_status=$?
1786 cd "$ac_pwd" || { ac_status=$?; break; }
1787 done
1790 test -n "$ac_init_help" && exit $ac_status
1791 if $ac_init_version; then
1792 cat <<\_ACEOF
1793 aMule configure SVN
1794 generated by GNU Autoconf 2.69
1796 Copyright (C) 2012 Free Software Foundation, Inc.
1797 This configure script is free software; the Free Software Foundation
1798 gives unlimited permission to copy, distribute and modify it.
1799 _ACEOF
1800 exit
1803 ## ------------------------ ##
1804 ## Autoconf initialization. ##
1805 ## ------------------------ ##
1807 # ac_fn_cxx_try_compile LINENO
1808 # ----------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=1
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_cxx_try_compile
1845 # ac_fn_cxx_try_cpp LINENO
1846 # ------------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_cxx_try_cpp ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } > conftest.i && {
1867 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=1
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_cxx_try_cpp
1882 # ac_fn_c_try_compile LINENO
1883 # --------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_compile
1920 # ac_fn_c_try_cpp LINENO
1921 # ----------------------
1922 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_cpp ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_cpp conftest.$ac_ext"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } > conftest.i && {
1942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1943 test ! -s conftest.err
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 ac_retval=1
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_cpp
1957 # ac_fn_c_try_link LINENO
1958 # -----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_c_try_link ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext conftest$ac_exeext
1964 if { { ac_try="$ac_link"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>conftest.err
1972 ac_status=$?
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_c_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest$ac_exeext && {
1983 test "$cross_compiling" = yes ||
1984 test -x conftest$ac_exeext
1985 }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=1
1993 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1994 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1995 # interfere with the next link command; also delete a directory that is
1996 # left behind by Apple's compiler. We do this before executing the actions.
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2001 } # ac_fn_c_try_link
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ------------------------------ ##
2074 ## Report this to admin@amule.org ##
2075 ## ------------------------------ ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_header_mongrel
2094 # ac_fn_c_try_run LINENO
2095 # ----------------------
2096 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2097 # that executables *can* be run.
2098 ac_fn_c_try_run ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_link"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_link") 2>&5
2109 ac_status=$?
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2112 { { case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_try") 2>&5
2119 ac_status=$?
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; }; }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: program exited with status $ac_status" >&5
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2128 ac_retval=$ac_status
2130 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_c_try_run
2136 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2137 # -------------------------------------------------------
2138 # Tests whether HEADER exists and can be compiled using the include files in
2139 # INCLUDES, setting the cache variable VAR accordingly.
2140 ac_fn_c_check_header_compile ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 #include <$2>
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_header_compile
2167 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168 # -------------------------------------------
2169 # Tests whether TYPE exists after having included INCLUDES, setting cache
2170 # variable VAR accordingly.
2171 ac_fn_c_check_type ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 eval "$3=no"
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2184 main ()
2186 if (sizeof ($2))
2187 return 0;
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2197 main ()
2199 if (sizeof (($2)))
2200 return 0;
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2207 else
2208 eval "$3=yes"
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 } # ac_fn_c_check_type
2221 # ac_fn_cxx_try_link LINENO
2222 # -------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_cxx_try_link ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext conftest$ac_exeext
2228 if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_cxx_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest$ac_exeext && {
2247 test "$cross_compiling" = yes ||
2248 test -x conftest$ac_exeext
2249 }; then :
2250 ac_retval=0
2251 else
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_retval=1
2257 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259 # interfere with the next link command; also delete a directory that is
2260 # left behind by Apple's compiler. We do this before executing the actions.
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_cxx_try_link
2267 # ac_fn_cxx_try_run LINENO
2268 # ------------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2270 # that executables *can* be run.
2271 ac_fn_cxx_try_run ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }; then :
2295 ac_retval=0
2296 else
2297 $as_echo "$as_me: program exited with status $ac_status" >&5
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2301 ac_retval=$ac_status
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2307 } # ac_fn_cxx_try_run
2309 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2310 # ---------------------------------------------------------
2311 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2312 # the include files in INCLUDES and setting the cache variable VAR
2313 # accordingly.
2314 ac_fn_cxx_check_header_mongrel ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 if eval \${$3+:} false; then :
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319 $as_echo_n "checking for $2... " >&6; }
2320 if eval \${$3+:} false; then :
2321 $as_echo_n "(cached) " >&6
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 else
2327 # Is the header compilable?
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2329 $as_echo_n "checking $2 usability... " >&6; }
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2333 #include <$2>
2334 _ACEOF
2335 if ac_fn_cxx_try_compile "$LINENO"; then :
2336 ac_header_compiler=yes
2337 else
2338 ac_header_compiler=no
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2342 $as_echo "$ac_header_compiler" >&6; }
2344 # Is the header present?
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2346 $as_echo_n "checking $2 presence... " >&6; }
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 #include <$2>
2350 _ACEOF
2351 if ac_fn_cxx_try_cpp "$LINENO"; then :
2352 ac_header_preproc=yes
2353 else
2354 ac_header_preproc=no
2356 rm -f conftest.err conftest.i conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2358 $as_echo "$ac_header_preproc" >&6; }
2360 # So? What about this header?
2361 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2362 yes:no: )
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2364 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2366 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 no:yes:* )
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2370 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2372 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2374 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2376 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2378 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2379 ( $as_echo "## ------------------------------ ##
2380 ## Report this to admin@amule.org ##
2381 ## ------------------------------ ##"
2382 ) | sed "s/^/$as_me: WARNING: /" >&2
2384 esac
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if eval \${$3+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=\$ac_header_compiler"
2392 eval ac_res=\$$3
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_cxx_check_header_mongrel
2400 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2401 # ---------------------------------------------
2402 # Tests whether TYPE exists after having included INCLUDES, setting cache
2403 # variable VAR accordingly.
2404 ac_fn_cxx_check_type ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 $as_echo_n "checking for $2... " >&6; }
2409 if eval \${$3+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 eval "$3=no"
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2417 main ()
2419 if (sizeof ($2))
2420 return 0;
2422 return 0;
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2430 main ()
2432 if (sizeof (($2)))
2433 return 0;
2435 return 0;
2437 _ACEOF
2438 if ac_fn_cxx_try_compile "$LINENO"; then :
2440 else
2441 eval "$3=yes"
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452 } # ac_fn_cxx_check_type
2454 # ac_fn_cxx_check_func LINENO FUNC VAR
2455 # ------------------------------------
2456 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2457 ac_fn_cxx_check_func ()
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if eval \${$3+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2469 #define $2 innocuous_$2
2471 /* System header to define __stub macros and hopefully few prototypes,
2472 which can conflict with char $2 (); below.
2473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2474 <limits.h> exists even on freestanding compilers. */
2476 #ifdef __STDC__
2477 # include <limits.h>
2478 #else
2479 # include <assert.h>
2480 #endif
2482 #undef $2
2484 /* Override any GCC internal prototype to avoid an error.
2485 Use char because int might match the return type of a GCC
2486 builtin and then its argument prototype would still apply. */
2487 #ifdef __cplusplus
2488 extern "C"
2489 #endif
2490 char $2 ();
2491 /* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */
2494 #if defined __stub_$2 || defined __stub___$2
2495 choke me
2496 #endif
2499 main ()
2501 return $2 ();
2503 return 0;
2505 _ACEOF
2506 if ac_fn_cxx_try_link "$LINENO"; then :
2507 eval "$3=yes"
2508 else
2509 eval "$3=no"
2511 rm -f core conftest.err conftest.$ac_objext \
2512 conftest$ac_exeext conftest.$ac_ext
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_func
2521 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2522 # ---------------------------------------------------------
2523 # Tests whether HEADER exists and can be compiled using the include files in
2524 # INCLUDES, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_compile ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2536 #include <$2>
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539 eval "$3=yes"
2540 else
2541 eval "$3=no"
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 eval ac_res=\$$3
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550 } # ac_fn_cxx_check_header_compile
2552 # ac_fn_c_check_func LINENO FUNC VAR
2553 # ----------------------------------
2554 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2555 ac_fn_c_check_func ()
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if eval \${$3+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2567 #define $2 innocuous_$2
2569 /* System header to define __stub macros and hopefully few prototypes,
2570 which can conflict with char $2 (); below.
2571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2572 <limits.h> exists even on freestanding compilers. */
2574 #ifdef __STDC__
2575 # include <limits.h>
2576 #else
2577 # include <assert.h>
2578 #endif
2580 #undef $2
2582 /* Override any GCC internal prototype to avoid an error.
2583 Use char because int might match the return type of a GCC
2584 builtin and then its argument prototype would still apply. */
2585 #ifdef __cplusplus
2586 extern "C"
2587 #endif
2588 char $2 ();
2589 /* The GNU C library defines this for functions which it implements
2590 to always fail with ENOSYS. Some functions are actually named
2591 something starting with __ and the normal name is an alias. */
2592 #if defined __stub_$2 || defined __stub___$2
2593 choke me
2594 #endif
2597 main ()
2599 return $2 ();
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_link "$LINENO"; then :
2605 eval "$3=yes"
2606 else
2607 eval "$3=no"
2609 rm -f core conftest.err conftest.$ac_objext \
2610 conftest$ac_exeext conftest.$ac_ext
2612 eval ac_res=\$$3
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617 } # ac_fn_c_check_func
2619 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2620 # ---------------------------------------------
2621 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2622 # accordingly.
2623 ac_fn_c_check_decl ()
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 as_decl_name=`echo $2|sed 's/ *(.*//'`
2627 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2629 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2630 if eval \${$3+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 #ifndef $as_decl_name
2640 #ifdef __cplusplus
2641 (void) $as_decl_use;
2642 #else
2643 (void) $as_decl_name;
2644 #endif
2645 #endif
2648 return 0;
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652 eval "$3=yes"
2653 else
2654 eval "$3=no"
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 eval ac_res=\$$3
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663 } # ac_fn_c_check_decl
2664 cat >config.log <<_ACEOF
2665 This file contains any messages produced by compilers while
2666 running configure, to aid debugging if configure makes a mistake.
2668 It was created by aMule $as_me SVN, which was
2669 generated by GNU Autoconf 2.69. Invocation command line was
2671 $ $0 $@
2673 _ACEOF
2674 exec 5>>config.log
2676 cat <<_ASUNAME
2677 ## --------- ##
2678 ## Platform. ##
2679 ## --------- ##
2681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2698 _ASUNAME
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 $as_echo "PATH: $as_dir"
2706 done
2707 IFS=$as_save_IFS
2709 } >&5
2711 cat >&5 <<_ACEOF
2714 ## ----------- ##
2715 ## Core tests. ##
2716 ## ----------- ##
2718 _ACEOF
2721 # Keep a trace of the command line.
2722 # Strip out --no-create and --no-recursion so they do not pile up.
2723 # Strip out --silent because we don't want to record it for future runs.
2724 # Also quote any args containing shell meta-characters.
2725 # Make two passes to allow for proper duplicate-argument suppression.
2726 ac_configure_args=
2727 ac_configure_args0=
2728 ac_configure_args1=
2729 ac_must_keep_next=false
2730 for ac_pass in 1 2
2732 for ac_arg
2734 case $ac_arg in
2735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2737 | -silent | --silent | --silen | --sile | --sil)
2738 continue ;;
2739 *\'*)
2740 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2741 esac
2742 case $ac_pass in
2743 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2745 as_fn_append ac_configure_args1 " '$ac_arg'"
2746 if test $ac_must_keep_next = true; then
2747 ac_must_keep_next=false # Got value, back to normal.
2748 else
2749 case $ac_arg in
2750 *=* | --config-cache | -C | -disable-* | --disable-* \
2751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2753 | -with-* | --with-* | -without-* | --without-* | --x)
2754 case "$ac_configure_args0 " in
2755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2756 esac
2758 -* ) ac_must_keep_next=true ;;
2759 esac
2761 as_fn_append ac_configure_args " '$ac_arg'"
2763 esac
2764 done
2765 done
2766 { ac_configure_args0=; unset ac_configure_args0;}
2767 { ac_configure_args1=; unset ac_configure_args1;}
2769 # When interrupted or exit'd, cleanup temporary files, and complete
2770 # config.log. We remove comments because anyway the quotes in there
2771 # would cause problems or look ugly.
2772 # WARNING: Use '\'' to represent an apostrophe within the trap.
2773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2774 trap 'exit_status=$?
2775 # Save into config.log some information that might help in debugging.
2777 echo
2779 $as_echo "## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##"
2782 echo
2783 # The following way of writing the cache mishandles newlines in values,
2785 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2786 eval ac_val=\$$ac_var
2787 case $ac_val in #(
2788 *${as_nl}*)
2789 case $ac_var in #(
2790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2792 esac
2793 case $ac_var in #(
2794 _ | IFS | as_nl) ;; #(
2795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2796 *) { eval $ac_var=; unset $ac_var;} ;;
2797 esac ;;
2798 esac
2799 done
2800 (set) 2>&1 |
2801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2802 *${as_nl}ac_space=\ *)
2803 sed -n \
2804 "s/'\''/'\''\\\\'\'''\''/g;
2805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2806 ;; #(
2808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2810 esac |
2811 sort
2813 echo
2815 $as_echo "## ----------------- ##
2816 ## Output variables. ##
2817 ## ----------------- ##"
2818 echo
2819 for ac_var in $ac_subst_vars
2821 eval ac_val=\$$ac_var
2822 case $ac_val in
2823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2824 esac
2825 $as_echo "$ac_var='\''$ac_val'\''"
2826 done | sort
2827 echo
2829 if test -n "$ac_subst_files"; then
2830 $as_echo "## ------------------- ##
2831 ## File substitutions. ##
2832 ## ------------------- ##"
2833 echo
2834 for ac_var in $ac_subst_files
2836 eval ac_val=\$$ac_var
2837 case $ac_val in
2838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 esac
2840 $as_echo "$ac_var='\''$ac_val'\''"
2841 done | sort
2842 echo
2845 if test -s confdefs.h; then
2846 $as_echo "## ----------- ##
2847 ## confdefs.h. ##
2848 ## ----------- ##"
2849 echo
2850 cat confdefs.h
2851 echo
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2856 } >&5
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 exit $exit_status
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2869 $as_echo "/* confdefs.h */" > confdefs.h
2871 # Predefined preprocessor variables.
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903 # We do not want a PATH search for config.site.
2904 case $CONFIG_SITE in #((
2905 -*) ac_site_file1=./$CONFIG_SITE;;
2906 */*) ac_site_file1=$CONFIG_SITE;;
2907 *) ac_site_file1=./$CONFIG_SITE;;
2908 esac
2909 elif test "x$prefix" != xNONE; then
2910 ac_site_file1=$prefix/share/config.site
2911 ac_site_file2=$prefix/etc/config.site
2912 else
2913 ac_site_file1=$ac_default_prefix/share/config.site
2914 ac_site_file2=$ac_default_prefix/etc/config.site
2916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2918 test "x$ac_site_file" = xNONE && continue
2919 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2922 sed 's/^/| /' "$ac_site_file" >&5
2923 . "$ac_site_file" \
2924 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "failed to load site script $ac_site_file
2927 See \`config.log' for more details" "$LINENO" 5; }
2929 done
2931 if test -r "$cache_file"; then
2932 # Some versions of bash will fail to source /dev/null (special files
2933 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2934 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2936 $as_echo "$as_me: loading cache $cache_file" >&6;}
2937 case $cache_file in
2938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2939 *) . "./$cache_file";;
2940 esac
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2944 $as_echo "$as_me: creating cache $cache_file" >&6;}
2945 >$cache_file
2948 as_fn_append ac_header_list " stdlib.h"
2949 as_fn_append ac_header_list " unistd.h"
2950 as_fn_append ac_header_list " sys/param.h"
2951 # Check that the precious variables saved in the cache have kept the same
2952 # value.
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2960 set,)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,set)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,);;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x $ac_old_val`
2973 ac_new_val_w=`echo x $ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2977 ac_cache_corrupted=:
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2987 fi;;
2988 esac
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2991 case $ac_new_val in
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2994 esac
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2998 esac
3000 done
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 am__api_version='1.15'
3021 ac_aux_dir=
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023 if test -f "$ac_dir/install-sh"; then
3024 ac_aux_dir=$ac_dir
3025 ac_install_sh="$ac_aux_dir/install-sh -c"
3026 break
3027 elif test -f "$ac_dir/install.sh"; then
3028 ac_aux_dir=$ac_dir
3029 ac_install_sh="$ac_aux_dir/install.sh -c"
3030 break
3031 elif test -f "$ac_dir/shtool"; then
3032 ac_aux_dir=$ac_dir
3033 ac_install_sh="$ac_aux_dir/shtool install -c"
3034 break
3036 done
3037 if test -z "$ac_aux_dir"; then
3038 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3041 # These three variables are undocumented and unsupported,
3042 # and are intended to be withdrawn in a future Autoconf release.
3043 # They can cause serious problems if a builder's source tree is in a directory
3044 # whose full name contains unusual characters.
3045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050 # Find a good install program. We prefer a C program (faster),
3051 # so one script is as good as another. But avoid the broken or
3052 # incompatible versions:
3053 # SysV /etc/install, /usr/sbin/install
3054 # SunOS /usr/etc/install
3055 # IRIX /sbin/install
3056 # AIX /bin/install
3057 # AmigaOS /C/install, which installs bootblocks on floppy discs
3058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3061 # OS/2's system install, which has a completely different semantic
3062 # ./install, which can be erroneously created by make from ./install.sh.
3063 # Reject install programs that cannot install multiple files.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3065 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3066 if test -z "$INSTALL"; then
3067 if ${ac_cv_path_install+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 # Account for people who put trailing slashes in PATH elements.
3076 case $as_dir/ in #((
3077 ./ | .// | /[cC]/* | \
3078 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3079 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3080 /usr/ucb/* ) ;;
3082 # OSF1 and SCO ODT 3.0 have their own names for install.
3083 # Don't use installbsd from OSF since it installs stuff as root
3084 # by default.
3085 for ac_prog in ginstall scoinst install; do
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3088 if test $ac_prog = install &&
3089 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3090 # AIX install. It has an incompatible calling convention.
3092 elif test $ac_prog = install &&
3093 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094 # program-specific install script used by HP pwplus--don't use.
3096 else
3097 rm -rf conftest.one conftest.two conftest.dir
3098 echo one > conftest.one
3099 echo two > conftest.two
3100 mkdir conftest.dir
3101 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3102 test -s conftest.one && test -s conftest.two &&
3103 test -s conftest.dir/conftest.one &&
3104 test -s conftest.dir/conftest.two
3105 then
3106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3107 break 3
3111 done
3112 done
3114 esac
3116 done
3117 IFS=$as_save_IFS
3119 rm -rf conftest.one conftest.two conftest.dir
3122 if test "${ac_cv_path_install+set}" = set; then
3123 INSTALL=$ac_cv_path_install
3124 else
3125 # As a last resort, use the slow shell script. Don't cache a
3126 # value for INSTALL within a source directory, because that will
3127 # break other packages using the cache if that directory is
3128 # removed, or if the value is a relative name.
3129 INSTALL=$ac_install_sh
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3133 $as_echo "$INSTALL" >&6; }
3135 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3136 # It thinks the first close brace ends the variable substitution.
3137 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3144 $as_echo_n "checking whether build environment is sane... " >&6; }
3145 # Reject unsafe characters in $srcdir or the absolute working directory
3146 # name. Accept space and tab only in the latter.
3147 am_lf='
3149 case `pwd` in
3150 *[\\\"\#\$\&\'\`$am_lf]*)
3151 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3152 esac
3153 case $srcdir in
3154 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3156 esac
3158 # Do 'set' in a subshell so we don't clobber the current shell's
3159 # arguments. Must try -L first in case configure is actually a
3160 # symlink; some systems play weird games with the mod time of symlinks
3161 # (eg FreeBSD returns the mod time of the symlink's containing
3162 # directory).
3163 if (
3164 am_has_slept=no
3165 for am_try in 1 2; do
3166 echo "timestamp, slept: $am_has_slept" > conftest.file
3167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3168 if test "$*" = "X"; then
3169 # -L didn't work.
3170 set X `ls -t "$srcdir/configure" conftest.file`
3172 if test "$*" != "X $srcdir/configure conftest.file" \
3173 && test "$*" != "X conftest.file $srcdir/configure"; then
3175 # If neither matched, then we have a broken ls. This can happen
3176 # if, for instance, CONFIG_SHELL is bash and it inherits a
3177 # broken ls alias from the environment. This has actually
3178 # happened. Such a system could not be considered "sane".
3179 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3180 alias in your environment" "$LINENO" 5
3182 if test "$2" = conftest.file || test $am_try -eq 2; then
3183 break
3185 # Just in case.
3186 sleep 1
3187 am_has_slept=yes
3188 done
3189 test "$2" = conftest.file
3191 then
3192 # Ok.
3194 else
3195 as_fn_error $? "newly created file is older than distributed files!
3196 Check your system clock" "$LINENO" 5
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3200 # If we didn't sleep, we still need to ensure time stamps of config.status and
3201 # generated files are strictly newer.
3202 am_sleep_pid=
3203 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3204 ( sleep 1 ) &
3205 am_sleep_pid=$!
3208 rm -f conftest.file
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s,x,x', remove it if useless.
3217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3220 # Expand $ac_aux_dir to an absolute path.
3221 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3223 if test x"${MISSING+set}" != xset; then
3224 case $am_aux_dir in
3225 *\ * | *\ *)
3226 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3228 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3229 esac
3231 # Use eval to expand $SHELL
3232 if eval "$MISSING --is-lightweight"; then
3233 am_missing_run="$MISSING "
3234 else
3235 am_missing_run=
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3237 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3240 if test x"${install_sh+set}" != xset; then
3241 case $am_aux_dir in
3242 *\ * | *\ *)
3243 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3245 install_sh="\${SHELL} $am_aux_dir/install-sh"
3246 esac
3249 # Installed binaries are usually stripped using 'strip' when the user
3250 # run "make install-strip". However 'strip' might not be the right
3251 # tool to use in cross-compilation environments, therefore Automake
3252 # will honor the 'STRIP' environment variable to overrule this program.
3253 if test "$cross_compiling" != no; then
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}strip; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_STRIP+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$STRIP"; then
3263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3276 done
3277 done
3278 IFS=$as_save_IFS
3282 STRIP=$ac_cv_prog_STRIP
3283 if test -n "$STRIP"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3285 $as_echo "$STRIP" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3293 if test -z "$ac_cv_prog_STRIP"; then
3294 ac_ct_STRIP=$STRIP
3295 # Extract the first word of "strip", so it can be a program name with args.
3296 set dummy strip; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$ac_ct_STRIP"; then
3303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_ac_ct_STRIP="strip"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3316 done
3317 done
3318 IFS=$as_save_IFS
3322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3323 if test -n "$ac_ct_STRIP"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3325 $as_echo "$ac_ct_STRIP" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3331 if test "x$ac_ct_STRIP" = x; then
3332 STRIP=":"
3333 else
3334 case $cross_compiling:$ac_tool_warned in
3335 yes:)
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338 ac_tool_warned=yes ;;
3339 esac
3340 STRIP=$ac_ct_STRIP
3342 else
3343 STRIP="$ac_cv_prog_STRIP"
3347 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3350 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3351 if test -z "$MKDIR_P"; then
3352 if ${ac_cv_path_mkdir+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_prog in mkdir gmkdir; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3363 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3364 'mkdir (GNU coreutils) '* | \
3365 'mkdir (coreutils) '* | \
3366 'mkdir (fileutils) '4.1*)
3367 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3368 break 3;;
3369 esac
3370 done
3371 done
3372 done
3373 IFS=$as_save_IFS
3377 test -d ./--version && rmdir ./--version
3378 if test "${ac_cv_path_mkdir+set}" = set; then
3379 MKDIR_P="$ac_cv_path_mkdir -p"
3380 else
3381 # As a last resort, use the slow shell script. Don't cache a
3382 # value for MKDIR_P within a source directory, because that will
3383 # break other packages using the cache if that directory is
3384 # removed, or if the value is a relative name.
3385 MKDIR_P="$ac_install_sh -d"
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3389 $as_echo "$MKDIR_P" >&6; }
3391 for ac_prog in gawk mawk nawk awk
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_AWK+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$AWK"; then
3401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_AWK="$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3416 IFS=$as_save_IFS
3420 AWK=$ac_cv_prog_AWK
3421 if test -n "$AWK"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3423 $as_echo "$AWK" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$AWK" && break
3431 done
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3435 set x ${MAKE-make}
3436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3437 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 cat >conftest.make <<\_ACEOF
3441 SHELL = /bin/sh
3442 all:
3443 @echo '@@@%%%=$(MAKE)=@@@%%%'
3444 _ACEOF
3445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3447 *@@@%%%=?*=@@@%%%*)
3448 eval ac_cv_prog_make_${ac_make}_set=yes;;
3450 eval ac_cv_prog_make_${ac_make}_set=no;;
3451 esac
3452 rm -f conftest.make
3454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3456 $as_echo "yes" >&6; }
3457 SET_MAKE=
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 SET_MAKE="MAKE=${MAKE-make}"
3464 rm -rf .tst 2>/dev/null
3465 mkdir .tst 2>/dev/null
3466 if test -d .tst; then
3467 am__leading_dot=.
3468 else
3469 am__leading_dot=_
3471 rmdir .tst 2>/dev/null
3473 # Check whether --enable-silent-rules was given.
3474 if test "${enable_silent_rules+set}" = set; then :
3475 enableval=$enable_silent_rules;
3478 case $enable_silent_rules in # (((
3479 yes) AM_DEFAULT_VERBOSITY=0;;
3480 no) AM_DEFAULT_VERBOSITY=1;;
3481 *) AM_DEFAULT_VERBOSITY=1;;
3482 esac
3483 am_make=${MAKE-make}
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3485 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3486 if ${am_cv_make_support_nested_variables+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if $as_echo 'TRUE=$(BAR$(V))
3490 BAR0=false
3491 BAR1=true
3493 am__doit:
3494 @$(TRUE)
3495 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3496 am_cv_make_support_nested_variables=yes
3497 else
3498 am_cv_make_support_nested_variables=no
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3502 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3503 if test $am_cv_make_support_nested_variables = yes; then
3504 AM_V='$(V)'
3505 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3506 else
3507 AM_V=$AM_DEFAULT_VERBOSITY
3508 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3510 AM_BACKSLASH='\'
3512 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3513 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3514 # is not polluted with repeated "-I."
3515 am__isrc=' -I$(srcdir)'
3516 # test to see if srcdir already configured
3517 if test -f $srcdir/config.status; then
3518 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3522 # test whether we have cygpath
3523 if test -z "$CYGPATH_W"; then
3524 if (cygpath --version) >/dev/null 2>/dev/null; then
3525 CYGPATH_W='cygpath -w'
3526 else
3527 CYGPATH_W=echo
3532 # Define the identity of the package.
3533 PACKAGE='amule'
3534 VERSION='SVN'
3537 cat >>confdefs.h <<_ACEOF
3538 #define PACKAGE "$PACKAGE"
3539 _ACEOF
3542 cat >>confdefs.h <<_ACEOF
3543 #define VERSION "$VERSION"
3544 _ACEOF
3546 # Some tools Automake needs.
3548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3562 # For better backward compatibility. To be removed once Automake 1.9.x
3563 # dies out for good. For more background, see:
3564 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3565 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3566 mkdir_p='$(MKDIR_P)'
3568 # We need awk for the "check" target (and possibly the TAP driver). The
3569 # system "awk" is bad on some platforms.
3570 # Always define AMTAR for backward compatibility. Yes, it's still used
3571 # in the wild :-( We should find a proper way to deprecate it ...
3572 AMTAR='$${TAR-tar}'
3575 # We'll loop over all known methods to create a tar archive until one works.
3576 _am_tools='gnutar pax cpio none'
3578 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3585 # POSIX will say in a future version that running "rm -f" with no argument
3586 # is OK; and we want to be able to make that assumption in our Makefile
3587 # recipes. So use an aggressive probe to check that the usage we want is
3588 # actually supported "in the wild" to an acceptable degree.
3589 # See automake bug#10828.
3590 # To make any issue more visible, cause the running configure to be aborted
3591 # by default if the 'rm' program in use doesn't match our expectations; the
3592 # user can still override this though.
3593 if rm -f && rm -fr && rm -rf; then : OK; else
3594 cat >&2 <<'END'
3595 Oops!
3597 Your 'rm' program seems unable to run without file operands specified
3598 on the command line, even when the '-f' option is present. This is contrary
3599 to the behaviour of most rm programs out there, and not conforming with
3600 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3602 Please tell bug-automake@gnu.org about your system, including the value
3603 of your $PATH and any error possibly output before this message. This
3604 can help us improve future automake versions.
3607 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3608 echo 'Configuration will proceed anyway, since you have set the' >&2
3609 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3610 echo >&2
3611 else
3612 cat >&2 <<'END'
3613 Aborting the configuration process, to ensure you take notice of the issue.
3615 You can download and install GNU coreutils to get an 'rm' implementation
3616 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3618 If you want to complete the configuration process using your problematic
3619 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3620 to "yes", and re-run configure.
3623 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3627 # Check whether --enable-silent-rules was given.
3628 if test "${enable_silent_rules+set}" = set; then :
3629 enableval=$enable_silent_rules;
3632 case $enable_silent_rules in # (((
3633 yes) AM_DEFAULT_VERBOSITY=0;;
3634 no) AM_DEFAULT_VERBOSITY=1;;
3635 *) AM_DEFAULT_VERBOSITY=1;;
3636 esac
3637 am_make=${MAKE-make}
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3639 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3640 if ${am_cv_make_support_nested_variables+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if $as_echo 'TRUE=$(BAR$(V))
3644 BAR0=false
3645 BAR1=true
3647 am__doit:
3648 @$(TRUE)
3649 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3650 am_cv_make_support_nested_variables=yes
3651 else
3652 am_cv_make_support_nested_variables=no
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3656 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3657 if test $am_cv_make_support_nested_variables = yes; then
3658 AM_V='$(V)'
3659 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3660 else
3661 AM_V=$AM_DEFAULT_VERBOSITY
3662 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3664 AM_BACKSLASH='\'
3670 ac_config_headers="$ac_config_headers config.h"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3675 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3676 # Check whether --enable-maintainer-mode was given.
3677 if test "${enable_maintainer_mode+set}" = set; then :
3678 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3679 else
3680 USE_MAINTAINER_MODE=no
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3684 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3685 if test $USE_MAINTAINER_MODE = yes; then
3686 MAINTAINER_MODE_TRUE=
3687 MAINTAINER_MODE_FALSE='#'
3688 else
3689 MAINTAINER_MODE_TRUE='#'
3690 MAINTAINER_MODE_FALSE=
3693 MAINT=$MAINTAINER_MODE_TRUE
3697 # Make sure we can run config.sub.
3698 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3699 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3702 $as_echo_n "checking build system type... " >&6; }
3703 if ${ac_cv_build+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_build_alias=$build_alias
3707 test "x$ac_build_alias" = x &&
3708 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3709 test "x$ac_build_alias" = x &&
3710 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3711 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3716 $as_echo "$ac_cv_build" >&6; }
3717 case $ac_cv_build in
3718 *-*-*) ;;
3719 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3720 esac
3721 build=$ac_cv_build
3722 ac_save_IFS=$IFS; IFS='-'
3723 set x $ac_cv_build
3724 shift
3725 build_cpu=$1
3726 build_vendor=$2
3727 shift; shift
3728 # Remember, the first character of IFS is used to create $*,
3729 # except with old shells:
3730 build_os=$*
3731 IFS=$ac_save_IFS
3732 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3736 $as_echo_n "checking host system type... " >&6; }
3737 if ${ac_cv_host+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test "x$host_alias" = x; then
3741 ac_cv_host=$ac_cv_build
3742 else
3743 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3749 $as_echo "$ac_cv_host" >&6; }
3750 case $ac_cv_host in
3751 *-*-*) ;;
3752 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3753 esac
3754 host=$ac_cv_host
3755 ac_save_IFS=$IFS; IFS='-'
3756 set x $ac_cv_host
3757 shift
3758 host_cpu=$1
3759 host_vendor=$2
3760 shift; shift
3761 # Remember, the first character of IFS is used to create $*,
3762 # except with old shells:
3763 host_os=$*
3764 IFS=$ac_save_IFS
3765 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3769 case "${host_os}" in
3770 darwin*)
3771 SYS=darwin
3772 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3773 MULELDFLAGS="-bind_at_load"
3774 touch src/Scanner.cpp
3776 openbsd*)
3777 SYS=openbsd
3778 LIBS="$LIBS -L/usr/local/lib"
3779 MULECPPFLAGS="-D__OPENBSD__"
3781 *cygwin* | *mingw32*)
3782 SYS=win32
3783 MULECPPFLAGS="-DNOMINMAX"
3785 solaris*)
3786 SYS=solaris
3787 RESOLV_LIB="-lresolv -lnsl"
3788 LIBS="$LIBS -lrt"
3790 *netbsd*)
3791 SYS=netbsd
3792 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3793 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3794 # Still, we prepend them, instead of adding, so the user may override them.
3795 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3796 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3798 *irix*)
3799 SYS=irix
3800 MULECPPFLAGS="-D__IRIX__"
3803 SYS=unknown
3805 esac
3807 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3808 if test ${SYS:-unknown} != win32; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3811 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3812 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3814 MULELDFLAGS="$MULELDFLAGS -pthread"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816 $as_echo "yes" >&6; }
3818 else
3820 MULELDFLAGS="$MULELDFLAGS -lpthread"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3830 mule_backup_CFLAGS="$CFLAGS"
3831 mule_backup_CXXFLAGS="$CXXFLAGS"
3832 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3833 ac_ext=cpp
3834 ac_cpp='$CXXCPP $CPPFLAGS'
3835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3838 if test -z "$CXX"; then
3839 if test -n "$CCC"; then
3840 CXX=$CCC
3841 else
3842 if test -n "$ac_tool_prefix"; then
3843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_CXX+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -n "$CXX"; then
3853 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3868 IFS=$as_save_IFS
3872 CXX=$ac_cv_prog_CXX
3873 if test -n "$CXX"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3875 $as_echo "$CXX" >&6; }
3876 else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3882 test -n "$CXX" && break
3883 done
3885 if test -z "$CXX"; then
3886 ac_ct_CXX=$CXX
3887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3889 # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$ac_ct_CXX"; then
3897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_ac_ct_CXX="$ac_prog"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3910 done
3911 done
3912 IFS=$as_save_IFS
3916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3917 if test -n "$ac_ct_CXX"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3919 $as_echo "$ac_ct_CXX" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$ac_ct_CXX" && break
3927 done
3929 if test "x$ac_ct_CXX" = x; then
3930 CXX="g++"
3931 else
3932 case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938 CXX=$ac_ct_CXX
3944 # Provide some information about the compiler.
3945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3946 set X $ac_compile
3947 ac_compiler=$2
3948 for ac_option in --version -v -V -qversion; do
3949 { { ac_try="$ac_compiler $ac_option >&5"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3957 ac_status=$?
3958 if test -s conftest.err; then
3959 sed '10a\
3960 ... rest of stderr output deleted ...
3961 10q' conftest.err >conftest.er1
3962 cat conftest.er1 >&5
3964 rm -f conftest.er1 conftest.err
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }
3967 done
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3973 main ()
3977 return 0;
3979 _ACEOF
3980 ac_clean_files_save=$ac_clean_files
3981 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3982 # Try to create an executable without -o first, disregard a.out.
3983 # It will help us diagnose broken compilers, and finding out an intuition
3984 # of exeext.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3986 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3987 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3989 # The possible output files:
3990 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3992 ac_rmfiles=
3993 for ac_file in $ac_files
3995 case $ac_file in
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3998 esac
3999 done
4000 rm -f $ac_rmfiles
4002 if { { ac_try="$ac_link_default"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_link_default") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4014 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4015 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4016 # so that the user can short-circuit this test for compilers unknown to
4017 # Autoconf.
4018 for ac_file in $ac_files ''
4020 test -f "$ac_file" || continue
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4024 [ab].out )
4025 # We found the default executable, but exeext='' is most
4026 # certainly right.
4027 break;;
4028 *.* )
4029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4030 then :; else
4031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4033 # We set ac_cv_exeext here because the later test for it is not
4034 # safe: cross compilers may not add the suffix if given an `-o'
4035 # argument, so we may need to know it at that point already.
4036 # Even if this section looks crufty: it has the advantage of
4037 # actually working.
4038 break;;
4040 break;;
4041 esac
4042 done
4043 test "$ac_cv_exeext" = no && ac_cv_exeext=
4045 else
4046 ac_file=''
4048 if test -z "$ac_file"; then :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error 77 "C++ compiler cannot create executables
4057 See \`config.log' for more details" "$LINENO" 5; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4063 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4065 $as_echo "$ac_file" >&6; }
4066 ac_exeext=$ac_cv_exeext
4068 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4069 ac_clean_files=$ac_clean_files_save
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4071 $as_echo_n "checking for suffix of executables... " >&6; }
4072 if { { ac_try="$ac_link"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_link") 2>&5
4080 ac_status=$?
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }; then :
4083 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4084 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4085 # work properly (i.e., refer to `conftest.exe'), while it won't with
4086 # `rm'.
4087 for ac_file in conftest.exe conftest conftest.*; do
4088 test -f "$ac_file" || continue
4089 case $ac_file in
4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4092 break;;
4093 * ) break;;
4094 esac
4095 done
4096 else
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 rm -f conftest conftest$ac_cv_exeext
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4104 $as_echo "$ac_cv_exeext" >&6; }
4106 rm -f conftest.$ac_ext
4107 EXEEXT=$ac_cv_exeext
4108 ac_exeext=$EXEEXT
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <stdio.h>
4113 main ()
4115 FILE *f = fopen ("conftest.out", "w");
4116 return ferror (f) || fclose (f) != 0;
4119 return 0;
4121 _ACEOF
4122 ac_clean_files="$ac_clean_files conftest.out"
4123 # Check that the compiler produces executables we can run. If not, either
4124 # the compiler is broken, or we cross compile.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4126 $as_echo_n "checking whether we are cross compiling... " >&6; }
4127 if test "$cross_compiling" != yes; then
4128 { { ac_try="$ac_link"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134 $as_echo "$ac_try_echo"; } >&5
4135 (eval "$ac_link") 2>&5
4136 ac_status=$?
4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }
4139 if { ac_try='./conftest$ac_cv_exeext'
4140 { { case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; }; then
4150 cross_compiling=no
4151 else
4152 if test "$cross_compiling" = maybe; then
4153 cross_compiling=yes
4154 else
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $? "cannot run C++ compiled programs.
4158 If you meant to cross compile, use \`--host'.
4159 See \`config.log' for more details" "$LINENO" 5; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4164 $as_echo "$cross_compiling" >&6; }
4166 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4169 $as_echo_n "checking for suffix of object files... " >&6; }
4170 if ${ac_cv_objext+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 rm -f conftest.o conftest.obj
4185 if { { ac_try="$ac_compile"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_compile") 2>&5
4193 ac_status=$?
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }; then :
4196 for ac_file in conftest.o conftest.obj conftest.*; do
4197 test -f "$ac_file" || continue;
4198 case $ac_file in
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4201 break;;
4202 esac
4203 done
4204 else
4205 $as_echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4210 as_fn_error $? "cannot compute suffix of object files: cannot compile
4211 See \`config.log' for more details" "$LINENO" 5; }
4213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4216 $as_echo "$ac_cv_objext" >&6; }
4217 OBJEXT=$ac_cv_objext
4218 ac_objext=$OBJEXT
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4228 main ()
4230 #ifndef __GNUC__
4231 choke me
4232 #endif
4235 return 0;
4237 _ACEOF
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4239 ac_compiler_gnu=yes
4240 else
4241 ac_compiler_gnu=no
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4250 GXX=yes
4251 else
4252 GXX=
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262 ac_cxx_werror_flag=yes
4263 ac_cv_prog_cxx_g=no
4264 CXXFLAGS="-g"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cv_prog_cxx_g=yes
4278 else
4279 CXXFLAGS=""
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4284 main ()
4288 return 0;
4290 _ACEOF
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4293 else
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4295 CXXFLAGS="-g"
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4300 main ()
4304 return 0;
4306 _ACEOF
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320 CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322 if test "$GXX" = yes; then
4323 CXXFLAGS="-g -O2"
4324 else
4325 CXXFLAGS="-g"
4327 else
4328 if test "$GXX" = yes; then
4329 CXXFLAGS="-O2"
4330 else
4331 CXXFLAGS=
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 DEPDIR="${am__leading_dot}deps"
4341 ac_config_commands="$ac_config_commands depfiles"
4344 am_make=${MAKE-make}
4345 cat > confinc << 'END'
4346 am__doit:
4347 @echo this is the am__doit target
4348 .PHONY: am__doit
4350 # If we don't find an include directive, just comment out the code.
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4352 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4353 am__include="#"
4354 am__quote=
4355 _am_result=none
4356 # First try GNU make style include.
4357 echo "include confinc" > confmf
4358 # Ignore all kinds of additional output from 'make'.
4359 case `$am_make -s -f confmf 2> /dev/null` in #(
4360 *the\ am__doit\ target*)
4361 am__include=include
4362 am__quote=
4363 _am_result=GNU
4365 esac
4366 # Now try BSD make style include.
4367 if test "$am__include" = "#"; then
4368 echo '.include "confinc"' > confmf
4369 case `$am_make -s -f confmf 2> /dev/null` in #(
4370 *the\ am__doit\ target*)
4371 am__include=.include
4372 am__quote="\""
4373 _am_result=BSD
4375 esac
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4380 $as_echo "$_am_result" >&6; }
4381 rm -f confinc confmf
4383 # Check whether --enable-dependency-tracking was given.
4384 if test "${enable_dependency_tracking+set}" = set; then :
4385 enableval=$enable_dependency_tracking;
4388 if test "x$enable_dependency_tracking" != xno; then
4389 am_depcomp="$ac_aux_dir/depcomp"
4390 AMDEPBACKSLASH='\'
4391 am__nodep='_no'
4393 if test "x$enable_dependency_tracking" != xno; then
4394 AMDEP_TRUE=
4395 AMDEP_FALSE='#'
4396 else
4397 AMDEP_TRUE='#'
4398 AMDEP_FALSE=
4403 depcc="$CXX" am_compiler_list=
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4406 $as_echo_n "checking dependency style of $depcc... " >&6; }
4407 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411 # We make a subdir and do the tests there. Otherwise we can end up
4412 # making bogus files that we don't know about and never remove. For
4413 # instance it was reported that on HP-UX the gcc test will end up
4414 # making a dummy file named 'D' -- because '-MD' means "put the output
4415 # in D".
4416 rm -rf conftest.dir
4417 mkdir conftest.dir
4418 # Copy depcomp to subdir because otherwise we won't find it if we're
4419 # using a relative directory.
4420 cp "$am_depcomp" conftest.dir
4421 cd conftest.dir
4422 # We will build objects and dependencies in a subdirectory because
4423 # it helps to detect inapplicable dependency modes. For instance
4424 # both Tru64's cc and ICC support -MD to output dependencies as a
4425 # side effect of compilation, but ICC will put the dependencies in
4426 # the current directory while Tru64 will put them in the object
4427 # directory.
4428 mkdir sub
4430 am_cv_CXX_dependencies_compiler_type=none
4431 if test "$am_compiler_list" = ""; then
4432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4434 am__universal=false
4435 case " $depcc " in #(
4436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437 esac
4439 for depmode in $am_compiler_list; do
4440 # Setup a source with many dependencies, because some compilers
4441 # like to wrap large dependency lists on column 80 (with \), and
4442 # we should not choose a depcomp mode which is confused by this.
4444 # We need to recreate these files for each test, as the compiler may
4445 # overwrite some of them when testing with obscure command lines.
4446 # This happens at least with the AIX C compiler.
4447 : > sub/conftest.c
4448 for i in 1 2 3 4 5 6; do
4449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4451 # Solaris 10 /bin/sh.
4452 echo '/* dummy */' > sub/conftst$i.h
4453 done
4454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4456 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4457 # mode. It turns out that the SunPro C++ compiler does not properly
4458 # handle '-M -o', and we need to detect this. Also, some Intel
4459 # versions had trouble with output in subdirs.
4460 am__obj=sub/conftest.${OBJEXT-o}
4461 am__minus_obj="-o $am__obj"
4462 case $depmode in
4463 gcc)
4464 # This depmode causes a compiler race in universal mode.
4465 test "$am__universal" = false || continue
4467 nosideeffect)
4468 # After this tag, mechanisms are not by side-effect, so they'll
4469 # only be used when explicitly requested.
4470 if test "x$enable_dependency_tracking" = xyes; then
4471 continue
4472 else
4473 break
4476 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477 # This compiler won't grok '-c -o', but also, the minuso test has
4478 # not run yet. These depmodes are late enough in the game, and
4479 # so weak that their functioning should not be impacted.
4480 am__obj=conftest.${OBJEXT-o}
4481 am__minus_obj=
4483 none) break ;;
4484 esac
4485 if depmode=$depmode \
4486 source=sub/conftest.c object=$am__obj \
4487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489 >/dev/null 2>conftest.err &&
4490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494 # icc doesn't choke on unknown options, it will just issue warnings
4495 # or remarks (even with -Werror). So we grep stderr for any message
4496 # that says an option was ignored or not supported.
4497 # When given -MP, icc 7.0 and 7.1 complain thusly:
4498 # icc: Command line warning: ignoring option '-M'; no argument required
4499 # The diagnosis changed in icc 8.0:
4500 # icc: Command line remark: option '-MP' not supported
4501 if (grep 'ignoring option' conftest.err ||
4502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503 am_cv_CXX_dependencies_compiler_type=$depmode
4504 break
4507 done
4509 cd ..
4510 rm -rf conftest.dir
4511 else
4512 am_cv_CXX_dependencies_compiler_type=none
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4517 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4518 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4521 test "x$enable_dependency_tracking" != xno \
4522 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4523 am__fastdepCXX_TRUE=
4524 am__fastdepCXX_FALSE='#'
4525 else
4526 am__fastdepCXX_TRUE='#'
4527 am__fastdepCXX_FALSE=
4531 ac_ext=cpp
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4537 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4538 if test -z "$CXXCPP"; then
4539 if ${ac_cv_prog_CXXCPP+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 # Double quotes because CXXCPP needs to be expanded
4543 for CXXCPP in "$CXX -E" "/lib/cpp"
4545 ac_preproc_ok=false
4546 for ac_cxx_preproc_warn_flag in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if ac_fn_cxx_try_cpp "$LINENO"; then :
4565 else
4566 # Broken: fails on valid input.
4567 continue
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_cxx_try_cpp "$LINENO"; then :
4578 # Broken: success on invalid input.
4579 continue
4580 else
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4591 break
4594 done
4595 ac_cv_prog_CXXCPP=$CXXCPP
4598 CXXCPP=$ac_cv_prog_CXXCPP
4599 else
4600 ac_cv_prog_CXXCPP=$CXXCPP
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4603 $as_echo "$CXXCPP" >&6; }
4604 ac_preproc_ok=false
4605 for ac_cxx_preproc_warn_flag in '' yes
4607 # Use a header file that comes with gcc, so configuring glibc
4608 # with a fresh cross-compiler works.
4609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4610 # <limits.h> exists even on freestanding compilers.
4611 # On the NeXT, cc -E runs the code through the compiler's parser,
4612 # not just through cpp. "Syntax error" is here to catch this case.
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 #ifdef __STDC__
4616 # include <limits.h>
4617 #else
4618 # include <assert.h>
4619 #endif
4620 Syntax error
4621 _ACEOF
4622 if ac_fn_cxx_try_cpp "$LINENO"; then :
4624 else
4625 # Broken: fails on valid input.
4626 continue
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4630 # OK, works on sane cases. Now check whether nonexistent headers
4631 # can be detected and how.
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <ac_nonexistent.h>
4635 _ACEOF
4636 if ac_fn_cxx_try_cpp "$LINENO"; then :
4637 # Broken: success on invalid input.
4638 continue
4639 else
4640 # Passes both tests.
4641 ac_preproc_ok=:
4642 break
4644 rm -f conftest.err conftest.i conftest.$ac_ext
4646 done
4647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4648 rm -f conftest.i conftest.err conftest.$ac_ext
4649 if $ac_preproc_ok; then :
4651 else
4652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4655 See \`config.log' for more details" "$LINENO" 5; }
4658 ac_ext=c
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664 ac_ext=c
4665 ac_cpp='$CPP $CPPFLAGS'
4666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_CC+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$CC"; then
4678 ac_cv_prog_CC="$CC" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 CC=$ac_cv_prog_CC
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$ac_cv_prog_CC"; then
4709 ac_ct_CC=$CC
4710 # Extract the first word of "gcc", so it can be a program name with args.
4711 set dummy gcc; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$ac_ct_CC"; then
4718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_ac_ct_CC="gcc"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4731 done
4732 done
4733 IFS=$as_save_IFS
4737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4738 if test -n "$ac_ct_CC"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4740 $as_echo "$ac_ct_CC" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4746 if test "x$ac_ct_CC" = x; then
4747 CC=""
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750 yes:)
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755 CC=$ac_ct_CC
4757 else
4758 CC="$ac_cv_prog_CC"
4761 if test -z "$CC"; then
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}cc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_prog_CC+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="${ac_tool_prefix}cc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 CC=$ac_cv_prog_CC
4791 if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793 $as_echo "$CC" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4802 if test -z "$CC"; then
4803 # Extract the first word of "cc", so it can be a program name with args.
4804 set dummy cc; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_CC+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 else
4813 ac_prog_rejected=no
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4822 ac_prog_rejected=yes
4823 continue
4825 ac_cv_prog_CC="cc"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4833 if test $ac_prog_rejected = yes; then
4834 # We found a bogon in the path, so make sure we never use it.
4835 set dummy $ac_cv_prog_CC
4836 shift
4837 if test $# != 0; then
4838 # We chose a different compiler from the bogus one.
4839 # However, it has the same basename, so the bogon will be chosen
4840 # first if we set CC to just the basename; use the full file name.
4841 shift
4842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4858 if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 for ac_prog in cl.exe
4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_CC+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$CC"; then
4870 ac_cv_prog_CC="$CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 CC=$ac_cv_prog_CC
4890 if test -n "$CC"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892 $as_echo "$CC" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 test -n "$CC" && break
4900 done
4902 if test -z "$CC"; then
4903 ac_ct_CC=$CC
4904 for ac_prog in cl.exe
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_CC"; then
4914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_ac_ct_CC="$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4934 if test -n "$ac_ct_CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4936 $as_echo "$ac_ct_CC" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 test -n "$ac_ct_CC" && break
4944 done
4946 if test "x$ac_ct_CC" = x; then
4947 CC=""
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955 CC=$ac_ct_CC
4962 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error $? "no acceptable C compiler found in \$PATH
4965 See \`config.log' for more details" "$LINENO" 5; }
4967 # Provide some information about the compiler.
4968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4969 set X $ac_compile
4970 ac_compiler=$2
4971 for ac_option in --version -v -V -qversion; do
4972 { { ac_try="$ac_compiler $ac_option >&5"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978 $as_echo "$ac_try_echo"; } >&5
4979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4980 ac_status=$?
4981 if test -s conftest.err; then
4982 sed '10a\
4983 ... rest of stderr output deleted ...
4984 10q' conftest.err >conftest.er1
4985 cat conftest.er1 >&5
4987 rm -f conftest.er1 conftest.err
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }
4990 done
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4994 if ${ac_cv_c_compiler_gnu+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 main ()
5003 #ifndef __GNUC__
5004 choke me
5005 #endif
5008 return 0;
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_compiler_gnu=yes
5013 else
5014 ac_compiler_gnu=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5022 if test $ac_compiler_gnu = yes; then
5023 GCC=yes
5024 else
5025 GCC=
5027 ac_test_CFLAGS=${CFLAGS+set}
5028 ac_save_CFLAGS=$CFLAGS
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5031 if ${ac_cv_prog_cc_g+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 ac_save_c_werror_flag=$ac_c_werror_flag
5035 ac_c_werror_flag=yes
5036 ac_cv_prog_cc_g=no
5037 CFLAGS="-g"
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5042 main ()
5046 return 0;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_prog_cc_g=yes
5051 else
5052 CFLAGS=""
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5057 main ()
5061 return 0;
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5066 else
5067 ac_c_werror_flag=$ac_save_c_werror_flag
5068 CFLAGS="-g"
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5073 main ()
5077 return 0;
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_cv_prog_cc_g=yes
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5091 $as_echo "$ac_cv_prog_cc_g" >&6; }
5092 if test "$ac_test_CFLAGS" = set; then
5093 CFLAGS=$ac_save_CFLAGS
5094 elif test $ac_cv_prog_cc_g = yes; then
5095 if test "$GCC" = yes; then
5096 CFLAGS="-g -O2"
5097 else
5098 CFLAGS="-g"
5100 else
5101 if test "$GCC" = yes; then
5102 CFLAGS="-O2"
5103 else
5104 CFLAGS=
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5109 if ${ac_cv_prog_cc_c89+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 ac_cv_prog_cc_c89=no
5113 ac_save_CC=$CC
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <stdarg.h>
5117 #include <stdio.h>
5118 struct stat;
5119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5120 struct buf { int x; };
5121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5122 static char *e (p, i)
5123 char **p;
5124 int i;
5126 return p[i];
5128 static char *f (char * (*g) (char **, int), char **p, ...)
5130 char *s;
5131 va_list v;
5132 va_start (v,p);
5133 s = g (p, va_arg (v,int));
5134 va_end (v);
5135 return s;
5138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5139 function prototypes and stuff, but not '\xHH' hex character constants.
5140 These don't provoke an error unfortunately, instead are silently treated
5141 as 'x'. The following induces an error, until -std is added to get
5142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5143 array size at least. It's necessary to write '\x00'==0 to get something
5144 that's true only with -std. */
5145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5148 inside strings and character constants. */
5149 #define FOO(x) 'x'
5150 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5152 int test (int i, double x);
5153 struct s1 {int (*f) (int a);};
5154 struct s2 {int (*f) (double a);};
5155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5156 int argc;
5157 char **argv;
5159 main ()
5161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5163 return 0;
5165 _ACEOF
5166 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5169 CC="$ac_save_CC $ac_arg"
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_prog_cc_c89=$ac_arg
5173 rm -f core conftest.err conftest.$ac_objext
5174 test "x$ac_cv_prog_cc_c89" != "xno" && break
5175 done
5176 rm -f conftest.$ac_ext
5177 CC=$ac_save_CC
5180 # AC_CACHE_VAL
5181 case "x$ac_cv_prog_cc_c89" in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5184 $as_echo "none needed" >&6; } ;;
5185 xno)
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5187 $as_echo "unsupported" >&6; } ;;
5189 CC="$CC $ac_cv_prog_cc_c89"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5191 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5192 esac
5193 if test "x$ac_cv_prog_cc_c89" != xno; then :
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5209 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5210 if ${am_cv_prog_cc_c_o+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5217 main ()
5221 return 0;
5223 _ACEOF
5224 # Make sure it works both with $CC and with simple cc.
5225 # Following AC_PROG_CC_C_O, we do the test twice because some
5226 # compilers refuse to overwrite an existing .o file with -o,
5227 # though they will create one.
5228 am_cv_prog_cc_c_o=yes
5229 for am_i in 1 2; do
5230 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5231 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } \
5235 && test -f conftest2.$ac_objext; then
5236 : OK
5237 else
5238 am_cv_prog_cc_c_o=no
5239 break
5241 done
5242 rm -f core conftest*
5243 unset am_i
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5246 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5247 if test "$am_cv_prog_cc_c_o" != yes; then
5248 # Losing compiler, so override with the script.
5249 # FIXME: It is wrong to rewrite CC.
5250 # But if we don't then we get into trouble of one sort or another.
5251 # A longer-term fix would be to have automake use am__CC in this case,
5252 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5253 CC="$am_aux_dir/compile $CC"
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 depcc="$CC" am_compiler_list=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named 'D' -- because '-MD' means "put the output
5274 # in D".
5275 rm -rf conftest.dir
5276 mkdir conftest.dir
5277 # Copy depcomp to subdir because otherwise we won't find it if we're
5278 # using a relative directory.
5279 cp "$am_depcomp" conftest.dir
5280 cd conftest.dir
5281 # We will build objects and dependencies in a subdirectory because
5282 # it helps to detect inapplicable dependency modes. For instance
5283 # both Tru64's cc and ICC support -MD to output dependencies as a
5284 # side effect of compilation, but ICC will put the dependencies in
5285 # the current directory while Tru64 will put them in the object
5286 # directory.
5287 mkdir sub
5289 am_cv_CC_dependencies_compiler_type=none
5290 if test "$am_compiler_list" = ""; then
5291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5293 am__universal=false
5294 case " $depcc " in #(
5295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5296 esac
5298 for depmode in $am_compiler_list; do
5299 # Setup a source with many dependencies, because some compilers
5300 # like to wrap large dependency lists on column 80 (with \), and
5301 # we should not choose a depcomp mode which is confused by this.
5303 # We need to recreate these files for each test, as the compiler may
5304 # overwrite some of them when testing with obscure command lines.
5305 # This happens at least with the AIX C compiler.
5306 : > sub/conftest.c
5307 for i in 1 2 3 4 5 6; do
5308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5310 # Solaris 10 /bin/sh.
5311 echo '/* dummy */' > sub/conftst$i.h
5312 done
5313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5316 # mode. It turns out that the SunPro C++ compiler does not properly
5317 # handle '-M -o', and we need to detect this. Also, some Intel
5318 # versions had trouble with output in subdirs.
5319 am__obj=sub/conftest.${OBJEXT-o}
5320 am__minus_obj="-o $am__obj"
5321 case $depmode in
5322 gcc)
5323 # This depmode causes a compiler race in universal mode.
5324 test "$am__universal" = false || continue
5326 nosideeffect)
5327 # After this tag, mechanisms are not by side-effect, so they'll
5328 # only be used when explicitly requested.
5329 if test "x$enable_dependency_tracking" = xyes; then
5330 continue
5331 else
5332 break
5335 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5336 # This compiler won't grok '-c -o', but also, the minuso test has
5337 # not run yet. These depmodes are late enough in the game, and
5338 # so weak that their functioning should not be impacted.
5339 am__obj=conftest.${OBJEXT-o}
5340 am__minus_obj=
5342 none) break ;;
5343 esac
5344 if depmode=$depmode \
5345 source=sub/conftest.c object=$am__obj \
5346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5348 >/dev/null 2>conftest.err &&
5349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5353 # icc doesn't choke on unknown options, it will just issue warnings
5354 # or remarks (even with -Werror). So we grep stderr for any message
5355 # that says an option was ignored or not supported.
5356 # When given -MP, icc 7.0 and 7.1 complain thusly:
5357 # icc: Command line warning: ignoring option '-M'; no argument required
5358 # The diagnosis changed in icc 8.0:
5359 # icc: Command line remark: option '-MP' not supported
5360 if (grep 'ignoring option' conftest.err ||
5361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5362 am_cv_CC_dependencies_compiler_type=$depmode
5363 break
5366 done
5368 cd ..
5369 rm -rf conftest.dir
5370 else
5371 am_cv_CC_dependencies_compiler_type=none
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5380 test "x$enable_dependency_tracking" != xno \
5381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5382 am__fastdepCC_TRUE=
5383 am__fastdepCC_FALSE='#'
5384 else
5385 am__fastdepCC_TRUE='#'
5386 am__fastdepCC_FALSE=
5390 ac_ext=c
5391 ac_cpp='$CPP $CPPFLAGS'
5392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5396 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5397 # On Suns, sometimes $CPP names a directory.
5398 if test -n "$CPP" && test -d "$CPP"; then
5399 CPP=
5401 if test -z "$CPP"; then
5402 if ${ac_cv_prog_CPP+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 # Double quotes because CPP needs to be expanded
5406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5408 ac_preproc_ok=false
5409 for ac_c_preproc_warn_flag in '' yes
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 # <limits.h> exists even on freestanding compilers.
5415 # On the NeXT, cc -E runs the code through the compiler's parser,
5416 # not just through cpp. "Syntax error" is here to catch this case.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #ifdef __STDC__
5420 # include <limits.h>
5421 #else
5422 # include <assert.h>
5423 #endif
5424 Syntax error
5425 _ACEOF
5426 if ac_fn_c_try_cpp "$LINENO"; then :
5428 else
5429 # Broken: fails on valid input.
5430 continue
5432 rm -f conftest.err conftest.i conftest.$ac_ext
5434 # OK, works on sane cases. Now check whether nonexistent headers
5435 # can be detected and how.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if ac_fn_c_try_cpp "$LINENO"; then :
5441 # Broken: success on invalid input.
5442 continue
5443 else
5444 # Passes both tests.
5445 ac_preproc_ok=:
5446 break
5448 rm -f conftest.err conftest.i conftest.$ac_ext
5450 done
5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452 rm -f conftest.i conftest.err conftest.$ac_ext
5453 if $ac_preproc_ok; then :
5454 break
5457 done
5458 ac_cv_prog_CPP=$CPP
5461 CPP=$ac_cv_prog_CPP
5462 else
5463 ac_cv_prog_CPP=$CPP
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5466 $as_echo "$CPP" >&6; }
5467 ac_preproc_ok=false
5468 for ac_c_preproc_warn_flag in '' yes
5470 # Use a header file that comes with gcc, so configuring glibc
5471 # with a fresh cross-compiler works.
5472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5473 # <limits.h> exists even on freestanding compilers.
5474 # On the NeXT, cc -E runs the code through the compiler's parser,
5475 # not just through cpp. "Syntax error" is here to catch this case.
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #ifdef __STDC__
5479 # include <limits.h>
5480 #else
5481 # include <assert.h>
5482 #endif
5483 Syntax error
5484 _ACEOF
5485 if ac_fn_c_try_cpp "$LINENO"; then :
5487 else
5488 # Broken: fails on valid input.
5489 continue
5491 rm -f conftest.err conftest.i conftest.$ac_ext
5493 # OK, works on sane cases. Now check whether nonexistent headers
5494 # can be detected and how.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <ac_nonexistent.h>
5498 _ACEOF
5499 if ac_fn_c_try_cpp "$LINENO"; then :
5500 # Broken: success on invalid input.
5501 continue
5502 else
5503 # Passes both tests.
5504 ac_preproc_ok=:
5505 break
5507 rm -f conftest.err conftest.i conftest.$ac_ext
5509 done
5510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5511 rm -f conftest.i conftest.err conftest.$ac_ext
5512 if $ac_preproc_ok; then :
5514 else
5515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5518 See \`config.log' for more details" "$LINENO" 5; }
5521 ac_ext=c
5522 ac_cpp='$CPP $CPPFLAGS'
5523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527 ac_build_prefix=
5528 test -n "$build_alias" && ac_build_prefix=$build_alias-
5530 if test "$cross_compiling" = yes; then :
5532 # Even if we're cross-compiling, we want a compiler here
5533 # that is not a cross-compiler.
5534 saved_cross=$cross_compiling
5535 cross_compiling=no
5537 ac_ext=c
5538 ac_cpp='$CPP $BUILD_CPPFLAGS'
5539 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542 if test -n "$ac_build_prefix"; then
5543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5544 set dummy ${ac_build_prefix}gcc; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_BUILD_CC+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$BUILD_CC"; then
5551 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 BUILD_CC=$ac_cv_prog_BUILD_CC
5571 if test -n "$BUILD_CC"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5573 $as_echo "$BUILD_CC" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5581 if test -z "$ac_cv_prog_BUILD_CC"; then
5582 ac_ct_BUILD_CC=$BUILD_CC
5583 # Extract the first word of "gcc", so it can be a program name with args.
5584 set dummy gcc; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_BUILD_CC"; then
5591 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5611 if test -n "$ac_ct_BUILD_CC"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5613 $as_echo "$ac_ct_BUILD_CC" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5619 if test "x$ac_ct_BUILD_CC" = x; then
5620 BUILD_CC=""
5621 else
5622 case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628 BUILD_CC=$ac_ct_BUILD_CC
5630 else
5631 BUILD_CC="$ac_cv_prog_BUILD_CC"
5634 if test -z "$BUILD_CC"; then
5635 if test -n "$ac_build_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5637 set dummy ${ac_build_prefix}cc; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_BUILD_CC+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$BUILD_CC"; then
5644 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 BUILD_CC=$ac_cv_prog_BUILD_CC
5664 if test -n "$BUILD_CC"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5666 $as_echo "$BUILD_CC" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5674 if test -z "$ac_cv_prog_BUILD_CC"; then
5675 ac_ct_BUILD_CC=$BUILD_CC
5676 # Extract the first word of "cc", so it can be a program name with args.
5677 set dummy cc; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$ac_ct_BUILD_CC"; then
5684 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_ac_ct_BUILD_CC="cc"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5703 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5704 if test -n "$ac_ct_BUILD_CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5706 $as_echo "$ac_ct_BUILD_CC" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5712 if test "x$ac_ct_BUILD_CC" = x; then
5713 BUILD_CC=""
5714 else
5715 case $cross_compiling:$ac_tool_warned in
5716 yes:)
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5719 ac_tool_warned=yes ;;
5720 esac
5721 BUILD_CC=$ac_ct_BUILD_CC
5723 else
5724 BUILD_CC="$ac_cv_prog_BUILD_CC"
5728 if test -z "$BUILD_CC"; then
5729 # Extract the first word of "cc", so it can be a program name with args.
5730 set dummy cc; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_BUILD_CC+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -n "$BUILD_CC"; then
5737 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5738 else
5739 ac_prog_rejected=no
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5748 ac_prog_rejected=yes
5749 continue
5751 ac_cv_prog_BUILD_CC="cc"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5755 done
5756 done
5757 IFS=$as_save_IFS
5759 if test $ac_prog_rejected = yes; then
5760 # We found a bogon in the path, so make sure we never use it.
5761 set dummy $ac_cv_prog_BUILD_CC
5762 shift
5763 if test $# != 0; then
5764 # We chose a different compiler from the bogus one.
5765 # However, it has the same basename, so the bogon will be chosen
5766 # first if we set BUILD_CC to just the basename; use the full file name.
5767 shift
5768 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5773 BUILD_CC=$ac_cv_prog_BUILD_CC
5774 if test -n "$BUILD_CC"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5776 $as_echo "$BUILD_CC" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5784 if test -z "$BUILD_CC"; then
5785 if test -n "$ac_build_prefix"; then
5786 for ac_prog in cl
5788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5789 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_prog_BUILD_CC+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test -n "$BUILD_CC"; then
5796 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5809 done
5810 done
5811 IFS=$as_save_IFS
5815 BUILD_CC=$ac_cv_prog_BUILD_CC
5816 if test -n "$BUILD_CC"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5818 $as_echo "$BUILD_CC" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5825 test -n "$BUILD_CC" && break
5826 done
5828 if test -z "$BUILD_CC"; then
5829 ac_ct_BUILD_CC=$BUILD_CC
5830 for ac_prog in cl
5832 # Extract the first word of "$ac_prog", so it can be a program name with args.
5833 set dummy $ac_prog; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$ac_ct_BUILD_CC"; then
5840 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5853 done
5854 done
5855 IFS=$as_save_IFS
5859 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5860 if test -n "$ac_ct_BUILD_CC"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5862 $as_echo "$ac_ct_BUILD_CC" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5869 test -n "$ac_ct_BUILD_CC" && break
5870 done
5872 if test "x$ac_ct_BUILD_CC" = x; then
5873 BUILD_CC=""
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881 BUILD_CC=$ac_ct_BUILD_CC
5888 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 as_fn_error $? "no acceptable C compiler found in \$PATH
5891 See \`config.log' for more details" "$LINENO" 5; }
5893 # Provide some information about the compiler.
5894 echo "$as_me:$LINENO:" \
5895 "checking for C compiler version" >&5
5896 ac_compiler=`set X $ac_compile; echo $2`
5897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5898 (eval $ac_compiler --version </dev/null >&5) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }
5902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5903 (eval $ac_compiler -v </dev/null >&5) 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; }
5907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5908 (eval $ac_compiler -V </dev/null >&5) 2>&5
5909 ac_status=$?
5910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5911 test $ac_status = 0; }
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5917 main ()
5921 return 0;
5923 _ACEOF
5924 ac_clean_files_save=$ac_clean_files
5925 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5926 # Try to create an executable without -o first, disregard a.out.
5927 # It will help us diagnose broken compilers, and finding out an intuition
5928 # of exeext.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5930 $as_echo_n "checking whether the C compiler works... " >&6; }
5931 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5933 # The possible output files:
5934 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5936 ac_rmfiles=
5937 for ac_file in $ac_files
5939 case $ac_file in
5940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5941 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5942 esac
5943 done
5944 rm -f $ac_rmfiles
5946 if { { ac_try="$ac_link_default"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5952 $as_echo "$ac_try_echo"; } >&5
5953 (eval "$ac_link_default") 2>&5
5954 ac_status=$?
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956 test $ac_status = 0; }; then :
5957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5958 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5959 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5960 # so that the user can short-circuit this test for compilers unknown to
5961 # Autoconf.
5962 for ac_file in $ac_files ''
5964 test -f "$ac_file" || continue
5965 case $ac_file in
5966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5968 [ab].out )
5969 # We found the default executable, but exeext='' is most
5970 # certainly right.
5971 break;;
5972 *.* )
5973 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5974 then :; else
5975 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5977 # We set ac_cv_exeext here because the later test for it is not
5978 # safe: cross compilers may not add the suffix if given an `-o'
5979 # argument, so we may need to know it at that point already.
5980 # Even if this section looks crufty: it has the advantage of
5981 # actually working.
5982 break;;
5984 break;;
5985 esac
5986 done
5987 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5989 else
5990 ac_file=''
5992 if test -z "$ac_file"; then :
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 $as_echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 as_fn_error 77 "C compiler cannot create executables
6001 See \`config.log' for more details" "$LINENO" 5; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004 $as_echo "yes" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6007 $as_echo_n "checking for C compiler default output file name... " >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6009 $as_echo "$ac_file" >&6; }
6010 ac_build_exeext=$ac_cv_build_exeext
6012 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6013 ac_clean_files=$ac_clean_files_save
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6015 $as_echo_n "checking for suffix of executables... " >&6; }
6016 if { { ac_try="$ac_link"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6022 $as_echo "$ac_try_echo"; } >&5
6023 (eval "$ac_link") 2>&5
6024 ac_status=$?
6025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; then :
6027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6029 # work properly (i.e., refer to `conftest.exe'), while it won't with
6030 # `rm'.
6031 for ac_file in conftest.exe conftest conftest.*; do
6032 test -f "$ac_file" || continue
6033 case $ac_file in
6034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6035 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6036 break;;
6037 * ) break;;
6038 esac
6039 done
6040 else
6041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6043 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6044 See \`config.log' for more details" "$LINENO" 5; }
6046 rm -f conftest conftest$ac_cv_build_exeext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6048 $as_echo "$ac_cv_build_exeext" >&6; }
6050 rm -f conftest.$ac_ext
6051 BUILD_EXEEXT=$ac_cv_build_exeext
6052 ac_build_exeext=$BUILD_EXEEXT
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <stdio.h>
6057 main ()
6059 FILE *f = fopen ("conftest.out", "w");
6060 return ferror (f) || fclose (f) != 0;
6063 return 0;
6065 _ACEOF
6066 ac_clean_files="$ac_clean_files conftest.out"
6067 # Check that the compiler produces executables we can run. If not, either
6068 # the compiler is broken, or we cross compile.
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6070 $as_echo_n "checking whether we are cross compiling... " >&6; }
6071 if test "$cross_compiling" != yes; then
6072 { { ac_try="$ac_link"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6078 $as_echo "$ac_try_echo"; } >&5
6079 (eval "$ac_link") 2>&5
6080 ac_status=$?
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }
6083 if { ac_try='./conftest$ac_cv_build_exeext'
6084 { { case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087 esac
6088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6089 $as_echo "$ac_try_echo"; } >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }; }; then
6094 cross_compiling=no
6095 else
6096 if test "$cross_compiling" = maybe; then
6097 cross_compiling=yes
6098 else
6099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6101 as_fn_error $? "cannot run C compiled programs.
6102 If you meant to cross compile, use \`--host'.
6103 See \`config.log' for more details" "$LINENO" 5; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6108 $as_echo "$cross_compiling" >&6; }
6110 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6111 ac_clean_files=$ac_clean_files_save
6114 # Restore configuration environment
6115 cross_compiling=$saved_cross
6117 ac_ext=c
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123 else
6124 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
6126 CFLAGS="$mule_backup_CFLAGS"
6127 CXXFLAGS="$mule_backup_CXXFLAGS"
6128 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
6129 for ac_prog in gawk mawk nawk awk
6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_AWK+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$AWK"; then
6139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_AWK="$ac_prog"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 AWK=$ac_cv_prog_AWK
6159 if test -n "$AWK"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6161 $as_echo "$AWK" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6168 test -n "$AWK" && break
6169 done
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6172 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6173 if ${ac_cv_path_GREP+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -z "$GREP"; then
6177 ac_path_GREP_found=false
6178 # Loop through the user's path and test for each of PROGNAME-LIST
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_prog in grep ggrep; do
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6187 as_fn_executable_p "$ac_path_GREP" || continue
6188 # Check for GNU ac_path_GREP and select it if it is found.
6189 # Check for GNU $ac_path_GREP
6190 case `"$ac_path_GREP" --version 2>&1` in
6191 *GNU*)
6192 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6194 ac_count=0
6195 $as_echo_n 0123456789 >"conftest.in"
6196 while :
6198 cat "conftest.in" "conftest.in" >"conftest.tmp"
6199 mv "conftest.tmp" "conftest.in"
6200 cp "conftest.in" "conftest.nl"
6201 $as_echo 'GREP' >> "conftest.nl"
6202 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6204 as_fn_arith $ac_count + 1 && ac_count=$as_val
6205 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6206 # Best one so far, save it but keep looking for a better one
6207 ac_cv_path_GREP="$ac_path_GREP"
6208 ac_path_GREP_max=$ac_count
6210 # 10*(2^10) chars as input seems more than enough
6211 test $ac_count -gt 10 && break
6212 done
6213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6214 esac
6216 $ac_path_GREP_found && break 3
6217 done
6218 done
6219 done
6220 IFS=$as_save_IFS
6221 if test -z "$ac_cv_path_GREP"; then
6222 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6224 else
6225 ac_cv_path_GREP=$GREP
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6230 $as_echo "$ac_cv_path_GREP" >&6; }
6231 GREP="$ac_cv_path_GREP"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6235 $as_echo_n "checking for egrep... " >&6; }
6236 if ${ac_cv_path_EGREP+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6240 then ac_cv_path_EGREP="$GREP -E"
6241 else
6242 if test -z "$EGREP"; then
6243 ac_path_EGREP_found=false
6244 # Loop through the user's path and test for each of PROGNAME-LIST
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_prog in egrep; do
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6253 as_fn_executable_p "$ac_path_EGREP" || continue
6254 # Check for GNU ac_path_EGREP and select it if it is found.
6255 # Check for GNU $ac_path_EGREP
6256 case `"$ac_path_EGREP" --version 2>&1` in
6257 *GNU*)
6258 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6260 ac_count=0
6261 $as_echo_n 0123456789 >"conftest.in"
6262 while :
6264 cat "conftest.in" "conftest.in" >"conftest.tmp"
6265 mv "conftest.tmp" "conftest.in"
6266 cp "conftest.in" "conftest.nl"
6267 $as_echo 'EGREP' >> "conftest.nl"
6268 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6270 as_fn_arith $ac_count + 1 && ac_count=$as_val
6271 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6272 # Best one so far, save it but keep looking for a better one
6273 ac_cv_path_EGREP="$ac_path_EGREP"
6274 ac_path_EGREP_max=$ac_count
6276 # 10*(2^10) chars as input seems more than enough
6277 test $ac_count -gt 10 && break
6278 done
6279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6280 esac
6282 $ac_path_EGREP_found && break 3
6283 done
6284 done
6285 done
6286 IFS=$as_save_IFS
6287 if test -z "$ac_cv_path_EGREP"; then
6288 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6290 else
6291 ac_cv_path_EGREP=$EGREP
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6297 $as_echo "$ac_cv_path_EGREP" >&6; }
6298 EGREP="$ac_cv_path_EGREP"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6302 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6303 set x ${MAKE-make}
6304 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6305 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat >conftest.make <<\_ACEOF
6309 SHELL = /bin/sh
6310 all:
6311 @echo '@@@%%%=$(MAKE)=@@@%%%'
6312 _ACEOF
6313 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6314 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6315 *@@@%%%=?*=@@@%%%*)
6316 eval ac_cv_prog_make_${ac_make}_set=yes;;
6318 eval ac_cv_prog_make_${ac_make}_set=no;;
6319 esac
6320 rm -f conftest.make
6322 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6324 $as_echo "yes" >&6; }
6325 SET_MAKE=
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 SET_MAKE="MAKE=${MAKE-make}"
6333 for ac_prog in flex lex
6335 # Extract the first word of "$ac_prog", so it can be a program name with args.
6336 set dummy $ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_LEX+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$LEX"; then
6343 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_LEX="$ac_prog"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6356 done
6357 done
6358 IFS=$as_save_IFS
6362 LEX=$ac_cv_prog_LEX
6363 if test -n "$LEX"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6365 $as_echo "$LEX" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6372 test -n "$LEX" && break
6373 done
6374 test -n "$LEX" || LEX=":"
6376 if test "x$LEX" != "x:"; then
6377 cat >conftest.l <<_ACEOF
6379 a { ECHO; }
6380 b { REJECT; }
6381 c { yymore (); }
6382 d { yyless (1); }
6383 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6384 yyless ((input () != 0)); }
6385 f { unput (yytext[0]); }
6386 . { BEGIN INITIAL; }
6388 #ifdef YYTEXT_POINTER
6389 extern char *yytext;
6390 #endif
6392 main (void)
6394 return ! yylex () + ! yywrap ();
6396 _ACEOF
6397 { { ac_try="$LEX conftest.l"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6403 $as_echo "$ac_try_echo"; } >&5
6404 (eval "$LEX conftest.l") 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6409 $as_echo_n "checking lex output file root... " >&6; }
6410 if ${ac_cv_prog_lex_root+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6414 if test -f lex.yy.c; then
6415 ac_cv_prog_lex_root=lex.yy
6416 elif test -f lexyy.c; then
6417 ac_cv_prog_lex_root=lexyy
6418 else
6419 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6423 $as_echo "$ac_cv_prog_lex_root" >&6; }
6424 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6426 if test -z "${LEXLIB+set}"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6428 $as_echo_n "checking lex library... " >&6; }
6429 if ${ac_cv_lib_lex+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6433 ac_save_LIBS=$LIBS
6434 ac_cv_lib_lex='none needed'
6435 for ac_lib in '' -lfl -ll; do
6436 LIBS="$ac_lib $ac_save_LIBS"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 `cat $LEX_OUTPUT_ROOT.c`
6440 _ACEOF
6441 if ac_fn_c_try_link "$LINENO"; then :
6442 ac_cv_lib_lex=$ac_lib
6444 rm -f core conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext conftest.$ac_ext
6446 test "$ac_cv_lib_lex" != 'none needed' && break
6447 done
6448 LIBS=$ac_save_LIBS
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6452 $as_echo "$ac_cv_lib_lex" >&6; }
6453 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6458 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6459 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 # POSIX says lex can declare yytext either as a pointer or an array; the
6463 # default is implementation-dependent. Figure out which it is, since
6464 # not all implementations provide the %pointer and %array declarations.
6465 ac_cv_prog_lex_yytext_pointer=no
6466 ac_save_LIBS=$LIBS
6467 LIBS="$LEXLIB $ac_save_LIBS"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 #define YYTEXT_POINTER 1
6472 `cat $LEX_OUTPUT_ROOT.c`
6473 _ACEOF
6474 if ac_fn_c_try_link "$LINENO"; then :
6475 ac_cv_prog_lex_yytext_pointer=yes
6477 rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6479 LIBS=$ac_save_LIBS
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6483 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6484 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6486 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6489 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_RANLIB+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$RANLIB"; then
6502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6515 done
6516 done
6517 IFS=$as_save_IFS
6521 RANLIB=$ac_cv_prog_RANLIB
6522 if test -n "$RANLIB"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6524 $as_echo "$RANLIB" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6532 if test -z "$ac_cv_prog_RANLIB"; then
6533 ac_ct_RANLIB=$RANLIB
6534 # Extract the first word of "ranlib", so it can be a program name with args.
6535 set dummy ranlib; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$ac_ct_RANLIB"; then
6542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_RANLIB="ranlib"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6562 if test -n "$ac_ct_RANLIB"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6564 $as_echo "$ac_ct_RANLIB" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6570 if test "x$ac_ct_RANLIB" = x; then
6571 RANLIB=":"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579 RANLIB=$ac_ct_RANLIB
6581 else
6582 RANLIB="$ac_cv_prog_RANLIB"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6586 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6587 if ${ac_cv_path_SED+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6591 for ac_i in 1 2 3 4 5 6 7; do
6592 ac_script="$ac_script$as_nl$ac_script"
6593 done
6594 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6595 { ac_script=; unset ac_script;}
6596 if test -z "$SED"; then
6597 ac_path_SED_found=false
6598 # Loop through the user's path and test for each of PROGNAME-LIST
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_prog in sed gsed; do
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6607 as_fn_executable_p "$ac_path_SED" || continue
6608 # Check for GNU ac_path_SED and select it if it is found.
6609 # Check for GNU $ac_path_SED
6610 case `"$ac_path_SED" --version 2>&1` in
6611 *GNU*)
6612 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6614 ac_count=0
6615 $as_echo_n 0123456789 >"conftest.in"
6616 while :
6618 cat "conftest.in" "conftest.in" >"conftest.tmp"
6619 mv "conftest.tmp" "conftest.in"
6620 cp "conftest.in" "conftest.nl"
6621 $as_echo '' >> "conftest.nl"
6622 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6624 as_fn_arith $ac_count + 1 && ac_count=$as_val
6625 if test $ac_count -gt ${ac_path_SED_max-0}; then
6626 # Best one so far, save it but keep looking for a better one
6627 ac_cv_path_SED="$ac_path_SED"
6628 ac_path_SED_max=$ac_count
6630 # 10*(2^10) chars as input seems more than enough
6631 test $ac_count -gt 10 && break
6632 done
6633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6634 esac
6636 $ac_path_SED_found && break 3
6637 done
6638 done
6639 done
6640 IFS=$as_save_IFS
6641 if test -z "$ac_cv_path_SED"; then
6642 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6644 else
6645 ac_cv_path_SED=$SED
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6650 $as_echo "$ac_cv_path_SED" >&6; }
6651 SED="$ac_cv_path_SED"
6652 rm -f conftest.sed
6654 for ac_prog in 'bison -y' byacc
6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_YACC+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$YACC"; then
6664 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_YACC="$ac_prog"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 YACC=$ac_cv_prog_YACC
6684 if test -n "$YACC"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6686 $as_echo "$YACC" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6693 test -n "$YACC" && break
6694 done
6695 test -n "$YACC" || YACC="yacc"
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_RANLIB+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$RANLIB"; then
6707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 RANLIB=$ac_cv_prog_RANLIB
6727 if test -n "$RANLIB"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6729 $as_echo "$RANLIB" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_RANLIB"; then
6738 ac_ct_RANLIB=$RANLIB
6739 # Extract the first word of "ranlib", so it can be a program name with args.
6740 set dummy ranlib; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_RANLIB"; then
6747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_RANLIB="ranlib"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6767 if test -n "$ac_ct_RANLIB"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6769 $as_echo "$ac_ct_RANLIB" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_RANLIB" = x; then
6776 RANLIB=""
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 RANLIB=$ac_ct_RANLIB
6786 else
6787 RANLIB="$ac_cv_prog_RANLIB"
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}strip; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_STRIP+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$STRIP"; then
6799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 STRIP=$ac_cv_prog_STRIP
6819 if test -n "$STRIP"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6821 $as_echo "$STRIP" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_STRIP"; then
6830 ac_ct_STRIP=$STRIP
6831 # Extract the first word of "strip", so it can be a program name with args.
6832 set dummy strip; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_STRIP"; then
6839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_STRIP="strip"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6859 if test -n "$ac_ct_STRIP"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6861 $as_echo "$ac_ct_STRIP" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_STRIP" = x; then
6868 STRIP=""
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 STRIP=$ac_ct_STRIP
6878 else
6879 STRIP="$ac_cv_prog_STRIP"
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ar; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_AR+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$AR"; then
6891 ac_cv_prog_AR="$AR" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_AR="${ac_tool_prefix}ar"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6904 done
6905 done
6906 IFS=$as_save_IFS
6910 AR=$ac_cv_prog_AR
6911 if test -n "$AR"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6913 $as_echo "$AR" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_AR"; then
6922 ac_ct_AR=$AR
6923 # Extract the first word of "ar", so it can be a program name with args.
6924 set dummy ar; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_AR"; then
6931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_AR="ar"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6951 if test -n "$ac_ct_AR"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6953 $as_echo "$ac_ct_AR" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_AR" = x; then
6960 AR=""
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 AR=$ac_ct_AR
6970 else
6971 AR="$ac_cv_prog_AR"
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}ld; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_LD+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$LD"; then
6983 ac_cv_prog_LD="$LD" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_LD="${ac_tool_prefix}ld"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6996 done
6997 done
6998 IFS=$as_save_IFS
7002 LD=$ac_cv_prog_LD
7003 if test -n "$LD"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7005 $as_echo "$LD" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7013 if test -z "$ac_cv_prog_LD"; then
7014 ac_ct_LD=$LD
7015 # Extract the first word of "ld", so it can be a program name with args.
7016 set dummy ld; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_LD+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_LD"; then
7023 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_LD="ld"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7038 IFS=$as_save_IFS
7042 ac_ct_LD=$ac_cv_prog_ac_ct_LD
7043 if test -n "$ac_ct_LD"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
7045 $as_echo "$ac_ct_LD" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7051 if test "x$ac_ct_LD" = x; then
7052 LD=""
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 LD=$ac_ct_LD
7062 else
7063 LD="$ac_cv_prog_LD"
7067 # Check whether --enable-monolithic was given.
7068 if test "${enable_monolithic+set}" = set; then :
7069 enableval=$enable_monolithic;
7072 if test ${enable_monolithic:-yes} = yes; then
7073 MONOLITHIC_TRUE=
7074 MONOLITHIC_FALSE='#'
7075 else
7076 MONOLITHIC_TRUE='#'
7077 MONOLITHIC_FALSE=
7081 # Check whether --enable-amule-daemon was given.
7082 if test "${enable_amule_daemon+set}" = set; then :
7083 enableval=$enable_amule_daemon;
7086 if test ${enable_amule_daemon:-no} = yes; then
7087 AMULE_DAEMON_TRUE=
7088 AMULE_DAEMON_FALSE='#'
7089 else
7090 AMULE_DAEMON_TRUE='#'
7091 AMULE_DAEMON_FALSE=
7095 # Check whether --enable-amulecmd was given.
7096 if test "${enable_amulecmd+set}" = set; then :
7097 enableval=$enable_amulecmd;
7100 if test ${enable_amulecmd:-no} = yes; then
7101 COMPILE_CMD_TRUE=
7102 COMPILE_CMD_FALSE='#'
7103 else
7104 COMPILE_CMD_TRUE='#'
7105 COMPILE_CMD_FALSE=
7109 # Check whether --enable-webserver was given.
7110 if test "${enable_webserver+set}" = set; then :
7111 enableval=$enable_webserver;
7114 if test ${enable_webserver:-no} = yes; then
7115 WEB_TRUE=
7116 WEB_FALSE='#'
7117 else
7118 WEB_TRUE='#'
7119 WEB_FALSE=
7123 # Check whether --enable-amule-gui was given.
7124 if test "${enable_amule_gui+set}" = set; then :
7125 enableval=$enable_amule_gui;
7128 if test ${enable_amule_gui:-no} = yes; then
7129 AMULE_GUI_TRUE=
7130 AMULE_GUI_FALSE='#'
7131 else
7132 AMULE_GUI_TRUE='#'
7133 AMULE_GUI_FALSE=
7137 # Check whether --enable-cas was given.
7138 if test "${enable_cas+set}" = set; then :
7139 enableval=$enable_cas;
7142 if test ${enable_cas:-no} = yes; then
7143 CAS_TRUE=
7144 CAS_FALSE='#'
7145 else
7146 CAS_TRUE='#'
7147 CAS_FALSE=
7151 # Check whether --enable-wxcas was given.
7152 if test "${enable_wxcas+set}" = set; then :
7153 enableval=$enable_wxcas;
7156 if test ${enable_wxcas:-no} = yes; then
7157 WXCAS_TRUE=
7158 WXCAS_FALSE='#'
7159 else
7160 WXCAS_TRUE='#'
7161 WXCAS_FALSE=
7165 # Check whether --enable-ed2k was given.
7166 if test "${enable_ed2k+set}" = set; then :
7167 enableval=$enable_ed2k;
7170 if test ${enable_ed2k:-yes} = yes; then
7171 ED2K_TRUE=
7172 ED2K_FALSE='#'
7173 else
7174 ED2K_TRUE='#'
7175 ED2K_FALSE=
7179 # Check whether --enable-alc was given.
7180 if test "${enable_alc+set}" = set; then :
7181 enableval=$enable_alc;
7184 if test ${enable_alc:-no} = yes; then
7185 ALC_TRUE=
7186 ALC_FALSE='#'
7187 else
7188 ALC_TRUE='#'
7189 ALC_FALSE=
7193 # Check whether --enable-alcc was given.
7194 if test "${enable_alcc+set}" = set; then :
7195 enableval=$enable_alcc;
7198 if test ${enable_alcc:-no} = yes; then
7199 ALCC_TRUE=
7200 ALCC_FALSE='#'
7201 else
7202 ALCC_TRUE='#'
7203 ALCC_FALSE=
7207 # Check whether --enable-xas was given.
7208 if test "${enable_xas+set}" = set; then :
7209 enableval=$enable_xas;
7212 if test ${enable_xas:-no} = yes; then
7213 XAS_TRUE=
7214 XAS_FALSE='#'
7215 else
7216 XAS_TRUE='#'
7217 XAS_FALSE=
7221 # Check whether --enable-fileview was given.
7222 if test "${enable_fileview+set}" = set; then :
7223 enableval=$enable_fileview;
7226 if test ${enable_fileview:-no} = yes; then
7227 FILEVIEW_TRUE=
7228 FILEVIEW_FALSE='#'
7229 else
7230 FILEVIEW_TRUE='#'
7231 FILEVIEW_FALSE=
7235 # Check whether --enable-plasmamule was given.
7236 if test "${enable_plasmamule+set}" = set; then :
7237 enableval=$enable_plasmamule;
7242 # Run all the tests with static linkage if we want a statically linked binary
7243 # Check whether --enable-static was given.
7244 if test "${enable_static+set}" = set; then :
7245 enableval=$enable_static;
7249 if test ${enable_static:-no} = yes; then :
7250 LDFLAGS="$LDFLAGS -static"
7255 # Check whether --with-kde4-config was given.
7256 if test "${with_kde4_config+set}" = set; then :
7257 withval=$with_kde4_config; KDE4_CONFIG=$withval
7258 else
7259 KDE4_CONFIG=""
7262 # Check whether --enable-kde-in-home was given.
7263 if test "${enable_kde_in_home+set}" = set; then :
7264 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7265 else
7266 KDE_IN_HOME=no
7272 # Check whether --with-moc was given.
7273 if test "${with_moc+set}" = set; then :
7274 withval=$with_moc; QT_MOC=$withval
7275 else
7276 QT_MOC=""
7281 # Default is yes, because they're most likely compatible.
7282 # However, this is only used when cross-compiling.
7284 # Check whether --with-gnu-malloc was given.
7285 if test "${with_gnu_malloc+set}" = set; then :
7286 withval=$with_gnu_malloc; gnumalloc=$withval
7287 else
7288 gnumalloc=yes
7293 # Checking for libs before all other stuff to break
7294 # configure as soon as possible in case of a missing one
7295 # to avoid losing too much time
7297 # Check for gd
7300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case $PKG_CONFIG in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7330 esac
7332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7333 if test -n "$PKG_CONFIG"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7335 $as_echo "$PKG_CONFIG" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_path_PKG_CONFIG"; then
7344 ac_pt_PKG_CONFIG=$PKG_CONFIG
7345 # Extract the first word of "pkg-config", so it can be a program name with args.
7346 set dummy pkg-config; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 case $ac_pt_PKG_CONFIG in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7373 esac
7375 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7376 if test -n "$ac_pt_PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7378 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7384 if test "x$ac_pt_PKG_CONFIG" = x; then
7385 PKG_CONFIG=""
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393 PKG_CONFIG=$ac_pt_PKG_CONFIG
7395 else
7396 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7400 if test -n "$PKG_CONFIG"; then
7401 _pkg_min_version=0.9.0
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7403 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7404 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 PKG_CONFIG=""
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7416 $as_echo_n "checking for ANSI C header files... " >&6; }
7417 if ${ac_cv_header_stdc+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <stdlib.h>
7423 #include <stdarg.h>
7424 #include <string.h>
7425 #include <float.h>
7428 main ()
7432 return 0;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 ac_cv_header_stdc=yes
7437 else
7438 ac_cv_header_stdc=no
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 if test $ac_cv_header_stdc = yes; then
7443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <string.h>
7448 _ACEOF
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 $EGREP "memchr" >/dev/null 2>&1; then :
7452 else
7453 ac_cv_header_stdc=no
7455 rm -f conftest*
7459 if test $ac_cv_header_stdc = yes; then
7460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <stdlib.h>
7465 _ACEOF
7466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7467 $EGREP "free" >/dev/null 2>&1; then :
7469 else
7470 ac_cv_header_stdc=no
7472 rm -f conftest*
7476 if test $ac_cv_header_stdc = yes; then
7477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7478 if test "$cross_compiling" = yes; then :
7480 else
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 #include <ctype.h>
7484 #include <stdlib.h>
7485 #if ((' ' & 0x0FF) == 0x020)
7486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7488 #else
7489 # define ISLOWER(c) \
7490 (('a' <= (c) && (c) <= 'i') \
7491 || ('j' <= (c) && (c) <= 'r') \
7492 || ('s' <= (c) && (c) <= 'z'))
7493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7494 #endif
7496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7498 main ()
7500 int i;
7501 for (i = 0; i < 256; i++)
7502 if (XOR (islower (i), ISLOWER (i))
7503 || toupper (i) != TOUPPER (i))
7504 return 2;
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_run "$LINENO"; then :
7510 else
7511 ac_cv_header_stdc=no
7513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7514 conftest.$ac_objext conftest.beam conftest.$ac_ext
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7520 $as_echo "$ac_cv_header_stdc" >&6; }
7521 if test $ac_cv_header_stdc = yes; then
7523 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7529 inttypes.h stdint.h unistd.h
7530 do :
7531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7537 _ACEOF
7541 done
7544 if test ${enable_cas:-no} = yes; then :
7549 # Check whether --with-gdlib-prefix was given.
7550 if test "${with_gdlib_prefix+set}" = set; then :
7551 withval=$with_gdlib_prefix;
7555 # Check whether --with-gdlib-config was given.
7556 if test "${with_gdlib_config+set}" = set; then :
7557 withval=$with_gdlib_config;
7561 GDLIB_VERSION=
7563 # Check gdlib in pkg-config first to avoid deprecation warnings
7564 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7565 # skip the pkg-config check, the user probably wants to use
7566 # another gdlib instance.
7567 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7569 if test -n "$PKG_CONFIG"; then :
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7572 $as_echo_n "checking for gdlib... " >&6; }
7574 if $PKG_CONFIG gdlib --exists; then :
7576 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7578 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7581 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7582 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7583 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7584 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7585 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7587 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7590 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7591 GDLIB_VERSION=
7595 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7606 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7607 if test -z "$GDLIB_VERSION"; then :
7609 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7610 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7611 GDLIB_CONFIG_NAME=gdlib-config
7613 if test -n "$with_gdlib_config"; then :
7614 GDLIB_CONFIG_NAME="$with_gdlib_config"
7617 # deal with optional prefix
7618 if test -n "$with_gdlib_prefix"; then :
7619 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7622 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7623 if test -x "$GDLIB_CONFIG_NAME"; then :
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7626 $as_echo_n "checking for gdlib-config... " >&6; }
7627 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7629 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7631 else
7632 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7633 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $GDLIB_CONFIG_PATH in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7646 for as_dir in $as_dummy
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7656 done
7657 done
7658 IFS=$as_save_IFS
7660 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7662 esac
7664 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7665 if test -n "$GDLIB_CONFIG_PATH"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7667 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7676 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7679 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7680 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7682 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7683 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7684 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7685 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7687 if test $gdlib_config_major_version -gt 2; then
7688 gdlib_ver_ok=yes
7689 elif test $gdlib_config_major_version -eq 2; then
7691 if test $gdlib_config_minor_version -gt 0; then
7692 gdlib_ver_ok=yes
7693 elif test $gdlib_config_minor_version -eq 0; then
7694 if test $gdlib_config_micro_version -ge 0; then
7695 gdlib_ver_ok=yes
7706 if test -z "${gdlib_ver_ok:-}"; then :
7708 if test -z "$GDLIB_VERSION"; then :
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7714 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7715 GDLIB_VERSION=
7719 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7722 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7723 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7724 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7725 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7731 if test -n "$GDLIB_VERSION"; then :
7733 mule_backup_CFLAGS="$CFLAGS"
7734 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7736 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7737 if test "x$ac_cv_header_gd_h" = xyes; then :
7739 else
7741 GDLIB_CFLAGS=
7742 GDLIB_LDFLAGS=
7743 GDLIB_LIBS=
7744 GDLIB_VERSION=
7750 CFLAGS="$mule_backup_CFLAGS"
7754 if test -n "$GDLIB_VERSION"; then :
7756 CAS_DEFS="-D__GD__"
7757 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7759 else
7760 CAS_DEFS=
7765 if test -z "$CAS_DEFS"; then :
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7767 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7768 Please check that gdlib-config is in your default path, check out
7769 LD_LIBRARY_PATH or equivalent variable.
7770 Or this might also be that your gdlib-config has other name.
7771 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7772 (replace /usr/bin/gdlib-config with a valid path to your
7773 gdlib-config).
7774 If you use compiled packages check if you have devel pack installed.
7775 To download the latest version check http://www.boutell.com/gd for
7776 sources." >&5
7777 $as_echo "$as_me: WARNING:
7778 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7779 Please check that gdlib-config is in your default path, check out
7780 LD_LIBRARY_PATH or equivalent variable.
7781 Or this might also be that your gdlib-config has other name.
7782 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7783 (replace /usr/bin/gdlib-config with a valid path to your
7784 gdlib-config).
7785 If you use compiled packages check if you have devel pack installed.
7786 To download the latest version check http://www.boutell.com/gd for
7787 sources." >&2;}
7788 _mule_warning_0=yes
7789 _mule_has_warnings=yes
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7796 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7797 if ${ac_cv_header_stdbool_h+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7803 #include <stdbool.h>
7804 #ifndef bool
7805 "error: bool is not defined"
7806 #endif
7807 #ifndef false
7808 "error: false is not defined"
7809 #endif
7810 #if false
7811 "error: false is not 0"
7812 #endif
7813 #ifndef true
7814 "error: true is not defined"
7815 #endif
7816 #if true != 1
7817 "error: true is not 1"
7818 #endif
7819 #ifndef __bool_true_false_are_defined
7820 "error: __bool_true_false_are_defined is not defined"
7821 #endif
7823 struct s { _Bool s: 1; _Bool t; } s;
7825 char a[true == 1 ? 1 : -1];
7826 char b[false == 0 ? 1 : -1];
7827 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7828 char d[(bool) 0.5 == true ? 1 : -1];
7829 /* See body of main program for 'e'. */
7830 char f[(_Bool) 0.0 == false ? 1 : -1];
7831 char g[true];
7832 char h[sizeof (_Bool)];
7833 char i[sizeof s.t];
7834 enum { j = false, k = true, l = false * true, m = true * 256 };
7835 /* The following fails for
7836 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7837 _Bool n[m];
7838 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7839 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7840 /* Catch a bug in an HP-UX C compiler. See
7841 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7842 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7844 _Bool q = true;
7845 _Bool *pq = &q;
7848 main ()
7851 bool e = &s;
7852 *pq |= q;
7853 *pq |= ! q;
7854 /* Refer to every declared value, to avoid compiler optimizations. */
7855 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7856 + !m + !n + !o + !p + !q + !pq);
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 ac_cv_header_stdbool_h=yes
7864 else
7865 ac_cv_header_stdbool_h=no
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7870 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7871 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7872 if test "x$ac_cv_type__Bool" = xyes; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define HAVE__BOOL 1
7876 _ACEOF
7882 if test $ac_cv_header_stdbool_h = yes; then
7884 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7889 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7890 if ${ac_cv_c_const+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7897 main ()
7900 #ifndef __cplusplus
7901 /* Ultrix mips cc rejects this sort of thing. */
7902 typedef int charset[2];
7903 const charset cs = { 0, 0 };
7904 /* SunOS 4.1.1 cc rejects this. */
7905 char const *const *pcpcc;
7906 char **ppc;
7907 /* NEC SVR4.0.2 mips cc rejects this. */
7908 struct point {int x, y;};
7909 static struct point const zero = {0,0};
7910 /* AIX XL C 1.02.0.0 rejects this.
7911 It does not let you subtract one const X* pointer from another in
7912 an arm of an if-expression whose if-part is not a constant
7913 expression */
7914 const char *g = "string";
7915 pcpcc = &g + (g ? g-g : 0);
7916 /* HPUX 7.0 cc rejects these. */
7917 ++pcpcc;
7918 ppc = (char**) pcpcc;
7919 pcpcc = (char const *const *) ppc;
7920 { /* SCO 3.2v4 cc rejects this sort of thing. */
7921 char tx;
7922 char *t = &tx;
7923 char const *s = 0 ? (char *) 0 : (char const *) 0;
7925 *t++ = 0;
7926 if (s) return 0;
7928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7929 int x[] = {25, 17};
7930 const int *foo = &x[0];
7931 ++foo;
7933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7934 typedef const int *iptr;
7935 iptr p = 0;
7936 ++p;
7938 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7940 struct s { int j; const int *ap[3]; } bx;
7941 struct s *b = &bx; b->j = 5;
7943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7944 const int foo = 10;
7945 if (!foo) return 0;
7947 return !cs[0] && !zero.x;
7948 #endif
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 ac_cv_c_const=yes
7956 else
7957 ac_cv_c_const=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7962 $as_echo "$ac_cv_c_const" >&6; }
7963 if test $ac_cv_c_const = no; then
7965 $as_echo "#define const /**/" >>confdefs.h
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7970 $as_echo_n "checking for inline... " >&6; }
7971 if ${ac_cv_c_inline+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 ac_cv_c_inline=no
7975 for ac_kw in inline __inline__ __inline; do
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __cplusplus
7979 typedef int foo_t;
7980 static $ac_kw foo_t static_foo () {return 0; }
7981 $ac_kw foo_t foo () {return 0; }
7982 #endif
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986 ac_cv_c_inline=$ac_kw
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 test "$ac_cv_c_inline" != no && break
7990 done
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7994 $as_echo "$ac_cv_c_inline" >&6; }
7996 case $ac_cv_c_inline in
7997 inline | yes) ;;
7999 case $ac_cv_c_inline in
8000 no) ac_val=;;
8001 *) ac_val=$ac_cv_c_inline;;
8002 esac
8003 cat >>confdefs.h <<_ACEOF
8004 #ifndef __cplusplus
8005 #define inline $ac_val
8006 #endif
8007 _ACEOF
8009 esac
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8012 $as_echo_n "checking for working volatile... " >&6; }
8013 if ${ac_cv_c_volatile+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8020 main ()
8023 volatile int x;
8024 int * volatile y = (int *) 0;
8025 return !x && !y;
8027 return 0;
8029 _ACEOF
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031 ac_cv_c_volatile=yes
8032 else
8033 ac_cv_c_volatile=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8038 $as_echo "$ac_cv_c_volatile" >&6; }
8039 if test $ac_cv_c_volatile = no; then
8041 $as_echo "#define volatile /**/" >>confdefs.h
8046 ac_ext=cpp
8047 ac_cpp='$CXXCPP $CPPFLAGS'
8048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8054 # Check for zlib
8056 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 :
8059 # Check whether --with-zlib was given.
8060 if test "${with_zlib+set}" = set; then :
8061 withval=$with_zlib;
8065 case "${with_zlib:-yes}" in
8067 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8069 yes | sys)
8072 zlib_prefix="$with_zlib"
8073 esac
8075 mule_backup_CPPFLAGS="$CPPFLAGS"
8076 mule_backup_LDFLAGS="$LDFLAGS"
8077 mule_backup_LIBS="$LIBS"
8078 if test -n "$zlib_prefix"; then :
8080 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
8081 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
8082 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
8083 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
8085 else
8087 ZLIB_CPPFLAGS=
8088 ZLIB_LDFLAGS=
8091 ZLIB_LIBS="-lz"
8092 LIBS="$ZLIB_LIBS $LIBS"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
8095 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
8096 if test "$cross_compiling" = yes; then :
8098 result=no
8099 z_version=
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8104 #include <zlib.h>
8105 #include <stdio.h>
8108 main ()
8111 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
8112 zlibVersion();
8115 return 0;
8118 _ACEOF
8119 if ac_fn_cxx_try_link "$LINENO"; then :
8121 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
8122 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
8123 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
8124 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
8125 if test "$cross_zver_max" -gt "1"; then
8126 result=yes
8127 elif test "$cross_zver_max" -eq "1"; then
8129 if test "$cross_zver_mid" -gt "1"; then
8130 result=yes
8131 elif test "$cross_zver_mid" -eq "1"; then
8132 if test "$cross_zver_min" -ge "4"; then
8133 result=yes
8141 if test ${result:-no} = yes; then :
8142 z_version=" (version $ZLIB_VERSION)"
8146 rm -f core conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8149 $as_echo "$result$z_version" >&6; }
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8156 #include <zlib.h>
8157 #include <stdio.h>
8160 main ()
8162 const char *zver = zlibVersion();
8163 FILE *f=fopen("conftestval", "w");
8164 if (!f) return 1;
8165 fprintf(f, "%s",
8166 zver[0] > '1' ||
8167 (zver[0] == '1' &&
8168 (zver[2] > '1' ||
8169 (zver[2] == '1' &&
8170 zver[4] >= '4'))) ? "yes" : "no");
8171 fclose(f);
8172 f=fopen("conftestver", "w");
8173 if (f) {
8174 fprintf(f, "%s", ZLIB_VERSION);
8175 fclose(f);
8179 return 0;
8182 _ACEOF
8183 if ac_fn_cxx_try_run "$LINENO"; then :
8185 if test -f conftestval; then :
8186 result=`cat conftestval`
8187 else
8188 result=no
8190 if test ${result:-no} = yes; then :
8192 if test -f conftestver; then :
8194 ZLIB_VERSION=`cat conftestver`
8195 z_version=" (version $ZLIB_VERSION)"
8197 else
8198 z_version=
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8203 $as_echo "$result$z_version" >&6; }
8205 else
8207 result=no
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
8209 $as_echo "$result" >&6; }
8212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8213 conftest.$ac_objext conftest.beam conftest.$ac_ext
8217 CPPFLAGS="$mule_backup_CPPFLAGS"
8218 LDFLAGS="$mule_backup_LDFLAGS"
8219 LIBS="$mule_backup_LIBS"
8221 if test ${result:-no} = no; then :
8223 ZLIB_CPPFLAGS=
8224 ZLIB_LDFLAGS=
8225 ZLIB_LIBS=
8226 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8234 # Check for libpng
8235 if test ${enable_webserver:-no} = yes; then :
8238 # Check whether --with-libpng-prefix was given.
8239 if test "${with_libpng_prefix+set}" = set; then :
8240 withval=$with_libpng_prefix;
8244 # Check whether --with-libpng-config was given.
8245 if test "${with_libpng_config+set}" = set; then :
8246 withval=$with_libpng_config;
8250 LIBPNG_VERSION=
8252 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8253 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8254 LIBPNG_CONFIG_NAME=libpng-config
8256 if test -n "$with_libpng_config"; then :
8257 LIBPNG_CONFIG_NAME="$with_libpng_config"
8260 # deal with optional prefix
8261 if test -n "$with_libpng_prefix"; then :
8262 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8265 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8266 if test -x "$LIBPNG_CONFIG_NAME"; then :
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8269 $as_echo_n "checking for libpng-config... " >&6; }
8270 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8272 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8274 else
8275 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8276 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 case $LIBPNG_CONFIG_PATH in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8289 for as_dir in $as_dummy
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8295 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8299 done
8300 done
8301 IFS=$as_save_IFS
8303 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8305 esac
8307 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8308 if test -n "$LIBPNG_CONFIG_PATH"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8310 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8319 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8322 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8324 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8326 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8327 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8328 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8329 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8331 libpng_ver_ok=
8332 if test $libpng_config_major_version -gt 1; then
8333 libpng_ver_ok=yes
8334 elif test $libpng_config_major_version -eq 1; then
8336 if test $libpng_config_minor_version -gt 2; then
8337 libpng_ver_ok=yes
8338 elif test $libpng_config_minor_version -eq 2; then
8339 if test $libpng_config_micro_version -ge 0; then
8340 libpng_ver_ok=yes
8349 if test -z "$libpng_ver_ok"; then :
8351 if test -z "$LIBPNG_VERSION"; then :
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8357 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8358 LIBPNG_VERSION=
8362 else
8364 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8365 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8366 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8368 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8371 $as_echo_n "checking if libpng is usable... " >&6; }
8373 SAVED_CFLAGS=$CFLAGS
8374 SAVED_LDFLAGS=$LDFLAGS
8375 SAVED_LIBS=$LIBS
8377 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8378 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8379 LIBS="$LIBS $LIBPNG_LIBS"
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8385 #include <png.h>
8386 #include <stdio.h>
8389 main ()
8392 png_uint_32 libpng_vn = png_access_version_number();
8393 printf("\nlibpng version %i\n\n", libpng_vn);
8396 return 0;
8399 _ACEOF
8400 if ac_fn_cxx_try_link "$LINENO"; then :
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8403 $as_echo "yes" >&6; }
8405 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8408 $as_echo "no (failed to compile and link test program)" >&6; }
8409 LIBPNG_LIBS=
8410 LIBPNG_LDFLAGS=
8411 LIBPNG_CFLAGS=
8412 LIBPNG_VERSION=
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8418 CFLAGS="$SAVED_CFLAGS"
8419 LDFLAGS="$SAVED_LDFLAGS"
8420 LIBS="$SAVED_LIBS"
8426 if test -n "$LIBPNG_VERSION"; then :
8427 AMULEWEB_DEFS="-DWITH_LIBPNG"
8428 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8431 libpng >= 1.2.0 not found.
8432 amuleweb will be compiled but file download progress bar images will
8433 NOT be generated." >&5
8434 $as_echo "$as_me: WARNING:
8435 libpng >= 1.2.0 not found.
8436 amuleweb will be compiled but file download progress bar images will
8437 NOT be generated." >&2;}
8438 _mule_warning_1=yes
8439 _mule_has_warnings=yes
8450 # Check for perl File::Copy
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8452 $as_echo_n "checking for File::Copy... " >&6; }
8453 if perl -e "require File::Copy" 2>/dev/null; then :
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8455 $as_echo "ok" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8458 File::Copy perl module is required by the mldonkey_importer script.
8459 If you want to use this script please install File::Copy from CPAN." >&5
8460 $as_echo "$as_me: WARNING:
8461 File::Copy perl module is required by the mldonkey_importer script.
8462 If you want to use this script please install File::Copy from CPAN." >&2;}
8463 _mule_warning_2=yes
8464 _mule_has_warnings=yes
8469 # Check for GeoIP (required for IP2Country capability)
8471 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8473 # Check whether --enable-geoip was given.
8474 if test "${enable_geoip+set}" = set; then :
8475 enableval=$enable_geoip;
8480 if test ${enable_geoip:-no} = yes; then :
8483 # Check whether --with-geoip-headers was given.
8484 if test "${with_geoip_headers+set}" = set; then :
8485 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8489 # Check whether --with-geoip-lib was given.
8490 if test "${with_geoip_lib+set}" = set; then :
8491 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8495 mule_backup_CPPFLAGS="$CPPFLAGS"
8496 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8497 mule_backup_LDFLAGS="$LDFLAGS"
8498 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8500 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8501 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8503 if test x$SYS = xwin32; then :
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8506 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8507 # Actually, we might not need any if GeoIP is linked as a .dll
8508 # - but that's even harder to check for
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8513 #include <GeoIP.h>
8514 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8515 I do know it's not the best approach, but at least works with MinGW stock headers.
8516 (tested with w32api-3.12)
8517 #endif
8520 main ()
8524 return 0;
8527 _ACEOF
8528 if ac_fn_cxx_try_compile "$LINENO"; then :
8530 GEOIP_WINSOCK_LIB="-lwsock32"
8532 else
8534 GEOIP_WINSOCK_LIB="-lws2_32"
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8539 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8543 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8544 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 ac_check_lib_save_LIBS=$LIBS
8548 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 char GeoIP_open ();
8560 main ()
8562 return GeoIP_open ();
8564 return 0;
8566 _ACEOF
8567 if ac_fn_cxx_try_link "$LINENO"; then :
8568 ac_cv_lib_GeoIP_GeoIP_open=yes
8569 else
8570 ac_cv_lib_GeoIP_GeoIP_open=no
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8577 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8578 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8581 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8583 GEOIP_LIBS="-lGeoIP"
8584 if test x$SYS = xwin32; then :
8585 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8587 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8589 # Check whether --with-geoip-static was given.
8590 if test "${with_geoip_static+set}" = set; then :
8591 withval=$with_geoip_static;
8592 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8594 mule_backup_LIBS="$LIBS"
8595 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 #include <GeoIP.h>
8603 main ()
8606 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8609 return 0;
8612 _ACEOF
8613 if ac_fn_cxx_try_link "$LINENO"; then :
8615 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8617 else
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8620 Cannot link GeoIP statically, because your linker ($LD) does not
8621 support it." >&5
8622 $as_echo "$as_me: WARNING:
8623 Cannot link GeoIP statically, because your linker ($LD) does not
8624 support it." >&2;}
8625 _mule_warning_3=yes
8626 _mule_has_warnings=yes
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 LIBS="$mule_backup_LIBS"
8639 else
8641 enable_geoip=disabled
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8643 GeoIP support has been disabled because the GeoIP libraries were not
8644 found" >&5
8645 $as_echo "$as_me: WARNING:
8646 GeoIP support has been disabled because the GeoIP libraries were not
8647 found" >&2;}
8648 _mule_warning_4=yes
8649 _mule_has_warnings=yes
8655 else
8657 enable_geoip=disabled
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8659 GeoIP support has been disabled because the GeoIP header files were
8660 not found" >&5
8661 $as_echo "$as_me: WARNING:
8662 GeoIP support has been disabled because the GeoIP header files were
8663 not found" >&2;}
8664 _mule_warning_5=yes
8665 _mule_has_warnings=yes
8672 CPPFLAGS="$mule_backup_CPPFLAGS"
8673 LDFLAGS="$mule_backup_LDFLAGS"
8680 # Check for wx
8681 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 :
8684 # Check whether --with-wxdir was given.
8685 if test "${with_wxdir+set}" = set; then :
8686 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8687 wx_config_args="--inplace"
8691 # Check whether --with-wx-config was given.
8692 if test "${with_wx_config+set}" = set; then :
8693 withval=$with_wx_config; wx_config_name="$withval"
8697 # Check whether --with-wx-prefix was given.
8698 if test "${with_wx_prefix+set}" = set; then :
8699 withval=$with_wx_prefix; wx_config_prefix="$withval"
8700 else
8701 wx_config_prefix=""
8705 # Check whether --with-wx-exec-prefix was given.
8706 if test "${with_wx_exec_prefix+set}" = set; then :
8707 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8708 else
8709 wx_config_exec_prefix=""
8724 # Check whether --with-toolkit was given.
8725 if test "${with_toolkit+set}" = set; then :
8726 withval=$with_toolkit;
8727 else
8728 withval="auto"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8733 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8734 if test "$withval" = "auto" ; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8736 $as_echo "will be automatically detected" >&6; }
8737 TOOLKIT=""
8738 else
8739 TOOLKIT="$withval"
8741 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8742 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8743 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8744 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8745 as_fn_error $? "
8746 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8747 " "$LINENO" 5
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8751 $as_echo "$TOOLKIT" >&6; }
8758 # Check whether --with-wxshared was given.
8759 if test "${with_wxshared+set}" = set; then :
8760 withval=$with_wxshared;
8761 else
8762 withval="auto"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8767 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8768 if test "$withval" = "yes" ; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8770 $as_echo "yes" >&6; }
8771 WX_SHARED=1
8773 elif test "1" = "1" -a "$withval" = "no" ; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 WX_SHARED=0
8777 elif test "$withval" = "auto" ; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8779 $as_echo "will be automatically detected" >&6; }
8780 WX_SHARED=""
8781 else
8782 as_fn_error $? "
8783 Unrecognized option value (allowed values: yes, auto)
8784 " "$LINENO" 5
8791 # Check whether --with-wxdebug was given.
8792 if test "${with_wxdebug+set}" = set; then :
8793 withval=$with_wxdebug;
8794 else
8795 withval="auto"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8800 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8801 if test "$withval" = "yes" ; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8804 WX_DEBUG=1
8806 elif test "1" = "1" -a "$withval" = "no" ; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 WX_DEBUG=0
8810 elif test "$withval" = "auto" ; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8812 $as_echo "will be automatically detected" >&6; }
8813 WX_DEBUG=""
8814 else
8815 as_fn_error $? "
8816 Unrecognized option value (allowed values: yes, auto)
8817 " "$LINENO" 5
8824 # Check whether --with-wxversion was given.
8825 if test "${with_wxversion+set}" = set; then :
8826 withval=$with_wxversion;
8827 else
8828 withval="auto"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8833 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8834 if test "$withval" = "auto" ; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8836 $as_echo "will be automatically detected" >&6; }
8837 WX_RELEASE=""
8838 else
8840 wx_requested_major_version=`echo $withval | \
8841 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8842 wx_requested_minor_version=`echo $withval | \
8843 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8845 if test "${#wx_requested_major_version}" != "1" -o \
8846 "${#wx_requested_minor_version}" != "1" ; then
8847 as_fn_error $? "
8848 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8849 " "$LINENO" 5
8852 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8854 $as_echo "$WX_RELEASE" >&6; }
8858 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8859 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8860 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8861 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8862 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8863 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8866 # Force using a static wxWidgets library if the executable is to be linked statically.
8867 if test ${enable_static:-no} = yes; then :
8868 WX_SHARED=0
8870 # Force using a unicode build of the library
8871 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 :
8872 WX_UNICODE=1
8874 DEBUG=$WX_DEBUG
8876 if test "$WX_SHARED" = "1" ; then
8877 WXCONFIG_FLAGS="--static=no "
8878 elif test "$WX_SHARED" = "0" ; then
8879 WXCONFIG_FLAGS="--static=yes "
8882 if test "$WX_DEBUG" = "1" ; then
8883 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8884 elif test "$WX_DEBUG" = "0" ; then
8885 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8888 if test "$WX_UNICODE" = "1" ; then
8889 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8890 elif test "$WX_UNICODE" = "0" ; then
8891 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8894 if test -n "$TOOLKIT" ; then
8895 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8898 if test -n "$WX_RELEASE" ; then
8899 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8902 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8904 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8905 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8909 if test x${WX_CONFIG_NAME+set} != xset ; then
8910 WX_CONFIG_NAME=wx-config
8913 if test "x$wx_config_name" != x ; then
8914 WX_CONFIG_NAME="$wx_config_name"
8917 if test x$wx_config_exec_prefix != x ; then
8918 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8919 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8921 if test x$wx_config_prefix != x ; then
8922 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8923 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8925 if test "$cross_compiling" = "yes"; then
8926 wx_config_args="$wx_config_args --host=$host_alias"
8929 if test -x "$WX_CONFIG_NAME" ; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8931 $as_echo_n "checking for wx-config... " >&6; }
8932 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8934 $as_echo "$WX_CONFIG_PATH" >&6; }
8935 else
8936 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8937 set dummy $WX_CONFIG_NAME; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 case $WX_CONFIG_PATH in
8944 [\\/]* | ?:[\\/]*)
8945 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8950 for as_dir in $as_dummy
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8960 done
8961 done
8962 IFS=$as_save_IFS
8964 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8966 esac
8968 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8969 if test -n "$WX_CONFIG_PATH"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8971 $as_echo "$WX_CONFIG_PATH" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8980 if test "$WX_CONFIG_PATH" != "no" ; then
8981 WX_VERSION=""
8983 min_wx_version=2.8.12
8984 if test -z "$WXCONFIG_FLAGS" ; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8986 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8989 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8992 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8994 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8995 wx_config_major_version=`echo $WX_VERSION | \
8996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8997 wx_config_minor_version=`echo $WX_VERSION | \
8998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8999 wx_config_micro_version=`echo $WX_VERSION | \
9000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9002 wx_requested_major_version=`echo $min_wx_version | \
9003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9004 wx_requested_minor_version=`echo $min_wx_version | \
9005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9006 wx_requested_micro_version=`echo $min_wx_version | \
9007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9010 wx_ver_ok=""
9011 if test "x$WX_VERSION" != x ; then
9012 if test $wx_config_major_version -gt $wx_requested_major_version; then
9013 wx_ver_ok=yes
9014 else
9015 if test $wx_config_major_version -eq $wx_requested_major_version; then
9016 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
9017 wx_ver_ok=yes
9018 else
9019 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
9020 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
9021 wx_ver_ok=yes
9030 if test -n "$wx_ver_ok"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
9032 $as_echo "yes (version $WX_VERSION)" >&6; }
9033 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
9036 $as_echo_n "checking for wxWidgets static library... " >&6; }
9037 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
9038 if test "x$WX_LIBS_STATIC" = "x"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9043 $as_echo "yes" >&6; }
9046 wx_has_cppflags=""
9047 if test $wx_config_major_version -gt 2; then
9048 wx_has_cppflags=yes
9049 else
9050 if test $wx_config_major_version -eq 2; then
9051 if test $wx_config_minor_version -gt 2; then
9052 wx_has_cppflags=yes
9053 else
9054 if test $wx_config_minor_version -eq 2; then
9055 if test $wx_config_micro_version -ge 6; then
9056 wx_has_cppflags=yes
9063 wx_has_rescomp=""
9064 if test $wx_config_major_version -gt 2; then
9065 wx_has_rescomp=yes
9066 else
9067 if test $wx_config_major_version -eq 2; then
9068 if test $wx_config_minor_version -ge 7; then
9069 wx_has_rescomp=yes
9073 if test "x$wx_has_rescomp" = x ; then
9074 WX_RESCOMP=
9075 else
9076 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
9079 if test "x$wx_has_cppflags" = x ; then
9080 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9081 WX_CPPFLAGS=$WX_CFLAGS
9082 WX_CXXFLAGS=$WX_CFLAGS
9084 WX_CFLAGS_ONLY=$WX_CFLAGS
9085 WX_CXXFLAGS_ONLY=$WX_CFLAGS
9086 else
9087 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
9088 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
9089 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9091 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
9092 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
9095 wxWin=1
9097 else
9099 if test "x$WX_VERSION" = x; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
9104 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
9107 WX_CFLAGS=""
9108 WX_CPPFLAGS=""
9109 WX_CXXFLAGS=""
9110 WX_LIBS=""
9111 WX_LIBS_STATIC=""
9112 WX_RESCOMP=""
9114 if test ! -z "$WXCONFIG_FLAGS"; then
9116 wx_error_message="
9117 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
9118 build with the following settings:
9119 $WXCONFIG_FLAGS
9120 but such build is not available.
9122 To see the wxWidgets builds available on this system, please use
9123 'wx-config --list' command. To use the default build, returned by
9124 'wx-config --selected-config', use the options with their 'auto'
9125 default values."
9129 wx_error_message="
9130 The requested wxWidgets build couldn't be found.
9131 $wx_error_message
9133 If you still get this error, then check that 'wx-config' is
9134 in path, the directory where wxWidgets libraries are installed
9135 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
9136 or equivalent variable and wxWidgets version is 2.8.12 or above."
9138 as_fn_error $? "$wx_error_message" "$LINENO" 5
9141 else
9143 WX_CFLAGS=""
9144 WX_CPPFLAGS=""
9145 WX_CXXFLAGS=""
9146 WX_LIBS=""
9147 WX_LIBS_STATIC=""
9148 WX_RESCOMP=""
9164 WX_VERSION_MAJOR="$wx_config_major_version"
9165 WX_VERSION_MINOR="$wx_config_minor_version"
9166 WX_VERSION_MICRO="$wx_config_micro_version"
9171 if test "$wxWin" != 1; then :
9172 as_fn_error $? "
9173 wxWidgets must be installed on your system but wx-config
9174 script couldn't be found. Please check that wx-config is
9175 in path or specified by --with-wx-config=path flag, the
9176 directory where wxWidgets libraries are installed (returned
9177 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
9178 equivalent variable and wxWidgets version is 2.8.12 or above.
9179 " "$LINENO" 5
9182 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
9183 as_fn_error $? "
9184 This version of wxWidgets is known to not work with aMule.
9185 Please upgrade to a newer version.
9186 " "$LINENO" 5
9190 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
9191 if test $WX_RELEASE -lt 26 ; then
9193 as_fn_error $? "
9194 Cannot detect the wxWidgets configuration for the selected wxWidgets build
9195 since its version is $WX_VERSION < 2.6.0; please install a newer
9196 version of wxWidgets.
9197 " "$LINENO" 5
9200 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
9202 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9203 echo "[dbg] Using wx-config --selected-config"
9204 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
9207 if test "$WX_SHARED" = "1"; then
9208 STATIC=0
9209 elif test "$WX_SHARED" = "0"; then
9210 STATIC=1
9214 if test -z "$UNICODE" ; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
9217 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
9219 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
9221 if test "$WX_UNICODE" != "0"; then
9222 WX_UNICODE=1
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9224 $as_echo "yes" >&6; }
9225 else
9226 WX_UNICODE=0
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9230 else
9232 WX_UNICODE=$UNICODE
9236 if test -z "$DEBUG" ; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9239 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9241 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9243 if test "$WX_DEBUG" != "0"; then
9244 WX_DEBUG=1
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9246 $as_echo "yes" >&6; }
9247 else
9248 WX_DEBUG=0
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9252 else
9254 WX_DEBUG=$DEBUG
9258 if test -z "$STATIC" ; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9261 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9263 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9265 if test "$WX_STATIC" != "0"; then
9266 WX_STATIC=1
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9268 $as_echo "yes" >&6; }
9269 else
9270 WX_STATIC=0
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9274 else
9276 WX_STATIC=$STATIC
9280 if test "$WX_STATIC" != "0"; then
9281 WX_SHARED=0
9282 else
9283 WX_SHARED=1
9290 if test -z "$TOOLKIT" ; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9293 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9295 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9296 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9297 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9298 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9299 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9300 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9301 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9302 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9303 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9304 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9306 WX_PORT="unknown"
9307 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9308 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9309 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9310 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9311 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9312 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9313 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9314 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9315 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9316 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9318 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9319 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9322 if test "$WX_PORT" = "unknown" ; then
9323 as_fn_error $? "
9324 Cannot detect the currently installed wxWidgets port !
9325 Please check your 'wx-config --cxxflags'...
9326 " "$LINENO" 5
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9330 $as_echo "$WX_PORT" >&6; }
9331 else
9332 WX_PORT=$TOOLKIT
9337 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9338 echo "[dbg] Values of all WX_* options after final detection:"
9339 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9340 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9341 echo "[dbg] WX_SHARED: $WX_SHARED"
9342 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9343 echo "[dbg] WX_PORT: $WX_PORT"
9346 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9347 as_fn_error $? "
9348 Cannot build shared library against a static build of wxWidgets !
9349 This error happens because the wxWidgets build which was selected
9350 has been detected as static while you asked to build $PACKAGE_NAME
9351 as shared library and this is not possible.
9352 Use the '--disable-shared' option to build $PACKAGE_NAME
9353 as static library or '--with-wxshared' to use wxWidgets as shared library.
9354 " "$LINENO" 5
9357 if test -z "$UNICODE" ; then
9358 UNICODE=$WX_UNICODE
9360 if test -z "$SHARED" ; then
9361 SHARED=$WX_SHARED
9363 if test -z "$TOOLKIT" ; then
9364 TOOLKIT=$WX_PORT
9367 if test "$DEBUG" = "1"; then
9368 BUILD="debug"
9369 CXXFLAGS="$CXXFLAGS -g -O0"
9370 CFLAGS="$CFLAGS -g -O0"
9371 elif test "$DEBUG" = "0"; then
9372 BUILD="release"
9373 CXXFLAGS="$CXXFLAGS -O2"
9374 CFLAGS="$CFLAGS -O2"
9378 # We also need wxBase
9379 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9380 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9381 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9383 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9387 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9388 if test "${WX_PORT}" = base; then :
9389 as_fn_error $? "
9390 The selected components need a wxWidgets library with GUI,
9391 but your installation is base-only. Please install a GUI
9392 enabled version of wxWidgets and then retry.
9393 " "$LINENO" 5
9399 if test ${SYS:-unknown} = win32; then :
9400 if test -n "$ac_tool_prefix"; then
9401 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9402 set dummy ${ac_tool_prefix}windres; ac_word=$2
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404 $as_echo_n "checking for $ac_word... " >&6; }
9405 if ${ac_cv_prog_RC+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 if test -n "$RC"; then
9409 ac_cv_prog_RC="$RC" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9418 ac_cv_prog_RC="${ac_tool_prefix}windres"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9422 done
9423 done
9424 IFS=$as_save_IFS
9428 RC=$ac_cv_prog_RC
9429 if test -n "$RC"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9431 $as_echo "$RC" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9439 if test -z "$ac_cv_prog_RC"; then
9440 ac_ct_RC=$RC
9441 # Extract the first word of "windres", so it can be a program name with args.
9442 set dummy windres; ac_word=$2
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444 $as_echo_n "checking for $ac_word... " >&6; }
9445 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 if test -n "$ac_ct_RC"; then
9449 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9450 else
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9458 ac_cv_prog_ac_ct_RC="windres"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9462 done
9463 done
9464 IFS=$as_save_IFS
9468 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9469 if test -n "$ac_ct_RC"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9471 $as_echo "$ac_ct_RC" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9477 if test "x$ac_ct_RC" = x; then
9478 RC=":"
9479 else
9480 case $cross_compiling:$ac_tool_warned in
9481 yes:)
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9484 ac_tool_warned=yes ;;
9485 esac
9486 RC=$ac_ct_RC
9488 else
9489 RC="$ac_cv_prog_RC"
9495 # Check for libupnp
9496 # Check whether --enable-upnp was given.
9497 if test "${enable_upnp+set}" = set; then :
9498 enableval=$enable_upnp;
9502 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9504 else
9505 enable_upnp=no
9507 if test ${enable_upnp:-yes} = yes; then :
9511 # Check whether --with-libupnp-prefix was given.
9512 if test "${with_libupnp_prefix+set}" = set; then :
9513 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9517 if test $cross_compiling = no; then :
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9520 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9521 if test -n "$PKG_CONFIG"; then :
9523 if $PKG_CONFIG libupnp --exists; then :
9525 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9526 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9528 result=yes
9529 resultstr=" (version $LIBUPNP_VERSION)"
9530 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9531 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9532 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9533 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9534 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9536 else
9538 result=no
9539 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9543 else
9545 result=no
9546 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9550 else
9552 result=no
9553 resultstr=" (pkg-config not found)"
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9557 $as_echo "$result$resultstr" >&6; }
9558 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9560 else
9562 result=no
9563 libupnp_error="cross compiling"
9567 if test ${result:-no} = yes; then :
9568 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9569 else
9570 enable_upnp=disabled
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9572 UPnP code has been disabled because ${libupnp_error}." >&5
9573 $as_echo "$as_me: WARNING:
9574 UPnP code has been disabled because ${libupnp_error}." >&2;}
9575 _mule_warning_6=yes
9576 _mule_has_warnings=yes
9585 # Check for Crypto++ (requires C++)
9586 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9589 # Check whether --with-crypto-prefix was given.
9590 if test "${with_crypto_prefix+set}" = set; then :
9591 withval=$with_crypto_prefix;
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9596 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9598 cryptopp_found=false
9600 if test -n "$with_crypto_prefix"; then :
9602 CRYPTOPP_PREFIX="$with_crypto_prefix"
9603 # Find the Cryptopp header in the user-provided location
9604 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9606 cryptopp_found=true
9607 CRYPTOPP_LIB_NAME="cryptopp"
9608 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9609 CRYPTOPP_CPPFLAGS=
9610 CRYPTOPP_LDFLAGS=
9611 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9613 else
9615 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9616 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9618 cryptopp_found=true
9619 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9620 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9621 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9622 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9623 break
9626 done
9631 else
9633 # Check whether the compiler can find it
9634 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9638 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9641 main ()
9645 return 0;
9648 _ACEOF
9649 if ac_fn_cxx_try_compile "$LINENO"; then :
9651 cryptopp_found=true
9652 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9653 CRYPTOPP_CPPFLAGS=
9654 CRYPTOPP_LDFLAGS=
9655 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9656 break
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 done
9664 if $cryptopp_found; then :
9666 # Find out the crypto++ version and check against the minimum required
9667 # Ask the compiler where are the crypto++ files
9668 mule_backup_CPPFLAGS="$CPPFLAGS"
9669 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9673 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9675 _ACEOF
9676 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9677 rm -f conftest*
9678 CPPFLAGS="$mule_backup_CPPFLAGS"
9679 # Set a prefix suitable for --with-crypto-prefix
9680 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9681 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9682 # Now check the version
9683 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9684 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9685 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9687 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9689 result=yes
9690 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9692 cat >>confdefs.h <<_ACEOF
9693 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9694 _ACEOF
9697 else
9699 result=no
9700 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9701 CRYPTOPP_CPPFLAGS=
9702 CRYPTOPP_LDFLAGS=
9703 CRYPTOPP_LIBS=
9707 else
9708 result="no"; resultstr=
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9712 $as_echo "$result$resultstr" >&6; }
9714 if test ${result:-no} = yes; then :
9716 # Check for CryptoPP >= 5.5
9717 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9718 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9721 else
9723 as_fn_error $? "
9724 Could not find crypto++ installation or sources.
9725 Please try again with --with-crypto-prefix=/my_crypto_prefix
9726 (replace /my_crypto_prefix with a valid path to your crypto++
9727 installation or source directory)." "$LINENO" 5
9736 # Check whether --enable-debug was given.
9737 if test "${enable_debug+set}" = set; then :
9738 enableval=$enable_debug;
9742 # Check whether --enable-profile was given.
9743 if test "${enable_profile+set}" = set; then :
9744 enableval=$enable_profile;
9748 # Check whether --enable-optimize was given.
9749 if test "${enable_optimize+set}" = set; then :
9750 enableval=$enable_optimize;
9755 if test ${enable_debug:-yes} = yes; then :
9757 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9759 MULECFLAGS="$MULECFLAGS -g"
9760 MULECXXFLAGS="$MULECXXFLAGS -g"
9762 if test ${GCC:-no} = yes; then :
9764 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9765 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9768 if test ${SYS:-unknown} = win32; then :
9769 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9772 else
9774 if test ${GCC:-no} = yes; then :
9776 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9777 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9783 if test ${enable_profile:-no} = yes; then :
9786 MULECFLAGS="$MULECFLAGS -pg"
9787 MULECXXFLAGS="$MULECXXFLAGS -pg"
9789 MULELDFLAGS="$MULELDFLAGS -pg"
9793 if test ${enable_optimize:-no} = yes; then :
9795 MULECFLAGS="$MULECFLAGS -O2"
9796 MULECXXFLAGS="$MULECXXFLAGS -O2"
9800 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9804 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 :
9809 if test ${GCC:-no} = yes; then :
9811 mule_backup_CXXFLAGS="$CXXFLAGS"
9812 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9815 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9821 main ()
9824 int a;
9825 short *b = (short*)&a;
9826 short c = *b;
9828 return c;
9831 return 0;
9834 _ACEOF
9835 if ac_fn_cxx_try_compile "$LINENO"; then :
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9840 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; }
9844 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 CXXFLAGS="$mule_backup_CXXFLAGS"
9854 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9856 mule_backup_CPPFLAGS="$CPPFLAGS"
9857 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9860 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9865 #include <wx/wx.h>
9866 #include <wx/filefn.h>
9867 #ifndef wxHAS_LARGE_FILES
9868 #error No LargeFile support!
9869 #endif
9872 _ACEOF
9873 if ac_fn_cxx_try_cpp "$LINENO"; then :
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9876 $as_echo "yes" >&6; }
9878 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9882 as_fn_error $? "
9883 Support for large files in wxWidgets is required by aMule.
9884 To continue you must recompile wxWidgets with support for
9885 large files enabled." "$LINENO" 5
9888 rm -f conftest.err conftest.i conftest.$ac_ext
9890 CPPFLAGS="$mule_backup_CPPFLAGS"
9894 # Check if the compiler is broken, wrt. exceptions.
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9897 $as_echo_n "checking for exception-handling... " >&6; }
9898 if test "$cross_compiling" = yes; then :
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9901 $as_echo "undeterminable" >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9903 Cross-compilation detected, so exception handling cannot be tested.
9904 Note that broken exception handling in your compiler may lead to
9905 unexpected crashes." >&5
9906 $as_echo "$as_me: WARNING:
9907 Cross-compilation detected, so exception handling cannot be tested.
9908 Note that broken exception handling in your compiler may lead to
9909 unexpected crashes." >&2;}
9910 _mule_warning_7=yes
9911 _mule_has_warnings=yes
9914 else
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9920 main ()
9923 try {
9924 throw 1;
9925 } catch (int) {
9926 return 0;
9928 return 1;
9931 return 0;
9934 _ACEOF
9935 if ac_fn_cxx_try_run "$LINENO"; then :
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9938 $as_echo "yes" >&6; }
9940 else
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9944 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9948 conftest.$ac_objext conftest.beam conftest.$ac_ext
9954 for ac_header in typeinfo
9955 do :
9956 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9957 if test "x$ac_cv_header_typeinfo" = xyes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_TYPEINFO 1
9960 _ACEOF
9964 done
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9967 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9972 #ifdef HAVE_TYPEINFO
9973 # include <typeinfo>
9974 #endif
9975 #include <cxxabi.h>
9978 main ()
9981 int status;
9982 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9983 std::type_info *ti = abi::__cxa_current_exception_type();
9986 return 0;
9989 _ACEOF
9990 if ac_fn_cxx_try_link "$LINENO"; then :
9993 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9996 $as_echo "yes" >&6; }
9998 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10008 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 :
10011 # Check whether --with-boost was given.
10012 if test "${with_boost+set}" = set; then :
10013 withval=$with_boost;
10014 else
10015 with_boost=no
10019 if test ${with_boost:-no} != no; then :
10021 echo "$as_me: this is boost.m4 serial 25" >&5
10022 boost_save_IFS=$IFS
10023 boost_version_req=1.47
10024 IFS=.
10025 set x $boost_version_req 0 0 0
10026 IFS=$boost_save_IFS
10027 shift
10028 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
10029 boost_version_req_string=$1.$2.$3
10030 # If BOOST_ROOT is set and the user has not provided a value to
10031 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
10032 if test x"$BOOST_ROOT" != x; then
10033 if test x"$with_boost" = x; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
10035 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
10036 with_boost=$BOOST_ROOT
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
10039 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
10042 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
10043 boost_save_CPPFLAGS=$CPPFLAGS
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
10045 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
10046 if ${boost_cv_inc_path+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 boost_cv_inc_path=no
10050 ac_ext=cpp
10051 ac_cpp='$CXXCPP $CPPFLAGS'
10052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 #include <boost/version.hpp>
10058 #if !defined BOOST_VERSION
10059 # error BOOST_VERSION is not defined
10060 #elif BOOST_VERSION < $boost_version_req
10061 # error Boost headers version < $boost_version_req
10062 #endif
10065 main ()
10069 return 0;
10071 _ACEOF
10072 # If the user provided a value to --with-boost, use it and only it.
10073 case $with_boost in #(
10074 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
10075 /usr/include C:/Boost/include;; #(
10076 *) set x "$with_boost/include" "$with_boost";;
10077 esac
10078 shift
10079 for boost_dir
10081 # Without --layout=system, Boost (or at least some versions) installs
10082 # itself in <prefix>/include/boost-<version>. This inner loop helps to
10083 # find headers in such directories.
10085 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
10086 # order followed by ${boost_dir}. The final '.' is a sentinel for
10087 # searching $boost_dir" itself. Entries are whitespace separated.
10089 # I didn't indent this loop on purpose (to avoid over-indented code)
10090 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
10091 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
10092 && echo .`
10093 for boost_inc in $boost_layout_system_search_list
10095 if test x"$boost_inc" != x.; then
10096 boost_inc="$boost_dir/$boost_inc"
10097 else
10098 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
10100 if test x"$boost_inc" != x; then
10101 # We are going to check whether the version of Boost installed
10102 # in $boost_inc is usable by running a compilation that
10103 # #includes it. But if we pass a -I/some/path in which Boost
10104 # is not installed, the compiler will just skip this -I and
10105 # use other locations (either from CPPFLAGS, or from its list
10106 # of system include directories). As a result we would use
10107 # header installed on the machine instead of the /some/path
10108 # specified by the user. So in that precise case (trying
10109 # $boost_inc), make sure the version.hpp exists.
10111 # Use test -e as there can be symlinks.
10112 test -e "$boost_inc/boost/version.hpp" || continue
10113 CPPFLAGS="$CPPFLAGS -I$boost_inc"
10115 if ac_fn_cxx_try_compile "$LINENO"; then :
10116 boost_cv_inc_path=yes
10117 else
10118 boost_cv_version=no
10120 rm -f core conftest.err conftest.$ac_objext
10121 if test x"$boost_cv_inc_path" = xyes; then
10122 if test x"$boost_inc" != x; then
10123 boost_cv_inc_path=$boost_inc
10125 break 2
10127 done
10128 done
10129 ac_ext=cpp
10130 ac_cpp='$CXXCPP $CPPFLAGS'
10131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
10137 $as_echo "$boost_cv_inc_path" >&6; }
10138 case $boost_cv_inc_path in #(
10140 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
10142 $as_echo "$as_me: $boost_errmsg" >&6;}
10143 with_boost=disabled
10144 ;;#(
10145 yes)
10146 BOOST_CPPFLAGS=
10147 ;;#(
10149 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
10151 esac
10152 if test x"$boost_cv_inc_path" != xno; then
10154 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
10157 $as_echo_n "checking for Boost's header version... " >&6; }
10158 if ${boost_cv_lib_version+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 ac_ext=cpp
10162 ac_cpp='$CXXCPP $CPPFLAGS'
10163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 #include <boost/version.hpp>
10169 boost-lib-version = BOOST_LIB_VERSION
10170 _ACEOF
10171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10172 grep -v '#' |
10173 tr -d '\r' |
10174 tr -s '\n' ' ' |
10175 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
10176 boost_cv_lib_version=`cat conftest.i`
10178 rm -rf conftest*
10179 ac_ext=cpp
10180 ac_cpp='$CXXCPP $CPPFLAGS'
10181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
10187 $as_echo "$boost_cv_lib_version" >&6; }
10188 # e.g. "134" for 1_34_1 or "135" for 1_35
10189 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
10190 case $boost_major_version in #(
10191 '' | *[!0-9]*)
10192 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
10194 esac
10196 CPPFLAGS=$boost_save_CPPFLAGS
10198 if test ${with_boost:-no} != disabled; then :
10200 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10201 for cc_temp in $compiler""; do
10202 case $cc_temp in
10203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10205 \-*) ;;
10206 *) break;;
10207 esac
10208 done
10209 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10210 # All known linkers require a `.a' archive for static linking (except MSVC,
10211 # which needs '.lib').
10212 libext=a
10213 case $cc_basename in
10214 cl*) libext=lib ;;
10215 esac
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
10218 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
10219 if ${boost_cv_lib_tag+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 boost_cv_lib_tag=unknown
10223 if test x$boost_cv_inc_path != xno; then
10224 ac_ext=cpp
10225 ac_cpp='$CXXCPP $CPPFLAGS'
10226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10229 # The following tests are mostly inspired by boost/config/auto_link.hpp
10230 # The list is sorted to most recent/common to oldest compiler (in order
10231 # to increase the likelihood of finding the right compiler with the
10232 # least number of compilation attempt).
10233 # Beware that some tests are sensible to the order (for instance, we must
10234 # look for MinGW before looking for GCC3).
10235 # I used one compilation test per compiler with a #error to recognize
10236 # each compiler so that it works even when cross-compiling (let me know
10237 # if you know a better approach).
10238 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10239 # como, edg, kcc, bck, mp, sw, tru, xlc
10240 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10241 # the same defines as GCC's).
10242 for i in \
10243 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10244 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10245 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10246 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10247 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10248 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10249 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10250 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10251 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10252 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10253 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10254 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10255 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10256 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10257 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10258 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10259 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10260 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10261 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10262 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10263 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10264 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10265 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10266 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10267 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10268 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10269 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10270 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10271 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10272 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10273 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10274 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10275 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10276 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10277 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10278 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10279 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10280 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10281 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10282 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10283 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10284 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10285 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10286 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10287 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10288 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10289 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10290 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10291 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10292 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10293 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10294 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10295 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10296 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10297 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10298 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10299 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10300 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10301 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10302 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10303 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10304 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10305 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10306 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10307 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10308 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10309 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10310 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10311 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10312 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10313 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10314 "defined __BORLANDC__ @ bcb" \
10315 "defined __ICC && (defined __unix || defined ) @ il" \
10316 "defined __ICL @ iw" \
10317 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10318 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10319 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10320 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10321 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10322 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10324 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10325 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10329 #if $boost_tag_test
10330 /* OK */
10331 #else
10332 # error $boost_tag_test
10333 #endif
10336 main ()
10340 return 0;
10342 _ACEOF
10343 if ac_fn_cxx_try_compile "$LINENO"; then :
10344 boost_cv_lib_tag=$boost_tag; break
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 done
10348 ac_ext=cpp
10349 ac_cpp='$CXXCPP $CPPFLAGS'
10350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10353 case $boost_cv_lib_tag in #(
10354 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10355 # to "gcc41" for instance.
10356 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10357 gcc*)
10358 boost_tag_x=
10359 case $host_os in #(
10360 darwin*)
10361 if test $boost_major_version -ge 136; then
10362 # The `x' added in r46793 of Boost.
10363 boost_tag_x=x
10364 fi;;
10365 esac
10366 # We can specify multiple tags in this variable because it's used by
10367 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10368 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10369 ;; #(
10370 unknown)
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10372 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10373 boost_cv_lib_tag=
10375 esac
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10379 $as_echo "$boost_cv_lib_tag" >&6; }
10380 # Check whether --enable-static-boost was given.
10381 if test "${enable_static_boost+set}" = set; then :
10382 enableval=$enable_static_boost; enable_static_boost=yes
10383 else
10384 enable_static_boost=no
10387 # Check whether we do better use `mt' even though we weren't ask to.
10388 ac_ext=cpp
10389 ac_cpp='$CXXCPP $CPPFLAGS'
10390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 #if defined _REENTRANT || defined _MT || defined __MT__
10397 /* use -mt */
10398 #else
10399 # error MT not needed
10400 #endif
10403 main ()
10407 return 0;
10409 _ACEOF
10410 if ac_fn_cxx_try_compile "$LINENO"; then :
10411 boost_guess_use_mt=:
10412 else
10413 boost_guess_use_mt=false
10415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416 ac_ext=cpp
10417 ac_cpp='$CXXCPP $CPPFLAGS'
10418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10423 $as_echo_n "checking for Boost sources... " >&6; }
10424 mule_backup_CPPFLAGS="$CPPFLAGS"
10425 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 #include <boost/../libs/system/src/error_code.cpp>
10431 main ()
10435 return 0;
10438 _ACEOF
10439 if ac_fn_cxx_try_compile "$LINENO"; then :
10442 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10445 $as_echo "yes" >&6; }
10447 else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10451 if test x"$boost_cv_inc_path" = xno; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10453 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10454 else
10455 ac_ext=cpp
10456 ac_cpp='$CXXCPP $CPPFLAGS'
10457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10460 if test x"$boost_cv_inc_path" = xno; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10462 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10463 else
10464 ac_ext=cpp
10465 ac_cpp='$CXXCPP $CPPFLAGS'
10466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10469 boost_save_CPPFLAGS=$CPPFLAGS
10470 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10471 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10472 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
10474 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10476 else
10477 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
10481 CPPFLAGS=$boost_save_CPPFLAGS
10482 ac_ext=cpp
10483 ac_cpp='$CXXCPP $CPPFLAGS'
10484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10489 boost_save_CPPFLAGS=$CPPFLAGS
10490 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10492 $as_echo_n "checking for the Boost system library... " >&6; }
10493 if ${boost_cv_lib_system+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 boost_cv_lib_system=no
10497 case "mt" in #(
10498 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10499 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10500 (*) boost_mt=; boost_rtopt=mt;;
10501 esac
10502 if test $enable_static_boost = yes; then
10503 boost_rtopt="s$boost_rtopt"
10505 # Find the proper debug variant depending on what we've been asked to find.
10506 case $boost_rtopt in #(
10507 (*d*) boost_rt_d=$boost_rtopt;; #(
10508 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10509 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10510 (*) boost_rt_d='-d';;
10511 esac
10512 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10513 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10514 $boost_guess_use_mt && boost_mt=-mt
10515 # Look for the abs path the static archive.
10516 # $libext is computed by Libtool but let's make sure it's non empty.
10517 test -z "$libext" &&
10518 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10519 boost_save_ac_objext=$ac_objext
10520 # Generate the test file.
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #include <boost/system/error_code.hpp>
10526 main ()
10528 boost::system::error_code e; e.clear();
10530 return 0;
10532 _ACEOF
10533 if ac_fn_cxx_try_compile "$LINENO"; then :
10534 ac_objext=do_not_rm_me_plz
10535 else
10536 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
10538 rm -f core conftest.err conftest.$ac_objext
10539 ac_objext=$boost_save_ac_objext
10540 boost_failed_libs=
10541 # Don't bother to ident the following nested for loops, only the 2
10542 # innermost ones matter.
10543 for boost_lib_ in system; do
10544 for boost_tag_ in -$boost_cv_lib_tag ''; do
10545 for boost_ver_ in -$boost_cv_lib_version ''; do
10546 for boost_mt_ in $boost_mt -mt ''; do
10547 for boost_rtopt_ in $boost_rtopt '' -d; do
10548 for boost_lib in \
10549 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10550 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10551 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10552 boost_$boost_lib_$boost_tag_$boost_ver_
10554 # Avoid testing twice the same lib
10555 case $boost_failed_libs in #(
10556 (*@$boost_lib@*) continue;;
10557 esac
10558 # If with_boost is empty, we'll search in /lib first, which is not quite
10559 # right so instead we'll try to a location based on where the headers are.
10560 boost_tmp_lib=$with_boost
10561 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10562 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10563 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10564 "$with_boost" C:/Boost/lib /lib*
10566 # Don't waste time with directories that don't exist.
10567 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10568 continue
10570 boost_save_LDFLAGS=$LDFLAGS
10571 # Are we looking for a static library?
10572 case $boost_ldpath:$boost_rtopt_ in #(
10573 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10574 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10575 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10576 (*) # No: use -lboost_foo to find the shared library.
10577 boost_cv_lib_system_LIBS="-l$boost_lib";;
10578 esac
10579 boost_save_LIBS=$LIBS
10580 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10581 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10582 rm -f conftest$ac_exeext
10583 boost_save_ac_ext=$ac_ext
10584 boost_use_source=:
10585 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10586 # tries to link the existing object file instead of compiling from source.
10587 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10588 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10589 if { { ac_try="$ac_link"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10595 $as_echo "$ac_try_echo"; } >&5
10596 (eval "$ac_link") 2>conftest.err
10597 ac_status=$?
10598 if test -s conftest.err; then
10599 grep -v '^ *+' conftest.err >conftest.er1
10600 cat conftest.er1 >&5
10601 mv -f conftest.er1 conftest.err
10603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604 test $ac_status = 0; } && {
10605 test -z "$ac_cxx_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext && {
10608 test "$cross_compiling" = yes ||
10609 $as_executable_p conftest$ac_exeext
10610 }; then :
10611 boost_cv_lib_system=yes
10612 else
10613 if $boost_use_source; then
10614 $as_echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10618 boost_cv_lib_system=no
10620 ac_objext=$boost_save_ac_objext
10621 ac_ext=$boost_save_ac_ext
10622 rm -f core conftest.err conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext
10624 ac_objext=$boost_save_ac_objext
10625 LDFLAGS=$boost_save_LDFLAGS
10626 LIBS=$boost_save_LIBS
10627 if test x"$boost_cv_lib_system" = xyes; then
10628 # Check or used cached result of whether or not using -R or
10629 # -rpath makes sense. Some implementations of ld, such as for
10630 # Mac OSX, require -rpath but -R is the flag known to work on
10631 # other systems. https://github.com/tsuna/boost.m4/issues/19
10632 if ${boost_cv_rpath_link_ldflag+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 case $boost_ldpath in
10636 '') # Nothing to do.
10637 boost_cv_rpath_link_ldflag=
10638 boost_rpath_link_ldflag_found=yes;;
10640 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10641 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10642 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10643 rm -f conftest$ac_exeext
10644 boost_save_ac_ext=$ac_ext
10645 boost_use_source=:
10646 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10647 # tries to link the existing object file instead of compiling from source.
10648 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10649 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10650 if { { ac_try="$ac_link"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10656 $as_echo "$ac_try_echo"; } >&5
10657 (eval "$ac_link") 2>conftest.err
10658 ac_status=$?
10659 if test -s conftest.err; then
10660 grep -v '^ *+' conftest.err >conftest.er1
10661 cat conftest.er1 >&5
10662 mv -f conftest.er1 conftest.err
10664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10665 test $ac_status = 0; } && {
10666 test -z "$ac_cxx_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext && {
10669 test "$cross_compiling" = yes ||
10670 $as_executable_p conftest$ac_exeext
10671 }; then :
10672 boost_rpath_link_ldflag_found=yes
10673 break
10674 else
10675 if $boost_use_source; then
10676 $as_echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10680 boost_rpath_link_ldflag_found=no
10682 ac_objext=$boost_save_ac_objext
10683 ac_ext=$boost_save_ac_ext
10684 rm -f core conftest.err conftest_ipa8_conftest.oo \
10685 conftest$ac_exeext
10686 done
10688 esac
10689 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10690 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10692 LDFLAGS=$boost_save_LDFLAGS
10693 LIBS=$boost_save_LIBS
10697 test x"$boost_ldpath" != x &&
10698 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10699 boost_cv_lib_system_LDPATH="$boost_ldpath"
10700 break 7
10701 else
10702 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10704 done
10705 done
10706 done
10707 done
10708 done
10709 done
10710 done # boost_lib_
10711 rm -f conftest.$ac_objext
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10715 $as_echo "$boost_cv_lib_system" >&6; }
10716 case $boost_cv_lib_system in #(
10717 (no) $as_echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
10722 esac
10723 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10724 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10725 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10726 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10727 CPPFLAGS=$boost_save_CPPFLAGS
10728 ac_ext=cpp
10729 ac_cpp='$CXXCPP $CPPFLAGS'
10730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10737 if test ${boost_cv_lib_system:-no} != yes; then :
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10740 Boost support has been disabled because Boost.System not found" >&5
10741 $as_echo "$as_me: WARNING:
10742 Boost support has been disabled because Boost.System not found" >&2;}
10743 _mule_warning_8=yes
10744 _mule_has_warnings=yes
10746 with_boost=disabled
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 CPPFLAGS="$mule_backup_CPPFLAGS"
10753 if test x"$boost_cv_inc_path" = xno; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10756 Boost support has been disabled because Boost.Asio not found" >&5
10757 $as_echo "$as_me: WARNING:
10758 Boost support has been disabled because Boost.Asio not found" >&2;}
10759 _mule_warning_9=yes
10760 _mule_has_warnings=yes
10762 with_boost=disabled
10764 else
10765 ac_ext=cpp
10766 ac_cpp='$CXXCPP $CPPFLAGS'
10767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10770 boost_save_CPPFLAGS=$CPPFLAGS
10771 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10772 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10773 if test "x$ac_cv_header_boost_asio_hpp" = xyes; then :
10775 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10777 else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10780 Boost support has been disabled because Boost.Asio not found" >&5
10781 $as_echo "$as_me: WARNING:
10782 Boost support has been disabled because Boost.Asio not found" >&2;}
10783 _mule_warning_10=yes
10784 _mule_has_warnings=yes
10786 with_boost=disabled
10791 CPPFLAGS=$boost_save_CPPFLAGS
10792 ac_ext=cpp
10793 ac_cpp='$CXXCPP $CPPFLAGS'
10794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10802 Boost support has been disabled because of insufficient Boost version." >&5
10803 $as_echo "$as_me: WARNING:
10804 Boost support has been disabled because of insufficient Boost version." >&2;}
10805 _mule_warning_11=yes
10806 _mule_has_warnings=yes
10816 # Ok, we have all needed libs, now checking for other stuff
10817 if test "$LEX" = "flex"; then :
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10820 $as_echo_n "checking for extended flex capabilities... " >&6; }
10822 extended_flex=`flex --help | grep header-file`
10823 if test -n "$extended_flex"; then :
10824 HAVE_FLEX_EXTENDED=yes
10825 else
10826 HAVE_FLEX_EXTENDED=no
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10829 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10831 if test $HAVE_FLEX_EXTENDED = no; then :
10832 { $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
10833 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10836 else
10837 HAVE_FLEX_EXTENDED=no
10841 # Checks for header files.
10842 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10843 if test "x$ac_cv_type_size_t" = xyes; then :
10845 else
10847 cat >>confdefs.h <<_ACEOF
10848 #define size_t unsigned int
10849 _ACEOF
10853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10854 # for constant arguments. Useless!
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10856 $as_echo_n "checking for working alloca.h... " >&6; }
10857 if ${ac_cv_working_alloca_h+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 #include <alloca.h>
10864 main ()
10866 char *p = (char *) alloca (2 * sizeof (int));
10867 if (p) return 0;
10869 return 0;
10871 _ACEOF
10872 if ac_fn_cxx_try_link "$LINENO"; then :
10873 ac_cv_working_alloca_h=yes
10874 else
10875 ac_cv_working_alloca_h=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10881 $as_echo "$ac_cv_working_alloca_h" >&6; }
10882 if test $ac_cv_working_alloca_h = yes; then
10884 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10889 $as_echo_n "checking for alloca... " >&6; }
10890 if ${ac_cv_func_alloca_works+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 #ifdef __GNUC__
10896 # define alloca __builtin_alloca
10897 #else
10898 # ifdef _MSC_VER
10899 # include <malloc.h>
10900 # define alloca _alloca
10901 # else
10902 # ifdef HAVE_ALLOCA_H
10903 # include <alloca.h>
10904 # else
10905 # ifdef _AIX
10906 #pragma alloca
10907 # else
10908 # ifndef alloca /* predefined by HP cc +Olibcalls */
10909 void *alloca (size_t);
10910 # endif
10911 # endif
10912 # endif
10913 # endif
10914 #endif
10917 main ()
10919 char *p = (char *) alloca (1);
10920 if (p) return 0;
10922 return 0;
10924 _ACEOF
10925 if ac_fn_cxx_try_link "$LINENO"; then :
10926 ac_cv_func_alloca_works=yes
10927 else
10928 ac_cv_func_alloca_works=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10934 $as_echo "$ac_cv_func_alloca_works" >&6; }
10936 if test $ac_cv_func_alloca_works = yes; then
10938 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10940 else
10941 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10942 # that cause trouble. Some versions do not even contain alloca or
10943 # contain a buggy version. If you still want to use their alloca,
10944 # use ar to extract alloca.o from them instead of compiling alloca.c.
10946 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10948 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10952 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10953 if ${ac_cv_os_cray+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 #if defined CRAY && ! defined CRAY2
10959 webecray
10960 #else
10961 wenotbecray
10962 #endif
10964 _ACEOF
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "webecray" >/dev/null 2>&1; then :
10967 ac_cv_os_cray=yes
10968 else
10969 ac_cv_os_cray=no
10971 rm -f conftest*
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10975 $as_echo "$ac_cv_os_cray" >&6; }
10976 if test $ac_cv_os_cray = yes; then
10977 for ac_func in _getb67 GETB67 getb67; do
10978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10979 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10982 cat >>confdefs.h <<_ACEOF
10983 #define CRAY_STACKSEG_END $ac_func
10984 _ACEOF
10986 break
10989 done
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10993 $as_echo_n "checking stack direction for C alloca... " >&6; }
10994 if ${ac_cv_c_stack_direction+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test "$cross_compiling" = yes; then :
10998 ac_cv_c_stack_direction=0
10999 else
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002 $ac_includes_default
11004 find_stack_direction (int *addr, int depth)
11006 int dir, dummy = 0;
11007 if (! addr)
11008 addr = &dummy;
11009 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11010 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11011 return dir + dummy;
11015 main (int argc, char **argv)
11017 return find_stack_direction (0, argc + !argv + 20) < 0;
11019 _ACEOF
11020 if ac_fn_cxx_try_run "$LINENO"; then :
11021 ac_cv_c_stack_direction=1
11022 else
11023 ac_cv_c_stack_direction=-1
11025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11026 conftest.$ac_objext conftest.beam conftest.$ac_ext
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11031 $as_echo "$ac_cv_c_stack_direction" >&6; }
11032 cat >>confdefs.h <<_ACEOF
11033 #define STACK_DIRECTION $ac_cv_c_stack_direction
11034 _ACEOF
11039 ac_header_dirent=no
11040 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11041 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11043 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11044 if eval \${$as_ac_Header+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 #include <sys/types.h>
11050 #include <$ac_hdr>
11053 main ()
11055 if ((DIR *) 0)
11056 return 0;
11058 return 0;
11060 _ACEOF
11061 if ac_fn_cxx_try_compile "$LINENO"; then :
11062 eval "$as_ac_Header=yes"
11063 else
11064 eval "$as_ac_Header=no"
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 eval ac_res=\$$as_ac_Header
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11070 $as_echo "$ac_res" >&6; }
11071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11072 cat >>confdefs.h <<_ACEOF
11073 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11074 _ACEOF
11076 ac_header_dirent=$ac_hdr; break
11079 done
11080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11081 if test $ac_header_dirent = dirent.h; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11083 $as_echo_n "checking for library containing opendir... " >&6; }
11084 if ${ac_cv_search_opendir+:} false; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 ac_func_search_save_LIBS=$LIBS
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11091 /* Override any GCC internal prototype to avoid an error.
11092 Use char because int might match the return type of a GCC
11093 builtin and then its argument prototype would still apply. */
11094 #ifdef __cplusplus
11095 extern "C"
11096 #endif
11097 char opendir ();
11099 main ()
11101 return opendir ();
11103 return 0;
11105 _ACEOF
11106 for ac_lib in '' dir; do
11107 if test -z "$ac_lib"; then
11108 ac_res="none required"
11109 else
11110 ac_res=-l$ac_lib
11111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11113 if ac_fn_cxx_try_link "$LINENO"; then :
11114 ac_cv_search_opendir=$ac_res
11116 rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext
11118 if ${ac_cv_search_opendir+:} false; then :
11119 break
11121 done
11122 if ${ac_cv_search_opendir+:} false; then :
11124 else
11125 ac_cv_search_opendir=no
11127 rm conftest.$ac_ext
11128 LIBS=$ac_func_search_save_LIBS
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11131 $as_echo "$ac_cv_search_opendir" >&6; }
11132 ac_res=$ac_cv_search_opendir
11133 if test "$ac_res" != no; then :
11134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11140 $as_echo_n "checking for library containing opendir... " >&6; }
11141 if ${ac_cv_search_opendir+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 ac_func_search_save_LIBS=$LIBS
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char opendir ();
11156 main ()
11158 return opendir ();
11160 return 0;
11162 _ACEOF
11163 for ac_lib in '' x; do
11164 if test -z "$ac_lib"; then
11165 ac_res="none required"
11166 else
11167 ac_res=-l$ac_lib
11168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11170 if ac_fn_cxx_try_link "$LINENO"; then :
11171 ac_cv_search_opendir=$ac_res
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext
11175 if ${ac_cv_search_opendir+:} false; then :
11176 break
11178 done
11179 if ${ac_cv_search_opendir+:} false; then :
11181 else
11182 ac_cv_search_opendir=no
11184 rm conftest.$ac_ext
11185 LIBS=$ac_func_search_save_LIBS
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11188 $as_echo "$ac_cv_search_opendir" >&6; }
11189 ac_res=$ac_cv_search_opendir
11190 if test "$ac_res" != no; then :
11191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11198 $as_echo_n "checking for ANSI C header files... " >&6; }
11199 if ${ac_cv_header_stdc+:} false; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 #include <stdlib.h>
11205 #include <stdarg.h>
11206 #include <string.h>
11207 #include <float.h>
11210 main ()
11214 return 0;
11216 _ACEOF
11217 if ac_fn_cxx_try_compile "$LINENO"; then :
11218 ac_cv_header_stdc=yes
11219 else
11220 ac_cv_header_stdc=no
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 if test $ac_cv_header_stdc = yes; then
11225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <string.h>
11230 _ACEOF
11231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11232 $EGREP "memchr" >/dev/null 2>&1; then :
11234 else
11235 ac_cv_header_stdc=no
11237 rm -f conftest*
11241 if test $ac_cv_header_stdc = yes; then
11242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <stdlib.h>
11247 _ACEOF
11248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11249 $EGREP "free" >/dev/null 2>&1; then :
11251 else
11252 ac_cv_header_stdc=no
11254 rm -f conftest*
11258 if test $ac_cv_header_stdc = yes; then
11259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11260 if test "$cross_compiling" = yes; then :
11262 else
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 #include <ctype.h>
11266 #include <stdlib.h>
11267 #if ((' ' & 0x0FF) == 0x020)
11268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11270 #else
11271 # define ISLOWER(c) \
11272 (('a' <= (c) && (c) <= 'i') \
11273 || ('j' <= (c) && (c) <= 'r') \
11274 || ('s' <= (c) && (c) <= 'z'))
11275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11276 #endif
11278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11280 main ()
11282 int i;
11283 for (i = 0; i < 256; i++)
11284 if (XOR (islower (i), ISLOWER (i))
11285 || toupper (i) != TOUPPER (i))
11286 return 2;
11287 return 0;
11289 _ACEOF
11290 if ac_fn_cxx_try_run "$LINENO"; then :
11292 else
11293 ac_cv_header_stdc=no
11295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11296 conftest.$ac_objext conftest.beam conftest.$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11302 $as_echo "$ac_cv_header_stdc" >&6; }
11303 if test $ac_cv_header_stdc = yes; then
11305 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11309 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
11310 do :
11311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11312 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11314 cat >>confdefs.h <<_ACEOF
11315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 _ACEOF
11320 done
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11323 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11324 if ${ac_cv_header_sys_wait_h+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329 #include <sys/types.h>
11330 #include <sys/wait.h>
11331 #ifndef WEXITSTATUS
11332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11333 #endif
11334 #ifndef WIFEXITED
11335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11336 #endif
11339 main ()
11341 int s;
11342 wait (&s);
11343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11345 return 0;
11347 _ACEOF
11348 if ac_fn_cxx_try_compile "$LINENO"; then :
11349 ac_cv_header_sys_wait_h=yes
11350 else
11351 ac_cv_header_sys_wait_h=no
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11356 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11357 if test $ac_cv_header_sys_wait_h = yes; then
11359 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11365 # Checks for typedefs, structures, and compiler characteristics.
11366 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11367 if test "x$ac_cv_type_mode_t" = xyes; then :
11369 else
11371 cat >>confdefs.h <<_ACEOF
11372 #define mode_t int
11373 _ACEOF
11377 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11378 if test "x$ac_cv_type_off_t" = xyes; then :
11380 else
11382 cat >>confdefs.h <<_ACEOF
11383 #define off_t long int
11384 _ACEOF
11388 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11389 if test "x$ac_cv_type_size_t" = xyes; then :
11391 else
11393 cat >>confdefs.h <<_ACEOF
11394 #define size_t unsigned int
11395 _ACEOF
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11401 if ${ac_cv_header_time+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <sys/types.h>
11407 #include <sys/time.h>
11408 #include <time.h>
11411 main ()
11413 if ((struct tm *) 0)
11414 return 0;
11416 return 0;
11418 _ACEOF
11419 if ac_fn_cxx_try_compile "$LINENO"; then :
11420 ac_cv_header_time=yes
11421 else
11422 ac_cv_header_time=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11427 $as_echo "$ac_cv_header_time" >&6; }
11428 if test $ac_cv_header_time = yes; then
11430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11435 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11436 if ${ac_cv_struct_tm+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #include <sys/types.h>
11442 #include <time.h>
11445 main ()
11447 struct tm tm;
11448 int *p = &tm.tm_sec;
11449 return !p;
11451 return 0;
11453 _ACEOF
11454 if ac_fn_cxx_try_compile "$LINENO"; then :
11455 ac_cv_struct_tm=time.h
11456 else
11457 ac_cv_struct_tm=sys/time.h
11459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11462 $as_echo "$ac_cv_struct_tm" >&6; }
11463 if test $ac_cv_struct_tm = sys/time.h; then
11465 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11470 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11471 if ${ac_cv_type_uid_t+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476 #include <sys/types.h>
11478 _ACEOF
11479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480 $EGREP "uid_t" >/dev/null 2>&1; then :
11481 ac_cv_type_uid_t=yes
11482 else
11483 ac_cv_type_uid_t=no
11485 rm -f conftest*
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11489 $as_echo "$ac_cv_type_uid_t" >&6; }
11490 if test $ac_cv_type_uid_t = no; then
11492 $as_echo "#define uid_t int" >>confdefs.h
11495 $as_echo "#define gid_t int" >>confdefs.h
11499 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11500 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_PTRDIFF_T 1
11504 _ACEOF
11511 # Checks for library functions.
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11513 $as_echo_n "checking whether closedir returns void... " >&6; }
11514 if ${ac_cv_func_closedir_void+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 if test "$cross_compiling" = yes; then :
11518 ac_cv_func_closedir_void=yes
11519 else
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 #include <$ac_header_dirent>
11524 #ifndef __cplusplus
11525 int closedir ();
11526 #endif
11529 main ()
11531 return closedir (opendir (".")) != 0;
11533 return 0;
11535 _ACEOF
11536 if ac_fn_cxx_try_run "$LINENO"; then :
11537 ac_cv_func_closedir_void=no
11538 else
11539 ac_cv_func_closedir_void=yes
11541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11542 conftest.$ac_objext conftest.beam conftest.$ac_ext
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11547 $as_echo "$ac_cv_func_closedir_void" >&6; }
11548 if test $ac_cv_func_closedir_void = yes; then
11550 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11554 if test $ac_cv_c_compiler_gnu = yes; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11556 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11557 if ${ac_cv_prog_gcc_traditional+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 ac_pattern="Autoconf.*'x'"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563 #include <sgtty.h>
11564 Autoconf TIOCGETP
11565 _ACEOF
11566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11567 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11568 ac_cv_prog_gcc_traditional=yes
11569 else
11570 ac_cv_prog_gcc_traditional=no
11572 rm -f conftest*
11575 if test $ac_cv_prog_gcc_traditional = no; then
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <termio.h>
11579 Autoconf TCGETA
11580 _ACEOF
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11583 ac_cv_prog_gcc_traditional=yes
11585 rm -f conftest*
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11590 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11591 if test $ac_cv_prog_gcc_traditional = yes; then
11592 CC="$CC -traditional"
11596 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11597 if test "x$ac_cv_type_pid_t" = xyes; then :
11599 else
11601 cat >>confdefs.h <<_ACEOF
11602 #define pid_t int
11603 _ACEOF
11607 for ac_header in vfork.h
11608 do :
11609 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11610 if test "x$ac_cv_header_vfork_h" = xyes; then :
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_VFORK_H 1
11613 _ACEOF
11617 done
11619 for ac_func in fork vfork
11620 do :
11621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11622 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11624 cat >>confdefs.h <<_ACEOF
11625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 _ACEOF
11629 done
11631 if test "x$ac_cv_func_fork" = xyes; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11633 $as_echo_n "checking for working fork... " >&6; }
11634 if ${ac_cv_func_fork_works+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 if test "$cross_compiling" = yes; then :
11638 ac_cv_func_fork_works=cross
11639 else
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 $ac_includes_default
11644 main ()
11647 /* By Ruediger Kuhlmann. */
11648 return fork () < 0;
11651 return 0;
11653 _ACEOF
11654 if ac_fn_cxx_try_run "$LINENO"; then :
11655 ac_cv_func_fork_works=yes
11656 else
11657 ac_cv_func_fork_works=no
11659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11660 conftest.$ac_objext conftest.beam conftest.$ac_ext
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11665 $as_echo "$ac_cv_func_fork_works" >&6; }
11667 else
11668 ac_cv_func_fork_works=$ac_cv_func_fork
11670 if test "x$ac_cv_func_fork_works" = xcross; then
11671 case $host in
11672 *-*-amigaos* | *-*-msdosdjgpp*)
11673 # Override, as these systems have only a dummy fork() stub
11674 ac_cv_func_fork_works=no
11677 ac_cv_func_fork_works=yes
11679 esac
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11681 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11683 ac_cv_func_vfork_works=$ac_cv_func_vfork
11684 if test "x$ac_cv_func_vfork" = xyes; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11686 $as_echo_n "checking for working vfork... " >&6; }
11687 if ${ac_cv_func_vfork_works+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 if test "$cross_compiling" = yes; then :
11691 ac_cv_func_vfork_works=cross
11692 else
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11695 /* Thanks to Paul Eggert for this test. */
11696 $ac_includes_default
11697 #include <sys/wait.h>
11698 #ifdef HAVE_VFORK_H
11699 # include <vfork.h>
11700 #endif
11701 /* On some sparc systems, changes by the child to local and incoming
11702 argument registers are propagated back to the parent. The compiler
11703 is told about this with #include <vfork.h>, but some compilers
11704 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11705 static variable whose address is put into a register that is
11706 clobbered by the vfork. */
11707 static void
11708 #ifdef __cplusplus
11709 sparc_address_test (int arg)
11710 # else
11711 sparc_address_test (arg) int arg;
11712 #endif
11714 static pid_t child;
11715 if (!child) {
11716 child = vfork ();
11717 if (child < 0) {
11718 perror ("vfork");
11719 _exit(2);
11721 if (!child) {
11722 arg = getpid();
11723 write(-1, "", 0);
11724 _exit (arg);
11730 main ()
11732 pid_t parent = getpid ();
11733 pid_t child;
11735 sparc_address_test (0);
11737 child = vfork ();
11739 if (child == 0) {
11740 /* Here is another test for sparc vfork register problems. This
11741 test uses lots of local variables, at least as many local
11742 variables as main has allocated so far including compiler
11743 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11744 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11745 reuse the register of parent for one of the local variables,
11746 since it will think that parent can't possibly be used any more
11747 in this routine. Assigning to the local variable will thus
11748 munge parent in the parent process. */
11749 pid_t
11750 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11751 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11752 /* Convince the compiler that p..p7 are live; otherwise, it might
11753 use the same hardware register for all 8 local variables. */
11754 if (p != p1 || p != p2 || p != p3 || p != p4
11755 || p != p5 || p != p6 || p != p7)
11756 _exit(1);
11758 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11759 from child file descriptors. If the child closes a descriptor
11760 before it execs or exits, this munges the parent's descriptor
11761 as well. Test for this by closing stdout in the child. */
11762 _exit(close(fileno(stdout)) != 0);
11763 } else {
11764 int status;
11765 struct stat st;
11767 while (wait(&status) != child)
11769 return (
11770 /* Was there some problem with vforking? */
11771 child < 0
11773 /* Did the child fail? (This shouldn't happen.) */
11774 || status
11776 /* Did the vfork/compiler bug occur? */
11777 || parent != getpid()
11779 /* Did the file descriptor bug occur? */
11780 || fstat(fileno(stdout), &st) != 0
11784 _ACEOF
11785 if ac_fn_cxx_try_run "$LINENO"; then :
11786 ac_cv_func_vfork_works=yes
11787 else
11788 ac_cv_func_vfork_works=no
11790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11791 conftest.$ac_objext conftest.beam conftest.$ac_ext
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11796 $as_echo "$ac_cv_func_vfork_works" >&6; }
11799 if test "x$ac_cv_func_fork_works" = xcross; then
11800 ac_cv_func_vfork_works=$ac_cv_func_vfork
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11802 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11805 if test "x$ac_cv_func_vfork_works" = xyes; then
11807 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11809 else
11811 $as_echo "#define vfork fork" >>confdefs.h
11814 if test "x$ac_cv_func_fork_works" = xyes; then
11816 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11821 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11822 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 rm -f conftest.sym conftest.file
11826 echo >conftest.file
11827 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11828 if test "$cross_compiling" = yes; then :
11829 ac_cv_func_lstat_dereferences_slashed_symlink=no
11830 else
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 $ac_includes_default
11835 main ()
11837 struct stat sbuf;
11838 /* Linux will dereference the symlink and fail, as required by POSIX.
11839 That is better in the sense that it means we will not
11840 have to compile and use the lstat wrapper. */
11841 return lstat ("conftest.sym/", &sbuf) == 0;
11843 return 0;
11845 _ACEOF
11846 if ac_fn_cxx_try_run "$LINENO"; then :
11847 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11848 else
11849 ac_cv_func_lstat_dereferences_slashed_symlink=no
11851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11852 conftest.$ac_objext conftest.beam conftest.$ac_ext
11855 else
11856 # If the `ln -s' command failed, then we probably don't even
11857 # have an lstat function.
11858 ac_cv_func_lstat_dereferences_slashed_symlink=no
11860 rm -f conftest.sym conftest.file
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11864 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11866 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11868 cat >>confdefs.h <<_ACEOF
11869 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11870 _ACEOF
11873 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11874 case " $LIBOBJS " in
11875 *" lstat.$ac_objext "* ) ;;
11876 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11878 esac
11882 if test x$SYS != xwin32; then :
11884 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11885 # -lseq on Dynix/PTX, -lgen on Unixware.
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11887 $as_echo_n "checking for library containing getmntent... " >&6; }
11888 if ${ac_cv_search_getmntent+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 ac_func_search_save_LIBS=$LIBS
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char getmntent ();
11903 main ()
11905 return getmntent ();
11907 return 0;
11909 _ACEOF
11910 for ac_lib in '' sun seq gen; do
11911 if test -z "$ac_lib"; then
11912 ac_res="none required"
11913 else
11914 ac_res=-l$ac_lib
11915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11917 if ac_fn_cxx_try_link "$LINENO"; then :
11918 ac_cv_search_getmntent=$ac_res
11920 rm -f core conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext
11922 if ${ac_cv_search_getmntent+:} false; then :
11923 break
11925 done
11926 if ${ac_cv_search_getmntent+:} false; then :
11928 else
11929 ac_cv_search_getmntent=no
11931 rm conftest.$ac_ext
11932 LIBS=$ac_func_search_save_LIBS
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11935 $as_echo "$ac_cv_search_getmntent" >&6; }
11936 ac_res=$ac_cv_search_getmntent
11937 if test "$ac_res" != no; then :
11938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11939 ac_cv_func_getmntent=yes
11941 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11943 else
11944 ac_cv_func_getmntent=no
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11949 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11950 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test "$cross_compiling" = yes; then :
11954 ac_cv_func_lstat_empty_string_bug=yes
11955 else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 $ac_includes_default
11960 main ()
11962 struct stat sbuf;
11963 return lstat ("", &sbuf) == 0;
11965 return 0;
11967 _ACEOF
11968 if ac_fn_cxx_try_run "$LINENO"; then :
11969 ac_cv_func_lstat_empty_string_bug=no
11970 else
11971 ac_cv_func_lstat_empty_string_bug=yes
11973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11974 conftest.$ac_objext conftest.beam conftest.$ac_ext
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11979 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11980 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11981 case " $LIBOBJS " in
11982 *" lstat.$ac_objext "* ) ;;
11983 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11985 esac
11988 cat >>confdefs.h <<_ACEOF
11989 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11990 _ACEOF
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11995 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11996 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 rm -f conftest.sym conftest.file
12000 echo >conftest.file
12001 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12002 if test "$cross_compiling" = yes; then :
12003 ac_cv_func_lstat_dereferences_slashed_symlink=no
12004 else
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 $ac_includes_default
12009 main ()
12011 struct stat sbuf;
12012 /* Linux will dereference the symlink and fail, as required by POSIX.
12013 That is better in the sense that it means we will not
12014 have to compile and use the lstat wrapper. */
12015 return lstat ("conftest.sym/", &sbuf) == 0;
12017 return 0;
12019 _ACEOF
12020 if ac_fn_cxx_try_run "$LINENO"; then :
12021 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12022 else
12023 ac_cv_func_lstat_dereferences_slashed_symlink=no
12025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12026 conftest.$ac_objext conftest.beam conftest.$ac_ext
12029 else
12030 # If the `ln -s' command failed, then we probably don't even
12031 # have an lstat function.
12032 ac_cv_func_lstat_dereferences_slashed_symlink=no
12034 rm -f conftest.sym conftest.file
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12038 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12040 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12042 cat >>confdefs.h <<_ACEOF
12043 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12044 _ACEOF
12047 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
12048 case " $LIBOBJS " in
12049 *" lstat.$ac_objext "* ) ;;
12050 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12052 esac
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12059 $as_echo_n "checking for working memcmp... " >&6; }
12060 if ${ac_cv_func_memcmp_working+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 if test "$cross_compiling" = yes; then :
12064 ac_cv_func_memcmp_working=no
12065 else
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068 $ac_includes_default
12070 main ()
12073 /* Some versions of memcmp are not 8-bit clean. */
12074 char c0 = '\100', c1 = '\200', c2 = '\201';
12075 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12076 return 1;
12078 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12079 or more and with at least one buffer not starting on a 4-byte boundary.
12080 William Lewis provided this test program. */
12082 char foo[21];
12083 char bar[21];
12084 int i;
12085 for (i = 0; i < 4; i++)
12087 char *a = foo + i;
12088 char *b = bar + i;
12089 strcpy (a, "--------01111111");
12090 strcpy (b, "--------10000000");
12091 if (memcmp (a, b, 16) >= 0)
12092 return 1;
12094 return 0;
12098 return 0;
12100 _ACEOF
12101 if ac_fn_cxx_try_run "$LINENO"; then :
12102 ac_cv_func_memcmp_working=yes
12103 else
12104 ac_cv_func_memcmp_working=no
12106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12107 conftest.$ac_objext conftest.beam conftest.$ac_ext
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12112 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12113 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12114 *" memcmp.$ac_objext "* ) ;;
12115 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12117 esac
12120 for ac_header in sys/select.h sys/socket.h
12121 do :
12122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12123 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12125 cat >>confdefs.h <<_ACEOF
12126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12127 _ACEOF
12131 done
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12134 $as_echo_n "checking types of arguments for select... " >&6; }
12135 if ${ac_cv_func_select_args+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12139 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12140 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 $ac_includes_default
12144 #ifdef HAVE_SYS_SELECT_H
12145 # include <sys/select.h>
12146 #endif
12147 #ifdef HAVE_SYS_SOCKET_H
12148 # include <sys/socket.h>
12149 #endif
12152 main ()
12154 extern int select ($ac_arg1,
12155 $ac_arg234, $ac_arg234, $ac_arg234,
12156 $ac_arg5);
12158 return 0;
12160 _ACEOF
12161 if ac_fn_cxx_try_compile "$LINENO"; then :
12162 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 done
12166 done
12167 done
12168 # Provide a safe default value.
12169 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12173 $as_echo "$ac_cv_func_select_args" >&6; }
12174 ac_save_IFS=$IFS; IFS=','
12175 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12176 IFS=$ac_save_IFS
12177 shift
12179 cat >>confdefs.h <<_ACEOF
12180 #define SELECT_TYPE_ARG1 $1
12181 _ACEOF
12184 cat >>confdefs.h <<_ACEOF
12185 #define SELECT_TYPE_ARG234 ($2)
12186 _ACEOF
12189 cat >>confdefs.h <<_ACEOF
12190 #define SELECT_TYPE_ARG5 ($3)
12191 _ACEOF
12193 rm -f conftest*
12195 if ${ac_cv_func_setvbuf_reversed+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_cv_func_setvbuf_reversed=no
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12203 $as_echo_n "checking return type of signal handlers... " >&6; }
12204 if ${ac_cv_type_signal+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209 #include <sys/types.h>
12210 #include <signal.h>
12213 main ()
12215 return *(signal (0, 0)) (0) == 1;
12217 return 0;
12219 _ACEOF
12220 if ac_fn_cxx_try_compile "$LINENO"; then :
12221 ac_cv_type_signal=int
12222 else
12223 ac_cv_type_signal=void
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12228 $as_echo "$ac_cv_type_signal" >&6; }
12230 cat >>confdefs.h <<_ACEOF
12231 #define RETSIGTYPE $ac_cv_type_signal
12232 _ACEOF
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12236 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12237 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test "$cross_compiling" = yes; then :
12241 ac_cv_func_stat_empty_string_bug=yes
12242 else
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245 $ac_includes_default
12247 main ()
12249 struct stat sbuf;
12250 return stat ("", &sbuf) == 0;
12252 return 0;
12254 _ACEOF
12255 if ac_fn_cxx_try_run "$LINENO"; then :
12256 ac_cv_func_stat_empty_string_bug=no
12257 else
12258 ac_cv_func_stat_empty_string_bug=yes
12260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12261 conftest.$ac_objext conftest.beam conftest.$ac_ext
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12266 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12267 if test $ac_cv_func_stat_empty_string_bug = yes; then
12268 case " $LIBOBJS " in
12269 *" stat.$ac_objext "* ) ;;
12270 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12272 esac
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_STAT_EMPTY_STRING_BUG 1
12277 _ACEOF
12281 for ac_func in strftime
12282 do :
12283 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12284 if test "x$ac_cv_func_strftime" = xyes; then :
12285 cat >>confdefs.h <<_ACEOF
12286 #define HAVE_STRFTIME 1
12287 _ACEOF
12289 else
12290 # strftime is in -lintl on SCO UNIX.
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12292 $as_echo_n "checking for strftime in -lintl... " >&6; }
12293 if ${ac_cv_lib_intl_strftime+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-lintl $LIBS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char strftime ();
12309 main ()
12311 return strftime ();
12313 return 0;
12315 _ACEOF
12316 if ac_fn_cxx_try_link "$LINENO"; then :
12317 ac_cv_lib_intl_strftime=yes
12318 else
12319 ac_cv_lib_intl_strftime=no
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12326 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12327 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12328 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12330 LIBS="-lintl $LIBS"
12334 done
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12337 $as_echo_n "checking for working strtod... " >&6; }
12338 if ${ac_cv_func_strtod+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 if test "$cross_compiling" = yes; then :
12342 ac_cv_func_strtod=no
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 $ac_includes_default
12348 #ifndef strtod
12349 double strtod ();
12350 #endif
12352 main()
12355 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12356 char *string = " +69";
12357 char *term;
12358 double value;
12359 value = strtod (string, &term);
12360 if (value != 69 || term != (string + 4))
12361 return 1;
12365 /* Under Solaris 2.4, strtod returns the wrong value for the
12366 terminating character under some conditions. */
12367 char *string = "NaN";
12368 char *term;
12369 strtod (string, &term);
12370 if (term != string && *(term - 1) == 0)
12371 return 1;
12373 return 0;
12376 _ACEOF
12377 if ac_fn_cxx_try_run "$LINENO"; then :
12378 ac_cv_func_strtod=yes
12379 else
12380 ac_cv_func_strtod=no
12382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12383 conftest.$ac_objext conftest.beam conftest.$ac_ext
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12388 $as_echo "$ac_cv_func_strtod" >&6; }
12389 if test $ac_cv_func_strtod = no; then
12390 case " $LIBOBJS " in
12391 *" strtod.$ac_objext "* ) ;;
12392 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12394 esac
12396 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12397 if test "x$ac_cv_func_pow" = xyes; then :
12401 if test $ac_cv_func_pow = no; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12403 $as_echo_n "checking for pow in -lm... " >&6; }
12404 if ${ac_cv_lib_m_pow+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lm $LIBS"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char pow ();
12420 main ()
12422 return pow ();
12424 return 0;
12426 _ACEOF
12427 if ac_fn_cxx_try_link "$LINENO"; then :
12428 ac_cv_lib_m_pow=yes
12429 else
12430 ac_cv_lib_m_pow=no
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12437 $as_echo "$ac_cv_lib_m_pow" >&6; }
12438 if test "x$ac_cv_lib_m_pow" = xyes; then :
12439 POW_LIB=-lm
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12442 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12449 for ac_func in vprintf
12450 do :
12451 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12452 if test "x$ac_cv_func_vprintf" = xyes; then :
12453 cat >>confdefs.h <<_ACEOF
12454 #define HAVE_VPRINTF 1
12455 _ACEOF
12457 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12458 if test "x$ac_cv_func__doprnt" = xyes; then :
12460 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12465 done
12468 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12471 configure cannot check whether malloc() and realloc() are GNU libc
12472 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12473 run configure with the --without-gnu-malloc switch." >&5
12474 $as_echo "$as_me: WARNING:
12475 configure cannot check whether malloc() and realloc() are GNU libc
12476 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12477 run configure with the --without-gnu-malloc switch." >&2;}
12478 _mule_warning_12=yes
12479 _mule_has_warnings=yes
12481 ac_cv_func_malloc_0_nonnull=yes
12482 ac_cv_func_realloc_0_nonnull=yes
12485 for ac_header in stdlib.h
12486 do :
12487 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12488 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_STDLIB_H 1
12491 _ACEOF
12495 done
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12498 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12499 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 if test "$cross_compiling" = yes; then :
12503 ac_cv_func_malloc_0_nonnull=no
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12508 # include <stdlib.h>
12509 #else
12510 char *malloc ();
12511 #endif
12514 main ()
12516 return ! malloc (0);
12518 return 0;
12520 _ACEOF
12521 if ac_fn_cxx_try_run "$LINENO"; then :
12522 ac_cv_func_malloc_0_nonnull=yes
12523 else
12524 ac_cv_func_malloc_0_nonnull=no
12526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12527 conftest.$ac_objext conftest.beam conftest.$ac_ext
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12532 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12533 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12535 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12537 else
12538 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12540 case " $LIBOBJS " in
12541 *" malloc.$ac_objext "* ) ;;
12542 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12544 esac
12547 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12552 for ac_header in stdlib.h
12553 do :
12554 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12555 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_STDLIB_H 1
12558 _ACEOF
12562 done
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12565 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12566 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 if test "$cross_compiling" = yes; then :
12570 ac_cv_func_realloc_0_nonnull=no
12571 else
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12575 # include <stdlib.h>
12576 #else
12577 char *realloc ();
12578 #endif
12581 main ()
12583 return ! realloc (0, 0);
12585 return 0;
12587 _ACEOF
12588 if ac_fn_cxx_try_run "$LINENO"; then :
12589 ac_cv_func_realloc_0_nonnull=yes
12590 else
12591 ac_cv_func_realloc_0_nonnull=no
12593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12594 conftest.$ac_objext conftest.beam conftest.$ac_ext
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12599 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12600 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12602 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12604 else
12605 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12607 case " $LIBOBJS " in
12608 *" realloc.$ac_objext "* ) ;;
12609 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12611 esac
12614 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12619 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
12620 do :
12621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12624 cat >>confdefs.h <<_ACEOF
12625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12626 _ACEOF
12629 done
12636 for ac_header in $ac_header_list
12637 do :
12638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12639 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12642 cat >>confdefs.h <<_ACEOF
12643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12644 _ACEOF
12648 done
12656 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12658 # Check whether --enable-mmap was given.
12659 if test "${enable_mmap+set}" = set; then :
12660 enableval=$enable_mmap;
12667 if test ${enable_mmap:-no} = yes; then :
12669 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12672 for ac_func in getpagesize
12673 do :
12674 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12675 if test "x$ac_cv_func_getpagesize" = xyes; then :
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_GETPAGESIZE 1
12678 _ACEOF
12681 done
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12684 $as_echo_n "checking for working mmap... " >&6; }
12685 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 if test "$cross_compiling" = yes; then :
12689 ac_cv_func_mmap_fixed_mapped=no
12690 else
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 $ac_includes_default
12694 /* malloc might have been renamed as rpl_malloc. */
12695 #undef malloc
12697 /* Thanks to Mike Haertel and Jim Avera for this test.
12698 Here is a matrix of mmap possibilities:
12699 mmap private not fixed
12700 mmap private fixed at somewhere currently unmapped
12701 mmap private fixed at somewhere already mapped
12702 mmap shared not fixed
12703 mmap shared fixed at somewhere currently unmapped
12704 mmap shared fixed at somewhere already mapped
12705 For private mappings, we should verify that changes cannot be read()
12706 back from the file, nor mmap's back from the file at a different
12707 address. (There have been systems where private was not correctly
12708 implemented like the infamous i386 svr4.0, and systems where the
12709 VM page cache was not coherent with the file system buffer cache
12710 like early versions of FreeBSD and possibly contemporary NetBSD.)
12711 For shared mappings, we should conversely verify that changes get
12712 propagated back to all the places they're supposed to be.
12714 Grep wants private fixed already mapped.
12715 The main things grep needs to know about mmap are:
12716 * does it exist and is it safe to write into the mmap'd area
12717 * how to use it (BSD variants) */
12719 #include <fcntl.h>
12720 #include <sys/mman.h>
12722 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12723 char *malloc ();
12724 #endif
12726 /* This mess was copied from the GNU getpagesize.h. */
12727 #ifndef HAVE_GETPAGESIZE
12728 # ifdef _SC_PAGESIZE
12729 # define getpagesize() sysconf(_SC_PAGESIZE)
12730 # else /* no _SC_PAGESIZE */
12731 # ifdef HAVE_SYS_PARAM_H
12732 # include <sys/param.h>
12733 # ifdef EXEC_PAGESIZE
12734 # define getpagesize() EXEC_PAGESIZE
12735 # else /* no EXEC_PAGESIZE */
12736 # ifdef NBPG
12737 # define getpagesize() NBPG * CLSIZE
12738 # ifndef CLSIZE
12739 # define CLSIZE 1
12740 # endif /* no CLSIZE */
12741 # else /* no NBPG */
12742 # ifdef NBPC
12743 # define getpagesize() NBPC
12744 # else /* no NBPC */
12745 # ifdef PAGESIZE
12746 # define getpagesize() PAGESIZE
12747 # endif /* PAGESIZE */
12748 # endif /* no NBPC */
12749 # endif /* no NBPG */
12750 # endif /* no EXEC_PAGESIZE */
12751 # else /* no HAVE_SYS_PARAM_H */
12752 # define getpagesize() 8192 /* punt totally */
12753 # endif /* no HAVE_SYS_PARAM_H */
12754 # endif /* no _SC_PAGESIZE */
12756 #endif /* no HAVE_GETPAGESIZE */
12759 main ()
12761 char *data, *data2, *data3;
12762 int i, pagesize;
12763 int fd, fd2;
12765 pagesize = getpagesize ();
12767 /* First, make a file with some known garbage in it. */
12768 data = (char *) malloc (pagesize);
12769 if (!data)
12770 return 1;
12771 for (i = 0; i < pagesize; ++i)
12772 *(data + i) = rand ();
12773 umask (0);
12774 fd = creat ("conftest.mmap", 0600);
12775 if (fd < 0)
12776 return 2;
12777 if (write (fd, data, pagesize) != pagesize)
12778 return 3;
12779 close (fd);
12781 /* Next, check that the tail of a page is zero-filled. File must have
12782 non-zero length, otherwise we risk SIGBUS for entire page. */
12783 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12784 if (fd2 < 0)
12785 return 4;
12786 data2 = (char *) "";
12787 if (write (fd2, data2, 1) != 1)
12788 return 5;
12789 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12790 if (data2 == MAP_FAILED)
12791 return 6;
12792 for (i = 0; i < pagesize; ++i)
12793 if (*(data2 + i))
12794 return 7;
12795 close (fd2);
12796 if (munmap (data2, pagesize))
12797 return 8;
12799 /* Next, try to mmap the file at a fixed address which already has
12800 something else allocated at it. If we can, also make sure that
12801 we see the same garbage. */
12802 fd = open ("conftest.mmap", O_RDWR);
12803 if (fd < 0)
12804 return 9;
12805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12806 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12807 return 10;
12808 for (i = 0; i < pagesize; ++i)
12809 if (*(data + i) != *(data2 + i))
12810 return 11;
12812 /* Finally, make sure that changes to the mapped area do not
12813 percolate back to the file as seen by read(). (This is a bug on
12814 some variants of i386 svr4.0.) */
12815 for (i = 0; i < pagesize; ++i)
12816 *(data2 + i) = *(data2 + i) + 1;
12817 data3 = (char *) malloc (pagesize);
12818 if (!data3)
12819 return 12;
12820 if (read (fd, data3, pagesize) != pagesize)
12821 return 13;
12822 for (i = 0; i < pagesize; ++i)
12823 if (*(data + i) != *(data3 + i))
12824 return 14;
12825 close (fd);
12826 return 0;
12828 _ACEOF
12829 if ac_fn_cxx_try_run "$LINENO"; then :
12830 ac_cv_func_mmap_fixed_mapped=yes
12831 else
12832 ac_cv_func_mmap_fixed_mapped=no
12834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12835 conftest.$ac_objext conftest.beam conftest.$ac_ext
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12840 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12841 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12843 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12846 rm -f conftest.mmap conftest.txt
12848 for ac_func in munmap sysconf
12849 do :
12850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12851 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12852 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12853 cat >>confdefs.h <<_ACEOF
12854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12855 _ACEOF
12858 done
12860 if test $ac_cv_func_sysconf = yes; then :
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12863 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12868 #include <unistd.h>
12871 main ()
12874 return sysconf(_SC_PAGESIZE);
12877 return 0;
12880 _ACEOF
12881 if ac_fn_cxx_try_link "$LINENO"; then :
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12884 $as_echo "_SC_PAGESIZE" >&6; }
12886 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12889 else
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12895 #include <unistd.h>
12898 main ()
12901 return sysconf(_SC_PAGE_SIZE);
12904 return 0;
12907 _ACEOF
12908 if ac_fn_cxx_try_link "$LINENO"; then :
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12911 $as_echo "_SC_PAGE_SIZE" >&6; }
12913 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12916 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12919 $as_echo "none" >&6; }
12922 rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12936 # Look for a way to preallocate disk space for files.
12937 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12940 $as_echo_n "checking for fallocate... " >&6; }
12941 mule_backup_CPPFLAGS="$CPPFLAGS"
12942 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12947 #ifndef _GNU_SOURCE
12948 # define _GNU_SOURCE
12949 #endif
12950 #ifdef HAVE_FCNTL_H
12951 # include <fcntl.h>
12952 #endif
12953 #include <linux/falloc.h>
12956 main ()
12959 fallocate(0, 0, 0, 0);
12962 return 0;
12965 _ACEOF
12966 if ac_fn_cxx_try_link "$LINENO"; then :
12969 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972 $as_echo "yes" >&6; }
12974 else
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 CPPFLAGS="$mule_backup_CPPFLAGS"
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12986 $as_echo_n "checking for SYS_fallocate... " >&6; }
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12991 #include <sys/syscall.h>
12992 #include <sys/types.h>
12993 #include <unistd.h>
12996 main ()
12999 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
13002 return 0;
13005 _ACEOF
13006 if ac_fn_cxx_try_link "$LINENO"; then :
13009 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13012 $as_echo "yes" >&6; }
13014 else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
13024 $as_echo_n "checking for posix_fallocate... " >&6; }
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13029 #define _XOPEN_SOURCE 600
13030 #include <stdlib.h>
13031 #ifdef HAVE_FCNTL_H
13032 # include <fcntl.h>
13033 #endif
13036 main ()
13039 posix_fallocate(0, 0, 0);
13042 return 0;
13045 _ACEOF
13046 if ac_fn_cxx_try_link "$LINENO"; then :
13049 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13054 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13066 ac_ext=c
13067 ac_cpp='$CPP $CPPFLAGS'
13068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13072 # Checking Native Language Support
13075 MKINSTALLDIRS=
13076 if test -n "$ac_aux_dir"; then
13077 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13079 if test -z "$MKINSTALLDIRS"; then
13080 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13087 # Extract the first word of "msgfmt", so it can be a program name with args.
13088 set dummy msgfmt; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if ${ac_cv_path_MSGFMT+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 case "$MSGFMT" in
13096 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13100 for ac_dir in $PATH; do
13101 test -z "$ac_dir" && ac_dir=.
13102 if test -f $ac_dir/$ac_word; then
13103 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13104 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13105 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13106 break
13109 done
13110 IFS="$ac_save_ifs"
13111 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13113 esac
13115 MSGFMT="$ac_cv_path_MSGFMT"
13116 if test "$MSGFMT" != ":"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13118 $as_echo "$MSGFMT" >&6; }
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13124 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13125 set dummy gmsgfmt; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_path_GMSGFMT+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 case $GMSGFMT in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13147 done
13148 done
13149 IFS=$as_save_IFS
13151 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13153 esac
13155 GMSGFMT=$ac_cv_path_GMSGFMT
13156 if test -n "$GMSGFMT"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13158 $as_echo "$GMSGFMT" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13166 # Extract the first word of "xgettext", so it can be a program name with args.
13167 set dummy xgettext; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if ${ac_cv_path_XGETTEXT+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 case "$XGETTEXT" in
13175 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13179 for ac_dir in $PATH; do
13180 test -z "$ac_dir" && ac_dir=.
13181 if test -f $ac_dir/$ac_word; then
13182 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13183 (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
13184 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13185 break
13188 done
13189 IFS="$ac_save_ifs"
13190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13192 esac
13194 XGETTEXT="$ac_cv_path_XGETTEXT"
13195 if test "$XGETTEXT" != ":"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13197 $as_echo "$XGETTEXT" >&6; }
13198 else
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200 $as_echo "no" >&6; }
13203 rm -f messages.po
13205 # Extract the first word of "msgmerge", so it can be a program name with args.
13206 set dummy msgmerge; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_path_MSGMERGE+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 case "$MSGMERGE" in
13214 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13218 for ac_dir in $PATH; do
13219 test -z "$ac_dir" && ac_dir=.
13220 if test -f $ac_dir/$ac_word; then
13221 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13222 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
13223 break
13226 done
13227 IFS="$ac_save_ifs"
13228 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13230 esac
13232 MSGMERGE="$ac_cv_path_MSGMERGE"
13233 if test "$MSGMERGE" != ":"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13235 $as_echo "$MSGMERGE" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13242 if test "$GMSGFMT" != ":"; then
13243 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13244 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13246 else
13247 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13249 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13250 GMSGFMT=":"
13254 if test "$XGETTEXT" != ":"; then
13255 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13256 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13260 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13261 XGETTEXT=":"
13263 rm -f messages.po
13266 ac_config_commands="$ac_config_commands default-1"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13271 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13272 if ${ac_cv_lib_cposix_strerror+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-lcposix $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char strerror ();
13288 main ()
13290 return strerror ();
13292 return 0;
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_cposix_strerror=yes
13297 else
13298 ac_cv_lib_cposix_strerror=no
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13305 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13306 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
13307 LIBS="$LIBS -lcposix"
13313 for ac_func in getpagesize
13314 do :
13315 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13316 if test "x$ac_cv_func_getpagesize" = xyes; then :
13317 cat >>confdefs.h <<_ACEOF
13318 #define HAVE_GETPAGESIZE 1
13319 _ACEOF
13322 done
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13325 $as_echo_n "checking for working mmap... " >&6; }
13326 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test "$cross_compiling" = yes; then :
13330 ac_cv_func_mmap_fixed_mapped=no
13331 else
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 $ac_includes_default
13335 /* malloc might have been renamed as rpl_malloc. */
13336 #undef malloc
13338 /* Thanks to Mike Haertel and Jim Avera for this test.
13339 Here is a matrix of mmap possibilities:
13340 mmap private not fixed
13341 mmap private fixed at somewhere currently unmapped
13342 mmap private fixed at somewhere already mapped
13343 mmap shared not fixed
13344 mmap shared fixed at somewhere currently unmapped
13345 mmap shared fixed at somewhere already mapped
13346 For private mappings, we should verify that changes cannot be read()
13347 back from the file, nor mmap's back from the file at a different
13348 address. (There have been systems where private was not correctly
13349 implemented like the infamous i386 svr4.0, and systems where the
13350 VM page cache was not coherent with the file system buffer cache
13351 like early versions of FreeBSD and possibly contemporary NetBSD.)
13352 For shared mappings, we should conversely verify that changes get
13353 propagated back to all the places they're supposed to be.
13355 Grep wants private fixed already mapped.
13356 The main things grep needs to know about mmap are:
13357 * does it exist and is it safe to write into the mmap'd area
13358 * how to use it (BSD variants) */
13360 #include <fcntl.h>
13361 #include <sys/mman.h>
13363 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13364 char *malloc ();
13365 #endif
13367 /* This mess was copied from the GNU getpagesize.h. */
13368 #ifndef HAVE_GETPAGESIZE
13369 # ifdef _SC_PAGESIZE
13370 # define getpagesize() sysconf(_SC_PAGESIZE)
13371 # else /* no _SC_PAGESIZE */
13372 # ifdef HAVE_SYS_PARAM_H
13373 # include <sys/param.h>
13374 # ifdef EXEC_PAGESIZE
13375 # define getpagesize() EXEC_PAGESIZE
13376 # else /* no EXEC_PAGESIZE */
13377 # ifdef NBPG
13378 # define getpagesize() NBPG * CLSIZE
13379 # ifndef CLSIZE
13380 # define CLSIZE 1
13381 # endif /* no CLSIZE */
13382 # else /* no NBPG */
13383 # ifdef NBPC
13384 # define getpagesize() NBPC
13385 # else /* no NBPC */
13386 # ifdef PAGESIZE
13387 # define getpagesize() PAGESIZE
13388 # endif /* PAGESIZE */
13389 # endif /* no NBPC */
13390 # endif /* no NBPG */
13391 # endif /* no EXEC_PAGESIZE */
13392 # else /* no HAVE_SYS_PARAM_H */
13393 # define getpagesize() 8192 /* punt totally */
13394 # endif /* no HAVE_SYS_PARAM_H */
13395 # endif /* no _SC_PAGESIZE */
13397 #endif /* no HAVE_GETPAGESIZE */
13400 main ()
13402 char *data, *data2, *data3;
13403 const char *cdata2;
13404 int i, pagesize;
13405 int fd, fd2;
13407 pagesize = getpagesize ();
13409 /* First, make a file with some known garbage in it. */
13410 data = (char *) malloc (pagesize);
13411 if (!data)
13412 return 1;
13413 for (i = 0; i < pagesize; ++i)
13414 *(data + i) = rand ();
13415 umask (0);
13416 fd = creat ("conftest.mmap", 0600);
13417 if (fd < 0)
13418 return 2;
13419 if (write (fd, data, pagesize) != pagesize)
13420 return 3;
13421 close (fd);
13423 /* Next, check that the tail of a page is zero-filled. File must have
13424 non-zero length, otherwise we risk SIGBUS for entire page. */
13425 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13426 if (fd2 < 0)
13427 return 4;
13428 cdata2 = "";
13429 if (write (fd2, cdata2, 1) != 1)
13430 return 5;
13431 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13432 if (data2 == MAP_FAILED)
13433 return 6;
13434 for (i = 0; i < pagesize; ++i)
13435 if (*(data2 + i))
13436 return 7;
13437 close (fd2);
13438 if (munmap (data2, pagesize))
13439 return 8;
13441 /* Next, try to mmap the file at a fixed address which already has
13442 something else allocated at it. If we can, also make sure that
13443 we see the same garbage. */
13444 fd = open ("conftest.mmap", O_RDWR);
13445 if (fd < 0)
13446 return 9;
13447 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13448 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13449 return 10;
13450 for (i = 0; i < pagesize; ++i)
13451 if (*(data + i) != *(data2 + i))
13452 return 11;
13454 /* Finally, make sure that changes to the mapped area do not
13455 percolate back to the file as seen by read(). (This is a bug on
13456 some variants of i386 svr4.0.) */
13457 for (i = 0; i < pagesize; ++i)
13458 *(data2 + i) = *(data2 + i) + 1;
13459 data3 = (char *) malloc (pagesize);
13460 if (!data3)
13461 return 12;
13462 if (read (fd, data3, pagesize) != pagesize)
13463 return 13;
13464 for (i = 0; i < pagesize; ++i)
13465 if (*(data + i) != *(data3 + i))
13466 return 14;
13467 close (fd);
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_run "$LINENO"; then :
13472 ac_cv_func_mmap_fixed_mapped=yes
13473 else
13474 ac_cv_func_mmap_fixed_mapped=no
13476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13477 conftest.$ac_objext conftest.beam conftest.$ac_ext
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13482 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13483 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13485 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13488 rm -f conftest.mmap conftest.txt
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13492 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13493 if ${ac_cv_gnu_library_2_1+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 #include <features.h>
13500 #ifdef __GNU_LIBRARY__
13501 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13502 Lucky GNU user
13503 #endif
13504 #endif
13506 _ACEOF
13507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13508 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13509 ac_cv_gnu_library_2_1=yes
13510 else
13511 ac_cv_gnu_library_2_1=no
13513 rm -f conftest*
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13519 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13521 GLIBC21="$ac_cv_gnu_library_2_1"
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13527 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13528 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13532 if test "$cross_compiling" = yes; then :
13534 # Guess based on the CPU.
13535 case "$host_cpu" in
13536 alpha* | i3456786 | m68k | s390*)
13537 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13539 gt_cv_int_divbyzero_sigfpe="guessing no";;
13540 esac
13542 else
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13546 #include <stdlib.h>
13547 #include <signal.h>
13549 static void
13550 #ifdef __cplusplus
13551 sigfpe_handler (int sig)
13552 #else
13553 sigfpe_handler (sig) int sig;
13554 #endif
13556 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13557 exit (sig != SIGFPE);
13560 int x = 1;
13561 int y = 0;
13562 int z;
13563 int nan;
13565 int main ()
13567 signal (SIGFPE, sigfpe_handler);
13568 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13569 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13570 signal (SIGTRAP, sigfpe_handler);
13571 #endif
13572 /* Linux/SPARC yields signal SIGILL. */
13573 #if defined (__sparc__) && defined (__linux__)
13574 signal (SIGILL, sigfpe_handler);
13575 #endif
13577 z = x / y;
13578 nan = y / y;
13579 exit (1);
13582 _ACEOF
13583 if ac_fn_c_try_run "$LINENO"; then :
13584 gt_cv_int_divbyzero_sigfpe=yes
13585 else
13586 gt_cv_int_divbyzero_sigfpe=no
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13589 conftest.$ac_objext conftest.beam conftest.$ac_ext
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13595 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13596 case "$gt_cv_int_divbyzero_sigfpe" in
13597 *yes) value=1;;
13598 *) value=0;;
13599 esac
13601 cat >>confdefs.h <<_ACEOF
13602 #define INTDIV0_RAISES_SIGFPE $value
13603 _ACEOF
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13608 $as_echo_n "checking for inttypes.h... " >&6; }
13609 if ${jm_ac_cv_header_inttypes_h+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <sys/types.h>
13615 #include <inttypes.h>
13617 main ()
13619 uintmax_t i = (uintmax_t) -1;
13621 return 0;
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"; then :
13625 jm_ac_cv_header_inttypes_h=yes
13626 else
13627 jm_ac_cv_header_inttypes_h=no
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13632 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13633 if test $jm_ac_cv_header_inttypes_h = yes; then
13635 cat >>confdefs.h <<_ACEOF
13636 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13637 _ACEOF
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13643 $as_echo_n "checking for stdint.h... " >&6; }
13644 if ${jm_ac_cv_header_stdint_h+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <sys/types.h>
13650 #include <stdint.h>
13652 main ()
13654 uintmax_t i = (uintmax_t) -1;
13656 return 0;
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"; then :
13660 jm_ac_cv_header_stdint_h=yes
13661 else
13662 jm_ac_cv_header_stdint_h=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13667 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13668 if test $jm_ac_cv_header_stdint_h = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_STDINT_H_WITH_UINTMAX 1
13672 _ACEOF
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13678 $as_echo_n "checking for unsigned long long... " >&6; }
13679 if ${ac_cv_type_unsigned_long_long+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 unsigned long long ull = 1; int i = 63;
13686 main ()
13688 unsigned long long ullmax = (unsigned long long) -1;
13689 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13691 return 0;
13693 _ACEOF
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 ac_cv_type_unsigned_long_long=yes
13696 else
13697 ac_cv_type_unsigned_long_long=no
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13703 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13704 if test $ac_cv_type_unsigned_long_long = yes; then
13706 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13713 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13715 test $ac_cv_type_unsigned_long_long = yes \
13716 && ac_type='unsigned long long' \
13717 || ac_type='unsigned long'
13719 cat >>confdefs.h <<_ACEOF
13720 #define uintmax_t $ac_type
13721 _ACEOF
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13727 $as_echo_n "checking for inttypes.h... " >&6; }
13728 if ${gt_cv_header_inttypes_h+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <sys/types.h>
13735 #include <inttypes.h>
13737 main ()
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_compile "$LINENO"; then :
13745 gt_cv_header_inttypes_h=yes
13746 else
13747 gt_cv_header_inttypes_h=no
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13753 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13754 if test $gt_cv_header_inttypes_h = yes; then
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_INTTYPES_H 1
13758 _ACEOF
13764 if test $gt_cv_header_inttypes_h = yes; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13766 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13767 if ${gt_cv_inttypes_pri_broken+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #include <inttypes.h>
13774 #ifdef PRId32
13775 char *p = PRId32;
13776 #endif
13779 main ()
13783 return 0;
13785 _ACEOF
13786 if ac_fn_c_try_compile "$LINENO"; then :
13787 gt_cv_inttypes_pri_broken=no
13788 else
13789 gt_cv_inttypes_pri_broken=yes
13791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13795 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13797 if test "$gt_cv_inttypes_pri_broken" = yes; then
13799 cat >>confdefs.h <<_ACEOF
13800 #define PRI_MACROS_BROKEN 1
13801 _ACEOF
13806 if test "X$prefix" = "XNONE"; then
13807 acl_final_prefix="$ac_default_prefix"
13808 else
13809 acl_final_prefix="$prefix"
13811 if test "X$exec_prefix" = "XNONE"; then
13812 acl_final_exec_prefix='${prefix}'
13813 else
13814 acl_final_exec_prefix="$exec_prefix"
13816 acl_save_prefix="$prefix"
13817 prefix="$acl_final_prefix"
13818 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13819 prefix="$acl_save_prefix"
13822 # Check whether --with-gnu-ld was given.
13823 if test "${with_gnu_ld+set}" = set; then :
13824 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13825 else
13826 with_gnu_ld=no
13829 ac_prog=ld
13830 if test "$GCC" = yes; then
13831 # Check if gcc -print-prog-name=ld gives a path.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13833 $as_echo_n "checking for ld used by GCC... " >&6; }
13834 case $host in
13835 *-*-mingw*)
13836 # gcc leaves a trailing carriage return which upsets mingw
13837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13840 esac
13841 case $ac_prog in
13842 # Accept absolute paths.
13843 [\\/]* | [A-Za-z]:[\\/]*)
13844 re_direlt='/[^/][^/]*/\.\./'
13845 # Canonicalize the path of ld
13846 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13847 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13848 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13849 done
13850 test -z "$LD" && LD="$ac_prog"
13853 # If it fails, then pretend we aren't using GCC.
13854 ac_prog=ld
13857 # If it is relative, then search for the first ld in PATH.
13858 with_gnu_ld=unknown
13860 esac
13861 elif test "$with_gnu_ld" = yes; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13863 $as_echo_n "checking for GNU ld... " >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13866 $as_echo_n "checking for non-GNU ld... " >&6; }
13868 if ${acl_cv_path_LD+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 if test -z "$LD"; then
13872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13873 for ac_dir in $PATH; do
13874 test -z "$ac_dir" && ac_dir=.
13875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13876 acl_cv_path_LD="$ac_dir/$ac_prog"
13877 # Check to see if the program is GNU ld. I'd rather use --version,
13878 # but apparently some GNU ld's only accept -v.
13879 # Break only if it was the GNU/non-GNU ld that we prefer.
13880 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13881 test "$with_gnu_ld" != no && break
13882 else
13883 test "$with_gnu_ld" != yes && break
13886 done
13887 IFS="$ac_save_ifs"
13888 else
13889 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13893 LD="$acl_cv_path_LD"
13894 if test -n "$LD"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13896 $as_echo "$LD" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13904 if ${acl_cv_prog_gnu_ld+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13908 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13909 acl_cv_prog_gnu_ld=yes
13910 else
13911 acl_cv_prog_gnu_ld=no
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13915 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13916 with_gnu_ld=$acl_cv_prog_gnu_ld
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13921 $as_echo_n "checking for shared library run path origin... " >&6; }
13922 if ${acl_cv_rpath+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13926 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13928 . ./conftest.sh
13929 rm -f ./conftest.sh
13930 acl_cv_rpath=done
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13934 $as_echo "$acl_cv_rpath" >&6; }
13935 wl="$acl_cv_wl"
13936 libext="$acl_cv_libext"
13937 shlibext="$acl_cv_shlibext"
13938 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13939 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13940 hardcode_direct="$acl_cv_hardcode_direct"
13941 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13942 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13943 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13944 # Check whether --enable-rpath was given.
13945 if test "${enable_rpath+set}" = set; then :
13946 enableval=$enable_rpath; :
13947 else
13948 enable_rpath=yes
13958 use_additional=yes
13960 acl_save_prefix="$prefix"
13961 prefix="$acl_final_prefix"
13962 acl_save_exec_prefix="$exec_prefix"
13963 exec_prefix="$acl_final_exec_prefix"
13965 eval additional_includedir=\"$includedir\"
13966 eval additional_libdir=\"$libdir\"
13968 exec_prefix="$acl_save_exec_prefix"
13969 prefix="$acl_save_prefix"
13972 # Check whether --with-libiconv-prefix was given.
13973 if test "${with_libiconv_prefix+set}" = set; then :
13974 withval=$with_libiconv_prefix;
13975 if test "X$withval" = "Xno"; then
13976 use_additional=no
13977 else
13978 if test "X$withval" = "X"; then
13980 acl_save_prefix="$prefix"
13981 prefix="$acl_final_prefix"
13982 acl_save_exec_prefix="$exec_prefix"
13983 exec_prefix="$acl_final_exec_prefix"
13985 eval additional_includedir=\"$includedir\"
13986 eval additional_libdir=\"$libdir\"
13988 exec_prefix="$acl_save_exec_prefix"
13989 prefix="$acl_save_prefix"
13991 else
13992 additional_includedir="$withval/include"
13993 additional_libdir="$withval/lib"
13999 LIBICONV=
14000 LTLIBICONV=
14001 INCICONV=
14002 rpathdirs=
14003 ltrpathdirs=
14004 names_already_handled=
14005 names_next_round='iconv '
14006 while test -n "$names_next_round"; do
14007 names_this_round="$names_next_round"
14008 names_next_round=
14009 for name in $names_this_round; do
14010 already_handled=
14011 for n in $names_already_handled; do
14012 if test "$n" = "$name"; then
14013 already_handled=yes
14014 break
14016 done
14017 if test -z "$already_handled"; then
14018 names_already_handled="$names_already_handled $name"
14019 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14020 eval value=\"\$HAVE_LIB$uppername\"
14021 if test -n "$value"; then
14022 if test "$value" = yes; then
14023 eval value=\"\$LIB$uppername\"
14024 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14025 eval value=\"\$LTLIB$uppername\"
14026 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14027 else
14030 else
14031 found_dir=
14032 found_la=
14033 found_so=
14034 found_a=
14035 if test $use_additional = yes; then
14036 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14037 found_dir="$additional_libdir"
14038 found_so="$additional_libdir/lib$name.$shlibext"
14039 if test -f "$additional_libdir/lib$name.la"; then
14040 found_la="$additional_libdir/lib$name.la"
14042 else
14043 if test -f "$additional_libdir/lib$name.$libext"; then
14044 found_dir="$additional_libdir"
14045 found_a="$additional_libdir/lib$name.$libext"
14046 if test -f "$additional_libdir/lib$name.la"; then
14047 found_la="$additional_libdir/lib$name.la"
14052 if test "X$found_dir" = "X"; then
14053 for x in $LDFLAGS $LTLIBICONV; do
14055 acl_save_prefix="$prefix"
14056 prefix="$acl_final_prefix"
14057 acl_save_exec_prefix="$exec_prefix"
14058 exec_prefix="$acl_final_exec_prefix"
14059 eval x=\"$x\"
14060 exec_prefix="$acl_save_exec_prefix"
14061 prefix="$acl_save_prefix"
14063 case "$x" in
14064 -L*)
14065 dir=`echo "X$x" | sed -e 's/^X-L//'`
14066 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14067 found_dir="$dir"
14068 found_so="$dir/lib$name.$shlibext"
14069 if test -f "$dir/lib$name.la"; then
14070 found_la="$dir/lib$name.la"
14072 else
14073 if test -f "$dir/lib$name.$libext"; then
14074 found_dir="$dir"
14075 found_a="$dir/lib$name.$libext"
14076 if test -f "$dir/lib$name.la"; then
14077 found_la="$dir/lib$name.la"
14082 esac
14083 if test "X$found_dir" != "X"; then
14084 break
14086 done
14088 if test "X$found_dir" != "X"; then
14089 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14090 if test "X$found_so" != "X"; then
14091 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14093 else
14094 haveit=
14095 for x in $ltrpathdirs; do
14096 if test "X$x" = "X$found_dir"; then
14097 haveit=yes
14098 break
14100 done
14101 if test -z "$haveit"; then
14102 ltrpathdirs="$ltrpathdirs $found_dir"
14104 if test "$hardcode_direct" = yes; then
14105 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14106 else
14107 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14108 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14109 haveit=
14110 for x in $rpathdirs; do
14111 if test "X$x" = "X$found_dir"; then
14112 haveit=yes
14113 break
14115 done
14116 if test -z "$haveit"; then
14117 rpathdirs="$rpathdirs $found_dir"
14119 else
14120 haveit=
14121 for x in $LDFLAGS $LIBICONV; do
14123 acl_save_prefix="$prefix"
14124 prefix="$acl_final_prefix"
14125 acl_save_exec_prefix="$exec_prefix"
14126 exec_prefix="$acl_final_exec_prefix"
14127 eval x=\"$x\"
14128 exec_prefix="$acl_save_exec_prefix"
14129 prefix="$acl_save_prefix"
14131 if test "X$x" = "X-L$found_dir"; then
14132 haveit=yes
14133 break
14135 done
14136 if test -z "$haveit"; then
14137 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14139 if test "$hardcode_minus_L" != no; then
14140 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14141 else
14142 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14147 else
14148 if test "X$found_a" != "X"; then
14149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14150 else
14151 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14154 additional_includedir=
14155 case "$found_dir" in
14156 */lib | */lib/)
14157 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14158 additional_includedir="$basedir/include"
14160 esac
14161 if test "X$additional_includedir" != "X"; then
14162 if test "X$additional_includedir" != "X/usr/include"; then
14163 haveit=
14164 if test "X$additional_includedir" = "X/usr/local/include"; then
14165 if test -n "$GCC"; then
14166 case $host_os in
14167 linux*) haveit=yes;;
14168 esac
14171 if test -z "$haveit"; then
14172 for x in $CPPFLAGS $INCICONV; do
14174 acl_save_prefix="$prefix"
14175 prefix="$acl_final_prefix"
14176 acl_save_exec_prefix="$exec_prefix"
14177 exec_prefix="$acl_final_exec_prefix"
14178 eval x=\"$x\"
14179 exec_prefix="$acl_save_exec_prefix"
14180 prefix="$acl_save_prefix"
14182 if test "X$x" = "X-I$additional_includedir"; then
14183 haveit=yes
14184 break
14186 done
14187 if test -z "$haveit"; then
14188 if test -d "$additional_includedir"; then
14189 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14195 if test -n "$found_la"; then
14196 save_libdir="$libdir"
14197 case "$found_la" in
14198 */* | *\\*) . "$found_la" ;;
14199 *) . "./$found_la" ;;
14200 esac
14201 libdir="$save_libdir"
14202 for dep in $dependency_libs; do
14203 case "$dep" in
14204 -L*)
14205 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14206 if test "X$additional_libdir" != "X/usr/lib"; then
14207 haveit=
14208 if test "X$additional_libdir" = "X/usr/local/lib"; then
14209 if test -n "$GCC"; then
14210 case $host_os in
14211 linux*) haveit=yes;;
14212 esac
14215 if test -z "$haveit"; then
14216 haveit=
14217 for x in $LDFLAGS $LIBICONV; do
14219 acl_save_prefix="$prefix"
14220 prefix="$acl_final_prefix"
14221 acl_save_exec_prefix="$exec_prefix"
14222 exec_prefix="$acl_final_exec_prefix"
14223 eval x=\"$x\"
14224 exec_prefix="$acl_save_exec_prefix"
14225 prefix="$acl_save_prefix"
14227 if test "X$x" = "X-L$additional_libdir"; then
14228 haveit=yes
14229 break
14231 done
14232 if test -z "$haveit"; then
14233 if test -d "$additional_libdir"; then
14234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14237 haveit=
14238 for x in $LDFLAGS $LTLIBICONV; do
14240 acl_save_prefix="$prefix"
14241 prefix="$acl_final_prefix"
14242 acl_save_exec_prefix="$exec_prefix"
14243 exec_prefix="$acl_final_exec_prefix"
14244 eval x=\"$x\"
14245 exec_prefix="$acl_save_exec_prefix"
14246 prefix="$acl_save_prefix"
14248 if test "X$x" = "X-L$additional_libdir"; then
14249 haveit=yes
14250 break
14252 done
14253 if test -z "$haveit"; then
14254 if test -d "$additional_libdir"; then
14255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14261 -R*)
14262 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14263 if test "$enable_rpath" != no; then
14264 haveit=
14265 for x in $rpathdirs; do
14266 if test "X$x" = "X$dir"; then
14267 haveit=yes
14268 break
14270 done
14271 if test -z "$haveit"; then
14272 rpathdirs="$rpathdirs $dir"
14274 haveit=
14275 for x in $ltrpathdirs; do
14276 if test "X$x" = "X$dir"; then
14277 haveit=yes
14278 break
14280 done
14281 if test -z "$haveit"; then
14282 ltrpathdirs="$ltrpathdirs $dir"
14286 -l*)
14287 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14289 *.la)
14290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14293 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14294 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14296 esac
14297 done
14299 else
14300 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14301 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14305 done
14306 done
14307 if test "X$rpathdirs" != "X"; then
14308 if test -n "$hardcode_libdir_separator"; then
14309 alldirs=
14310 for found_dir in $rpathdirs; do
14311 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14312 done
14313 acl_save_libdir="$libdir"
14314 libdir="$alldirs"
14315 eval flag=\"$hardcode_libdir_flag_spec\"
14316 libdir="$acl_save_libdir"
14317 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14318 else
14319 for found_dir in $rpathdirs; do
14320 acl_save_libdir="$libdir"
14321 libdir="$found_dir"
14322 eval flag=\"$hardcode_libdir_flag_spec\"
14323 libdir="$acl_save_libdir"
14324 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14325 done
14328 if test "X$ltrpathdirs" != "X"; then
14329 for found_dir in $ltrpathdirs; do
14330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14331 done
14337 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14338 stdlib.h string.h unistd.h sys/param.h
14339 do :
14340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14343 cat >>confdefs.h <<_ACEOF
14344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14345 _ACEOF
14349 done
14351 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14352 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14353 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14354 do :
14355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14358 cat >>confdefs.h <<_ACEOF
14359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14360 _ACEOF
14363 done
14371 am_save_CPPFLAGS="$CPPFLAGS"
14373 for element in $INCICONV; do
14374 haveit=
14375 for x in $CPPFLAGS; do
14377 acl_save_prefix="$prefix"
14378 prefix="$acl_final_prefix"
14379 acl_save_exec_prefix="$exec_prefix"
14380 exec_prefix="$acl_final_exec_prefix"
14381 eval x=\"$x\"
14382 exec_prefix="$acl_save_exec_prefix"
14383 prefix="$acl_save_prefix"
14385 if test "X$x" = "X$element"; then
14386 haveit=yes
14387 break
14389 done
14390 if test -z "$haveit"; then
14391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14393 done
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14397 $as_echo_n "checking for iconv... " >&6; }
14398 if ${am_cv_func_iconv+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14402 am_cv_func_iconv="no, consider installing GNU libiconv"
14403 am_cv_lib_iconv=no
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <stdlib.h>
14407 #include <iconv.h>
14409 main ()
14411 iconv_t cd = iconv_open("","");
14412 iconv(cd,NULL,NULL,NULL,NULL);
14413 iconv_close(cd);
14415 return 0;
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"; then :
14419 am_cv_func_iconv=yes
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 if test "$am_cv_func_iconv" != yes; then
14424 am_save_LIBS="$LIBS"
14425 LIBS="$LIBS $LIBICONV"
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <stdlib.h>
14429 #include <iconv.h>
14431 main ()
14433 iconv_t cd = iconv_open("","");
14434 iconv(cd,NULL,NULL,NULL,NULL);
14435 iconv_close(cd);
14437 return 0;
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 am_cv_lib_iconv=yes
14442 am_cv_func_iconv=yes
14444 rm -f core conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14446 LIBS="$am_save_LIBS"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14451 $as_echo "$am_cv_func_iconv" >&6; }
14452 if test "$am_cv_func_iconv" = yes; then
14454 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14457 if test "$am_cv_lib_iconv" = yes; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14459 $as_echo_n "checking how to link with libiconv... " >&6; }
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14461 $as_echo "$LIBICONV" >&6; }
14462 else
14463 CPPFLAGS="$am_save_CPPFLAGS"
14464 LIBICONV=
14465 LTLIBICONV=
14470 if test "$am_cv_func_iconv" = yes; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14472 $as_echo_n "checking for iconv declaration... " >&6; }
14473 if ${am_cv_proto_iconv+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14480 #include <stdlib.h>
14481 #include <iconv.h>
14482 extern
14483 #ifdef __cplusplus
14485 #endif
14486 #if defined(__STDC__) || defined(__cplusplus)
14487 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14488 #else
14489 size_t iconv();
14490 #endif
14493 main ()
14497 return 0;
14499 _ACEOF
14500 if ac_fn_c_try_compile "$LINENO"; then :
14501 am_cv_proto_iconv_arg1=""
14502 else
14503 am_cv_proto_iconv_arg1="const"
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 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);"
14509 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14511 }$am_cv_proto_iconv" >&5
14512 $as_echo "${ac_t:-
14513 }$am_cv_proto_iconv" >&6; }
14515 cat >>confdefs.h <<_ACEOF
14516 #define ICONV_CONST $am_cv_proto_iconv_arg1
14517 _ACEOF
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14523 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14524 if ${am_cv_langinfo_codeset+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #include <langinfo.h>
14531 main ()
14533 char* cs = nl_langinfo(CODESET);
14535 return 0;
14537 _ACEOF
14538 if ac_fn_c_try_link "$LINENO"; then :
14539 am_cv_langinfo_codeset=yes
14540 else
14541 am_cv_langinfo_codeset=no
14543 rm -f core conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14548 $as_echo "$am_cv_langinfo_codeset" >&6; }
14549 if test $am_cv_langinfo_codeset = yes; then
14551 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14555 if test $ac_cv_header_locale_h = yes; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14558 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14559 if ${am_cv_val_LC_MESSAGES+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 #include <locale.h>
14566 main ()
14568 return LC_MESSAGES
14570 return 0;
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"; then :
14574 am_cv_val_LC_MESSAGES=yes
14575 else
14576 am_cv_val_LC_MESSAGES=no
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14582 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14583 if test $am_cv_val_LC_MESSAGES = yes; then
14585 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14591 for ac_prog in bison
14593 # Extract the first word of "$ac_prog", so it can be a program name with args.
14594 set dummy $ac_prog; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if ${ac_cv_prog_INTLBISON+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 if test -n "$INTLBISON"; then
14601 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14602 else
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610 ac_cv_prog_INTLBISON="$ac_prog"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612 break 2
14614 done
14615 done
14616 IFS=$as_save_IFS
14620 INTLBISON=$ac_cv_prog_INTLBISON
14621 if test -n "$INTLBISON"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14623 $as_echo "$INTLBISON" >&6; }
14624 else
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14630 test -n "$INTLBISON" && break
14631 done
14633 if test -z "$INTLBISON"; then
14634 ac_verc_fail=yes
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14637 $as_echo_n "checking version of bison... " >&6; }
14638 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14639 case $ac_prog_version in
14640 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14641 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14642 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14643 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14644 esac
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14646 $as_echo "$ac_prog_version" >&6; }
14648 if test $ac_verc_fail = yes; then
14649 INTLBISON=:
14654 # Check whether --with-language was given.
14655 if test "${with_language+set}" = set; then :
14656 withval=$with_language; if test "$withval" != "all"; then :
14657 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14677 $as_echo_n "checking whether NLS is requested... " >&6; }
14678 # Check whether --enable-nls was given.
14679 if test "${enable_nls+set}" = set; then :
14680 enableval=$enable_nls; USE_NLS=$enableval
14681 else
14682 USE_NLS=yes
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14686 $as_echo "$USE_NLS" >&6; }
14690 BUILD_INCLUDED_LIBINTL=no
14691 USE_INCLUDED_LIBINTL=no
14693 LIBINTL=
14694 LTLIBINTL=
14695 POSUB=
14697 if test "$USE_NLS" = "yes"; then
14698 gt_use_preinstalled_gnugettext=no
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14701 $as_echo_n "checking whether included gettext is requested... " >&6; }
14703 # Check whether --with-included-gettext was given.
14704 if test "${with_included_gettext+set}" = set; then :
14705 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14706 else
14707 nls_cv_force_use_gnu_gettext=no
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14711 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14713 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14714 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14722 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14723 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #include <libintl.h>
14729 extern int _nl_msg_cat_cntr;
14730 extern int *_nl_domain_bindings;
14732 main ()
14734 bindtextdomain ("", "");
14735 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14737 return 0;
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 gt_cv_func_gnugettext2_libc=yes
14742 else
14743 gt_cv_func_gnugettext2_libc=no
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14749 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14751 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14755 use_additional=yes
14757 acl_save_prefix="$prefix"
14758 prefix="$acl_final_prefix"
14759 acl_save_exec_prefix="$exec_prefix"
14760 exec_prefix="$acl_final_exec_prefix"
14762 eval additional_includedir=\"$includedir\"
14763 eval additional_libdir=\"$libdir\"
14765 exec_prefix="$acl_save_exec_prefix"
14766 prefix="$acl_save_prefix"
14769 # Check whether --with-libintl-prefix was given.
14770 if test "${with_libintl_prefix+set}" = set; then :
14771 withval=$with_libintl_prefix;
14772 if test "X$withval" = "Xno"; then
14773 use_additional=no
14774 else
14775 if test "X$withval" = "X"; then
14777 acl_save_prefix="$prefix"
14778 prefix="$acl_final_prefix"
14779 acl_save_exec_prefix="$exec_prefix"
14780 exec_prefix="$acl_final_exec_prefix"
14782 eval additional_includedir=\"$includedir\"
14783 eval additional_libdir=\"$libdir\"
14785 exec_prefix="$acl_save_exec_prefix"
14786 prefix="$acl_save_prefix"
14788 else
14789 additional_includedir="$withval/include"
14790 additional_libdir="$withval/lib"
14796 LIBINTL=
14797 LTLIBINTL=
14798 INCINTL=
14799 rpathdirs=
14800 ltrpathdirs=
14801 names_already_handled=
14802 names_next_round='intl '
14803 while test -n "$names_next_round"; do
14804 names_this_round="$names_next_round"
14805 names_next_round=
14806 for name in $names_this_round; do
14807 already_handled=
14808 for n in $names_already_handled; do
14809 if test "$n" = "$name"; then
14810 already_handled=yes
14811 break
14813 done
14814 if test -z "$already_handled"; then
14815 names_already_handled="$names_already_handled $name"
14816 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14817 eval value=\"\$HAVE_LIB$uppername\"
14818 if test -n "$value"; then
14819 if test "$value" = yes; then
14820 eval value=\"\$LIB$uppername\"
14821 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14822 eval value=\"\$LTLIB$uppername\"
14823 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14824 else
14827 else
14828 found_dir=
14829 found_la=
14830 found_so=
14831 found_a=
14832 if test $use_additional = yes; then
14833 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14834 found_dir="$additional_libdir"
14835 found_so="$additional_libdir/lib$name.$shlibext"
14836 if test -f "$additional_libdir/lib$name.la"; then
14837 found_la="$additional_libdir/lib$name.la"
14839 else
14840 if test -f "$additional_libdir/lib$name.$libext"; then
14841 found_dir="$additional_libdir"
14842 found_a="$additional_libdir/lib$name.$libext"
14843 if test -f "$additional_libdir/lib$name.la"; then
14844 found_la="$additional_libdir/lib$name.la"
14849 if test "X$found_dir" = "X"; then
14850 for x in $LDFLAGS $LTLIBINTL; do
14852 acl_save_prefix="$prefix"
14853 prefix="$acl_final_prefix"
14854 acl_save_exec_prefix="$exec_prefix"
14855 exec_prefix="$acl_final_exec_prefix"
14856 eval x=\"$x\"
14857 exec_prefix="$acl_save_exec_prefix"
14858 prefix="$acl_save_prefix"
14860 case "$x" in
14861 -L*)
14862 dir=`echo "X$x" | sed -e 's/^X-L//'`
14863 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14864 found_dir="$dir"
14865 found_so="$dir/lib$name.$shlibext"
14866 if test -f "$dir/lib$name.la"; then
14867 found_la="$dir/lib$name.la"
14869 else
14870 if test -f "$dir/lib$name.$libext"; then
14871 found_dir="$dir"
14872 found_a="$dir/lib$name.$libext"
14873 if test -f "$dir/lib$name.la"; then
14874 found_la="$dir/lib$name.la"
14879 esac
14880 if test "X$found_dir" != "X"; then
14881 break
14883 done
14885 if test "X$found_dir" != "X"; then
14886 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14887 if test "X$found_so" != "X"; then
14888 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14889 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14890 else
14891 haveit=
14892 for x in $ltrpathdirs; do
14893 if test "X$x" = "X$found_dir"; then
14894 haveit=yes
14895 break
14897 done
14898 if test -z "$haveit"; then
14899 ltrpathdirs="$ltrpathdirs $found_dir"
14901 if test "$hardcode_direct" = yes; then
14902 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14903 else
14904 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14906 haveit=
14907 for x in $rpathdirs; do
14908 if test "X$x" = "X$found_dir"; then
14909 haveit=yes
14910 break
14912 done
14913 if test -z "$haveit"; then
14914 rpathdirs="$rpathdirs $found_dir"
14916 else
14917 haveit=
14918 for x in $LDFLAGS $LIBINTL; do
14920 acl_save_prefix="$prefix"
14921 prefix="$acl_final_prefix"
14922 acl_save_exec_prefix="$exec_prefix"
14923 exec_prefix="$acl_final_exec_prefix"
14924 eval x=\"$x\"
14925 exec_prefix="$acl_save_exec_prefix"
14926 prefix="$acl_save_prefix"
14928 if test "X$x" = "X-L$found_dir"; then
14929 haveit=yes
14930 break
14932 done
14933 if test -z "$haveit"; then
14934 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14936 if test "$hardcode_minus_L" != no; then
14937 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14938 else
14939 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14944 else
14945 if test "X$found_a" != "X"; then
14946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14947 else
14948 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14951 additional_includedir=
14952 case "$found_dir" in
14953 */lib | */lib/)
14954 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14955 additional_includedir="$basedir/include"
14957 esac
14958 if test "X$additional_includedir" != "X"; then
14959 if test "X$additional_includedir" != "X/usr/include"; then
14960 haveit=
14961 if test "X$additional_includedir" = "X/usr/local/include"; then
14962 if test -n "$GCC"; then
14963 case $host_os in
14964 linux*) haveit=yes;;
14965 esac
14968 if test -z "$haveit"; then
14969 for x in $CPPFLAGS $INCINTL; do
14971 acl_save_prefix="$prefix"
14972 prefix="$acl_final_prefix"
14973 acl_save_exec_prefix="$exec_prefix"
14974 exec_prefix="$acl_final_exec_prefix"
14975 eval x=\"$x\"
14976 exec_prefix="$acl_save_exec_prefix"
14977 prefix="$acl_save_prefix"
14979 if test "X$x" = "X-I$additional_includedir"; then
14980 haveit=yes
14981 break
14983 done
14984 if test -z "$haveit"; then
14985 if test -d "$additional_includedir"; then
14986 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14992 if test -n "$found_la"; then
14993 save_libdir="$libdir"
14994 case "$found_la" in
14995 */* | *\\*) . "$found_la" ;;
14996 *) . "./$found_la" ;;
14997 esac
14998 libdir="$save_libdir"
14999 for dep in $dependency_libs; do
15000 case "$dep" in
15001 -L*)
15002 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15003 if test "X$additional_libdir" != "X/usr/lib"; then
15004 haveit=
15005 if test "X$additional_libdir" = "X/usr/local/lib"; then
15006 if test -n "$GCC"; then
15007 case $host_os in
15008 linux*) haveit=yes;;
15009 esac
15012 if test -z "$haveit"; then
15013 haveit=
15014 for x in $LDFLAGS $LIBINTL; do
15016 acl_save_prefix="$prefix"
15017 prefix="$acl_final_prefix"
15018 acl_save_exec_prefix="$exec_prefix"
15019 exec_prefix="$acl_final_exec_prefix"
15020 eval x=\"$x\"
15021 exec_prefix="$acl_save_exec_prefix"
15022 prefix="$acl_save_prefix"
15024 if test "X$x" = "X-L$additional_libdir"; then
15025 haveit=yes
15026 break
15028 done
15029 if test -z "$haveit"; then
15030 if test -d "$additional_libdir"; then
15031 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15034 haveit=
15035 for x in $LDFLAGS $LTLIBINTL; do
15037 acl_save_prefix="$prefix"
15038 prefix="$acl_final_prefix"
15039 acl_save_exec_prefix="$exec_prefix"
15040 exec_prefix="$acl_final_exec_prefix"
15041 eval x=\"$x\"
15042 exec_prefix="$acl_save_exec_prefix"
15043 prefix="$acl_save_prefix"
15045 if test "X$x" = "X-L$additional_libdir"; then
15046 haveit=yes
15047 break
15049 done
15050 if test -z "$haveit"; then
15051 if test -d "$additional_libdir"; then
15052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15058 -R*)
15059 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15060 if test "$enable_rpath" != no; then
15061 haveit=
15062 for x in $rpathdirs; do
15063 if test "X$x" = "X$dir"; then
15064 haveit=yes
15065 break
15067 done
15068 if test -z "$haveit"; then
15069 rpathdirs="$rpathdirs $dir"
15071 haveit=
15072 for x in $ltrpathdirs; do
15073 if test "X$x" = "X$dir"; then
15074 haveit=yes
15075 break
15077 done
15078 if test -z "$haveit"; then
15079 ltrpathdirs="$ltrpathdirs $dir"
15083 -l*)
15084 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15086 *.la)
15087 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15090 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15091 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15093 esac
15094 done
15096 else
15097 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15102 done
15103 done
15104 if test "X$rpathdirs" != "X"; then
15105 if test -n "$hardcode_libdir_separator"; then
15106 alldirs=
15107 for found_dir in $rpathdirs; do
15108 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15109 done
15110 acl_save_libdir="$libdir"
15111 libdir="$alldirs"
15112 eval flag=\"$hardcode_libdir_flag_spec\"
15113 libdir="$acl_save_libdir"
15114 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15115 else
15116 for found_dir in $rpathdirs; do
15117 acl_save_libdir="$libdir"
15118 libdir="$found_dir"
15119 eval flag=\"$hardcode_libdir_flag_spec\"
15120 libdir="$acl_save_libdir"
15121 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15122 done
15125 if test "X$ltrpathdirs" != "X"; then
15126 for found_dir in $ltrpathdirs; do
15127 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15128 done
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15132 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15133 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 gt_save_CPPFLAGS="$CPPFLAGS"
15137 CPPFLAGS="$CPPFLAGS $INCINTL"
15138 gt_save_LIBS="$LIBS"
15139 LIBS="$LIBS $LIBINTL"
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #include <libintl.h>
15143 extern int _nl_msg_cat_cntr;
15144 extern
15145 #ifdef __cplusplus
15147 #endif
15148 const char *_nl_expand_alias ();
15150 main ()
15152 bindtextdomain ("", "");
15153 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15155 return 0;
15157 _ACEOF
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 gt_cv_func_gnugettext2_libintl=yes
15160 else
15161 gt_cv_func_gnugettext2_libintl=no
15163 rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
15166 LIBS="$LIBS $LIBICONV"
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 #include <libintl.h>
15170 extern int _nl_msg_cat_cntr;
15171 extern
15172 #ifdef __cplusplus
15174 #endif
15175 const char *_nl_expand_alias ();
15177 main ()
15179 bindtextdomain ("", "");
15180 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15182 return 0;
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 LIBINTL="$LIBINTL $LIBICONV"
15187 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15188 gt_cv_func_gnugettext2_libintl=yes
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15194 CPPFLAGS="$gt_save_CPPFLAGS"
15195 LIBS="$gt_save_LIBS"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
15198 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
15201 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
15202 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
15203 && test "$PACKAGE" != gettext; }; then
15204 gt_use_preinstalled_gnugettext=yes
15205 else
15206 LIBINTL=
15207 LTLIBINTL=
15208 INCINTL=
15212 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15213 nls_cv_use_gnu_gettext=yes
15217 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15218 INTLOBJS="\$(GETTOBJS)"
15219 BUILD_INCLUDED_LIBINTL=yes
15220 USE_INCLUDED_LIBINTL=yes
15221 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
15222 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
15223 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15226 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15227 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15228 CATOBJEXT=.gmo
15232 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15233 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15235 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15237 else
15238 USE_NLS=no
15242 if test "$USE_NLS" = "yes"; then
15244 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15245 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15247 $as_echo_n "checking how to link with libintl... " >&6; }
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15249 $as_echo "$LIBINTL" >&6; }
15251 for element in $INCINTL; do
15252 haveit=
15253 for x in $CPPFLAGS; do
15255 acl_save_prefix="$prefix"
15256 prefix="$acl_final_prefix"
15257 acl_save_exec_prefix="$exec_prefix"
15258 exec_prefix="$acl_final_exec_prefix"
15259 eval x=\"$x\"
15260 exec_prefix="$acl_save_exec_prefix"
15261 prefix="$acl_save_prefix"
15263 if test "X$x" = "X$element"; then
15264 haveit=yes
15265 break
15267 done
15268 if test -z "$haveit"; then
15269 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15271 done
15276 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15279 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15283 POSUB=po
15287 if test "$PACKAGE" = gettext; then
15288 BUILD_INCLUDED_LIBINTL=yes
15296 nls_cv_header_intl=
15297 nls_cv_header_libgt=
15299 DATADIRNAME=share
15302 INSTOBJEXT=.mo
15305 GENCAT=gencat
15308 INTL_LIBTOOL_SUFFIX_PREFIX=
15312 INTLLIBS="$LIBINTL"
15319 if test $USE_INCLUDED_LIBINTL = yes; then :
15320 INCINTL=-I\${top_builddir}/intl
15323 if test x$USE_NLS = xyes; then :
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15326 $as_echo_n "checking for autopoint... " >&6; }
15327 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15328 if test -n "$autopoint_version"; then :
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15331 $as_echo "yes ($autopoint_version)" >&6; }
15334 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15338 USE_NLS=no
15343 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15345 You need to install GNU gettext/gettext-tools to compile aMule with
15346 i18n support." >&5
15347 $as_echo "$as_me: WARNING:
15348 You need to install GNU gettext/gettext-tools to compile aMule with
15349 i18n support." >&2;}
15350 _mule_warning_13=yes
15351 _mule_has_warnings=yes
15355 if test ${USE_NLS:-no} = yes; then :
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15358 $as_echo_n "checking for requested languages... " >&6; }
15359 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15361 if test ${enable_amule_daemon:-no} = yes; then :
15363 if test -z "$LINGUAS"; then :
15364 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15365 else
15367 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15368 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15371 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15373 else
15374 AMULE_DAEMON_MANPAGES=
15379 if test ${enable_amulecmd:-no} = yes; then :
15381 if test -z "$LINGUAS"; then :
15382 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15383 else
15385 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15386 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15389 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15391 else
15392 AMULECMD_MANPAGES=
15397 if test ${enable_webserver:-no} = yes; then :
15399 if test -z "$LINGUAS"; then :
15400 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15401 else
15403 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15404 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15407 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15409 else
15410 WEBSERVER_MANPAGES=
15415 if test ${enable_amule_gui:-no} = yes; then :
15417 if test -z "$LINGUAS"; then :
15418 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15419 else
15421 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15422 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15425 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15427 else
15428 AMULE_GUI_MANPAGES=
15433 if test ${enable_cas:-no} = yes; then :
15435 if test -z "$LINGUAS"; then :
15436 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15437 else
15439 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15440 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15443 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15445 else
15446 CAS_MANPAGES=
15451 if test ${enable_wxcas:-no} = yes; then :
15453 if test -z "$LINGUAS"; then :
15454 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15455 else
15457 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15458 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15461 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15463 else
15464 WXCAS_MANPAGES=
15469 if test ${enable_ed2k:-yes} = yes; then :
15471 if test -z "$LINGUAS"; then :
15472 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15473 else
15475 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15476 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15479 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15481 else
15482 ED2K_MANPAGES=
15487 if test ${enable_alc:-no} = yes; then :
15489 if test -z "$LINGUAS"; then :
15490 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15491 else
15493 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15494 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15497 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15499 else
15500 ALC_MANPAGES=
15505 if test ${enable_alcc:-no} = yes; then :
15507 if test -z "$LINGUAS"; then :
15508 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15509 else
15511 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15512 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15515 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15517 else
15518 ALCC_MANPAGES=
15523 if test ${enable_monolithic:-yes} = yes; then :
15525 if test -z "$LINGUAS"; then :
15526 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15527 else
15529 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15530 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15533 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15535 else
15536 MONOLITHIC_MANPAGES=
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15541 $as_echo "${LINGUAS:-all}" >&6; }
15546 ac_ext=cpp
15547 ac_cpp='$CXXCPP $CPPFLAGS'
15548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15554 # Check for bfd.h (to have proper backtraces without using wxExecute)
15556 for ac_header in ansidecl.h bfd.h
15557 do :
15558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15559 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15567 done
15569 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15572 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15573 if ${mule_cv_lib_bfd+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15577 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
15578 # Doing some black magic to prevent multiple tests for the same set of
15579 # libraries when any of the shell variables above expand to nothing.
15580 echo $bfd_ldadd
15581 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15582 while read bfd_ldadd; do
15583 mule_backup_LIBS="$LIBS"
15584 mule_backup_LDFLAGS="$LDFLAGS"
15585 LIBS="${bfd_ldadd} $LIBS"
15586 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15591 #include <ansidecl.h>
15592 #include <bfd.h>
15595 main ()
15597 const char *dummy = bfd_errmsg(bfd_get_error());
15599 return 0;
15602 _ACEOF
15603 if ac_fn_cxx_try_link "$LINENO"; then :
15605 LIBS="$mule_backup_LIBS"
15606 LDFLAGS="$mule_backup_LDFLAGS"
15607 mule_cv_lib_bfd="${bfd_ldadd}"
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612 LIBS="$mule_backup_LIBS"
15613 LDFLAGS="$mule_backup_LDFLAGS"
15614 if ${mule_cv_lib_bfd+:} false; then :
15615 break
15617 done <conftest.bfd_ldadd
15618 rm -f conftest.bfd_ldadd
15623 if ${mule_cv_lib_bfd+:} false; then :
15625 BFD_CPPFLAGS="-DHAVE_BFD"
15626 BFD_LIBS="${mule_cv_lib_bfd}"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15628 $as_echo "${BFD_LIBS:-none required}" >&6; }
15630 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15633 $as_echo "not found" >&6; }
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15635 Cannot link to the library containing the bfd functions." >&5
15636 $as_echo "$as_me: WARNING:
15637 Cannot link to the library containing the bfd functions." >&2;}
15638 _mule_warning_14=yes
15639 _mule_has_warnings=yes
15644 else
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15647 bfd.h not found or unusable, please install binutils development
15648 package if you are a developer or want to help testing aMule" >&5
15649 $as_echo "$as_me: WARNING:
15650 bfd.h not found or unusable, please install binutils development
15651 package if you are a developer or want to help testing aMule" >&2;}
15652 _mule_warning_15=yes
15653 _mule_has_warnings=yes
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15661 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15666 #include <execinfo.h>
15669 main ()
15672 void *bt[1];
15673 int n = backtrace((void **)&bt, 1);
15674 char **bt_syms = backtrace_symbols(bt, n);
15677 return 0;
15680 _ACEOF
15681 if ac_fn_cxx_try_link "$LINENO"; then :
15684 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15687 $as_echo "yes" >&6; }
15689 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15695 rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15700 # aMule plasma widget
15701 if test ${enable_plasmamule:-no} = yes; then :
15704 if test -z ${QT_MOC}; then :
15706 for ac_prog in moc-qt4 moc
15708 # Extract the first word of "$ac_prog", so it can be a program name with args.
15709 set dummy $ac_prog; ac_word=$2
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15711 $as_echo_n "checking for $ac_word... " >&6; }
15712 if ${ac_cv_path_QT_MOC+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 case $QT_MOC in
15716 [\\/]* | ?:[\\/]*)
15717 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721 for as_dir in $PATH
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15727 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15729 break 2
15731 done
15732 done
15733 IFS=$as_save_IFS
15736 esac
15738 QT_MOC=$ac_cv_path_QT_MOC
15739 if test -n "$QT_MOC"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15741 $as_echo "$QT_MOC" >&6; }
15742 else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15748 test -n "$QT_MOC" && break
15749 done
15751 if test -z ${QT_MOC}; then :
15753 echo moc not found
15754 exit 1
15758 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15761 $as_echo_n "checking for moc... " >&6; }
15762 if test -x ${QT_MOC}; then :
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15765 $as_echo "${QT_MOC}" >&6; }
15768 else
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15771 $as_echo "\"not found\"" >&6; }
15772 QT_MOC="not found"
15773 exit 1
15780 if test "${QT_MOC}" != "not found"; then :
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15783 $as_echo_n "checking for moc version >= 4... " >&6; }
15784 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15785 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15788 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15790 else
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15793 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15794 QT_MOC="not found"
15795 exit 1
15801 if test "${QT_MOC}" = "not found"; then :
15802 enable_plasmamule=disabled
15805 if test ${enable_plasmamule:-no} = yes; then :
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15810 $as_echo_n "checking for qt... " >&6; }
15811 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15814 $as_echo "found" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15816 $as_echo_n "checking for qt core cflags... " >&6; }
15817 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15819 $as_echo "$QT_CORE_CFLAGS" >&6; }
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15821 $as_echo_n "checking for qt core libs... " >&6; }
15822 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15824 $as_echo "$QT_CORE_LIBS" >&6; }
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15826 $as_echo_n "checking for qt gui cflags... " >&6; }
15827 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15829 $as_echo "$QT_GUI_CFLAGS" >&6; }
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15831 $as_echo_n "checking for qt gui libs... " >&6; }
15832 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15834 $as_echo "$QT_GUI_LIBS" >&6; }
15836 else
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15838 $as_echo "not found" >&6; }
15839 exit 1
15843 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15845 QT_DBUS_LDFLAGS="-lQtDBus"
15855 if test -z "${QT_CORE_CXXFLAGS}"; then :
15856 enable_plasmamule=disabled
15861 if test ${enable_plasmamule:-no} = yes; then :
15864 if test -z ${KDE4_CONFIG}; then :
15866 # Extract the first word of "kde4-config", so it can be a program name with args.
15867 set dummy kde4-config; ac_word=$2
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15869 $as_echo_n "checking for $ac_word... " >&6; }
15870 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872 else
15873 case $KDE4_CONFIG in
15874 [\\/]* | ?:[\\/]*)
15875 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15881 IFS=$as_save_IFS
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 break 2
15889 done
15890 done
15891 IFS=$as_save_IFS
15894 esac
15896 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15897 if test -n "$KDE4_CONFIG"; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15899 $as_echo "$KDE4_CONFIG" >&6; }
15900 else
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15902 $as_echo "no" >&6; }
15907 else
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15910 $as_echo_n "checking for kde4-config... " >&6; }
15911 if test ! -x KDE4_CONFIG; then :
15913 KDE4_CONFIG="not found"
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15915 $as_echo "not found" >&6; }
15916 exit 1
15922 if test "${KDE4_CONFIG}" != "not found"; then :
15924 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15925 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15928 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15930 else
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15933 $as_echo "at least version 4 required" >&6; }
15934 exit 1
15938 else
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15941 $as_echo "not found" >&6; }
15942 exit 1
15947 if test "${KDE4_CONFIG}" = "not found"; then :
15948 enable_plasmamule=disabled
15953 if test ${enable_plasmamule:-no} = yes; then :
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15957 $as_echo_n "checking for kde4 headers... " >&6; }
15958 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15960 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15962 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15965 $as_echo "${KDE_HEADER_DIR}" >&6; }
15967 else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15970 $as_echo "dataengine.h not found" >&6; }
15971 exit 1
15975 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15978 $as_echo "kdirwatch.h not found" >&6; }
15979 exit 1
15984 if test -z ${KDE_HEADER_DIR}; then :
15985 enable_plasmamule=disabled
15990 if test ${enable_plasmamule:-no} = yes; then :
15992 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15993 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15998 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15999 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16001 KDE_IN_HOME="yes"
16004 if test ${KDE_IN_HOME} = "yes"; then :
16006 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16008 else
16010 if test -n ${prefix}; then :
16012 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
16013 if test -n ${KDE_APPLNK_PATH}; then :
16015 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16019 else
16021 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
16027 $as_echo "${KDE_APPLNK_PATH}" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
16033 $as_echo_n "checking for kde4 services Path... " >&6; }
16034 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16036 KDE_IN_HOME="yes"
16039 if test ${KDE_IN_HOME} = "yes"; then :
16041 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16043 else
16045 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
16049 $as_echo "${KDE_SERVICE_PATH}" >&6; }
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
16055 $as_echo_n "checking for kde4 plugins Path... " >&6; }
16056 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16058 KDE_IN_HOME="yes"
16061 if test ${KDE_IN_HOME} = "yes"; then :
16063 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16065 else
16067 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
16071 $as_echo "${KDE_MODULE_PATH}" >&6; }
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
16077 $as_echo_n "checking for kde4 icons Path... " >&6; }
16078 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16080 KDE_IN_HOME="yes"
16083 if test ${KDE_IN_HOME} = "yes"; then :
16085 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16087 else
16089 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
16092 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
16094 $as_echo "${KDE_ICON_PATH}" >&6; }
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
16100 $as_echo_n "checking for location for mime-type installation... " >&6; }
16101 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16103 KDE_IN_HOME="yes"
16106 if test ${KDE_IN_HOME} = "yes"; then :
16108 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16110 else
16112 if test -n ${prefix}; then :
16114 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
16115 if test -n ${KDE_MIME_PATH}; then :
16117 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16121 else
16123 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
16129 $as_echo "${KDE_MIME_PATH}" >&6; }
16133 else
16134 enable_plasmamule=disabled
16139 if test ${enable_debug:-yes} = yes; then :
16141 DEBUGFLAG="-D__DEBUG__"
16149 # Check for readline library
16150 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16153 $as_echo_n "checking for a readline compatible library... " >&6; }
16154 if ${vl_cv_lib_readline+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16158 ORIG_LIBS="$LIBS"
16159 for readline_lib in readline edit editline; do
16160 for termcap_lib in "" termcap curses ncurses; do
16161 if test -z "$termcap_lib"; then
16162 TRY_LIB="-l$readline_lib"
16163 else
16164 TRY_LIB="-l$readline_lib -l$termcap_lib"
16166 LIBS="$ORIG_LIBS $TRY_LIB"
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 char readline ();
16178 main ()
16180 return readline ();
16182 return 0;
16184 _ACEOF
16185 if ac_fn_cxx_try_link "$LINENO"; then :
16186 vl_cv_lib_readline="$TRY_LIB"
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 if test -n "$vl_cv_lib_readline"; then
16191 break
16193 done
16194 if test -n "$vl_cv_lib_readline"; then
16195 break
16197 done
16198 if test -z "$vl_cv_lib_readline"; then
16199 vl_cv_lib_readline="no"
16200 LIBS="$ORIG_LIBS"
16201 READLINE_LIBS=""
16202 else
16203 READLINE_LIBS="$vl_cv_lib_readline"
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16208 $as_echo "$vl_cv_lib_readline" >&6; }
16210 if test "$vl_cv_lib_readline" != "no"; then
16212 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16214 for ac_header in readline.h readline/readline.h
16215 do :
16216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16217 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16219 cat >>confdefs.h <<_ACEOF
16220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16221 _ACEOF
16225 done
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16228 $as_echo_n "checking whether readline supports history... " >&6; }
16229 if ${vl_cv_lib_readline_history+:} false; then :
16230 $as_echo_n "(cached) " >&6
16231 else
16233 vl_cv_lib_readline_history="no"
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16237 /* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
16240 #ifdef __cplusplus
16241 extern "C"
16242 #endif
16243 char add_history ();
16245 main ()
16247 return add_history ();
16249 return 0;
16251 _ACEOF
16252 if ac_fn_cxx_try_link "$LINENO"; then :
16253 vl_cv_lib_readline_history="yes"
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16260 $as_echo "$vl_cv_lib_readline_history" >&6; }
16261 if test "$vl_cv_lib_readline_history" = "yes"; then
16263 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16265 for ac_header in history.h readline/history.h
16266 do :
16267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16269 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16270 cat >>confdefs.h <<_ACEOF
16271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16272 _ACEOF
16276 done
16281 LIBS="$ORIG_LIBS"
16286 ac_ext=c
16287 ac_cpp='$CPP $CPPFLAGS'
16288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16293 # Check for strerror_r
16294 mule_backup_CPPFLAGS="$CPPFLAGS"
16295 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16296 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16297 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16298 ac_have_decl=1
16299 else
16300 ac_have_decl=0
16303 cat >>confdefs.h <<_ACEOF
16304 #define HAVE_DECL_STRERROR_R $ac_have_decl
16305 _ACEOF
16307 for ac_func in strerror_r
16308 do :
16309 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16310 if test "x$ac_cv_func_strerror_r" = xyes; then :
16311 cat >>confdefs.h <<_ACEOF
16312 #define HAVE_STRERROR_R 1
16313 _ACEOF
16316 done
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16319 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16320 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16324 ac_cv_func_strerror_r_char_p=no
16325 if test $ac_cv_have_decl_strerror_r = yes; then
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 $ac_includes_default
16330 main ()
16333 char buf[100];
16334 char x = *strerror_r (0, buf, sizeof buf);
16335 char *p = strerror_r (0, buf, sizeof buf);
16336 return !p || x;
16339 return 0;
16341 _ACEOF
16342 if ac_fn_c_try_compile "$LINENO"; then :
16343 ac_cv_func_strerror_r_char_p=yes
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 else
16347 # strerror_r is not declared. Choose between
16348 # systems that have relatively inaccessible declarations for the
16349 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16350 # former has a strerror_r that returns char*, while the latter
16351 # has a strerror_r that returns `int'.
16352 # This test should segfault on the DEC system.
16353 if test "$cross_compiling" = yes; then :
16355 else
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 $ac_includes_default
16359 extern char *strerror_r ();
16361 main ()
16363 char buf[100];
16364 char x = *strerror_r (0, buf, sizeof buf);
16365 return ! isalpha (x);
16367 return 0;
16369 _ACEOF
16370 if ac_fn_c_try_run "$LINENO"; then :
16371 ac_cv_func_strerror_r_char_p=yes
16373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16374 conftest.$ac_objext conftest.beam conftest.$ac_ext
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16381 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16382 if test $ac_cv_func_strerror_r_char_p = yes; then
16384 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16388 CPPFLAGS="$mule_backup_CPPFLAGS"
16391 # Other tests
16393 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16395 $as_echo_n "checking for docdir... " >&6; }
16396 if test -z "$docdir"; then :
16397 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16400 $as_echo "$docdir" >&6; }
16403 # Try to set the SVN checkout-date
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16405 $as_echo_n "checking for SVNDATE... " >&6; }
16406 modified=
16407 if test -f "$srcdir/.svn-revision"; then
16408 svndate="rev. `cat $srcdir/.svn-revision`"
16409 elif test -d "$srcdir"/.svn; then
16410 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'`"
16411 elif test -d "$srcdir"/.git; then
16413 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16414 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16415 modified="+"
16417 if test -f $srcdir/.git/svn/.metadata ; then
16418 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16419 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16420 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16421 if test -n "\${svn_revision}" ; then
16422 if test \${sha} = ${git_sha} ; then
16423 echo "rev. \${svn_revision}${modified}"
16424 else
16425 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16427 break
16429 done`
16430 else
16431 svndate="rev. g${git_revision}${modified}"
16434 elif test -d "$srcdir"/.hg; then
16436 hg_revision=`hg --cwd "$srcdir" identify --id`
16437 hg_revid=${hg_revision%+}
16438 if test ${hg_revision} != ${hg_revid} ; then
16439 modified="+"
16441 if test -f "$srcdir"/.hg/svn/uuid ; then
16442 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16443 if test \${svn_revision} != r ; then
16444 if test \${hg_sha} = ${hg_revid} ; then
16445 echo "rev. \${svn_revision#r}${modified}"
16446 else
16447 echo "rev. \${svn_revision#r}+h${hg_revision}"
16449 break
16451 done`
16452 else
16453 svndate="rev. h${hg_revision}"
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16460 $as_echo "${svndate:-None required}" >&6; }
16461 if test -n "$svndate"; then :
16464 cat >>confdefs.h <<_ACEOF
16465 #define SVNDATE "$svndate"
16466 _ACEOF
16468 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16471 SVNDATE=$svndate
16476 # Check whether --with-denoise-level was given.
16477 if test "${with_denoise_level+set}" = set; then :
16478 withval=$with_denoise_level;
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16483 $as_echo_n "checking denoising level... " >&6; }
16484 if test ${with_denoise_level:-5} = yes; then :
16485 with_denoise_level=5
16487 if test ${with_denoise_level:-5} = no; then :
16488 with_denoise_level=0
16490 if test ${with_denoise_level:-5} -gt 4; then :
16491 if test "${svndate:+set}" = "set"; then :
16492 with_denoise_level=0
16493 else
16494 with_denoise_level=4
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16498 $as_echo "$with_denoise_level" >&6; }
16500 ac_config_commands="$ac_config_commands denoiser"
16505 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16507 # Check whether --enable-ccache was given.
16508 if test "${enable_ccache+set}" = set; then :
16509 enableval=$enable_ccache;
16515 # Check whether --with-ccache-prefix was given.
16516 if test "${with_ccache_prefix+set}" = set; then :
16517 withval=$with_ccache_prefix;
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16522 $as_echo_n "checking whether ccache support should be added... " >&6; }
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16524 $as_echo "${enable_ccache:-no}" >&6; }
16526 if test ${enable_ccache:-no} = yes; then :
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16529 $as_echo_n "checking for ccache presence... " >&6; }
16530 if test -z "$with_ccache_prefix"; then :
16532 ccache_full=`which ccache`
16533 with_ccache_prefix=`dirname ${ccache_full}`
16536 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16538 CC="$with_ccache_prefix/ccache $CC"
16539 CXX="$with_ccache_prefix/ccache $CXX"
16540 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16542 else
16543 enable_ccache=no
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16546 $as_echo "${enable_ccache:-no}" >&6; }
16553 if test x$SYS = xwin32; then
16554 SYS_WIN32_TRUE=
16555 SYS_WIN32_FALSE='#'
16556 else
16557 SYS_WIN32_TRUE='#'
16558 SYS_WIN32_FALSE=
16561 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16562 NEED_RC_TRUE=
16563 NEED_RC_FALSE='#'
16564 else
16565 NEED_RC_TRUE='#'
16566 NEED_RC_FALSE=
16569 if test x$SYS = xdarwin; then
16570 NEED_CORESERVICES_TRUE=
16571 NEED_CORESERVICES_FALSE='#'
16572 else
16573 NEED_CORESERVICES_TRUE='#'
16574 NEED_CORESERVICES_FALSE=
16577 if test x$USE_NLS = xyes; then
16578 COMPILE_NLS_TRUE=
16579 COMPILE_NLS_FALSE='#'
16580 else
16581 COMPILE_NLS_TRUE='#'
16582 COMPILE_NLS_FALSE=
16585 if test x$HAVE_FLEX_EXTENDED = xyes; then
16586 GENERATE_FLEX_HEADER_TRUE=
16587 GENERATE_FLEX_HEADER_FALSE='#'
16588 else
16589 GENERATE_FLEX_HEADER_TRUE='#'
16590 GENERATE_FLEX_HEADER_FALSE=
16593 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16594 INSTALL_SKINS_TRUE=
16595 INSTALL_SKINS_FALSE='#'
16596 else
16597 INSTALL_SKINS_TRUE='#'
16598 INSTALL_SKINS_FALSE=
16601 if test ${enable_plasmamule:-no} = yes; then
16602 PLASMAMULE_TRUE=
16603 PLASMAMULE_FALSE='#'
16604 else
16605 PLASMAMULE_TRUE='#'
16606 PLASMAMULE_FALSE=
16610 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
16611 COMPILE_LIB_COMMON_TRUE=
16612 COMPILE_LIB_COMMON_FALSE='#'
16613 else
16614 COMPILE_LIB_COMMON_TRUE='#'
16615 COMPILE_LIB_COMMON_FALSE=
16618 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
16619 COMPILE_LIB_EC_TRUE=
16620 COMPILE_LIB_EC_FALSE='#'
16621 else
16622 COMPILE_LIB_EC_TRUE='#'
16623 COMPILE_LIB_EC_FALSE=
16627 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"
16630 if test x$SYS = xwin32; then :
16631 ac_config_files="$ac_config_files version.rc"
16634 cat >confcache <<\_ACEOF
16635 # This file is a shell script that caches the results of configure
16636 # tests run on this system so they can be shared between configure
16637 # scripts and configure runs, see configure's option --config-cache.
16638 # It is not useful on other systems. If it contains results you don't
16639 # want to keep, you may remove or edit it.
16641 # config.status only pays attention to the cache file if you give it
16642 # the --recheck option to rerun configure.
16644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16646 # following values.
16648 _ACEOF
16650 # The following way of writing the cache mishandles newlines in values,
16651 # but we know of no workaround that is simple, portable, and efficient.
16652 # So, we kill variables containing newlines.
16653 # Ultrix sh set writes to stderr and can't be redirected directly,
16654 # and sets the high bit in the cache file unless we assign to the vars.
16656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16657 eval ac_val=\$$ac_var
16658 case $ac_val in #(
16659 *${as_nl}*)
16660 case $ac_var in #(
16661 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16663 esac
16664 case $ac_var in #(
16665 _ | IFS | as_nl) ;; #(
16666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16667 *) { eval $ac_var=; unset $ac_var;} ;;
16668 esac ;;
16669 esac
16670 done
16672 (set) 2>&1 |
16673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16674 *${as_nl}ac_space=\ *)
16675 # `set' does not quote correctly, so add quotes: double-quote
16676 # substitution turns \\\\ into \\, and sed turns \\ into \.
16677 sed -n \
16678 "s/'/'\\\\''/g;
16679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16680 ;; #(
16682 # `set' quotes correctly as required by POSIX, so do not add quotes.
16683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16685 esac |
16686 sort
16688 sed '
16689 /^ac_cv_env_/b end
16690 t clear
16691 :clear
16692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16693 t end
16694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16695 :end' >>confcache
16696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16697 if test -w "$cache_file"; then
16698 if test "x$cache_file" != "x/dev/null"; then
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16700 $as_echo "$as_me: updating cache $cache_file" >&6;}
16701 if test ! -f "$cache_file" || test -h "$cache_file"; then
16702 cat confcache >"$cache_file"
16703 else
16704 case $cache_file in #(
16705 */* | ?:*)
16706 mv -f confcache "$cache_file"$$ &&
16707 mv -f "$cache_file"$$ "$cache_file" ;; #(
16709 mv -f confcache "$cache_file" ;;
16710 esac
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16715 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16718 rm -f confcache
16720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16721 # Let make expand exec_prefix.
16722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16724 DEFS=-DHAVE_CONFIG_H
16726 ac_libobjs=
16727 ac_ltlibobjs=
16729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16730 # 1. Remove the extension, and $U if already installed.
16731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16732 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16734 # will be set to the directory where LIBOBJS objects are built.
16735 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16736 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16737 done
16738 LIBOBJS=$ac_libobjs
16740 LTLIBOBJS=$ac_ltlibobjs
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16744 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16745 if test -n "$am_sleep_pid"; then
16746 # Hide warnings about reused PIDs.
16747 wait $am_sleep_pid 2>/dev/null
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16750 $as_echo "done" >&6; }
16751 if test -n "$EXEEXT"; then
16752 am__EXEEXT_TRUE=
16753 am__EXEEXT_FALSE='#'
16754 else
16755 am__EXEEXT_TRUE='#'
16756 am__EXEEXT_FALSE=
16759 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16760 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16763 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16764 as_fn_error $? "conditional \"AMDEP\" was never defined.
16765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16767 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16768 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16771 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16775 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16776 as_fn_error $? "conditional \"MONOLITHIC\" was never defined.
16777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16779 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16780 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined.
16781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16783 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16784 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined.
16785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16787 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16788 as_fn_error $? "conditional \"WEB\" was never defined.
16789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16791 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16792 as_fn_error $? "conditional \"AMULE_GUI\" was never defined.
16793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16795 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16796 as_fn_error $? "conditional \"CAS\" was never defined.
16797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16799 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16800 as_fn_error $? "conditional \"WXCAS\" was never defined.
16801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16803 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16804 as_fn_error $? "conditional \"ED2K\" was never defined.
16805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16808 as_fn_error $? "conditional \"ALC\" was never defined.
16809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16812 as_fn_error $? "conditional \"ALCC\" was never defined.
16813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16815 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16816 as_fn_error $? "conditional \"XAS\" was never defined.
16817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16819 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16820 as_fn_error $? "conditional \"FILEVIEW\" was never defined.
16821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16824 as_fn_error $? "conditional \"SYS_WIN32\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16828 as_fn_error $? "conditional \"NEED_RC\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16832 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16836 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16840 as_fn_error $? "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16844 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16847 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16848 as_fn_error $? "conditional \"PLASMAMULE\" was never defined.
16849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16851 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16852 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16855 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16856 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16860 : "${CONFIG_STATUS=./config.status}"
16861 ac_write_fail=0
16862 ac_clean_files_save=$ac_clean_files
16863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16866 as_write_fail=0
16867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16868 #! $SHELL
16869 # Generated by $as_me.
16870 # Run this file to recreate the current configuration.
16871 # Compiler output produced by configure, useful for debugging
16872 # configure, is in config.log if it exists.
16874 debug=false
16875 ac_cs_recheck=false
16876 ac_cs_silent=false
16878 SHELL=\${CONFIG_SHELL-$SHELL}
16879 export SHELL
16880 _ASEOF
16881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16882 ## -------------------- ##
16883 ## M4sh Initialization. ##
16884 ## -------------------- ##
16886 # Be more Bourne compatible
16887 DUALCASE=1; export DUALCASE # for MKS sh
16888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16889 emulate sh
16890 NULLCMD=:
16891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16892 # is contrary to our usage. Disable this feature.
16893 alias -g '${1+"$@"}'='"$@"'
16894 setopt NO_GLOB_SUBST
16895 else
16896 case `(set -o) 2>/dev/null` in #(
16897 *posix*) :
16898 set -o posix ;; #(
16899 *) :
16901 esac
16905 as_nl='
16907 export as_nl
16908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16912 # Prefer a ksh shell builtin over an external printf program on Solaris,
16913 # but without wasting forks for bash or zsh.
16914 if test -z "$BASH_VERSION$ZSH_VERSION" \
16915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16916 as_echo='print -r --'
16917 as_echo_n='print -rn --'
16918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16919 as_echo='printf %s\n'
16920 as_echo_n='printf %s'
16921 else
16922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16924 as_echo_n='/usr/ucb/echo -n'
16925 else
16926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16927 as_echo_n_body='eval
16928 arg=$1;
16929 case $arg in #(
16930 *"$as_nl"*)
16931 expr "X$arg" : "X\\(.*\\)$as_nl";
16932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16933 esac;
16934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16936 export as_echo_n_body
16937 as_echo_n='sh -c $as_echo_n_body as_echo'
16939 export as_echo_body
16940 as_echo='sh -c $as_echo_body as_echo'
16943 # The user is always right.
16944 if test "${PATH_SEPARATOR+set}" != set; then
16945 PATH_SEPARATOR=:
16946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16948 PATH_SEPARATOR=';'
16953 # IFS
16954 # We need space, tab and new line, in precisely that order. Quoting is
16955 # there to prevent editors from complaining about space-tab.
16956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16957 # splitting by setting IFS to empty value.)
16958 IFS=" "" $as_nl"
16960 # Find who we are. Look in the path if we contain no directory separator.
16961 as_myself=
16962 case $0 in #((
16963 *[\\/]* ) as_myself=$0 ;;
16964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16965 for as_dir in $PATH
16967 IFS=$as_save_IFS
16968 test -z "$as_dir" && as_dir=.
16969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16970 done
16971 IFS=$as_save_IFS
16974 esac
16975 # We did not find ourselves, most probably we were run as `sh COMMAND'
16976 # in which case we are not to be found in the path.
16977 if test "x$as_myself" = x; then
16978 as_myself=$0
16980 if test ! -f "$as_myself"; then
16981 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16982 exit 1
16985 # Unset variables that we do not need and which cause bugs (e.g. in
16986 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16987 # suppresses any "Segmentation fault" message there. '((' could
16988 # trigger a bug in pdksh 5.2.14.
16989 for as_var in BASH_ENV ENV MAIL MAILPATH
16990 do eval test x\${$as_var+set} = xset \
16991 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16992 done
16993 PS1='$ '
16994 PS2='> '
16995 PS4='+ '
16997 # NLS nuisances.
16998 LC_ALL=C
16999 export LC_ALL
17000 LANGUAGE=C
17001 export LANGUAGE
17003 # CDPATH.
17004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17007 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17008 # ----------------------------------------
17009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17011 # script with STATUS, using 1 if that was 0.
17012 as_fn_error ()
17014 as_status=$1; test $as_status -eq 0 && as_status=1
17015 if test "$4"; then
17016 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17017 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17019 $as_echo "$as_me: error: $2" >&2
17020 as_fn_exit $as_status
17021 } # as_fn_error
17024 # as_fn_set_status STATUS
17025 # -----------------------
17026 # Set $? to STATUS, without forking.
17027 as_fn_set_status ()
17029 return $1
17030 } # as_fn_set_status
17032 # as_fn_exit STATUS
17033 # -----------------
17034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17035 as_fn_exit ()
17037 set +e
17038 as_fn_set_status $1
17039 exit $1
17040 } # as_fn_exit
17042 # as_fn_unset VAR
17043 # ---------------
17044 # Portably unset VAR.
17045 as_fn_unset ()
17047 { eval $1=; unset $1;}
17049 as_unset=as_fn_unset
17050 # as_fn_append VAR VALUE
17051 # ----------------------
17052 # Append the text in VALUE to the end of the definition contained in VAR. Take
17053 # advantage of any shell optimizations that allow amortized linear growth over
17054 # repeated appends, instead of the typical quadratic growth present in naive
17055 # implementations.
17056 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17057 eval 'as_fn_append ()
17059 eval $1+=\$2
17061 else
17062 as_fn_append ()
17064 eval $1=\$$1\$2
17066 fi # as_fn_append
17068 # as_fn_arith ARG...
17069 # ------------------
17070 # Perform arithmetic evaluation on the ARGs, and store the result in the
17071 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17072 # must be portable across $(()) and expr.
17073 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17074 eval 'as_fn_arith ()
17076 as_val=$(( $* ))
17078 else
17079 as_fn_arith ()
17081 as_val=`expr "$@" || test $? -eq 1`
17083 fi # as_fn_arith
17086 if expr a : '\(a\)' >/dev/null 2>&1 &&
17087 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17088 as_expr=expr
17089 else
17090 as_expr=false
17093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17094 as_basename=basename
17095 else
17096 as_basename=false
17099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17100 as_dirname=dirname
17101 else
17102 as_dirname=false
17105 as_me=`$as_basename -- "$0" ||
17106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17107 X"$0" : 'X\(//\)$' \| \
17108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17109 $as_echo X/"$0" |
17110 sed '/^.*\/\([^/][^/]*\)\/*$/{
17111 s//\1/
17114 /^X\/\(\/\/\)$/{
17115 s//\1/
17118 /^X\/\(\/\).*/{
17119 s//\1/
17122 s/.*/./; q'`
17124 # Avoid depending upon Character Ranges.
17125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17128 as_cr_digits='0123456789'
17129 as_cr_alnum=$as_cr_Letters$as_cr_digits
17131 ECHO_C= ECHO_N= ECHO_T=
17132 case `echo -n x` in #(((((
17133 -n*)
17134 case `echo 'xy\c'` in
17135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17136 xy) ECHO_C='\c';;
17137 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17138 ECHO_T=' ';;
17139 esac;;
17141 ECHO_N='-n';;
17142 esac
17144 rm -f conf$$ conf$$.exe conf$$.file
17145 if test -d conf$$.dir; then
17146 rm -f conf$$.dir/conf$$.file
17147 else
17148 rm -f conf$$.dir
17149 mkdir conf$$.dir 2>/dev/null
17151 if (echo >conf$$.file) 2>/dev/null; then
17152 if ln -s conf$$.file conf$$ 2>/dev/null; then
17153 as_ln_s='ln -s'
17154 # ... but there are two gotchas:
17155 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17156 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17157 # In both cases, we have to default to `cp -pR'.
17158 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17159 as_ln_s='cp -pR'
17160 elif ln conf$$.file conf$$ 2>/dev/null; then
17161 as_ln_s=ln
17162 else
17163 as_ln_s='cp -pR'
17165 else
17166 as_ln_s='cp -pR'
17168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17169 rmdir conf$$.dir 2>/dev/null
17172 # as_fn_mkdir_p
17173 # -------------
17174 # Create "$as_dir" as a directory, including parents if necessary.
17175 as_fn_mkdir_p ()
17178 case $as_dir in #(
17179 -*) as_dir=./$as_dir;;
17180 esac
17181 test -d "$as_dir" || eval $as_mkdir_p || {
17182 as_dirs=
17183 while :; do
17184 case $as_dir in #(
17185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17186 *) as_qdir=$as_dir;;
17187 esac
17188 as_dirs="'$as_qdir' $as_dirs"
17189 as_dir=`$as_dirname -- "$as_dir" ||
17190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$as_dir" : 'X\(//\)[^/]' \| \
17192 X"$as_dir" : 'X\(//\)$' \| \
17193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17194 $as_echo X"$as_dir" |
17195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17196 s//\1/
17199 /^X\(\/\/\)[^/].*/{
17200 s//\1/
17203 /^X\(\/\/\)$/{
17204 s//\1/
17207 /^X\(\/\).*/{
17208 s//\1/
17211 s/.*/./; q'`
17212 test -d "$as_dir" && break
17213 done
17214 test -z "$as_dirs" || eval "mkdir $as_dirs"
17215 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17218 } # as_fn_mkdir_p
17219 if mkdir -p . 2>/dev/null; then
17220 as_mkdir_p='mkdir -p "$as_dir"'
17221 else
17222 test -d ./-p && rmdir ./-p
17223 as_mkdir_p=false
17227 # as_fn_executable_p FILE
17228 # -----------------------
17229 # Test if FILE is an executable regular file.
17230 as_fn_executable_p ()
17232 test -f "$1" && test -x "$1"
17233 } # as_fn_executable_p
17234 as_test_x='test -x'
17235 as_executable_p=as_fn_executable_p
17237 # Sed expression to map a string onto a valid CPP name.
17238 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17240 # Sed expression to map a string onto a valid variable name.
17241 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17244 exec 6>&1
17245 ## ----------------------------------- ##
17246 ## Main body of $CONFIG_STATUS script. ##
17247 ## ----------------------------------- ##
17248 _ASEOF
17249 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17252 # Save the log message, to keep $0 and so on meaningful, and to
17253 # report actual input values of CONFIG_FILES etc. instead of their
17254 # values after options handling.
17255 ac_log="
17256 This file was extended by aMule $as_me SVN, which was
17257 generated by GNU Autoconf 2.69. Invocation command line was
17259 CONFIG_FILES = $CONFIG_FILES
17260 CONFIG_HEADERS = $CONFIG_HEADERS
17261 CONFIG_LINKS = $CONFIG_LINKS
17262 CONFIG_COMMANDS = $CONFIG_COMMANDS
17263 $ $0 $@
17265 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17268 _ACEOF
17270 case $ac_config_files in *"
17271 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17272 esac
17274 case $ac_config_headers in *"
17275 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17276 esac
17279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17280 # Files that config.status was made for.
17281 config_files="$ac_config_files"
17282 config_headers="$ac_config_headers"
17283 config_commands="$ac_config_commands"
17285 _ACEOF
17287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17288 ac_cs_usage="\
17289 \`$as_me' instantiates files and other configuration actions
17290 from templates according to the current configuration. Unless the files
17291 and actions are specified as TAGs, all are instantiated by default.
17293 Usage: $0 [OPTION]... [TAG]...
17295 -h, --help print this help, then exit
17296 -V, --version print version number and configuration settings, then exit
17297 --config print configuration, then exit
17298 -q, --quiet, --silent
17299 do not print progress messages
17300 -d, --debug don't remove temporary files
17301 --recheck update $as_me by reconfiguring in the same conditions
17302 --file=FILE[:TEMPLATE]
17303 instantiate the configuration file FILE
17304 --header=FILE[:TEMPLATE]
17305 instantiate the configuration header FILE
17307 Configuration files:
17308 $config_files
17310 Configuration headers:
17311 $config_headers
17313 Configuration commands:
17314 $config_commands
17316 Report bugs to <admin@amule.org>."
17318 _ACEOF
17319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17321 ac_cs_version="\\
17322 aMule config.status SVN
17323 configured by $0, generated by GNU Autoconf 2.69,
17324 with options \\"\$ac_cs_config\\"
17326 Copyright (C) 2012 Free Software Foundation, Inc.
17327 This config.status script is free software; the Free Software Foundation
17328 gives unlimited permission to copy, distribute and modify it."
17330 ac_pwd='$ac_pwd'
17331 srcdir='$srcdir'
17332 INSTALL='$INSTALL'
17333 MKDIR_P='$MKDIR_P'
17334 AWK='$AWK'
17335 test -n "\$AWK" || AWK=awk
17336 _ACEOF
17338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17339 # The default lists apply if the user does not specify any file.
17340 ac_need_defaults=:
17341 while test $# != 0
17343 case $1 in
17344 --*=?*)
17345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17346 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17347 ac_shift=:
17349 --*=)
17350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17351 ac_optarg=
17352 ac_shift=:
17355 ac_option=$1
17356 ac_optarg=$2
17357 ac_shift=shift
17359 esac
17361 case $ac_option in
17362 # Handling of the options.
17363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17364 ac_cs_recheck=: ;;
17365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17366 $as_echo "$ac_cs_version"; exit ;;
17367 --config | --confi | --conf | --con | --co | --c )
17368 $as_echo "$ac_cs_config"; exit ;;
17369 --debug | --debu | --deb | --de | --d | -d )
17370 debug=: ;;
17371 --file | --fil | --fi | --f )
17372 $ac_shift
17373 case $ac_optarg in
17374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17375 '') as_fn_error $? "missing file argument" ;;
17376 esac
17377 as_fn_append CONFIG_FILES " '$ac_optarg'"
17378 ac_need_defaults=false;;
17379 --header | --heade | --head | --hea )
17380 $ac_shift
17381 case $ac_optarg in
17382 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17383 esac
17384 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17385 ac_need_defaults=false;;
17386 --he | --h)
17387 # Conflict between --help and --header
17388 as_fn_error $? "ambiguous option: \`$1'
17389 Try \`$0 --help' for more information.";;
17390 --help | --hel | -h )
17391 $as_echo "$ac_cs_usage"; exit ;;
17392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17394 ac_cs_silent=: ;;
17396 # This is an error.
17397 -*) as_fn_error $? "unrecognized option: \`$1'
17398 Try \`$0 --help' for more information." ;;
17400 *) as_fn_append ac_config_targets " $1"
17401 ac_need_defaults=false ;;
17403 esac
17404 shift
17405 done
17407 ac_configure_extra_args=
17409 if $ac_cs_silent; then
17410 exec 6>/dev/null
17411 ac_configure_extra_args="$ac_configure_extra_args --silent"
17414 _ACEOF
17415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 if \$ac_cs_recheck; then
17417 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17418 shift
17419 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17420 CONFIG_SHELL='$SHELL'
17421 export CONFIG_SHELL
17422 exec "\$@"
17425 _ACEOF
17426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17427 exec 5>>config.log
17429 echo
17430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17431 ## Running $as_me. ##
17432 _ASBOX
17433 $as_echo "$ac_log"
17434 } >&5
17436 _ACEOF
17437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 # INIT-COMMANDS
17441 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17442 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17443 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17444 # from automake.
17445 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17446 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17447 LINGUAS="${LINGUAS-%UNSET%}"
17449 denoiserlevel=$with_denoise_level
17451 _ACEOF
17453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17455 # Handling of arguments.
17456 for ac_config_target in $ac_config_targets
17458 case $ac_config_target in
17459 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17460 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17461 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17462 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17463 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17464 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17465 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17466 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17467 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17468 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17469 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17470 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17471 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17472 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17473 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17474 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17475 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17476 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17477 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17478 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17479 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17480 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17481 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17482 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17483 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17484 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17485 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17486 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17487 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17488 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17489 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17490 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17491 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17492 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17493 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17494 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17495 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17496 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17498 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17499 esac
17500 done
17503 # If the user did not use the arguments to specify the items to instantiate,
17504 # then the envvar interface is used. Set only those that are not.
17505 # We use the long form for the default assignment because of an extremely
17506 # bizarre bug on SunOS 4.1.3.
17507 if $ac_need_defaults; then
17508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17513 # Have a temporary directory for convenience. Make it in the build tree
17514 # simply because there is no reason against having it here, and in addition,
17515 # creating and moving files from /tmp can sometimes cause problems.
17516 # Hook for its removal unless debugging.
17517 # Note that there is a small window in which the directory will not be cleaned:
17518 # after its creation but before its name has been assigned to `$tmp'.
17519 $debug ||
17521 tmp= ac_tmp=
17522 trap 'exit_status=$?
17523 : "${ac_tmp:=$tmp}"
17524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17526 trap 'as_fn_exit 1' 1 2 13 15
17528 # Create a (secure) tmp directory for tmp files.
17531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17532 test -d "$tmp"
17533 } ||
17535 tmp=./conf$$-$RANDOM
17536 (umask 077 && mkdir "$tmp")
17537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17538 ac_tmp=$tmp
17540 # Set up the scripts for CONFIG_FILES section.
17541 # No need to generate them if there are no CONFIG_FILES.
17542 # This happens for instance with `./config.status config.h'.
17543 if test -n "$CONFIG_FILES"; then
17546 ac_cr=`echo X | tr X '\015'`
17547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17548 # But we know of no other shell where ac_cr would be empty at this
17549 # point, so we can use a bashism as a fallback.
17550 if test "x$ac_cr" = x; then
17551 eval ac_cr=\$\'\\r\'
17553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17555 ac_cs_awk_cr='\\r'
17556 else
17557 ac_cs_awk_cr=$ac_cr
17560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17561 _ACEOF
17565 echo "cat >conf$$subs.awk <<_ACEOF" &&
17566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17567 echo "_ACEOF"
17568 } >conf$$subs.sh ||
17569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17571 ac_delim='%!_!# '
17572 for ac_last_try in false false false false false :; do
17573 . ./conf$$subs.sh ||
17574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17577 if test $ac_delim_n = $ac_delim_num; then
17578 break
17579 elif $ac_last_try; then
17580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17581 else
17582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17584 done
17585 rm -f conf$$subs.sh
17587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17589 _ACEOF
17590 sed -n '
17592 s/^/S["/; s/!.*/"]=/
17595 s/^[^!]*!//
17596 :repl
17597 t repl
17598 s/'"$ac_delim"'$//
17599 t delim
17602 s/\(.\{148\}\)..*/\1/
17603 t more1
17604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17607 b repl
17608 :more1
17609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17612 s/.\{148\}//
17613 t nl
17614 :delim
17616 s/\(.\{148\}\)..*/\1/
17617 t more2
17618 s/["\\]/\\&/g; s/^/"/; s/$/"/
17621 :more2
17622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17625 s/.\{148\}//
17626 t delim
17627 ' <conf$$subs.awk | sed '
17628 /^[^""]/{
17630 s/\n//
17632 ' >>$CONFIG_STATUS || ac_write_fail=1
17633 rm -f conf$$subs.awk
17634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17635 _ACAWK
17636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17637 for (key in S) S_is_set[key] = 1
17638 FS = "\a"
17642 line = $ 0
17643 nfields = split(line, field, "@")
17644 substed = 0
17645 len = length(field[1])
17646 for (i = 2; i < nfields; i++) {
17647 key = field[i]
17648 keylen = length(key)
17649 if (S_is_set[key]) {
17650 value = S[key]
17651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17652 len += length(value) + length(field[++i])
17653 substed = 1
17654 } else
17655 len += 1 + keylen
17658 print line
17661 _ACAWK
17662 _ACEOF
17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17666 else
17668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17670 _ACEOF
17672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17674 # trailing colons and then remove the whole line if VPATH becomes empty
17675 # (actually we leave an empty line to preserve line numbers).
17676 if test "x$srcdir" = x.; then
17677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17679 s///
17680 s/^/:/
17681 s/[ ]*$/:/
17682 s/:\$(srcdir):/:/g
17683 s/:\${srcdir}:/:/g
17684 s/:@srcdir@:/:/g
17685 s/^:*//
17686 s/:*$//
17688 s/\(=[ ]*\).*/\1/
17690 s/\n//
17691 s/^[^=]*=[ ]*$//
17695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17696 fi # test -n "$CONFIG_FILES"
17698 # Set up the scripts for CONFIG_HEADERS section.
17699 # No need to generate them if there are no CONFIG_HEADERS.
17700 # This happens for instance with `./config.status Makefile'.
17701 if test -n "$CONFIG_HEADERS"; then
17702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17703 BEGIN {
17704 _ACEOF
17706 # Transform confdefs.h into an awk script `defines.awk', embedded as
17707 # here-document in config.status, that substitutes the proper values into
17708 # config.h.in to produce config.h.
17710 # Create a delimiter string that does not exist in confdefs.h, to ease
17711 # handling of long lines.
17712 ac_delim='%!_!# '
17713 for ac_last_try in false false :; do
17714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17715 if test -z "$ac_tt"; then
17716 break
17717 elif $ac_last_try; then
17718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17719 else
17720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17722 done
17724 # For the awk script, D is an array of macro values keyed by name,
17725 # likewise P contains macro parameters if any. Preserve backslash
17726 # newline sequences.
17728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17729 sed -n '
17730 s/.\{148\}/&'"$ac_delim"'/g
17731 t rset
17732 :rset
17733 s/^[ ]*#[ ]*define[ ][ ]*/ /
17734 t def
17736 :def
17737 s/\\$//
17738 t bsnl
17739 s/["\\]/\\&/g
17740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17741 D["\1"]=" \3"/p
17742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17744 :bsnl
17745 s/["\\]/\\&/g
17746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17747 D["\1"]=" \3\\\\\\n"\\/p
17748 t cont
17749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17750 t cont
17752 :cont
17754 s/.\{148\}/&'"$ac_delim"'/g
17755 t clear
17756 :clear
17757 s/\\$//
17758 t bsnlc
17759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17761 :bsnlc
17762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17763 b cont
17764 ' <confdefs.h | sed '
17765 s/'"$ac_delim"'/"\\\
17766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17769 for (key in D) D_is_set[key] = 1
17770 FS = "\a"
17772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17773 line = \$ 0
17774 split(line, arg, " ")
17775 if (arg[1] == "#") {
17776 defundef = arg[2]
17777 mac1 = arg[3]
17778 } else {
17779 defundef = substr(arg[1], 2)
17780 mac1 = arg[2]
17782 split(mac1, mac2, "(") #)
17783 macro = mac2[1]
17784 prefix = substr(line, 1, index(line, defundef) - 1)
17785 if (D_is_set[macro]) {
17786 # Preserve the white space surrounding the "#".
17787 print prefix "define", macro P[macro] D[macro]
17788 next
17789 } else {
17790 # Replace #undef with comments. This is necessary, for example,
17791 # in the case of _POSIX_SOURCE, which is predefined and required
17792 # on some systems where configure will not decide to define it.
17793 if (defundef == "undef") {
17794 print "/*", prefix defundef, macro, "*/"
17795 next
17799 { print }
17800 _ACAWK
17801 _ACEOF
17802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17804 fi # test -n "$CONFIG_HEADERS"
17807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17808 shift
17809 for ac_tag
17811 case $ac_tag in
17812 :[FHLC]) ac_mode=$ac_tag; continue;;
17813 esac
17814 case $ac_mode$ac_tag in
17815 :[FHL]*:*);;
17816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17817 :[FH]-) ac_tag=-:-;;
17818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17819 esac
17820 ac_save_IFS=$IFS
17821 IFS=:
17822 set x $ac_tag
17823 IFS=$ac_save_IFS
17824 shift
17825 ac_file=$1
17826 shift
17828 case $ac_mode in
17829 :L) ac_source=$1;;
17830 :[FH])
17831 ac_file_inputs=
17832 for ac_f
17834 case $ac_f in
17835 -) ac_f="$ac_tmp/stdin";;
17836 *) # Look for the file first in the build tree, then in the source tree
17837 # (if the path is not absolute). The absolute path cannot be DOS-style,
17838 # because $ac_f cannot contain `:'.
17839 test -f "$ac_f" ||
17840 case $ac_f in
17841 [\\/$]*) false;;
17842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17843 esac ||
17844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17845 esac
17846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17847 as_fn_append ac_file_inputs " '$ac_f'"
17848 done
17850 # Let's still pretend it is `configure' which instantiates (i.e., don't
17851 # use $as_me), people would be surprised to read:
17852 # /* config.h. Generated by config.status. */
17853 configure_input='Generated from '`
17854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17855 `' by configure.'
17856 if test x"$ac_file" != x-; then
17857 configure_input="$ac_file. $configure_input"
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17859 $as_echo "$as_me: creating $ac_file" >&6;}
17861 # Neutralize special characters interpreted by sed in replacement strings.
17862 case $configure_input in #(
17863 *\&* | *\|* | *\\* )
17864 ac_sed_conf_input=`$as_echo "$configure_input" |
17865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17866 *) ac_sed_conf_input=$configure_input;;
17867 esac
17869 case $ac_tag in
17870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17872 esac
17874 esac
17876 ac_dir=`$as_dirname -- "$ac_file" ||
17877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17878 X"$ac_file" : 'X\(//\)[^/]' \| \
17879 X"$ac_file" : 'X\(//\)$' \| \
17880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17881 $as_echo X"$ac_file" |
17882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17883 s//\1/
17886 /^X\(\/\/\)[^/].*/{
17887 s//\1/
17890 /^X\(\/\/\)$/{
17891 s//\1/
17894 /^X\(\/\).*/{
17895 s//\1/
17898 s/.*/./; q'`
17899 as_dir="$ac_dir"; as_fn_mkdir_p
17900 ac_builddir=.
17902 case "$ac_dir" in
17903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17906 # A ".." for each directory in $ac_dir_suffix.
17907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17908 case $ac_top_builddir_sub in
17909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17911 esac ;;
17912 esac
17913 ac_abs_top_builddir=$ac_pwd
17914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17915 # for backward compatibility:
17916 ac_top_builddir=$ac_top_build_prefix
17918 case $srcdir in
17919 .) # We are building in place.
17920 ac_srcdir=.
17921 ac_top_srcdir=$ac_top_builddir_sub
17922 ac_abs_top_srcdir=$ac_pwd ;;
17923 [\\/]* | ?:[\\/]* ) # Absolute name.
17924 ac_srcdir=$srcdir$ac_dir_suffix;
17925 ac_top_srcdir=$srcdir
17926 ac_abs_top_srcdir=$srcdir ;;
17927 *) # Relative name.
17928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17929 ac_top_srcdir=$ac_top_build_prefix$srcdir
17930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17931 esac
17932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17935 case $ac_mode in
17938 # CONFIG_FILE
17941 case $INSTALL in
17942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17944 esac
17945 ac_MKDIR_P=$MKDIR_P
17946 case $MKDIR_P in
17947 [\\/$]* | ?:[\\/]* ) ;;
17948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17949 esac
17950 _ACEOF
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953 # If the template does not know about datarootdir, expand it.
17954 # FIXME: This hack should be removed a few years after 2.60.
17955 ac_datarootdir_hack=; ac_datarootdir_seen=
17956 ac_sed_dataroot='
17957 /datarootdir/ {
17961 /@datadir@/p
17962 /@docdir@/p
17963 /@infodir@/p
17964 /@localedir@/p
17965 /@mandir@/p'
17966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17967 *datarootdir*) ac_datarootdir_seen=yes;;
17968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17971 _ACEOF
17972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973 ac_datarootdir_hack='
17974 s&@datadir@&$datadir&g
17975 s&@docdir@&$docdir&g
17976 s&@infodir@&$infodir&g
17977 s&@localedir@&$localedir&g
17978 s&@mandir@&$mandir&g
17979 s&\\\${datarootdir}&$datarootdir&g' ;;
17980 esac
17981 _ACEOF
17983 # Neutralize VPATH when `$srcdir' = `.'.
17984 # Shell code in configure.ac might set extrasub.
17985 # FIXME: do we really want to maintain this feature?
17986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17987 ac_sed_extra="$ac_vpsub
17988 $extrasub
17989 _ACEOF
17990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17993 s|@configure_input@|$ac_sed_conf_input|;t t
17994 s&@top_builddir@&$ac_top_builddir_sub&;t t
17995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17996 s&@srcdir@&$ac_srcdir&;t t
17997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17998 s&@top_srcdir@&$ac_top_srcdir&;t t
17999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18000 s&@builddir@&$ac_builddir&;t t
18001 s&@abs_builddir@&$ac_abs_builddir&;t t
18002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18003 s&@INSTALL@&$ac_INSTALL&;t t
18004 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18005 $ac_datarootdir_hack
18007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18013 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18015 which seems to be undefined. Please make sure it is defined" >&5
18016 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18017 which seems to be undefined. Please make sure it is defined" >&2;}
18019 rm -f "$ac_tmp/stdin"
18020 case $ac_file in
18021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18023 esac \
18024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18028 # CONFIG_HEADER
18030 if test x"$ac_file" != x-; then
18032 $as_echo "/* $configure_input */" \
18033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18034 } >"$ac_tmp/config.h" \
18035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18039 else
18040 rm -f "$ac_file"
18041 mv "$ac_tmp/config.h" "$ac_file" \
18042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18044 else
18045 $as_echo "/* $configure_input */" \
18046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18047 || as_fn_error $? "could not create -" "$LINENO" 5
18049 # Compute "$ac_file"'s index in $config_headers.
18050 _am_arg="$ac_file"
18051 _am_stamp_count=1
18052 for _am_header in $config_headers :; do
18053 case $_am_header in
18054 $_am_arg | $_am_arg:* )
18055 break ;;
18057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18058 esac
18059 done
18060 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18061 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18062 X"$_am_arg" : 'X\(//\)[^/]' \| \
18063 X"$_am_arg" : 'X\(//\)$' \| \
18064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18065 $as_echo X"$_am_arg" |
18066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18067 s//\1/
18070 /^X\(\/\/\)[^/].*/{
18071 s//\1/
18074 /^X\(\/\/\)$/{
18075 s//\1/
18078 /^X\(\/\).*/{
18079 s//\1/
18082 s/.*/./; q'`/stamp-h$_am_stamp_count
18085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18086 $as_echo "$as_me: executing $ac_file commands" >&6;}
18088 esac
18091 case $ac_file$ac_mode in
18092 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18093 # Older Autoconf quotes --file arguments for eval, but not when files
18094 # are listed without --file. Let's play safe and only enable the eval
18095 # if we detect the quoting.
18096 case $CONFIG_FILES in
18097 *\'*) eval set x "$CONFIG_FILES" ;;
18098 *) set x $CONFIG_FILES ;;
18099 esac
18100 shift
18101 for mf
18103 # Strip MF so we end up with the name of the file.
18104 mf=`echo "$mf" | sed -e 's/:.*$//'`
18105 # Check whether this is an Automake generated Makefile or not.
18106 # We used to match only the files named 'Makefile.in', but
18107 # some people rename them; so instead we look at the file content.
18108 # Grep'ing the first line is not enough: some people post-process
18109 # each Makefile.in and add a new line on top of each file to say so.
18110 # Grep'ing the whole file is not good either: AIX grep has a line
18111 # limit of 2048, but all sed's we know have understand at least 4000.
18112 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18113 dirpart=`$as_dirname -- "$mf" ||
18114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18115 X"$mf" : 'X\(//\)[^/]' \| \
18116 X"$mf" : 'X\(//\)$' \| \
18117 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18118 $as_echo X"$mf" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18120 s//\1/
18123 /^X\(\/\/\)[^/].*/{
18124 s//\1/
18127 /^X\(\/\/\)$/{
18128 s//\1/
18131 /^X\(\/\).*/{
18132 s//\1/
18135 s/.*/./; q'`
18136 else
18137 continue
18139 # Extract the definition of DEPDIR, am__include, and am__quote
18140 # from the Makefile without running 'make'.
18141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18142 test -z "$DEPDIR" && continue
18143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18144 test -z "$am__include" && continue
18145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18146 # Find all dependency output files, they are included files with
18147 # $(DEPDIR) in their names. We invoke sed twice because it is the
18148 # simplest approach to changing $(DEPDIR) to its actual value in the
18149 # expansion.
18150 for file in `sed -n "
18151 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18152 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18153 # Make sure the directory exists.
18154 test -f "$dirpart/$file" && continue
18155 fdir=`$as_dirname -- "$file" ||
18156 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157 X"$file" : 'X\(//\)[^/]' \| \
18158 X"$file" : 'X\(//\)$' \| \
18159 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18160 $as_echo X"$file" |
18161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18162 s//\1/
18165 /^X\(\/\/\)[^/].*/{
18166 s//\1/
18169 /^X\(\/\/\)$/{
18170 s//\1/
18173 /^X\(\/\).*/{
18174 s//\1/
18177 s/.*/./; q'`
18178 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18179 # echo "creating $dirpart/$file"
18180 echo '# dummy' > "$dirpart/$file"
18181 done
18182 done
18185 "default-1":C)
18186 for ac_file in $CONFIG_FILES; do
18187 # Support "outfile[:infile[:infile...]]"
18188 case "$ac_file" in
18189 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18190 esac
18191 # PO directories have a Makefile.in generated from Makefile.in.in.
18192 case "$ac_file" in */Makefile.in)
18193 # Adjust a relative srcdir.
18194 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18195 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18196 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18197 # In autoconf-2.13 it is called $ac_given_srcdir.
18198 # In autoconf-2.50 it is called $srcdir.
18199 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18200 case "$ac_given_srcdir" in
18201 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18202 /*) top_srcdir="$ac_given_srcdir" ;;
18203 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18204 esac
18205 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18206 rm -f "$ac_dir/POTFILES"
18207 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18208 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18209 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18210 # on $ac_dir but don't depend on user-specified configuration
18211 # parameters.
18212 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18213 # The LINGUAS file contains the set of available languages.
18214 if test -n "$ALL_LINGUAS"; then
18215 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18217 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18218 # Hide the ALL_LINGUAS assigment from automake.
18219 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18221 case "$ac_given_srcdir" in
18222 .) srcdirpre= ;;
18223 *) srcdirpre='$(srcdir)/' ;;
18224 esac
18225 POFILES=
18226 GMOFILES=
18227 UPDATEPOFILES=
18228 DUMMYPOFILES=
18229 for lang in $ALL_LINGUAS; do
18230 POFILES="$POFILES $srcdirpre$lang.po"
18231 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18232 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18233 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18234 done
18235 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18236 # environment variable.
18237 INST_LINGUAS=
18238 if test -n "$ALL_LINGUAS"; then
18239 for presentlang in $ALL_LINGUAS; do
18240 useit=no
18241 if test "%UNSET%" != "$LINGUAS"; then
18242 desiredlanguages="$LINGUAS"
18243 else
18244 desiredlanguages="$ALL_LINGUAS"
18246 for desiredlang in $desiredlanguages; do
18247 # Use the presentlang catalog if desiredlang is
18248 # a. equal to presentlang, or
18249 # b. a variant of presentlang (because in this case,
18250 # presentlang can be used as a fallback for messages
18251 # which are not translated in the desiredlang catalog).
18252 case "$desiredlang" in
18253 "$presentlang"*) useit=yes;;
18254 esac
18255 done
18256 if test $useit = yes; then
18257 INST_LINGUAS="$INST_LINGUAS $presentlang"
18259 done
18261 CATALOGS=
18262 if test -n "$INST_LINGUAS"; then
18263 for lang in $INST_LINGUAS; do
18264 CATALOGS="$CATALOGS $lang.gmo"
18265 done
18267 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18268 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"
18269 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18270 if test -f "$f"; then
18271 case "$f" in
18272 *.orig | *.bak | *~) ;;
18273 *) cat "$f" >> "$ac_dir/Makefile" ;;
18274 esac
18276 done
18279 esac
18280 done ;;
18281 "denoiser":C) if test $denoiserlevel -gt 0; then
18282 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18283 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" \
18284 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18285 for i in `find . -name 'Makefile' -print`; do
18286 if test -n "`head -n 1 $i | grep '^#'`"; then
18287 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18289 done
18290 fi ;;
18292 esac
18293 done # for ac_tag
18296 as_fn_exit 0
18297 _ACEOF
18298 ac_clean_files=$ac_clean_files_save
18300 test $ac_write_fail = 0 ||
18301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18304 # configure is writing to config.log, and then calls config.status.
18305 # config.status does its own redirection, appending to config.log.
18306 # Unfortunately, on DOS this fails, as config.log is still kept open
18307 # by configure, so config.status won't be able to write to it; its
18308 # output is simply discarded. So we exec the FD to /dev/null,
18309 # effectively closing config.log, so it can be properly (re)opened and
18310 # appended to by config.status. When coming back to configure, we
18311 # need to make the FD available again.
18312 if test "$no_create" != yes; then
18313 ac_cs_success=:
18314 ac_config_status_args=
18315 test "$silent" = yes &&
18316 ac_config_status_args="$ac_config_status_args --quiet"
18317 exec 5>/dev/null
18318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18319 exec 5>>config.log
18320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18321 # would make configure fail if this is the last instruction.
18322 $ac_cs_success || as_fn_exit 1
18324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18330 if test -n "$svndate"; then :
18331 SVN_REVISION=" ($svndate)"
18332 else
18333 SVN_REVISION=
18336 echo
18337 echo
18338 echo " Configure script has finished system check."
18339 echo
18340 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18341 echo
18342 echo " aMule enabled options:"
18343 echo
18344 echo " **** aMule Core ****"
18345 echo " Prefix where aMule should be installed? ${prefix:-none}"
18346 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18347 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18348 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18349 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18350 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18351 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18352 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18353 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18354 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18356 echo
18357 echo " **** aMule TextClient ****"
18358 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18359 echo
18360 echo " **** aMule WebServer ****"
18361 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18362 echo
18363 echo " **** aMule ED2K Links Handler ****"
18364 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18365 echo
18366 echo " **** aMuleLinkCreator ****"
18367 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18368 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18369 echo
18370 echo " **** aMule Statistics ****"
18371 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18372 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18373 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18374 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18376 echo
18377 echo " **** General Libraries and Tools ****"
18378 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18379 echo " Libraries aMule will use to build:"
18380 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 :
18382 wxinfo="$WX_PORT"
18383 if test $WX_DEBUG -eq 1; then :
18384 wxinfo="$wxinfo,debug"
18386 if test $WX_SHARED -eq 1; then :
18387 wxinfo="$wxinfo,shared"
18388 else
18389 wxinfo="$wxinfo,static"
18391 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18394 if test ${with_boost:-no} != no; then :
18395 if test ${with_boost:-no} = disabled; then
18396 echo " boost Not detected"
18397 elif test ${boost_cv_inc_path:-yes} != yes; then
18398 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18399 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18404 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18405 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18407 if test ${enable_upnp:-yes} = yes; then :
18409 if test -n "$with_libupnp_prefix"; then :
18410 libupnp_place=" (in $with_libupnp_prefix)"
18412 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18415 if test ${enable_nls:-yes} = yes; then
18416 if test x$USE_NLS = xno; then :
18417 libintl_found="Not detected"
18418 else
18419 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18420 libintl_found="included"
18421 else
18422 libintl_found="system"
18425 echo " libintl $libintl_found"
18427 if test ${enable_geoip:-no} = yes; then :
18428 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18429 geoip_style=system
18430 else
18431 geoip_style=user
18433 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18434 echo " libGeoIP ${geoip_style}"
18437 if test ${enable_webserver:-no} = yes; then :
18438 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18440 if test ${enable_cas:-no} = yes; then :
18441 echo " libgd ${GDLIB_VERSION:-Not detected}"
18443 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 :
18444 echo " zlib ${ZLIB_VERSION:-Not detected}"
18446 if test ${enable_plasmamule:-no} = yes; then :
18447 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18448 echo " qt-core-libs ${QT_CORE_LIBS}"
18449 echo " qt-gui-libs ${QT_GUI_LIBS}"
18450 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18451 echo " kde-headers ${KDE_HEADER_DIR}"
18452 echo " kde-services-path ${KDE_SERVICE_PATH}"
18453 echo " kde-module-path ${KDE_MODULE_PATH}"
18454 echo " kde-icon-path ${KDE_ICON_PATH}"
18455 echo " kde-mime-path ${KDE_MIME_PATH}"
18456 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18459 if test ${_mule_has_warnings:-no} = yes; then
18460 echo ""
18461 echo ""
18462 echo " *** Warnings during configuration ***"
18464 if test ${_mule_warning_0:-no} = yes; then
18465 cat <<_MULEEOT
18467 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18468 Please check that gdlib-config is in your default path, check out
18469 LD_LIBRARY_PATH or equivalent variable.
18470 Or this might also be that your gdlib-config has other name.
18471 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18472 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18473 If you use compiled packages check if you have devel pack installed.
18474 To download the latest version check http://www.boutell.com/gd for sources.
18475 _MULEEOT
18477 if test ${_mule_warning_1:-no} = yes; then
18478 cat <<_MULEEOT
18480 * libpng >= 1.2.0 not found.
18481 amuleweb will be compiled but file download progress bar images will NOT be
18482 generated.
18483 _MULEEOT
18485 if test ${_mule_warning_2:-no} = yes; then
18486 cat <<_MULEEOT
18488 * File::Copy perl module is required by the mldonkey_importer script.
18489 If you want to use this script please install File::Copy from CPAN.
18490 _MULEEOT
18492 if test ${_mule_warning_3:-no} = yes; then
18493 cat <<_MULEEOT
18495 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18496 _MULEEOT
18498 if test ${_mule_warning_4:-no} = yes; then
18499 cat <<_MULEEOT
18501 * GeoIP support has been disabled because the GeoIP libraries were not found
18502 _MULEEOT
18504 if test ${_mule_warning_5:-no} = yes; then
18505 cat <<_MULEEOT
18507 * GeoIP support has been disabled because the GeoIP header files were not
18508 found
18509 _MULEEOT
18511 if test ${_mule_warning_6:-no} = yes; then
18512 cat <<_MULEEOT
18514 * UPnP code has been disabled because ${libupnp_error}.
18515 _MULEEOT
18517 if test ${_mule_warning_7:-no} = yes; then
18518 cat <<_MULEEOT
18520 * Cross-compilation detected, so exception handling cannot be tested.
18521 Note that broken exception handling in your compiler may lead to unexpected
18522 crashes.
18523 _MULEEOT
18525 if test ${_mule_warning_8:-no} = yes; then
18526 cat <<_MULEEOT
18528 * Boost support has been disabled because Boost.System not found
18529 _MULEEOT
18531 if test ${_mule_warning_9:-no} = yes; then
18532 cat <<_MULEEOT
18534 * Boost support has been disabled because Boost.Asio not found
18535 _MULEEOT
18537 if test ${_mule_warning_10:-no} = yes; then
18538 cat <<_MULEEOT
18540 * Boost support has been disabled because Boost.Asio not found
18541 _MULEEOT
18543 if test ${_mule_warning_11:-no} = yes; then
18544 cat <<_MULEEOT
18546 * Boost support has been disabled because of insufficient Boost version.
18547 _MULEEOT
18549 if test ${_mule_warning_12:-no} = yes; then
18550 cat <<_MULEEOT
18552 * configure cannot check whether malloc() and realloc() are GNU libc
18553 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18554 configure with the --without-gnu-malloc switch.
18555 _MULEEOT
18557 if test ${_mule_warning_13:-no} = yes; then
18558 cat <<_MULEEOT
18560 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18561 support.
18562 _MULEEOT
18564 if test ${_mule_warning_14:-no} = yes; then
18565 cat <<_MULEEOT
18567 * Cannot link to the library containing the bfd functions.
18568 _MULEEOT
18570 if test ${_mule_warning_15:-no} = yes; then
18571 cat <<_MULEEOT
18573 * bfd.h not found or unusable, please install binutils development package if
18574 you are a developer or want to help testing aMule
18575 _MULEEOT